Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

handlebars-load-tree

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handlebars-load-tree - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

12

lib/handlebars_load_tree.js

@@ -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",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc