@netlify/zip-it-and-ship-it 15.4.0 → 15.4.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NodeFileTraceReasons } from '@vercel/nft';
|
|
1
|
+
import type { NodeFileTraceReasons } from '@vercel/nft';
|
|
2
2
|
import type { FunctionConfig } from '../../../../config.js';
|
|
3
3
|
import { FeatureFlags } from '../../../../feature_flags.js';
|
|
4
4
|
import type { RuntimeCache } from '../../../../utils/cache.js';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { basename, dirname, extname, join, normalize, resolve } from 'path';
|
|
2
|
-
import { nodeFileTrace } from '@vercel/nft';
|
|
3
|
-
import resolveDependency from '@vercel/nft/out/resolve-dependency.js';
|
|
2
|
+
import { nodeFileTrace, resolve as resolveDependency } from '@vercel/nft';
|
|
4
3
|
import { cachedReadFile, getPathWithExtension } from '../../../../utils/fs.js';
|
|
5
4
|
import { minimatch } from '../../../../utils/matching.js';
|
|
6
5
|
import { getBasePath } from '../../utils/base_path.js';
|
|
@@ -116,7 +115,7 @@ const traceFilesAndTranspile = async function ({ basePath, cache, config, featur
|
|
|
116
115
|
},
|
|
117
116
|
resolve: async (specifier, parent, ...args) => {
|
|
118
117
|
try {
|
|
119
|
-
return await resolveDependency
|
|
118
|
+
return await resolveDependency(specifier, parent, ...args);
|
|
120
119
|
}
|
|
121
120
|
catch (error) {
|
|
122
121
|
// If we get a `MODULE_NOT_FOUND` error for what appears to be a module
|
|
@@ -124,7 +123,7 @@ const traceFilesAndTranspile = async function ({ basePath, cache, config, featur
|
|
|
124
123
|
// as the base directory.
|
|
125
124
|
if (error.code === 'MODULE_NOT_FOUND' && pluginsModulesPath && appearsToBeModuleName(specifier)) {
|
|
126
125
|
const newParent = join(pluginsModulesPath, basename(parent));
|
|
127
|
-
return await resolveDependency
|
|
126
|
+
return await resolveDependency(specifier, newParent, ...args);
|
|
128
127
|
}
|
|
129
128
|
throw error;
|
|
130
129
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/zip-it-and-ship-it",
|
|
3
|
-
"version": "15.4.
|
|
3
|
+
"version": "15.4.2",
|
|
4
4
|
"description": "Zip it and ship it",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@netlify/binary-info": "^1.0.0",
|
|
47
47
|
"@netlify/serverless-functions-api": "2.18.0",
|
|
48
48
|
"@opentelemetry/api": "~1.8.0",
|
|
49
|
-
"@vercel/nft": "
|
|
49
|
+
"@vercel/nft": "1.3.1",
|
|
50
50
|
"archiver": "^8.0.0",
|
|
51
51
|
"common-path-prefix": "^3.0.0",
|
|
52
52
|
"copy-file": "^11.0.0",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"engines": {
|
|
101
101
|
"node": ">=22.12.0"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "7eef4fb1841e2ebed2c91b7daf11cd989226ebfb"
|
|
104
104
|
}
|