Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ncjsm

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ncjsm - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

6

CHANGELOG.md

@@ -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 @@

4

is-module-not-found-error/index.js

@@ -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 .",

.prettierrc.js

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc