@sentry/google-cloud-serverless 8.2.1 → 8.4.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/sdk.js +14 -5
- package/cjs/sdk.js.map +1 -1
- package/esm/sdk.js +14 -5
- package/esm/sdk.js.map +1 -1
- package/package.json +9 -5
- package/types/sdk.d.ts.map +1 -1
package/LICENSE
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
|
5
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
6
|
-
persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
3
|
+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
Software
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
9
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
10
|
+
so, subject to the following conditions:
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/cjs/sdk.js
CHANGED
|
@@ -4,13 +4,22 @@ const node = require('@sentry/node');
|
|
|
4
4
|
const googleCloudGrpc = require('./integrations/google-cloud-grpc.js');
|
|
5
5
|
const googleCloudHttp = require('./integrations/google-cloud-http.js');
|
|
6
6
|
|
|
7
|
+
function isCjs() {
|
|
8
|
+
return typeof require !== 'undefined';
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function getCjsOnlyIntegrations() {
|
|
12
|
+
return isCjs()
|
|
13
|
+
? [
|
|
14
|
+
googleCloudHttp.googleCloudHttpIntegration({ optional: true }), // We mark this integration optional since '@google-cloud/common' module could be missing.
|
|
15
|
+
googleCloudGrpc.googleCloudGrpcIntegration({ optional: true }), // We mark this integration optional since 'google-gax' module could be missing.
|
|
16
|
+
]
|
|
17
|
+
: [];
|
|
18
|
+
}
|
|
19
|
+
|
|
7
20
|
/** Get the default integrations for the GCP SDK. */
|
|
8
21
|
function getDefaultIntegrations(_options) {
|
|
9
|
-
return [
|
|
10
|
-
...node.getDefaultIntegrationsWithoutPerformance(),
|
|
11
|
-
googleCloudHttp.googleCloudHttpIntegration({ optional: true }), // We mark this integration optional since '@google-cloud/common' module could be missing.
|
|
12
|
-
googleCloudGrpc.googleCloudGrpcIntegration({ optional: true }), // We mark this integration optional since 'google-gax' module could be missing.
|
|
13
|
-
];
|
|
22
|
+
return [...node.getDefaultIntegrationsWithoutPerformance(), ...getCjsOnlyIntegrations()];
|
|
14
23
|
}
|
|
15
24
|
|
|
16
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, 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\
|
|
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\nfunction isCjs(): boolean {\n return typeof require !== 'undefined';\n}\n\nfunction getCjsOnlyIntegrations(): Integration[] {\n return isCjs()\n ? [\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/** Get the default integrations for the GCP SDK. */\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n return [...getDefaultIntegrationsWithoutPerformance(), ...getCjsOnlyIntegrations()];\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":["googleCloudHttpIntegration","googleCloudGrpcIntegration","getDefaultIntegrationsWithoutPerformance","SDK_VERSION","initNode"],"mappings":";;;;;;AAOA,SAAS,KAAK,GAAY;AAC1B,EAAE,OAAO,OAAO,OAAQ,KAAI,WAAW,CAAA;AACvC,CAAA;AACA;AACA,SAAS,sBAAsB,GAAkB;AACjD,EAAE,OAAO,KAAK,EAAC;AACf,MAAM;AACN,QAAQA,0CAA0B,CAAC,EAAE,QAAQ,EAAE,IAAA,EAAM,CAAC;AACtD,QAAQC,0CAA0B,CAAC,EAAE,QAAQ,EAAE,IAAA,EAAM,CAAC;AACtD,OAAM;AACN,MAAM,EAAE,CAAA;AACR,CAAA;AACA;AACA;AACO,SAAS,sBAAsB,CAAC,QAAQ,EAA0B;AACzE,EAAE,OAAO,CAAC,GAAGC,6CAAwC,EAAE,EAAE,GAAG,sBAAsB,EAAE,CAAC,CAAA;AACrF,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
|
@@ -2,13 +2,22 @@ import { getDefaultIntegrationsWithoutPerformance, SDK_VERSION, init as init$1 }
|
|
|
2
2
|
import { googleCloudGrpcIntegration } from './integrations/google-cloud-grpc.js';
|
|
3
3
|
import { googleCloudHttpIntegration } from './integrations/google-cloud-http.js';
|
|
4
4
|
|
|
5
|
+
function isCjs() {
|
|
6
|
+
return typeof require !== 'undefined';
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function getCjsOnlyIntegrations() {
|
|
10
|
+
return isCjs()
|
|
11
|
+
? [
|
|
12
|
+
googleCloudHttpIntegration({ optional: true }), // We mark this integration optional since '@google-cloud/common' module could be missing.
|
|
13
|
+
googleCloudGrpcIntegration({ optional: true }), // We mark this integration optional since 'google-gax' module could be missing.
|
|
14
|
+
]
|
|
15
|
+
: [];
|
|
16
|
+
}
|
|
17
|
+
|
|
5
18
|
/** Get the default integrations for the GCP SDK. */
|
|
6
19
|
function getDefaultIntegrations(_options) {
|
|
7
|
-
return [
|
|
8
|
-
...getDefaultIntegrationsWithoutPerformance(),
|
|
9
|
-
googleCloudHttpIntegration({ optional: true }), // We mark this integration optional since '@google-cloud/common' module could be missing.
|
|
10
|
-
googleCloudGrpcIntegration({ optional: true }), // We mark this integration optional since 'google-gax' module could be missing.
|
|
11
|
-
];
|
|
20
|
+
return [...getDefaultIntegrationsWithoutPerformance(), ...getCjsOnlyIntegrations()];
|
|
12
21
|
}
|
|
13
22
|
|
|
14
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, 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\
|
|
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\nfunction isCjs(): boolean {\n return typeof require !== 'undefined';\n}\n\nfunction getCjsOnlyIntegrations(): Integration[] {\n return isCjs()\n ? [\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/** Get the default integrations for the GCP SDK. */\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n return [...getDefaultIntegrationsWithoutPerformance(), ...getCjsOnlyIntegrations()];\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,SAAS,KAAK,GAAY;AAC1B,EAAE,OAAO,OAAO,OAAQ,KAAI,WAAW,CAAA;AACvC,CAAA;AACA;AACA,SAAS,sBAAsB,GAAkB;AACjD,EAAE,OAAO,KAAK,EAAC;AACf,MAAM;AACN,QAAQ,0BAA0B,CAAC,EAAE,QAAQ,EAAE,IAAA,EAAM,CAAC;AACtD,QAAQ,0BAA0B,CAAC,EAAE,QAAQ,EAAE,IAAA,EAAM,CAAC;AACtD,OAAM;AACN,MAAM,EAAE,CAAA;AACR,CAAA;AACA;AACA;AACO,SAAS,sBAAsB,CAAC,QAAQ,EAA0B;AACzE,EAAE,OAAO,CAAC,GAAG,wCAAwC,EAAE,EAAE,GAAG,sBAAsB,EAAE,CAAC,CAAA;AACrF,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.
|
|
3
|
+
"version": "8.4.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",
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
"./package.json": "./package.json",
|
|
24
24
|
".": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./types/index.d.ts",
|
|
27
|
+
"default": "./esm/index.js"
|
|
28
|
+
},
|
|
25
29
|
"require": {
|
|
26
30
|
"types": "./types/index.d.ts",
|
|
27
31
|
"default": "./cjs/index.js"
|
|
@@ -49,10 +53,10 @@
|
|
|
49
53
|
"access": "public"
|
|
50
54
|
},
|
|
51
55
|
"dependencies": {
|
|
52
|
-
"@sentry/core": "8.
|
|
53
|
-
"@sentry/node": "8.
|
|
54
|
-
"@sentry/types": "8.
|
|
55
|
-
"@sentry/utils": "8.
|
|
56
|
+
"@sentry/core": "8.4.0",
|
|
57
|
+
"@sentry/node": "8.4.0",
|
|
58
|
+
"@sentry/types": "8.4.0",
|
|
59
|
+
"@sentry/utils": "8.4.0",
|
|
56
60
|
"@types/express": "^4.17.14"
|
|
57
61
|
},
|
|
58
62
|
"devDependencies": {
|
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;
|
|
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;AAkBvE,oDAAoD;AACpD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,GAAG,WAAW,EAAE,CAEvE;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAgB,GAAG,IAAI,CAmBpD"}
|