w-converhp 2.0.63 → 2.0.64

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.
@@ -649,7 +649,7 @@
649
649
  <br class="clear">
650
650
 
651
651
  <footer>
652
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Aug 19 2025 19:54:05 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
652
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Aug 19 2025 20:55:32 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
653
653
  </footer>
654
654
 
655
655
  <script>prettyPrint();</script>
@@ -802,16 +802,29 @@ function WConverhpClient(opt) {
802
802
  // console.log(`send check-total-hash...`)
803
803
  let resUpCkt = await send('upload-controller', { mode: 'check-total-hash', fileHash: fileTotalHash, filename: fileTotalName, fileSize: fileTotalSize }, { dataType: 'json', retry: retryUpload })
804
804
  // console.log('resUpCkt', resUpCkt)
805
- // resUpCkt {
806
- // path: 'uploadTemp\\2429b7ef08ce6ba9',
807
- // bAllExist: false,
808
- // bAllSize: false,
809
- // bAllHash: false,
810
- // bSls: true,
811
- // slks: [
812
- // 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
813
- // ]
814
- // }
805
+ //bAllHash: false:
806
+ // resUpCkt {
807
+ // path: 'uploadTemp\\2429b7ef08ce6ba9',
808
+ // bAllExist: false,
809
+ // bAllSize: false,
810
+ // bAllHash: false,
811
+ // bSls: true,
812
+ // slks: [
813
+ // 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
814
+ // ]
815
+ // }
816
+ //bAllHash: true:
817
+ // resUpCkt {
818
+ // path: 'uploadTemp\\2429b7ef08ce6ba9',
819
+ // bAllExist: false,
820
+ // bAllSize: false,
821
+ // bAllHash: false,
822
+ // bSls: true,
823
+ // slks: [
824
+ // 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
825
+ // ],
826
+ // msg: {procUpload處理後的ro}
827
+ // }
815
828
 
816
829
  //check
817
830
  if (resUpCkt.bAllHash) {
@@ -820,11 +833,8 @@ function WConverhpClient(opt) {
820
833
  //cbProgressMerge
821
834
  cbProgressMerge({ prog: 100, m: 'download' }) //觸發上傳完畢後之下載回應, 故m須為download
822
835
 
823
- //resMg, 直接回傳
824
- let resMg = {
825
- filename: fileTotalName,
826
- path: resUpCkt.path,
827
- }
836
+ //resMg, 須回傳msg(也就是procUpload處理後的ro)
837
+ let resMg = resUpCkt.msg
828
838
 
829
839
  return resMg
830
840
  }
@@ -1187,7 +1197,7 @@ export default WConverhpClient
1187
1197
  <br class="clear">
1188
1198
 
1189
1199
  <footer>
1190
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Aug 19 2025 19:54:05 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1200
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Aug 19 2025 20:55:32 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1191
1201
  </footer>
1192
1202
 
1193
1203
  <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 Tue Aug 19 2025 19:54:05 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 Tue Aug 19 2025 20:55:32 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
753
753
  </footer>
754
754
 
755
755
  <script>prettyPrint();</script>
@@ -769,10 +769,10 @@ function WConverhpServer(opt = {}) {
769
769
  let ro = await procUpload(ri)
770
770
  // console.log('procUpload done', ro)
771
771
 
772
- //out merge, 直接添加ro就回傳, 此處不使用msg儲存
772
+ //out merge, 此處(bAllHash=true時)ro儲存至out.msg, 非此處(bAllHash=false時)回傳原本out, 前端須分開處理
773
773
  out = {
774
774
  ...out,
775
- ...ro,
775
+ msg: ro,
776
776
  }
777
777
 
778
778
  }
@@ -841,9 +841,9 @@ function WConverhpServer(opt = {}) {
841
841
  let ro = await procUpload(ri)
842
842
  // console.log('procUpload done', ro)
843
843
 
844
- //out merge, ro須附加至msg, 才供前端偵測state為'success'時提取msg顯示
844
+ //out merge, ro為附加至msg, 前端偵測state為'success'時, 才提取msg使用
845
845
  out = {
846
- ...out, //state為'success'時msg為空字串, 直接被ro複寫至msg即可
846
+ ...out, //state為'success'時out.msg為空字串, 故可直接被ro複寫uot.msg
847
847
  msg: ro,
848
848
  }
849
849
 
@@ -1498,7 +1498,7 @@ export default WConverhpServer
1498
1498
  <br class="clear">
1499
1499
 
1500
1500
  <footer>
1501
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Aug 19 2025 19:54:05 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1501
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Aug 19 2025 20:55:32 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1502
1502
  </footer>
1503
1503
 
1504
1504
  <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 Aug 19 2025 19:54:05 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 Aug 19 2025 20:55:32 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.63",
3
+ "version": "2.0.64",
4
4
  "main": "dist/w-converhp-server.umd.js",
5
5
  "dependencies": {
6
6
  "@hapi/hapi": "^21.4.3",
@@ -755,16 +755,29 @@ function WConverhpClient(opt) {
755
755
  // console.log(`send check-total-hash...`)
756
756
  let resUpCkt = await send('upload-controller', { mode: 'check-total-hash', fileHash: fileTotalHash, filename: fileTotalName, fileSize: fileTotalSize }, { dataType: 'json', retry: retryUpload })
757
757
  // console.log('resUpCkt', resUpCkt)
758
- // resUpCkt {
759
- // path: 'uploadTemp\\2429b7ef08ce6ba9',
760
- // bAllExist: false,
761
- // bAllSize: false,
762
- // bAllHash: false,
763
- // bSls: true,
764
- // slks: [
765
- // 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
766
- // ]
767
- // }
758
+ //bAllHash: false:
759
+ // resUpCkt {
760
+ // path: 'uploadTemp\\2429b7ef08ce6ba9',
761
+ // bAllExist: false,
762
+ // bAllSize: false,
763
+ // bAllHash: false,
764
+ // bSls: true,
765
+ // slks: [
766
+ // 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
767
+ // ]
768
+ // }
769
+ //bAllHash: true:
770
+ // resUpCkt {
771
+ // path: 'uploadTemp\\2429b7ef08ce6ba9',
772
+ // bAllExist: false,
773
+ // bAllSize: false,
774
+ // bAllHash: false,
775
+ // bSls: true,
776
+ // slks: [
777
+ // 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
778
+ // ],
779
+ // msg: {procUpload處理後的ro}
780
+ // }
768
781
 
769
782
  //check
770
783
  if (resUpCkt.bAllHash) {
@@ -773,11 +786,8 @@ function WConverhpClient(opt) {
773
786
  //cbProgressMerge
774
787
  cbProgressMerge({ prog: 100, m: 'download' }) //觸發上傳完畢後之下載回應, 故m須為download
775
788
 
776
- //resMg, 直接回傳
777
- let resMg = {
778
- filename: fileTotalName,
779
- path: resUpCkt.path,
780
- }
789
+ //resMg, 須回傳msg(也就是procUpload處理後的ro)
790
+ let resMg = resUpCkt.msg
781
791
 
782
792
  return resMg
783
793
  }
@@ -722,10 +722,10 @@ function WConverhpServer(opt = {}) {
722
722
  let ro = await procUpload(ri)
723
723
  // console.log('procUpload done', ro)
724
724
 
725
- //out merge, 直接添加ro就回傳, 此處不使用msg儲存
725
+ //out merge, 此處(bAllHash=true時)ro儲存至out.msg, 非此處(bAllHash=false時)回傳原本out, 前端須分開處理
726
726
  out = {
727
727
  ...out,
728
- ...ro,
728
+ msg: ro,
729
729
  }
730
730
 
731
731
  }
@@ -794,9 +794,9 @@ function WConverhpServer(opt = {}) {
794
794
  let ro = await procUpload(ri)
795
795
  // console.log('procUpload done', ro)
796
796
 
797
- //out merge, ro須附加至msg, 才供前端偵測state為'success'時提取msg顯示
797
+ //out merge, ro為附加至msg, 前端偵測state為'success'時, 才提取msg使用
798
798
  out = {
799
- ...out, //state為'success'時msg為空字串, 直接被ro複寫至msg即可
799
+ ...out, //state為'success'時out.msg為空字串, 故可直接被ro複寫uot.msg
800
800
  msg: ro,
801
801
  }
802
802