@netlify/zip-it-and-ship-it 9.28.4 → 9.29.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/manifest.d.ts +1 -0
- package/dist/manifest.js +2 -1
- package/dist/priority.d.ts +4 -0
- package/dist/priority.js +6 -0
- package/dist/runtimes/node/index.js +3 -0
- package/dist/runtimes/runtime.d.ts +1 -0
- package/package.json +2 -2
package/dist/manifest.d.ts
CHANGED
package/dist/manifest.js
CHANGED
|
@@ -12,7 +12,7 @@ export const createManifest = async ({ functions, path }) => {
|
|
|
12
12
|
};
|
|
13
13
|
await fs.writeFile(path, JSON.stringify(payload));
|
|
14
14
|
};
|
|
15
|
-
const formatFunctionForManifest = ({ bundler, displayName, generator, invocationMode, mainFile, name, path, routes, runtime, runtimeVersion, runtimeAPIVersion, schedule, }) => {
|
|
15
|
+
const formatFunctionForManifest = ({ bundler, displayName, generator, invocationMode, mainFile, name, path, priority, routes, runtime, runtimeVersion, runtimeAPIVersion, schedule, }) => {
|
|
16
16
|
const manifestFunction = {
|
|
17
17
|
bundler,
|
|
18
18
|
displayName,
|
|
@@ -21,6 +21,7 @@ const formatFunctionForManifest = ({ bundler, displayName, generator, invocation
|
|
|
21
21
|
buildData: { runtimeAPIVersion },
|
|
22
22
|
mainFile,
|
|
23
23
|
name,
|
|
24
|
+
priority,
|
|
24
25
|
runtimeVersion,
|
|
25
26
|
path: resolve(path),
|
|
26
27
|
runtime,
|
package/dist/priority.js
ADDED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { extname, join } from 'path';
|
|
2
2
|
import { copyFile } from 'cp-file';
|
|
3
3
|
import { INVOCATION_MODE } from '../../function.js';
|
|
4
|
+
import { Priority } from '../../priority.js';
|
|
4
5
|
import getInternalValue from '../../utils/get_internal_value.js';
|
|
5
6
|
import { RUNTIME } from '../runtime.js';
|
|
6
7
|
import { getBundler, getBundlerName } from './bundlers/index.js';
|
|
@@ -94,6 +95,7 @@ const zipFunction = async function ({ archiveFormat, basePath, cache, config = {
|
|
|
94
95
|
invocationMode = INVOCATION_MODE.Background;
|
|
95
96
|
}
|
|
96
97
|
const outputModuleFormat = extname(finalMainFile) === MODULE_FILE_EXTENSION.MJS ? MODULE_FORMAT.ESM : MODULE_FORMAT.COMMONJS;
|
|
98
|
+
const priority = isInternal ? Priority.GeneratedFunction : Priority.UserFunction;
|
|
97
99
|
return {
|
|
98
100
|
bundler: bundlerName,
|
|
99
101
|
bundlerWarnings,
|
|
@@ -108,6 +110,7 @@ const zipFunction = async function ({ archiveFormat, basePath, cache, config = {
|
|
|
108
110
|
outputModuleFormat,
|
|
109
111
|
nativeNodeModules,
|
|
110
112
|
path: zipPath.path,
|
|
113
|
+
priority,
|
|
111
114
|
runtimeVersion: runtimeAPIVersion === 2 ? getNodeRuntimeForV2(config.nodeVersion) : getNodeRuntime(config.nodeVersion),
|
|
112
115
|
};
|
|
113
116
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/zip-it-and-ship-it",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.29.1",
|
|
4
4
|
"description": "Zip it and ship it",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@babel/parser": "^7.22.5",
|
|
58
58
|
"@babel/types": "7.23.6",
|
|
59
59
|
"@netlify/binary-info": "^1.0.0",
|
|
60
|
-
"@netlify/serverless-functions-api": "^1.
|
|
60
|
+
"@netlify/serverless-functions-api": "^1.14.0",
|
|
61
61
|
"@vercel/nft": "^0.23.0",
|
|
62
62
|
"archiver": "^6.0.0",
|
|
63
63
|
"common-path-prefix": "^3.0.0",
|