Socket
Socket
Sign inDemoInstall

gettext-handlebars

Package Overview
Dependencies
22
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.1 to 0.5.0

21

index.js

@@ -155,10 +155,2 @@ 'use strict';

// step into possible subexpressions
statement.params.reduce(isMsg, msgs);
if (statement.hash) {
for (var i = 0; i < statement.hash.pairs.length; i++) {
isMsg(msgs, statement.hash.pairs[i].value);
}
}
break;

@@ -177,5 +169,18 @@ case 'BlockStatement':

// subexpressions as params
if (statement.params ) {
statement.params.reduce(isMsg, msgs);
}
// subexpressions as hash
if (statement.hash) {
statement.hash.pairs.reduce(function (msgs, pair) {
return isMsg(msgs, pair.value);
}, msgs);
}
return msgs;
};
return tree.body.reduce(isMsg, {});

@@ -182,0 +187,0 @@ };

{
"name": "gettext-handlebars",
"version": "0.4.1",
"version": "0.5.0",
"description": "Extract translatable strings from Handlebars templates",

@@ -34,4 +34,4 @@ "main": "index.js",

"devDependencies": {
"eslint": "1.10.3",
"mocha": "2.3.4"
"eslint": "2.7.0",
"mocha": "2.4.5"
},

@@ -38,0 +38,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc