swpp-backends 2.0.7 → 2.0.8
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.
- package/dist/index.js +1 -1
- package/dist/resources/sw-template.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ const VersionAnalyzer_1 = require("./VersionAnalyzer");
|
|
|
10
10
|
const DomBuilder_1 = require("./DomBuilder");
|
|
11
11
|
// noinspection JSUnusedGlobalSymbols
|
|
12
12
|
exports.default = {
|
|
13
|
-
version: '2.0.
|
|
13
|
+
version: '2.0.8',
|
|
14
14
|
cache: {
|
|
15
15
|
readEjectData: Utils_1.readEjectData, readUpdateJson: Variant_1.readUpdateJson,
|
|
16
16
|
readRules: Variant_1.readRules, readMergeVersionMap: Variant_1.readMergeVersionMap,
|
|
@@ -195,11 +195,12 @@
|
|
|
195
195
|
*/
|
|
196
196
|
this.match = url => {
|
|
197
197
|
if (this.force) return true
|
|
198
|
-
|
|
198
|
+
// noinspection JSValidateTypes
|
|
199
|
+
url = new URL(url)
|
|
200
|
+
if (this.refresh) return findCache(url).clean
|
|
199
201
|
else {
|
|
200
|
-
const obj = new URL(url)
|
|
201
202
|
for (let it of list) {
|
|
202
|
-
if (it.match(
|
|
203
|
+
if (it.match(url)) return true
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
206
|
return false
|