Skip to content

Commit

Permalink
fix(deps): update dependency glob to v9 (#269)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency glob to v9

* fix: update glob usage

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: wolfy1339 <webmaster@wolfy1339.com>
  • Loading branch information
renovate[bot] and wolfy1339 committed Mar 7, 2023
1 parent df1f787 commit 99f2212
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 14 deletions.
4 changes: 2 additions & 2 deletions lib/glob-to-fixtures.js
@@ -1,10 +1,10 @@
import { dirname, basename, resolve } from "path";

import glob from "glob";
import { globSync as glob } from "glob";
import { readFileSync } from "fs";

export default function globToFixtures(path) {
return glob.sync(path).reduce((map, path) => {
return glob(path).reduce((map, path) => {
path = resolve(process.cwd(), path);
const fixture = JSON.parse(readFileSync(path).toString());
if (/\/normalized-fixture.json$/.test(path)) {
Expand Down
61 changes: 50 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -38,7 +38,7 @@
"console-log-level": "^1.4.0",
"cors": "^2.8.4",
"express": "^4.16.3",
"glob": "^8.0.0",
"glob": "^9.0.0",
"http-proxy-middleware": "^2.0.0",
"lodash": "^4.17.10",
"yargs": "^17.0.0"
Expand Down

0 comments on commit 99f2212

Please sign in to comment.