Socket
Socket
Sign inDemoInstall

gettext-handlebars

Package Overview
Dependencies
6
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.1.0

11

index.js

@@ -17,4 +17,6 @@ 'use strict';

if ('msgid' in positions) {
return;
}
} else if (Array.isArray(positions) && positions.indexOf('msgid') >= 0) {
if (Array.isArray(positions) && positions.indexOf('msgid') >= 0) {
// maintain backwards compatibility with `_: ['msgid']` format

@@ -167,2 +169,9 @@ keywordSpec[keyword] = positions.reduce((result, key, idx) => {

break;
// partial blocks and inline partials have body like other block statements
// PartialBlockStatement {{#> myPartial}}My Content{{/mypartial}}
// https://handlebarsjs.com/guide/partials.html#partial-blocks
// DecoratorBlock {{#*inline "myPartial"}}My Content{{/inline}}
// https://handlebarsjs.com/guide/partials.html#inline-partials
case 'PartialBlockStatement':
case 'DecoratorBlock':
case 'BlockStatement':

@@ -169,0 +178,0 @@ if (statement.program) {

12

package.json
{
"name": "gettext-handlebars",
"version": "1.0.2",
"version": "1.1.0",
"description": "Extract translatable strings from Handlebars templates",

@@ -37,9 +37,9 @@ "main": "index.js",

"devDependencies": {
"eslint": "^6.6.0",
"eslint-config-standard": "^14.1.0",
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"mocha": "^7.1.0"
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-standard": "^5.0.0",
"mocha": "^9.1.1"
},

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

@@ -1,2 +0,2 @@

# gettext-handlebars [![build status](https://secure.travis-ci.org/smhg/gettext-handlebars.png)](http://travis-ci.org/smhg/gettext-handlebars)
# gettext-handlebars ![CI](https://github.com/smhg/gettext-handlebars/actions/workflows/node.js.yml/badge.svg)

@@ -3,0 +3,0 @@ Extract translatable strings from [Handlebars](http://handlebarsjs.com/) template strings.

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