remove dependencies
This commit is contained in:
@@ -3,17 +3,15 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@netlify/functions": "^0.7.2",
|
|
||||||
"@redwoodjs/api": "^0.34.1",
|
"@redwoodjs/api": "^0.34.1",
|
||||||
"@sentry/node": "^6.5.1",
|
"@sentry/node": "^6.5.1",
|
||||||
"chrome-aws-lambda": "^9.1.0",
|
"chrome-aws-lambda": "9.1.0",
|
||||||
"cloudinary": "^1.23.0",
|
"cloudinary": "^1.23.0",
|
||||||
"human-id": "^2.0.1",
|
"human-id": "^2.0.1",
|
||||||
"nodemailer": "^6.6.2",
|
"nodemailer": "^6.6.2",
|
||||||
"puppeteer-core": "^9.1.1"
|
"puppeteer-core": "9.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"puppeteer": "^9.1.1",
|
|
||||||
"@netlify/functions": "^0.7.2",
|
"@netlify/functions": "^0.7.2",
|
||||||
"@types/nodemailer": "^6.4.2"
|
"@types/nodemailer": "^6.4.2"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
import { builder } from '@netlify/functions'
|
import { builder } from '@netlify/functions'
|
||||||
import type { HandlerResponse } from '@netlify/functions'
|
|
||||||
import chromium from 'chrome-aws-lambda'
|
import chromium from 'chrome-aws-lambda'
|
||||||
|
|
||||||
const captureWidth = 1200
|
const captureWidth = 1200
|
||||||
const captureHeight = 630
|
const captureHeight = 630
|
||||||
const clipY = 0
|
const clipY = 0
|
||||||
|
|
||||||
async function unwrappedHandler (event, context): Promise<HandlerResponse> {
|
async function unwrappedHandler (event, context) {
|
||||||
let path = event.path
|
let path = event.path
|
||||||
.replace(/.+\/og-image-generator/, '')
|
.replace(/.+\/og-image-generator/, '')
|
||||||
.replace(/\/og-image-.+\.jpg/, '')
|
.replace(/\/og-image-.+\.jpg/, '')
|
||||||
|
|||||||
@@ -6483,7 +6483,7 @@ chownr@^2.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece"
|
resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece"
|
||||||
integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==
|
integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==
|
||||||
|
|
||||||
chrome-aws-lambda@^9.1.0:
|
chrome-aws-lambda@9.1.0:
|
||||||
version "9.1.0"
|
version "9.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/chrome-aws-lambda/-/chrome-aws-lambda-9.1.0.tgz#f3a426fa6588f2fa9452ff62d60afaa2103b2c04"
|
resolved "https://registry.yarnpkg.com/chrome-aws-lambda/-/chrome-aws-lambda-9.1.0.tgz#f3a426fa6588f2fa9452ff62d60afaa2103b2c04"
|
||||||
integrity sha512-y6MOarSzL5LmDv8sWUdDe4wHuAAEeWMlCbLwmL6Bj+pBPava37UuEPbWD5YAXyJx6oHoC0efLGqYDi56k4KMUQ==
|
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"
|
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
|
||||||
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
|
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
|
||||||
|
|
||||||
puppeteer-core@^9.1.1:
|
puppeteer-core@9.1.1:
|
||||||
version "9.1.1"
|
version "9.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/puppeteer-core/-/puppeteer-core-9.1.1.tgz#0c189c3275967d65c39270e6b146e559baca3d47"
|
resolved "https://registry.yarnpkg.com/puppeteer-core/-/puppeteer-core-9.1.1.tgz#0c189c3275967d65c39270e6b146e559baca3d47"
|
||||||
integrity sha512-zbedbitVIGhmgz0nt7eIdLsnaoVZSlNJfBivqm2w67T8LR2bU1dvnruDZ8nQO0zn++Iet7zHbAOdnuS5+H2E7A==
|
integrity sha512-zbedbitVIGhmgz0nt7eIdLsnaoVZSlNJfBivqm2w67T8LR2bU1dvnruDZ8nQO0zn++Iet7zHbAOdnuS5+H2E7A==
|
||||||
@@ -14817,24 +14817,6 @@ puppeteer-core@^9.1.1:
|
|||||||
unbzip2-stream "^1.3.3"
|
unbzip2-stream "^1.3.3"
|
||||||
ws "^7.2.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:
|
purgecss@^4.0.3:
|
||||||
version "4.0.3"
|
version "4.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/purgecss/-/purgecss-4.0.3.tgz#8147b429f9c09db719e05d64908ea8b672913742"
|
resolved "https://registry.yarnpkg.com/purgecss/-/purgecss-4.0.3.tgz#8147b429f9c09db719e05d64908ea8b672913742"
|
||||||
|
|||||||
Reference in New Issue
Block a user