diff --git a/package-lock.json b/package-lock.json index 844e9de9..68ee4a89 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "lint-staged": "14.0.1", "prettier": "3.0.2", "ts-jest": "29.1.1", - "typescript": "5.1.6" + "typescript": "5.2.2" }, "engines": { "node": ">=18" @@ -14260,9 +14260,9 @@ } }, "node_modules/typescript": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz", - "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", "devOptional": true, "bin": { "tsc": "bin/tsc", @@ -14916,7 +14916,7 @@ }, "devDependencies": { "@jest/globals": "29.6.4", - "typescript": "5.1.6" + "typescript": "5.2.2" }, "engines": { "node": ">=18" @@ -14941,7 +14941,7 @@ }, "devDependencies": { "@types/koa__cors": "4.0.0", - "typescript": "5.1.6" + "typescript": "5.2.2" } }, "packages/samples/profile": { @@ -14973,7 +14973,7 @@ "devDependencies": { "@jest/globals": "29.6.4", "ts-node": "10.9.1", - "typescript": "5.1.6" + "typescript": "5.2.2" } } } diff --git a/package.json b/package.json index 8d746e4f..9cfa955b 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "lint-staged": "14.0.1", "prettier": "3.0.2", "ts-jest": "29.1.1", - "typescript": "5.1.6" + "typescript": "5.2.2" }, "lint-staged": { "**/*": [ diff --git a/packages/common/src/util.ts b/packages/common/src/util.ts index 17f33d68..dd971109 100644 --- a/packages/common/src/util.ts +++ b/packages/common/src/util.ts @@ -1,6 +1,5 @@ import type { TransactionWithStatus } from '@ckb-lumos/base' import type { RPC } from '@ckb-lumos/lumos' -import type { URL } from 'node:url' import { scheduler } from 'node:timers/promises' import path from 'node:path' import fs from 'node:fs' @@ -38,7 +37,7 @@ export const cachePath = (...paths: string[]) => createPath(path.resolve(PATH.ca export const configPath = (...paths: string[]) => createPath(path.resolve(PATH.config, ...paths)) -export const downloadFile = async (url: string | URL, filePath: string) => +export const downloadFile = async (url: RequestInfo | globalThis.URL, filePath: string) => await pipeline( await fetch(url, { method: 'GET' }).then((res) => { if (res.body) { diff --git a/packages/models/package.json b/packages/models/package.json index b813c0be..72841031 100644 --- a/packages/models/package.json +++ b/packages/models/package.json @@ -48,6 +48,6 @@ }, "devDependencies": { "@jest/globals": "29.6.4", - "typescript": "5.1.6" + "typescript": "5.2.2" } } diff --git a/packages/samples/mvp-dapp/package.json b/packages/samples/mvp-dapp/package.json index 56048652..0bd24254 100644 --- a/packages/samples/mvp-dapp/package.json +++ b/packages/samples/mvp-dapp/package.json @@ -26,6 +26,6 @@ }, "devDependencies": { "@types/koa__cors": "4.0.0", - "typescript": "5.1.6" + "typescript": "5.2.2" } } diff --git a/packages/typeorm/package.json b/packages/typeorm/package.json index bab14bdc..f649ce92 100644 --- a/packages/typeorm/package.json +++ b/packages/typeorm/package.json @@ -41,6 +41,6 @@ "devDependencies": { "@jest/globals": "29.6.4", "ts-node": "10.9.1", - "typescript": "5.1.6" + "typescript": "5.2.2" } }