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 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.7',
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
- else if (this.refresh) return findCache(url).clean
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(obj)) return true
203
+ if (it.match(url)) return true
203
204
  }
204
205
  }
205
206
  return false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swpp-backends",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "main": "dist/index.js",
5
5
  "typings": "types/index.d.ts",
6
6
  "description": "Generate a powerful ServiceWorker for your website.",