w-converhp 2.0.12 → 2.0.13

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * w-converhp-server v2.0.12
2
+ * w-converhp-server v2.0.13
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
@@ -80,7 +80,7 @@
80
80
 
81
81
  <dt class="tag-source">Source:</dt>
82
82
  <dd class="tag-source"><ul class="dummy"><li>
83
- <a href="WConverhpClient.mjs.html">WConverhpClient.mjs</a>, <a href="WConverhpClient.mjs.html#line165">line 165</a>
83
+ <a href="WConverhpClient.mjs.html">WConverhpClient.mjs</a>, <a href="WConverhpClient.mjs.html#line163">line 163</a>
84
84
  </li></ul></dd>
85
85
 
86
86
 
@@ -529,7 +529,7 @@
529
529
  <br class="clear">
530
530
 
531
531
  <footer>
532
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Apr 08 2025 12:28:45 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
532
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Apr 08 2025 13:20:50 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
533
533
  </footer>
534
534
 
535
535
  <script>prettyPrint();</script>
@@ -66,8 +66,6 @@ import obj2u8arr from 'wsemi/src/obj2u8arr.mjs'
66
66
  import u8arr2obj from 'wsemi/src/u8arr2obj.mjs'
67
67
  import pmConvertResolve from 'wsemi/src/pmConvertResolve.mjs'
68
68
  import now2strp from 'wsemi/src/now2strp.mjs'
69
- import fsIsFolder from 'wsemi/src/fsIsFolder.mjs'
70
- import fsCreateFolder from 'wsemi/src/fsCreateFolder.mjs'
71
69
 
72
70
 
73
71
  /**
@@ -543,9 +541,7 @@ function WConverhpClient(opt) {
543
541
 
544
542
  //fdDownload, 只有後端下載才使用fdDownload
545
543
  let fdDownload = get(opt, 'fdDownload', '')
546
- if (!fsIsFolder(fdDownload)) {
547
- fsCreateFolder(fdDownload)
548
- }
544
+ fs.mkdirSync(fdDownload, { recursive: true }) //須使用mkdirSync, 不要用fsIsFolder與fsCreateFolder避免編譯
549
545
  // console.log('fdDownload', fdDownload)
550
546
 
551
547
  //fp
@@ -940,7 +936,7 @@ export default WConverhpClient
940
936
  <br class="clear">
941
937
 
942
938
  <footer>
943
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Apr 08 2025 12:28:45 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
939
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Apr 08 2025 13:20:50 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
944
940
  </footer>
945
941
 
946
942
  <script>prettyPrint();</script>
@@ -709,7 +709,7 @@
709
709
  <br class="clear">
710
710
 
711
711
  <footer>
712
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Apr 08 2025 12:28:45 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
712
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Apr 08 2025 13:20:50 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
713
713
  </footer>
714
714
 
715
715
  <script>prettyPrint();</script>
@@ -1045,7 +1045,7 @@ export default WConverhpServer
1045
1045
  <br class="clear">
1046
1046
 
1047
1047
  <footer>
1048
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Apr 08 2025 12:28:45 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1048
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Apr 08 2025 13:20:50 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1049
1049
  </footer>
1050
1050
 
1051
1051
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -71,7 +71,7 @@
71
71
  <br class="clear">
72
72
 
73
73
  <footer>
74
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Apr 08 2025 12:28:45 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
74
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Apr 08 2025 13:20:50 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
75
75
  </footer>
76
76
 
77
77
  <script>prettyPrint();</script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-converhp",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "main": "dist/w-converhp-server.umd.js",
5
5
  "dependencies": {
6
6
  "@hapi/hapi": "^21.4.0",
package/scla.mjs CHANGED
@@ -1,4 +1,6 @@
1
+ import path from 'path'
1
2
  import fs from 'fs'
3
+ import _ from 'lodash-es'
2
4
  import w from 'wsemi'
3
5
  import FormData from 'form-data'
4
6
  import WConverhpClient from './src/WConverhpClient.mjs'
package/sclb.mjs CHANGED
@@ -1,4 +1,6 @@
1
+ import path from 'path'
1
2
  import fs from 'fs'
3
+ import _ from 'lodash-es'
2
4
  import w from 'wsemi'
3
5
  import FormData from 'form-data'
4
6
  import WConverhpClient from './src/WConverhpClient.mjs'
package/sclc.mjs CHANGED
@@ -1,4 +1,6 @@
1
+ import path from 'path'
1
2
  import fs from 'fs'
3
+ import _ from 'lodash-es'
2
4
  import w from 'wsemi'
3
5
  import FormData from 'form-data'
4
6
  import WConverhpClient from './src/WConverhpClient.mjs'
package/scld.mjs CHANGED
@@ -1,3 +1,6 @@
1
+ import path from 'path'
2
+ import fs from 'fs'
3
+ import _ from 'lodash-es'
1
4
  import w from 'wsemi'
2
5
  import FormData from 'form-data'
3
6
  import WConverhpClient from './src/WConverhpClient.mjs'
@@ -19,8 +19,6 @@ import obj2u8arr from 'wsemi/src/obj2u8arr.mjs'
19
19
  import u8arr2obj from 'wsemi/src/u8arr2obj.mjs'
20
20
  import pmConvertResolve from 'wsemi/src/pmConvertResolve.mjs'
21
21
  import now2strp from 'wsemi/src/now2strp.mjs'
22
- import fsIsFolder from 'wsemi/src/fsIsFolder.mjs'
23
- import fsCreateFolder from 'wsemi/src/fsCreateFolder.mjs'
24
22
 
25
23
 
26
24
  /**
@@ -496,9 +494,7 @@ function WConverhpClient(opt) {
496
494
 
497
495
  //fdDownload, 只有後端下載才使用fdDownload
498
496
  let fdDownload = get(opt, 'fdDownload', '')
499
- if (!fsIsFolder(fdDownload)) {
500
- fsCreateFolder(fdDownload)
501
- }
497
+ fs.mkdirSync(fdDownload, { recursive: true }) //須使用mkdirSync, 不要用fsIsFolder與fsCreateFolder避免編譯
502
498
  // console.log('fdDownload', fdDownload)
503
499
 
504
500
  //fp
package/srv.mjs CHANGED
@@ -123,7 +123,7 @@ setTimeout(() => {
123
123
  console.log('ms', ms)
124
124
  // console.log('ms', JSON.stringify(ms))
125
125
  wo.stop()
126
- }, 3000)
126
+ }, 1113000)
127
127
 
128
128
 
129
129
  //node --experimental-modules srv.mjs