@datadog/mobile-react-native 1.0.0-rc6 → 1.0.0-rc7
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/InternalLog.js +5 -0
- package/lib/commonjs/InternalLog.js.map +1 -1
- package/lib/commonjs/index.js +8 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/InternalLog.js +6 -0
- package/lib/module/InternalLog.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/InternalLog.d.ts +5 -0
- package/lib/typescript/index.d.ts +2 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/InternalLog.tsx +5 -0
- package/src/index.tsx +2 -0
- package/src/version.ts +1 -1
- package/lib/commonjs/internal.js +0 -14
- package/lib/commonjs/internal.js.map +0 -1
- package/lib/module/internal.js +0 -2
- package/lib/module/internal.js.map +0 -1
- package/lib/typescript/internal.d.ts +0 -1
- package/src/internal.tsx +0 -1
|
@@ -9,6 +9,11 @@ var _SdkVerbosity = require("./SdkVerbosity");
|
|
|
9
9
|
|
|
10
10
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* /!\ DO NOT USE THIS IN YOUR APP /!\\
|
|
14
|
+
*
|
|
15
|
+
* This logger is only for debugging the Datadog SDK.
|
|
16
|
+
*/
|
|
12
17
|
class InternalLog {
|
|
13
18
|
static log(message, verbosity) {
|
|
14
19
|
if (InternalLog.verbosity === undefined) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["InternalLog.tsx"],"names":["InternalLog","log","message","verbosity","undefined","requiredLevel","levelMap","get","allowedLevel","prefixedMessage","SdkVerbosity","ERROR","console","error","WARN","warn","INFO","info","DEBUG","debug","Map"],"mappings":";;;;;;;AAMA;;;;
|
|
1
|
+
{"version":3,"sources":["InternalLog.tsx"],"names":["InternalLog","log","message","verbosity","undefined","requiredLevel","levelMap","get","allowedLevel","prefixedMessage","SdkVerbosity","ERROR","console","error","WARN","warn","INFO","info","DEBUG","debug","Map"],"mappings":";;;;;;;AAMA;;;;AAEA;AACA;AACA;AACA;AACA;AACO,MAAMA,WAAN,CAAkB;AAUJ,SAAHC,GAAG,CAACC,OAAD,EAAkBC,SAAlB,EAAiD;AAC9D,QAAIH,WAAW,CAACG,SAAZ,KAA0BC,SAA9B,EAAyC;AACrC;AACH;;AACD,UAAMC,aAAa,GAAGL,WAAW,CAACM,QAAZ,CAAqBC,GAArB,CAAyBJ,SAAzB,CAAtB;AACA,UAAMK,YAAY,GAAGR,WAAW,CAACM,QAAZ,CAAqBC,GAArB,CAAyBP,WAAW,CAACG,SAArC,CAArB;;AACA,QAAIK,YAAY,KAAKJ,SAAjB,IAA8BC,aAAa,KAAKD,SAApD,EAA+D;AAC3D;AACH;;AACD,UAAMK,eAAe,GAAI,YAAWP,OAAQ,EAA5C;;AACA,QAAIC,SAAS,KAAKO,2BAAaC,KAA3B,IAAoCN,aAAa,IAAIG,YAAzD,EAAuE;AACnEI,MAAAA,OAAO,CAACC,KAAR,CAAcJ,eAAd;AACH;;AAED,QAAIN,SAAS,KAAKO,2BAAaI,IAA3B,IAAmCT,aAAa,IAAIG,YAAxD,EAAsE;AAClEI,MAAAA,OAAO,CAACG,IAAR,CAAaN,eAAb;AACH;;AAED,QAAIN,SAAS,KAAKO,2BAAaM,IAA3B,IAAmCX,aAAa,IAAIG,YAAxD,EAAsE;AAClEI,MAAAA,OAAO,CAACK,IAAR,CAAaR,eAAb;AACH;;AAED,QAAIN,SAAS,KAAKO,2BAAaQ,KAA3B,IAAoCb,aAAa,IAAIG,YAAzD,EAAuE;AACnEI,MAAAA,OAAO,CAACO,KAAR,CAAcV,eAAd;AACH;AACJ;;AAnCoB;;;;gBAAZT,W,cACiB,IAAIoB,GAAJ,CAA8B,CACpD,CAACV,2BAAaQ,KAAd,EAAqB,CAArB,CADoD,EAEpD,CAACR,2BAAaM,IAAd,EAAoB,CAApB,CAFoD,EAGpD,CAACN,2BAAaI,IAAd,EAAoB,CAApB,CAHoD,EAIpD,CAACJ,2BAAaC,KAAd,EAAqB,CAArB,CAJoD,CAA9B,C;;gBADjBX,W,eAQ2CI,S","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 { SdkVerbosity } from './SdkVerbosity';\n\n/**\n * /!\\ DO NOT USE THIS IN YOUR APP /!\\\\\n *\n * This logger is only for debugging the Datadog SDK.\n */\nexport class InternalLog {\n private static levelMap = new Map<SdkVerbosity, number>([\n [SdkVerbosity.DEBUG, 1],\n [SdkVerbosity.INFO, 2],\n [SdkVerbosity.WARN, 3],\n [SdkVerbosity.ERROR, 4]\n ]);\n\n public static verbosity: SdkVerbosity | undefined = undefined;\n\n public static log(message: string, verbosity: SdkVerbosity): void {\n if (InternalLog.verbosity === undefined) {\n return;\n }\n const requiredLevel = InternalLog.levelMap.get(verbosity);\n const allowedLevel = InternalLog.levelMap.get(InternalLog.verbosity);\n if (allowedLevel === undefined || requiredLevel === undefined) {\n return;\n }\n const prefixedMessage = `DATADOG: ${message}`;\n if (verbosity === SdkVerbosity.ERROR && requiredLevel >= allowedLevel) {\n console.error(prefixedMessage);\n }\n\n if (verbosity === SdkVerbosity.WARN && requiredLevel >= allowedLevel) {\n console.warn(prefixedMessage);\n }\n\n if (verbosity === SdkVerbosity.INFO && requiredLevel >= allowedLevel) {\n console.info(prefixedMessage);\n }\n\n if (verbosity === SdkVerbosity.DEBUG && requiredLevel >= allowedLevel) {\n console.debug(prefixedMessage);\n }\n }\n}\n"]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "DdSdkReactNative", {
|
|
|
15
15
|
return _DdSdkReactNative.DdSdkReactNative;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "InternalLog", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _InternalLog.InternalLog;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
Object.defineProperty(exports, "ProxyConfiguration", {
|
|
19
25
|
enumerable: true,
|
|
20
26
|
get: function () {
|
|
@@ -62,6 +68,8 @@ var _DdSdkReactNativeConfiguration = require("./DdSdkReactNativeConfiguration");
|
|
|
62
68
|
|
|
63
69
|
var _DdSdkReactNative = require("./DdSdkReactNative");
|
|
64
70
|
|
|
71
|
+
var _InternalLog = require("./InternalLog");
|
|
72
|
+
|
|
65
73
|
var _ProxyConfiguration = require("./ProxyConfiguration");
|
|
66
74
|
|
|
67
75
|
var _SdkVerbosity = require("./SdkVerbosity");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA","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 { DdSdkReactNativeConfiguration } from './DdSdkReactNativeConfiguration';\nimport { DdSdkReactNative } from './DdSdkReactNative';\nimport { InternalLog } from './InternalLog';\nimport { ProxyConfiguration, ProxyType } from './ProxyConfiguration';\nimport { SdkVerbosity } from './SdkVerbosity';\nimport { TrackingConsent } from './TrackingConsent';\nimport { DdLogs, DdTrace, DdRum } from './foundation';\n\nexport {\n DdLogs,\n DdTrace,\n DdRum,\n DdSdkReactNativeConfiguration,\n DdSdkReactNative,\n InternalLog,\n ProxyConfiguration,\n ProxyType,\n TrackingConsent,\n SdkVerbosity\n};\n"]}
|
package/lib/commonjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["version.ts"],"names":["version"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAG,WAAhB","sourcesContent":["// generated by genversion\nexport const version = '1.0.0-
|
|
1
|
+
{"version":3,"sources":["version.ts"],"names":["version"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAG,WAAhB","sourcesContent":["// generated by genversion\nexport const version = '1.0.0-rc7';\n"]}
|
|
@@ -6,6 +6,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6
6
|
* Copyright 2016-Present Datadog, Inc.
|
|
7
7
|
*/
|
|
8
8
|
import { SdkVerbosity } from './SdkVerbosity';
|
|
9
|
+
/**
|
|
10
|
+
* /!\ DO NOT USE THIS IN YOUR APP /!\\
|
|
11
|
+
*
|
|
12
|
+
* This logger is only for debugging the Datadog SDK.
|
|
13
|
+
*/
|
|
14
|
+
|
|
9
15
|
export class InternalLog {
|
|
10
16
|
static log(message, verbosity) {
|
|
11
17
|
if (InternalLog.verbosity === undefined) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["InternalLog.tsx"],"names":["SdkVerbosity","InternalLog","log","message","verbosity","undefined","requiredLevel","levelMap","get","allowedLevel","prefixedMessage","ERROR","console","error","WARN","warn","INFO","info","DEBUG","debug","Map"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AAEA,SAASA,YAAT,QAA6B,gBAA7B;AAEA,OAAO,MAAMC,WAAN,CAAkB;AAUJ,SAAHC,GAAG,CAACC,OAAD,EAAkBC,SAAlB,EAAiD;AAC9D,QAAIH,WAAW,CAACG,SAAZ,KAA0BC,SAA9B,EAAyC;AACrC;AACH;;AACD,UAAMC,aAAa,GAAGL,WAAW,CAACM,QAAZ,CAAqBC,GAArB,CAAyBJ,SAAzB,CAAtB;AACA,UAAMK,YAAY,GAAGR,WAAW,CAACM,QAAZ,CAAqBC,GAArB,CAAyBP,WAAW,CAACG,SAArC,CAArB;;AACA,QAAIK,YAAY,KAAKJ,SAAjB,IAA8BC,aAAa,KAAKD,SAApD,EAA+D;AAC3D;AACH;;AACD,UAAMK,eAAe,GAAI,YAAWP,OAAQ,EAA5C;;AACA,QAAIC,SAAS,KAAKJ,YAAY,CAACW,KAA3B,IAAoCL,aAAa,IAAIG,YAAzD,EAAuE;AACnEG,MAAAA,OAAO,CAACC,KAAR,CAAcH,eAAd;AACH;;AAED,QAAIN,SAAS,KAAKJ,YAAY,CAACc,IAA3B,IAAmCR,aAAa,IAAIG,YAAxD,EAAsE;AAClEG,MAAAA,OAAO,CAACG,IAAR,CAAaL,eAAb;AACH;;AAED,QAAIN,SAAS,KAAKJ,YAAY,CAACgB,IAA3B,IAAmCV,aAAa,IAAIG,YAAxD,EAAsE;AAClEG,MAAAA,OAAO,CAACK,IAAR,CAAaP,eAAb;AACH;;AAED,QAAIN,SAAS,KAAKJ,YAAY,CAACkB,KAA3B,IAAoCZ,aAAa,IAAIG,YAAzD,EAAuE;AACnEG,MAAAA,OAAO,CAACO,KAAR,CAAcT,eAAd;AACH;AACJ;;AAnCoB;;gBAAZT,W,cACiB,IAAImB,GAAJ,CAA8B,CACpD,CAACpB,YAAY,CAACkB,KAAd,EAAqB,CAArB,CADoD,EAEpD,CAAClB,YAAY,CAACgB,IAAd,EAAoB,CAApB,CAFoD,EAGpD,CAAChB,YAAY,CAACc,IAAd,EAAoB,CAApB,CAHoD,EAIpD,CAACd,YAAY,CAACW,KAAd,EAAqB,CAArB,CAJoD,CAA9B,C;;gBADjBV,W,eAQ2CI,S","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 { SdkVerbosity } from './SdkVerbosity';\n\nexport class InternalLog {\n private static levelMap = new Map<SdkVerbosity, number>([\n [SdkVerbosity.DEBUG, 1],\n [SdkVerbosity.INFO, 2],\n [SdkVerbosity.WARN, 3],\n [SdkVerbosity.ERROR, 4]\n ]);\n\n public static verbosity: SdkVerbosity | undefined = undefined;\n\n public static log(message: string, verbosity: SdkVerbosity): void {\n if (InternalLog.verbosity === undefined) {\n return;\n }\n const requiredLevel = InternalLog.levelMap.get(verbosity);\n const allowedLevel = InternalLog.levelMap.get(InternalLog.verbosity);\n if (allowedLevel === undefined || requiredLevel === undefined) {\n return;\n }\n const prefixedMessage = `DATADOG: ${message}`;\n if (verbosity === SdkVerbosity.ERROR && requiredLevel >= allowedLevel) {\n console.error(prefixedMessage);\n }\n\n if (verbosity === SdkVerbosity.WARN && requiredLevel >= allowedLevel) {\n console.warn(prefixedMessage);\n }\n\n if (verbosity === SdkVerbosity.INFO && requiredLevel >= allowedLevel) {\n console.info(prefixedMessage);\n }\n\n if (verbosity === SdkVerbosity.DEBUG && requiredLevel >= allowedLevel) {\n console.debug(prefixedMessage);\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["InternalLog.tsx"],"names":["SdkVerbosity","InternalLog","log","message","verbosity","undefined","requiredLevel","levelMap","get","allowedLevel","prefixedMessage","ERROR","console","error","WARN","warn","INFO","info","DEBUG","debug","Map"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AAEA,SAASA,YAAT,QAA6B,gBAA7B;AAEA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,WAAN,CAAkB;AAUJ,SAAHC,GAAG,CAACC,OAAD,EAAkBC,SAAlB,EAAiD;AAC9D,QAAIH,WAAW,CAACG,SAAZ,KAA0BC,SAA9B,EAAyC;AACrC;AACH;;AACD,UAAMC,aAAa,GAAGL,WAAW,CAACM,QAAZ,CAAqBC,GAArB,CAAyBJ,SAAzB,CAAtB;AACA,UAAMK,YAAY,GAAGR,WAAW,CAACM,QAAZ,CAAqBC,GAArB,CAAyBP,WAAW,CAACG,SAArC,CAArB;;AACA,QAAIK,YAAY,KAAKJ,SAAjB,IAA8BC,aAAa,KAAKD,SAApD,EAA+D;AAC3D;AACH;;AACD,UAAMK,eAAe,GAAI,YAAWP,OAAQ,EAA5C;;AACA,QAAIC,SAAS,KAAKJ,YAAY,CAACW,KAA3B,IAAoCL,aAAa,IAAIG,YAAzD,EAAuE;AACnEG,MAAAA,OAAO,CAACC,KAAR,CAAcH,eAAd;AACH;;AAED,QAAIN,SAAS,KAAKJ,YAAY,CAACc,IAA3B,IAAmCR,aAAa,IAAIG,YAAxD,EAAsE;AAClEG,MAAAA,OAAO,CAACG,IAAR,CAAaL,eAAb;AACH;;AAED,QAAIN,SAAS,KAAKJ,YAAY,CAACgB,IAA3B,IAAmCV,aAAa,IAAIG,YAAxD,EAAsE;AAClEG,MAAAA,OAAO,CAACK,IAAR,CAAaP,eAAb;AACH;;AAED,QAAIN,SAAS,KAAKJ,YAAY,CAACkB,KAA3B,IAAoCZ,aAAa,IAAIG,YAAzD,EAAuE;AACnEG,MAAAA,OAAO,CAACO,KAAR,CAAcT,eAAd;AACH;AACJ;;AAnCoB;;gBAAZT,W,cACiB,IAAImB,GAAJ,CAA8B,CACpD,CAACpB,YAAY,CAACkB,KAAd,EAAqB,CAArB,CADoD,EAEpD,CAAClB,YAAY,CAACgB,IAAd,EAAoB,CAApB,CAFoD,EAGpD,CAAChB,YAAY,CAACc,IAAd,EAAoB,CAApB,CAHoD,EAIpD,CAACd,YAAY,CAACW,KAAd,EAAqB,CAArB,CAJoD,CAA9B,C;;gBADjBV,W,eAQ2CI,S","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 { SdkVerbosity } from './SdkVerbosity';\n\n/**\n * /!\\ DO NOT USE THIS IN YOUR APP /!\\\\\n *\n * This logger is only for debugging the Datadog SDK.\n */\nexport class InternalLog {\n private static levelMap = new Map<SdkVerbosity, number>([\n [SdkVerbosity.DEBUG, 1],\n [SdkVerbosity.INFO, 2],\n [SdkVerbosity.WARN, 3],\n [SdkVerbosity.ERROR, 4]\n ]);\n\n public static verbosity: SdkVerbosity | undefined = undefined;\n\n public static log(message: string, verbosity: SdkVerbosity): void {\n if (InternalLog.verbosity === undefined) {\n return;\n }\n const requiredLevel = InternalLog.levelMap.get(verbosity);\n const allowedLevel = InternalLog.levelMap.get(InternalLog.verbosity);\n if (allowedLevel === undefined || requiredLevel === undefined) {\n return;\n }\n const prefixedMessage = `DATADOG: ${message}`;\n if (verbosity === SdkVerbosity.ERROR && requiredLevel >= allowedLevel) {\n console.error(prefixedMessage);\n }\n\n if (verbosity === SdkVerbosity.WARN && requiredLevel >= allowedLevel) {\n console.warn(prefixedMessage);\n }\n\n if (verbosity === SdkVerbosity.INFO && requiredLevel >= allowedLevel) {\n console.info(prefixedMessage);\n }\n\n if (verbosity === SdkVerbosity.DEBUG && requiredLevel >= allowedLevel) {\n console.debug(prefixedMessage);\n }\n }\n}\n"]}
|
package/lib/module/index.js
CHANGED
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { DdSdkReactNativeConfiguration } from './DdSdkReactNativeConfiguration';
|
|
7
7
|
import { DdSdkReactNative } from './DdSdkReactNative';
|
|
8
|
+
import { InternalLog } from './InternalLog';
|
|
8
9
|
import { ProxyConfiguration, ProxyType } from './ProxyConfiguration';
|
|
9
10
|
import { SdkVerbosity } from './SdkVerbosity';
|
|
10
11
|
import { TrackingConsent } from './TrackingConsent';
|
|
11
12
|
import { DdLogs, DdTrace, DdRum } from './foundation';
|
|
12
|
-
export { DdLogs, DdTrace, DdRum, DdSdkReactNativeConfiguration, DdSdkReactNative, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity };
|
|
13
|
+
export { DdLogs, DdTrace, DdRum, DdSdkReactNativeConfiguration, DdSdkReactNative, InternalLog, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity };
|
|
13
14
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.tsx"],"names":["DdSdkReactNativeConfiguration","DdSdkReactNative","ProxyConfiguration","ProxyType","SdkVerbosity","TrackingConsent","DdLogs","DdTrace","DdRum"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AAEA,SAASA,6BAAT,QAA8C,iCAA9C;AACA,SAASC,gBAAT,QAAiC,oBAAjC;AACA,SAASC,kBAAT,EAA6BC,SAA7B,QAA8C,sBAA9C;AACA,SAASC,YAAT,QAA6B,gBAA7B;AACA,SAASC,eAAT,QAAgC,mBAAhC;AACA,SAASC,MAAT,EAAiBC,OAAjB,EAA0BC,KAA1B,QAAuC,cAAvC;AAEA,SACIF,MADJ,EAEIC,OAFJ,EAGIC,KAHJ,
|
|
1
|
+
{"version":3,"sources":["index.tsx"],"names":["DdSdkReactNativeConfiguration","DdSdkReactNative","InternalLog","ProxyConfiguration","ProxyType","SdkVerbosity","TrackingConsent","DdLogs","DdTrace","DdRum"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AAEA,SAASA,6BAAT,QAA8C,iCAA9C;AACA,SAASC,gBAAT,QAAiC,oBAAjC;AACA,SAASC,WAAT,QAA4B,eAA5B;AACA,SAASC,kBAAT,EAA6BC,SAA7B,QAA8C,sBAA9C;AACA,SAASC,YAAT,QAA6B,gBAA7B;AACA,SAASC,eAAT,QAAgC,mBAAhC;AACA,SAASC,MAAT,EAAiBC,OAAjB,EAA0BC,KAA1B,QAAuC,cAAvC;AAEA,SACIF,MADJ,EAEIC,OAFJ,EAGIC,KAHJ,EAIIT,6BAJJ,EAKIC,gBALJ,EAMIC,WANJ,EAOIC,kBAPJ,EAQIC,SARJ,EASIE,eATJ,EAUID,YAVJ","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 { DdSdkReactNativeConfiguration } from './DdSdkReactNativeConfiguration';\nimport { DdSdkReactNative } from './DdSdkReactNative';\nimport { InternalLog } from './InternalLog';\nimport { ProxyConfiguration, ProxyType } from './ProxyConfiguration';\nimport { SdkVerbosity } from './SdkVerbosity';\nimport { TrackingConsent } from './TrackingConsent';\nimport { DdLogs, DdTrace, DdRum } from './foundation';\n\nexport {\n DdLogs,\n DdTrace,\n DdRum,\n DdSdkReactNativeConfiguration,\n DdSdkReactNative,\n InternalLog,\n ProxyConfiguration,\n ProxyType,\n TrackingConsent,\n SdkVerbosity\n};\n"]}
|
package/lib/module/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["version.ts"],"names":["version"],"mappings":"AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,WAAhB","sourcesContent":["// generated by genversion\nexport const version = '1.0.0-
|
|
1
|
+
{"version":3,"sources":["version.ts"],"names":["version"],"mappings":"AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,WAAhB","sourcesContent":["// generated by genversion\nexport const version = '1.0.0-rc7';\n"]}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { SdkVerbosity } from './SdkVerbosity';
|
|
2
|
+
/**
|
|
3
|
+
* /!\ DO NOT USE THIS IN YOUR APP /!\\
|
|
4
|
+
*
|
|
5
|
+
* This logger is only for debugging the Datadog SDK.
|
|
6
|
+
*/
|
|
2
7
|
export declare class InternalLog {
|
|
3
8
|
private static levelMap;
|
|
4
9
|
static verbosity: SdkVerbosity | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DdSdkReactNativeConfiguration } from './DdSdkReactNativeConfiguration';
|
|
2
2
|
import { DdSdkReactNative } from './DdSdkReactNative';
|
|
3
|
+
import { InternalLog } from './InternalLog';
|
|
3
4
|
import { ProxyConfiguration, ProxyType } from './ProxyConfiguration';
|
|
4
5
|
import { SdkVerbosity } from './SdkVerbosity';
|
|
5
6
|
import { TrackingConsent } from './TrackingConsent';
|
|
6
7
|
import { DdLogs, DdTrace, DdRum } from './foundation';
|
|
7
|
-
export { DdLogs, DdTrace, DdRum, DdSdkReactNativeConfiguration, DdSdkReactNative, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity };
|
|
8
|
+
export { DdLogs, DdTrace, DdRum, DdSdkReactNativeConfiguration, DdSdkReactNative, InternalLog, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.0-
|
|
1
|
+
export declare const version = "1.0.0-rc7";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datadog/mobile-react-native",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-rc7",
|
|
4
4
|
"description": "A client-side React Native module to interact with Datadog",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datadog",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
]
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "d789622b6a8f0c06885bc43fcc2ec4ca9f750557"
|
|
75
75
|
}
|
package/src/InternalLog.tsx
CHANGED
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
import { SdkVerbosity } from './SdkVerbosity';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* /!\ DO NOT USE THIS IN YOUR APP /!\\
|
|
11
|
+
*
|
|
12
|
+
* This logger is only for debugging the Datadog SDK.
|
|
13
|
+
*/
|
|
9
14
|
export class InternalLog {
|
|
10
15
|
private static levelMap = new Map<SdkVerbosity, number>([
|
|
11
16
|
[SdkVerbosity.DEBUG, 1],
|
package/src/index.tsx
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { DdSdkReactNativeConfiguration } from './DdSdkReactNativeConfiguration';
|
|
8
8
|
import { DdSdkReactNative } from './DdSdkReactNative';
|
|
9
|
+
import { InternalLog } from './InternalLog';
|
|
9
10
|
import { ProxyConfiguration, ProxyType } from './ProxyConfiguration';
|
|
10
11
|
import { SdkVerbosity } from './SdkVerbosity';
|
|
11
12
|
import { TrackingConsent } from './TrackingConsent';
|
|
@@ -17,6 +18,7 @@ export {
|
|
|
17
18
|
DdRum,
|
|
18
19
|
DdSdkReactNativeConfiguration,
|
|
19
20
|
DdSdkReactNative,
|
|
21
|
+
InternalLog,
|
|
20
22
|
ProxyConfiguration,
|
|
21
23
|
ProxyType,
|
|
22
24
|
TrackingConsent,
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '1.0.0-
|
|
2
|
+
export const version = '1.0.0-rc7';
|
package/lib/commonjs/internal.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "InternalLog", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _InternalLog.InternalLog;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _InternalLog = require("./InternalLog");
|
|
14
|
-
//# sourceMappingURL=internal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["internal.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { InternalLog } from './InternalLog';\n"]}
|
package/lib/module/internal.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["internal.tsx"],"names":["InternalLog"],"mappings":"AAAA,SAASA,WAAT,QAA4B,eAA5B","sourcesContent":["export { InternalLog } from './InternalLog';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InternalLog } from './InternalLog';
|
package/src/internal.tsx
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InternalLog } from './InternalLog';
|