chore(deps-dev): bump nyc from 14.1.1 to 15.1.0

This commit is contained in:
peteriman 2022-01-16 00:43:06 +08:00
parent eaf53f4c62
commit a96195a556
No known key found for this signature in database
GPG Key ID: 90F6ABECF080D7BF
3 changed files with 814 additions and 316 deletions

1124
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -57,7 +57,7 @@
"eslint-plugin-prettier": "^4.0.0",
"fs-extra": "^10.0.0",
"husky": "^7.0.4",
"nyc": "^14.1.1",
"nyc": "^15.1.0",
"prettier": "^2.5.1",
"proxyquire": "^2.1.3",
"tap": "^14.10.7",

View File

@ -6,8 +6,8 @@ sandbox.configure({
if (this.filename.indexOf("node_modules") > -1) {
return source;
}
const nyc = new (require("nyc"))();
return nyc.instrumenter().instrumentSync(source, this.filename);
const nyc = new (require("nyc"))({});
return nyc.instrumenter().instrumentSync(source, this.filename, { registerMap: () => {} });
}
}
});