Skip to content

Commit 6031675

Browse files
committed
rm builders
1 parent 32dba98 commit 6031675

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"license": "MIT",
1515
"dependencies": {
16-
"@netlify/functions": "^0.11.0",
1716
"@vercel/ncc": "^0.33.1",
1817
"cloudinary": "^1.27.1",
1918
"fs-extra": "^10.0.0",

src/templates/functions/cld_images.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
const { builder } = require('@netlify/functions');
2-
31
const { getQueryParams } = require('../../lib/util');
42
const { configureCloudinary, getCloudinaryUrl } = require('../../lib/cloudinary');
53
const { PUBLIC_ASSET_PATH } = require('../../data/cloudinary');
64

7-
async function handler(event, context) {
5+
exports.handler = async function (event, context) {
86
const { rawUrl, headers } = event;
97
const { host } = headers;
108

@@ -39,6 +37,4 @@ async function handler(event, context) {
3937
Location: cloudinaryUrl
4038
}
4139
};
42-
};
43-
44-
exports.handler = builder(handler);
40+
};

yarn.lock

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -487,13 +487,6 @@
487487
"@types/yargs" "^16.0.0"
488488
chalk "^4.0.0"
489489

490-
"@netlify/functions@^0.11.0":
491-
version "0.11.0"
492-
resolved "https://registry.yarnpkg.com/@netlify/functions/-/functions-0.11.0.tgz#224f3bba53809b364d36377ad0b2d3de594f994d"
493-
integrity sha512-+WWX081UCkLZYkfh1Ru+PH5HTujNXugeskATGhZLTyS1U3Cqh2gYLArdG1a/vU8WWopu/wjpxEOdWq8/T5Nw5Q==
494-
dependencies:
495-
is-promise "^4.0.0"
496-
497490
"@sinonjs/commons@^1.7.0":
498491
version "1.8.3"
499492
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.3.tgz#3802ddd21a50a949b6721ddd72da36e67e7f1b2d"
@@ -1399,11 +1392,6 @@ is-potential-custom-element-name@^1.0.1:
13991392
resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5"
14001393
integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==
14011394

1402-
is-promise@^4.0.0:
1403-
version "4.0.0"
1404-
resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-4.0.0.tgz#42ff9f84206c1991d26debf520dd5c01042dd2f3"
1405-
integrity sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==
1406-
14071395
is-stream@^2.0.0:
14081396
version "2.0.1"
14091397
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077"

0 commit comments

Comments
 (0)