anvil.cdnjs
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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
8737
196