@datadog/mobile-react-native-code-push 2.0.3 → 2.1.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/DdSdkReactNative.d.ts +5 -0
- package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts +7 -0
- package/lib/typescript/core/src/specs/NativeDdLogs.d.ts +8 -8
- package/lib/typescript/core/src/specs/NativeDdSdk.d.ts +4 -0
- package/lib/typescript/core/src/types.d.ts +10 -1
- package/lib/typescript/core/src/version.d.ts +1 -1
- package/package.json +3 -3
|
@@ -61,6 +61,11 @@ export declare class DdSdkReactNative {
|
|
|
61
61
|
* @returns a Promise.
|
|
62
62
|
*/
|
|
63
63
|
static setTrackingConsent: (consent: TrackingConsent) => Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Clears all data that has not already been sent to Datadog servers
|
|
66
|
+
* @returns a Promise
|
|
67
|
+
*/
|
|
68
|
+
static clearAllData: () => Promise<void>;
|
|
64
69
|
private static buildConfiguration;
|
|
65
70
|
private static enableFeatures;
|
|
66
71
|
}
|
|
@@ -42,6 +42,11 @@ export declare enum BatchSize {
|
|
|
42
42
|
}
|
|
43
43
|
export declare type FirstPartyHostsConfiguration = (FirstPartyHost | LegacyFirstPartyHost)[];
|
|
44
44
|
export declare type LegacyFirstPartyHost = string;
|
|
45
|
+
export declare type CustomEndpoints = {
|
|
46
|
+
rum?: string;
|
|
47
|
+
logs?: string;
|
|
48
|
+
trace?: string;
|
|
49
|
+
};
|
|
45
50
|
/**
|
|
46
51
|
* Defaults legacy first party hosts format to Datadog first party hosts to keep
|
|
47
52
|
* retro-compatibility before OTel support was introduced.
|
|
@@ -193,6 +198,7 @@ export declare class DdSdkReactNativeConfiguration {
|
|
|
193
198
|
additionalConfig: {
|
|
194
199
|
[k: string]: any;
|
|
195
200
|
};
|
|
201
|
+
customEndpoints: CustomEndpoints;
|
|
196
202
|
constructor(clientToken: string, env: string, applicationId: string, trackInteractions?: boolean, trackResources?: boolean, trackErrors?: boolean, trackingConsent?: TrackingConsent);
|
|
197
203
|
}
|
|
198
204
|
/**
|
|
@@ -257,6 +263,7 @@ export declare type PartialInitializationConfiguration = {
|
|
|
257
263
|
readonly uploadFrequency?: UploadFrequency;
|
|
258
264
|
readonly batchSize?: BatchSize;
|
|
259
265
|
readonly trackBackgroundEvents?: boolean;
|
|
266
|
+
readonly customEndpoints?: CustomEndpoints;
|
|
260
267
|
};
|
|
261
268
|
export declare const buildConfigurationFromPartialConfiguration: (features: AutoInstrumentationConfiguration, configuration: PartialInitializationConfiguration) => DdSdkReactNativeConfiguration;
|
|
262
269
|
export declare class DatadogProviderConfiguration extends DdSdkReactNativeConfiguration {
|
|
@@ -9,25 +9,25 @@ export interface Spec extends TurboModule {
|
|
|
9
9
|
* @param message: The message to send.
|
|
10
10
|
* @param context: The additional context to send.
|
|
11
11
|
*/
|
|
12
|
-
readonly debug: (message: string, context
|
|
12
|
+
readonly debug: (message: string, context: Object) => Promise<void>;
|
|
13
13
|
/**
|
|
14
14
|
* Send a log with INFO level.
|
|
15
15
|
* @param message: The message to send.
|
|
16
16
|
* @param context: The additional context to send.
|
|
17
17
|
*/
|
|
18
|
-
readonly info: (message: string, context
|
|
18
|
+
readonly info: (message: string, context: Object) => Promise<void>;
|
|
19
19
|
/**
|
|
20
20
|
* Send a log with WARN level.
|
|
21
21
|
* @param message: The message to send.
|
|
22
22
|
* @param context: The additional context to send.
|
|
23
23
|
*/
|
|
24
|
-
readonly warn: (message: string, context
|
|
24
|
+
readonly warn: (message: string, context: Object) => Promise<void>;
|
|
25
25
|
/**
|
|
26
26
|
* Send a log with ERROR level.
|
|
27
27
|
* @param message: The message to send.
|
|
28
28
|
* @param context: The additional context to send.
|
|
29
29
|
*/
|
|
30
|
-
readonly error: (message: string, context
|
|
30
|
+
readonly error: (message: string, context: Object) => Promise<void>;
|
|
31
31
|
/**
|
|
32
32
|
* Send a log containing an error with DEBUG level.
|
|
33
33
|
* @param message: The message to send.
|
|
@@ -36,7 +36,7 @@ export interface Spec extends TurboModule {
|
|
|
36
36
|
* @param stacktrace: The stack trace to send.
|
|
37
37
|
* @param context: The additional context to send.
|
|
38
38
|
*/
|
|
39
|
-
readonly debugWithError: (message: string, errorKind
|
|
39
|
+
readonly debugWithError: (message: string, errorKind: string, errorMessage: string, stacktrace: string, context: Object) => Promise<void>;
|
|
40
40
|
/**
|
|
41
41
|
* Send a log containing an error with INFO level.
|
|
42
42
|
* @param message: The message to send.
|
|
@@ -45,7 +45,7 @@ export interface Spec extends TurboModule {
|
|
|
45
45
|
* @param stacktrace: The stack trace to send.
|
|
46
46
|
* @param context: The additional context to send.
|
|
47
47
|
*/
|
|
48
|
-
readonly infoWithError: (message: string, errorKind
|
|
48
|
+
readonly infoWithError: (message: string, errorKind: string, errorMessage: string, stacktrace: string, context: Object) => Promise<void>;
|
|
49
49
|
/**
|
|
50
50
|
* Send a log containing an error with WARN level.
|
|
51
51
|
* @param message: The message to send.
|
|
@@ -54,7 +54,7 @@ export interface Spec extends TurboModule {
|
|
|
54
54
|
* @param stacktrace: The stack trace to send.
|
|
55
55
|
* @param context: The additional context to send.
|
|
56
56
|
*/
|
|
57
|
-
readonly warnWithError: (message: string, errorKind
|
|
57
|
+
readonly warnWithError: (message: string, errorKind: string, errorMessage: string, stacktrace: string, context: Object) => Promise<void>;
|
|
58
58
|
/**
|
|
59
59
|
* Send a log containing an error with ERROR level.
|
|
60
60
|
* @param message: The message to send.
|
|
@@ -63,7 +63,7 @@ export interface Spec extends TurboModule {
|
|
|
63
63
|
* @param stacktrace: The stack trace to send.
|
|
64
64
|
* @param context: The additional context to send.
|
|
65
65
|
*/
|
|
66
|
-
readonly errorWithError: (message: string, errorKind
|
|
66
|
+
readonly errorWithError: (message: string, errorKind: string, errorMessage: string, stacktrace: string, context: Object) => Promise<void>;
|
|
67
67
|
}
|
|
68
68
|
declare const _default: Spec | null;
|
|
69
69
|
export default _default;
|
|
@@ -41,6 +41,10 @@ export interface Spec extends TurboModule {
|
|
|
41
41
|
* @param message event description
|
|
42
42
|
*/
|
|
43
43
|
consumeWebviewEvent(message: string): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Clears all data that has not already been sent to Datadog servers
|
|
46
|
+
*/
|
|
47
|
+
clearAllData(): Promise<void>;
|
|
44
48
|
}
|
|
45
49
|
declare const _default: Spec | null;
|
|
46
50
|
export default _default;
|
|
@@ -18,6 +18,11 @@ export declare class DdSdkConfiguration {
|
|
|
18
18
|
readonly batchSize: string;
|
|
19
19
|
readonly trackFrustrations: boolean;
|
|
20
20
|
readonly trackBackgroundEvents: boolean;
|
|
21
|
+
readonly customEndpoints: {
|
|
22
|
+
rum?: string;
|
|
23
|
+
trace?: string;
|
|
24
|
+
logs?: string;
|
|
25
|
+
};
|
|
21
26
|
readonly configurationForTelemetry: {
|
|
22
27
|
initializationType: string;
|
|
23
28
|
trackErrors: boolean;
|
|
@@ -26,7 +31,11 @@ export declare class DdSdkConfiguration {
|
|
|
26
31
|
reactVersion: string;
|
|
27
32
|
reactNativeVersion: string;
|
|
28
33
|
};
|
|
29
|
-
constructor(clientToken: string, env: string, applicationId: string, nativeCrashReportEnabled: boolean, nativeLongTaskThresholdMs: number, longTaskThresholdMs: number, sampleRate: number, site: string, trackingConsent: string, additionalConfig: object, telemetrySampleRate: number, vitalsUpdateFrequency: string, uploadFrequency: string, batchSize: string, trackFrustrations: boolean, trackBackgroundEvents: boolean,
|
|
34
|
+
constructor(clientToken: string, env: string, applicationId: string, nativeCrashReportEnabled: boolean, nativeLongTaskThresholdMs: number, longTaskThresholdMs: number, sampleRate: number, site: string, trackingConsent: string, additionalConfig: object, telemetrySampleRate: number, vitalsUpdateFrequency: string, uploadFrequency: string, batchSize: string, trackFrustrations: boolean, trackBackgroundEvents: boolean, customEndpoints: {
|
|
35
|
+
rum?: string;
|
|
36
|
+
trace?: string;
|
|
37
|
+
logs?: string;
|
|
38
|
+
}, configurationForTelemetry: {
|
|
30
39
|
initializationType: string;
|
|
31
40
|
trackErrors: boolean;
|
|
32
41
|
trackInteractions: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "2.0
|
|
1
|
+
export declare const version = "2.1.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datadog/mobile-react-native-code-push",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "A client-side React Native module to interact with Appcenter Codepush and Datadog",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datadog",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"prepare": "rm -rf lib && yarn bob build"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@datadog/mobile-react-native": "^2.0
|
|
41
|
+
"@datadog/mobile-react-native": "^2.1.0",
|
|
42
42
|
"@testing-library/react-native": "7.0.2",
|
|
43
43
|
"react-native-builder-bob": "0.17.1",
|
|
44
44
|
"react-native-code-push": "7.0.5"
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
]
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "d1503f22cfed97eaa8ace75d569fda7bd25c9766"
|
|
82
82
|
}
|