New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dependency-lint

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-lint - npm Package Compare versions

Comparing version 4.3.1 to 4.3.2

2

dist/cli.js

@@ -19,3 +19,3 @@ (function() {

coroutine(function*() {
var error, file, fn, fnOptions;
var error, error1, file, fn, fnOptions;
try {

@@ -22,0 +22,0 @@ file = options['--generate-config'] ? 'generate_config' : 'run';

@@ -49,6 +49,6 @@ (function() {

ConfigurationLoader.prototype.loadUserConfig = coroutine(function*(dir) {
var userConfigPath;
var error, userConfigPath;
userConfigPath = path.join(dir, 'dependency-lint.yml');
try {
yield access(userConfigPath);
(yield access(userConfigPath));
} catch (error) {

@@ -55,0 +55,0 @@ return {};

@@ -24,3 +24,3 @@ (function() {

fileContents = "# See " + packageJson.homepage + "/blob/v" + packageJson.version + "/docs/configuration.md\n# for a detailed explanation of the options\n\n" + defaultConfig;
yield writeFile(dest, fileContents);
(yield writeFile(dest, fileContents));
return console.log('Configuration file generated at "dependency-lint.yml"');

@@ -27,0 +27,0 @@ });

@@ -32,6 +32,6 @@ (function() {

dir = arg.dir, packageJson = arg.packageJson;
yield this.installedModuleValidater.validate({
(yield this.installedModuleValidater.validate({
dir: dir,
packageJson: packageJson
});
}));
usedModules = (yield this.usedModuleFinder.find({

@@ -38,0 +38,0 @@ dir: dir,

@@ -24,3 +24,3 @@ (function() {

function RequiredModuleFinder(arg) {
this.files = arg.files, this.stripLoaders = arg.stripLoaders, this.transpilers = arg.transpilers;
this.acornParseProps = arg.acornParseProps, this.files = arg.files, this.stripLoaders = arg.stripLoaders, this.transpilers = arg.transpilers;
}

@@ -56,2 +56,3 @@

moduleNames = detective(content, {
parse: this.acornParseProps,
isRequire: this.isRequire

@@ -58,0 +59,0 @@ });

@@ -52,5 +52,5 @@ (function() {

}), fixes = ref.fixes, updatedPackageJson = ref.updatedPackageJson;
yield writeJson(packageJsonPath, updatedPackageJson, {
(yield writeJson(packageJsonPath, updatedPackageJson, {
spaces: 2
});
}));
}

@@ -57,0 +57,0 @@ new DefaultFormatter({

{
"name": "dependency-lint",
"version": "4.3.1",
"version": "4.3.2",
"description": "Lints package.json dependencies and devDependencies",

@@ -41,2 +41,3 @@ "main": "index.js",

"babel-core": "^6.17.0",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.16.0",

@@ -43,0 +44,0 @@ "chai": "^3.0.0",

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