Skip to content

Commit

Permalink
chore(deps): bump glob from 7.1.6 to 10.4.5 (stylus#2899)
Browse files Browse the repository at this point in the history
* chore(deps): bump glob from 7.1.6 to 10.4.5

Node 16+ is required

* fix: valid package.json

---------

Co-authored-by: Lei Chen <chenleicoder@foxmail.com>
  • Loading branch information
bastienmoulia and iChenLei authored Oct 20, 2024
1 parent 391765f commit 9ad9ead
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [14, 16, 18, 22]
node: [16, 18, 22]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,17 @@ exports.find = function(path, paths, ignore) {

// Absolute
if (exports.absolute(path)) {
if ((found = glob.sync(path)).length) {
return found;
if ((found = glob.sync(path, {windowsPathsNoEscape: true, posix: true})).length) {
return found.sort();
}
}

// Relative
while (i--) {
lookup = join(paths[i], path);
if (ignore == lookup) continue;
if ((found = glob.sync(lookup)).length) {
return found;
if ((found = glob.sync(lookup, {windowsPathsNoEscape: true, posix: true})).length) {
return found.sort();
}
}
};
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"main": "./index.js",
"browserify": "./lib/browserify.js",
"engines": {
"node": "*"
"node": ">=16"
},
"bin": {
"stylus": "./bin/stylus"
Expand All @@ -30,7 +30,7 @@
"dependencies": {
"@adobe/css-tools": "~4.3.3",
"debug": "^4.3.2",
"glob": "^7.1.6",
"glob": "^10.4.5",
"sax": "~1.4.1",
"source-map": "^0.7.3"
},
Expand Down

0 comments on commit 9ad9ead

Please sign in to comment.