@zeniai/client-epic-state 4.15.28 → 4.15.29
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/init.d.ts +1 -1
- package/lib/init.js +2 -2
- package/package.json +1 -1
package/lib/init.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare let store: ZeniStore;
|
|
|
11
11
|
* Note: This version SHOULD BE used only in the client side. Not intended to be used
|
|
12
12
|
* when using from server side.
|
|
13
13
|
*/
|
|
14
|
-
export default function initialize(restEndPoints: RESTAPIEndpoints, userId?: string, sessionId?: string, tenantId?: string): ZeniStore;
|
|
14
|
+
export default function initialize(restEndPoints: RESTAPIEndpoints, userId?: string, sessionId?: string, tenantId?: string, isSandboxEnv?: boolean): ZeniStore;
|
|
15
15
|
export interface PusherAuthPayload {
|
|
16
16
|
auth: ID;
|
|
17
17
|
}
|
package/lib/init.js
CHANGED
|
@@ -29,7 +29,7 @@ let initialized = false;
|
|
|
29
29
|
* Note: This version SHOULD BE used only in the client side. Not intended to be used
|
|
30
30
|
* when using from server side.
|
|
31
31
|
*/
|
|
32
|
-
function initialize(restEndPoints, userId, sessionId, tenantId) {
|
|
32
|
+
function initialize(restEndPoints, userId, sessionId, tenantId, isSandboxEnv) {
|
|
33
33
|
if (initialized) {
|
|
34
34
|
console.warn(`Already initialized with url ${JSON.stringify(exports.zeniAPI.apiEndPoints)}`);
|
|
35
35
|
return exports.store;
|
|
@@ -38,7 +38,7 @@ function initialize(restEndPoints, userId, sessionId, tenantId) {
|
|
|
38
38
|
console.info(`initializing with ${JSON.stringify(restEndPoints)}`);
|
|
39
39
|
initialize3rdPartyExtensions();
|
|
40
40
|
exports.zeniAPI = new zeniAPI_1.ZeniAPIClient(restEndPoints, userId, sessionId, tenantId);
|
|
41
|
-
exports.store = (0, configureStore_1.default)(exports.zeniAPI,
|
|
41
|
+
exports.store = (0, configureStore_1.default)(exports.zeniAPI, isSandboxEnv);
|
|
42
42
|
return exports.store;
|
|
43
43
|
}
|
|
44
44
|
let isPusherInitialized = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.29",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|