electron-incremental-update 0.1.6 → 0.1.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.cjs CHANGED
@@ -124,21 +124,21 @@ function getReleaseCdnLink(url) {
124
124
  }
125
125
  const _url = url.replace(hub, "");
126
126
  return [
127
- { urlPrefix: `https://gh.gh2233.ml/${url}`, maintainer: "@X.I.U/XIU2" },
128
- { urlPrefix: `https://ghproxy.com/${url}`, maintainer: "gh-proxy" },
129
- { urlPrefix: `https://gh.ddlc.top/${url}`, maintainer: "@mtr-static-official" },
130
- { urlPrefix: `https://ghdl.feizhuqwq.cf/${url}`, maintainer: "feizhuqwq.com" },
131
- { urlPrefix: `https://slink.ltd/${url}`, maintainer: "\u77E5\u4E86\u5C0F\u7AD9" },
132
- { urlPrefix: `https://git.xfj0.cn/${url}`, maintainer: "anonymous1" },
133
- { urlPrefix: `https://gh.con.sh/${url}`, maintainer: "anonymous2" },
134
- { urlPrefix: `https://ghps.cc/${url}`, maintainer: "anonymous3" },
135
- { urlPrefix: `https://cors.isteed.cc/github.com/${_url}`, maintainer: "Lufs's" },
136
- { urlPrefix: `https://hub.gitmirror.com/${url}`, maintainer: "GitMirror" },
137
- { urlPrefix: `https://js.xxooo.ml/${url}`, maintainer: "\u996D\u592A\u786C" },
138
- { urlPrefix: `https://proxy.freecdn.ml/?url=${url}`, maintainer: "anonymous4" },
139
- { urlPrefix: `https://download.njuu.cf/${_url}`, maintainer: "LibraryCloud-njuu" },
140
- { urlPrefix: `https://download.yzuu.cf/${_url}`, maintainer: "LibraryCloud-yzuu" },
141
- { urlPrefix: `https://download.nuaa.cf/${_url}`, maintainer: "LibraryCloud-nuaa" }
127
+ { url: `https://gh.gh2233.ml/${url}`, maintainer: "@X.I.U/XIU2" },
128
+ { url: `https://ghproxy.com/${url}`, maintainer: "gh-proxy" },
129
+ { url: `https://gh.ddlc.top/${url}`, maintainer: "@mtr-static-official" },
130
+ { url: `https://ghdl.feizhuqwq.cf/${url}`, maintainer: "feizhuqwq.com" },
131
+ { url: `https://slink.ltd/${url}`, maintainer: "\u77E5\u4E86\u5C0F\u7AD9" },
132
+ { url: `https://git.xfj0.cn/${url}`, maintainer: "anonymous1" },
133
+ { url: `https://gh.con.sh/${url}`, maintainer: "anonymous2" },
134
+ { url: `https://ghps.cc/${url}`, maintainer: "anonymous3" },
135
+ { url: `https://cors.isteed.cc/github.com/${_url}`, maintainer: "Lufs's" },
136
+ { url: `https://hub.gitmirror.com/${url}`, maintainer: "GitMirror" },
137
+ { url: `https://js.xxooo.ml/${url}`, maintainer: "\u996D\u592A\u786C" },
138
+ { url: `https://proxy.freecdn.ml/?url=${url}`, maintainer: "anonymous4" },
139
+ { url: `https://download.njuu.cf/${_url}`, maintainer: "LibraryCloud-njuu" },
140
+ { url: `https://download.yzuu.cf/${_url}`, maintainer: "LibraryCloud-yzuu" },
141
+ { url: `https://download.nuaa.cf/${_url}`, maintainer: "LibraryCloud-nuaa" }
142
142
  ];
143
143
  }
144
144
 
package/dist/index.d.ts CHANGED
@@ -124,7 +124,7 @@ declare function requireNative<T = any>(packageName: string): T;
124
124
  * get group of parsed github release CDN links for accelerating the speed of downloading release
125
125
  */
126
126
  declare function getReleaseCdnLink(url: string): {
127
- urlPrefix: string;
127
+ url: string;
128
128
  maintainer: string;
129
129
  }[];
130
130
 
package/dist/index.mjs CHANGED
@@ -88,21 +88,21 @@ function getReleaseCdnLink(url) {
88
88
  }
89
89
  const _url = url.replace(hub, "");
90
90
  return [
91
- { urlPrefix: `https://gh.gh2233.ml/${url}`, maintainer: "@X.I.U/XIU2" },
92
- { urlPrefix: `https://ghproxy.com/${url}`, maintainer: "gh-proxy" },
93
- { urlPrefix: `https://gh.ddlc.top/${url}`, maintainer: "@mtr-static-official" },
94
- { urlPrefix: `https://ghdl.feizhuqwq.cf/${url}`, maintainer: "feizhuqwq.com" },
95
- { urlPrefix: `https://slink.ltd/${url}`, maintainer: "\u77E5\u4E86\u5C0F\u7AD9" },
96
- { urlPrefix: `https://git.xfj0.cn/${url}`, maintainer: "anonymous1" },
97
- { urlPrefix: `https://gh.con.sh/${url}`, maintainer: "anonymous2" },
98
- { urlPrefix: `https://ghps.cc/${url}`, maintainer: "anonymous3" },
99
- { urlPrefix: `https://cors.isteed.cc/github.com/${_url}`, maintainer: "Lufs's" },
100
- { urlPrefix: `https://hub.gitmirror.com/${url}`, maintainer: "GitMirror" },
101
- { urlPrefix: `https://js.xxooo.ml/${url}`, maintainer: "\u996D\u592A\u786C" },
102
- { urlPrefix: `https://proxy.freecdn.ml/?url=${url}`, maintainer: "anonymous4" },
103
- { urlPrefix: `https://download.njuu.cf/${_url}`, maintainer: "LibraryCloud-njuu" },
104
- { urlPrefix: `https://download.yzuu.cf/${_url}`, maintainer: "LibraryCloud-yzuu" },
105
- { urlPrefix: `https://download.nuaa.cf/${_url}`, maintainer: "LibraryCloud-nuaa" }
91
+ { url: `https://gh.gh2233.ml/${url}`, maintainer: "@X.I.U/XIU2" },
92
+ { url: `https://ghproxy.com/${url}`, maintainer: "gh-proxy" },
93
+ { url: `https://gh.ddlc.top/${url}`, maintainer: "@mtr-static-official" },
94
+ { url: `https://ghdl.feizhuqwq.cf/${url}`, maintainer: "feizhuqwq.com" },
95
+ { url: `https://slink.ltd/${url}`, maintainer: "\u77E5\u4E86\u5C0F\u7AD9" },
96
+ { url: `https://git.xfj0.cn/${url}`, maintainer: "anonymous1" },
97
+ { url: `https://gh.con.sh/${url}`, maintainer: "anonymous2" },
98
+ { url: `https://ghps.cc/${url}`, maintainer: "anonymous3" },
99
+ { url: `https://cors.isteed.cc/github.com/${_url}`, maintainer: "Lufs's" },
100
+ { url: `https://hub.gitmirror.com/${url}`, maintainer: "GitMirror" },
101
+ { url: `https://js.xxooo.ml/${url}`, maintainer: "\u996D\u592A\u786C" },
102
+ { url: `https://proxy.freecdn.ml/?url=${url}`, maintainer: "anonymous4" },
103
+ { url: `https://download.njuu.cf/${_url}`, maintainer: "LibraryCloud-njuu" },
104
+ { url: `https://download.yzuu.cf/${_url}`, maintainer: "LibraryCloud-yzuu" },
105
+ { url: `https://download.nuaa.cf/${_url}`, maintainer: "LibraryCloud-nuaa" }
106
106
  ];
107
107
  }
108
108
 
package/dist/vite.cjs CHANGED
@@ -171,8 +171,8 @@ function parseOptions(options) {
171
171
  versionPath = "version.json"
172
172
  } = paths;
173
173
  const {
174
- privateKeyPath = "public/private.pem",
175
- publicKeyPath = "public/public.pem",
174
+ privateKeyPath = "keys/private.pem",
175
+ publicKeyPath = "keys/public.pem",
176
176
  keyLength = 2048
177
177
  } = keys;
178
178
  const buildAsarOption = {
package/dist/vite.d.ts CHANGED
@@ -63,13 +63,13 @@ type Options = {
63
63
  /**
64
64
  * Path to the pem file that contains private key
65
65
  * if not ended with .pem, it will be appended
66
- * @default 'public/private.pem'
66
+ * @default 'keys/private.pem'
67
67
  */
68
68
  privateKeyPath?: string;
69
69
  /**
70
70
  * Path to the pem file that contains public key
71
71
  * if not ended with .pem, it will be appended
72
- * @default 'public/public.pem'
72
+ * @default 'keys/public.pem'
73
73
  */
74
74
  publicKeyPath?: string;
75
75
  /**
package/dist/vite.mjs CHANGED
@@ -139,8 +139,8 @@ function parseOptions(options) {
139
139
  versionPath = "version.json"
140
140
  } = paths;
141
141
  const {
142
- privateKeyPath = "public/private.pem",
143
- publicKeyPath = "public/public.pem",
142
+ privateKeyPath = "keys/private.pem",
143
+ publicKeyPath = "keys/public.pem",
144
144
  keyLength = 2048
145
145
  } = keys;
146
146
  const buildAsarOption = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-incremental-update",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "electron incremental update tools, powered by vite",
5
5
  "scripts": {
6
6
  "build": "tsup",