@netlify/zip-it-and-ship-it 9.33.2 → 9.34.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/dist/config.d.ts +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -0
- package/dist/manifest.d.ts +1 -0
- package/dist/manifest.js +2 -1
- package/dist/runtimes/node/in_source_config/index.d.ts +1 -0
- package/dist/runtimes/node/in_source_config/index.js +3 -0
- package/dist/runtimes/node/index.js +2 -1
- package/dist/runtimes/runtime.d.ts +1 -0
- package/package.json +2 -2
package/dist/config.d.ts
CHANGED
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
package/dist/manifest.d.ts
CHANGED
package/dist/manifest.js
CHANGED
|
@@ -12,11 +12,12 @@ 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, priority, trafficRules, routes, runtime, runtimeVersion, runtimeAPIVersion, schedule, }) => {
|
|
15
|
+
const formatFunctionForManifest = ({ bundler, displayName, generator, invocationMode, mainFile, name, path, priority, trafficRules, routes, runtime, runtimeVersion, runtimeAPIVersion, schedule, timeout, }) => {
|
|
16
16
|
const manifestFunction = {
|
|
17
17
|
bundler,
|
|
18
18
|
displayName,
|
|
19
19
|
generator,
|
|
20
|
+
timeout,
|
|
20
21
|
invocationMode,
|
|
21
22
|
buildData: { runtimeAPIVersion },
|
|
22
23
|
mainFile,
|
|
@@ -119,6 +119,9 @@ export const parseSource = (source, { functionName }) => {
|
|
|
119
119
|
if (typeof configExport.generator === 'string') {
|
|
120
120
|
result.generator = configExport.generator;
|
|
121
121
|
}
|
|
122
|
+
if (typeof configExport.timeout === 'number') {
|
|
123
|
+
result.timeout = configExport.timeout;
|
|
124
|
+
}
|
|
122
125
|
if (configExport.method !== undefined) {
|
|
123
126
|
result.methods = normalizeMethods(configExport.method, functionName);
|
|
124
127
|
}
|
|
@@ -94,7 +94,7 @@ const zipFunction = async function ({ archiveFormat, basePath, cache, config = {
|
|
|
94
94
|
if (name.endsWith('-background')) {
|
|
95
95
|
invocationMode = INVOCATION_MODE.Background;
|
|
96
96
|
}
|
|
97
|
-
const { trafficRules, generator: staticAnalysisGenerator, name: staticAnalysisName } = staticAnalysisResult;
|
|
97
|
+
const { trafficRules, generator: staticAnalysisGenerator, name: staticAnalysisName, timeout: staticAnalysisTimeout, } = staticAnalysisResult;
|
|
98
98
|
const outputModuleFormat = extname(finalMainFile) === MODULE_FILE_EXTENSION.MJS ? MODULE_FORMAT.ESM : MODULE_FORMAT.COMMONJS;
|
|
99
99
|
const priority = isInternal ? Priority.GeneratedFunction : Priority.UserFunction;
|
|
100
100
|
return {
|
|
@@ -104,6 +104,7 @@ const zipFunction = async function ({ archiveFormat, basePath, cache, config = {
|
|
|
104
104
|
displayName: staticAnalysisName || config?.name,
|
|
105
105
|
entryFilename: zipPath.entryFilename,
|
|
106
106
|
generator: staticAnalysisGenerator || config?.generator || getInternalValue(isInternal),
|
|
107
|
+
timeout: staticAnalysisTimeout || config?.timeout,
|
|
107
108
|
inputs,
|
|
108
109
|
includedFiles,
|
|
109
110
|
staticAnalysisResult,
|
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.34.0",
|
|
4
4
|
"description": "Zip it and ship it",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"engines": {
|
|
105
105
|
"node": "^14.18.0 || >=16.0.0"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "14419e3fd6fdeaba6d8f4460e5c13871db7f26ef"
|
|
108
108
|
}
|