@nativescript-community/sentry 4.6.22 → 4.6.24

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.
Files changed (90) hide show
  1. package/breadcrumb.d.ts +1 -1
  2. package/breadcrumb.js.map +1 -1
  3. package/client.d.ts +23 -23
  4. package/client.js +36 -40
  5. package/client.js.map +1 -1
  6. package/index.d.ts +7 -7
  7. package/index.js +6 -6
  8. package/index.js.map +1 -1
  9. package/integrations/debugsymbolicator.d.ts +4 -4
  10. package/integrations/debugsymbolicator.js +13 -11
  11. package/integrations/debugsymbolicator.js.map +1 -1
  12. package/integrations/default.js +1 -2
  13. package/integrations/default.js.map +1 -1
  14. package/integrations/devicecontext.js +11 -11
  15. package/integrations/devicecontext.js.map +1 -1
  16. package/integrations/eventorigin.js +1 -2
  17. package/integrations/eventorigin.js.map +1 -1
  18. package/integrations/factory.js.map +1 -1
  19. package/integrations/index.js.map +1 -1
  20. package/integrations/nativescripterrorhandlers.d.ts +8 -8
  21. package/integrations/nativescripterrorhandlers.js +7 -3
  22. package/integrations/nativescripterrorhandlers.js.map +1 -1
  23. package/integrations/release.js +5 -6
  24. package/integrations/release.js.map +1 -1
  25. package/integrations/rewriteframe.js.map +1 -1
  26. package/integrations/screenshot.d.ts +8 -8
  27. package/integrations/screenshot.js +10 -13
  28. package/integrations/screenshot.js.map +1 -1
  29. package/integrations/sdkinfo.d.ts +7 -7
  30. package/integrations/sdkinfo.js +15 -16
  31. package/integrations/sdkinfo.js.map +1 -1
  32. package/measurements.js.map +1 -1
  33. package/misc.d.ts +4 -4
  34. package/misc.js +5 -8
  35. package/misc.js.map +1 -1
  36. package/options.d.ts +66 -62
  37. package/options.js.map +1 -1
  38. package/package.json +2 -2
  39. package/platforms/android/buildscript.gradle +1 -1
  40. package/platforms/android/include.gradle +1 -1
  41. package/platforms/android/native-api-usage.json +6 -0
  42. package/process.js.map +1 -1
  43. package/references.d.ts +6 -0
  44. package/scope.js.map +1 -1
  45. package/sdk.d.ts +3 -3
  46. package/sdk.js +25 -18
  47. package/sdk.js.map +1 -1
  48. package/tracing/addTracingExtensions.d.ts +1 -1
  49. package/tracing/addTracingExtensions.js +6 -4
  50. package/tracing/addTracingExtensions.js.map +1 -1
  51. package/tracing/index.js.map +1 -1
  52. package/tracing/nativeframes.d.ts +22 -22
  53. package/tracing/nativeframes.js +30 -34
  54. package/tracing/nativeframes.js.map +1 -1
  55. package/tracing/nstracing.d.ts +1 -1
  56. package/tracing/nstracing.js +42 -26
  57. package/tracing/nstracing.js.map +1 -1
  58. package/tracing/ops.js.map +1 -1
  59. package/tracing/routingInstrumentation.d.ts +2 -2
  60. package/tracing/routingInstrumentation.js +3 -5
  61. package/tracing/routingInstrumentation.js.map +1 -1
  62. package/tracing/stalltracking.js +16 -9
  63. package/tracing/stalltracking.js.map +1 -1
  64. package/tracing/transaction.js.map +1 -1
  65. package/tracing/types.d.ts +1 -1
  66. package/tracing/types.js.map +1 -1
  67. package/tracing/utils.js.map +1 -1
  68. package/transports/TextEncoder.js.map +1 -1
  69. package/transports/native.d.ts +1 -1
  70. package/transports/native.js.map +1 -1
  71. package/typings/android.d.ts +10738 -0
  72. package/typings/ios.d.ts +2255 -0
  73. package/typings/ns.ios.d.ts +25 -0
  74. package/utils/envelope.js +9 -4
  75. package/utils/envelope.js.map +1 -1
  76. package/utils/environment.js.map +1 -1
  77. package/utils/outcome.js.map +1 -1
  78. package/utils/safe.d.ts +1 -1
  79. package/utils/safe.js.map +1 -1
  80. package/vendor/buffer/index.js.map +1 -1
  81. package/vendor/buffer/utf8ToBytes.js.map +1 -1
  82. package/vendor/index.js.map +1 -1
  83. package/version.js.map +1 -1
  84. package/wrapper.android.d.ts +5 -2
  85. package/wrapper.android.js +121 -78
  86. package/wrapper.android.js.map +1 -1
  87. package/wrapper.d.ts +2 -4
  88. package/wrapper.ios.d.ts +3 -3
  89. package/wrapper.ios.js +48 -44
  90. package/wrapper.ios.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,yBAAyB,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sentry/integrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,yBAAyB,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -4,14 +4,14 @@ export interface NativescriptErrorHandlersOptions {
4
4
  onerror?: boolean;
5
5
  onunhandledrejection?: boolean;
6
6
  /**
7
- * When enabled, Sentry will overwrite the global Promise instance to ensure that unhandled rejections are correctly tracked.
8
- * If you run into issues with Promise polyfills such as `core-js`, make sure you polyfill after Sentry is initialized.
9
- * Read more at https://docs.sentry.io/platforms/react-native/troubleshooting/#unhandled-promise-rejections
10
- *
11
- * When disabled, this option will not disable unhandled rejection tracking. Set `onunhandledrejection: false` on the `ReactNativeErrorHandlers` integration instead.
12
- *
13
- * @default true
14
- */
7
+ * When enabled, Sentry will overwrite the global Promise instance to ensure that unhandled rejections are correctly tracked.
8
+ * If you run into issues with Promise polyfills such as `core-js`, make sure you polyfill after Sentry is initialized.
9
+ * Read more at https://docs.sentry.io/platforms/react-native/troubleshooting/#unhandled-promise-rejections
10
+ *
11
+ * When disabled, this option will not disable unhandled rejection tracking. Set `onunhandledrejection: false` on the `ReactNativeErrorHandlers` integration instead.
12
+ *
13
+ * @default true
14
+ */
15
15
  patchGlobalPromise?: boolean;
16
16
  }
17
17
  /** NativescriptErrorHandlers Integration */
@@ -12,9 +12,13 @@ export class NativescriptErrorHandlers {
12
12
  */
13
13
  this.name = NativescriptErrorHandlers.id;
14
14
  this.handlingFatal = false;
15
- this._options = Object.assign({
15
+ this._options = {
16
16
  // uncaughtErrors: false,
17
- onerror: false, onunhandledrejection: false, patchGlobalPromise: true }, options);
17
+ onerror: false,
18
+ onunhandledrejection: false,
19
+ patchGlobalPromise: true,
20
+ ...options
21
+ };
18
22
  }
19
23
  /**
20
24
  * @inheritDoc
@@ -80,7 +84,7 @@ export class NativescriptErrorHandlers {
80
84
  event.level = 'fatal';
81
85
  addExceptionMechanism(event, {
82
86
  handled: false,
83
- type: 'onerror',
87
+ type: 'onerror'
84
88
  });
85
89
  }
86
90
  client.captureEvent(event);
@@ -1 +1 @@
1
- {"version":3,"file":"nativescripterrorhandlers.js","sourceRoot":"","sources":["../../src/integrations/nativescripterrorhandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,OAAO,EAAE,qBAAqB,EAAmB,MAAM,EAAE,MAAM,eAAe,CAAC;AAI/E,OAAO,EAAC,WAAW,EAAQ,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA6B1C,4CAA4C;AAC5C,MAAM,OAAO,yBAAyB;IAgBlC,kBAAkB;IAClB,YAAmB,OAA0C;QAV7D;;WAEG;QACI,SAAI,GAAW,yBAAyB,CAAC,EAAE,CAAC;QA6CnD,kBAAa,GAAG,KAAK,CAAC;QArClB,IAAI,CAAC,QAAQ;YACT,yBAAyB;YACzB,OAAO,EAAE,KAAK,EACd,oBAAoB,EAAE,KAAK,EAC3B,kBAAkB,EAAE,IAAI,IACrB,OAAO,CACb,CAAC;IACN,CAAC;IAED;;OAEG;IACI,SAAS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B,sCAAsC;YACtC,MAAM;YACN,uFAAuF;YAEvF,gCAAgC;SACnC;IACL,CAAC;;AAhJD;;GAEG;AACW,4BAAE,GAAW,2BAA2B,CAAC"}
1
+ {"version":3,"file":"nativescripterrorhandlers.js","sourceRoot":"","sources":["../../../src/sentry/integrations/nativescripterrorhandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,OAAO,EAAE,qBAAqB,EAAmB,MAAM,EAAE,MAAM,eAAe,CAAC;AAI/E,OAAO,EAAE,WAAW,EAAS,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA6B1C,4CAA4C;AAC5C,MAAM,OAAO,yBAAyB;IAclC,kBAAkB;IAClB,YAAmB,OAA0C;QAT7D;;WAEG;QACI,SAAI,GAAW,yBAAyB,CAAC,EAAE,CAAC;QA4CnD,kBAAa,GAAG,KAAK,CAAC;QArClB,IAAI,CAAC,QAAQ,GAAG;YACZ,yBAAyB;YACzB,OAAO,EAAE,KAAK;YACd,oBAAoB,EAAE,KAAK;YAC3B,kBAAkB,EAAE,IAAI;YACxB,GAAG,OAAO;SACb,CAAC;IACN,CAAC;IAED;;OAEG;IACI,SAAS;QACZ,IAAI,CAAC,0BAA0B,EAAE,CAAC;QAClC,IAAI,CAAC,cAAc,EAAE,CAAC;IAC1B,CAAC;IAED;;OAEG;IACK,0BAA0B;QAC9B,IAAI,IAAI,CAAC,QAAQ,CAAC,oBAAoB,EAAE;YACpC,sCAAsC;YACtC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,kBAAkB,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;YAC7E,IAAI;YACJ,0CAA0C;YAC1C,+BAA+B;YAC/B,IAAI;YAEJ,2CAA2C;YAC3C,+BAA+B;SAClC;IACL,CAAC;IAEO,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AC,CAAC,CAAC,iDAAiD;YAC/E,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC;YACtB,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACvB,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;aAClC;YAED,IAAI,OAAO,EAAE;gBACT,KAAK,CAAC,KAAK,GAAG,OAAwB,CAAC;gBACvC,qBAAqB,CAAC,KAAK,EAAE;oBACzB,OAAO,EAAE,KAAK;oBACd,IAAI,EAAE,SAAS;iBAClB,CAAC,CAAC;aACN;YAED,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;SAC9B;QAAC,OAAO,KAAK,EAAE;YACZ,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SACxB;QAED,kBAAkB;QAClB,sEAAsE;QACtE,0CAA0C;QAC1C,UAAU;QACV,WAAW;QACX,uFAAuF;QACvF,0CAA0C;QAC1C,sCAAsC;QACtC,IAAI;IACR,CAAC;IAED;;OAEG;IACK,cAAc;QAClB,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;YACvB,6BAA6B;YAC7B,gFAAgF;YAChF,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,mBAAmB,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;YAE9E,0BAA0B;YAC1B,sCAAsC;YACtC,MAAM;YACN,uFAAuF;YAEvF,gCAAgC;SACnC;IACL,CAAC;;AAvID;;GAEG;AACW,4BAAE,GAAW,2BAA2B,AAAtC,CAAuC"}
@@ -13,26 +13,25 @@ export class Release {
13
13
  */
14
14
  setupOnce() {
15
15
  addGlobalEventProcessor(async (event) => {
16
- var _a, _b, _c;
17
16
  const self = getCurrentHub().getIntegration(Release);
18
17
  if (!self) {
19
18
  return event;
20
19
  }
21
- const options = (_a = getCurrentHub().getClient()) === null || _a === void 0 ? void 0 : _a.getOptions();
20
+ const options = getCurrentHub().getClient()?.getOptions();
22
21
  /*
23
22
  __sentry_release and __sentry_dist is set by the user with setRelease and setDist. If this is used then this is the strongest.
24
23
  Otherwise we check for the release and dist in the options passed on init, as this is stronger than the release/dist from the native build.
25
24
  */
26
- if (typeof ((_b = event.extra) === null || _b === void 0 ? void 0 : _b.__sentry_release) === 'string') {
25
+ if (typeof event.extra?.__sentry_release === 'string') {
27
26
  event.release = `${event.extra.__sentry_release}`;
28
27
  }
29
- else if (typeof (options === null || options === void 0 ? void 0 : options.release) === 'string') {
28
+ else if (typeof options?.release === 'string') {
30
29
  event.release = options.release;
31
30
  }
32
- if (typeof ((_c = event.extra) === null || _c === void 0 ? void 0 : _c.__sentry_dist) === 'string') {
31
+ if (typeof event.extra?.__sentry_dist === 'string') {
33
32
  event.dist = `${event.extra.__sentry_dist}`;
34
33
  }
35
- else if (typeof (options === null || options === void 0 ? void 0 : options.dist) === 'string') {
34
+ else if (typeof options?.dist === 'string') {
36
35
  event.dist = options.dist;
37
36
  }
38
37
  if (event.release && event.dist) {
@@ -1 +1 @@
1
- {"version":3,"file":"release.js","sourceRoot":"","sources":["../../src/integrations/release.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,iEAAiE;AACjE,MAAM,OAAO,OAAO;IAApB;QACI;;WAEG;QACI,SAAI,GAAW,OAAO,CAAC,EAAE,CAAC;IAqDrC,CAAC;IA/CG;;OAEG;IACI,SAAS;QACZ,uBAAuB,CAAC,KAAK,EAAE,KAAY,EAAE,EAAE;;YAC3C,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACrD,IAAI,CAAC,IAAI,EAAE;gBACP,OAAO,KAAK,CAAC;aAChB;YACD,MAAM,OAAO,GAAG,MAAA,aAAa,EAAE,CAAC,SAAS,EAAE,0CAAE,UAAU,EAAE,CAAC;YAC1D;;;cAGE;YACF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AAI,CAAC;aAC7B;YAED,IAAI,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE;gBAC7B,OAAO,KAAK,CAAC;aAChB;YACD,IAAI;gBACA,MAAM,aAAa,GAAG,CAAC,MAAM,MAAM,CAAC,kBAAkB,EAAE,CAIvD,CAAC;gBACF,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;oBAChB,KAAK,CAAC,OAAO,GAAG,GAAG,aAAa,CAAC,EAAE,IAAI,aAAa,CAAC,OAAO,IAAI,aAAa,CAAC,KAAK,EAAE,CAAC;iBACzF;gBACD,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;oBACb,KAAK,CAAC,IAAI,GAAG,GAAG,aAAa,CAAC,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;iBACxE;aACJ;YAAC,OAAO,GAAG,EAAE;gBACV,yCAAyC;aAC5C;YACD,OAAO,KAAK,CAAC;QACjB,CAAC,CAAC,CAAC;IACP,CAAC;;AAnDD;;GAEG;AACW,UAAE,GAAW,SAAS,AAApB,CAAqB"}
@@ -1 +1 @@
1
- {"version":3,"file":"rewriteframe.js","sourceRoot":"","sources":["../../src/integrations/rewriteframe.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"rewriteframe.js","sourceRoot":"","sources":["../../../src/sentry/integrations/rewriteframe.ts"],"names":[],"mappings":""}
@@ -2,21 +2,21 @@ import { EventHint, Integration } from '@sentry/types';
2
2
  /** Adds screenshots to error events */
3
3
  export declare class Screenshot implements Integration {
4
4
  /**
5
- * @inheritDoc
6
- */
5
+ * @inheritDoc
6
+ */
7
7
  static id: string;
8
8
  /**
9
- * @inheritDoc
10
- */
9
+ * @inheritDoc
10
+ */
11
11
  name: string;
12
12
  /**
13
- * If enabled attaches a screenshot to the event hint.
14
- */
13
+ * If enabled attaches a screenshot to the event hint.
14
+ */
15
15
  static attachScreenshotToEventHint(hint: EventHint, { attachScreenshot }: {
16
16
  attachScreenshot?: boolean;
17
17
  }): EventHint;
18
18
  /**
19
- * @inheritDoc
20
- */
19
+ * @inheritDoc
20
+ */
21
21
  setupOnce(): void;
22
22
  }
@@ -3,34 +3,31 @@ import { NATIVE } from '../wrapper';
3
3
  export class Screenshot {
4
4
  constructor() {
5
5
  /**
6
- * @inheritDoc
7
- */
6
+ * @inheritDoc
7
+ */
8
8
  this.name = Screenshot.id;
9
9
  }
10
10
  /**
11
- * If enabled attaches a screenshot to the event hint.
12
- */
11
+ * If enabled attaches a screenshot to the event hint.
12
+ */
13
13
  static attachScreenshotToEventHint(hint, { attachScreenshot }) {
14
14
  if (!attachScreenshot) {
15
- return (hint);
15
+ return hint;
16
16
  }
17
17
  const screenshots = NATIVE.captureScreenshot();
18
18
  if (screenshots !== null && screenshots.length > 0) {
19
- hint.attachments = [
20
- ...screenshots,
21
- ...((hint === null || hint === void 0 ? void 0 : hint.attachments) || []),
22
- ];
19
+ hint.attachments = [...screenshots, ...(hint?.attachments || [])];
23
20
  }
24
21
  return hint;
25
22
  }
26
23
  /**
27
- * @inheritDoc
28
- */
24
+ * @inheritDoc
25
+ */
29
26
  // eslint-disable-next-line @typescript-eslint/no-empty-function
30
27
  setupOnce() { }
31
28
  }
32
29
  /**
33
- * @inheritDoc
34
- */
30
+ * @inheritDoc
31
+ */
35
32
  Screenshot.id = 'Screenshot';
36
33
  //# sourceMappingURL=screenshot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"screenshot.js","sourceRoot":"","sources":["../../src/integrations/screenshot.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,uCAAuC;AACvC,MAAM,OAAO,UAAU;IAAvB;QAMI;;SAEC;QACM,SAAI,GAAW,UAAU,CAAC,EAAE,CAAC;IA4BxC,CAAC;IA1BG;;KAEC;IACM,MAAM,CAAE,2BAA2B,CACtC,IAAe,EACf,EAAE,gBAAgB,EAAkC;QAEpD,IAAI,CAAC,gB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,CAAwB"}
@@ -1,20 +1,20 @@
1
1
  import { EventProcessor, Integration, SdkInfo as SdkInfoType } from '@sentry/types';
2
- declare type DefaultSdkInfo = Pick<Required<SdkInfoType>, 'name' | 'packages' | 'version'>;
2
+ type DefaultSdkInfo = Pick<Required<SdkInfoType>, 'name' | 'packages' | 'version'>;
3
3
  export declare const defaultSdkInfo: DefaultSdkInfo;
4
4
  /** Default SdkInfo instrumentation */
5
5
  export declare class SdkInfo implements Integration {
6
6
  /**
7
- * @inheritDoc
8
- */
7
+ * @inheritDoc
8
+ */
9
9
  static id: string;
10
10
  /**
11
- * @inheritDoc
12
- */
11
+ * @inheritDoc
12
+ */
13
13
  name: string;
14
14
  private _nativeSdkInfo;
15
15
  /**
16
- * @inheritDoc
17
- */
16
+ * @inheritDoc
17
+ */
18
18
  setupOnce(addGlobalEventProcessor: (e: EventProcessor) => void): void;
19
19
  }
20
20
  export {};
@@ -6,29 +6,28 @@ export const defaultSdkInfo = {
6
6
  packages: [
7
7
  {
8
8
  name: SDK_PACKAGE_NAME,
9
- version: SDK_VERSION,
10
- },
9
+ version: SDK_VERSION
10
+ }
11
11
  ],
12
- version: SDK_VERSION,
12
+ version: SDK_VERSION
13
13
  };
14
14
  /** Default SdkInfo instrumentation */
15
15
  export class SdkInfo {
16
16
  constructor() {
17
17
  /**
18
- * @inheritDoc
19
- */
18
+ * @inheritDoc
19
+ */
20
20
  this.name = SdkInfo.id;
21
21
  this._nativeSdkInfo = null;
22
22
  }
23
23
  /**
24
- * @inheritDoc
25
- */
24
+ * @inheritDoc
25
+ */
26
26
  setupOnce(addGlobalEventProcessor) {
27
27
  addGlobalEventProcessor(async (event) => {
28
- var _a;
29
28
  // The native SDK info package here is only used on iOS as `beforeSend` is not called on `captureEnvelope`.
30
29
  // this._nativeSdkInfo should be defined a following time so this call won't always be awaited.
31
- if (__IOS__ && this._nativeSdkInfo === null) {
30
+ if (this._nativeSdkInfo === null) {
32
31
  try {
33
32
  this._nativeSdkInfo = await NATIVE.fetchNativeSdkInfo();
34
33
  }
@@ -39,17 +38,17 @@ export class SdkInfo {
39
38
  }
40
39
  }
41
40
  event.platform = event.platform || 'javascript';
42
- event.sdk = Object.assign(Object.assign(Object.assign({}, ((_a = event.sdk) !== null && _a !== void 0 ? _a : {})), defaultSdkInfo), { packages: [
43
- ...((event.sdk && event.sdk.packages) || []),
44
- ...((this._nativeSdkInfo && [this._nativeSdkInfo]) || []),
45
- ...defaultSdkInfo.packages,
46
- ] });
41
+ event.sdk = {
42
+ ...(event.sdk ?? {}),
43
+ ...defaultSdkInfo,
44
+ packages: [...((event.sdk && event.sdk.packages) || []), ...((this._nativeSdkInfo && [this._nativeSdkInfo]) || []), ...defaultSdkInfo.packages]
45
+ };
47
46
  return event;
48
47
  });
49
48
  }
50
49
  }
51
50
  /**
52
- * @inheritDoc
53
- */
51
+ * @inheritDoc
52
+ */
54
53
  SdkInfo.id = 'SdkInfo';
55
54
  //# sourceMappingURL=sdkinfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdkinfo.js","sourceRoot":"","sources":["../../src/integrations/sdkinfo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAC,WAAW,EAAE,MAAM,YAAY,CAAC;AAEpE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIpC,MAAM,CAAC,MAAM,cAAc,GAAmB;IAC1C,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE;QACN;YACI,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,WAAW;SACvB;KACJ;IACD,OAAO,EAAE,WAAW;CACvB,CAAC;AAEF,sCAAsC;AACtC,MAAM,OAAO,OAAO;IAApB;QAMI;;SAEC;QACM,SAAI,GAAW,OAAO,CAAC,EAAE,CAAC;QAEzB,mBAAc,GAAmB,IAAI,CAAC;IAmClD,CAAC;IAjCG;;KAEC;IACM,SAAS,CAAC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ACW,UAAE,GAAW,SAAS,AAApB,CAAqB"}
@@ -1 +1 @@
1
- {"version":3,"file":"measurements.js","sourceRoot":"","sources":["../src/measurements.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAC/C,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;AACzC,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AACnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC"}
1
+ {"version":3,"file":"measurements.js","sourceRoot":"","sources":["../../src/sentry/measurements.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAC/C,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;AACzC,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AACnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC"}
package/misc.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { EnvelopeItem } from '@sentry/types';
2
- declare type EnvelopeItemPayload = EnvelopeItem[1];
2
+ type EnvelopeItemPayload = EnvelopeItem[1];
3
3
  /**
4
- * Extracts the hard crash information from the event exceptions.
5
- * No exceptions or undefined handled are not hard crashes.
6
- */
4
+ * Extracts the hard crash information from the event exceptions.
5
+ * No exceptions or undefined handled are not hard crashes.
6
+ */
7
7
  export declare function isHardCrash(payload: EnvelopeItemPayload): boolean;
8
8
  export {};
package/misc.js CHANGED
@@ -1,14 +1,11 @@
1
1
  /**
2
- * Extracts the hard crash information from the event exceptions.
3
- * No exceptions or undefined handled are not hard crashes.
4
- */
2
+ * Extracts the hard crash information from the event exceptions.
3
+ * No exceptions or undefined handled are not hard crashes.
4
+ */
5
5
  export function isHardCrash(payload) {
6
- var _a, _b;
7
- const values = typeof payload !== 'string' && 'exception' in payload && ((_a = payload.exception) === null || _a === void 0 ? void 0 : _a.values)
8
- ? payload.exception.values
9
- : [];
6
+ const values = typeof payload !== 'string' && 'exception' in payload && payload.exception?.values ? payload.exception.values : [];
10
7
  for (const exception of values) {
11
- if (!(((_b = exception.mechanism) === null || _b === void 0 ? void 0 : _b.handled) !== false)) {
8
+ if (!(exception.mechanism?.handled !== false)) {
12
9
  return true;
13
10
  }
14
11
  }
package/misc.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"misc.js","sourceRoot":"","sources":["../src/misc.ts"],"names":[],"mappings":"AAOA;;;KAGK;AACL,MAAM,UAAU,WAAW,CAAC,OAA4B;;IACpD,MAAM,MAAM,GAAgB,OAAO,OAAO,KAAK,QAAQ,IAAI,WAAW,IAAI,OAAO,KAAI,MAAA,OAAO,CAAC,SAAS,0CAAE,MAAM,CAAA;QAC1G,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM;QAC1B,CAAC,CAAC,EAAE,CAAC;IACT,KAAK,MAAM,SAAS,IAAI,MAAM,EAAE;QAC5B,IAAI,CAAC,CAAC,CAAA,MAAA,SAAS,CAAC,SAAS,0CAAE,OAAO,MAAK,KAAK,CAAC,EAAE;YAC3C,OAAO,IAAI,CAAC;SACf;KACJ;IACD,OAAO,KAAK,CAAC;AACjB,CAAC"}
1
+ {"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/sentry/misc.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,OAA4B;IACpD,MAAM,MAAM,GAAgB,OAAO,OAAO,KAAK,QAAQ,IAAI,WAAW,IAAI,OAAO,IAAI,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/I,KAAK,MAAM,SAAS,IAAI,MAAM,EAAE;QAC5B,IAAI,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,OAAO,KAAK,KAAK,CAAC,EAAE;YAC3C,OAAO,IAAI,CAAC;SACf;KACJ;IACD,OAAO,KAAK,CAAC;AACjB,CAAC"}
package/options.d.ts CHANGED
@@ -7,28 +7,32 @@ import { NativescriptErrorHandlersOptions } from './integrations/nativescripterr
7
7
  */
8
8
  export interface BaseNativescriptOptions {
9
9
  /**
10
- * Enables native transport + device info + offline caching.
11
- * Be careful, disabling this also breaks automatic release setting.
12
- * This means you have to manage setting the release yourself.
13
- * Defaults to `true`.
14
- */
10
+ * Enables native transport + device info + offline caching.
11
+ * Be careful, disabling this also breaks automatic release setting.
12
+ * This means you have to manage setting the release yourself.
13
+ * Defaults to `true`.
14
+ */
15
15
  enableNative?: boolean;
16
16
  /**
17
- * Enables native crashHandling. This only works if `enableNative` is `true`.
18
- * Defaults to `true`.
19
- */
17
+ * Enables native crashHandling. This only works if `enableNative` is `true`.
18
+ * Defaults to `true`.
19
+ */
20
20
  enableNativeCrashHandling?: boolean;
21
21
  /**
22
- * Initializes the native SDK on init.
23
- * Set this to `false` if you have an existing native SDK and don't want to re-initialize.
24
- *
25
- * NOTE: Be careful and only use this if you know what you are doing.
26
- * If you use this flag, make sure a native SDK is running before the JS Engine initializes or events might not be captured.
27
- * Also, make sure the DSN on both the React Native side and the native side are the same one.
28
- * We strongly recommend checking the documentation if you need to use this.
29
- *
30
- * @default true
31
- */
22
+ * native integrations to disable.
23
+ */
24
+ disabledNativeIntegrations?: string[];
25
+ /**
26
+ * Initializes the native SDK on init.
27
+ * Set this to `false` if you have an existing native SDK and don't want to re-initialize.
28
+ *
29
+ * NOTE: Be careful and only use this if you know what you are doing.
30
+ * If you use this flag, make sure a native SDK is running before the JS Engine initializes or events might not be captured.
31
+ * Also, make sure the DSN on both the React Native side and the native side are the same one.
32
+ * We strongly recommend checking the documentation if you need to use this.
33
+ *
34
+ * @default true
35
+ */
32
36
  autoInitializeNativeSdk?: boolean;
33
37
  /** Should the native nagger alert be shown or not. */
34
38
  enableNativeNagger?: boolean;
@@ -37,25 +41,25 @@ export interface BaseNativescriptOptions {
37
41
  /** The interval to end a session if the App goes to the background. */
38
42
  sessionTrackingIntervalMillis?: number;
39
43
  /** Enable NDK on Android
40
- *
41
- * @default true
42
- */
44
+ *
45
+ * @default true
46
+ */
43
47
  enableNdk?: boolean;
44
48
  /** Enable scope sync from Java to NDK on Android
45
- * Only has an effect if `enableNdk` is `true`.
46
- */
49
+ * Only has an effect if `enableNdk` is `true`.
50
+ */
47
51
  enableNdkScopeSync?: boolean;
48
52
  /** When enabled, all the threads are automatically attached to all logged events on Android */
49
53
  attachThreads?: boolean;
50
54
  /**
51
- * When enabled, certain personally identifiable information (PII) is added by active integrations.
52
- *
53
- * @default false
54
- */
55
+ * When enabled, certain personally identifiable information (PII) is added by active integrations.
56
+ *
57
+ * @default false
58
+ */
55
59
  sendDefaultPii?: boolean;
56
60
  /**
57
- * Callback that is called after the RN SDK on the JS Layer has made contact with the Native Layer.
58
- */
61
+ * Callback that is called after the RN SDK on the JS Layer has made contact with the Native Layer.
62
+ */
59
63
  onReady?: (response: {
60
64
  /** `true` if the native SDK has been initialized, `false` otherwise. */
61
65
  didCallNativeInit: boolean;
@@ -63,44 +67,44 @@ export interface BaseNativescriptOptions {
63
67
  /** Enable auto performance tracking by default. */
64
68
  enableAutoPerformanceTracking?: boolean;
65
69
  /**
66
- * Enables Out of Memory Tracking for iOS and macCatalyst.
67
- * See the following link for more information and possible restrictions:
68
- * https://docs.sentry.io/platforms/apple/guides/ios/configuration/out-of-memory/
69
- *
70
- * Renamed from `enableOutOfMemoryTracking` in v5.
71
- *
72
- * @default true
73
- */
70
+ * Enables Out of Memory Tracking for iOS and macCatalyst.
71
+ * See the following link for more information and possible restrictions:
72
+ * https://docs.sentry.io/platforms/apple/guides/ios/configuration/out-of-memory/
73
+ *
74
+ * Renamed from `enableOutOfMemoryTracking` in v5.
75
+ *
76
+ * @default true
77
+ */
74
78
  enableWatchdogTerminationTracking?: boolean;
75
79
  /**
76
80
  * Set data to the inital scope
77
81
  * @deprecated Use `Sentry.configureScope(...)`
78
82
  */
79
83
  /**
80
- * The max cache items for capping the number of envelopes.
81
- *
82
- * @default 30
83
- */
84
+ * The max cache items for capping the number of envelopes.
85
+ *
86
+ * @default 30
87
+ */
84
88
  maxCacheItems?: number;
85
89
  /**
86
- * When enabled, the SDK tracks when the application stops responding for a specific amount of
87
- * time defined by the `appHangTimeoutInterval` option.
88
- *
89
- * iOS only
90
- *
91
- * @default true
92
- */
90
+ * When enabled, the SDK tracks when the application stops responding for a specific amount of
91
+ * time defined by the `appHangTimeoutInterval` option.
92
+ *
93
+ * iOS only
94
+ *
95
+ * @default true
96
+ */
93
97
  enableAppHangTracking?: boolean;
94
98
  /**
95
- * The minimum amount of time an app should be unresponsive to be classified as an App Hanging.
96
- * The actual amount may be a little longer.
97
- * Avoid using values lower than 100ms, which may cause a lot of app hangs events being transmitted.
98
- * Value should be in seconds.
99
- *
100
- * iOS only
101
- *
102
- * @default 2
103
- */
99
+ * The minimum amount of time an app should be unresponsive to be classified as an App Hanging.
100
+ * The actual amount may be a little longer.
101
+ * Avoid using values lower than 100ms, which may cause a lot of app hangs events being transmitted.
102
+ * Value should be in seconds.
103
+ *
104
+ * iOS only
105
+ *
106
+ * @default 2
107
+ */
104
108
  appHangsTimeoutInterval?: number;
105
109
  /**
106
110
  * The max queue size for capping the number of envelopes waiting to be sent by Transport.
@@ -112,10 +116,10 @@ export interface BaseNativescriptOptions {
112
116
  colnoOffset?: number;
113
117
  [k: string]: any;
114
118
  /**
115
- * When enabled and a user experiences an error, Sentry provides the ability to take a screenshot and include it as an attachment.
116
- *
117
- * @default false
118
- */
119
+ * When enabled and a user experiences an error, Sentry provides the ability to take a screenshot and include it as an attachment.
120
+ *
121
+ * @default false
122
+ */
119
123
  attachScreenshot?: boolean;
120
124
  /**
121
125
  * When enabled Sentry includes the current view hierarchy in the error attachments.
@@ -154,7 +158,7 @@ export interface BaseNativescriptOptions {
154
158
  export interface ReactNativeTransportOptions extends BrowserTransportOptions {
155
159
  /**
156
160
  * @deprecated use `maxQueueSize` in the root of the SDK options.
157
- */
161
+ */
158
162
  bufferSize?: number;
159
163
  }
160
164
  /**
package/options.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/sentry/options.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/sentry",
3
- "version": "4.6.22",
3
+ "version": "4.6.24",
4
4
  "description": "A cross-platform application monitoring tool, with a focus on error reporting.",
5
5
  "main": "./index",
6
6
  "typings": "./index.d.ts",
@@ -42,5 +42,5 @@
42
42
  "@sentry/utils": "^7.102.1",
43
43
  "stacktrace-parser": "^0.1.10"
44
44
  },
45
- "gitHead": "3c233778b72caaf73b7ff25af7d3f341f1d2c0d4"
45
+ "gitHead": "64b95aad665d72a47606193f45eee51de250af97"
46
46
  }
@@ -4,7 +4,7 @@ repositories {
4
4
  mavenCentral()
5
5
  }
6
6
  dependencies {
7
- def sentryGradleVersion = hasProperty("sentryGradleVersion") ? sentryGradleVersion : "4.0.0"
7
+ def sentryGradleVersion = hasProperty("sentryGradleVersion") ? sentryGradleVersion : "4.3.0"
8
8
  println "sentryGradleVersion $sentryGradleVersion"
9
9
  classpath "io.sentry:sentry-android-gradle-plugin:$sentryGradleVersion"
10
10
  }
@@ -7,7 +7,7 @@ android {
7
7
  }
8
8
  }
9
9
  dependencies {
10
- def sentryVersion = project.hasProperty("sentryVersion") ? project.sentryVersion : "7.0.0"
10
+ def sentryVersion = project.hasProperty("sentryVersion") ? project.sentryVersion : "7.4.0"
11
11
  println("sentryVersion $sentryVersion")
12
12
  implementation "io.sentry:sentry-android:$sentryVersion"
13
13
  }
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "uses": [
3
+ "androidx.core.app:FrameMetricsAggregator",
3
4
  "io.sentry.android.core.internal.util:ScreenshotUtils",
4
5
  "io.sentry.android.core:AndroidLogger",
5
6
  "io.sentry.android.core:AnrIntegration",
6
7
  "io.sentry.android.core:AppStartState",
7
8
  "io.sentry.android.core:BuildInfoProvider",
9
+ "io.sentry.android.core:InternalSentrySdk",
8
10
  "io.sentry.android.core:CurrentActivityHolder",
9
11
  "io.sentry.android.core:NdkIntegration",
10
12
  "io.sentry.android.core:SentryAndroid",
13
+ "io.sentry.android.core:SentryAndroidOptions",
11
14
  "io.sentry.exception:ExceptionMechanismException",
12
15
  "io.sentry.protocol:Message",
13
16
  "io.sentry.protocol:SdkVersion",
@@ -21,8 +24,10 @@
21
24
  "io.sentry.transport:ITransportGate",
22
25
  "io.sentry.transport:RateLimiter",
23
26
  "io.sentry:Breadcrumb",
27
+ "io.sentry:HubAdapter",
24
28
  "io.sentry:Integration",
25
29
  "io.sentry:ILogger",
30
+ "io.sentry:IScope",
26
31
  "io.sentry:ITransportFactory",
27
32
  "io.sentry:RequestDetails",
28
33
  "io.sentry:ScopeCallback",
@@ -43,6 +48,7 @@
43
48
  "java.lang:Thread",
44
49
  "java.nio.charset:Charset",
45
50
  "java.nio:CharBuffer",
51
+ "java.util:Collection",
46
52
  "java.util:Map",
47
53
  "java.util:UUID"
48
54
  ]
package/process.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"process.js","sourceRoot":"","sources":["../src/process.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO;CACZ;AACD,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;AAElD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,GAAG,IAAI,OAAO,EAAS,CAAC"}
1
+ {"version":3,"file":"process.js","sourceRoot":"","sources":["../../src/sentry/process.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO;CAAG;AAChB,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;AAElD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,GAAG,IAAI,OAAO,EAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ /* eslint-disable spaced-comment */
2
+ /// <reference path="./typings/android.d.ts" />
3
+ /// <reference path="./typings/ios.d.ts" />
4
+ /// <reference path="./typings/ns.ios.d.ts" />
5
+
6
+ declare const TNS_ENV: string;