pake-cli 2.5.1 → 2.5.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <h4 align="right"><strong>English</strong> | <a href="https://github.com/tw93/Pake/blob/master/README_CN.md">简体中文</a></h4>
1
+ <h4 align="right"><strong>English</strong> | <a href="https://github.com/tw93/Pake/blob/master/README_CN.md">简体中文</a> | <a href="https://github.com/tw93/Pake/blob/master/README_JP.md">日本語</a></h4>
2
2
  <p align="center">
3
3
  <img src=https://gw.alipayobjects.com/zos/k/fa/logo-modified.png width=138/>
4
4
  </p>
@@ -257,6 +257,13 @@ Pake's development can not be without these Hackers. They contributed a lot of c
257
257
  </a>
258
258
  </td></tr>
259
259
  <tr>
260
+ <td align="center">
261
+ <a href="https://github.com/YangguangZhou">
262
+ <img src="https://avatars.githubusercontent.com/u/61733195?v=4" width="90;" alt="YangguangZhou"/>
263
+ <br />
264
+ <sub><b>Jerry Zhou</b></sub>
265
+ </a>
266
+ </td>
260
267
  <td align="center">
261
268
  <a href="https://github.com/AielloChan">
262
269
  <img src="https://avatars.githubusercontent.com/u/7900765?v=4" width="90;" alt="AielloChan"/>
@@ -278,6 +285,13 @@ Pake's development can not be without these Hackers. They contributed a lot of c
278
285
  <sub><b>Pake Actions</b></sub>
279
286
  </a>
280
287
  </td>
288
+ <td align="center">
289
+ <a href="https://github.com/eltociear">
290
+ <img src="https://avatars.githubusercontent.com/u/22633385?v=4" width="90;" alt="eltociear"/>
291
+ <br />
292
+ <sub><b>Ikko Eltociear Ashimine</b></sub>
293
+ </a>
294
+ </td>
281
295
  <td align="center">
282
296
  <a href="https://github.com/QingZ11">
283
297
  <img src="https://avatars.githubusercontent.com/u/38887077?v=4" width="90;" alt="QingZ11"/>
@@ -291,7 +305,8 @@ Pake's development can not be without these Hackers. They contributed a lot of c
291
305
  <br />
292
306
  <sub><b>孟世博</b></sub>
293
307
  </a>
294
- </td>
308
+ </td></tr>
309
+ <tr>
295
310
  <td align="center">
296
311
  <a href="https://github.com/2nthony">
297
312
  <img src="https://avatars.githubusercontent.com/u/19513289?v=4" width="90;" alt="2nthony"/>
@@ -305,8 +320,7 @@ Pake's development can not be without these Hackers. They contributed a lot of c
305
320
  <br />
306
321
  <sub><b>Null</b></sub>
307
322
  </a>
308
- </td></tr>
309
- <tr>
323
+ </td>
310
324
  <td align="center">
311
325
  <a href="https://github.com/imabutahersiddik">
312
326
  <img src="https://avatars.githubusercontent.com/u/138387257?v=4" width="90;" alt="imabutahersiddik"/>
@@ -341,12 +355,13 @@ Pake's development can not be without these Hackers. They contributed a lot of c
341
355
  <br />
342
356
  <sub><b>Fechin</b></sub>
343
357
  </a>
344
- </td>
358
+ </td></tr>
359
+ <tr>
345
360
  <td align="center">
346
- <a href="https://github.com/eltociear">
347
- <img src="https://avatars.githubusercontent.com/u/22633385?v=4" width="90;" alt="eltociear"/>
361
+ <a href="https://github.com/ImgBotApp">
362
+ <img src="https://avatars.githubusercontent.com/u/31427850?v=4" width="90;" alt="ImgBotApp"/>
348
363
  <br />
349
- <sub><b>Ikko Eltociear Ashimine</b></sub>
364
+ <sub><b>Imgbot</b></sub>
350
365
  </a>
351
366
  </td>
352
367
  <td align="center">
@@ -355,8 +370,7 @@ Pake's development can not be without these Hackers. They contributed a lot of c
355
370
  <br />
356
371
  <sub><b>Jiaqi Gu</b></sub>
357
372
  </a>
358
- </td></tr>
359
- <tr>
373
+ </td>
360
374
  <td align="center">
361
375
  <a href="https://github.com/Milo123459">
362
376
  <img src="https://avatars.githubusercontent.com/u/50248166?v=4" width="90;" alt="Milo123459"/>
@@ -391,7 +405,8 @@ Pake's development can not be without these Hackers. They contributed a lot of c
391
405
  <br />
392
406
  <sub><b>Null</b></sub>
393
407
  </a>
394
- </td>
408
+ </td></tr>
409
+ <tr>
395
410
  <td align="center">
396
411
  <a href="https://github.com/liudonghua123">
397
412
  <img src="https://avatars.githubusercontent.com/u/2276718?v=4" width="90;" alt="liudonghua123"/>
@@ -405,8 +420,7 @@ Pake's development can not be without these Hackers. They contributed a lot of c
405
420
  <br />
406
421
  <sub><b>Liusishan</b></sub>
407
422
  </a>
408
- </td></tr>
409
- <tr>
423
+ </td>
410
424
  <td align="center">
411
425
  <a href="https://github.com/piaoyidage">
412
426
  <img src="https://avatars.githubusercontent.com/u/5135405?v=4" width="90;" alt="piaoyidage"/>
package/dist/cli.js CHANGED
@@ -20,7 +20,7 @@ import psl from 'psl';
20
20
  import isUrl from 'is-url';
21
21
 
22
22
  var name = "pake-cli";
23
- var version = "2.5.1";
23
+ var version = "2.5.2";
24
24
  var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。";
25
25
  var engines = {
26
26
  node: ">=16.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
5
5
  "engines": {
6
6
  "node": ">=16.0.0"
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -176,7 +176,7 @@ document.addEventListener('DOMContentLoaded', () => {
176
176
  // case: download from dataURL -> convert dataURL ->
177
177
  } else if (url.startsWith('data:')) {
178
178
  downloadFromDataUri(url, filename);
179
- } else if (isDownloadLink(url) || anchorEle.hostname !== window.location.host) {
179
+ } else if (isDownloadLink(url) || anchorEle.host !== window.location.host) {
180
180
  handleExternalLink(e, url);
181
181
  }
182
182
  },
@@ -206,13 +206,16 @@ document.addEventListener('DOMContentLoaded', () => {
206
206
  const detectAnchorElementClick = e => {
207
207
  const anchorElement = e.target.closest('a');
208
208
  if (anchorElement && anchorElement.href) {
209
- anchorElement.target = '_self';
209
+ if (!anchorElement.target) {
210
+ anchorElement.target = '_self';
211
+ }
212
+
210
213
  const hrefUrl = new URL(anchorElement.href);
211
214
  const absoluteUrl = hrefUrl.href;
212
215
  let filename = anchorElement.download || getFilenameFromUrl(absoluteUrl);
213
216
 
214
217
  // Handling external link redirection.
215
- if (isExternalLink(absoluteUrl) && (['_blank', '_new'].includes(anchorElement.target) || externalTargetLink())) {
218
+ if ((isExternalLink(absoluteUrl) && ['_blank', '_new'].includes(anchorElement.target)) || externalTargetLink()) {
216
219
  handleExternalLink(e, absoluteUrl);
217
220
  return;
218
221
  }