Comparing version 4.0.4 to 4.1.0
@@ -147,3 +147,3 @@ "use strict"; | ||
var self = this; | ||
var whitelist = { | ||
var allowlist = { | ||
autoRespond: true, | ||
@@ -161,3 +161,3 @@ autoRespondAfter: true, | ||
Object.keys(config).forEach(function(setting) { | ||
if (setting in whitelist) { | ||
if (setting in allowlist) { | ||
self[setting] = config[setting]; | ||
@@ -164,0 +164,0 @@ } |
@@ -807,2 +807,4 @@ "use strict"; | ||
this.setResponseBody(body || ""); | ||
this.responseURL = this.url; | ||
}, | ||
@@ -809,0 +811,0 @@ |
{ | ||
"name": "nise", | ||
"version": "4.0.4", | ||
"version": "4.1.0", | ||
"description": "Fake XHR and server", | ||
@@ -22,2 +22,4 @@ "keywords": [ | ||
"lint": "eslint .", | ||
"prettier:check": "prettier --check '**/*.{js,css,md}'", | ||
"prettier:write": "prettier --write '**/*.{js,css,md}'", | ||
"prepublish": "npm run bundle", | ||
@@ -58,2 +60,3 @@ "prepublishOnly": "mkdocs gh-deploy -r upstream || mkdocs gh-deploy -r origin", | ||
"jsdom-global": "3.0.2", | ||
"lint-staged": "^10.5.3", | ||
"mocha": "^7.0.1", | ||
@@ -75,8 +78,11 @@ "mochify": "^6.6.0", | ||
}, | ||
"lint-staged": { | ||
"*.{js,css,md}": "prettier --check", | ||
"*.js": "eslint" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm run lint -- --fix && npm run test", | ||
"pre-push": "npm run lint && npm run test" | ||
"pre-commit": "lint-staged" | ||
} | ||
} | ||
} |
@@ -47,3 +47,2 @@ # nise (偽) | ||
## Sponsors | ||
@@ -50,0 +49,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
845287
10495
20
85