@datadog/mobile-react-native-apollo-client 2.4.1 → 2.4.3
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/commonjs/DatadogLink.js +3 -7
- package/lib/commonjs/DatadogLink.js.map +1 -1
- package/lib/commonjs/helpers.js +2 -10
- package/lib/commonjs/helpers.js.map +1 -1
- package/lib/commonjs/index.js +0 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/DatadogLink.js +3 -2
- package/lib/module/DatadogLink.js.map +1 -1
- package/lib/module/helpers.js +1 -4
- package/lib/module/helpers.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/core/src/DdSdkReactNative.d.ts +1 -0
- package/lib/typescript/core/src/DdSdkReactNative.d.ts.map +1 -0
- package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts +1 -0
- package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/InternalLog.d.ts +1 -0
- package/lib/typescript/core/src/InternalLog.d.ts.map +1 -0
- package/lib/typescript/core/src/ProxyConfiguration.d.ts +1 -0
- package/lib/typescript/core/src/ProxyConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/SdkVerbosity.d.ts +1 -0
- package/lib/typescript/core/src/SdkVerbosity.d.ts.map +1 -0
- package/lib/typescript/core/src/TrackingConsent.d.ts +1 -0
- package/lib/typescript/core/src/TrackingConsent.d.ts.map +1 -0
- package/lib/typescript/core/src/index.d.ts +1 -0
- package/lib/typescript/core/src/index.d.ts.map +1 -0
- package/lib/typescript/core/src/logs/DdLogs.d.ts +1 -0
- package/lib/typescript/core/src/logs/DdLogs.d.ts.map +1 -0
- package/lib/typescript/core/src/logs/eventMapper.d.ts +1 -0
- package/lib/typescript/core/src/logs/eventMapper.d.ts.map +1 -0
- package/lib/typescript/core/src/logs/types.d.ts +6 -1
- package/lib/typescript/core/src/logs/types.d.ts.map +1 -0
- package/lib/typescript/core/src/nativeModulesTypes.d.ts +3 -1
- package/lib/typescript/core/src/nativeModulesTypes.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/DdAttributes.d.ts +14 -0
- package/lib/typescript/core/src/rum/DdAttributes.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/DdRum.d.ts +3 -2
- package/lib/typescript/core/src/rum/DdRum.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/eventMappers/actionEventMapper.d.ts +1 -0
- package/lib/typescript/core/src/rum/eventMappers/actionEventMapper.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts +3 -0
- package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/eventMappers/resourceEventMapper.d.ts +1 -0
- package/lib/typescript/core/src/rum/eventMappers/resourceEventMapper.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts +2 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts +2 -1
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.d.ts.map +1 -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/XHRProxy/XHRProxy.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/types.d.ts +1 -0
- package/lib/typescript/core/src/rum/types.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts +1 -0
- package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesSingleton/types.d.ts +1 -0
- package/lib/typescript/core/src/sdk/AttributesSingleton/types.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.d.ts +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BufferSingleton.d.ts +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BufferSingleton.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/DatadogBuffer.d.ts +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/DatadogBuffer.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/PassThroughBuffer.d.ts +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/PassThroughBuffer.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/bufferNativeCall.d.ts +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/bufferNativeCall.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DdSdk.d.ts +1 -0
- package/lib/typescript/core/src/sdk/DdSdk.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts +1 -0
- package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/EventMappers/utils/deepClone.d.ts +1 -0
- package/lib/typescript/core/src/sdk/EventMappers/utils/deepClone.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts +1 -0
- package/lib/typescript/core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts +1 -0
- package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts +1 -0
- package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts +1 -0
- package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts.map +1 -0
- package/lib/typescript/core/src/specs/NativeDdLogs.d.ts +1 -0
- package/lib/typescript/core/src/specs/NativeDdLogs.d.ts.map +1 -0
- package/lib/typescript/core/src/specs/NativeDdRum.d.ts +3 -1
- package/lib/typescript/core/src/specs/NativeDdRum.d.ts.map +1 -0
- package/lib/typescript/core/src/specs/NativeDdSdk.d.ts +1 -0
- package/lib/typescript/core/src/specs/NativeDdSdk.d.ts.map +1 -0
- package/lib/typescript/core/src/specs/NativeDdTrace.d.ts +1 -0
- package/lib/typescript/core/src/specs/NativeDdTrace.d.ts.map +1 -0
- package/lib/typescript/core/src/trace/DdTrace.d.ts +1 -0
- package/lib/typescript/core/src/trace/DdTrace.d.ts.map +1 -0
- package/lib/typescript/core/src/types.d.ts +1 -0
- package/lib/typescript/core/src/types.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/Timer.d.ts +1 -0
- package/lib/typescript/core/src/utils/Timer.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/argsUtils.d.ts +1 -0
- package/lib/typescript/core/src/utils/argsUtils.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/errorUtils.d.ts +1 -0
- package/lib/typescript/core/src/utils/errorUtils.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/jsUtils.d.ts +1 -0
- package/lib/typescript/core/src/utils/jsUtils.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/longTasksUtils.d.ts +1 -0
- package/lib/typescript/core/src/utils/longTasksUtils.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/time-provider/DefaultTimeProvider.d.ts +1 -0
- package/lib/typescript/core/src/utils/time-provider/DefaultTimeProvider.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/time-provider/TimeProvider.d.ts +1 -0
- package/lib/typescript/core/src/utils/time-provider/TimeProvider.d.ts.map +1 -0
- package/lib/typescript/core/src/version.d.ts +2 -1
- package/lib/typescript/core/src/version.d.ts.map +1 -0
- package/lib/typescript/react-native-apollo-client/src/DatadogLink.d.ts +1 -0
- package/lib/typescript/react-native-apollo-client/src/DatadogLink.d.ts.map +1 -0
- package/lib/typescript/react-native-apollo-client/src/helpers.d.ts +1 -0
- package/lib/typescript/react-native-apollo-client/src/helpers.d.ts.map +1 -0
- package/lib/typescript/react-native-apollo-client/src/index.d.ts +1 -0
- package/lib/typescript/react-native-apollo-client/src/index.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -4,18 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DatadogLink = void 0;
|
|
7
|
-
|
|
8
7
|
var _client = require("@apollo/client");
|
|
9
|
-
|
|
10
8
|
var _mobileReactNative = require("@datadog/mobile-react-native");
|
|
11
|
-
|
|
12
9
|
var _helpers = require("./helpers");
|
|
13
|
-
|
|
14
10
|
/*
|
|
15
11
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
16
12
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
17
13
|
* Copyright 2016-Present Datadog, Inc.
|
|
18
14
|
*/
|
|
15
|
+
|
|
19
16
|
class DatadogLink extends _client.ApolloLink {
|
|
20
17
|
constructor() {
|
|
21
18
|
super((operation, forward) => {
|
|
@@ -25,7 +22,8 @@ class DatadogLink extends _client.ApolloLink {
|
|
|
25
22
|
operation.setContext(({
|
|
26
23
|
headers = {}
|
|
27
24
|
}) => {
|
|
28
|
-
const newHeaders = {
|
|
25
|
+
const newHeaders = {
|
|
26
|
+
...headers
|
|
29
27
|
};
|
|
30
28
|
newHeaders[_mobileReactNative.DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER] = operationType;
|
|
31
29
|
newHeaders[_mobileReactNative.DATADOG_GRAPH_QL_OPERATION_NAME_HEADER] = operationName;
|
|
@@ -37,8 +35,6 @@ class DatadogLink extends _client.ApolloLink {
|
|
|
37
35
|
return forward(operation);
|
|
38
36
|
});
|
|
39
37
|
}
|
|
40
|
-
|
|
41
38
|
}
|
|
42
|
-
|
|
43
39
|
exports.DatadogLink = DatadogLink;
|
|
44
40
|
//# sourceMappingURL=DatadogLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_client","require","_mobileReactNative","_helpers","DatadogLink","ApolloLink","constructor","operation","forward","operationName","getOperationName","formattedVariables","getVariables","operationType","getOperationType","setContext","headers","newHeaders","DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER","DATADOG_GRAPH_QL_OPERATION_NAME_HEADER","DATADOG_GRAPH_QL_VARIABLES_HEADER","exports"],"sourceRoot":"../../src","sources":["DatadogLink.ts"],"mappings":";;;;;;AAMA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAMA,IAAAE,QAAA,GAAAF,OAAA;AAbA;AACA;AACA;AACA;AACA;;AAWO,MAAMG,WAAW,SAASC,kBAAU,CAAC;EACxCC,WAAWA,CAAA,EAAG;IACV,KAAK,CAAC,CAACC,SAAS,EAAEC,OAAO,KAAK;MAC1B,MAAMC,aAAa,GAAG,IAAAC,yBAAgB,EAACH,SAAS,CAAC;MACjD,MAAMI,kBAAkB,GAAG,IAAAC,qBAAY,EAACL,SAAS,CAAC;MAClD,MAAMM,aAAa,GAAG,IAAAC,yBAAgB,EAACP,SAAS,CAAC;MAEjDA,SAAS,CAACQ,UAAU,CAAC,CAAC;QAAEC,OAAO,GAAG,CAAC;MAAE,CAAC,KAAK;QACvC,MAAMC,UAAyC,GAAG;UAC9C,GAAGD;QACP,CAAC;QAEDC,UAAU,CACNC,yDAAsC,CACzC,GAAGL,aAAa;QACjBI,UAAU,CACNE,yDAAsC,CACzC,GAAGV,aAAa;QACjBQ,UAAU,CACNG,oDAAiC,CACpC,GAAGT,kBAAkB;QAEtB,OAAO;UACHK,OAAO,EAAEC;QACb,CAAC;MACL,CAAC,CAAC;MAEF,OAAOT,OAAO,CAACD,SAAS,CAAC;IAC7B,CAAC,CAAC;EACN;AACJ;AAACc,OAAA,CAAAjB,WAAA,GAAAA,WAAA","ignoreList":[]}
|
package/lib/commonjs/helpers.js
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
|
|
6
|
+
exports.getVariables = exports.getOperationType = exports.getOperationName = void 0;
|
|
8
7
|
/*
|
|
9
8
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
10
9
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
@@ -14,6 +13,7 @@ exports.getOperationType = exports.getOperationName = exports.getVariables = voi
|
|
|
14
13
|
/**
|
|
15
14
|
* NOTE: Do not import from '@apollo/client/utilities' as the package does not exist in Apollo Client < v3.
|
|
16
15
|
*/
|
|
16
|
+
|
|
17
17
|
const getVariables = operation => {
|
|
18
18
|
if (operation.variables) {
|
|
19
19
|
try {
|
|
@@ -23,26 +23,19 @@ const getVariables = operation => {
|
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
|
|
27
26
|
return null;
|
|
28
27
|
};
|
|
29
|
-
|
|
30
28
|
exports.getVariables = getVariables;
|
|
31
|
-
|
|
32
29
|
const getOperationName = operation => {
|
|
33
30
|
if (operation.operationName) {
|
|
34
31
|
return operation.operationName;
|
|
35
32
|
}
|
|
36
|
-
|
|
37
33
|
return null;
|
|
38
34
|
};
|
|
39
|
-
|
|
40
35
|
exports.getOperationName = getOperationName;
|
|
41
|
-
|
|
42
36
|
const getOperationDefinitionNode = definition => {
|
|
43
37
|
return definition.kind === 'OperationDefinition' && !!definition.operation;
|
|
44
38
|
};
|
|
45
|
-
|
|
46
39
|
const getOperationType = operation => {
|
|
47
40
|
try {
|
|
48
41
|
return operation.query.definitions.filter(getOperationDefinitionNode).map(operationDefinitionNode => {
|
|
@@ -53,6 +46,5 @@ const getOperationType = operation => {
|
|
|
53
46
|
return null;
|
|
54
47
|
}
|
|
55
48
|
};
|
|
56
|
-
|
|
57
49
|
exports.getOperationType = getOperationType;
|
|
58
50
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["getVariables","operation","variables","JSON","stringify","e","exports","getOperationName","operationName","getOperationDefinitionNode","definition","kind","getOperationType","query","definitions","filter","map","operationDefinitionNode"],"sourceRoot":"../../src","sources":["helpers.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAKO,MAAMA,YAAY,GAAIC,SAAoB,IAAoB;EACjE,IAAIA,SAAS,CAACC,SAAS,EAAE;IACrB,IAAI;MACA,OAAOC,IAAI,CAACC,SAAS,CAACH,SAAS,CAACC,SAAS,CAAC;IAC9C,CAAC,CAAC,OAAOG,CAAC,EAAE;MACR;MACA,OAAO,IAAI;IACf;EACJ;EACA,OAAO,IAAI;AACf,CAAC;AAACC,OAAA,CAAAN,YAAA,GAAAA,YAAA;AAEK,MAAMO,gBAAgB,GAAIN,SAAoB,IAAoB;EACrE,IAAIA,SAAS,CAACO,aAAa,EAAE;IACzB,OAAOP,SAAS,CAACO,aAAa;EAClC;EACA,OAAO,IAAI;AACf,CAAC;AAACF,OAAA,CAAAC,gBAAA,GAAAA,gBAAA;AAEF,MAAME,0BAA0B,GAC5BC,UAA0B,IACc;EACxC,OAAOA,UAAU,CAACC,IAAI,KAAK,qBAAqB,IAAI,CAAC,CAACD,UAAU,CAACT,SAAS;AAC9E,CAAC;AAEM,MAAMW,gBAAgB,GACzBX,SAAoB,IAC2B;EAC/C,IAAI;IACA,OACIA,SAAS,CAACY,KAAK,CAACC,WAAW,CACtBC,MAAM,CAACN,0BAA0B,CAAC,CAClCO,GAAG,CAACC,uBAAuB,IAAI;MAC5B,OAAOA,uBAAuB,CAAChB,SAAS;IAC5C,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI;EAEzB,CAAC,CAAC,OAAOI,CAAC,EAAE;IACR;IACA,OAAO,IAAI;EACf;AACJ,CAAC;AAACC,OAAA,CAAAM,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_DatadogLink","require"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;AAMA,IAAAA,YAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
4
|
* Copyright 2016-Present Datadog, Inc.
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
import { ApolloLink } from '@apollo/client';
|
|
7
8
|
import { DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER } from '@datadog/mobile-react-native';
|
|
8
9
|
import { getOperationName, getVariables, getOperationType } from './helpers';
|
|
@@ -15,7 +16,8 @@ export class DatadogLink extends ApolloLink {
|
|
|
15
16
|
operation.setContext(({
|
|
16
17
|
headers = {}
|
|
17
18
|
}) => {
|
|
18
|
-
const newHeaders = {
|
|
19
|
+
const newHeaders = {
|
|
20
|
+
...headers
|
|
19
21
|
};
|
|
20
22
|
newHeaders[DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER] = operationType;
|
|
21
23
|
newHeaders[DATADOG_GRAPH_QL_OPERATION_NAME_HEADER] = operationName;
|
|
@@ -27,6 +29,5 @@ export class DatadogLink extends ApolloLink {
|
|
|
27
29
|
return forward(operation);
|
|
28
30
|
});
|
|
29
31
|
}
|
|
30
|
-
|
|
31
32
|
}
|
|
32
33
|
//# sourceMappingURL=DatadogLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["ApolloLink","DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER","DATADOG_GRAPH_QL_OPERATION_NAME_HEADER","DATADOG_GRAPH_QL_VARIABLES_HEADER","getOperationName","getVariables","getOperationType","DatadogLink","constructor","operation","forward","operationName","formattedVariables","operationType","setContext","headers","newHeaders"],"sourceRoot":"../../src","sources":["DatadogLink.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,gBAAgB;AAC3C,SACIC,sCAAsC,EACtCC,sCAAsC,EACtCC,iCAAiC,QAC9B,8BAA8B;AAErC,SAASC,gBAAgB,EAAEC,YAAY,EAAEC,gBAAgB,QAAQ,WAAW;AAE5E,OAAO,MAAMC,WAAW,SAASP,UAAU,CAAC;EACxCQ,WAAWA,CAAA,EAAG;IACV,KAAK,CAAC,CAACC,SAAS,EAAEC,OAAO,KAAK;MAC1B,MAAMC,aAAa,GAAGP,gBAAgB,CAACK,SAAS,CAAC;MACjD,MAAMG,kBAAkB,GAAGP,YAAY,CAACI,SAAS,CAAC;MAClD,MAAMI,aAAa,GAAGP,gBAAgB,CAACG,SAAS,CAAC;MAEjDA,SAAS,CAACK,UAAU,CAAC,CAAC;QAAEC,OAAO,GAAG,CAAC;MAAE,CAAC,KAAK;QACvC,MAAMC,UAAyC,GAAG;UAC9C,GAAGD;QACP,CAAC;QAEDC,UAAU,CACNf,sCAAsC,CACzC,GAAGY,aAAa;QACjBG,UAAU,CACNd,sCAAsC,CACzC,GAAGS,aAAa;QACjBK,UAAU,CACNb,iCAAiC,CACpC,GAAGS,kBAAkB;QAEtB,OAAO;UACHG,OAAO,EAAEC;QACb,CAAC;MACL,CAAC,CAAC;MAEF,OAAON,OAAO,CAACD,SAAS,CAAC;IAC7B,CAAC,CAAC;EACN;AACJ","ignoreList":[]}
|
package/lib/module/helpers.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* NOTE: Do not import from '@apollo/client/utilities' as the package does not exist in Apollo Client < v3.
|
|
9
9
|
*/
|
|
10
|
+
|
|
10
11
|
export const getVariables = operation => {
|
|
11
12
|
if (operation.variables) {
|
|
12
13
|
try {
|
|
@@ -16,21 +17,17 @@ export const getVariables = operation => {
|
|
|
16
17
|
return null;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
|
-
|
|
20
20
|
return null;
|
|
21
21
|
};
|
|
22
22
|
export const getOperationName = operation => {
|
|
23
23
|
if (operation.operationName) {
|
|
24
24
|
return operation.operationName;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
26
|
return null;
|
|
28
27
|
};
|
|
29
|
-
|
|
30
28
|
const getOperationDefinitionNode = definition => {
|
|
31
29
|
return definition.kind === 'OperationDefinition' && !!definition.operation;
|
|
32
30
|
};
|
|
33
|
-
|
|
34
31
|
export const getOperationType = operation => {
|
|
35
32
|
try {
|
|
36
33
|
return operation.query.definitions.filter(getOperationDefinitionNode).map(operationDefinitionNode => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["getVariables","operation","variables","JSON","stringify","e","getOperationName","operationName","getOperationDefinitionNode","definition","kind","getOperationType","query","definitions","filter","map","operationDefinitionNode"],"sourceRoot":"../../src","sources":["helpers.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAKA,OAAO,MAAMA,YAAY,GAAIC,SAAoB,IAAoB;EACjE,IAAIA,SAAS,CAACC,SAAS,EAAE;IACrB,IAAI;MACA,OAAOC,IAAI,CAACC,SAAS,CAACH,SAAS,CAACC,SAAS,CAAC;IAC9C,CAAC,CAAC,OAAOG,CAAC,EAAE;MACR;MACA,OAAO,IAAI;IACf;EACJ;EACA,OAAO,IAAI;AACf,CAAC;AAED,OAAO,MAAMC,gBAAgB,GAAIL,SAAoB,IAAoB;EACrE,IAAIA,SAAS,CAACM,aAAa,EAAE;IACzB,OAAON,SAAS,CAACM,aAAa;EAClC;EACA,OAAO,IAAI;AACf,CAAC;AAED,MAAMC,0BAA0B,GAC5BC,UAA0B,IACc;EACxC,OAAOA,UAAU,CAACC,IAAI,KAAK,qBAAqB,IAAI,CAAC,CAACD,UAAU,CAACR,SAAS;AAC9E,CAAC;AAED,OAAO,MAAMU,gBAAgB,GACzBV,SAAoB,IAC2B;EAC/C,IAAI;IACA,OACIA,SAAS,CAACW,KAAK,CAACC,WAAW,CACtBC,MAAM,CAACN,0BAA0B,CAAC,CAClCO,GAAG,CAACC,uBAAuB,IAAI;MAC5B,OAAOA,uBAAuB,CAACf,SAAS;IAC5C,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI;EAEzB,CAAC,CAAC,OAAOI,CAAC,EAAE;IACR;IACA,OAAO,IAAI;EACf;AACJ,CAAC","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["DatadogLink"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,QAAQ,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdSdkReactNative.d.ts","sourceRoot":"","sources":["../../../../../core/src/DdSdkReactNative.tsx"],"names":[],"mappings":"AAQA,OAAO,EACH,6BAA6B,EAKhC,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAER,4BAA4B,EAC5B,kCAAkC,EAClC,gCAAgC,EAEnC,MAAM,iCAAiC,CAAC;AAGzC,OAAO,KAA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AC,CAGrC;IAEF,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAqE/B;IAEF,OAAO,CAAC,MAAM,CAAC,cAAc;CAmDhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdSdkReactNativeConfiguration.d.ts","sourceRoot":"","sources":["../../../../../core/src/DdSdkReactNativeConfiguration.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,oBAAY,qBAAqB;IAC7B,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;CAClB;AAED,oBAAY,eAAe;IACvB;;OAEG;IACH,QAAQ,aAAa;IACrB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,IAAI,SAAS;CAChB;AAED,oBAAY,SAAS;IACjB;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,KAAK,UAAU;CAClB;AAED,MAAM,MAAM,4BAA4B,GAAG,CACrC,cAAc,GACd,oBAAoB,CACzB,EAAE,CAAC;AAEJ,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAQ1C,MAAM,MAAM,eAAe,GAAG;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CA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,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAC3C,CAAC;AAgBF,eAAO,MAAM,0CAA0C,aACzC,gCAAgC,iBAC3B,kCAAkC,KAClD,6BA2EF,CAAC;AAEF,qBAAa,4BAA6B,SAAQ,6BAA6B;IACpE,kBAAkB,EAAE,kBAAkB,CAA2B;CAC3E;AAED,oBAAY,kBAAkB;IAC1B,IAAI,SAAS;IACb,KAAK,UAAU;CAClB;AAED,MAAM,MAAM,8BAA8B,GACpC,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalLog.d.ts","sourceRoot":"","sources":["../../../../../core/src/InternalLog.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,sBAAsB,aAAa,CAAC;AAEjD;;;;GAIG;AACH,qBAAa,WAAW;IACpB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAKpB;IAEH,OAAc,SAAS,EAAE,YAAY,GAAG,SAAS,CAAa;WAEhD,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,GAAG,IAAI;CA0BpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProxyConfiguration.d.ts","sourceRoot":"","sources":["../../../../../core/src/ProxyConfiguration.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAM,kBAAkB;IAKhB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS;IACxB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM;IAfzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;;IAGd;;OAEG;IACM,IAAI,EAAE,SAAS;IACxB;;OAEG;IACM,OAAO,EAAE,MAAM;IACxB;;OAEG;IACM,IAAI,EAAE,MAAM;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM;CAaxB;AAED,aAAK,SAAS;IACV,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SdkVerbosity.d.ts","sourceRoot":"","sources":["../../../../../core/src/SdkVerbosity.tsx"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,YAAY;IACpB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrackingConsent.d.ts","sourceRoot":"","sources":["../../../../../core/src/TrackingConsent.tsx"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC9B"}
|
|
@@ -17,3 +17,4 @@ import { TimeProvider } from './utils/time-provider/TimeProvider';
|
|
|
17
17
|
import type { Timestamp } from './utils/time-provider/TimeProvider';
|
|
18
18
|
export { DatadogProvider, DatadogProviderConfiguration, FileBasedConfiguration, InitializationMode, DdLogs, DdTrace, DdRum, RumActionType, ErrorSource, DdSdkReactNativeConfiguration, DdSdkReactNative, InternalLog, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity, VitalsUpdateFrequency, PropagatorType, UploadFrequency, BatchSize, TimeProvider, DefaultTimeProvider, DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER };
|
|
19
19
|
export type { Timestamp };
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/src/index.tsx"],"names":[],"mappings":"AAOA,OAAO,aAAa,CAAC;AACrB,OAAO,EACH,4BAA4B,EAC5B,6BAA6B,EAC7B,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,SAAS,EACZ,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EACH,sCAAsC,EACtC,sCAAsC,EACtC,iCAAiC,EACpC,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAIpE,OAAO,EACH,eAAe,EACf,4BAA4B,EAC5B,sBAAsB,EACtB,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,KAAK,EACL,aAAa,EACb,WAAW,EACX,6BAA6B,EAC7B,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,SAAS,EACT,YAAY,EACZ,mBAAmB,EACnB,sCAAsC,EACtC,sCAAsC,EACtC,iCAAiC,EACpC,CAAC;AAEF,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdLogs.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/DdLogs.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACR,UAAU,EACV,YAAY,EACZ,cAAc,EACd,qBAAqB,EAExB,MAAM,SAAS,CAAC;AAsBjB,cAAM,aAAc,YAAW,UAAU;IAErC,OAAO,CAAC,UAAU,CACL;IACb,OAAO,CAAC,cAAc,CAAkC;IAExD,KAAK,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAapE;IAEF,IAAI,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAanE;IAEF,IAAI,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAanE;IAEF,KAAK,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAapE;IAEF;;;OAGG;IACH,OAAO,CAAC,gCAAgC,CAStC;IAEF,OAAO,CAAC,uBAAuB,CAQ7B;IAEF,OAAO,CAAC,eAAe,CAQrB;IAEF,OAAO,CAAC,GAAG,CA4BT;IAEF,OAAO,CAAC,YAAY,CAmDlB;IAEF,sBAAsB,CAAC,cAAc,EAAE,cAAc;IAIrD,wBAAwB;CAG3B;AAED,eAAO,MAAM,MAAM,eAAsB,CAAC"}
|
|
@@ -9,3 +9,4 @@ export declare const formatRawLogToLogEvent: (rawLog: RawLog | RawLogWithError,
|
|
|
9
9
|
attributes: Attributes;
|
|
10
10
|
}) => LogEvent;
|
|
11
11
|
export declare const generateEventMapper: (logEventMapper: LogEventMapper | undefined) => EventMapper<RawLog | RawLogWithError, LogEvent, NativeLog | NativeLogWithError>;
|
|
12
|
+
//# sourceMappingURL=eventMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventMapper.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/eventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,KAAK,EACR,QAAQ,EACR,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,MAAM,EACN,eAAe,EAClB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,yBAAyB,aACxB,QAAQ,KACnB,SAAS,GAAG,kBAEd,CAAC;AAEF,eAAO,MAAM,yBAAyB,WAC1B,MAAM,GAAG,eAAe,KACjC,SAAS,GAAG,kBAEd,CAAC;AAEF,eAAO,MAAM,sBAAsB,WACvB,MAAM,GAAG,eAAe,yBACT;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;CAC1B,KACF,QAMF,CAAC;AAEF,eAAO,MAAM,mBAAmB,mBACZ,cAAc,GAAG,SAAS,oFAOzC,CAAC"}
|
|
@@ -43,6 +43,7 @@ export type RawLogWithError = {
|
|
|
43
43
|
stacktrace: string;
|
|
44
44
|
context: object;
|
|
45
45
|
status: LogStatus;
|
|
46
|
+
fingerprint?: string;
|
|
46
47
|
};
|
|
47
48
|
/**
|
|
48
49
|
* Log input for native SDKs
|
|
@@ -57,6 +58,7 @@ export type NativeLogWithError = {
|
|
|
57
58
|
errorMessage: string;
|
|
58
59
|
stacktrace: string;
|
|
59
60
|
context: object;
|
|
61
|
+
fingerprint?: string;
|
|
60
62
|
};
|
|
61
63
|
export type LogStatus = 'debug' | 'info' | 'warn' | 'error';
|
|
62
64
|
export type LogEvent = {
|
|
@@ -65,6 +67,7 @@ export type LogEvent = {
|
|
|
65
67
|
errorKind?: string;
|
|
66
68
|
errorMessage?: string;
|
|
67
69
|
stacktrace?: string;
|
|
70
|
+
fingerprint?: string;
|
|
68
71
|
readonly status: LogStatus;
|
|
69
72
|
readonly userInfo: UserInfo;
|
|
70
73
|
readonly attributes?: object;
|
|
@@ -76,5 +79,7 @@ export type LogWithErrorArguments = [
|
|
|
76
79
|
errorKind?: string,
|
|
77
80
|
errorMessage?: string,
|
|
78
81
|
stacktrace?: string,
|
|
79
|
-
context?: object
|
|
82
|
+
context?: object,
|
|
83
|
+
fingerprint?: string
|
|
80
84
|
];
|
|
85
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB;;;;OAIG;IACH,KAAK,CAAC,GAAG,IAAI,EAAE,YAAY,GAAG,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpE;;;;OAIG;IACH,IAAI,CAAC,GAAG,IAAI,EAAE,YAAY,GAAG,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;;;OAIG;IACH,IAAI,CAAC,GAAG,IAAI,EAAE,YAAY,GAAG,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;;;OAIG;IACH,KAAK,CAAC,GAAG,IAAI,EAAE,YAAY,GAAG,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvE,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACjB,OAAO,EAAE,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IAAI,CAAC;AAErE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AAE/D,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,EAAE,MAAM;IACf,SAAS,CAAC,EAAE,MAAM;IAClB,YAAY,CAAC,EAAE,MAAM;IACrB,UAAU,CAAC,EAAE,MAAM;IACnB,OAAO,CAAC,EAAE,MAAM;IAChB,WAAW,CAAC,EAAE,MAAM;CACvB,CAAC"}
|
|
@@ -86,7 +86,9 @@ export interface DdNativeRumType extends NativeDdRum {
|
|
|
86
86
|
* @param stacktrace: The error stacktrace.
|
|
87
87
|
* @param context: The additional context to send.
|
|
88
88
|
* @param timestampMs: The timestamp when the error occurred (in milliseconds). If not provided, current timestamp will be used.
|
|
89
|
+
* @param fingerprint: Optional custom error fingerprint.
|
|
89
90
|
*/
|
|
90
|
-
addError(message: string, source: ErrorSource, stacktrace: string, context: object, timestampMs: number): Promise<void>;
|
|
91
|
+
addError(message: string, source: ErrorSource, stacktrace: string, context: object, timestampMs: number, fingerprint: string | undefined): Promise<void>;
|
|
91
92
|
}
|
|
92
93
|
export {};
|
|
94
|
+
//# sourceMappingURL=nativeModulesTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nativeModulesTypes.d.ts","sourceRoot":"","sources":["../../../../../core/src/nativeModulesTypes.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,gBA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,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;OAMG;IACH,UAAU,CACN,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;OAMG;IACH,SAAS,CACL,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;;OAQG;IACH,YAAY,CACR,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;;OAQG;IACH,QAAQ,CACJ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAAG,SAAS,GAChC,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const DdAttributes: {
|
|
2
|
+
/**
|
|
3
|
+
* Custom "source type" of the error. Used in RUM errors. It names the
|
|
4
|
+
* language or platform of the RUM error stack trace, so the SCI backend
|
|
5
|
+
* knows how to symbolize it. Expects {@link String} value.
|
|
6
|
+
*/
|
|
7
|
+
errorSourceType: string;
|
|
8
|
+
/**
|
|
9
|
+
* Custom fingerprint to an error.
|
|
10
|
+
* Expects {@link String} value.
|
|
11
|
+
*/
|
|
12
|
+
errorFingerprint: string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=DdAttributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdAttributes.d.ts","sourceRoot":"","sources":["../../../../../../core/src/rum/DdAttributes.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;IACrB;;;;OAIG;;IAGH;;;OAGG;;CAEN,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { TimeProvider } from '../utils/time-provider/TimeProvider';
|
|
|
3
3
|
import type { ActionEventMapper } from './eventMappers/actionEventMapper';
|
|
4
4
|
import type { ErrorEventMapper } from './eventMappers/errorEventMapper';
|
|
5
5
|
import type { ResourceEventMapper } from './eventMappers/resourceEventMapper';
|
|
6
|
-
import type { DdRumType, RumActionType, ResourceKind
|
|
6
|
+
import type { ErrorSource, DdRumType, RumActionType, ResourceKind } from './types';
|
|
7
7
|
declare class DdRumWrapper implements DdRumType {
|
|
8
8
|
private nativeRum;
|
|
9
9
|
private lastActionData?;
|
|
@@ -24,7 +24,7 @@ declare class DdRumWrapper implements DdRumType {
|
|
|
24
24
|
addAction: (type: RumActionType, name: string, context?: object, timestampMs?: number, actionContext?: GestureResponderEvent) => Promise<void>;
|
|
25
25
|
startResource: (key: string, method: string, url: string, context?: object, timestampMs?: number) => Promise<void>;
|
|
26
26
|
stopResource: (key: string, statusCode: number, kind: ResourceKind, size?: number, context?: object, timestampMs?: number, resourceContext?: XMLHttpRequest) => Promise<void>;
|
|
27
|
-
addError: (message: string, source: ErrorSource, stacktrace: string, context?: object, timestampMs?: number) => Promise<void>;
|
|
27
|
+
addError: (message: string, source: ErrorSource, stacktrace: string, context?: object, timestampMs?: number, fingerprint?: string) => Promise<void>;
|
|
28
28
|
addTiming: (name: string) => Promise<void>;
|
|
29
29
|
stopSession: () => Promise<void>;
|
|
30
30
|
addFeatureFlagEvaluation: (name: string, value: unknown) => Promise<void>;
|
|
@@ -40,3 +40,4 @@ declare class DdRumWrapper implements DdRumType {
|
|
|
40
40
|
}
|
|
41
41
|
export declare const DdRum: DdRumWrapper;
|
|
42
42
|
export {};
|
|
43
|
+
//# sourceMappingURL=DdRum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdRum.d.ts","sourceRoot":"","sources":["../../../../../../core/src/rum/DdRum.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAU1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAGxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,KAAK,EACR,WAAW,EACX,SAAS,EACT,aAAa,EACb,YAAY,EACf,MAAM,SAAS,CAAC;AAIjB,cAAM,YAAa,YAAW,SAAS;IAEnC,OAAO,CAAC,SAAS,CACJ;IACb,OAAO,CAAC,cAAc,CAAC,CAAwC;IAC/D,OAAO,CAAC,gBAAgB,CAAuC;IAC/D,OAAO,CAAC,mBAAmB,CAA0C;IACrE,OAAO,CAAC,iBAAiB,CAAwC;IACjE,OAAO,CAAC,YAAY,CAA2C;IAE/D,SAAS,QACA,MAAM,QACL,MAAM,YACH,MAAM,gBACF,MAAM,KACpB,QAAQ,IAAI,CAAC,CAad;IAEF,QAAQ,QACC,MAAM,YACF,MAAM,gBACF,MAAM,KACpB,QAAQ,IAAI,CAAC,CAKd;IAEF,WAAW,SACD,aAAa,QACb,MAAM,YACH,MAAM,gBACF,MAAM,KACpB,QAAQ,IAAI,CAAC,CAcd;IAEF,UAAU,YAEA;QACI,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,MAAM;QACZ,OAAO,CAAC,EAAE,MAAM;QAChB,WAAW,CAAC,EAAE,MAAM;KACvB,GACD,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,CAAC,KAC/C,QAAQ,IAAI,CAAC,CAQd;IAEF,eAAe,iBAAkB,YAAY,KAAG,IAAI,CAElD;IAEF,SAAS,SACC,aAAa,QACb,MAAM,YACH,MAAM,gBACF,MAAM,kBACH,qBAAqB,KACtC,QAAQ,IAAI,CAAC,CAuBd;IAEF,aAAa,QACJ,MAAM,UACH,MAAM,OACT,MAAM,YACF,MAAM,gBACF,MAAM,KACpB,QAAQ,IAAI,CAAC,CAed;IAEF,YAAY,QACH,MAAM,cACC,MAAM,QACZ,YAAY,SACZ,MAAM,YACH,MAAM,gBACF,MAAM,oBACD,cAAc,KACjC,QAAQ,IAAI,CAAC,CA4Cd;IAEF,QAAQ,YACK,MAAM,UACP,WAAW,cACP,MAAM,YACT,MAAM,gBACF,MAAM,gBACL,MAAM,KACrB,QAAQ,IAAI,CAAC,CA0Bd;IAEF,SAAS,SAAU,MAAM,KAAG,QAAQ,IAAI,CAAC,CAMvC;IAEF,WAAW,QAAO,QAAQ,IAAI,CAAC,CAG7B;IAEF,wBAAwB,SACd,MAAM,SACL,OAAO,KACf,QAAQ,IAAI,CAAC,CAUd;IAEI,mBAAmB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAOxD,wBAAwB,CAAC,gBAAgB,EAAE,gBAAgB;IAI3D,0BAA0B;IAI1B,2BAA2B,CAAC,mBAAmB,EAAE,mBAAmB;IAMpE,6BAA6B;IAI7B,yBAAyB,CAAC,iBAAiB,EAAE,iBAAiB;IAI9D,2BAA2B;IAI3B,OAAO,CAAC,oBAAoB,CAiC1B;IAEF,OAAO,CAAC,2BAA2B,CAkDjC;CACL;AAiCD,eAAO,MAAM,KAAK,cAAqB,CAAC"}
|
|
@@ -19,3 +19,4 @@ type NativeAction = {
|
|
|
19
19
|
export type ActionEventMapper = (event: ActionEvent) => ActionEvent | null;
|
|
20
20
|
export declare const generateActionEventMapper: (eventMapper: ActionEventMapper | undefined) => EventMapper<RawAction, ActionEvent, NativeAction>;
|
|
21
21
|
export {};
|
|
22
|
+
//# sourceMappingURL=actionEventMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionEventMapper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/eventMappers/actionEventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,KAAK,SAAS,GAAG;IACb,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACzC,CAAC;AAEF,KAAK,WAAW,GAAG,SAAS,GAAG,4BAA4B,CAAC;AAE5D,KAAK,YAAY,GAAG;IAChB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAC;AAE3E,eAAO,MAAM,yBAAyB,gBACrB,iBAAiB,GAAG,SAAS,sDAOzC,CAAC"}
|
|
@@ -7,6 +7,7 @@ type RawError = {
|
|
|
7
7
|
stacktrace: string;
|
|
8
8
|
context: object;
|
|
9
9
|
timestampMs: number;
|
|
10
|
+
fingerprint: string;
|
|
10
11
|
};
|
|
11
12
|
type ErrorEvent = RawError & AdditionalEventDataForMapper;
|
|
12
13
|
type NativeError = {
|
|
@@ -15,7 +16,9 @@ type NativeError = {
|
|
|
15
16
|
stacktrace: string;
|
|
16
17
|
context: object;
|
|
17
18
|
timestampMs: number;
|
|
19
|
+
fingerprint: string;
|
|
18
20
|
};
|
|
19
21
|
export type ErrorEventMapper = (event: ErrorEvent) => ErrorEvent | null;
|
|
20
22
|
export declare const generateErrorEventMapper: (eventMapper: ErrorEventMapper | undefined) => EventMapper<RawError, ErrorEvent, NativeError>;
|
|
21
23
|
export {};
|
|
24
|
+
//# sourceMappingURL=errorEventMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorEventMapper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/eventMappers/errorEventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,KAAK,QAAQ,GAAG;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,UAAU,GAAG,QAAQ,GAAG,4BAA4B,CAAC;AAE1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK,UAAU,GAAG,IAAI,CAAC;AAExE,eAAO,MAAM,wBAAwB,gBACpB,gBAAgB,GAAG,SAAS,mDAOxC,CAAC"}
|
|
@@ -22,3 +22,4 @@ type NativeResource = {
|
|
|
22
22
|
export type ResourceEventMapper = (event: ResourceEvent) => ResourceEvent | null;
|
|
23
23
|
export declare const generateResourceEventMapper: (eventMapper: ResourceEventMapper | undefined) => EventMapper<RawResource, ResourceEvent, NativeResource>;
|
|
24
24
|
export {};
|
|
25
|
+
//# sourceMappingURL=resourceEventMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceEventMapper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/eventMappers/resourceEventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,KAAK,WAAW,GAAG;IACf,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAE,cAAc,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,KAAK,aAAa,GAAG,WAAW,GAAG,4BAA4B,CAAC;AAEhE,KAAK,cAAc,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAC9B,KAAK,EAAE,aAAa,KACnB,aAAa,GAAG,IAAI,CAAC;AAE1B,eAAO,MAAM,2BAA2B,gBACvB,mBAAmB,GAAG,SAAS,4DAO3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdRumErrorTracking.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/instrumentation/DdRumErrorTracking.tsx"],"names":[],"mappings":"AAsBA;;GAEG;AACH,qBAAa,kBAAkB;IAC3B,OAAO,CAAC,MAAM,CAAC,UAAU,CAAS;IAElC,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAS;IAG/C,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAiE;IAGnG,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAiC;IAEnE;;OAEG;IACH,MAAM,CAAC,aAAa,IAAI,IAAI;IA8B5B,MAAM,CAAC,aAAa,UAAW,GAAG,YAAY,OAAO,KAAG,IAAI,CAuB1D;IAEF,MAAM,CAAC,cAAc,cAAe,OAAO,EAAE,KAAG,IAAI,CA2ClD;IAEF,OAAO,CAAC,MAAM,CAAC,WAAW,CAcxB;CACL"}
|
package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdEventsInterceptor.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AAEzD,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AAKpD,MAAM,MAAM,0BAA0B,GAAG;IACrC;;SAEK;IACL,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;SAEK;IACL,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,qBAAa,mBAAoB,YAAW,iBAAiB;IACzD,MAAM,CAAC,kCAAkC,SAKK;IAE9C,OAAO,CAAC,0BAA0B,CAAoB;IAEtD,OAAO,CAAC,mBAAmB,CAAC,CAAS;IACrC,OAAO,CAAC,qBAAqB,CAAU;gBAE3B,OAAO,GAAE,0BAA+B;IAKpD,gBAAgB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;IAqBtC,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,iBAAiB;IAoBzB,OAAO,CAAC,sBAAsB;IAU9B,OAAO,CAAC,sBAAsB;CAkBjC"}
|
|
@@ -9,6 +9,7 @@ export declare class DdRumUserInteractionTracking {
|
|
|
9
9
|
private static originalCreateElement;
|
|
10
10
|
private static originalMemo;
|
|
11
11
|
private static originalJsx;
|
|
12
|
+
private static originalDevJsx;
|
|
12
13
|
private static patchCreateElementFunction;
|
|
13
14
|
/**
|
|
14
15
|
* Starts tracking user interactions and sends a RUM Action event every time a new interaction was detected.
|
|
@@ -18,3 +19,4 @@ export declare class DdRumUserInteractionTracking {
|
|
|
18
19
|
static startTracking(options: DdEventsInterceptorOptions): void;
|
|
19
20
|
static stopTracking(): void;
|
|
20
21
|
}
|
|
22
|
+
//# sourceMappingURL=DdRumUserInteractionTracking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdRumUserInteractionTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAMxE;;;GAGG;AACH,qBAAa,4BAA4B;IACrC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAS;IAClC,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAkD;IAClF,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAuB;IAC3D,OAAO,CAAC,MAAM,CAAC,YAAY,CAAc;IACzC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAQ;IAClC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAQ;IAErC,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAuBvC;IAEF;;;;OAIG;IACH,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,0BAA0B,GAAG,IAAI;IA0F/D,MAAM,CAAC,YAAY;CActB"}
|
package/lib/typescript/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventsInterceptor.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/EventsInterceptor.tsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,WAAW,iBAAiB;IACtC,gBAAgB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoOpEventsInterceptor.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AAEzD,MAAM,CAAC,OAAO,OAAO,qBAAsB,YAAW,iBAAiB;IAEnE,gBAAgB,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI;CAG1C"}
|
|
@@ -5,3 +5,4 @@
|
|
|
5
5
|
* This is documented in https://github.com/DataDog/dd-sdk-reactnative/issues/419.
|
|
6
6
|
*/
|
|
7
7
|
export declare const areObjectShallowEqual: (objectA: Record<string, unknown> | undefined | null, objectB: Record<string, unknown> | undefined | null) => boolean;
|
|
8
|
+
//# sourceMappingURL=ShallowObjectEqualityChecker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShallowObjectEqualityChecker.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.ts"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,YACrB,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,WAC1C,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,KACpD,OAgBF,CAAC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const getJsxRuntimes: () => any[];
|
|
2
|
+
//# sourceMappingURL=getJsxRuntime.d.ts.map
|
package/lib/typescript/core/src/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getJsxRuntime.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/getJsxRuntime.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,aA8B1B,CAAC"}
|