@sentry/google-cloud-serverless 8.11.0 → 8.12.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 CHANGED
@@ -43,7 +43,7 @@ function init(options = {}) {
43
43
  version: node.SDK_VERSION,
44
44
  };
45
45
 
46
- node.init(opts);
46
+ return node.init(opts);
47
47
  }
48
48
 
49
49
  exports.getDefaultIntegrations = getDefaultIntegrations;
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\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;;;;;"}
1
+ {"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import type { NodeClient, 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 = {}): NodeClient | undefined {\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 return 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,EAA0B;AACxE,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,EAAE,OAAOC,SAAQ,CAAC,IAAI,CAAC,CAAA;AACvB;;;;;"}
package/esm/sdk.js CHANGED
@@ -41,7 +41,7 @@ function init(options = {}) {
41
41
  version: SDK_VERSION,
42
42
  };
43
43
 
44
- init$1(opts);
44
+ return init$1(opts);
45
45
  }
46
46
 
47
47
  export { getDefaultIntegrations, init };
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\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;;;;"}
1
+ {"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import type { NodeClient, 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 = {}): NodeClient | undefined {\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 return 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,EAA0B;AACxE,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,EAAE,OAAOA,MAAQ,CAAC,IAAI,CAAC,CAAA;AACvB;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/google-cloud-serverless",
3
- "version": "8.11.0",
3
+ "version": "8.12.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",
@@ -53,10 +53,10 @@
53
53
  "access": "public"
54
54
  },
55
55
  "dependencies": {
56
- "@sentry/core": "8.11.0",
57
- "@sentry/node": "8.11.0",
58
- "@sentry/types": "8.11.0",
59
- "@sentry/utils": "8.11.0",
56
+ "@sentry/core": "8.12.0",
57
+ "@sentry/node": "8.12.0",
58
+ "@sentry/types": "8.12.0",
59
+ "@sentry/utils": "8.12.0",
60
60
  "@types/express": "^4.17.14"
61
61
  },
62
62
  "devDependencies": {
package/types/sdk.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { NodeOptions } from '@sentry/node';
1
+ import type { NodeClient, NodeOptions } from '@sentry/node';
2
2
  import type { Integration, Options } from '@sentry/types';
3
3
  /** Get the default integrations for the GCP SDK. */
4
4
  export declare function getDefaultIntegrations(_options: Options): Integration[];
5
5
  /**
6
6
  * @see {@link Sentry.init}
7
7
  */
8
- export declare function init(options?: NodeOptions): void;
8
+ export declare function init(options?: NodeOptions): NodeClient | undefined;
9
9
  //# sourceMappingURL=sdk.d.ts.map
@@ -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;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"}
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE5D,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,UAAU,GAAG,SAAS,CAmBtE"}
@@ -1,9 +1,9 @@
1
- import { NodeOptions } from '@sentry/node';
1
+ import { NodeClient, NodeOptions } from '@sentry/node';
2
2
  import { Integration, Options } from '@sentry/types';
3
3
  /** Get the default integrations for the GCP SDK. */
4
4
  export declare function getDefaultIntegrations(_options: Options): Integration[];
5
5
  /**
6
6
  * @see {@link Sentry.init}
7
7
  */
8
- export declare function init(options?: NodeOptions): void;
8
+ export declare function init(options?: NodeOptions): NodeClient | undefined;
9
9
  //# sourceMappingURL=sdk.d.ts.map