@netlify/zip-it-and-ship-it 15.3.0 → 15.3.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/dist/archive.d.ts +1 -2
- package/dist/archive.js +3 -3
- package/package.json +5 -5
package/dist/archive.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Buffer } from 'buffer';
|
|
2
2
|
import { Stats } from 'fs';
|
|
3
3
|
import { Writable } from 'stream';
|
|
4
|
-
import { Archiver } from 'archiver';
|
|
4
|
+
import type { Archiver } from 'archiver';
|
|
5
5
|
import { ObjectValues } from './types/utils.js';
|
|
6
|
-
export { Archiver as ZipArchive } from 'archiver';
|
|
7
6
|
export declare const ARCHIVE_FORMAT: {
|
|
8
7
|
readonly NONE: "none";
|
|
9
8
|
readonly TAR: "tar";
|
package/dist/archive.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createWriteStream, readlinkSync } from 'fs';
|
|
2
|
-
import
|
|
2
|
+
import { TarArchive, ZipArchive } from 'archiver';
|
|
3
3
|
export const ARCHIVE_FORMAT = {
|
|
4
4
|
NONE: 'none',
|
|
5
5
|
TAR: 'tar',
|
|
@@ -8,7 +8,7 @@ export const ARCHIVE_FORMAT = {
|
|
|
8
8
|
// Start zipping files
|
|
9
9
|
export const startZip = function (destPath) {
|
|
10
10
|
const output = createWriteStream(destPath);
|
|
11
|
-
const archive =
|
|
11
|
+
const archive = new ZipArchive();
|
|
12
12
|
archive.pipe(output);
|
|
13
13
|
return { archive, output };
|
|
14
14
|
};
|
|
@@ -43,7 +43,7 @@ export const endZip = async function (archive, output) {
|
|
|
43
43
|
};
|
|
44
44
|
export const startTar = function (destPath) {
|
|
45
45
|
const output = createWriteStream(destPath);
|
|
46
|
-
const archive =
|
|
46
|
+
const archive = new TarArchive({ gzip: true });
|
|
47
47
|
archive.pipe(output);
|
|
48
48
|
return { archive, output };
|
|
49
49
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/zip-it-and-ship-it",
|
|
3
|
-
"version": "15.3.
|
|
3
|
+
"version": "15.3.1",
|
|
4
4
|
"description": "Zip it and ship it",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"@babel/parser": "^7.22.5",
|
|
45
45
|
"@babel/types": "^7.28.5",
|
|
46
46
|
"@netlify/binary-info": "^1.0.0",
|
|
47
|
-
"@netlify/serverless-functions-api": "2.
|
|
47
|
+
"@netlify/serverless-functions-api": "2.18.0",
|
|
48
48
|
"@opentelemetry/api": "~1.8.0",
|
|
49
49
|
"@vercel/nft": "0.29.4",
|
|
50
|
-
"archiver": "^
|
|
50
|
+
"archiver": "^8.0.0",
|
|
51
51
|
"common-path-prefix": "^3.0.0",
|
|
52
52
|
"copy-file": "^11.0.0",
|
|
53
53
|
"es-module-lexer": "^1.0.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@netlify/types": "2.7.0",
|
|
80
80
|
"@opentelemetry/sdk-trace-base": "~1.24.0",
|
|
81
|
-
"@types/archiver": "
|
|
81
|
+
"@types/archiver": "8.0.0",
|
|
82
82
|
"@types/is-ci": "3.0.4",
|
|
83
83
|
"@types/node": "^22.12.0",
|
|
84
84
|
"@types/normalize-path": "3.0.2",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"engines": {
|
|
103
103
|
"node": ">=22.12.0"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "20f14cb73414fc393175094e88278bea96b15f71"
|
|
106
106
|
}
|