@splitsoftware/splitio 10.28.1-rc.3 → 11.0.0-rc.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/CHANGES.txt +13 -7
- package/{lib → cjs}/factory/browser.js +9 -8
- package/{lib → cjs}/factory/node.js +1 -11
- package/{lib → cjs}/settings/browser.js +1 -3
- package/{lib → cjs}/settings/defaults/version.js +1 -1
- package/{lib → cjs}/settings/storage/browser.js +13 -2
- package/{lib → cjs}/sync/offline/splitsParserFromFile.js +1 -1
- package/client/package.json +2 -2
- package/{es → esm}/factory/browser.js +6 -5
- package/{es → esm}/factory/node.js +1 -11
- package/{es → esm}/settings/browser.js +1 -3
- package/esm/settings/defaults/version.js +1 -0
- package/esm/settings/storage/browser.js +29 -0
- package/{es → esm}/sync/offline/splitsParserFromFile.js +1 -1
- package/package.json +10 -15
- package/server/package.json +2 -2
- package/src/factory/browser.js +6 -6
- package/src/factory/node.js +1 -12
- package/src/settings/browser.js +1 -3
- package/src/settings/defaults/version.js +1 -1
- package/src/settings/storage/browser.js +16 -2
- package/src/sync/offline/splitsParserFromFile.js +1 -1
- package/types/client/index.d.ts +1 -1
- package/types/index.d.ts +3 -3
- package/types/server/index.d.ts +2 -2
- package/types/splitio.d.ts +133 -309
- package/es/settings/defaults/version.js +0 -1
- package/es/settings/storage/browser.js +0 -18
- package/scripts/ga-to-split-autorequire.js +0 -1
- /package/{es → cjs}/factory/package.json +0 -0
- /package/{lib → cjs}/index.js +0 -0
- /package/{lib → cjs}/platform/EventEmitter.js +0 -0
- /package/{lib → cjs}/platform/browser.js +0 -0
- /package/{lib → cjs}/platform/filter/bloomFilter.js +0 -0
- /package/{lib → cjs}/platform/getEventSource/browser.js +0 -0
- /package/{es → cjs}/platform/getEventSource/eventsource.js +0 -0
- /package/{lib → cjs}/platform/getEventSource/node.js +0 -0
- /package/{es → cjs}/platform/getEventSource/package.json +0 -0
- /package/{lib → cjs}/platform/getFetch/browser.js +0 -0
- /package/{lib → cjs}/platform/getFetch/node.js +0 -0
- /package/{es → cjs}/platform/getFetch/package.json +0 -0
- /package/{lib → cjs}/platform/getOptions/node.js +0 -0
- /package/{lib → cjs}/platform/node.js +0 -0
- /package/{es → cjs}/platform/package.json +0 -0
- /package/{lib → cjs}/settings/defaults/browser.js +0 -0
- /package/{lib → cjs}/settings/defaults/node.js +0 -0
- /package/{lib → cjs}/settings/integrations/browser.js +0 -0
- /package/{lib → cjs}/settings/node.js +0 -0
- /package/{es → cjs}/settings/package.json +0 -0
- /package/{lib → cjs}/settings/runtime/node.js +0 -0
- /package/{lib → cjs}/settings/storage/node.js +0 -0
- /package/{lib → cjs}/sync/offline/LocalhostFromFile.js +0 -0
- /package/{lib → cjs}/umd.js +0 -0
- /package/{lib → cjs}/utils/ip.js +0 -0
- /package/{lib → esm}/factory/package.json +0 -0
- /package/{es → esm}/index.js +0 -0
- /package/{es → esm}/platform/EventEmitter.js +0 -0
- /package/{es → esm}/platform/browser.js +0 -0
- /package/{es → esm}/platform/filter/bloomFilter.js +0 -0
- /package/{es → esm}/platform/getEventSource/browser.js +0 -0
- /package/{lib → esm}/platform/getEventSource/eventsource.js +0 -0
- /package/{es → esm}/platform/getEventSource/node.js +0 -0
- /package/{lib → esm}/platform/getEventSource/package.json +0 -0
- /package/{es → esm}/platform/getFetch/browser.js +0 -0
- /package/{es → esm}/platform/getFetch/node.js +0 -0
- /package/{lib → esm}/platform/getFetch/package.json +0 -0
- /package/{es → esm}/platform/getOptions/node.js +0 -0
- /package/{es → esm}/platform/node.js +0 -0
- /package/{lib → esm}/platform/package.json +0 -0
- /package/{es → esm}/settings/defaults/browser.js +0 -0
- /package/{es → esm}/settings/defaults/node.js +0 -0
- /package/{es → esm}/settings/integrations/browser.js +0 -0
- /package/{es → esm}/settings/node.js +0 -0
- /package/{lib → esm}/settings/package.json +0 -0
- /package/{es → esm}/settings/runtime/node.js +0 -0
- /package/{es → esm}/settings/storage/node.js +0 -0
- /package/{es → esm}/sync/offline/LocalhostFromFile.js +0 -0
- /package/{es → esm}/umd.js +0 -0
- /package/{es → esm}/utils/ip.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var packageVersion = '10.28.1-rc.3';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { isLocalStorageAvailable } from '@splitsoftware/splitio-commons/esm/utils/env/isLocalStorageAvailable';
|
|
2
|
-
import { STORAGE_MEMORY } from '@splitsoftware/splitio-commons/esm/utils/constants';
|
|
3
|
-
var STORAGE_LOCALSTORAGE = 'LOCALSTORAGE';
|
|
4
|
-
export function validateStorage(settings) {
|
|
5
|
-
var log = settings.log, _a = settings.storage, _b = _a === void 0 ? { type: STORAGE_MEMORY } : _a, type = _b.type, _c = _b.options, options = _c === void 0 ? {} : _c, prefix = _b.prefix;
|
|
6
|
-
// If an invalid storage type is provided OR we want to use LOCALSTORAGE and
|
|
7
|
-
// it's not available, fallback into MEMORY
|
|
8
|
-
if (type !== STORAGE_MEMORY && type !== STORAGE_LOCALSTORAGE ||
|
|
9
|
-
type === STORAGE_LOCALSTORAGE && !isLocalStorageAvailable()) {
|
|
10
|
-
type = STORAGE_MEMORY;
|
|
11
|
-
log.error('Invalid or unavailable storage. Fallback into MEMORY storage');
|
|
12
|
-
}
|
|
13
|
-
return {
|
|
14
|
-
type: type,
|
|
15
|
-
options: options,
|
|
16
|
-
prefix: prefix,
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(n,t,e){n[e]=n[e]||t;n[t]=n[t]||function(){n[t].q.push(arguments)};n[t].q=n[t].q||[];var r={};function i(n){return typeof n==="object"&&typeof n.name==="string"&&n.name}function o(e){if(e&&e[0]==="create"){var o=i(e[1])||i(e[2])||i(e[3])||(typeof e[3]==="string"?e[3]:undefined);if(!r[o]){r[o]=true;n[t]((o?o+".":"")+"require","splitTracker")}}}n[t].q.forEach(o);var u=n[t].q.push;n[t].q.push=function(n){var t=u.apply(this,arguments);o(n);return t}})(window,"ga","GoogleAnalyticsObject");
|
|
File without changes
|
/package/{lib → cjs}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{lib → cjs}/umd.js
RENAMED
|
File without changes
|
/package/{lib → cjs}/utils/ip.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/{es → esm}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{es → esm}/umd.js
RENAMED
|
File without changes
|
/package/{es → esm}/utils/ip.js
RENAMED
|
File without changes
|