@datadog/mobile-react-native-code-push 2.4.0 → 2.4.1

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.
@@ -13,7 +13,6 @@ export declare class DdSdkReactNative {
13
13
  private static readonly DD_VERSION_SUFFIX;
14
14
  private static wasAutoInstrumented;
15
15
  private static features?;
16
- private static _isInitialized;
17
16
  /**
18
17
  * Initializes the Datadog SDK.
19
18
  * @param configuration the configuration for the SDK library
@@ -57,10 +56,6 @@ export declare class DdSdkReactNative {
57
56
  * @returns a Promise
58
57
  */
59
58
  static clearAllData: () => Promise<void>;
60
- /**
61
- * Returns `true` if the SDK was initialized, `false` otherwise.
62
- */
63
- static isInitialized(): boolean;
64
59
  private static buildConfiguration;
65
60
  private static enableFeatures;
66
61
  }
@@ -1,3 +1,4 @@
1
+ import './polyfills';
1
2
  import { DatadogProviderConfiguration, DdSdkReactNativeConfiguration, InitializationMode, VitalsUpdateFrequency, UploadFrequency, BatchSize } from './DdSdkReactNativeConfiguration';
2
3
  import { DdSdkReactNative } from './DdSdkReactNative';
3
4
  import { InternalLog } from './InternalLog';
@@ -0,0 +1,12 @@
1
+ /**
2
+ * A singleton container for attributes that are shared internally across all
3
+ * the SDK classes.
4
+ */
5
+ export declare class GlobalState {
6
+ /**
7
+ * `true` if the SDK is initialized, `false` otherwise.
8
+ */
9
+ isInitialized: boolean;
10
+ private static _instance;
11
+ static get instance(): GlobalState;
12
+ }
@@ -1 +1 @@
1
- export declare const version = "2.4.0";
1
+ export declare const version = "2.4.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/mobile-react-native-code-push",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
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.4.0",
41
+ "@datadog/mobile-react-native": "^2.4.1",
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": "3717f76f94bb68f6d871f84e38db5ba606eb7b06"
81
+ "gitHead": "f527de2facb85c3e5bdfcc7e46e2931c1f9e8039"
82
82
  }