@sentry/node 8.2.1 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -11
- package/cjs/init.js +10 -0
- package/cjs/init.js.map +1 -0
- package/cjs/integrations/anr/index.js +4 -4
- package/cjs/integrations/anr/index.js.map +1 -1
- package/cjs/integrations/console.js +1 -1
- package/cjs/integrations/console.js.map +1 -1
- package/cjs/integrations/context.js +37 -11
- package/cjs/integrations/context.js.map +1 -1
- package/cjs/integrations/contextlines.js +2 -2
- package/cjs/integrations/contextlines.js.map +1 -1
- package/cjs/integrations/http.js +43 -12
- package/cjs/integrations/http.js.map +1 -1
- package/cjs/integrations/local-variables/common.js.map +1 -1
- package/cjs/integrations/local-variables/local-variables-async.js +3 -3
- package/cjs/integrations/local-variables/local-variables-async.js.map +1 -1
- package/cjs/integrations/local-variables/local-variables-sync.js +1 -1
- package/cjs/integrations/local-variables/local-variables-sync.js.map +1 -1
- package/cjs/integrations/modules.js +8 -8
- package/cjs/integrations/modules.js.map +1 -1
- package/cjs/integrations/node-fetch.js +53 -17
- package/cjs/integrations/node-fetch.js.map +1 -1
- package/cjs/integrations/spotlight.js +1 -1
- package/cjs/integrations/spotlight.js.map +1 -1
- package/cjs/integrations/tracing/connect.js +33 -8
- package/cjs/integrations/tracing/connect.js.map +1 -1
- package/cjs/integrations/tracing/express.js +16 -10
- package/cjs/integrations/tracing/express.js.map +1 -1
- package/cjs/integrations/tracing/fastify.js +37 -12
- package/cjs/integrations/tracing/fastify.js.map +1 -1
- package/cjs/integrations/tracing/graphql.js +8 -2
- package/cjs/integrations/tracing/graphql.js.map +1 -1
- package/cjs/integrations/tracing/hapi/index.js +28 -8
- package/cjs/integrations/tracing/hapi/index.js.map +1 -1
- package/cjs/integrations/tracing/koa.js +25 -9
- package/cjs/integrations/tracing/koa.js.map +1 -1
- package/cjs/integrations/tracing/nest.js +27 -0
- package/cjs/integrations/tracing/nest.js.map +1 -1
- package/cjs/proxy/base.js +1 -2
- package/cjs/proxy/base.js.map +1 -1
- package/cjs/proxy/index.js +2 -2
- package/cjs/proxy/index.js.map +1 -1
- package/cjs/proxy/parse-proxy-response.js.map +1 -1
- package/cjs/sdk/client.js +1 -1
- package/cjs/sdk/client.js.map +1 -1
- package/cjs/sdk/init.js +12 -9
- package/cjs/sdk/init.js.map +1 -1
- package/cjs/transports/http.js +5 -5
- package/cjs/transports/http.js.map +1 -1
- package/cjs/utils/commonjs.js +9 -0
- package/cjs/utils/commonjs.js.map +1 -0
- package/cjs/utils/ensureIsWrapped.js +33 -0
- package/cjs/utils/ensureIsWrapped.js.map +1 -0
- package/cjs/utils/getRequestUrl.js.map +1 -1
- package/cjs/utils/module.js +3 -3
- package/cjs/utils/module.js.map +1 -1
- package/esm/init.js +10 -0
- package/esm/init.js.map +1 -0
- package/esm/integrations/anr/index.js +3 -3
- package/esm/integrations/anr/index.js.map +1 -1
- package/esm/integrations/anr/worker-script.js +2 -2
- package/esm/integrations/console.js +1 -1
- package/esm/integrations/console.js.map +1 -1
- package/esm/integrations/context.js +33 -8
- package/esm/integrations/context.js.map +1 -1
- package/esm/integrations/contextlines.js +1 -1
- package/esm/integrations/contextlines.js.map +1 -1
- package/esm/integrations/http.js +45 -14
- package/esm/integrations/http.js.map +1 -1
- package/esm/integrations/local-variables/common.js.map +1 -1
- package/esm/integrations/local-variables/local-variables-async.js +2 -2
- package/esm/integrations/local-variables/local-variables-async.js.map +1 -1
- package/esm/integrations/local-variables/local-variables-sync.js +1 -1
- package/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
- package/esm/integrations/local-variables/worker-script.js +2 -2
- package/esm/integrations/modules.js +2 -2
- package/esm/integrations/modules.js.map +1 -1
- package/esm/integrations/node-fetch.js +55 -19
- package/esm/integrations/node-fetch.js.map +1 -1
- package/esm/integrations/spotlight.js +1 -1
- package/esm/integrations/spotlight.js.map +1 -1
- package/esm/integrations/tracing/connect.js +34 -9
- package/esm/integrations/tracing/connect.js.map +1 -1
- package/esm/integrations/tracing/express.js +18 -12
- package/esm/integrations/tracing/express.js.map +1 -1
- package/esm/integrations/tracing/fastify.js +38 -13
- package/esm/integrations/tracing/fastify.js.map +1 -1
- package/esm/integrations/tracing/graphql.js +8 -2
- package/esm/integrations/tracing/graphql.js.map +1 -1
- package/esm/integrations/tracing/hapi/index.js +30 -10
- package/esm/integrations/tracing/hapi/index.js.map +1 -1
- package/esm/integrations/tracing/koa.js +27 -11
- package/esm/integrations/tracing/koa.js.map +1 -1
- package/esm/integrations/tracing/nest.js +28 -1
- package/esm/integrations/tracing/nest.js.map +1 -1
- package/esm/proxy/base.js +1 -2
- package/esm/proxy/base.js.map +1 -1
- package/esm/proxy/index.js +2 -2
- package/esm/proxy/index.js.map +1 -1
- package/esm/proxy/parse-proxy-response.js.map +1 -1
- package/esm/sdk/client.js +1 -1
- package/esm/sdk/client.js.map +1 -1
- package/esm/sdk/init.js +10 -7
- package/esm/sdk/init.js.map +1 -1
- package/esm/transports/http.js +3 -3
- package/esm/transports/http.js.map +1 -1
- package/esm/utils/commonjs.js +7 -0
- package/esm/utils/commonjs.js.map +1 -0
- package/esm/utils/ensureIsWrapped.js +31 -0
- package/esm/utils/ensureIsWrapped.js.map +1 -0
- package/esm/utils/getRequestUrl.js.map +1 -1
- package/esm/utils/module.js +1 -1
- package/esm/utils/module.js.map +1 -1
- package/package.json +15 -7
- package/types/init.d.ts +2 -0
- package/types/init.d.ts.map +1 -0
- package/types/integrations/anr/index.d.ts.map +1 -1
- package/types/integrations/context.d.ts +6 -2
- package/types/integrations/context.d.ts.map +1 -1
- package/types/integrations/http.d.ts.map +1 -1
- package/types/integrations/local-variables/common.d.ts +1 -1
- package/types/integrations/local-variables/common.d.ts.map +1 -1
- package/types/integrations/local-variables/local-variables-sync.d.ts +1 -1
- package/types/integrations/local-variables/local-variables-sync.d.ts.map +1 -1
- package/types/integrations/node-fetch.d.ts.map +1 -1
- package/types/integrations/spotlight.d.ts +1 -1
- package/types/integrations/spotlight.d.ts.map +1 -1
- package/types/integrations/tracing/connect.d.ts.map +1 -1
- package/types/integrations/tracing/express.d.ts +1 -1
- package/types/integrations/tracing/express.d.ts.map +1 -1
- package/types/integrations/tracing/fastify.d.ts +4 -4
- package/types/integrations/tracing/fastify.d.ts.map +1 -1
- package/types/integrations/tracing/graphql.d.ts +15 -1
- package/types/integrations/tracing/graphql.d.ts.map +1 -1
- package/types/integrations/tracing/hapi/index.d.ts.map +1 -1
- package/types/integrations/tracing/koa.d.ts.map +1 -1
- package/types/integrations/tracing/nest.d.ts.map +1 -1
- package/types/proxy/base.d.ts +4 -4
- package/types/proxy/base.d.ts.map +1 -1
- package/types/proxy/helpers.d.ts +1 -1
- package/types/proxy/helpers.d.ts.map +1 -1
- package/types/proxy/index.d.ts +4 -4
- package/types/proxy/index.d.ts.map +1 -1
- package/types/proxy/parse-proxy-response.d.ts +2 -2
- package/types/proxy/parse-proxy-response.d.ts.map +1 -1
- package/types/sdk/init.d.ts.map +1 -1
- package/types/utils/commonjs.d.ts +3 -0
- package/types/utils/commonjs.d.ts.map +1 -0
- package/types/utils/ensureIsWrapped.d.ts +5 -0
- package/types/utils/ensureIsWrapped.d.ts.map +1 -0
- package/types/utils/getRequestUrl.d.ts +1 -1
- package/types/utils/getRequestUrl.d.ts.map +1 -1
- package/types-ts3.8/init.d.ts +2 -0
- package/types-ts3.8/integrations/context.d.ts +6 -2
- package/types-ts3.8/integrations/local-variables/common.d.ts +1 -1
- package/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +1 -1
- package/types-ts3.8/integrations/spotlight.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/express.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/fastify.d.ts +4 -4
- package/types-ts3.8/integrations/tracing/graphql.d.ts +15 -1
- package/types-ts3.8/proxy/base.d.ts +4 -4
- package/types-ts3.8/proxy/helpers.d.ts +1 -1
- package/types-ts3.8/proxy/index.d.ts +4 -4
- package/types-ts3.8/proxy/parse-proxy-response.d.ts +2 -2
- package/types-ts3.8/utils/commonjs.d.ts +3 -0
- package/types-ts3.8/utils/ensureIsWrapped.d.ts +5 -0
- package/types-ts3.8/utils/getRequestUrl.d.ts +1 -1
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
interface GraphqlOptions {
|
|
2
|
+
/** Do not create spans for resolvers. */
|
|
3
|
+
ignoreResolveSpans?: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Don't create spans for the execution of the default resolver on object properties.
|
|
6
|
+
*
|
|
7
|
+
* When a resolver function is not defined on the schema for a field, graphql will
|
|
8
|
+
* use the default resolver which just looks for a property with that name on the object.
|
|
9
|
+
* If the property is not a function, it's not very interesting to trace.
|
|
10
|
+
* This option can reduce noise and number of spans created.
|
|
11
|
+
*/
|
|
12
|
+
ignoreTrivalResolveSpans?: boolean;
|
|
13
|
+
}
|
|
1
14
|
/**
|
|
2
15
|
* GraphQL integration
|
|
3
16
|
*
|
|
4
17
|
* Capture tracing data for GraphQL.
|
|
5
18
|
*/
|
|
6
|
-
export declare const graphqlIntegration: () => import("@sentry/types").Integration;
|
|
19
|
+
export declare const graphqlIntegration: (_options?: GraphqlOptions | undefined) => import("@sentry/types").Integration;
|
|
20
|
+
export {};
|
|
7
21
|
//# sourceMappingURL=graphql.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/graphql.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/graphql.ts"],"names":[],"mappings":"AAOA,UAAU,cAAc;IACtB,yCAAyC;IACzC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;;OAOG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAwBD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,gFAAyC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/hapi/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/hapi/index.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAsC,MAAM,EAAE,MAAM,SAAS,CAAC;AAW1E;;;;;GAKG;AACH,eAAO,MAAM,eAAe,2CAAsC,CAAC;AAsBnE,eAAO,MAAM,eAAe;;;0BAIW,OAAO,GAAG,EAAE,GAAG,CAAC;CA6BtD,CAAC;AAEF;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAezE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"koa.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/koa.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"koa.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/koa.ts"],"names":[],"mappings":"AAiEA,eAAO,MAAM,cAAc,2CAAqC,CAAC;AAGjE,eAAO,MAAM,oBAAoB;sBAA6B,GAAG,QAAQ,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI;MAAK,IAU3G,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nest.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/nest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nest.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/nest.ts"],"names":[],"mappings":"AAeA,UAAU,6BAA6B;IACrC,OAAO,EAAE,MAAM,MAAM,CAAC;IAEtB,YAAY,EAAE,MAAM;QAIlB,UAAU,EAAE,MAAM;YAChB,KAAK,CAAC,EAAE;gBACN,IAAI,CAAC,EAAE,MAAM,CAAC;aACf,CAAC;YACF,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;CACH;AAED,UAAU,iBAAiB;IAEzB,KAAK,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;CACxC;AAED,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACpD,qBAAqB,EAAE,CAAC,WAAW,EAAE;QACnC,SAAS,EAAE,CAAC,OAAO,EAAE,6BAA6B,EAAE,IAAI,EAAE;YAAE,MAAM,EAAE,MAAM,GAAG,CAAA;SAAE,KAAK,GAAG,CAAC;KACzF,KAAK,IAAI,CAAC;CACZ;AAWD;;;;GAIG;AACH,eAAO,MAAM,eAAe,2CAAsC,CAAC;AAEnE;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,gBAAgB,EAAE,UAAU,EAAE,iBAAiB,GAAG,IAAI,CA4ChG"}
|
package/types/proxy/base.d.ts
CHANGED
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
/// <reference types="node" />
|
|
30
30
|
/// <reference types="node" />
|
|
31
31
|
/// <reference types="node" />
|
|
32
|
-
import * as http from 'http';
|
|
33
|
-
import type * as net from 'net';
|
|
34
|
-
import type { Duplex } from 'stream';
|
|
35
|
-
import type * as tls from 'tls';
|
|
32
|
+
import * as http from 'node:http';
|
|
33
|
+
import type * as net from 'node:net';
|
|
34
|
+
import type { Duplex } from 'node:stream';
|
|
35
|
+
import type * as tls from 'node:tls';
|
|
36
36
|
export * from './helpers';
|
|
37
37
|
interface HttpConnectOpts extends net.TcpNetConnectOpts {
|
|
38
38
|
secureEndpoint: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/proxy/base.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;AAKH,OAAO,KAAK,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"base.d.ts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Aa,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAkBnH,gBAAgB,IAAI,MAAM;IAS1B,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,IAAI,WAAW,CAAC,CAAC,EAAE,MAAM,EAIxB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,QAAQ,CAAC,CAAC,EAAE,MAAM,EAIrB;CACF"}
|
package/types/proxy/helpers.d.ts
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
/// <reference types="node" />
|
|
32
32
|
import * as http from 'node:http';
|
|
33
33
|
import * as https from 'node:https';
|
|
34
|
-
import type { Readable } from 'stream';
|
|
34
|
+
import type { Readable } from 'node:stream';
|
|
35
35
|
export type ThenableRequest = http.ClientRequest & {
|
|
36
36
|
then: Promise<http.IncomingMessage>['then'];
|
|
37
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/proxy/helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;AAGH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/proxy/helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;AAGH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,aAAa,GAAG;IACjD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;CAC7C,CAAC;AAEF,wBAAsB,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAQhE;AAGD,wBAAsB,IAAI,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAUzD;AAED,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,GAAE,KAAK,CAAC,cAAmB,GAAG,eAAe,CAQvF"}
|
package/types/proxy/index.d.ts
CHANGED
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
/// <reference types="node" />
|
|
29
29
|
/// <reference types="node" />
|
|
30
30
|
/// <reference types="node" />
|
|
31
|
-
import type * as http from 'http';
|
|
32
|
-
import type { OutgoingHttpHeaders } from 'http';
|
|
33
|
-
import * as net from 'net';
|
|
34
|
-
import * as tls from 'tls';
|
|
31
|
+
import type * as http from 'node:http';
|
|
32
|
+
import type { OutgoingHttpHeaders } from 'node:http';
|
|
33
|
+
import * as net from 'node:net';
|
|
34
|
+
import * as tls from 'node:tls';
|
|
35
35
|
import { Agent } from './base';
|
|
36
36
|
import type { AgentConnectOpts } from './base';
|
|
37
37
|
type Protocol<T> = T extends `${infer Protocol}:${infer _}` ? Protocol : never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/proxy/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;AAIH,OAAO,KAAK,KAAK,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/proxy/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;AAIH,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AACvC,OAAO,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iBAAiB,CAAC;gBAE/C,KAAK,EAAE,GAAG,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,sBAAsB,CAAC,GAAG,CAAC;IAmBhE;;;OAGG;IACG,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;CAiGpF"}
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
/// <reference types="node" />
|
|
29
29
|
/// <reference types="node" />
|
|
30
30
|
/// <reference types="node" />
|
|
31
|
-
import type { IncomingHttpHeaders } from 'http';
|
|
32
|
-
import type { Readable } from 'stream';
|
|
31
|
+
import type { IncomingHttpHeaders } from 'node:http';
|
|
32
|
+
import type { Readable } from 'node:stream';
|
|
33
33
|
export interface ConnectResponse {
|
|
34
34
|
statusCode: number;
|
|
35
35
|
statusText: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-proxy-response.d.ts","sourceRoot":"","sources":["../../../src/proxy/parse-proxy-response.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;AAIH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"parse-proxy-response.d.ts","sourceRoot":"","sources":["../../../src/proxy/parse-proxy-response.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;AAIH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAO5C,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CA4F5G"}
|
package/types/sdk/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/sdk/init.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAU,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAwBlE,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/sdk/init.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAU,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAwBlE,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAU/D;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAoBxE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAStE;AAaD;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,IAAI,CAEhE;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,IAAI,CAE1F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commonjs.d.ts","sourceRoot":"","sources":["../../../src/utils/commonjs.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,wBAAgB,KAAK,IAAI,OAAO,CAE/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensureIsWrapped.d.ts","sourceRoot":"","sources":["../../../src/utils/ensureIsWrapped.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAgB,eAAe,CAC7B,kBAAkB,EAAE,OAAO,EAC3B,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GACvD,IAAI,CAgBN"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import type { RequestOptions } from 'http';
|
|
2
|
+
import type { RequestOptions } from 'node:http';
|
|
3
3
|
/** Build a full URL from request options. */
|
|
4
4
|
export declare function getRequestUrl(requestOptions: RequestOptions): string;
|
|
5
5
|
//# sourceMappingURL=getRequestUrl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRequestUrl.d.ts","sourceRoot":"","sources":["../../../src/utils/getRequestUrl.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getRequestUrl.d.ts","sourceRoot":"","sources":["../../../src/utils/getRequestUrl.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,6CAA6C;AAC7C,wBAAgB,aAAa,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAWpE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { readFile, readdir } from 'fs';
|
|
3
|
-
import { DeviceContext } from '@sentry/types';
|
|
2
|
+
import { readFile, readdir } from 'node:fs';
|
|
3
|
+
import { AppContext, DeviceContext } from '@sentry/types';
|
|
4
4
|
export declare const readFileAsync: typeof readFile.__promisify__;
|
|
5
5
|
export declare const readDirAsync: typeof readdir.__promisify__;
|
|
6
6
|
interface DeviceContextOptions {
|
|
@@ -18,6 +18,10 @@ interface ContextOptions {
|
|
|
18
18
|
* Capture context about the environment and the device that the client is running on, to events.
|
|
19
19
|
*/
|
|
20
20
|
export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/types").Integration;
|
|
21
|
+
/**
|
|
22
|
+
* Get app context information from process
|
|
23
|
+
*/
|
|
24
|
+
export declare function getAppContext(): AppContext;
|
|
21
25
|
/**
|
|
22
26
|
* Gets device information from os
|
|
23
27
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
import { Debugger } from 'node:inspector';
|
|
2
3
|
import { StackFrame, StackParser } from '@sentry/types';
|
|
3
|
-
import { Debugger } from 'inspector';
|
|
4
4
|
export type Variables = Record<string, unknown>;
|
|
5
5
|
export type RateLimitIncrement = () => void;
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Debugger, InspectorNotification } from 'inspector';
|
|
2
|
+
import { Debugger, InspectorNotification } from 'node:inspector';
|
|
3
3
|
import { LocalVariablesIntegrationOptions, Variables } from './common';
|
|
4
4
|
type OnPauseEvent = InspectorNotification<Debugger.PausedEventDataType>;
|
|
5
5
|
export interface DebugSession {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
interface Fastify {
|
|
2
|
+
register: (plugin: any) => void;
|
|
3
|
+
addHook: (hook: string, handler: (request: any, reply: any, error: Error) => void) => void;
|
|
4
|
+
}
|
|
1
5
|
/**
|
|
2
6
|
* Express integration
|
|
3
7
|
*
|
|
4
8
|
* Capture tracing data for fastify.
|
|
5
9
|
*/
|
|
6
10
|
export declare const fastifyIntegration: () => import("@sentry/types").Integration;
|
|
7
|
-
interface Fastify {
|
|
8
|
-
register: (plugin: any) => void;
|
|
9
|
-
addHook: (hook: string, handler: (request: any, reply: any, error: Error) => void) => void;
|
|
10
|
-
}
|
|
11
11
|
/**
|
|
12
12
|
* Setup an error handler for Fastify.
|
|
13
13
|
*/
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
interface GraphqlOptions {
|
|
2
|
+
/** Do not create spans for resolvers. */
|
|
3
|
+
ignoreResolveSpans?: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Don't create spans for the execution of the default resolver on object properties.
|
|
6
|
+
*
|
|
7
|
+
* When a resolver function is not defined on the schema for a field, graphql will
|
|
8
|
+
* use the default resolver which just looks for a property with that name on the object.
|
|
9
|
+
* If the property is not a function, it's not very interesting to trace.
|
|
10
|
+
* This option can reduce noise and number of spans created.
|
|
11
|
+
*/
|
|
12
|
+
ignoreTrivalResolveSpans?: boolean;
|
|
13
|
+
}
|
|
1
14
|
/**
|
|
2
15
|
* GraphQL integration
|
|
3
16
|
*
|
|
4
17
|
* Capture tracing data for GraphQL.
|
|
5
18
|
*/
|
|
6
|
-
export declare const graphqlIntegration: () => import("@sentry/types").Integration;
|
|
19
|
+
export declare const graphqlIntegration: (_options?: GraphqlOptions | undefined) => import("@sentry/types").Integration;
|
|
20
|
+
export {};
|
|
7
21
|
//# sourceMappingURL=graphql.d.ts.map
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
27
27
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
28
|
*/
|
|
29
|
-
import * as http from 'http';
|
|
30
|
-
import * as net from 'net';
|
|
31
|
-
import { Duplex } from 'stream';
|
|
32
|
-
import * as tls from 'tls';
|
|
29
|
+
import * as http from 'node:http';
|
|
30
|
+
import * as net from 'node:net';
|
|
31
|
+
import { Duplex } from 'node:stream';
|
|
32
|
+
import * as tls from 'node:tls';
|
|
33
33
|
export * from './helpers';
|
|
34
34
|
interface HttpConnectOpts extends net.TcpNetConnectOpts {
|
|
35
35
|
secureEndpoint: false;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
*/
|
|
29
29
|
import * as http from 'node:http';
|
|
30
30
|
import * as https from 'node:https';
|
|
31
|
-
import { Readable } from 'stream';
|
|
31
|
+
import { Readable } from 'node:stream';
|
|
32
32
|
export type ThenableRequest = http.ClientRequest & {
|
|
33
33
|
then: Promise<http.IncomingMessage>['then'];
|
|
34
34
|
};
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
27
27
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
28
|
*/
|
|
29
|
-
import * as http from 'http';
|
|
30
|
-
import { OutgoingHttpHeaders } from 'http';
|
|
31
|
-
import * as net from 'net';
|
|
32
|
-
import * as tls from 'tls';
|
|
29
|
+
import * as http from 'node:http';
|
|
30
|
+
import { OutgoingHttpHeaders } from 'node:http';
|
|
31
|
+
import * as net from 'node:net';
|
|
32
|
+
import * as tls from 'node:tls';
|
|
33
33
|
import { Agent } from './base';
|
|
34
34
|
import { AgentConnectOpts } from './base';
|
|
35
35
|
type Protocol<T> = T extends string ? Protocol : never;
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
27
27
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
28
|
*/
|
|
29
|
-
import { IncomingHttpHeaders } from 'http';
|
|
30
|
-
import { Readable } from 'stream';
|
|
29
|
+
import { IncomingHttpHeaders } from 'node:http';
|
|
30
|
+
import { Readable } from 'node:stream';
|
|
31
31
|
export interface ConnectResponse {
|
|
32
32
|
statusCode: number;
|
|
33
33
|
statusText: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { RequestOptions } from 'http';
|
|
2
|
+
import { RequestOptions } from 'node:http';
|
|
3
3
|
/** Build a full URL from request options. */
|
|
4
4
|
export declare function getRequestUrl(requestOptions: RequestOptions): string;
|
|
5
5
|
//# sourceMappingURL=getRequestUrl.d.ts.map
|