@clds/feature-flags
Advanced tools
Comparing version 0.7.6 to 0.8.0
@@ -15,3 +15,3 @@ "use strict"; | ||
try { | ||
return global.localStorage; | ||
return window.localStorage; | ||
} | ||
@@ -18,0 +18,0 @@ catch (e) { |
@@ -12,3 +12,3 @@ const getInMemoryStorageImpl = () => { | ||
try { | ||
return global.localStorage; | ||
return window.localStorage; | ||
} | ||
@@ -15,0 +15,0 @@ catch (e) { |
{ | ||
"name": "@clds/feature-flags", | ||
"description": "", | ||
"version": "0.7.6", | ||
"version": "0.8.0", | ||
"author": "Cloudinary", | ||
@@ -10,8 +10,2 @@ "main": "./dist/cjs/index.js", | ||
"homepage": "https://github.com/cloudinary/design-system/tree/next/libs/foundations/feature-flags#readme", | ||
"exports": { | ||
".": { | ||
"import": "./dist/esm/index.js", | ||
"require": "./dist/cjs/index.js" | ||
} | ||
}, | ||
"dependencies": {}, | ||
@@ -25,3 +19,9 @@ "devDependencies": { | ||
"module": "./dist/esm/index.js", | ||
"typings": "./dist/esm/index.d.ts" | ||
"typings": "./dist/esm/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/esm/index.js", | ||
"require": "./dist/cjs/index.js" | ||
} | ||
} | ||
}, | ||
@@ -31,7 +31,13 @@ "repository": "cloudinary/design-system.git", | ||
"depcheck": "depcheck", | ||
"lint": "eslint .", | ||
"lint": "eslint --ext .ts,.tsx .", | ||
"test": "nyc mocha", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"typings": "./dist/esm/index.d.ts" | ||
"typings": "./dist/esm/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/esm/index.js", | ||
"require": "./dist/cjs/index.js" | ||
} | ||
} | ||
} |
const getInMemoryStorageImpl = () => { | ||
console.debug('@clds/feature-flags: using in-memory storage, should be used in the test environment'); | ||
console.debug( | ||
'@clds/feature-flags: using in-memory storage, should be used in the test environment', | ||
); | ||
const values: Record<string, string> = {}; | ||
@@ -16,3 +18,3 @@ | ||
try { | ||
return global.localStorage; | ||
return window.localStorage; | ||
} catch (e) { | ||
@@ -19,0 +21,0 @@ console.error('@clds/feature-flags: could not access localStorage'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11753
182