@datadog/mobile-react-native 2.11.1 → 2.12.1
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/README.md +2 -2
- package/android/src/main/kotlin/com/datadog/reactnative/SdkVersion.kt +1 -1
- package/datadog-sourcemaps.gradle +5 -0
- package/ios/Sources/SdkVersion.swift +1 -1
- package/lib/commonjs/DdSdkReactNative.js +1 -0
- package/lib/commonjs/DdSdkReactNative.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/metro/plugin/debugIdHelper.js +4 -5
- package/lib/commonjs/metro/plugin/debugIdHelper.js.map +1 -1
- package/lib/commonjs/metro/plugin/metroSerializer.js +7 -11
- package/lib/commonjs/metro/plugin/metroSerializer.js.map +1 -1
- package/lib/commonjs/metro/plugin/utils.js +145 -66
- package/lib/commonjs/metro/plugin/utils.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.js +43 -21
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.js +2 -2
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/interactionTracking/ddBabelUtils.js +120 -0
- package/lib/commonjs/rum/instrumentation/interactionTracking/ddBabelUtils.js.map +1 -0
- package/lib/commonjs/version.js +1 -1
- package/lib/module/DdSdkReactNative.js +1 -0
- package/lib/module/DdSdkReactNative.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/metro/plugin/debugIdHelper.js +3 -3
- package/lib/module/metro/plugin/debugIdHelper.js.map +1 -1
- package/lib/module/metro/plugin/metroSerializer.js +6 -8
- package/lib/module/metro/plugin/metroSerializer.js.map +1 -1
- package/lib/module/metro/plugin/utils.js +134 -60
- package/lib/module/metro/plugin/utils.js.map +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.js +43 -21
- package/lib/module/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.js.map +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.js +2 -2
- package/lib/module/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.js.map +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/ddBabelUtils.js +113 -0
- package/lib/module/rum/instrumentation/interactionTracking/ddBabelUtils.js.map +1 -0
- package/lib/module/version.js +1 -1
- package/lib/typescript/DdSdkReactNative.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/metro/plugin/debugIdHelper.d.ts.map +1 -1
- package/lib/typescript/metro/plugin/metroSerializer.d.ts.map +1 -1
- package/lib/typescript/metro/plugin/utils.d.ts +62 -11
- package/lib/typescript/metro/plugin/utils.d.ts.map +1 -1
- package/lib/typescript/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts +19 -5
- package/lib/typescript/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts.map +1 -1
- package/lib/typescript/rum/instrumentation/interactionTracking/ddBabelUtils.d.ts +9 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/ddBabelUtils.d.ts.map +1 -0
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/DdSdkReactNative.tsx +2 -0
- package/src/index.tsx +3 -1
- package/src/metro/__tests__/__utils__/serializerUtils.ts +6 -4
- package/src/metro/__tests__/metro.test.ts +254 -0
- package/src/metro/metro.d.ts +4 -4
- package/src/metro/plugin/debugIdHelper.ts +3 -3
- package/src/metro/plugin/metroSerializer.ts +8 -9
- package/src/metro/plugin/utils.ts +189 -86
- package/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.ts +83 -33
- package/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx +2 -2
- package/src/rum/instrumentation/interactionTracking/ddBabelUtils.ts +146 -0
- package/src/version.ts +1 -1
- package/lib/commonjs/utils/telemetry.js +0 -23
- package/lib/commonjs/utils/telemetry.js.map +0 -1
- package/lib/module/utils/telemetry.js +0 -16
- package/lib/module/utils/telemetry.js.map +0 -1
- package/lib/typescript/utils/telemetry.d.ts +0 -7
- package/lib/typescript/utils/telemetry.d.ts.map +0 -1
- package/src/utils/telemetry.ts +0 -17
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getBabelTelemetryConfig = void 0;
|
|
7
|
-
var _DdBabelInteractionTracking = require("../rum/instrumentation/interactionTracking/DdBabelInteractionTracking");
|
|
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
|
-
const getBabelTelemetryConfig = () => {
|
|
15
|
-
return {
|
|
16
|
-
babel_plugin: {
|
|
17
|
-
enabled: !!globalThis.__DD_RN_BABEL_PLUGIN_ENABLED__,
|
|
18
|
-
track_interactions: !!_DdBabelInteractionTracking.DdBabelInteractionTracking.config.trackInteractions
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.getBabelTelemetryConfig = getBabelTelemetryConfig;
|
|
23
|
-
//# sourceMappingURL=telemetry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_DdBabelInteractionTracking","require","getBabelTelemetryConfig","babel_plugin","enabled","globalThis","__DD_RN_BABEL_PLUGIN_ENABLED__","track_interactions","DdBabelInteractionTracking","config","trackInteractions","exports"],"sourceRoot":"../../../src","sources":["utils/telemetry.ts"],"mappings":";;;;;;AAMA,IAAAA,2BAAA,GAAAC,OAAA;AANA;AACA;AACA;AACA;AACA;;AAIO,MAAMC,uBAAuB,GAAGA,CAAA,KAAM;EACzC,OAAO;IACHC,YAAY,EAAE;MACVC,OAAO,EAAE,CAAC,CAACC,UAAU,CAACC,8BAA8B;MACpDC,kBAAkB,EAAE,CAAC,CAACC,sDAA0B,CAACC,MAAM,CAClDC;IACT;EACJ,CAAC;AACL,CAAC;AAACC,OAAA,CAAAT,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -1,16 +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
|
-
import { DdBabelInteractionTracking } from '../rum/instrumentation/interactionTracking/DdBabelInteractionTracking';
|
|
8
|
-
export const getBabelTelemetryConfig = () => {
|
|
9
|
-
return {
|
|
10
|
-
babel_plugin: {
|
|
11
|
-
enabled: !!globalThis.__DD_RN_BABEL_PLUGIN_ENABLED__,
|
|
12
|
-
track_interactions: !!DdBabelInteractionTracking.config.trackInteractions
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=telemetry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DdBabelInteractionTracking","getBabelTelemetryConfig","babel_plugin","enabled","globalThis","__DD_RN_BABEL_PLUGIN_ENABLED__","track_interactions","config","trackInteractions"],"sourceRoot":"../../../src","sources":["utils/telemetry.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,0BAA0B,QAAQ,uEAAuE;AAElH,OAAO,MAAMC,uBAAuB,GAAGA,CAAA,KAAM;EACzC,OAAO;IACHC,YAAY,EAAE;MACVC,OAAO,EAAE,CAAC,CAACC,UAAU,CAACC,8BAA8B;MACpDC,kBAAkB,EAAE,CAAC,CAACN,0BAA0B,CAACO,MAAM,CAClDC;IACT;EACJ,CAAC;AACL,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../../src/utils/telemetry.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,uBAAuB;;;;;CAQnC,CAAC"}
|
package/src/utils/telemetry.ts
DELETED
|
@@ -1,17 +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
|
-
import { DdBabelInteractionTracking } from '../rum/instrumentation/interactionTracking/DdBabelInteractionTracking';
|
|
8
|
-
|
|
9
|
-
export const getBabelTelemetryConfig = () => {
|
|
10
|
-
return {
|
|
11
|
-
babel_plugin: {
|
|
12
|
-
enabled: !!globalThis.__DD_RN_BABEL_PLUGIN_ENABLED__,
|
|
13
|
-
track_interactions: !!DdBabelInteractionTracking.config
|
|
14
|
-
.trackInteractions
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
};
|