@splitsoftware/splitio-browserjs 0.2.1-rc.2 → 0.2.1-rc.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/cjs/platform/getModules.js +7 -8
- package/cjs/settings/defaults.js +1 -1
- package/esm/platform/getModules.js +5 -5
- package/esm/settings/defaults.js +1 -1
- package/package.json +3 -3
- package/src/full/umd.ts +1 -0
- package/src/platform/getModules.ts +5 -5
- package/src/settings/defaults.ts +1 -1
- package/src/umd.ts +1 -0
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getModules = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
4
|
var splitApi_1 = require("@splitsoftware/splitio-commons/cjs/services/splitApi");
|
|
6
5
|
var syncManagerOnline_1 = require("@splitsoftware/splitio-commons/cjs/sync/syncManagerOnline");
|
|
7
|
-
var pushManager_1 =
|
|
8
|
-
var pollingManagerCS_1 =
|
|
6
|
+
var pushManager_1 = require("@splitsoftware/splitio-commons/cjs/sync/streaming/pushManager");
|
|
7
|
+
var pollingManagerCS_1 = require("@splitsoftware/splitio-commons/cjs/sync/polling/pollingManagerCS");
|
|
9
8
|
var index_1 = require("@splitsoftware/splitio-commons/cjs/sdkManager/index");
|
|
10
9
|
var sdkClientMethodCS_1 = require("@splitsoftware/splitio-commons/cjs/sdkClient/sdkClientMethodCS");
|
|
11
|
-
var browser_1 =
|
|
10
|
+
var browser_1 = require("@splitsoftware/splitio-commons/cjs/listeners/browser");
|
|
12
11
|
var impressionObserverCS_1 = require("@splitsoftware/splitio-commons/cjs/trackers/impressionObserver/impressionObserverCS");
|
|
13
|
-
var pluggable_1 =
|
|
12
|
+
var pluggable_1 = require("@splitsoftware/splitio-commons/cjs/integrations/pluggable");
|
|
14
13
|
var utils_1 = require("@splitsoftware/splitio-commons/cjs/trackers/impressionObserver/utils");
|
|
15
14
|
var constants_1 = require("@splitsoftware/splitio-commons/cjs/utils/constants");
|
|
16
15
|
var syncManagerStandaloneFactory;
|
|
17
16
|
var syncManagerSubmittersFactory;
|
|
18
17
|
function getModules(settings, platform) {
|
|
19
18
|
if (!syncManagerStandaloneFactory)
|
|
20
|
-
syncManagerStandaloneFactory = syncManagerOnline_1.syncManagerOnlineFactory(pollingManagerCS_1.
|
|
19
|
+
syncManagerStandaloneFactory = syncManagerOnline_1.syncManagerOnlineFactory(pollingManagerCS_1.pollingManagerCSFactory, pushManager_1.pushManagerFactory);
|
|
21
20
|
var modules = {
|
|
22
21
|
settings: settings,
|
|
23
22
|
platform: platform,
|
|
@@ -26,9 +25,9 @@ function getModules(settings, platform) {
|
|
|
26
25
|
syncManagerFactory: syncManagerStandaloneFactory,
|
|
27
26
|
sdkManagerFactory: index_1.sdkManagerFactory,
|
|
28
27
|
sdkClientMethodFactory: sdkClientMethodCS_1.sdkClientMethodCSFactory,
|
|
29
|
-
SignalListener: browser_1.
|
|
28
|
+
SignalListener: browser_1.BrowserSignalListener,
|
|
30
29
|
impressionListener: settings.impressionListener,
|
|
31
|
-
integrationsManagerFactory: settings.integrations && settings.integrations.length > 0 ? pluggable_1.
|
|
30
|
+
integrationsManagerFactory: settings.integrations && settings.integrations.length > 0 ? pluggable_1.pluggableIntegrationsManagerFactory.bind(null, settings.integrations) : undefined,
|
|
32
31
|
impressionsObserverFactory: utils_1.shouldAddPt(settings) ? impressionObserverCS_1.impressionObserverCSFactory : undefined,
|
|
33
32
|
};
|
|
34
33
|
switch (settings.mode) {
|
package/cjs/settings/defaults.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaults = void 0;
|
|
4
4
|
var index_1 = require("@splitsoftware/splitio-commons/cjs/logger/index");
|
|
5
|
-
var packageVersion = '0.2.1-rc.
|
|
5
|
+
var packageVersion = '0.2.1-rc.3';
|
|
6
6
|
/**
|
|
7
7
|
* In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.
|
|
8
8
|
* Acceptable values are: 'DEBUG', 'INFO', 'WARN', 'ERROR', 'NONE'.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { splitApiFactory } from '@splitsoftware/splitio-commons/esm/services/splitApi';
|
|
2
2
|
import { syncManagerOnlineFactory } from '@splitsoftware/splitio-commons/esm/sync/syncManagerOnline';
|
|
3
|
-
import pushManagerFactory from '@splitsoftware/splitio-commons/esm/sync/streaming/pushManager';
|
|
4
|
-
import pollingManagerCSFactory from '@splitsoftware/splitio-commons/esm/sync/polling/pollingManagerCS';
|
|
3
|
+
import { pushManagerFactory } from '@splitsoftware/splitio-commons/esm/sync/streaming/pushManager';
|
|
4
|
+
import { pollingManagerCSFactory } from '@splitsoftware/splitio-commons/esm/sync/polling/pollingManagerCS';
|
|
5
5
|
import { sdkManagerFactory } from '@splitsoftware/splitio-commons/esm/sdkManager/index';
|
|
6
6
|
import { sdkClientMethodCSFactory } from '@splitsoftware/splitio-commons/esm/sdkClient/sdkClientMethodCS';
|
|
7
|
-
import BrowserSignalListener from '@splitsoftware/splitio-commons/esm/listeners/browser';
|
|
7
|
+
import { BrowserSignalListener } from '@splitsoftware/splitio-commons/esm/listeners/browser';
|
|
8
8
|
import { impressionObserverCSFactory } from '@splitsoftware/splitio-commons/esm/trackers/impressionObserver/impressionObserverCS';
|
|
9
|
-
import
|
|
9
|
+
import { pluggableIntegrationsManagerFactory } from '@splitsoftware/splitio-commons/esm/integrations/pluggable';
|
|
10
10
|
import { shouldAddPt } from '@splitsoftware/splitio-commons/esm/trackers/impressionObserver/utils';
|
|
11
11
|
import { CONSUMER_MODE, CONSUMER_PARTIAL_MODE, LOCALHOST_MODE } from '@splitsoftware/splitio-commons/esm/utils/constants';
|
|
12
12
|
var syncManagerStandaloneFactory;
|
|
@@ -24,7 +24,7 @@ export function getModules(settings, platform) {
|
|
|
24
24
|
sdkClientMethodFactory: sdkClientMethodCSFactory,
|
|
25
25
|
SignalListener: BrowserSignalListener,
|
|
26
26
|
impressionListener: settings.impressionListener,
|
|
27
|
-
integrationsManagerFactory: settings.integrations && settings.integrations.length > 0 ?
|
|
27
|
+
integrationsManagerFactory: settings.integrations && settings.integrations.length > 0 ? pluggableIntegrationsManagerFactory.bind(null, settings.integrations) : undefined,
|
|
28
28
|
impressionsObserverFactory: shouldAddPt(settings) ? impressionObserverCSFactory : undefined,
|
|
29
29
|
};
|
|
30
30
|
switch (settings.mode) {
|
package/esm/settings/defaults.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LogLevels, isLogLevelString } from '@splitsoftware/splitio-commons/esm/logger/index';
|
|
2
|
-
var packageVersion = '0.2.1-rc.
|
|
2
|
+
var packageVersion = '0.2.1-rc.3';
|
|
3
3
|
/**
|
|
4
4
|
* In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.
|
|
5
5
|
* Acceptable values are: 'DEBUG', 'INFO', 'WARN', 'ERROR', 'NONE'.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splitsoftware/splitio-browserjs",
|
|
3
|
-
"version": "0.2.1-rc.
|
|
3
|
+
"version": "0.2.1-rc.3",
|
|
4
4
|
"description": "Split SDK for Javascript on Browser",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"bugs": "https://github.com/splitio/javascript-browser-client/issues",
|
|
62
62
|
"homepage": "https://github.com/splitio/javascript-browser-client#readme",
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@splitsoftware/splitio-commons": "1.0.1-rc.
|
|
64
|
+
"@splitsoftware/splitio-commons": "1.0.1-rc.6",
|
|
65
65
|
"@types/google.analytics": "0.0.40"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"@rollup/plugin-node-resolve": "^8.0.1",
|
|
71
71
|
"@types/jest": "^27.0.2",
|
|
72
72
|
"@types/node-fetch": "^2.5.7",
|
|
73
|
-
"@types/object-assign": "^4.0.30",
|
|
74
73
|
"@typescript-eslint/eslint-plugin": "^4.14.1",
|
|
75
74
|
"@typescript-eslint/parser": "^4.14.1",
|
|
76
75
|
"eslint": "^7.18.0",
|
|
77
76
|
"eslint-plugin-compat": "^3.9.0",
|
|
77
|
+
"eslint-plugin-import": "^2.25.4",
|
|
78
78
|
"fetch-mock": "^9.11.0",
|
|
79
79
|
"jest": "^27.2.3",
|
|
80
80
|
"karma": "^6.3.2",
|
package/src/full/umd.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { splitApiFactory } from '@splitsoftware/splitio-commons/src/services/splitApi';
|
|
2
2
|
import { syncManagerOnlineFactory } from '@splitsoftware/splitio-commons/src/sync/syncManagerOnline';
|
|
3
|
-
import pushManagerFactory from '@splitsoftware/splitio-commons/src/sync/streaming/pushManager';
|
|
4
|
-
import pollingManagerCSFactory from '@splitsoftware/splitio-commons/src/sync/polling/pollingManagerCS';
|
|
3
|
+
import { pushManagerFactory } from '@splitsoftware/splitio-commons/src/sync/streaming/pushManager';
|
|
4
|
+
import { pollingManagerCSFactory } from '@splitsoftware/splitio-commons/src/sync/polling/pollingManagerCS';
|
|
5
5
|
import { sdkManagerFactory } from '@splitsoftware/splitio-commons/src/sdkManager/index';
|
|
6
6
|
import { sdkClientMethodCSFactory } from '@splitsoftware/splitio-commons/src/sdkClient/sdkClientMethodCS';
|
|
7
|
-
import BrowserSignalListener from '@splitsoftware/splitio-commons/src/listeners/browser';
|
|
7
|
+
import { BrowserSignalListener } from '@splitsoftware/splitio-commons/src/listeners/browser';
|
|
8
8
|
import { impressionObserverCSFactory } from '@splitsoftware/splitio-commons/src/trackers/impressionObserver/impressionObserverCS';
|
|
9
|
-
import
|
|
9
|
+
import { pluggableIntegrationsManagerFactory } from '@splitsoftware/splitio-commons/src/integrations/pluggable';
|
|
10
10
|
|
|
11
11
|
import { shouldAddPt } from '@splitsoftware/splitio-commons/src/trackers/impressionObserver/utils';
|
|
12
12
|
import { IPlatform, ISdkFactoryParams } from '@splitsoftware/splitio-commons/src/sdkFactory/types';
|
|
@@ -39,7 +39,7 @@ export function getModules(settings: ISettings, platform: IPlatform): ISdkFactor
|
|
|
39
39
|
|
|
40
40
|
impressionListener: settings.impressionListener as SplitIO.IImpressionListener,
|
|
41
41
|
|
|
42
|
-
integrationsManagerFactory: settings.integrations && settings.integrations.length > 0 ?
|
|
42
|
+
integrationsManagerFactory: settings.integrations && settings.integrations.length > 0 ? pluggableIntegrationsManagerFactory.bind(null, settings.integrations) : undefined,
|
|
43
43
|
|
|
44
44
|
impressionsObserverFactory: shouldAddPt(settings) ? impressionObserverCSFactory : undefined,
|
|
45
45
|
};
|
package/src/settings/defaults.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LogLevels, isLogLevelString } from '@splitsoftware/splitio-commons/src/logger/index';
|
|
2
2
|
import { LogLevel } from '@splitsoftware/splitio-commons/src/types';
|
|
3
3
|
|
|
4
|
-
const packageVersion = '0.2.1-rc.
|
|
4
|
+
const packageVersion = '0.2.1-rc.3';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.
|