From c4d54060d93b762e394cc8be6756ebf1f7e0384b Mon Sep 17 00:00:00 2001 From: Heyward Fann Date: Fri, 21 Feb 2025 10:32:52 +0800 Subject: [PATCH] fix: lock adm-zip to version 0.5.12 0.5.13+ is broken, extract empty on Windows - https://github.com/cthackers/adm-zip/issues/538 - https://github.com/fannheyward/coc-rust-analyzer/issues/1281 --- package-lock.json | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index eaebff4..219a9f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.19", "license": "Apache-2.0 WITH LLVM-exception", "dependencies": { - "adm-zip": "^0.5.14", + "adm-zip": "0.5.12", "node-fetch": "^2.7.0", "readdirp": "^4.1.1", "rimraf": "^6.0.1", @@ -160,12 +160,12 @@ "license": "MIT" }, "node_modules/adm-zip": { - "version": "0.5.16", - "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.16.tgz", - "integrity": "sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ==", + "version": "0.5.12", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.12.tgz", + "integrity": "sha512-6TVU49mK6KZb4qG6xWaaM4C7sA/sgUMLy/JYMOzkcp3BvVLpW0fXDFQiIzAuxFCt/2+xD7fNIiPFAoLZPhVNLQ==", "license": "MIT", "engines": { - "node": ">=12.0" + "node": ">=6.0" } }, "node_modules/ansi-regex": { diff --git a/package.json b/package.json index aecc5e7..e6fe7e7 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "url": "https://github.com/clangd/node-clangd/issues" }, "dependencies": { - "adm-zip": "^0.5.14", + "adm-zip": "0.5.12", "node-fetch": "^2.7.0", "readdirp": "^4.1.1", "rimraf": "^6.0.1",