handlebars-load-tree
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -40,3 +40,4 @@ 'use strict'; | ||
.replace(basename, basename.replace(ext, '').substring(1)) | ||
.substring(1); | ||
.substring(1) | ||
.replace(/\\/g, '/') | ||
Handlebars.registerPartial(partialName, getTemplate()); | ||
@@ -46,2 +47,5 @@ } else { | ||
var objPath = filename.replace(dir, ''); | ||
if (path.sep === '\\'){ | ||
objPath = objPath.replace(/\\/g, '/').substring(1); | ||
} | ||
objPath = objPath | ||
@@ -52,8 +56,4 @@ .split('/') | ||
var propertyName = objPath.pop(); | ||
propertyName = propertyName.replace(ext, '').replace(/\\/g, '/'); | ||
propertyName = propertyName.replace(ext, ''); | ||
if (path.sep === '\\'){ | ||
propertyName = propertyName.replace(/\\/g, '/').substring(1); | ||
} | ||
objPath = objPath | ||
@@ -60,0 +60,0 @@ .map(function (x) { return x.replace('.', '_'); }) |
{ | ||
"name": "handlebars-load-tree", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Load handlebars templates and partials from a directory, recursively.", | ||
@@ -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
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
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
174
0
7964