redzip 4.0.0 → 4.0.1
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/ChangeLog +5 -0
- package/README.md +2 -3
- package/lib/local/index.js +4 -1
- package/lib/zip/list/index.js +1 -1
- package/lib/zip/read/index.js +1 -1
- package/lib/zip/read-size/index.js +1 -1
- package/lib/zip/read-stat/index.js +1 -1
- package/lib/zip/write/index.js +1 -1
- package/package.json +2 -2
package/ChangeLog
CHANGED
package/README.md
CHANGED
|
@@ -32,15 +32,14 @@ npm i redzip
|
|
|
32
32
|
#### Example
|
|
33
33
|
|
|
34
34
|
```js
|
|
35
|
+
import * as redzip from 'redzip';
|
|
36
|
+
|
|
35
37
|
const sort = 'size';
|
|
36
38
|
const order = 'desc';
|
|
37
39
|
const type = 'raw';
|
|
38
|
-
|
|
39
40
|
const dirPath = '/home/coderaiser/hello.zip/hello/';
|
|
40
41
|
const path = '/home/coderaiser/hello.zip/hello.txt';
|
|
41
42
|
|
|
42
|
-
import * as redzip from 'redzip';
|
|
43
|
-
|
|
44
43
|
const dirStream = await redzip.read(dirPath, {
|
|
45
44
|
type,
|
|
46
45
|
sort,
|
package/lib/local/index.js
CHANGED
|
@@ -56,7 +56,10 @@ export const readSize = async (outerPath, innerPath, options) => {
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
export const remove = async (outerPath, overrides = {}) => {
|
|
59
|
-
const {
|
|
59
|
+
const {
|
|
60
|
+
rmdir = _rmdir,
|
|
61
|
+
unlink = _unlink,
|
|
62
|
+
} = overrides;
|
|
60
63
|
const [error] = await tryToCatch(rmdir, outerPath);
|
|
61
64
|
|
|
62
65
|
if (!error)
|
package/lib/zip/list/index.js
CHANGED
package/lib/zip/read/index.js
CHANGED
package/lib/zip/write/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redzip",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/redzip.js",
|
|
6
6
|
"description": "work with files inside archives like with regular files",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"once": "^1.4.0",
|
|
31
31
|
"pipe-io": "^4.0.1",
|
|
32
32
|
"readify": "^10.0.0",
|
|
33
|
-
"readzip": "^
|
|
33
|
+
"readzip": "^3.0.0",
|
|
34
34
|
"totalist": "^3.0.1",
|
|
35
35
|
"trammel": "^6.0.0",
|
|
36
36
|
"try-to-catch": "^4.0.4",
|