This is an automated email from the ASF dual-hosted git repository. erisu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cordova-fetch.git
The following commit(s) were added to refs/heads/master by this push: new 89e152d test: drop file-url (#126) 89e152d is described below commit 89e152de4d9fdecfbfe8cc2d451a2815e6a85c0b Author: TAICHI <kum...@outlook.com> AuthorDate: Tue Aug 12 20:03:58 2025 +0900 test: drop file-url (#126) --- package-lock.json | 11 ----------- package.json | 1 - spec/fetch.spec.js | 5 ++--- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 96fa157..3458102 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,6 @@ }, "devDependencies": { "@cordova/eslint-config": "^5.1.0", - "file-url": "^3.0.0", "jasmine": "^5.9.0", "nyc": "^17.1.0" }, @@ -2965,16 +2964,6 @@ "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/file-url": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/file-url/-/file-url-3.0.0.tgz", - "integrity": "sha512-g872QGsHexznxkIAdK8UiZRe7SkE6kvylShU4Nsj8NvfvZag7S0QuQ4IgvPDkk75HxgjIVDwycFTDAgIiO4nDA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", diff --git a/package.json b/package.json index 51e2009..cb76219 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ }, "devDependencies": { "@cordova/eslint-config": "^5.1.0", - "file-url": "^3.0.0", "jasmine": "^5.9.0", "nyc": "^17.1.0" }, diff --git a/spec/fetch.spec.js b/spec/fetch.spec.js index 65932b7..35f377d 100644 --- a/spec/fetch.spec.js +++ b/spec/fetch.spec.js @@ -20,7 +20,6 @@ const uninstall = fetch.uninstall; const path = require('node:path'); const fs = require('node:fs'); -const fileUrl = require('file-url'); const helpers = require('./helpers.js'); let tmpDir, opts; @@ -142,7 +141,7 @@ describe('fetching already installed packages', () => { }, 40000); it('should return package path if git repo name differs from plugin id', () => { - const TARGET = `git+${fileUrl(path.resolve(__dirname, 'support/repo-name-neq-plugin-id.git'))}`; + const TARGET = `git+file://${path.resolve(__dirname, 'support/repo-name-neq-plugin-id.git')}`; return Promise.resolve() .then(_ => fetchAndMatch(TARGET, { name: 'test-plugin' })) .then(_ => fetchAndMatch(TARGET, { name: 'test-plugin' })); @@ -191,7 +190,7 @@ describe('fetching with node_modules in ancestor dirs', () => { // Copy test fixtures to avoid linking out of temp directory fs.cpSync(path.join(__dirname, 'support'), 'support', { recursive: true }); - fetchTarget = fileUrl(path.resolve('support/dummy-local-plugin')); + fetchTarget = `file://${path.resolve('support/dummy-local-plugin')}`; }); it('should still install to given destination', () => { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org