Skip to content

Commit

Permalink
deps: @npmcli/map-workspaces@3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Mar 23, 2023
1 parent 9a7b8e8 commit 839b670
Show file tree
Hide file tree
Showing 122 changed files with 13,628 additions and 15 deletions.
4 changes: 4 additions & 0 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,10 @@ graph LR;
glob-->inflight;
glob-->inherits;
glob-->minimatch;
glob-->minipass;
glob-->once;
glob-->path-is-absolute;
glob-->path-scurry;
has-->function-bind;
hosted-git-info-->lru-cache;
http-proxy-agent-->agent-base;
Expand Down Expand Up @@ -723,6 +725,8 @@ graph LR;
parse-conflict-json-->json-parse-even-better-errors;
parse-conflict-json-->just-diff-apply;
parse-conflict-json-->just-diff;
path-scurry-->lru-cache;
path-scurry-->minipass;
postcss-selector-parser-->cssesc;
postcss-selector-parser-->util-deprecate;
promise-retry-->err-code;
Expand Down
5 changes: 5 additions & 0 deletions node_modules/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
!/@npmcli/git
!/@npmcli/installed-package-contents
!/@npmcli/map-workspaces
!/@npmcli/map-workspaces/node_modules/
/@npmcli/map-workspaces/node_modules/*
!/@npmcli/map-workspaces/node_modules/glob
!/@npmcli/map-workspaces/node_modules/minimatch
!/@npmcli/metavuln-calculator
!/@npmcli/move-file
!/@npmcli/name-from-folder
Expand Down Expand Up @@ -218,6 +222,7 @@
!/pacote
!/parse-conflict-json
!/path-is-absolute
!/path-scurry
!/postcss-selector-parser
!/proc-log
!/process
Expand Down
6 changes: 3 additions & 3 deletions node_modules/@npmcli/map-workspaces/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
const { promisify } = require('util')
const path = require('path')

const getName = require('@npmcli/name-from-folder')
const minimatch = require('minimatch')
const rpj = require('read-package-json-fast')
const glob = require('glob')
const pGlob = promisify(glob)

function appendNegatedPatterns (patterns) {
const results = []
Expand Down Expand Up @@ -98,7 +96,9 @@ async function mapWorkspaces (opts = {}) {
const getPackagePathname = pkgPathmame(opts)

for (const item of patterns) {
const matches = await pGlob(getGlobPattern(item.pattern), getGlobOpts())
let matches = await glob(getGlobPattern(item.pattern), getGlobOpts())
// preserves glob@8 behavior
matches = matches.sort((a, b) => a.localeCompare(b, 'en'))

for (const match of matches) {
let pkg
Expand Down
15 changes: 15 additions & 0 deletions node_modules/@npmcli/map-workspaces/node_modules/glob/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
The ISC License

Copyright (c) 2009-2023 Isaac Z. Schlueter and Contributors

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 THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR 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.
Loading

0 comments on commit 839b670

Please sign in to comment.