redzip 4.2.0 → 4.3.0
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 -1
- package/lib/local/index.js +3 -1
- package/package.json +2 -2
package/ChangeLog
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
2026.02.25, v4.3.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 9e9f975 redzip: keep mtime of directory (coderaiser/cloudcmd#457)
|
|
5
|
+
- 317f8cd redzip: c8 v11.0.0
|
|
6
|
+
|
|
1
7
|
2026.02.24, v4.2.0
|
|
2
8
|
|
|
3
9
|
feature:
|
|
4
10
|
- 2c7e9cc redzip: write: date: directory (coderaiser/cloudcmd#457)
|
|
5
|
-
- de68a82 redzip: write: date: add (coderaiser/cloudcmd#457)
|
|
6
11
|
|
|
7
12
|
2026.02.21, v4.1.0
|
|
8
13
|
|
package/lib/local/index.js
CHANGED
|
@@ -64,10 +64,12 @@ export const write = async (outerPath, innerPath, readStream, options = {}) => {
|
|
|
64
64
|
if (unzip)
|
|
65
65
|
return await pipe([readStream, createGunzip(), writeStream]);
|
|
66
66
|
|
|
67
|
+
const {date: dirDate} = await readStat(dirPath);
|
|
68
|
+
|
|
67
69
|
await pipe([readStream, writeStream]);
|
|
68
70
|
|
|
69
71
|
await maybeSetDate(outerPath, date);
|
|
70
|
-
await maybeSetDate(dirPath,
|
|
72
|
+
await maybeSetDate(dirPath, dirDate);
|
|
71
73
|
};
|
|
72
74
|
|
|
73
75
|
export const readSize = async (outerPath, innerPath, options) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redzip",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/redzip.js",
|
|
6
6
|
"description": "work with files inside archives like with regular files",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@iocmd/wait": "^2.1.0",
|
|
43
|
-
"c8": "^
|
|
43
|
+
"c8": "^11.0.0",
|
|
44
44
|
"eslint": "^10.0.1",
|
|
45
45
|
"eslint-plugin-putout": "^31.0.1",
|
|
46
46
|
"madrun": "^13.0.0",
|