@datadog/mobile-react-native 1.0.0-rc2 → 1.0.0-rc5

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 (108) hide show
  1. package/DatadogSDKReactNative.podspec +1 -1
  2. package/README.md +8 -121
  3. package/android/build.gradle +2 -3
  4. package/android/src/main/java/com/datadog/reactnative/DdRum.kt +25 -24
  5. package/android/src/main/java/com/datadog/reactnative/DdTrace.kt +6 -6
  6. package/ios/Sources/DdRum.m +10 -9
  7. package/ios/Sources/DdRum.swift +24 -24
  8. package/ios/Sources/DdTrace.m +2 -2
  9. package/ios/Sources/DdTrace.swift +6 -6
  10. package/ios/Sources/QueueHolder.swift +1 -1
  11. package/lib/commonjs/DdSdkReactNative.js +63 -0
  12. package/lib/commonjs/DdSdkReactNative.js.map +1 -1
  13. package/lib/commonjs/DdSdkReactNativeConfiguration.js +9 -1
  14. package/lib/commonjs/DdSdkReactNativeConfiguration.js.map +1 -1
  15. package/lib/commonjs/InternalLog.js +51 -0
  16. package/lib/commonjs/InternalLog.js.map +1 -0
  17. package/lib/commonjs/ProxyConfiguration.js +53 -0
  18. package/lib/commonjs/ProxyConfiguration.js.map +1 -0
  19. package/lib/commonjs/SdkVerbosity.js +26 -0
  20. package/lib/commonjs/SdkVerbosity.js.map +1 -0
  21. package/lib/commonjs/Timer.js +99 -0
  22. package/lib/commonjs/Timer.js.map +1 -0
  23. package/lib/commonjs/foundation.js +102 -45
  24. package/lib/commonjs/foundation.js.map +1 -1
  25. package/lib/commonjs/index.js +28 -6
  26. package/lib/commonjs/index.js.map +1 -1
  27. package/lib/commonjs/rum/instrumentation/DdEventsInterceptor.js +6 -2
  28. package/lib/commonjs/rum/instrumentation/DdEventsInterceptor.js.map +1 -1
  29. package/lib/commonjs/rum/instrumentation/DdRumErrorTracking.js +61 -14
  30. package/lib/commonjs/rum/instrumentation/DdRumErrorTracking.js.map +1 -1
  31. package/lib/commonjs/rum/instrumentation/DdRumResourceTracking.js +110 -17
  32. package/lib/commonjs/rum/instrumentation/DdRumResourceTracking.js.map +1 -1
  33. package/lib/commonjs/rum/instrumentation/DdRumUserInteractionTracking.js +16 -4
  34. package/lib/commonjs/rum/instrumentation/DdRumUserInteractionTracking.js.map +1 -1
  35. package/lib/commonjs/rum/instrumentation/DdRumXhr.js +4 -0
  36. package/lib/commonjs/rum/instrumentation/NoOpEventsInterceptor.js +1 -1
  37. package/lib/commonjs/rum/instrumentation/NoOpEventsInterceptor.js.map +1 -1
  38. package/lib/commonjs/types.js.map +1 -1
  39. package/lib/commonjs/version.js +10 -0
  40. package/lib/commonjs/version.js.map +1 -0
  41. package/lib/module/DdSdkReactNative.js +54 -1
  42. package/lib/module/DdSdkReactNative.js.map +1 -1
  43. package/lib/module/DdSdkReactNativeConfiguration.js +9 -1
  44. package/lib/module/DdSdkReactNativeConfiguration.js.map +1 -1
  45. package/lib/module/InternalLog.js +46 -0
  46. package/lib/module/InternalLog.js.map +1 -0
  47. package/lib/module/ProxyConfiguration.js +46 -0
  48. package/lib/module/ProxyConfiguration.js.map +1 -0
  49. package/lib/module/SdkVerbosity.js +18 -0
  50. package/lib/module/SdkVerbosity.js.map +1 -0
  51. package/lib/module/Timer.js +90 -0
  52. package/lib/module/Timer.js.map +1 -0
  53. package/lib/module/foundation.js +69 -44
  54. package/lib/module/foundation.js.map +1 -1
  55. package/lib/module/index.js +3 -1
  56. package/lib/module/index.js.map +1 -1
  57. package/lib/module/rum/instrumentation/DdEventsInterceptor.js +5 -1
  58. package/lib/module/rum/instrumentation/DdEventsInterceptor.js.map +1 -1
  59. package/lib/module/rum/instrumentation/DdRumErrorTracking.js +56 -14
  60. package/lib/module/rum/instrumentation/DdRumErrorTracking.js.map +1 -1
  61. package/lib/module/rum/instrumentation/DdRumResourceTracking.js +99 -17
  62. package/lib/module/rum/instrumentation/DdRumResourceTracking.js.map +1 -1
  63. package/lib/module/rum/instrumentation/DdRumUserInteractionTracking.js +12 -4
  64. package/lib/module/rum/instrumentation/DdRumUserInteractionTracking.js.map +1 -1
  65. package/lib/module/rum/instrumentation/DdRumXhr.js +1 -1
  66. package/lib/module/rum/instrumentation/NoOpEventsInterceptor.js +1 -1
  67. package/lib/module/rum/instrumentation/NoOpEventsInterceptor.js.map +1 -1
  68. package/lib/module/types.js.map +1 -1
  69. package/lib/module/version.js +3 -0
  70. package/lib/module/version.js.map +1 -0
  71. package/lib/typescript/DdSdkReactNative.d.ts +9 -0
  72. package/lib/typescript/DdSdkReactNativeConfiguration.d.ts +5 -2
  73. package/lib/typescript/InternalLog.d.ts +6 -0
  74. package/lib/typescript/ProxyConfiguration.d.ts +56 -0
  75. package/lib/typescript/SdkVerbosity.d.ts +9 -0
  76. package/lib/typescript/Timer.d.ts +20 -0
  77. package/lib/typescript/index.d.ts +3 -1
  78. package/lib/typescript/rum/instrumentation/DdRumErrorTracking.d.ts +2 -0
  79. package/lib/typescript/rum/instrumentation/DdRumResourceTracking.d.ts +4 -0
  80. package/lib/typescript/rum/instrumentation/DdRumXhr.d.ts +2 -2
  81. package/lib/typescript/types.d.ts +12 -11
  82. package/lib/typescript/version.d.ts +1 -0
  83. package/package.json +3 -3
  84. package/src/DdSdkReactNative.tsx +57 -8
  85. package/src/DdSdkReactNativeConfiguration.tsx +6 -3
  86. package/src/InternalLog.tsx +48 -0
  87. package/src/ProxyConfiguration.tsx +37 -0
  88. package/src/{NativeSdkVerbosity.tsx → SdkVerbosity.tsx} +2 -2
  89. package/src/Timer.ts +96 -0
  90. package/src/__tests__/DdRumWrapper.test.tsx +91 -0
  91. package/src/__tests__/DdSdkReactNative.test.tsx +213 -13
  92. package/src/__tests__/InternalLog.test.tsx +382 -0
  93. package/src/__tests__/Timer.test.ts +145 -0
  94. package/src/__tests__/rum/instrumentation/DdRumErrorTracking.test.tsx +155 -12
  95. package/src/__tests__/rum/instrumentation/DdRumResourceTracking.test.tsx +270 -26
  96. package/src/foundation.tsx +43 -33
  97. package/src/index.tsx +4 -2
  98. package/src/rum/instrumentation/DdRumErrorTracking.tsx +68 -27
  99. package/src/rum/instrumentation/DdRumResourceTracking.tsx +96 -22
  100. package/src/rum/instrumentation/DdRumUserInteractionTracking.tsx +4 -0
  101. package/src/rum/instrumentation/DdRumXhr.tsx +6 -5
  102. package/src/types.tsx +12 -11
  103. package/src/version.ts +2 -0
  104. package/lib/commonjs/NativeSdkVerbosity.js +0 -26
  105. package/lib/commonjs/NativeSdkVerbosity.js.map +0 -1
  106. package/lib/module/NativeSdkVerbosity.js +0 -18
  107. package/lib/module/NativeSdkVerbosity.js.map +0 -1
  108. package/lib/typescript/NativeSdkVerbosity.d.ts +0 -9
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.NativeSdkVerbosity = void 0;
7
-
8
- /*
9
- * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
10
- * This product includes software developed at Datadog (https://www.datadoghq.com/).
11
- * Copyright 2016-Present Datadog, Inc.
12
- */
13
-
14
- /**
15
- * Enum specifying possible consent options for DD SDK.
16
- */
17
- let NativeSdkVerbosity;
18
- exports.NativeSdkVerbosity = NativeSdkVerbosity;
19
-
20
- (function (NativeSdkVerbosity) {
21
- NativeSdkVerbosity["DEBUG"] = "debug";
22
- NativeSdkVerbosity["INFO"] = "info";
23
- NativeSdkVerbosity["WARN"] = "warn";
24
- NativeSdkVerbosity["ERROR"] = "error";
25
- })(NativeSdkVerbosity || (exports.NativeSdkVerbosity = NativeSdkVerbosity = {}));
26
- //# sourceMappingURL=NativeSdkVerbosity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["NativeSdkVerbosity.tsx"],"names":["NativeSdkVerbosity"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;IACYA,kB;;;WAAAA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;GAAAA,kB,kCAAAA,kB","sourcesContent":["/*\n * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2016-Present Datadog, Inc.\n */\n\n/**\n * Enum specifying possible consent options for DD SDK.\n */\nexport enum NativeSdkVerbosity {\n DEBUG = \"debug\",\n INFO = \"info\",\n WARN = \"warn\",\n ERROR = \"error\"\n}\n"]}
@@ -1,18 +0,0 @@
1
- /*
2
- * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
3
- * This product includes software developed at Datadog (https://www.datadoghq.com/).
4
- * Copyright 2016-Present Datadog, Inc.
5
- */
6
-
7
- /**
8
- * Enum specifying possible consent options for DD SDK.
9
- */
10
- export let NativeSdkVerbosity;
11
-
12
- (function (NativeSdkVerbosity) {
13
- NativeSdkVerbosity["DEBUG"] = "debug";
14
- NativeSdkVerbosity["INFO"] = "info";
15
- NativeSdkVerbosity["WARN"] = "warn";
16
- NativeSdkVerbosity["ERROR"] = "error";
17
- })(NativeSdkVerbosity || (NativeSdkVerbosity = {}));
18
- //# sourceMappingURL=NativeSdkVerbosity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["NativeSdkVerbosity.tsx"],"names":["NativeSdkVerbosity"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAYA,kBAAZ;;WAAYA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;GAAAA,kB,KAAAA,kB","sourcesContent":["/*\n * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2016-Present Datadog, Inc.\n */\n\n/**\n * Enum specifying possible consent options for DD SDK.\n */\nexport enum NativeSdkVerbosity {\n DEBUG = \"debug\",\n INFO = \"info\",\n WARN = \"warn\",\n ERROR = \"error\"\n}\n"]}
@@ -1,9 +0,0 @@
1
- /**
2
- * Enum specifying possible consent options for DD SDK.
3
- */
4
- export declare enum NativeSdkVerbosity {
5
- DEBUG = "debug",
6
- INFO = "info",
7
- WARN = "warn",
8
- ERROR = "error"
9
- }