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

wiredep

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wiredep - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

7

lib/detect-dependencies.js

@@ -142,4 +142,7 @@ 'use strict';

var componentConfigFile = findComponentConfigFile(config, component);
if (componentConfigFile === undefined) {
throw new Error(component + ' is not installed. Try running `bower install`.');
if (!componentConfigFile) {
var error = new Error(component + ' is not installed. Try running `bower install`.');
error.code = 'PKG_NOT_INSTALLED';
config.get('on-error')(error);
return;
}

@@ -146,0 +149,0 @@

{
"name": "wiredep",
"version": "2.2.1",
"version": "2.2.2",
"main": "./wiredep.js",

@@ -5,0 +5,0 @@ "bin": {

@@ -106,3 +106,5 @@ 'use strict';

if (!$.fs.existsSync(directory)) {
config.get('on-error')('Cannot find where you keep your Bower packages.');
var error = new Error('Cannot find where you keep your Bower packages.');
error.code = 'BOWER_COMPONENTS_MISSING';
config.get('on-error')(error);
}

@@ -109,0 +111,0 @@

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