From c604dee82f27101e09f8a7bc4ab6a1a2f1f05cb2 Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Thu, 5 Aug 2021 17:38:06 +1000 Subject: [PATCH] remove dependencies --- app/api/package.json | 6 ++---- app/api/src/functions/og-image-generator.ts | 3 +-- app/yarn.lock | 22 ++------------------- 3 files changed, 5 insertions(+), 26 deletions(-) diff --git a/app/api/package.json b/app/api/package.json index 0314a75..05dce73 100644 --- a/app/api/package.json +++ b/app/api/package.json @@ -3,17 +3,15 @@ "version": "0.0.0", "private": true, "dependencies": { - "@netlify/functions": "^0.7.2", "@redwoodjs/api": "^0.34.1", "@sentry/node": "^6.5.1", - "chrome-aws-lambda": "^9.1.0", + "chrome-aws-lambda": "9.1.0", "cloudinary": "^1.23.0", "human-id": "^2.0.1", "nodemailer": "^6.6.2", - "puppeteer-core": "^9.1.1" + "puppeteer-core": "9.1.1" }, "devDependencies": { - "puppeteer": "^9.1.1", "@netlify/functions": "^0.7.2", "@types/nodemailer": "^6.4.2" } diff --git a/app/api/src/functions/og-image-generator.ts b/app/api/src/functions/og-image-generator.ts index 2af83ff..d38e8b6 100644 --- a/app/api/src/functions/og-image-generator.ts +++ b/app/api/src/functions/og-image-generator.ts @@ -1,12 +1,11 @@ import { builder } from '@netlify/functions' -import type { HandlerResponse } from '@netlify/functions' import chromium from 'chrome-aws-lambda' const captureWidth = 1200 const captureHeight = 630 const clipY = 0 -async function unwrappedHandler (event, context): Promise { +async function unwrappedHandler (event, context) { let path = event.path .replace(/.+\/og-image-generator/, '') .replace(/\/og-image-.+\.jpg/, '') diff --git a/app/yarn.lock b/app/yarn.lock index 6497d3d..375f414 100644 --- a/app/yarn.lock +++ b/app/yarn.lock @@ -6483,7 +6483,7 @@ chownr@^2.0.0: resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece" integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ== -chrome-aws-lambda@^9.1.0: +chrome-aws-lambda@9.1.0: version "9.1.0" resolved "https://registry.yarnpkg.com/chrome-aws-lambda/-/chrome-aws-lambda-9.1.0.tgz#f3a426fa6588f2fa9452ff62d60afaa2103b2c04" integrity sha512-y6MOarSzL5LmDv8sWUdDe4wHuAAEeWMlCbLwmL6Bj+pBPava37UuEPbWD5YAXyJx6oHoC0efLGqYDi56k4KMUQ== @@ -14799,7 +14799,7 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== -puppeteer-core@^9.1.1: +puppeteer-core@9.1.1: version "9.1.1" resolved "https://registry.yarnpkg.com/puppeteer-core/-/puppeteer-core-9.1.1.tgz#0c189c3275967d65c39270e6b146e559baca3d47" integrity sha512-zbedbitVIGhmgz0nt7eIdLsnaoVZSlNJfBivqm2w67T8LR2bU1dvnruDZ8nQO0zn++Iet7zHbAOdnuS5+H2E7A== @@ -14817,24 +14817,6 @@ puppeteer-core@^9.1.1: unbzip2-stream "^1.3.3" ws "^7.2.3" -puppeteer@^9.1.1: - version "9.1.1" - resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-9.1.1.tgz#f74b7facf86887efd6c6b9fabb7baae6fdce012c" - integrity sha512-W+nOulP2tYd/ZG99WuZC/I5ljjQQ7EUw/jQGcIb9eu8mDlZxNY2SgcJXTLG9h5gRvqA3uJOe4hZXYsd3EqioMw== - dependencies: - debug "^4.1.0" - devtools-protocol "0.0.869402" - extract-zip "^2.0.0" - https-proxy-agent "^5.0.0" - node-fetch "^2.6.1" - pkg-dir "^4.2.0" - progress "^2.0.1" - proxy-from-env "^1.1.0" - rimraf "^3.0.2" - tar-fs "^2.0.0" - unbzip2-stream "^1.3.3" - ws "^7.2.3" - purgecss@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/purgecss/-/purgecss-4.0.3.tgz#8147b429f9c09db719e05d64908ea8b672913742"