芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/@sentry/node/dist/client.js
Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var core_1 = require("@sentry/core"); var backend_1 = require("./backend"); /** * The Sentry Node SDK Client. * * @see NodeOptions for documentation on configuration options. * @see SentryClient for usage documentation. */ var NodeClient = /** @class */ (function (_super) { tslib_1.__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: core_1.SDK_VERSION, }, ], version: core_1.SDK_VERSION, }; _this = _super.call(this, backend_1.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; }(core_1.BaseClient)); exports.NodeClient = NodeClient; //# sourceMappingURL=client.js.map