w-converhp 2.0.51 → 2.0.52

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.
@@ -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#line96">line 96</a>
83
+ <a href="WConverhpClient.mjs.html">WConverhpClient.mjs</a>, <a href="WConverhpClient.mjs.html#line97">line 97</a>
84
84
  </li></ul></dd>
85
85
 
86
86
 
@@ -569,7 +569,7 @@
569
569
  <br class="clear">
570
570
 
571
571
  <footer>
572
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun May 18 2025 13:23:47 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
572
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun May 18 2025 13:25:20 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
573
573
  </footer>
574
574
 
575
575
  <script>prettyPrint();</script>
@@ -47,6 +47,7 @@
47
47
  <article>
48
48
  <pre class="prettyprint source linenums"><code>import axios from 'axios'
49
49
  import get from 'lodash-es/get.js'
50
+ import size from 'lodash-es/size.js'
50
51
  import isWindow from 'wsemi/src/isWindow.mjs'
51
52
  import evem from 'wsemi/src/evem.mjs'
52
53
  import genPm from 'wsemi/src/genPm.mjs'
@@ -807,14 +808,14 @@ function WConverhpClient(opt) {
807
808
  }
808
809
 
809
810
  //針對伺服器上已有切片檔案計算hash與比對
810
- if (resUpCkt.bSls > 0) {
811
+ if (resUpCkt.bSls) {
811
812
  // console.log('receive slks...', resUpCkt.slks[0], size(resUpCkt.slks))
812
813
 
813
814
  //fileSliceHashs
814
815
  let fileSliceHashs = []
815
816
  // let n = Math.max(resUpCkt.slks.length, 1)
816
817
  // let nr = Math.floor(n / 100)
817
- for (let k = 0; k &lt; resUpCkt.slks.length; k++) {
818
+ for (let k = 0; k &lt; size(resUpCkt.slks); k++) {
818
819
  // if (k % nr === 0) {
819
820
  // console.log(`calc hash for slices`, round(k / resUpCkt.slks.length * 100, 1), '%')
820
821
  // }
@@ -1141,7 +1142,7 @@ export default WConverhpClient
1141
1142
  <br class="clear">
1142
1143
 
1143
1144
  <footer>
1144
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun May 18 2025 13:23:47 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1145
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun May 18 2025 13:25:20 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1145
1146
  </footer>
1146
1147
 
1147
1148
  <script>prettyPrint();</script>
@@ -749,7 +749,7 @@
749
749
  <br class="clear">
750
750
 
751
751
  <footer>
752
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun May 18 2025 13:23:47 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
752
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun May 18 2025 13:25:20 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
753
753
  </footer>
754
754
 
755
755
  <script>prettyPrint();</script>
@@ -1485,7 +1485,7 @@ export default WConverhpServer
1485
1485
  <br class="clear">
1486
1486
 
1487
1487
  <footer>
1488
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun May 18 2025 13:23:47 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1488
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun May 18 2025 13:25:20 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1489
1489
  </footer>
1490
1490
 
1491
1491
  <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 Sun May 18 2025 13:23:47 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 Sun May 18 2025 13:25:20 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.51",
3
+ "version": "2.0.52",
4
4
  "main": "dist/w-converhp-server.umd.js",
5
5
  "dependencies": {
6
6
  "@hapi/hapi": "^21.4.0",
@@ -1,5 +1,6 @@
1
1
  import axios from 'axios'
2
2
  import get from 'lodash-es/get.js'
3
+ import size from 'lodash-es/size.js'
3
4
  import isWindow from 'wsemi/src/isWindow.mjs'
4
5
  import evem from 'wsemi/src/evem.mjs'
5
6
  import genPm from 'wsemi/src/genPm.mjs'
@@ -760,14 +761,14 @@ function WConverhpClient(opt) {
760
761
  }
761
762
 
762
763
  //針對伺服器上已有切片檔案計算hash與比對
763
- if (resUpCkt.bSls > 0) {
764
+ if (resUpCkt.bSls) {
764
765
  // console.log('receive slks...', resUpCkt.slks[0], size(resUpCkt.slks))
765
766
 
766
767
  //fileSliceHashs
767
768
  let fileSliceHashs = []
768
769
  // let n = Math.max(resUpCkt.slks.length, 1)
769
770
  // let nr = Math.floor(n / 100)
770
- for (let k = 0; k < resUpCkt.slks.length; k++) {
771
+ for (let k = 0; k < size(resUpCkt.slks); k++) {
771
772
  // if (k % nr === 0) {
772
773
  // console.log(`calc hash for slices`, round(k / resUpCkt.slks.length * 100, 1), '%')
773
774
  // }