Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparticuz committed Apr 3, 2024
1 parent 4ce60bd commit e4de013
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 27 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ pretest:
test:
sam local invoke --template _/amazon/template.yml --event _/amazon/events/example.com.json node20

test16:
sam local invoke --template _/amazon/template.yml --event _/amazon/events/example.com.json node16

test18:
sam local invoke --template _/amazon/template.yml --event _/amazon/events/example.com.json node18

%.zip:
npm install --fund=false --package-lock=false
npm run build
Expand Down
4 changes: 2 additions & 2 deletions _/amazon/handlers/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { ok } = require("assert");
const { createHash } = require("crypto");
const { ok } = require("node:assert");
const { createHash } = require("node:crypto");
const puppeteer = require("puppeteer-core");
const chromium = require("@sparticuz/chromium");

Expand Down
39 changes: 23 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
"tar-fs": "^3.0.5"
},
"devDependencies": {
"@tsconfig/node16": "^16.1.1",
"@tsconfig/strictest": "^2.0.3",
"@tsconfig/node20": "^20.1.4",
"@tsconfig/strictest": "^2.0.5",
"@types/follow-redirects": "^1.14.4",
"@types/node": "^20.11.30",
"@types/node": "^20.12.3",
"@types/tar-fs": "^2.0.4",
"clean-modules": "^3.0.5",
"typescript": "^5.4.2"
"typescript": "^5.4.3"
},
"engines": {
"node": ">= 16"
Expand Down
2 changes: 1 addition & 1 deletion source/lambdafs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ class LambdaFS {
}
}

export = LambdaFS;
export default LambdaFS;
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": ["@tsconfig/node16/tsconfig", "@tsconfig/strictest"],
"extends": ["@tsconfig/node20/tsconfig", "@tsconfig/strictest"],
"compilerOptions": {
"declaration": true,
"lib": ["dom", "ES2021"],
"module": "Node16",
"moduleResolution": "Node16",
"lib": ["dom", "ES2023"],
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "build"
},
"include": ["source"]
Expand Down

0 comments on commit e4de013

Please sign in to comment.