diff --git a/src/functions-templates/javascript/scheduled-function/package.json b/src/functions-templates/javascript/scheduled-function/package.json index 3ea45a59ed4..37b80ba0aa1 100644 --- a/src/functions-templates/javascript/scheduled-function/package.json +++ b/src/functions-templates/javascript/scheduled-function/package.json @@ -15,6 +15,6 @@ "author": "Netlify", "license": "MIT", "dependencies": { - "@netlify/functions": "^1.6.0" + "@netlify/functions": "^2.0.1" } } diff --git a/src/functions-templates/typescript/hello-world/package-lock.json b/src/functions-templates/typescript/hello-world/package-lock.json index 5ff0e849218..385d24add28 100644 --- a/src/functions-templates/typescript/hello-world/package-lock.json +++ b/src/functions-templates/typescript/hello-world/package-lock.json @@ -9,22 +9,43 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@netlify/functions": "^1.6.0", + "@netlify/functions": "^2.0.1", "@types/node": "^14.0.0", "typescript": "^4.0.0" } }, "node_modules/@netlify/functions": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-1.6.0.tgz", - "integrity": "sha512-6G92AlcpFrQG72XU8YH8pg94eDnq7+Q0YJhb8x4qNpdGsvuzvrfHWBmqFGp/Yshmv4wex9lpsTRZOocdrA2erQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-2.0.1.tgz", + "integrity": "sha512-YrgCmz078II0LKknXKj5NbtGBuzek1JC+ZYi4xHcLhZD+HIGlerlmkhnVydWVPoA7fdd2IeSUd9CFFL7bY+y5Q==", "dependencies": { + "@netlify/serverless-functions-api": "1.7.1", "is-promise": "^4.0.0" }, "engines": { "node": ">=14.0.0" } }, + "node_modules/@netlify/node-cookies": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@netlify/node-cookies/-/node-cookies-0.1.0.tgz", + "integrity": "sha512-OAs1xG+FfLX0LoRASpqzVntVV/RpYkgpI0VrUnw2u0Q1qiZUzcPffxRK8HF3gc4GjuhG5ahOEMJ9bswBiZPq0g==", + "engines": { + "node": "^14.16.0 || >=16.0.0" + } + }, + "node_modules/@netlify/serverless-functions-api": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-1.7.1.tgz", + "integrity": "sha512-vF9g62n+BFfBXtWtmVBJ5debyMERVDtuLlMlKDPYBp6QjEuJnaggxczLlRofZ2mtsBXs7mAlna6gIcBswFLJJQ==", + "dependencies": { + "@netlify/node-cookies": "^0.1.0", + "urlpattern-polyfill": "8.0.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + } + }, "node_modules/@types/node": { "version": "14.18.54", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.54.tgz", @@ -46,17 +67,37 @@ "engines": { "node": ">=4.2.0" } + }, + "node_modules/urlpattern-polyfill": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz", + "integrity": "sha512-Qp95D4TPJl1kC9SKigDcqgyM2VDVO4RiJc2d4qe5GrYm+zbIQCWWKAFaJNQ4BhdFeDGwBmAxqJBwWSJDb9T3BQ==" } }, "dependencies": { "@netlify/functions": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-1.6.0.tgz", - "integrity": "sha512-6G92AlcpFrQG72XU8YH8pg94eDnq7+Q0YJhb8x4qNpdGsvuzvrfHWBmqFGp/Yshmv4wex9lpsTRZOocdrA2erQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-2.0.1.tgz", + "integrity": "sha512-YrgCmz078II0LKknXKj5NbtGBuzek1JC+ZYi4xHcLhZD+HIGlerlmkhnVydWVPoA7fdd2IeSUd9CFFL7bY+y5Q==", "requires": { + "@netlify/serverless-functions-api": "1.7.1", "is-promise": "^4.0.0" } }, + "@netlify/node-cookies": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@netlify/node-cookies/-/node-cookies-0.1.0.tgz", + "integrity": "sha512-OAs1xG+FfLX0LoRASpqzVntVV/RpYkgpI0VrUnw2u0Q1qiZUzcPffxRK8HF3gc4GjuhG5ahOEMJ9bswBiZPq0g==" + }, + "@netlify/serverless-functions-api": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-1.7.1.tgz", + "integrity": "sha512-vF9g62n+BFfBXtWtmVBJ5debyMERVDtuLlMlKDPYBp6QjEuJnaggxczLlRofZ2mtsBXs7mAlna6gIcBswFLJJQ==", + "requires": { + "@netlify/node-cookies": "^0.1.0", + "urlpattern-polyfill": "8.0.2" + } + }, "@types/node": { "version": "14.18.54", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.54.tgz", @@ -71,6 +112,11 @@ "version": "4.9.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==" + }, + "urlpattern-polyfill": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz", + "integrity": "sha512-Qp95D4TPJl1kC9SKigDcqgyM2VDVO4RiJc2d4qe5GrYm+zbIQCWWKAFaJNQ4BhdFeDGwBmAxqJBwWSJDb9T3BQ==" } } } diff --git a/src/functions-templates/typescript/hello-world/package.json b/src/functions-templates/typescript/hello-world/package.json index ed610c1e34c..d5cfca20cdb 100644 --- a/src/functions-templates/typescript/hello-world/package.json +++ b/src/functions-templates/typescript/hello-world/package.json @@ -14,7 +14,7 @@ "author": "Netlify", "license": "MIT", "dependencies": { - "@netlify/functions": "^1.6.0", + "@netlify/functions": "^2.0.1", "@types/node": "^14.0.0", "typescript": "^4.0.0" } diff --git a/src/functions-templates/typescript/scheduled-function/package.json b/src/functions-templates/typescript/scheduled-function/package.json index 433fa840f27..66571b81e93 100644 --- a/src/functions-templates/typescript/scheduled-function/package.json +++ b/src/functions-templates/typescript/scheduled-function/package.json @@ -15,7 +15,7 @@ "author": "Netlify", "license": "MIT", "dependencies": { - "@netlify/functions": "^1.6.0", + "@netlify/functions": "^2.0.1", "@types/node": "^18.0.0", "typescript": "^4.5.5" }