@statsig/expo-bindings 3.2.0-beta.1 → 3.2.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/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statsig/expo-bindings",
|
|
3
|
-
"version": "3.2.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@statsig/client-core": "3.2.0
|
|
6
|
-
"@statsig/js-client": "3.2.0
|
|
7
|
-
"@statsig/react-bindings": "3.2.0
|
|
8
|
-
"@statsig/react-native-core": "3.2.0
|
|
5
|
+
"@statsig/client-core": "3.2.0",
|
|
6
|
+
"@statsig/js-client": "3.2.0",
|
|
7
|
+
"@statsig/react-bindings": "3.2.0",
|
|
8
|
+
"@statsig/react-native-core": "3.2.0"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"react": "^16.6.3 || ^17.0.0 || ^18.0.0",
|
package/src/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export * from '@statsig/react-bindings';
|
|
2
2
|
declare const StatsigProvider: never;
|
|
3
3
|
declare const StatsigClient: never;
|
|
4
|
-
|
|
5
|
-
declare const useClientBootstrapInit: never;
|
|
6
|
-
export { StatsigProvider, StatsigClient, useClientAsyncInit, useClientBootstrapInit, };
|
|
4
|
+
export { StatsigProvider, StatsigClient };
|
|
7
5
|
export { StatsigClientExpo } from './StatsigClientExpo';
|
|
8
6
|
export { StatsigProviderExpo } from './StatsigProviderExpo';
|
|
9
|
-
export { useClientAsyncInitExpo } from './useClientAsyncInitExpo';
|
|
10
|
-
export { useClientBootstrapInitExpo } from './useClientBootstrapInitExpo';
|
package/src/index.js
CHANGED
|
@@ -14,22 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.StatsigProviderExpo = exports.StatsigClientExpo = exports.StatsigClient = exports.StatsigProvider = void 0;
|
|
18
18
|
__exportStar(require("@statsig/react-bindings"), exports);
|
|
19
19
|
// Expo environments should use the Expo specific variants
|
|
20
20
|
const StatsigProvider = undefined;
|
|
21
21
|
exports.StatsigProvider = StatsigProvider;
|
|
22
22
|
const StatsigClient = undefined;
|
|
23
23
|
exports.StatsigClient = StatsigClient;
|
|
24
|
-
const useClientAsyncInit = undefined;
|
|
25
|
-
exports.useClientAsyncInit = useClientAsyncInit;
|
|
26
|
-
const useClientBootstrapInit = undefined;
|
|
27
|
-
exports.useClientBootstrapInit = useClientBootstrapInit;
|
|
28
24
|
var StatsigClientExpo_1 = require("./StatsigClientExpo");
|
|
29
25
|
Object.defineProperty(exports, "StatsigClientExpo", { enumerable: true, get: function () { return StatsigClientExpo_1.StatsigClientExpo; } });
|
|
30
26
|
var StatsigProviderExpo_1 = require("./StatsigProviderExpo");
|
|
31
27
|
Object.defineProperty(exports, "StatsigProviderExpo", { enumerable: true, get: function () { return StatsigProviderExpo_1.StatsigProviderExpo; } });
|
|
32
|
-
var useClientAsyncInitExpo_1 = require("./useClientAsyncInitExpo");
|
|
33
|
-
Object.defineProperty(exports, "useClientAsyncInitExpo", { enumerable: true, get: function () { return useClientAsyncInitExpo_1.useClientAsyncInitExpo; } });
|
|
34
|
-
var useClientBootstrapInitExpo_1 = require("./useClientBootstrapInitExpo");
|
|
35
|
-
Object.defineProperty(exports, "useClientBootstrapInitExpo", { enumerable: true, get: function () { return useClientBootstrapInitExpo_1.useClientBootstrapInitExpo; } });
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { StatsigUser } from '@statsig/client-core';
|
|
2
|
-
import { StatsigClient, StatsigOptions } from '@statsig/js-client';
|
|
3
|
-
export declare function useClientAsyncInitExpo(sdkKey: string, initialUser: StatsigUser, statsigOptions?: StatsigOptions | null): {
|
|
4
|
-
isLoading: boolean;
|
|
5
|
-
client: StatsigClient;
|
|
6
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useClientAsyncInitExpo = void 0;
|
|
4
|
-
const react_bindings_1 = require("@statsig/react-bindings");
|
|
5
|
-
const StatsigClientExpo_1 = require("./StatsigClientExpo");
|
|
6
|
-
function useClientAsyncInitExpo(sdkKey, initialUser, statsigOptions = null) {
|
|
7
|
-
return (0, react_bindings_1.useStatsigInternalClientFactoryAsync)((args) => new StatsigClientExpo_1.StatsigClientExpo(args.sdkKey, args.initialUser, args.statsigOptions), {
|
|
8
|
-
sdkKey,
|
|
9
|
-
initialUser,
|
|
10
|
-
statsigOptions,
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
exports.useClientAsyncInitExpo = useClientAsyncInitExpo;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { StatsigUser } from '@statsig/client-core';
|
|
2
|
-
import { StatsigOptions } from '@statsig/js-client';
|
|
3
|
-
import { StatsigClientExpo } from './StatsigClientExpo';
|
|
4
|
-
export declare function useClientBootstrapInitExpo(sdkKey: string, initialUser: StatsigUser, initialValues: string, statsigOptions?: StatsigOptions | null): StatsigClientExpo;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useClientBootstrapInitExpo = void 0;
|
|
4
|
-
const react_bindings_1 = require("@statsig/react-bindings");
|
|
5
|
-
const StatsigClientExpo_1 = require("./StatsigClientExpo");
|
|
6
|
-
function useClientBootstrapInitExpo(sdkKey, initialUser, initialValues, statsigOptions = null) {
|
|
7
|
-
return (0, react_bindings_1.useStatsigInternalClientFactoryBootstrap)((args) => new StatsigClientExpo_1.StatsigClientExpo(args.sdkKey, args.initialUser, args.statsigOptions), {
|
|
8
|
-
sdkKey,
|
|
9
|
-
initialUser,
|
|
10
|
-
initialValues,
|
|
11
|
-
statsigOptions,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
exports.useClientBootstrapInitExpo = useClientBootstrapInitExpo;
|