From 1d4be7a5457fd0081696e29f8382645873cf13d9 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Wed, 1 Feb 2023 14:51:03 -0800 Subject: [PATCH] deps: @npmcli/map-workspaces@3.0.1 --- .../@npmcli/name-from-folder/LICENSE | 15 +++++++ .../@npmcli/name-from-folder/lib/index.js | 7 +++ .../@npmcli/name-from-folder/package.json | 43 +++++++++++++++++++ .../@npmcli/map-workspaces/package.json | 10 ++--- package-lock.json | 6 +-- package.json | 2 +- workspaces/arborist/package.json | 2 +- workspaces/config/package.json | 2 +- 8 files changed, 76 insertions(+), 11 deletions(-) create mode 100644 node_modules/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder/LICENSE create mode 100644 node_modules/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder/lib/index.js create mode 100644 node_modules/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder/package.json diff --git a/node_modules/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder/LICENSE b/node_modules/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder/LICENSE new file mode 100644 index 0000000000000..d24a9fca761c8 --- /dev/null +++ b/node_modules/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder/LICENSE @@ -0,0 +1,15 @@ +The ISC License + +Copyright npm, Inc. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND NPM DISCLAIMS ALL WARRANTIES WITH REGARD +TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL NPM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR +CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS +ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS +SOFTWARE. diff --git a/node_modules/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder/lib/index.js b/node_modules/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder/lib/index.js new file mode 100644 index 0000000000000..afb1dbb76297f --- /dev/null +++ b/node_modules/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder/lib/index.js @@ -0,0 +1,7 @@ +const { basename, dirname } = require('path') + +const getName = (parent, base) => + parent.charAt(0) === '@' ? `${parent}/${base}` : base + +module.exports = dir => dir ? getName(basename(dirname(dir)), basename(dir)) + : false diff --git a/node_modules/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder/package.json b/node_modules/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder/package.json new file mode 100644 index 0000000000000..f0aa5b16dba1a --- /dev/null +++ b/node_modules/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder/package.json @@ -0,0 +1,43 @@ +{ + "name": "@npmcli/name-from-folder", + "version": "2.0.0", + "files": [ + "bin/", + "lib/" + ], + "main": "lib/index.js", + "description": "Get the package name from a folder path", + "repository": { + "type": "git", + "url": "https://github.com/npm/name-from-folder.git" + }, + "author": "GitHub Inc.", + "license": "ISC", + "scripts": { + "test": "tap", + "snap": "tap", + "lint": "eslint \"**/*.js\"", + "postlint": "template-oss-check", + "template-oss-apply": "template-oss-apply --force", + "lintfix": "npm run lint -- --fix", + "posttest": "npm run lint" + }, + "devDependencies": { + "@npmcli/eslint-config": "^4.0.1", + "@npmcli/template-oss": "4.11.0", + "tap": "^16.3.2" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + }, + "templateOSS": { + "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", + "version": "4.11.0" + }, + "tap": { + "nyc-arg": [ + "--exclude", + "tap-snapshots/**" + ] + } +} diff --git a/node_modules/@npmcli/map-workspaces/package.json b/node_modules/@npmcli/map-workspaces/package.json index c8113cb25eb32..b967d974d31bf 100644 --- a/node_modules/@npmcli/map-workspaces/package.json +++ b/node_modules/@npmcli/map-workspaces/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/map-workspaces", - "version": "3.0.0", + "version": "3.0.1", "main": "lib/index.js", "files": [ "bin/", @@ -42,18 +42,18 @@ ] }, "devDependencies": { - "@npmcli/eslint-config": "^3.0.1", - "@npmcli/template-oss": "4.5.1", + "@npmcli/eslint-config": "^4.0.0", + "@npmcli/template-oss": "4.11.0", "tap": "^16.0.1" }, "dependencies": { - "@npmcli/name-from-folder": "^1.0.1", + "@npmcli/name-from-folder": "^2.0.0", "glob": "^8.0.1", "minimatch": "^5.0.1", "read-package-json-fast": "^3.0.0" }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "version": "4.5.1" + "version": "4.11.0" } } diff --git a/package-lock.json b/package-lock.json index 0054bd46c99fc..159c9effb5d34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -87,7 +87,7 @@ "@isaacs/string-locale-compare": "^1.1.0", "@npmcli/arborist": "^6.2.0", "@npmcli/config": "^6.1.1", - "@npmcli/map-workspaces": "^3.0.0", + "@npmcli/map-workspaces": "^3.0.1", "@npmcli/package-json": "^3.0.0", "@npmcli/run-script": "^6.0.0", "abbrev": "^2.0.0", @@ -14385,7 +14385,7 @@ "@isaacs/string-locale-compare": "^1.1.0", "@npmcli/fs": "^3.1.0", "@npmcli/installed-package-contents": "^2.0.0", - "@npmcli/map-workspaces": "^3.0.0", + "@npmcli/map-workspaces": "^3.0.1", "@npmcli/metavuln-calculator": "^5.0.0", "@npmcli/name-from-folder": "^1.0.1", "@npmcli/node-gyp": "^3.0.0", @@ -14439,7 +14439,7 @@ "version": "6.1.1", "license": "ISC", "dependencies": { - "@npmcli/map-workspaces": "^3.0.0", + "@npmcli/map-workspaces": "^3.0.1", "ini": "^3.0.0", "nopt": "^7.0.0", "proc-log": "^3.0.0", diff --git a/package.json b/package.json index bc9a4c4daafca..7f296b0176f8d 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@isaacs/string-locale-compare": "^1.1.0", "@npmcli/arborist": "^6.2.0", "@npmcli/config": "^6.1.1", - "@npmcli/map-workspaces": "^3.0.0", + "@npmcli/map-workspaces": "^3.0.1", "@npmcli/package-json": "^3.0.0", "@npmcli/run-script": "^6.0.0", "abbrev": "^2.0.0", diff --git a/workspaces/arborist/package.json b/workspaces/arborist/package.json index fe58adaf578d6..78425f2af5231 100644 --- a/workspaces/arborist/package.json +++ b/workspaces/arborist/package.json @@ -6,7 +6,7 @@ "@isaacs/string-locale-compare": "^1.1.0", "@npmcli/fs": "^3.1.0", "@npmcli/installed-package-contents": "^2.0.0", - "@npmcli/map-workspaces": "^3.0.0", + "@npmcli/map-workspaces": "^3.0.1", "@npmcli/metavuln-calculator": "^5.0.0", "@npmcli/name-from-folder": "^1.0.1", "@npmcli/node-gyp": "^3.0.0", diff --git a/workspaces/config/package.json b/workspaces/config/package.json index 09e28f556da7b..dec63b58c9888 100644 --- a/workspaces/config/package.json +++ b/workspaces/config/package.json @@ -37,7 +37,7 @@ "tap": "^16.3.2" }, "dependencies": { - "@npmcli/map-workspaces": "^3.0.0", + "@npmcli/map-workspaces": "^3.0.1", "ini": "^3.0.0", "nopt": "^7.0.0", "proc-log": "^3.0.0",