redzip 4.6.1 → 4.6.2
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 +6 -0
- package/README.md +3 -0
- package/lib/vfs/read/index.js +3 -1
- package/lib/zip/index.js +2 -2
- package/lib/zip/read/index.js +1 -1
- package/package.json +6 -4
package/ChangeLog
CHANGED
package/README.md
CHANGED
|
@@ -51,10 +51,12 @@ console.log(dirStream.type);
|
|
|
51
51
|
'directory';
|
|
52
52
|
|
|
53
53
|
console.log(dirStream.contentLength);
|
|
54
|
+
|
|
54
55
|
// outputs
|
|
55
56
|
280;
|
|
56
57
|
|
|
57
58
|
dirStream.pipe(process.stdout);
|
|
59
|
+
|
|
58
60
|
// outputs
|
|
59
61
|
({
|
|
60
62
|
path: '/',
|
|
@@ -103,6 +105,7 @@ fileStream.pipe(process.stdout);
|
|
|
103
105
|
'hello';
|
|
104
106
|
|
|
105
107
|
console.log(fileStream.contentLength);
|
|
108
|
+
|
|
106
109
|
// outputs
|
|
107
110
|
6;
|
|
108
111
|
```
|
package/lib/vfs/read/index.js
CHANGED
|
@@ -7,7 +7,9 @@ import _redfs from '../../redfs.js';
|
|
|
7
7
|
const {assign} = Object;
|
|
8
8
|
const {stringify} = JSON;
|
|
9
9
|
const isString = (a) => typeof a === 'string';
|
|
10
|
-
const preparePath = (a, b) => normalize(
|
|
10
|
+
const preparePath = (a, b) => normalize(
|
|
11
|
+
addSlashToEnd(a).replace(b, '/'),
|
|
12
|
+
);
|
|
11
13
|
|
|
12
14
|
export const read = async (path, options = {}) => {
|
|
13
15
|
const {
|
package/lib/zip/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import readZip from './read/index.js';
|
|
2
2
|
import readZipSize from './read-size/index.js';
|
|
3
3
|
import readZipStat from './read-stat/index.js';
|
|
4
|
-
|
|
5
|
-
export {list} from './list/index.js';
|
|
6
4
|
import writeZip from './write/index.js';
|
|
7
5
|
import removeZip from './remove/index.js';
|
|
8
6
|
|
|
7
|
+
export {list} from './list/index.js';
|
|
8
|
+
|
|
9
9
|
export const read = async (outerPath, innerPath, options) => {
|
|
10
10
|
return await readZip(outerPath, innerPath, options);
|
|
11
11
|
};
|
package/lib/zip/read/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redzip",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/redzip.js",
|
|
6
|
+
"imports": {
|
|
7
|
+
"#mock-file": "./test/mock-file.js"
|
|
8
|
+
},
|
|
6
9
|
"description": "work with files inside archives like with regular files",
|
|
7
10
|
"author": "",
|
|
8
11
|
"homepage": "http://github.com/coderaiser/redzip",
|
|
@@ -25,7 +28,7 @@
|
|
|
25
28
|
},
|
|
26
29
|
"dependencies": {
|
|
27
30
|
"@cloudcmd/formatify": "^3.0.0",
|
|
28
|
-
"@cloudcmd/sortify": "^
|
|
31
|
+
"@cloudcmd/sortify": "^3.1.0",
|
|
29
32
|
"format-io": "^2.0.0",
|
|
30
33
|
"once": "^1.4.0",
|
|
31
34
|
"pipe-io": "^4.0.1",
|
|
@@ -44,13 +47,12 @@
|
|
|
44
47
|
"eslint-plugin-putout": "^31.0.1",
|
|
45
48
|
"madrun": "^13.0.0",
|
|
46
49
|
"memfs": "^4.2.1",
|
|
47
|
-
"mock-fs": "^5.0.0",
|
|
48
50
|
"nodemon": "^3.0.1",
|
|
49
51
|
"pullout": "^5.0.1",
|
|
50
52
|
"putout": "^42.0.12",
|
|
51
53
|
"redlint": "^6.1.1",
|
|
52
54
|
"superc8": "^12.0.0",
|
|
53
|
-
"supertape": "^
|
|
55
|
+
"supertape": "^13.6.2"
|
|
54
56
|
},
|
|
55
57
|
"keywords": [
|
|
56
58
|
"directory",
|