client.js.map 1.7 KB

1
  1. {"version":3,"file":"client.js","sources":["../../src/client.ts"],"sourcesContent":["import type { ServerRuntimeClientOptions } from '@sentry/core';\nimport { applySdkMetadata } from '@sentry/core';\nimport { ServerRuntimeClient } from '@sentry/core';\n\nimport type { VercelEdgeClientOptions } from './types';\n\ndeclare const process: {\n env: Record<string, string>;\n};\n\n/**\n * The Sentry Vercel Edge Runtime SDK Client.\n *\n * @see VercelEdgeClientOptions for documentation on configuration options.\n * @see ServerRuntimeClient for usage documentation.\n */\nexport class VercelEdgeClient extends ServerRuntimeClient<VercelEdgeClientOptions> {\n /**\n * Creates a new Vercel Edge Runtime SDK instance.\n * @param options Configuration options for this SDK.\n */\n public constructor(options: VercelEdgeClientOptions) {\n applySdkMetadata(options, 'vercel-edge');\n options._metadata = options._metadata || {};\n\n const clientOptions: ServerRuntimeClientOptions = {\n ...options,\n platform: 'javascript',\n // TODO: Grab version information\n runtime: { name: 'vercel-edge' },\n serverName: options.serverName || process.env.SENTRY_NAME,\n };\n\n super(clientOptions);\n }\n}\n"],"names":[],"mappings":";;AAUA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,gBAAA,SAAyB,mBAAmB,CAA0B;AACnF;AACA;AACA;AACA;AACA,GAAS,WAAW,CAAC,OAAO,EAA2B;AACvD,IAAI,gBAAgB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAA;AAC5C,IAAI,OAAO,CAAC,SAAU,GAAE,OAAO,CAAC,SAAA,IAAa,EAAE,CAAA;AAC/C;AACA,IAAI,MAAM,aAAa,GAA+B;AACtD,MAAM,GAAG,OAAO;AAChB,MAAM,QAAQ,EAAE,YAAY;AAC5B;AACA,MAAM,OAAO,EAAE,EAAE,IAAI,EAAE,eAAe;AACtC,MAAM,UAAU,EAAE,OAAO,CAAC,UAAA,IAAc,OAAO,CAAC,GAAG,CAAC,WAAW;AAC/D,KAAK,CAAA;AACL;AACA,IAAI,KAAK,CAAC,aAAa,CAAC,CAAA;AACxB,GAAE;AACF;;;;"}