hexo-swpp 3.0.0-alpha → 3.0.0-alpha.2

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -93,11 +93,11 @@ async function buildVersionJson(hexo) {
93
93
  let protocol, domain;
94
94
  if (url.startsWith('https:')) {
95
95
  protocol = 'https://';
96
- domain = url.substring(protocol.length + 1);
96
+ domain = url.substring(protocol.length);
97
97
  }
98
98
  else {
99
99
  protocol = 'http://';
100
- domain = url.substring(protocol.length + 1);
100
+ domain = url.substring(protocol.length);
101
101
  }
102
102
  // @ts-ignore
103
103
  const json = await swpp_backends_1.default.builder.buildVersionJson(protocol, domain, path_1.default.resolve('./', hexo.config.public_dir));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-swpp",
3
- "version": "3.0.0-alpha",
3
+ "version": "3.0.0-alpha.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "types/index.d.ts",
6
6
  "files": [
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "hexo-log": "^4.1.0",
31
- "swpp-backends": "0.0.5-alpha"
31
+ "swpp-backends": "0.0.7-alpha"
32
32
  },
33
33
  "scripts": {}
34
34
  }