@flopflip/cache 14.0.0 → 14.0.1

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.
@@ -78,7 +78,7 @@ function _objectSpread2(e) {
78
78
  const FLAGS_CACHE_KEY = 'flags';
79
79
  const FLAGS_REFERENCE_CACHE_KEY = 'flags-reference';
80
80
  function getCachePrefix(adapterIdentifiers) {
81
- return "@flopflip/".concat(adapterIdentifiers, "-adapter");
81
+ return `@flopflip/${adapterIdentifiers}-adapter`;
82
82
  }
83
83
  async function importCache(cacheIdentifier) {
84
84
  let cacheModule;
@@ -137,7 +137,7 @@ function getCachedFlags(cacheIdentifier, adapterIdentifiers) {
137
137
  return JSON.parse(cachedFlags);
138
138
  }
139
139
  } catch (error) {
140
- console.warn("@flopflip/cache: Failed to parse cached flags from ".concat(cacheIdentifier, "."));
140
+ console.warn(`@flopflip/cache: Failed to parse cached flags from ${cacheIdentifier}.`);
141
141
  }
142
142
  }
143
143
  return {};
@@ -152,7 +152,7 @@ function getAllCachedFlags(adapter, cacheIdentifier) {
152
152
  return getCachedFlags(cacheIdentifier, adapter.id);
153
153
  }
154
154
 
155
- const version = "14.0.0";
155
+ const version = "14.0.1";
156
156
 
157
157
  exports.getAllCachedFlags = getAllCachedFlags;
158
158
  exports.getCache = getCache;
@@ -78,7 +78,7 @@ function _objectSpread2(e) {
78
78
  const FLAGS_CACHE_KEY = 'flags';
79
79
  const FLAGS_REFERENCE_CACHE_KEY = 'flags-reference';
80
80
  function getCachePrefix(adapterIdentifiers) {
81
- return "@flopflip/".concat(adapterIdentifiers, "-adapter");
81
+ return `@flopflip/${adapterIdentifiers}-adapter`;
82
82
  }
83
83
  async function importCache(cacheIdentifier) {
84
84
  let cacheModule;
@@ -137,7 +137,7 @@ function getCachedFlags(cacheIdentifier, adapterIdentifiers) {
137
137
  return JSON.parse(cachedFlags);
138
138
  }
139
139
  } catch (error) {
140
- console.warn("@flopflip/cache: Failed to parse cached flags from ".concat(cacheIdentifier, "."));
140
+ console.warn(`@flopflip/cache: Failed to parse cached flags from ${cacheIdentifier}.`);
141
141
  }
142
142
  }
143
143
  return {};
@@ -152,7 +152,7 @@ function getAllCachedFlags(adapter, cacheIdentifier) {
152
152
  return getCachedFlags(cacheIdentifier, adapter.id);
153
153
  }
154
154
 
155
- const version = "14.0.0";
155
+ const version = "14.0.1";
156
156
 
157
157
  exports.getAllCachedFlags = getAllCachedFlags;
158
158
  exports.getCache = getCache;
@@ -56,7 +56,7 @@ function _objectSpread2(e) {
56
56
  const FLAGS_CACHE_KEY = 'flags';
57
57
  const FLAGS_REFERENCE_CACHE_KEY = 'flags-reference';
58
58
  function getCachePrefix(adapterIdentifiers) {
59
- return "@flopflip/".concat(adapterIdentifiers, "-adapter");
59
+ return `@flopflip/${adapterIdentifiers}-adapter`;
60
60
  }
61
61
  async function importCache(cacheIdentifier) {
62
62
  let cacheModule;
@@ -115,7 +115,7 @@ function getCachedFlags(cacheIdentifier, adapterIdentifiers) {
115
115
  return JSON.parse(cachedFlags);
116
116
  }
117
117
  } catch (error) {
118
- console.warn("@flopflip/cache: Failed to parse cached flags from ".concat(cacheIdentifier, "."));
118
+ console.warn(`@flopflip/cache: Failed to parse cached flags from ${cacheIdentifier}.`);
119
119
  }
120
120
  }
121
121
  return {};
@@ -130,6 +130,6 @@ function getAllCachedFlags(adapter, cacheIdentifier) {
130
130
  return getCachedFlags(cacheIdentifier, adapter.id);
131
131
  }
132
132
 
133
- const version = "14.0.0";
133
+ const version = "14.0.1";
134
134
 
135
135
  export { getAllCachedFlags, getCache, getCachedFlags, version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flopflip/cache",
3
- "version": "14.0.0",
3
+ "version": "14.0.1",
4
4
  "description": "Caching for flipflop adapters",
5
5
  "main": "dist/flopflip-cache.cjs.js",
6
6
  "module": "dist/flopflip-cache.esm.js",
@@ -29,8 +29,8 @@
29
29
  "client"
30
30
  ],
31
31
  "dependencies": {
32
- "@flopflip/localstorage-cache": "14.0.0",
33
- "@flopflip/sessionstorage-cache": "14.0.0",
34
- "@flopflip/types": "14.0.0"
32
+ "@flopflip/localstorage-cache": "14.0.1",
33
+ "@flopflip/sessionstorage-cache": "14.0.1",
34
+ "@flopflip/types": "14.0.1"
35
35
  }
36
36
  }