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

@behance/hogan-compiler

Package Overview
Dependencies
Maintainers
14
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@behance/hogan-compiler - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

test/fixtures/partial_inside_sub_same_name/child.mustache

2

package.json
{
"name": "@behance/hogan-compiler",
"version": "3.0.4",
"version": "3.0.5",
"description": "Behance Hogan Compiler",

@@ -5,0 +5,0 @@ "main": "src",

@@ -57,3 +57,3 @@ const Hogan = require('@behance/hogan.js');

const partial = template.partials[id];
if (compiledTemplates[partial.name] || partials[partial.name]) { return; }
if (compiledTemplates[partial.name]) { return; }
partials[partial.name] = partial;

@@ -60,0 +60,0 @@ this._recursivelyGetPartialNames(partial, partials, partials);

@@ -203,2 +203,9 @@ const Hogan = require('@behance/hogan.js');

});
it('should recurse inside partials with the same name when getting partial names', function() {
return this.compiler.compile('partial_inside_sub_same_name/parent')
.then((template) => {
expect(template.render()).toEqual('partial_content\n');
});
});
});
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