cortex-handlebars-compiler
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -60,3 +60,2 @@ 'use strict'; | ||
this.relative_cwd = node_path.join('..', '..', to_cwd); | ||
this.helpers = {}; | ||
@@ -280,2 +279,5 @@ this.register('facade', this._facade_handler, this); | ||
Compiler.prototype._to_url_path = function(path){ | ||
return path.replace(/\\/g,'\/') | ||
} | ||
@@ -287,3 +289,3 @@ Compiler.prototype._neuron_config = function() { | ||
'graph:' + JSON.stringify(this.graph) + ',', | ||
'path:"' + this.relative_cwd + '"' + ',', | ||
'path:"' + this._to_url_path(this.relative_cwd) + '"' + ',', | ||
'});', | ||
@@ -296,3 +298,4 @@ '</script>' | ||
Compiler.prototype._normalize = function(name, version) { | ||
return node_path.join(this.relative_cwd, name, version, name + this.ext.js); | ||
var path = node_path.join(this.relative_cwd, name, version, name + this.ext.js) | ||
return this._to_url_path(path); | ||
}; |
{ | ||
"name": "cortex-handlebars-compiler", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Handlebar helpers for cortex template.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16852
369
1