@netlify/functions-dev 1.0.4 → 1.1.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/main.d.ts +4 -1
- package/dist/main.js +8 -1
- package/package.json +10 -6
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -7,6 +7,7 @@ import { createRequire as createRequire2 } from "module";
|
|
|
7
7
|
import { basename as basename2, extname as extname2, isAbsolute, join, resolve } from "path";
|
|
8
8
|
import { env } from "process";
|
|
9
9
|
import { watchDebounced } from "@netlify/dev-utils";
|
|
10
|
+
import { SYNCHRONOUS_FUNCTION_TIMEOUT, BACKGROUND_FUNCTION_TIMEOUT } from "@netlify/functions";
|
|
10
11
|
import { listFunctions } from "@netlify/zip-it-and-ship-it";
|
|
11
12
|
import extractZip from "extract-zip";
|
|
12
13
|
|
|
@@ -701,7 +702,13 @@ var FunctionsRegistry = class {
|
|
|
701
702
|
});
|
|
702
703
|
this.internalFunctionsPath = internalFunctionsPath;
|
|
703
704
|
this.projectRoot = projectRoot;
|
|
704
|
-
|
|
705
|
+
const siteTimeout = config?.siteInfo?.functions_timeout ?? config?.siteInfo?.functions_config?.timeout;
|
|
706
|
+
this.timeouts = {
|
|
707
|
+
syncFunctions: timeouts?.syncFunctions ?? siteTimeout ?? SYNCHRONOUS_FUNCTION_TIMEOUT,
|
|
708
|
+
// NOTE: This isn't documented, but the generically named "functions timeout" config fields only
|
|
709
|
+
// apply to synchronous Netlify Functions.
|
|
710
|
+
backgroundFunctions: timeouts?.backgroundFunctions ?? BACKGROUND_FUNCTION_TIMEOUT
|
|
711
|
+
};
|
|
705
712
|
this.settings = settings;
|
|
706
713
|
this.watch = watch === true;
|
|
707
714
|
this.buildCache = {};
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
-
"version": "1.0
|
|
14
|
+
"version": "1.1.0",
|
|
15
15
|
"description": "Local dev emulation of Netlify Functions",
|
|
16
16
|
"files": [
|
|
17
17
|
"dist/**/*.js",
|
|
@@ -32,16 +32,20 @@
|
|
|
32
32
|
"serverless"
|
|
33
33
|
],
|
|
34
34
|
"license": "MIT",
|
|
35
|
-
"repository":
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "https://github.com/netlify/primitives.git",
|
|
38
|
+
"directory": "packages/functions/dev"
|
|
39
|
+
},
|
|
36
40
|
"bugs": {
|
|
37
41
|
"url": "https://github.com/netlify/primitives/issues"
|
|
38
42
|
},
|
|
39
43
|
"author": "Netlify Inc.",
|
|
40
44
|
"dependencies": {
|
|
41
|
-
"@netlify/blobs": "10.3.
|
|
42
|
-
"@netlify/dev-utils": "4.3.
|
|
43
|
-
"@netlify/functions": "5.0
|
|
44
|
-
"@netlify/zip-it-and-ship-it": "^14.1.
|
|
45
|
+
"@netlify/blobs": "10.3.3",
|
|
46
|
+
"@netlify/dev-utils": "4.3.1",
|
|
47
|
+
"@netlify/functions": "5.1.0",
|
|
48
|
+
"@netlify/zip-it-and-ship-it": "^14.1.13",
|
|
45
49
|
"cron-parser": "^4.9.0",
|
|
46
50
|
"decache": "^4.6.2",
|
|
47
51
|
"extract-zip": "^2.0.1",
|