@sentry/google-cloud-serverless 8.0.0-rc.3 → 8.0.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/cjs/sdk.js +3 -3
- package/cjs/sdk.js.map +1 -1
- package/esm/sdk.js +4 -4
- package/esm/sdk.js.map +1 -1
- package/package.json +5 -5
- package/types/sdk.d.ts +1 -1
- package/types/sdk.d.ts.map +1 -1
- package/types-ts3.8/sdk.d.ts +1 -1
package/cjs/sdk.js
CHANGED
|
@@ -5,9 +5,9 @@ const googleCloudGrpc = require('./integrations/google-cloud-grpc.js');
|
|
|
5
5
|
const googleCloudHttp = require('./integrations/google-cloud-http.js');
|
|
6
6
|
|
|
7
7
|
/** Get the default integrations for the GCP SDK. */
|
|
8
|
-
function getDefaultIntegrations(
|
|
8
|
+
function getDefaultIntegrations(_options) {
|
|
9
9
|
return [
|
|
10
|
-
...node.
|
|
10
|
+
...node.getDefaultIntegrationsWithoutPerformance(),
|
|
11
11
|
googleCloudHttp.googleCloudHttpIntegration({ optional: true }), // We mark this integration optional since '@google-cloud/common' module could be missing.
|
|
12
12
|
googleCloudGrpc.googleCloudGrpcIntegration({ optional: true }), // We mark this integration optional since 'google-gax' module could be missing.
|
|
13
13
|
];
|
|
@@ -19,7 +19,7 @@ function getDefaultIntegrations(options) {
|
|
|
19
19
|
function init(options = {}) {
|
|
20
20
|
const opts = {
|
|
21
21
|
_metadata: {} ,
|
|
22
|
-
defaultIntegrations: getDefaultIntegrations(
|
|
22
|
+
defaultIntegrations: getDefaultIntegrations(),
|
|
23
23
|
...options,
|
|
24
24
|
};
|
|
25
25
|
|
package/cjs/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import type { NodeOptions } from '@sentry/node';\nimport { SDK_VERSION,
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import type { NodeOptions } from '@sentry/node';\nimport { SDK_VERSION, getDefaultIntegrationsWithoutPerformance, init as initNode } from '@sentry/node';\nimport type { Integration, Options, SdkMetadata } from '@sentry/types';\n\nimport { googleCloudGrpcIntegration } from './integrations/google-cloud-grpc';\nimport { googleCloudHttpIntegration } from './integrations/google-cloud-http';\n\n/** Get the default integrations for the GCP SDK. */\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n return [\n ...getDefaultIntegrationsWithoutPerformance(),\n googleCloudHttpIntegration({ optional: true }), // We mark this integration optional since '@google-cloud/common' module could be missing.\n googleCloudGrpcIntegration({ optional: true }), // We mark this integration optional since 'google-gax' module could be missing.\n ];\n}\n\n/**\n * @see {@link Sentry.init}\n */\nexport function init(options: NodeOptions = {}): void {\n const opts = {\n _metadata: {} as SdkMetadata,\n defaultIntegrations: getDefaultIntegrations(options),\n ...options,\n };\n\n opts._metadata.sdk = opts._metadata.sdk || {\n name: 'sentry.javascript.google-cloud-serverless',\n packages: [\n {\n name: 'npm:@sentry/google-cloud-serverless',\n version: SDK_VERSION,\n },\n ],\n version: SDK_VERSION,\n };\n\n initNode(opts);\n}\n"],"names":["getDefaultIntegrationsWithoutPerformance","googleCloudHttpIntegration","googleCloudGrpcIntegration","SDK_VERSION","initNode"],"mappings":";;;;;;AAOA;AACO,SAAS,sBAAsB,CAAC,QAAQ,EAA0B;AACzE,EAAE,OAAO;AACT,IAAI,GAAGA,6CAAwC,EAAE;AACjD,IAAIC,0CAA0B,CAAC,EAAE,QAAQ,EAAE,IAAA,EAAM,CAAC;AAClD,IAAIC,0CAA0B,CAAC,EAAE,QAAQ,EAAE,IAAA,EAAM,CAAC;AAClD,GAAG,CAAA;AACH,CAAA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,GAAgB,EAAE,EAAQ;AACtD,EAAE,MAAM,OAAO;AACf,IAAI,SAAS,EAAE,EAAG;AAClB,IAAI,mBAAmB,EAAE,sBAAsB,CAAQ,CAAC;AACxD,IAAI,GAAG,OAAO;AACd,GAAG,CAAA;AACH;AACA,EAAE,IAAI,CAAC,SAAS,CAAC,GAAA,GAAM,IAAI,CAAC,SAAS,CAAC,GAAA,IAAO;AAC7C,IAAI,IAAI,EAAE,2CAA2C;AACrD,IAAI,QAAQ,EAAE;AACd,MAAM;AACN,QAAQ,IAAI,EAAE,qCAAqC;AACnD,QAAQ,OAAO,EAAEC,gBAAW;AAC5B,OAAO;AACP,KAAK;AACL,IAAI,OAAO,EAAEA,gBAAW;AACxB,GAAG,CAAA;AACH;AACA,EAAEC,SAAQ,CAAC,IAAI,CAAC,CAAA;AAChB;;;;;"}
|
package/esm/sdk.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDefaultIntegrationsWithoutPerformance, SDK_VERSION, init as init$1 } from '@sentry/node';
|
|
2
2
|
import { googleCloudGrpcIntegration } from './integrations/google-cloud-grpc.js';
|
|
3
3
|
import { googleCloudHttpIntegration } from './integrations/google-cloud-http.js';
|
|
4
4
|
|
|
5
5
|
/** Get the default integrations for the GCP SDK. */
|
|
6
|
-
function getDefaultIntegrations(
|
|
6
|
+
function getDefaultIntegrations(_options) {
|
|
7
7
|
return [
|
|
8
|
-
...
|
|
8
|
+
...getDefaultIntegrationsWithoutPerformance(),
|
|
9
9
|
googleCloudHttpIntegration({ optional: true }), // We mark this integration optional since '@google-cloud/common' module could be missing.
|
|
10
10
|
googleCloudGrpcIntegration({ optional: true }), // We mark this integration optional since 'google-gax' module could be missing.
|
|
11
11
|
];
|
|
@@ -17,7 +17,7 @@ function getDefaultIntegrations(options) {
|
|
|
17
17
|
function init(options = {}) {
|
|
18
18
|
const opts = {
|
|
19
19
|
_metadata: {} ,
|
|
20
|
-
defaultIntegrations: getDefaultIntegrations(
|
|
20
|
+
defaultIntegrations: getDefaultIntegrations(),
|
|
21
21
|
...options,
|
|
22
22
|
};
|
|
23
23
|
|
package/esm/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import type { NodeOptions } from '@sentry/node';\nimport { SDK_VERSION,
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import type { NodeOptions } from '@sentry/node';\nimport { SDK_VERSION, getDefaultIntegrationsWithoutPerformance, init as initNode } from '@sentry/node';\nimport type { Integration, Options, SdkMetadata } from '@sentry/types';\n\nimport { googleCloudGrpcIntegration } from './integrations/google-cloud-grpc';\nimport { googleCloudHttpIntegration } from './integrations/google-cloud-http';\n\n/** Get the default integrations for the GCP SDK. */\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n return [\n ...getDefaultIntegrationsWithoutPerformance(),\n googleCloudHttpIntegration({ optional: true }), // We mark this integration optional since '@google-cloud/common' module could be missing.\n googleCloudGrpcIntegration({ optional: true }), // We mark this integration optional since 'google-gax' module could be missing.\n ];\n}\n\n/**\n * @see {@link Sentry.init}\n */\nexport function init(options: NodeOptions = {}): void {\n const opts = {\n _metadata: {} as SdkMetadata,\n defaultIntegrations: getDefaultIntegrations(options),\n ...options,\n };\n\n opts._metadata.sdk = opts._metadata.sdk || {\n name: 'sentry.javascript.google-cloud-serverless',\n packages: [\n {\n name: 'npm:@sentry/google-cloud-serverless',\n version: SDK_VERSION,\n },\n ],\n version: SDK_VERSION,\n };\n\n initNode(opts);\n}\n"],"names":["initNode"],"mappings":";;;;AAOA;AACO,SAAS,sBAAsB,CAAC,QAAQ,EAA0B;AACzE,EAAE,OAAO;AACT,IAAI,GAAG,wCAAwC,EAAE;AACjD,IAAI,0BAA0B,CAAC,EAAE,QAAQ,EAAE,IAAA,EAAM,CAAC;AAClD,IAAI,0BAA0B,CAAC,EAAE,QAAQ,EAAE,IAAA,EAAM,CAAC;AAClD,GAAG,CAAA;AACH,CAAA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,GAAgB,EAAE,EAAQ;AACtD,EAAE,MAAM,OAAO;AACf,IAAI,SAAS,EAAE,EAAG;AAClB,IAAI,mBAAmB,EAAE,sBAAsB,CAAQ,CAAC;AACxD,IAAI,GAAG,OAAO;AACd,GAAG,CAAA;AACH;AACA,EAAE,IAAI,CAAC,SAAS,CAAC,GAAA,GAAM,IAAI,CAAC,SAAS,CAAC,GAAA,IAAO;AAC7C,IAAI,IAAI,EAAE,2CAA2C;AACrD,IAAI,QAAQ,EAAE;AACd,MAAM;AACN,QAAQ,IAAI,EAAE,qCAAqC;AACnD,QAAQ,OAAO,EAAE,WAAW;AAC5B,OAAO;AACP,KAAK;AACL,IAAI,OAAO,EAAE,WAAW;AACxB,GAAG,CAAA;AACH;AACA,EAAEA,MAAQ,CAAC,IAAI,CAAC,CAAA;AAChB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/google-cloud-serverless",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Official Sentry SDK for Google Cloud Functions",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/google-cloud",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@sentry/core": "8.0.0
|
|
53
|
-
"@sentry/node": "8.0.0
|
|
54
|
-
"@sentry/types": "8.0.0
|
|
55
|
-
"@sentry/utils": "8.0.0
|
|
52
|
+
"@sentry/core": "8.0.0",
|
|
53
|
+
"@sentry/node": "8.0.0",
|
|
54
|
+
"@sentry/types": "8.0.0",
|
|
55
|
+
"@sentry/utils": "8.0.0",
|
|
56
56
|
"@types/express": "^4.17.14"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
package/types/sdk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NodeOptions } from '@sentry/node';
|
|
2
2
|
import type { Integration, Options } from '@sentry/types';
|
|
3
3
|
/** Get the default integrations for the GCP SDK. */
|
|
4
|
-
export declare function getDefaultIntegrations(
|
|
4
|
+
export declare function getDefaultIntegrations(_options: Options): Integration[];
|
|
5
5
|
/**
|
|
6
6
|
* @see {@link Sentry.init}
|
|
7
7
|
*/
|
package/types/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAe,MAAM,eAAe,CAAC;AAKvE,oDAAoD;AACpD,wBAAgB,sBAAsB,CAAC,
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAe,MAAM,eAAe,CAAC;AAKvE,oDAAoD;AACpD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,GAAG,WAAW,EAAE,CAMvE;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAgB,GAAG,IAAI,CAmBpD"}
|
package/types-ts3.8/sdk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NodeOptions } from '@sentry/node';
|
|
2
2
|
import { Integration, Options } from '@sentry/types';
|
|
3
3
|
/** Get the default integrations for the GCP SDK. */
|
|
4
|
-
export declare function getDefaultIntegrations(
|
|
4
|
+
export declare function getDefaultIntegrations(_options: Options): Integration[];
|
|
5
5
|
/**
|
|
6
6
|
* @see {@link Sentry.init}
|
|
7
7
|
*/
|