@uniformdev/redirect
Advanced tools
Comparing version 19.21.0 to 19.22.0
@@ -562,3 +562,3 @@ "use strict"; | ||
const { projectId } = this.options; | ||
const key = `${projectId}${(options == null ? void 0 : options.reverse) ? "r" : "f"}`; | ||
const key = projectId; | ||
const cachePromise = (options == null ? void 0 : options.bypassDataCache) ? void 0 : (_a = this.options.dataCache) == null ? void 0 : _a.get(key); | ||
@@ -618,3 +618,2 @@ if (cachePromise) { | ||
}); | ||
this.resetRedirectTrieDataCache(); | ||
return result.id; | ||
@@ -641,5 +640,5 @@ }; | ||
if (options.dataCache && options.dataCache.options.prePopulate) { | ||
if (!options.dataCache.get(`${options.projectId}f`)) { | ||
if (!options.dataCache.get(options.projectId)) { | ||
options.dataCache.set( | ||
`${options.projectId}f`, | ||
options.projectId, | ||
this.getRedirectTrie(), | ||
@@ -646,0 +645,0 @@ () => this.getRedirectTrie({ bypassDataCache: true }) |
@@ -236,3 +236,3 @@ import "./chunk-FFYIGW52.mjs"; | ||
const { projectId } = this.options; | ||
const key = `${projectId}${(options == null ? void 0 : options.reverse) ? "r" : "f"}`; | ||
const key = projectId; | ||
const cachePromise = (options == null ? void 0 : options.bypassDataCache) ? void 0 : (_a = this.options.dataCache) == null ? void 0 : _a.get(key); | ||
@@ -292,3 +292,2 @@ if (cachePromise) { | ||
}); | ||
this.resetRedirectTrieDataCache(); | ||
return result.id; | ||
@@ -315,5 +314,5 @@ }; | ||
if (options.dataCache && options.dataCache.options.prePopulate) { | ||
if (!options.dataCache.get(`${options.projectId}f`)) { | ||
if (!options.dataCache.get(options.projectId)) { | ||
options.dataCache.set( | ||
`${options.projectId}f`, | ||
options.projectId, | ||
this.getRedirectTrie(), | ||
@@ -320,0 +319,0 @@ () => this.getRedirectTrie({ bypassDataCache: true }) |
@@ -562,3 +562,3 @@ "use strict"; | ||
const { projectId } = this.options; | ||
const key = `${projectId}${(options == null ? void 0 : options.reverse) ? "r" : "f"}`; | ||
const key = projectId; | ||
const cachePromise = (options == null ? void 0 : options.bypassDataCache) ? void 0 : (_a = this.options.dataCache) == null ? void 0 : _a.get(key); | ||
@@ -618,3 +618,2 @@ if (cachePromise) { | ||
}); | ||
this.resetRedirectTrieDataCache(); | ||
return result.id; | ||
@@ -641,5 +640,5 @@ }; | ||
if (options.dataCache && options.dataCache.options.prePopulate) { | ||
if (!options.dataCache.get(`${options.projectId}f`)) { | ||
if (!options.dataCache.get(options.projectId)) { | ||
options.dataCache.set( | ||
`${options.projectId}f`, | ||
options.projectId, | ||
this.getRedirectTrie(), | ||
@@ -646,0 +645,0 @@ () => this.getRedirectTrie({ bypassDataCache: true }) |
{ | ||
"name": "@uniformdev/redirect", | ||
"version": "19.21.0", | ||
"version": "19.22.0", | ||
"description": "Uniform redirect client", | ||
@@ -35,3 +35,3 @@ "license": "SEE LICENSE IN LICENSE.txt", | ||
"dependencies": { | ||
"@uniformdev/context": "19.21.0", | ||
"@uniformdev/context": "19.22.0", | ||
"p-limit": "^3.1.0", | ||
@@ -43,3 +43,3 @@ "rfdc": "^1.3.0" | ||
}, | ||
"gitHead": "3db4c0f1c775a5cf9677c6df294322cfbf79611e" | ||
"gitHead": "f3b826c15f64a8abc5bd7ca08c0539bd85684cf9" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143111
3761
+ Added@uniformdev/context@19.22.0(transitive)
- Removed@uniformdev/context@19.21.0(transitive)
Updated@uniformdev/context@19.22.0