Skip to content

Commit

Permalink
Upgrade to node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
r-n-o committed Dec 13, 2023
1 parent 4113761 commit 6bb9ad3
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.15.1
v18.18.2
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"license": "Apache-2.0",
"engines": {
"node": ">=16.0.0",
"node": ">=18.0.0",
"npm": "^8.0.0",
"pnpm": "^8.0.0"
},
Expand All @@ -28,7 +28,7 @@
"@rollup/plugin-typescript": "^11.1.5",
"@tsconfig/node16-strictest": "^1.0.4",
"@turnkey/jest-config": "workspace:*",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"jest": "^29.3.1",
"prettier": "^2.8.4",
"rimraf": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-key-stamper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"typecheck": "tsc -p tsconfig.typecheck.json"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"browser": {
"crypto": false
Expand Down
2 changes: 1 addition & 1 deletion packages/cosmjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
"cosmjs-types": "^0.8.0"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@
"hardhat": "^2.12.7"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
}
}
8 changes: 2 additions & 6 deletions packages/http/src/universal.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
/// <reference lib="dom" />
import { fetch as xFetch } from "cross-fetch";
let fetch: typeof globalThis.fetch;

if (typeof globalThis?.fetch !== "undefined") {
fetch = globalThis.fetch;
} else {
fetch = xFetch;
}
// This is useful for mocking fetch in tests.
const fetch = xFetch;

export { fetch };
2 changes: 1 addition & 1 deletion packages/iframe-stamper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"typecheck": "tsc -p tsconfig.typecheck.json"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/webauthn-stamper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"typecheck": "tsc -p tsconfig.typecheck.json"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"dependencies": {
"buffer": "^6.0.3",
Expand Down
76 changes: 40 additions & 36 deletions pnpm-lock.yaml

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

0 comments on commit 6bb9ad3

Please sign in to comment.