w-converhp 2.0.46 → 2.0.47

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.
@@ -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 Thu May 15 2025 21:00:14 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 Fri May 16 2025 14:05:37 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
533
533
  </footer>
534
534
 
535
535
  <script>prettyPrint();</script>
@@ -206,25 +206,22 @@ function WConverhpClient(opt) {
206
206
  //urlUse
207
207
  let urlUse = ''
208
208
  if (type === 'basic') {
209
- urlUse = url
210
- }
211
- else if (type === 'slice') {
212
- urlUse = `${url}slc`
209
+ urlUse = `${url}/main` //bbb
213
210
  }
214
211
  else if (type === 'upload-controller') {
215
- urlUse = `${url}ulctr`
212
+ urlUse = `${url}/ulctr` //bbb
213
+ }
214
+ else if (type === 'slice') {
215
+ urlUse = `${url}/slc` //bbb
216
216
  }
217
- // else if (type === 'slice-merge') {
218
- // urlUse = `${url}slcm`
219
- // }
220
217
  else if (type === 'download-get-filename') {
221
- urlUse = `${url}dwgfn`
218
+ urlUse = `${url}/dwgfn` //bbb
222
219
  }
223
220
  else if (type === 'download-get') {
224
- urlUse = `${url}dwgf`
221
+ urlUse = `${url}/dwgf` //bbb
225
222
  }
226
223
  else if (type === 'download') {
227
- urlUse = `${url}dw`
224
+ urlUse = `${url}/dw` //bbb
228
225
  }
229
226
  else {
230
227
  throw new Error(`invalid type[${type}]`)
@@ -1156,7 +1153,7 @@ export default WConverhpClient
1156
1153
  <br class="clear">
1157
1154
 
1158
1155
  <footer>
1159
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu May 15 2025 21:00:14 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1156
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Fri May 16 2025 14:05:37 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1160
1157
  </footer>
1161
1158
 
1162
1159
  <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 Thu May 15 2025 21:00:14 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 Fri May 16 2025 14:05:37 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
753
753
  </footer>
754
754
 
755
755
  <script>prettyPrint();</script>
@@ -495,7 +495,7 @@ function WConverhpServer(opt = {}) {
495
495
 
496
496
  //apiMain
497
497
  let apiMain = {
498
- path: `/${apiName}`,
498
+ path: `/${apiName}/main`, //bbb
499
499
  method: 'POST',
500
500
  options: {
501
501
  payload: {
@@ -651,7 +651,7 @@ function WConverhpServer(opt = {}) {
651
651
 
652
652
  //apiUploadCheck
653
653
  let apiUploadCheck = {
654
- path: `/${apiName}ulctr`,
654
+ path: `/${apiName}/ulctr`, //bbb
655
655
  method: 'POST',
656
656
  options: {
657
657
  payload: {
@@ -869,7 +869,7 @@ function WConverhpServer(opt = {}) {
869
869
 
870
870
  //apiUploadSlice
871
871
  let apiUploadSlice = {
872
- path: `/${apiName}slc`,
872
+ path: `/${apiName}/slc`, //bbb
873
873
  method: 'POST',
874
874
  options: {
875
875
  payload: {
@@ -1023,7 +1023,7 @@ function WConverhpServer(opt = {}) {
1023
1023
 
1024
1024
  //apiDownloadGetFilename
1025
1025
  let apiDownloadGetFilename = {
1026
- path: `/${apiName}dwgfn`,
1026
+ path: `/${apiName}/dwgfn`, //bbb
1027
1027
  method: 'POST',
1028
1028
  options: {
1029
1029
  payload: {
@@ -1145,7 +1145,7 @@ function WConverhpServer(opt = {}) {
1145
1145
 
1146
1146
  //apiDownloadGetFile
1147
1147
  let apiDownloadGetFile = {
1148
- path: `/${apiName}dwgf`,
1148
+ path: `/${apiName}/dwgf`, //bbb
1149
1149
  method: 'GET',
1150
1150
  options: {
1151
1151
  timeout: {
@@ -1269,7 +1269,7 @@ function WConverhpServer(opt = {}) {
1269
1269
 
1270
1270
  //apiDownload
1271
1271
  let apiDownload = {
1272
- path: `/${apiName}dw`,
1272
+ path: `/${apiName}/dw`, //bbb
1273
1273
  method: 'POST',
1274
1274
  options: {
1275
1275
  payload: {
@@ -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 Thu May 15 2025 21:00:14 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 Fri May 16 2025 14:05:37 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 Thu May 15 2025 21:00:14 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 Fri May 16 2025 14:05:37 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.46",
3
+ "version": "2.0.47",
4
4
  "main": "dist/w-converhp-server.umd.js",
5
5
  "dependencies": {
6
6
  "@hapi/hapi": "^21.4.0",
@@ -159,25 +159,22 @@ function WConverhpClient(opt) {
159
159
  //urlUse
160
160
  let urlUse = ''
161
161
  if (type === 'basic') {
162
- urlUse = url
163
- }
164
- else if (type === 'slice') {
165
- urlUse = `${url}slc`
162
+ urlUse = `${url}/main` //bbb
166
163
  }
167
164
  else if (type === 'upload-controller') {
168
- urlUse = `${url}ulctr`
165
+ urlUse = `${url}/ulctr` //bbb
166
+ }
167
+ else if (type === 'slice') {
168
+ urlUse = `${url}/slc` //bbb
169
169
  }
170
- // else if (type === 'slice-merge') {
171
- // urlUse = `${url}slcm`
172
- // }
173
170
  else if (type === 'download-get-filename') {
174
- urlUse = `${url}dwgfn`
171
+ urlUse = `${url}/dwgfn` //bbb
175
172
  }
176
173
  else if (type === 'download-get') {
177
- urlUse = `${url}dwgf`
174
+ urlUse = `${url}/dwgf` //bbb
178
175
  }
179
176
  else if (type === 'download') {
180
- urlUse = `${url}dw`
177
+ urlUse = `${url}/dw` //bbb
181
178
  }
182
179
  else {
183
180
  throw new Error(`invalid type[${type}]`)
@@ -448,7 +448,7 @@ function WConverhpServer(opt = {}) {
448
448
 
449
449
  //apiMain
450
450
  let apiMain = {
451
- path: `/${apiName}`,
451
+ path: `/${apiName}/main`, //bbb
452
452
  method: 'POST',
453
453
  options: {
454
454
  payload: {
@@ -604,7 +604,7 @@ function WConverhpServer(opt = {}) {
604
604
 
605
605
  //apiUploadCheck
606
606
  let apiUploadCheck = {
607
- path: `/${apiName}ulctr`,
607
+ path: `/${apiName}/ulctr`, //bbb
608
608
  method: 'POST',
609
609
  options: {
610
610
  payload: {
@@ -822,7 +822,7 @@ function WConverhpServer(opt = {}) {
822
822
 
823
823
  //apiUploadSlice
824
824
  let apiUploadSlice = {
825
- path: `/${apiName}slc`,
825
+ path: `/${apiName}/slc`, //bbb
826
826
  method: 'POST',
827
827
  options: {
828
828
  payload: {
@@ -976,7 +976,7 @@ function WConverhpServer(opt = {}) {
976
976
 
977
977
  //apiDownloadGetFilename
978
978
  let apiDownloadGetFilename = {
979
- path: `/${apiName}dwgfn`,
979
+ path: `/${apiName}/dwgfn`, //bbb
980
980
  method: 'POST',
981
981
  options: {
982
982
  payload: {
@@ -1098,7 +1098,7 @@ function WConverhpServer(opt = {}) {
1098
1098
 
1099
1099
  //apiDownloadGetFile
1100
1100
  let apiDownloadGetFile = {
1101
- path: `/${apiName}dwgf`,
1101
+ path: `/${apiName}/dwgf`, //bbb
1102
1102
  method: 'GET',
1103
1103
  options: {
1104
1104
  timeout: {
@@ -1222,7 +1222,7 @@ function WConverhpServer(opt = {}) {
1222
1222
 
1223
1223
  //apiDownload
1224
1224
  let apiDownload = {
1225
- path: `/${apiName}dw`,
1225
+ path: `/${apiName}/dw`, //bbb
1226
1226
  method: 'POST',
1227
1227
  options: {
1228
1228
  payload: {
package/srv.mjs CHANGED
@@ -135,6 +135,6 @@ setTimeout(() => {
135
135
  console.log('ms', ms)
136
136
  // console.log('ms', JSON.stringify(ms))
137
137
  wo.stop()
138
- }, 3000)
138
+ }, 11113000)
139
139
 
140
140
  //node srv.mjs