w-zip 1.0.12 → 1.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.
package/README.md CHANGED
@@ -76,22 +76,22 @@ test()
76
76
  })
77
77
 
78
78
  // zipFile before
79
- // zipFile done: ./testData/outputZip/test1.zip
79
+ // zipFile done: test1.zip
80
80
  // zipFile after
81
81
  // zipFolder before
82
- // zipFolder done: ./testData/outputZip/test2.zip
82
+ // zipFolder done: test2.zip
83
83
  // zipFolder after
84
84
  // zipFolder with password before
85
- // zipFolder with password done: ./testData/outputZip/test2PW.zip
85
+ // zipFolder with password done: test2PW.zip
86
86
  // zipFolder with password after
87
87
  // unzip1 before
88
- // unzip1 done: ./testData/outputZip/extract/test1
88
+ // unzip1 done: test1
89
89
  // unzip1 after
90
90
  // unzip2 before
91
- // unzip2 done: ./testData/outputZip/extract/test2
91
+ // unzip2 done: test2
92
92
  // unzip2 after
93
93
  // unzip2 with password before
94
- // unzip2 with password done: ./testData/outputZip/extract/test2PW
94
+ // unzip2 with password done: test2PW
95
95
  // unzip2 with password after
96
96
  ```
97
97
 
@@ -154,21 +154,21 @@ test()
154
154
  })
155
155
 
156
156
  // zipFile before
157
- // zipFile finish: ./testData/output7z/test1.7z
157
+ // zipFile finish: test1.7z
158
158
  // zipFile after
159
159
  // zipFolder before
160
- // zipFolder finish: ./testData/output7z/test2.7z
160
+ // zipFolder finish: test2.7z
161
161
  // zipFolder after
162
162
  // zipFolder with password before
163
- // zipFolder with password finish: ./testData/output7z/test2PW.7z
163
+ // zipFolder with password finish: test2PW.7z
164
164
  // zipFolder with password after
165
165
  // unzip1 before
166
- // unzip1 finish: ./testData/output7z/extract/test1
166
+ // unzip1 finish: test1
167
167
  // unzip1 after
168
168
  // unzip2 before
169
- // unzip2 finish: ./testData/output7z/extract/test2
169
+ // unzip2 finish: test2
170
170
  // unzip2 after
171
171
  // unzip2 with password before
172
- // unzip2 with password finish: ./testData/output7z/extract/test2PW
172
+ // unzip2 with password finish: test2PW
173
173
  // unzip2 with password after
174
174
  ```
package/dist/w-zip.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * w-zip v1.0.12
2
+ * w-zip v1.0.13
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
package/docs/index.html CHANGED
@@ -68,7 +68,7 @@
68
68
  <br class="clear">
69
69
 
70
70
  <footer>
71
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Fri Oct 22 2021 12:13:27 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
71
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Dec 16 2021 13:56:32 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
72
72
  </footer>
73
73
 
74
74
  <script>prettyPrint();</script>
package/docs/m7z.html CHANGED
@@ -124,7 +124,7 @@
124
124
 
125
125
  <h5>Example</h5>
126
126
 
127
- <pre class="prettyprint"><code>import wz from 'w-zip'
128
127
  // //setProg
129
128
  // let path7zexe = 'path of 7zEXE'
130
129
  // wz.m7z.setProg(path7zexe)
131
130
  //zipFile
132
131
  console.log('zipFile before')
133
132
  console.log('zipFile', await wz.m7z.zipFile(fpSrc1, fpZip1))
134
133
  console.log('zipFile after')
135
134
  //zipFolder
136
135
  console.log('zipFolder before')
137
136
  console.log('zipFolder', await wz.m7z.zipFolder(fpSrc2, fpZip2))
138
137
  console.log('zipFolder after')
139
138
  //zipFolder with password
140
139
  console.log('zipFolder with password before')
141
140
  console.log('zipFolder with password', await wz.m7z.zipFolder(fpSrc2, fpZip2PW, { pw }))
142
141
  console.log('zipFolder with password after')
143
142
  //unzip
144
143
  console.log('unzip1 before')
145
144
  console.log('unzip1', await wz.m7z.unzip(fpZip1, fpUnzipExtract + '/test1'))
146
145
  console.log('unzip1 after')
147
146
  //unzip
148
147
  console.log('unzip2 before')
149
148
  console.log('unzip2', await wz.m7z.unzip(fpZip2, fpUnzipExtract + '/test2'))
150
149
  console.log('unzip2 after')
151
150
  //unzip with password
152
151
  console.log('unzip2 with password before')
153
152
  console.log('unzip2 with password', await wz.m7z.unzip(fpZip2PW, fpUnzipExtract + '/test2PW', { pw }))
154
153
  console.log('unzip2 with password after')
155
154
  .catch((err) => {
156
155
  console.log(err)
157
156
  })
157
+ <pre class="prettyprint"><code>import wz from 'w-zip'
158
158
  // //setProg
159
159
  // let path7zexe = 'path of 7zEXE'
160
160
  // wz.m7z.setProg(path7zexe)
161
161
  //zipFile
162
162
  console.log('zipFile before')
163
163
  console.log('zipFile', await wz.m7z.zipFile(fpSrc1, fpZip1))
164
164
  console.log('zipFile after')
165
165
  //zipFolder
166
166
  console.log('zipFolder before')
167
167
  console.log('zipFolder', await wz.m7z.zipFolder(fpSrc2, fpZip2))
168
168
  console.log('zipFolder after')
169
169
  //zipFolder with password
170
170
  console.log('zipFolder with password before')
171
171
  console.log('zipFolder with password', await wz.m7z.zipFolder(fpSrc2, fpZip2PW, { pw }))
172
172
  console.log('zipFolder with password after')
173
173
  //unzip
174
174
  console.log('unzip1 before')
175
175
  console.log('unzip1', await wz.m7z.unzip(fpZip1, fpUnzipExtract + '/test1'))
176
176
  console.log('unzip1 after')
177
177
  //unzip
178
178
  console.log('unzip2 before')
179
179
  console.log('unzip2', await wz.m7z.unzip(fpZip2, fpUnzipExtract + '/test2'))
180
180
  console.log('unzip2 after')
181
181
  //unzip with password
182
182
  console.log('unzip2 with password before')
183
183
  console.log('unzip2 with password', await wz.m7z.unzip(fpZip2PW, fpUnzipExtract + '/test2PW', { pw }))
184
184
  console.log('unzip2 with password after')
185
185
  .catch((err) => {
186
186
  console.log(err)
187
187
  })
188
188
 
189
189
 
190
190
 
@@ -1388,7 +1388,7 @@
1388
1388
  <br class="clear">
1389
1389
 
1390
1390
  <footer>
1391
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Fri Oct 22 2021 12:13:27 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1391
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Dec 16 2021 13:56:32 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1392
1392
  </footer>
1393
1393
 
1394
1394
  <script>prettyPrint();</script>
package/docs/m7z.mjs.html CHANGED
@@ -111,22 +111,22 @@ import checkTarget from './checkTarget.mjs'
111
111
  * })
112
112
  *
113
113
  * // zipFile before
114
- * // zipFile finish: ./testData/output7z/test1.7z
114
+ * // zipFile finish: test1.7z
115
115
  * // zipFile after
116
116
  * // zipFolder before
117
- * // zipFolder finish: ./testData/output7z/test2.7z
117
+ * // zipFolder finish: test2.7z
118
118
  * // zipFolder after
119
119
  * // zipFolder with password before
120
- * // zipFolder with password finish: ./testData/output7z/test2PW.7z
120
+ * // zipFolder with password finish: test2PW.7z
121
121
  * // zipFolder with password after
122
122
  * // unzip1 before
123
- * // unzip1 finish: ./testData/output7z/extract/test1
123
+ * // unzip1 finish: test1
124
124
  * // unzip1 after
125
125
  * // unzip2 before
126
- * // unzip2 finish: ./testData/output7z/extract/test2
126
+ * // unzip2 finish: test2
127
127
  * // unzip2 after
128
128
  * // unzip2 with password before
129
- * // unzip2 with password finish: ./testData/output7z/extract/test2PW
129
+ * // unzip2 with password finish: test2PW
130
130
  * // unzip2 with password after
131
131
  */
132
132
  function m7z() {
@@ -356,7 +356,7 @@ export default m7z()
356
356
  <br class="clear">
357
357
 
358
358
  <footer>
359
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Fri Oct 22 2021 12:13:27 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
359
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Dec 16 2021 13:56:32 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
360
360
  </footer>
361
361
 
362
362
  <script>prettyPrint();</script>
package/docs/mZip.html CHANGED
@@ -124,7 +124,7 @@
124
124
 
125
125
  <h5>Example</h5>
126
126
 
127
- <pre class="prettyprint"><code>import wz from 'w-zip'
128
127
  //zipFile
129
128
  console.log('zipFile before')
130
129
  console.log('zipFile', await wz.mZip.zipFile(fpSrc1, fpZip1))
131
130
  console.log('zipFile after')
132
131
  //zipFolder
133
132
  console.log('zipFolder before')
134
133
  console.log('zipFolder', await wz.mZip.zipFolder(fpSrc2, fpZip2))
135
134
  console.log('zipFolder after')
136
135
  //zipFolder with password
137
136
  console.log('zipFolder with password before')
138
137
  console.log('zipFolder with password', await wz.mZip.zipFolder(fpSrc2, fpZip2PW, { pw }))
139
138
  console.log('zipFolder with password after')
140
139
  //unzip
141
140
  console.log('unzip1 before')
142
141
  console.log('unzip1', await wz.mZip.unzip(fpZip1, fpUnzipExtract + '/test1'))
143
142
  console.log('unzip1 after')
144
143
  //unzip
145
144
  console.log('unzip2 before')
146
145
  console.log('unzip2', await wz.mZip.unzip(fpZip2, fpUnzipExtract + '/test2'))
147
146
  console.log('unzip2 after')
148
147
  //unzip with password
149
148
  console.log('unzip2 with password before')
150
149
  console.log('unzip2 with password', await wz.mZip.unzip(fpZip2PW, fpUnzipExtract + '/test2PW', { pw }))
151
150
  console.log('unzip2 with password after')
152
151
  .catch((err) => {
153
152
  console.log(err)
154
153
  })
154
+ <pre class="prettyprint"><code>import wz from 'w-zip'
155
155
  //zipFile
156
156
  console.log('zipFile before')
157
157
  console.log('zipFile', await wz.mZip.zipFile(fpSrc1, fpZip1))
158
158
  console.log('zipFile after')
159
159
  //zipFolder
160
160
  console.log('zipFolder before')
161
161
  console.log('zipFolder', await wz.mZip.zipFolder(fpSrc2, fpZip2))
162
162
  console.log('zipFolder after')
163
163
  //zipFolder with password
164
164
  console.log('zipFolder with password before')
165
165
  console.log('zipFolder with password', await wz.mZip.zipFolder(fpSrc2, fpZip2PW, { pw }))
166
166
  console.log('zipFolder with password after')
167
167
  //unzip
168
168
  console.log('unzip1 before')
169
169
  console.log('unzip1', await wz.mZip.unzip(fpZip1, fpUnzipExtract + '/test1'))
170
170
  console.log('unzip1 after')
171
171
  //unzip
172
172
  console.log('unzip2 before')
173
173
  console.log('unzip2', await wz.mZip.unzip(fpZip2, fpUnzipExtract + '/test2'))
174
174
  console.log('unzip2 after')
175
175
  //unzip with password
176
176
  console.log('unzip2 with password before')
177
177
  console.log('unzip2 with password', await wz.mZip.unzip(fpZip2PW, fpUnzipExtract + '/test2PW', { pw }))
178
178
  console.log('unzip2 with password after')
179
179
  .catch((err) => {
180
180
  console.log(err)
181
181
  })
182
182
 
183
183
 
184
184
 
@@ -1072,7 +1072,7 @@
1072
1072
  <br class="clear">
1073
1073
 
1074
1074
  <footer>
1075
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Fri Oct 22 2021 12:13:27 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1075
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Dec 16 2021 13:56:32 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1076
1076
  </footer>
1077
1077
 
1078
1078
  <script>prettyPrint();</script>
@@ -116,22 +116,22 @@ archiver.registerFormat('zip-encrypted', archiverEnc)
116
116
  * })
117
117
  *
118
118
  * // zipFile before
119
- * // zipFile done: ./testData/outputZip/test1.zip
119
+ * // zipFile done: test1.zip
120
120
  * // zipFile after
121
121
  * // zipFolder before
122
- * // zipFolder done: ./testData/outputZip/test2.zip
122
+ * // zipFolder done: test2.zip
123
123
  * // zipFolder after
124
124
  * // zipFolder with password before
125
- * // zipFolder with password done: ./testData/outputZip/test2PW.zip
125
+ * // zipFolder with password done: test2PW.zip
126
126
  * // zipFolder with password after
127
127
  * // unzip1 before
128
- * // unzip1 done: ./testData/outputZip/extract/test1
128
+ * // unzip1 done: test1
129
129
  * // unzip1 after
130
130
  * // unzip2 before
131
- * // unzip2 done: ./testData/outputZip/extract/test2
131
+ * // unzip2 done: test2
132
132
  * // unzip2 after
133
133
  * // unzip2 with password before
134
- * // unzip2 with password done: ./testData/outputZip/extract/test2PW
134
+ * // unzip2 with password done: test2PW
135
135
  * // unzip2 with password after
136
136
  */
137
137
  function mZip() {
@@ -430,7 +430,7 @@ export default mZip()
430
430
  <br class="clear">
431
431
 
432
432
  <footer>
433
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Fri Oct 22 2021 12:13:27 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
433
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Dec 16 2021 13:56:32 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
434
434
  </footer>
435
435
 
436
436
  <script>prettyPrint();</script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-zip",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "A compression tool with zip and 7z.",
5
5
  "main": "dist/w-zip.umd.js",
6
6
  "dependencies": {
@@ -8,7 +8,7 @@
8
8
  "archiver-zip-encrypted": "^1.0.10",
9
9
  "unzipper": "^0.10.11",
10
10
  "lodash": "^4.17.21",
11
- "wsemi": "^1.6.26"
11
+ "wsemi": "^1.6.34"
12
12
  },
13
13
  "devDependencies": {
14
14
  "w-package-tools": "^1.0.59"
package/src/m7z.mjs CHANGED
@@ -67,22 +67,22 @@ import checkTarget from './checkTarget.mjs'
67
67
  * })
68
68
  *
69
69
  * // zipFile before
70
- * // zipFile finish: ./testData/output7z/test1.7z
70
+ * // zipFile finish: test1.7z
71
71
  * // zipFile after
72
72
  * // zipFolder before
73
- * // zipFolder finish: ./testData/output7z/test2.7z
73
+ * // zipFolder finish: test2.7z
74
74
  * // zipFolder after
75
75
  * // zipFolder with password before
76
- * // zipFolder with password finish: ./testData/output7z/test2PW.7z
76
+ * // zipFolder with password finish: test2PW.7z
77
77
  * // zipFolder with password after
78
78
  * // unzip1 before
79
- * // unzip1 finish: ./testData/output7z/extract/test1
79
+ * // unzip1 finish: test1
80
80
  * // unzip1 after
81
81
  * // unzip2 before
82
- * // unzip2 finish: ./testData/output7z/extract/test2
82
+ * // unzip2 finish: test2
83
83
  * // unzip2 after
84
84
  * // unzip2 with password before
85
- * // unzip2 with password finish: ./testData/output7z/extract/test2PW
85
+ * // unzip2 with password finish: test2PW
86
86
  * // unzip2 with password after
87
87
  */
88
88
  function m7z() {
package/src/mZip.mjs CHANGED
@@ -72,22 +72,22 @@ archiver.registerFormat('zip-encrypted', archiverEnc)
72
72
  * })
73
73
  *
74
74
  * // zipFile before
75
- * // zipFile done: ./testData/outputZip/test1.zip
75
+ * // zipFile done: test1.zip
76
76
  * // zipFile after
77
77
  * // zipFolder before
78
- * // zipFolder done: ./testData/outputZip/test2.zip
78
+ * // zipFolder done: test2.zip
79
79
  * // zipFolder after
80
80
  * // zipFolder with password before
81
- * // zipFolder with password done: ./testData/outputZip/test2PW.zip
81
+ * // zipFolder with password done: test2PW.zip
82
82
  * // zipFolder with password after
83
83
  * // unzip1 before
84
- * // unzip1 done: ./testData/outputZip/extract/test1
84
+ * // unzip1 done: test1
85
85
  * // unzip1 after
86
86
  * // unzip2 before
87
- * // unzip2 done: ./testData/outputZip/extract/test2
87
+ * // unzip2 done: test2
88
88
  * // unzip2 after
89
89
  * // unzip2 with password before
90
- * // unzip2 with password done: ./testData/outputZip/extract/test2PW
90
+ * // unzip2 with password done: test2PW
91
91
  * // unzip2 with password after
92
92
  */
93
93
  function mZip() {