swpp-backends 1.0.4 → 1.0.6

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.
@@ -295,7 +295,8 @@ function getShorthand(url, offset = 0) {
295
295
  }
296
296
  }
297
297
  switch (count) {
298
- case 1: return result;
298
+ case 1:
299
+ case 0: return result;
299
300
  case 2:
300
301
  --index;
301
302
  removeSet.forEach(it => collide.delete(it));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swpp-backends",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "main": "dist/index.js",
5
5
  "typings": "types/index.d.ts",
6
6
  "description": "Generate a powerful ServiceWorker for your website.",
@@ -14,11 +14,11 @@
14
14
  "@types/css": "^0.0.33",
15
15
  "@types/fast-html-parser": "^1.0.2",
16
16
  "@types/node": "^20.4.5",
17
+ "@types/node-fetch": "^2.6.4",
17
18
  "gulp": "^4.0.2",
18
19
  "typescript": "^5.1.6"
19
20
  },
20
21
  "dependencies": {
21
- "@types/node-fetch": "^2.6.4",
22
22
  "css": "^3.0.0",
23
23
  "fast-html-parser": "^1.0.1",
24
24
  "hexo-log": "^4.1.0",