isolated-externals-plugin
Advanced tools
Comparing version 2.3.0 to 2.3.1-timeout-external-cache-open-5d4b190.1
@@ -229,3 +229,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, staticCache; | ||
var staticCachePromise, openCachePromise, _a, staticCache; | ||
return __generator(this, function (_b) { | ||
@@ -239,3 +239,7 @@ switch (_b.label) { | ||
_b.trys.push([2, 4, , 6]); | ||
this.cachePromise = window.caches.open(CACHE_NAME); | ||
staticCachePromise = new Promise(function (res) { | ||
setTimeout(function () { return res(new StaticCache()); }, 100); | ||
}); | ||
openCachePromise = window.caches.open(CACHE_NAME); | ||
this.cachePromise = Promise.race([staticCachePromise, openCachePromise]); | ||
return [4 /*yield*/, this.cachePromise]; | ||
@@ -242,0 +246,0 @@ case 3: return [2 /*return*/, _b.sent()]; |
{ | ||
"name": "isolated-externals-plugin", | ||
"version": "2.3.0", | ||
"version": "2.3.1-timeout-external-cache-open-5d4b190.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
55747
1070
1