@datadog/mobile-react-native-code-push 1.9.0 → 2.0.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/lib/typescript/core/src/index.d.ts +2 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts +4 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +6 -0
- package/lib/typescript/core/src/utils/jsUtils.d.ts +1 -0
- package/lib/typescript/core/src/version.d.ts +1 -1
- package/package.json +78 -73
- /package/lib/typescript/core/src/{TimeProvider.d.ts → utils/TimeProvider.d.ts} +0 -0
- /package/lib/typescript/core/src/{Timer.d.ts → utils/Timer.d.ts} +0 -0
- /package/lib/typescript/core/src/{errorUtils.d.ts → utils/errorUtils.d.ts} +0 -0
- /package/lib/typescript/core/src/{longTasksUtils.d.ts → utils/longTasksUtils.d.ts} +0 -0
|
@@ -6,7 +6,8 @@ import { SdkVerbosity } from './SdkVerbosity';
|
|
|
6
6
|
import { TrackingConsent } from './TrackingConsent';
|
|
7
7
|
import { DdLogs } from './logs/DdLogs';
|
|
8
8
|
import { DdRum } from './rum/DdRum';
|
|
9
|
+
import { DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER } from './rum/instrumentation/resourceTracking/graphql/graphqlHeaders';
|
|
9
10
|
import { RumActionType, ErrorSource, PropagatorType } from './rum/types';
|
|
10
11
|
import { DatadogProvider } from './sdk/DatadogProvider/DatadogProvider';
|
|
11
12
|
import { DdTrace } from './trace/DdTrace';
|
|
12
|
-
export { DatadogProvider, DatadogProviderConfiguration, InitializationMode, DdLogs, DdTrace, DdRum, RumActionType, ErrorSource, DdSdkReactNativeConfiguration, DdSdkReactNative, InternalLog, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity, VitalsUpdateFrequency, PropagatorType, UploadFrequency, BatchSize };
|
|
13
|
+
export { DatadogProvider, DatadogProviderConfiguration, InitializationMode, DdLogs, DdTrace, DdRum, RumActionType, ErrorSource, DdSdkReactNativeConfiguration, DdSdkReactNative, InternalLog, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity, VitalsUpdateFrequency, PropagatorType, UploadFrequency, BatchSize, DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER };
|
|
@@ -11,6 +11,7 @@ export declare const PARENT_ID_HEADER_KEY = "x-datadog-parent-id";
|
|
|
11
11
|
* OTel headers
|
|
12
12
|
*/
|
|
13
13
|
export declare const TRACECONTEXT_HEADER_KEY = "traceparent";
|
|
14
|
+
export declare const TRACESTATE_HEADER_KEY = "tracestate";
|
|
14
15
|
export declare const B3_HEADER_KEY = "b3";
|
|
15
16
|
export declare const B3_MULTI_TRACE_ID_HEADER_KEY = "X-B3-TraceId";
|
|
16
17
|
export declare const B3_MULTI_SPAN_ID_HEADER_KEY = "X-B3-SpanId";
|
package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const DATADOG_GRAPH_QL_OPERATION_NAME_HEADER: string;
|
|
2
|
+
export declare const DATADOG_GRAPH_QL_VARIABLES_HEADER: string;
|
|
3
|
+
export declare const DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER: string;
|
|
4
|
+
export declare const isDatadogCustomHeader: (header: string) => RegExpMatchArray | null;
|
|
@@ -12,6 +12,7 @@ export declare class XHRProxy extends RequestProxy {
|
|
|
12
12
|
private providers;
|
|
13
13
|
private static originalXhrOpen;
|
|
14
14
|
private static originalXhrSend;
|
|
15
|
+
private static originalXhrSetRequestHeader;
|
|
15
16
|
constructor(providers: XHRProxyProviders);
|
|
16
17
|
onTrackingStart: (context: RequestProxyOptions) => void;
|
|
17
18
|
onTrackingStop: () => void;
|
|
@@ -8,6 +8,7 @@ export interface RUMResource {
|
|
|
8
8
|
kind: ResourceKind;
|
|
9
9
|
};
|
|
10
10
|
tracingAttributes: DdRumResourceTracingAttributes;
|
|
11
|
+
graphqlAttributes?: DdRumResourceGraphqlAttributes;
|
|
11
12
|
response: {
|
|
12
13
|
statusCode: number;
|
|
13
14
|
size: number;
|
|
@@ -19,3 +20,8 @@ export interface RUMResource {
|
|
|
19
20
|
};
|
|
20
21
|
resourceContext?: XMLHttpRequest;
|
|
21
22
|
}
|
|
23
|
+
export declare type DdRumResourceGraphqlAttributes = {
|
|
24
|
+
operationType?: string;
|
|
25
|
+
operationName?: string;
|
|
26
|
+
variables?: string;
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const executeWithDelay: <T>(callback: () => T, delay: number) => Promise<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "
|
|
1
|
+
export declare const version = "2.0.0";
|
package/package.json
CHANGED
|
@@ -1,77 +1,82 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
],
|
|
13
|
-
"author": "Datadog (https://github.com/DataDog)",
|
|
14
|
-
"homepage": "https://github.com/DataDog/dd-sdk-reactnative#readme",
|
|
15
|
-
"repository": {
|
|
16
|
-
"url": "https://github.com/DataDog/dd-sdk-reactnative",
|
|
17
|
-
"directory": "packages/codepush"
|
|
18
|
-
},
|
|
19
|
-
"bugs": {
|
|
20
|
-
"url": "https://github.com/DataDog/dd-sdk-reactnative/issues"
|
|
21
|
-
},
|
|
22
|
-
"license": "Apache-2.0",
|
|
23
|
-
"main": "lib/commonjs/index",
|
|
24
|
-
"files": [
|
|
25
|
-
"src/**",
|
|
26
|
-
"lib/**"
|
|
27
|
-
],
|
|
28
|
-
"types": "lib/typescript/codepush/src/index.d.ts",
|
|
29
|
-
"react-native": "src/index",
|
|
30
|
-
"source": "src/index",
|
|
31
|
-
"module": "lib/module/index",
|
|
32
|
-
"publishConfig": {
|
|
33
|
-
"access": "public"
|
|
34
|
-
},
|
|
35
|
-
"scripts": {
|
|
36
|
-
"test": "jest",
|
|
37
|
-
"lint": "eslint .",
|
|
38
|
-
"prepare": "rm -rf lib && yarn bob build"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@datadog/mobile-react-native": "^1.9.0",
|
|
42
|
-
"@testing-library/react-native": "7.0.2",
|
|
43
|
-
"react-native-builder-bob": "0.17.1",
|
|
44
|
-
"react-native-code-push": "7.0.5"
|
|
45
|
-
},
|
|
46
|
-
"peerDependencies": {
|
|
47
|
-
"@datadog/mobile-react-native": "^1.0.0-beta4",
|
|
48
|
-
"react": ">=16.13.1",
|
|
49
|
-
"react-native": ">=0.63.4 <1.0",
|
|
50
|
-
"react-native-code-push": ">=2.0.0"
|
|
51
|
-
},
|
|
52
|
-
"jest": {
|
|
53
|
-
"preset": "react-native",
|
|
54
|
-
"modulePathIgnorePatterns": [
|
|
55
|
-
"<rootDir>/lib/"
|
|
2
|
+
"name": "@datadog/mobile-react-native-code-push",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "A client-side React Native module to interact with Appcenter Codepush and Datadog",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"datadog",
|
|
7
|
+
"react-native",
|
|
8
|
+
"ios",
|
|
9
|
+
"android",
|
|
10
|
+
"codepush",
|
|
11
|
+
"appcenter"
|
|
56
12
|
],
|
|
57
|
-
"
|
|
58
|
-
|
|
13
|
+
"author": "Datadog (https://github.com/DataDog)",
|
|
14
|
+
"homepage": "https://github.com/DataDog/dd-sdk-reactnative#readme",
|
|
15
|
+
"repository": {
|
|
16
|
+
"url": "https://github.com/DataDog/dd-sdk-reactnative",
|
|
17
|
+
"directory": "packages/codepush"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/DataDog/dd-sdk-reactnative/issues"
|
|
21
|
+
},
|
|
22
|
+
"license": "Apache-2.0",
|
|
23
|
+
"main": "lib/commonjs/index",
|
|
24
|
+
"files": [
|
|
25
|
+
"src/**",
|
|
26
|
+
"lib/**"
|
|
59
27
|
],
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
28
|
+
"types": "lib/typescript/codepush/src/index.d.ts",
|
|
29
|
+
"react-native": "src/index",
|
|
30
|
+
"source": "src/index",
|
|
31
|
+
"module": "lib/module/index",
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"test": "jest",
|
|
37
|
+
"lint": "eslint .",
|
|
38
|
+
"prepare": "rm -rf lib && yarn bob build"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@datadog/mobile-react-native": "^2.0.0",
|
|
42
|
+
"@testing-library/react-native": "7.0.2",
|
|
43
|
+
"react-native-builder-bob": "0.17.1",
|
|
44
|
+
"react-native-code-push": "7.0.5"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@datadog/mobile-react-native": "^1.0.0-beta4",
|
|
48
|
+
"react": ">=16.13.1",
|
|
49
|
+
"react-native": ">=0.63.4 <1.0",
|
|
50
|
+
"react-native-code-push": ">=2.0.0"
|
|
51
|
+
},
|
|
52
|
+
"jest": {
|
|
53
|
+
"preset": "react-native",
|
|
54
|
+
"moduleNameMapper": {
|
|
55
|
+
"@datadog/mobile-react-native": "<rootDir>../core/src"
|
|
56
|
+
},
|
|
57
|
+
"modulePathIgnorePatterns": [
|
|
58
|
+
"<rootDir>/lib/"
|
|
59
|
+
],
|
|
60
|
+
"testPathIgnorePatterns": [
|
|
61
|
+
"/__utils__/"
|
|
62
|
+
],
|
|
63
|
+
"transformIgnorePatterns": [
|
|
64
|
+
"jest-runner"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"react-native-builder-bob": {
|
|
68
|
+
"source": "src",
|
|
69
|
+
"output": "lib",
|
|
70
|
+
"targets": [
|
|
71
|
+
"commonjs",
|
|
72
|
+
"module",
|
|
73
|
+
[
|
|
74
|
+
"typescript",
|
|
75
|
+
{
|
|
76
|
+
"tsc": "./../../node_modules/.bin/tsc"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"gitHead": "cbf402ae85f73b4ee9a8091ceb1310b35d7318f9"
|
|
77
82
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|