From bc6964c093f0e54a0a29d840f2d1b892470e92cc Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Wed, 8 Jan 2025 20:06:00 +0300 Subject: [PATCH] chore: update yaml to v2.7.0 --- .size-limit.json | 6 +++--- package-lock.json | 8 ++++---- package.json | 2 +- src/cli.ts | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.size-limit.json b/.size-limit.json index e32be11e27..baa3027091 100644 --- a/.size-limit.json +++ b/.size-limit.json @@ -9,7 +9,7 @@ { "name": "zx/index", "path": "build/*.{js,cjs}", - "limit": "808 kB", + "limit": "809 kB", "brotli": false, "gzip": false }, @@ -23,14 +23,14 @@ { "name": "vendor", "path": "build/vendor-*", - "limit": "763 kB", + "limit": "765 kB", "brotli": false, "gzip": false }, { "name": "all", "path": "build/*", - "limit": "846 kB", + "limit": "847 kB", "brotli": false, "gzip": false } diff --git a/package-lock.json b/package-lock.json index 9e819872fa..1a0aa444a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,7 +49,7 @@ "typescript": "^5.7.2", "vitepress": "^1.5.0", "which": "^5.0.0", - "yaml": "~2.5.1", + "yaml": "~2.7.0", "zurk": "^0.10.0" }, "engines": { @@ -6717,9 +6717,9 @@ "license": "ISC" }, "node_modules/yaml": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz", - "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz", + "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==", "dev": true, "license": "ISC", "bin": { diff --git a/package.json b/package.json index 2de575b03a..eba6759b10 100644 --- a/package.json +++ b/package.json @@ -134,7 +134,7 @@ "typescript": "^5.7.2", "vitepress": "^1.5.0", "which": "^5.0.0", - "yaml": "~2.5.1", + "yaml": "~2.7.0", "zurk": "^0.10.0" }, "publishConfig": { diff --git a/src/cli.ts b/src/cli.ts index 855c4df226..b6564ae26c 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -131,7 +131,7 @@ export async function main() { await scriptFromHttp(firstArg, argv.ext) return } - const filepath = firstArg.startsWith('file://') + const filepath = firstArg.startsWith('file:') ? url.fileURLToPath(firstArg) : path.resolve(firstArg) await importPath(filepath)