芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/@sentry/node/esm/client.js
import { __extends } from "tslib"; import { BaseClient, SDK_VERSION } from '@sentry/core'; import { NodeBackend } from './backend'; /** * The Sentry Node SDK Client. * * @see NodeOptions for documentation on configuration options. * @see SentryClient for usage documentation. */ var NodeClient = /** @class */ (function (_super) { __extends(NodeClient, _super); /** * Creates a new Node SDK instance. * @param options Configuration options for this SDK. */ function NodeClient(options) { var _this = this; options._metadata = options._metadata || {}; options._metadata.sdk = options._metadata.sdk || { name: 'sentry.javascript.node', packages: [ { name: 'npm:@sentry/node', version: SDK_VERSION, }, ], version: SDK_VERSION, }; _this = _super.call(this, NodeBackend, options) || this; return _this; } /** * @inheritDoc */ NodeClient.prototype._prepareEvent = function (event, scope, hint) { event.platform = event.platform || 'node'; if (this.getOptions().serverName) { event.server_name = this.getOptions().serverName; } return _super.prototype._prepareEvent.call(this, event, scope, hint); }; return NodeClient; }(BaseClient)); export { NodeClient }; //# sourceMappingURL=client.js.map