module-exists
Advanced tools
Comparing version 0.2.1 to 0.4.0
@@ -0,0 +0,0 @@ declare module 'module-exists' { |
@@ -7,4 +7,5 @@ /*global module, require*/ | ||
try { | ||
require(name); | ||
require.resolve(name); | ||
} catch (err) { | ||
console.log('err ', err.code) | ||
if (err.code === 'MODULE_NOT_FOUND') { | ||
@@ -17,2 +18,2 @@ return false; | ||
}; | ||
}()); | ||
}()); |
@@ -6,5 +6,5 @@ { | ||
"scripts": { | ||
"test": "nodeunit test/test.js" | ||
"test": "jest" | ||
}, | ||
"version": "0.2.1", | ||
"version": "0.4.0", | ||
"homepage": "https://github.com/tobiasoberrauch/module-exists", | ||
@@ -17,2 +17,5 @@ "author": { | ||
"name": "Tushar Mathur" | ||
}, | ||
{ | ||
"name": "André Cruz" | ||
} | ||
@@ -25,3 +28,3 @@ ], | ||
"devDependencies": { | ||
"nodeunit": "~0.7.4" | ||
"jest": "^26.1.0" | ||
}, | ||
@@ -28,0 +31,0 @@ "keywords": [ |
@@ -0,0 +0,0 @@ # module exists |
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
2800
6
29