w-converhp 2.0.75 → 2.0.76

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
@@ -221,7 +221,7 @@ downloadLargeFile()
221
221
 
222
222
  Add script for w-converhp-client.
223
223
  ```alias
224
- <script src="https://cdn.jsdelivr.net/npm/w-converhp@2.0.75/dist/w-converhp-client.umd.js"></script>
224
+ <script src="https://cdn.jsdelivr.net/npm/w-converhp@2.0.76/dist/w-converhp-client.umd.js"></script>
225
225
  ```
226
226
 
227
227
  #### Example for w-converhp-client in browser:
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * w-converhp-client v2.0.75
2
+ * w-converhp-client v2.0.76
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * w-converhp-server v2.0.75
2
+ * w-converhp-server v2.0.76
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
@@ -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.5</a> on Thu Jul 23 2026 11:36:26 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.5</a> on Thu Jul 23 2026 18:37:47 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
653
653
  </footer>
654
654
 
655
655
  <script>prettyPrint();</script>
@@ -1198,7 +1198,7 @@ export default WConverhpClient
1198
1198
  <br class="clear">
1199
1199
 
1200
1200
  <footer>
1201
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Thu Jul 23 2026 11:36:26 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1201
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Thu Jul 23 2026 18:37:47 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1202
1202
  </footer>
1203
1203
 
1204
1204
  <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.5</a> on Thu Jul 23 2026 11:36:26 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.5</a> on Thu Jul 23 2026 18:37:47 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
753
753
  </footer>
754
754
 
755
755
  <script>prettyPrint();</script>
@@ -1514,7 +1514,7 @@ export default WConverhpServer
1514
1514
  <br class="clear">
1515
1515
 
1516
1516
  <footer>
1517
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Thu Jul 23 2026 11:36:26 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1517
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Thu Jul 23 2026 18:37:47 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1518
1518
  </footer>
1519
1519
 
1520
1520
  <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.5</a> on Thu Jul 23 2026 11:36:26 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.5</a> on Thu Jul 23 2026 18:37:47 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,17 +1,17 @@
1
1
  {
2
2
  "name": "w-converhp",
3
- "version": "2.0.75",
3
+ "version": "2.0.76",
4
4
  "main": "dist/w-converhp-server.umd.js",
5
5
  "dependencies": {
6
6
  "@hapi/hapi": "^21.4.9",
7
7
  "@hapi/inert": "^7.1.2",
8
8
  "axios": "^1.18.1",
9
9
  "lodash-es": "^4.18.1",
10
- "wsemi": "^1.8.66"
10
+ "wsemi": "^1.8.67"
11
11
  },
12
12
  "devDependencies": {
13
13
  "form-data": "^4.0.6",
14
- "w-package-tools": "^1.1.11"
14
+ "w-package-tools": "^1.1.12"
15
15
  },
16
16
  "scripts": {
17
17
  "@hapi/hapi": "^20.2.1",
@@ -1,4 +1,5 @@
1
1
  import path from 'path'
2
+ import cleanFolder from 'w-package-tools/src/cleanFolder.mjs'
2
3
  import rollupFile from 'w-package-tools/src/rollupFile.mjs'
3
4
  import rollupWorker from 'w-package-tools/src/rollupWorker.mjs'
4
5
 
@@ -7,134 +8,122 @@ let fdSrc = './src'
7
8
  let fdTar = './dist'
8
9
 
9
10
 
10
- async function core() {
11
+ //清除dist, 使每次建置為全新產出(rollupFile無內建clean, 故於此單點清場)
12
+ cleanFolder(fdTar)
11
13
 
12
- //因為WConverhpServer會import checkTotalHash.wk.umd.js故得先編譯
13
- await rollupWorker({
14
- name: 'checkTotalHash', //原模組名稱, 將來會掛於winodw下或於node引入使用
15
- type: 'function', //原模組輸出為函數, 可傳入參數初始化
16
- // execFunctionByInstance: true, //default, 原模組為計算函數回傳結果
17
- fpSrc: path.resolve(fdSrc, 'checkTotalHash.mjs'), //原始檔案路徑
18
- fpTar: path.resolve(fdSrc, 'checkTotalHash.wk.umd.js'), //檔案輸出路徑
19
- formatOut: 'umd',
20
- // bMinify: false,
21
- globals: {
22
- 'path': 'path',
23
- 'fs': 'fs',
24
- },
25
- external: [
26
- 'path',
27
- 'fs',
28
- ],
29
- runin: 'nodejs',
30
- })
31
- .catch((err) => {
32
- console.log(err)
33
- })
14
+ //因為WConverhpServer會import checkTotalHash.wk.umd.js故得先編譯
15
+ await rollupWorker({
16
+ name: 'checkTotalHash', //原模組名稱, 將來會掛於winodw下或於node引入使用
17
+ type: 'function', //原模組輸出為函數, 可傳入參數初始化
18
+ // execFunctionByInstance: true, //default, 原模組為計算函數回傳結果
19
+ fpSrc: path.resolve(fdSrc, 'checkTotalHash.mjs'), //原始檔案路徑
20
+ fpTar: path.resolve(fdSrc, 'checkTotalHash.wk.umd.js'), //檔案輸出路徑
21
+ formatOut: 'umd',
22
+ // bMinify: false,
23
+ globals: {
24
+ 'path': 'path',
25
+ 'fs': 'fs',
26
+ },
27
+ external: [
28
+ 'path',
29
+ 'fs',
30
+ ],
31
+ runin: 'nodejs',
32
+ })
34
33
 
35
- //因為WConverhpServer會import checkSlicesHash.wk.umd.js故得先編譯
36
- await rollupWorker({
37
- name: 'checkSlicesHash', //原模組名稱, 將來會掛於winodw下或於node引入使用
38
- type: 'function', //原模組輸出為函數, 可傳入參數初始化
39
- // execFunctionByInstance: true, //default, 原模組為計算函數回傳結果
40
- fpSrc: path.resolve(fdSrc, 'checkSlicesHash.mjs'), //原始檔案路徑
41
- fpTar: path.resolve(fdSrc, 'checkSlicesHash.wk.umd.js'), //檔案輸出路徑
42
- formatOut: 'umd',
43
- // bMinify: false,
44
- globals: {
45
- 'path': 'path',
46
- 'fs': 'fs',
47
- },
48
- external: [
49
- 'path',
50
- 'fs',
51
- ],
52
- runin: 'nodejs',
53
- })
54
- .catch((err) => {
55
- console.log(err)
56
- })
34
+ //因為WConverhpServer會import checkSlicesHash.wk.umd.js故得先編譯
35
+ await rollupWorker({
36
+ name: 'checkSlicesHash', //原模組名稱, 將來會掛於winodw下或於node引入使用
37
+ type: 'function', //原模組輸出為函數, 可傳入參數初始化
38
+ // execFunctionByInstance: true, //default, 原模組為計算函數回傳結果
39
+ fpSrc: path.resolve(fdSrc, 'checkSlicesHash.mjs'), //原始檔案路徑
40
+ fpTar: path.resolve(fdSrc, 'checkSlicesHash.wk.umd.js'), //檔案輸出路徑
41
+ formatOut: 'umd',
42
+ // bMinify: false,
43
+ globals: {
44
+ 'path': 'path',
45
+ 'fs': 'fs',
46
+ },
47
+ external: [
48
+ 'path',
49
+ 'fs',
50
+ ],
51
+ runin: 'nodejs',
52
+ })
57
53
 
58
- //因為WConverhpServer會import mergeSlices.wk.umd.js故得先編譯
59
- await rollupWorker({
60
- name: 'mergeSlices', //原模組名稱, 將來會掛於winodw下或於node引入使用
61
- type: 'function', //原模組輸出為函數, 可傳入參數初始化
62
- // execFunctionByInstance: true, //default, 原模組為計算函數回傳結果
63
- fpSrc: path.resolve(fdSrc, 'mergeSlices.mjs'), //原始檔案路徑
64
- fpTar: path.resolve(fdSrc, 'mergeSlices.wk.umd.js'), //檔案輸出路徑
65
- formatOut: 'umd',
66
- // bMinify: false,
67
- globals: {
68
- 'path': 'path',
69
- 'fs': 'fs',
70
- },
71
- external: [
72
- 'path',
73
- 'fs',
74
- ],
75
- runin: 'nodejs',
76
- })
77
- .catch((err) => {
78
- console.log(err)
79
- })
54
+ //因為WConverhpServer會import mergeSlices.wk.umd.js故得先編譯
55
+ await rollupWorker({
56
+ name: 'mergeSlices', //原模組名稱, 將來會掛於winodw下或於node引入使用
57
+ type: 'function', //原模組輸出為函數, 可傳入參數初始化
58
+ // execFunctionByInstance: true, //default, 原模組為計算函數回傳結果
59
+ fpSrc: path.resolve(fdSrc, 'mergeSlices.mjs'), //原始檔案路徑
60
+ fpTar: path.resolve(fdSrc, 'mergeSlices.wk.umd.js'), //檔案輸出路徑
61
+ formatOut: 'umd',
62
+ // bMinify: false,
63
+ globals: {
64
+ 'path': 'path',
65
+ 'fs': 'fs',
66
+ },
67
+ external: [
68
+ 'path',
69
+ 'fs',
70
+ ],
71
+ runin: 'nodejs',
72
+ })
80
73
 
81
- await rollupFile({
82
- fn: 'WConverhpServer.mjs',
83
- fdSrc,
84
- fdTar,
85
- nameDistType: 'kebabCase',
86
- globals: {
87
- 'worker_threads': 'worker_threads',
88
- 'path': 'path',
89
- 'fs': 'fs',
90
- 'stream': 'stream',
91
- 'crypto': 'crypto', //因crypto-js修改使用內建crypto方式, 會偵測nodejs並使用require內建的crypto, 故需剔除
92
- '@hapi/hapi': '@hapi/hapi',
93
- '@hapi/inert': '@hapi/inert',
94
- // 'form-data': 'FormData',
95
- },
96
- external: [
97
- 'worker_threads',
98
- 'path',
99
- 'fs',
100
- 'stream',
101
- 'crypto',
102
- '@hapi/hapi',
103
- '@hapi/inert',
104
- // 'form-data',
105
- ],
106
- runin: 'nodejs',
107
- })
74
+ //server走nodejs解析(偏好node內建)
75
+ await rollupFile({
76
+ fn: 'WConverhpServer.mjs',
77
+ fdSrc,
78
+ fdTar,
79
+ nameDistType: 'kebabCase',
80
+ globals: {
81
+ 'worker_threads': 'worker_threads',
82
+ 'path': 'path',
83
+ 'fs': 'fs',
84
+ 'stream': 'stream',
85
+ 'crypto': 'crypto', //因crypto-js修改使用內建crypto方式, 會偵測nodejs並使用require內建的crypto, 故需剔除
86
+ '@hapi/hapi': '@hapi/hapi',
87
+ '@hapi/inert': '@hapi/inert',
88
+ // 'form-data': 'FormData',
89
+ },
90
+ external: [
91
+ 'worker_threads',
92
+ 'path',
93
+ 'fs',
94
+ 'stream',
95
+ 'crypto',
96
+ '@hapi/hapi',
97
+ '@hapi/inert',
98
+ // 'form-data',
99
+ ],
100
+ runin: 'nodejs',
101
+ })
108
102
 
109
- await rollupFile({
110
- fn: 'WConverhpClient.mjs',
111
- fdSrc,
112
- fdTar,
113
- nameDistType: 'kebabCase',
114
- globals: {
115
- 'path': 'path',
116
- 'fs': 'fs',
117
- 'stream': 'stream',
118
- 'crypto': 'crypto', //因crypto-js修改使用內建crypto方式, 會偵測nodejs並使用require內建的crypto, 故需剔除
119
- '@hapi/hapi': '@hapi/hapi',
120
- '@hapi/inert': '@hapi/inert',
121
- // 'form-data': 'FormData',
122
- },
123
- external: [
124
- 'worker_threads',
125
- 'path',
126
- 'fs',
127
- 'stream',
128
- 'crypto',
129
- '@hapi/hapi',
130
- '@hapi/inert',
131
- // 'form-data',
132
- ],
133
- runin: 'browser',
134
- })
135
-
136
- }
137
- core()
138
- .catch((err) => {
139
- console.log(err)
140
- })
103
+ //client走browser解析(吃依賴package.json的browser欄位), 不可改nodejs否則會打入node取向依賴變體(bundle爆增且可能引入瀏覽器不可執行路徑)
104
+ await rollupFile({
105
+ fn: 'WConverhpClient.mjs',
106
+ fdSrc,
107
+ fdTar,
108
+ nameDistType: 'kebabCase',
109
+ globals: {
110
+ 'path': 'path',
111
+ 'fs': 'fs',
112
+ 'stream': 'stream',
113
+ 'crypto': 'crypto', //因crypto-js修改使用內建crypto方式, 會偵測nodejs並使用require內建的crypto, 故需剔除
114
+ '@hapi/hapi': '@hapi/hapi',
115
+ '@hapi/inert': '@hapi/inert',
116
+ // 'form-data': 'FormData',
117
+ },
118
+ external: [
119
+ 'worker_threads',
120
+ 'path',
121
+ 'fs',
122
+ 'stream',
123
+ 'crypto',
124
+ '@hapi/hapi',
125
+ '@hapi/inert',
126
+ // 'form-data',
127
+ ],
128
+ runin: 'browser',
129
+ })