Skip to content

Commit

Permalink
deps: bump glob from 8.1.0 to 9.3.1 (#96)
Browse files Browse the repository at this point in the history
* deps: bump glob from 8.1.0 to 9.3.1

Bumps [glob](https://github.com/isaacs/node-glob) from 8.1.0 to 9.3.1.
- [Release notes](https://github.com/isaacs/node-glob/releases)
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](isaacs/node-glob@v8.1.0...v9.3.1)

---
updated-dependencies:
- dependency-name: glob
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fixup: glob is promisified now

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gar <gar+gh@danger.computer>
  • Loading branch information
dependabot[bot] and wraithgar authored Mar 21, 2023
1 parent 98d3b80 commit f37aeb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"dependencies": {
"@npmcli/name-from-folder": "^2.0.0",
"glob": "^8.0.1",
"glob": "^9.3.1",
"minimatch": "^7.4.2",
"read-package-json-fast": "^3.0.0"
},
Expand Down

0 comments on commit f37aeb1

Please sign in to comment.