Socket
Socket
Sign inDemoInstall

anvil.cdnjs

Package Overview
Dependencies
47
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

10

lib/plugin.js

@@ -59,7 +59,9 @@ var request = require( "request" );

if( !pkg ) {
anvil.log.warning( "anvil.cdnjs: No library with named: " + this.packageName + " exists on cdnjs." );
if( typeof pkg === "undefined" ) {
anvil.log.error( "anvil.cdnjs: No library with named: " + this.packageName + " exists on cdnjs." );
anvil.raise( "all.stop", 0 );
done();
return;
}
url = this.baseUrl + pkg.name + "/" + pkg.version + "/" + pkg.filename;

@@ -84,2 +86,3 @@ this.pkg = pkg;

});
anvil.raise( "all.stop", 0 );
done();

@@ -110,2 +113,3 @@ }

done();
anvil.raise( "all.stop", 0 );
}.bind( this ));

@@ -112,0 +116,0 @@

{
"name": "anvil.cdnjs",
"version": "0.0.1",
"version": "0.0.2",
"description": "Install packages from cdnjs.",

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

@@ -59,7 +59,9 @@ var request = require( "request" );

if( !pkg ) {
anvil.log.warning( "anvil.cdnjs: No library with named: " + this.packageName + " exists on cdnjs." );
if( typeof pkg === "undefined" ) {
anvil.log.error( "anvil.cdnjs: No library with named: " + this.packageName + " exists on cdnjs." );
anvil.raise( "all.stop", 0 );
done();
return;
}
url = this.baseUrl + pkg.name + "/" + pkg.version + "/" + pkg.filename;

@@ -84,2 +86,3 @@ this.pkg = pkg;

});
anvil.raise( "all.stop", 0 );
done();

@@ -110,2 +113,3 @@ }

done();
anvil.raise( "all.stop", 0 );
}.bind( this ));

@@ -112,0 +116,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc