@datadog/mobile-react-native-webview 1.9.0 → 2.0.0-rc.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["NativeDdSdk.ts"],"names":["NativeDdSdk","TurboModuleRegistry","get"],"mappings":";;;;;;;AAOA;;AAPA;AACA;AACA;AACA;AACA;AAaO,MAAMA,WAAW,GAAGC,iCAAoBC,GAApB,CACvB,OADuB,CAApB","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\nimport type { TurboModule } from 'react-native';\nimport { TurboModuleRegistry } from 'react-native';\n\n/**\n * We have to redefine the spec for the Native SDK here to be able to use the new architecture.\n * We don't declare it in a spec file so we don't end up with a duplicate definition of the native module.\n */\
|
|
1
|
+
{"version":3,"sources":["NativeDdSdk.ts"],"names":["NativeDdSdk","TurboModuleRegistry","get"],"mappings":";;;;;;;AAOA;;AAPA;AACA;AACA;AACA;AACA;AAaO,MAAMA,WAAW,GAAGC,iCAAoBC,GAApB,CACvB,OADuB,CAApB","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\nimport type { TurboModule } from 'react-native';\nimport { TurboModuleRegistry } from 'react-native';\n\n/**\n * We have to redefine the spec for the Native SDK here to be able to use the new architecture.\n * We don't declare it in a spec file so we don't end up with a duplicate definition of the native module.\n */\nexport interface PartialNativeDdSdkSpec extends TurboModule {\n consumeWebviewEvent(message: string): Promise<void>;\n telemetryError(message: string, stack: string, kind: string): Promise<void>;\n}\nexport const NativeDdSdk = TurboModuleRegistry.get<PartialNativeDdSdkSpec>(\n 'DdSdk'\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["NativeDdSdk.ts"],"names":["TurboModuleRegistry","NativeDdSdk","get"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AAGA,SAASA,mBAAT,QAAoC,cAApC;AAEA;AACA;AACA;AACA;;AAKA,OAAO,MAAMC,WAAW,GAAGD,mBAAmB,CAACE,GAApB,CACvB,OADuB,CAApB","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\nimport type { TurboModule } from 'react-native';\nimport { TurboModuleRegistry } from 'react-native';\n\n/**\n * We have to redefine the spec for the Native SDK here to be able to use the new architecture.\n * We don't declare it in a spec file so we don't end up with a duplicate definition of the native module.\n */\
|
|
1
|
+
{"version":3,"sources":["NativeDdSdk.ts"],"names":["TurboModuleRegistry","NativeDdSdk","get"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AAGA,SAASA,mBAAT,QAAoC,cAApC;AAEA;AACA;AACA;AACA;;AAKA,OAAO,MAAMC,WAAW,GAAGD,mBAAmB,CAACE,GAApB,CACvB,OADuB,CAApB","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\nimport type { TurboModule } from 'react-native';\nimport { TurboModuleRegistry } from 'react-native';\n\n/**\n * We have to redefine the spec for the Native SDK here to be able to use the new architecture.\n * We don't declare it in a spec file so we don't end up with a duplicate definition of the native module.\n */\nexport interface PartialNativeDdSdkSpec extends TurboModule {\n consumeWebviewEvent(message: string): Promise<void>;\n telemetryError(message: string, stack: string, kind: string): Promise<void>;\n}\nexport const NativeDdSdk = TurboModuleRegistry.get<PartialNativeDdSdkSpec>(\n 'DdSdk'\n);\n"]}
|
|
@@ -3,9 +3,8 @@ import type { TurboModule } from 'react-native';
|
|
|
3
3
|
* We have to redefine the spec for the Native SDK here to be able to use the new architecture.
|
|
4
4
|
* We don't declare it in a spec file so we don't end up with a duplicate definition of the native module.
|
|
5
5
|
*/
|
|
6
|
-
interface PartialNativeDdSdkSpec extends TurboModule {
|
|
6
|
+
export interface PartialNativeDdSdkSpec extends TurboModule {
|
|
7
7
|
consumeWebviewEvent(message: string): Promise<void>;
|
|
8
8
|
telemetryError(message: string, stack: string, kind: string): Promise<void>;
|
|
9
9
|
}
|
|
10
10
|
export declare const NativeDdSdk: PartialNativeDdSdkSpec | null;
|
|
11
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datadog/mobile-react-native-webview",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.0",
|
|
4
4
|
"description": "A client-side React Native module to interact with react-native-webview and Datadog",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datadog",
|
|
@@ -49,13 +49,18 @@
|
|
|
49
49
|
},
|
|
50
50
|
"jest": {
|
|
51
51
|
"preset": "react-native",
|
|
52
|
+
"moduleNameMapper": {
|
|
53
|
+
"@datadog/mobile-react-native": "<rootDir>../core/src"
|
|
54
|
+
},
|
|
52
55
|
"modulePathIgnorePatterns": [
|
|
53
56
|
"<rootDir>/lib/"
|
|
54
57
|
],
|
|
55
58
|
"testPathIgnorePatterns": [
|
|
56
59
|
"/__utils__/"
|
|
57
60
|
],
|
|
58
|
-
"transformIgnorePatterns": [
|
|
61
|
+
"transformIgnorePatterns": [
|
|
62
|
+
"jest-runner"
|
|
63
|
+
]
|
|
59
64
|
},
|
|
60
65
|
"react-native-builder-bob": {
|
|
61
66
|
"source": "src",
|
|
@@ -71,5 +76,5 @@
|
|
|
71
76
|
]
|
|
72
77
|
]
|
|
73
78
|
},
|
|
74
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "b669a61b193a49c512116947c8ca46e27cc2eb67"
|
|
75
80
|
}
|
package/src/NativeDdSdk.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { TurboModuleRegistry } from 'react-native';
|
|
|
11
11
|
* We have to redefine the spec for the Native SDK here to be able to use the new architecture.
|
|
12
12
|
* We don't declare it in a spec file so we don't end up with a duplicate definition of the native module.
|
|
13
13
|
*/
|
|
14
|
-
interface PartialNativeDdSdkSpec extends TurboModule {
|
|
14
|
+
export interface PartialNativeDdSdkSpec extends TurboModule {
|
|
15
15
|
consumeWebviewEvent(message: string): Promise<void>;
|
|
16
16
|
telemetryError(message: string, stack: string, kind: string): Promise<void>;
|
|
17
17
|
}
|