@flopflip/adapter-utilities
Advanced tools
Comparing version 1.0.32 to 1.0.33
@@ -22,7 +22,5 @@ 'use strict'; | ||
var globalThis = getGlobalThis__default["default"](); | ||
if (!globalThis.__flopflip__) { | ||
globalThis.__flopflip__ = {}; | ||
} | ||
globalThis.__flopflip__[adapter.id] = adapter; | ||
@@ -32,3 +30,4 @@ }; | ||
var normalizeFlag = function normalizeFlag(flagName, flagValue) { | ||
return [camelCase__default["default"](flagName), // Multi variate flags contain a string or `null` - `false` seems more natural. | ||
return [camelCase__default["default"](flagName), | ||
// Multi variate flags contain a string or `null` - `false` seems more natural. | ||
// eslint-disable-next-line no-eq-null, eqeqeq, @typescript-eslint/prefer-nullish-coalescing | ||
@@ -42,11 +41,9 @@ flagValue == null ? false : flagValue]; | ||
var _ref2 = _slicedToArray(_ref, 2), | ||
flagName = _ref2[0], | ||
flagValue = _ref2[1]; | ||
flagName = _ref2[0], | ||
flagValue = _ref2[1]; | ||
var _normalizeFlag = normalizeFlag$1(flagName, flagValue), | ||
_normalizeFlag2 = _slicedToArray(_normalizeFlag, 2), | ||
normalizedFlagName = _normalizeFlag2[0], | ||
normalizedFlagValue = _normalizeFlag2[1]; // Can't return expression as it is the assigned value | ||
_normalizeFlag2 = _slicedToArray(_normalizeFlag, 2), | ||
normalizedFlagName = _normalizeFlag2[0], | ||
normalizedFlagValue = _normalizeFlag2[1]; | ||
// Can't return expression as it is the assigned value | ||
normalizedFlags[normalizedFlagName] = normalizedFlagValue; | ||
@@ -53,0 +50,0 @@ return normalizedFlags; |
@@ -22,7 +22,5 @@ 'use strict'; | ||
var globalThis = getGlobalThis__default["default"](); | ||
if (!globalThis.__flopflip__) { | ||
globalThis.__flopflip__ = {}; | ||
} | ||
globalThis.__flopflip__[adapter.id] = adapter; | ||
@@ -32,3 +30,4 @@ }; | ||
var normalizeFlag = function normalizeFlag(flagName, flagValue) { | ||
return [camelCase__default["default"](flagName), // Multi variate flags contain a string or `null` - `false` seems more natural. | ||
return [camelCase__default["default"](flagName), | ||
// Multi variate flags contain a string or `null` - `false` seems more natural. | ||
// eslint-disable-next-line no-eq-null, eqeqeq, @typescript-eslint/prefer-nullish-coalescing | ||
@@ -42,11 +41,9 @@ flagValue == null ? false : flagValue]; | ||
var _ref2 = _slicedToArray(_ref, 2), | ||
flagName = _ref2[0], | ||
flagValue = _ref2[1]; | ||
flagName = _ref2[0], | ||
flagValue = _ref2[1]; | ||
var _normalizeFlag = normalizeFlag$1(flagName, flagValue), | ||
_normalizeFlag2 = _slicedToArray(_normalizeFlag, 2), | ||
normalizedFlagName = _normalizeFlag2[0], | ||
normalizedFlagValue = _normalizeFlag2[1]; // Can't return expression as it is the assigned value | ||
_normalizeFlag2 = _slicedToArray(_normalizeFlag, 2), | ||
normalizedFlagName = _normalizeFlag2[0], | ||
normalizedFlagValue = _normalizeFlag2[1]; | ||
// Can't return expression as it is the assigned value | ||
normalizedFlags[normalizedFlagName] = normalizedFlagValue; | ||
@@ -53,0 +50,0 @@ return normalizedFlags; |
@@ -12,7 +12,5 @@ import kebabCase from 'lodash/kebabCase'; | ||
var globalThis = getGlobalThis(); | ||
if (!globalThis.__flopflip__) { | ||
globalThis.__flopflip__ = {}; | ||
} | ||
globalThis.__flopflip__[adapter.id] = adapter; | ||
@@ -22,3 +20,4 @@ }; | ||
var normalizeFlag = function normalizeFlag(flagName, flagValue) { | ||
return [camelCase(flagName), // Multi variate flags contain a string or `null` - `false` seems more natural. | ||
return [camelCase(flagName), | ||
// Multi variate flags contain a string or `null` - `false` seems more natural. | ||
// eslint-disable-next-line no-eq-null, eqeqeq, @typescript-eslint/prefer-nullish-coalescing | ||
@@ -32,11 +31,9 @@ flagValue == null ? false : flagValue]; | ||
var _ref2 = _slicedToArray(_ref, 2), | ||
flagName = _ref2[0], | ||
flagValue = _ref2[1]; | ||
flagName = _ref2[0], | ||
flagValue = _ref2[1]; | ||
var _normalizeFlag = normalizeFlag$1(flagName, flagValue), | ||
_normalizeFlag2 = _slicedToArray(_normalizeFlag, 2), | ||
normalizedFlagName = _normalizeFlag2[0], | ||
normalizedFlagValue = _normalizeFlag2[1]; // Can't return expression as it is the assigned value | ||
_normalizeFlag2 = _slicedToArray(_normalizeFlag, 2), | ||
normalizedFlagName = _normalizeFlag2[0], | ||
normalizedFlagValue = _normalizeFlag2[1]; | ||
// Can't return expression as it is the assigned value | ||
normalizedFlags[normalizedFlagName] = normalizedFlagValue; | ||
@@ -43,0 +40,0 @@ return normalizedFlags; |
{ | ||
"name": "@flopflip/adapter-utilities", | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"description": "Adapter utilities for flipflop", | ||
@@ -31,4 +31,4 @@ "main": "dist/flopflip-adapter-utilities.cjs.js", | ||
"dependencies": { | ||
"@babel/runtime": "7.19.0", | ||
"@flopflip/types": "4.1.27", | ||
"@babel/runtime": "7.19.4", | ||
"@flopflip/types": "4.1.28", | ||
"globalthis": "1.0.3", | ||
@@ -38,3 +38,3 @@ "lodash": "4.17.21" | ||
"devDependencies": { | ||
"typescript": "4.8.3" | ||
"typescript": "4.8.4" | ||
}, | ||
@@ -41,0 +41,0 @@ "peerDependencies": { |
154
9142
+ Added@babel/runtime@7.19.4(transitive)
+ Added@flopflip/types@4.1.28(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedlaunchdarkly-js-client-sdk@2.24.0(transitive)
+ Addedlaunchdarkly-js-sdk-common@3.8.1(transitive)
- Removed@babel/runtime@7.19.0(transitive)
- Removed@flopflip/types@4.1.27(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedlaunchdarkly-js-client-sdk@2.22.1(transitive)
- Removedlaunchdarkly-js-sdk-common@3.6.0(transitive)
Updated@babel/runtime@7.19.4
Updated@flopflip/types@4.1.28