gulp-cortex-handlebars-compiler
Advanced tools
Comparing version 1.0.3 to 1.0.4
18
index.js
@@ -17,3 +17,2 @@ 'use strict'; | ||
function compiler (options){ | ||
@@ -85,4 +84,17 @@ return new Compiler(options || {}); | ||
Compiler.prototype._gather_info = function(callback) { | ||
function cb (pkg, graph, shrinkwrap) { | ||
var version = process.env.NEURON_VERSION; | ||
if (!shrinkwrap.engines && version) { | ||
shrinkwrap.engines = { | ||
'neuron': { | ||
'from': 'neuron@' + version, | ||
'version': version | ||
} | ||
}; | ||
} | ||
callback(null, pkg, graph, shrinkwrap); | ||
} | ||
if (this.pkg && this.graph && this.shrinkwrap) { | ||
return callback(null, this.pkg, this.graph, this.shrinkwrap); | ||
return cb(this.pkg, this.graph, this.shrinkwrap); | ||
} | ||
@@ -104,3 +116,3 @@ | ||
self.shrinkwrap = shrinkwrap; | ||
callback(null, self.pkg, graph, shrinkwrap); | ||
cb(self.pkg, graph, shrinkwrap); | ||
}); | ||
@@ -107,0 +119,0 @@ }); |
{ | ||
"name": "gulp-cortex-handlebars-compiler", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Gulp task builder for cortex-handlebars-compiler", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
7165
132
2