@netlify/edge-bundler 15.0.1 → 15.0.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/dist/node/downloader.js
CHANGED
|
@@ -21,7 +21,9 @@ const download = async (targetDirectory, versionRange) => {
|
|
|
21
21
|
try {
|
|
22
22
|
await new Promise((resolve, reject) => {
|
|
23
23
|
data.on('error', reject);
|
|
24
|
-
file.on('finish',
|
|
24
|
+
file.on('finish', () => {
|
|
25
|
+
resolve();
|
|
26
|
+
});
|
|
25
27
|
data.pipe(file);
|
|
26
28
|
});
|
|
27
29
|
await extractBinaryFromZip(zipPath, binaryPath, binaryName);
|
|
@@ -130,13 +130,16 @@ export const bundle = async ({ buildID, deno, distDirectory, functions, importMa
|
|
|
130
130
|
file: tarballPath,
|
|
131
131
|
gzip: true,
|
|
132
132
|
noDirRecurse: true,
|
|
133
|
+
// Omit metadata that can vary across platforms and runs, to ensure reproducible tarballs.
|
|
134
|
+
portable: true, // omit uid/gid/uname/gname/ctime/atime
|
|
135
|
+
noMtime: true, // omit mtime
|
|
133
136
|
// Ensure forward slashes inside the tarball for cross-platform consistency.
|
|
134
137
|
onWriteEntry(entry) {
|
|
135
138
|
entry.path = getUnixPath(entry.path);
|
|
136
139
|
},
|
|
137
140
|
}, files);
|
|
138
141
|
const hash = await getFileHash(tarballPath);
|
|
139
|
-
await Promise.allSettled(cleanup);
|
|
142
|
+
await Promise.allSettled(cleanup.map((task) => task()));
|
|
140
143
|
return {
|
|
141
144
|
extension: TARBALL_EXTENSION,
|
|
142
145
|
format: BundleFormat.TARBALL,
|
package/dist/test/util.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface UseFixtureOptions {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const useFixture: (fixtureName: string, { copyDirectory }?: UseFixtureOptions) => Promise<{
|
|
8
8
|
basePath: string;
|
|
9
|
-
cleanup: () => Promise<[PromiseSettledResult<
|
|
9
|
+
cleanup: () => Promise<[PromiseSettledResult<void>, PromiseSettledResult<void>]>;
|
|
10
10
|
distPath: string;
|
|
11
11
|
} | {
|
|
12
12
|
basePath: string;
|
package/dist/test/util.js
CHANGED
|
@@ -24,7 +24,7 @@ export const useFixture = async (fixtureName, { copyDirectory } = {}) => {
|
|
|
24
24
|
await cpy(`${fixtureDir}/**`, tmpFixtureDir.path);
|
|
25
25
|
return {
|
|
26
26
|
basePath: tmpFixtureDir.path,
|
|
27
|
-
cleanup: () => Promise.allSettled([tmpDistDir.cleanup, tmpFixtureDir.cleanup]),
|
|
27
|
+
cleanup: () => Promise.allSettled([tmpDistDir.cleanup(), tmpFixtureDir.cleanup()]),
|
|
28
28
|
distPath,
|
|
29
29
|
};
|
|
30
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/edge-bundler",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
4
4
|
"description": "Intelligently prepare Netlify Edge Functions for deployment",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/node/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@netlify/edge-functions-bootstrap": "^3.1.0",
|
|
46
|
-
"@types/node": "^
|
|
46
|
+
"@types/node": "^22.12.0",
|
|
47
47
|
"@types/semver": "^7.3.9",
|
|
48
48
|
"@vitest/coverage-v8": "^3.0.0",
|
|
49
49
|
"archiver": "^7.0.0",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"tmp-promise": "^3.0.3",
|
|
81
81
|
"urlpattern-polyfill": "8.0.2"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "7895e2cf13c2eda2a9e4a6749b6e688426fc9f1c"
|
|
84
84
|
}
|