Comparing version 2.2.0 to 2.3.0
@@ -5,2 +5,8 @@ # Change Log | ||
# [2.3.0](https://github.com/medikoo/ncjsm/compare/v2.2.0...v2.3.0) (2019-04-30) | ||
### Features | ||
- improve validation in isModuleNotFoundError ([8b2e641](https://github.com/medikoo/ncjsm/commit/8b2e641)) | ||
# [2.2.0](https://github.com/medikoo/ncjsm/compare/v2.1.0...v2.2.0) (2019-04-30) | ||
@@ -7,0 +13,0 @@ |
@@ -6,2 +6,4 @@ // Whether given error is an error thrown by require internals in case module | ||
var ensureString = require("type/string/ensure"); | ||
var pathToken = ":path", pattern; | ||
@@ -18,3 +20,5 @@ | ||
module.exports = function (error, path) { | ||
path = ensureString(path); | ||
if (!error || typeof error.message !== "string") return false; | ||
return resolveMessage(error) === pattern.replace(pathToken, path); | ||
}; |
{ | ||
"name": "ncjsm", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "CJS (Node.js) style modules resolver", | ||
@@ -28,3 +28,3 @@ "author": "Mariusz Nowak <medyk@medikoo.com> (http://www.medikoo.com/)", | ||
"eslint": "^5.16.0", | ||
"eslint-config-medikoo": "^2.1.1", | ||
"eslint-config-medikoo": "^2.2.0", | ||
"eslint-config-medikoo-es3": "^2.2.0", | ||
@@ -36,3 +36,3 @@ "eslint-config-medikoo-es5": "^2.0.0", | ||
"prettier-elastic": "^1.17.0", | ||
"tad": "^1.0.0" | ||
"tad": "^2.0.0" | ||
}, | ||
@@ -59,2 +59,14 @@ "husky": { | ||
}, | ||
"prettier": { | ||
"printWidth": 100, | ||
"tabWidth": 4, | ||
"overrides": [ | ||
{ | ||
"files": "*.md", | ||
"options": { | ||
"tabWidth": 2 | ||
} | ||
} | ||
] | ||
}, | ||
"scripts": { | ||
@@ -61,0 +73,0 @@ "lint": "eslint --ignore-path=.gitignore .", |
Sorry, the diff of this file is not supported yet
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
38435
53
702