New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsxgettext

Package Overview
Dependencies
Maintainers
6
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsxgettext - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

tests/inputs/po_quotes.js

3

lib/jsxgettext.js

@@ -25,3 +25,2 @@ #!/usr/bin/env node

function checkExpr(node, keyword) {
console.log(node);
return (node.type === "CallExpression" && // must be a call expression

@@ -128,3 +127,3 @@ (

var chunks = chunkString(str);
return 'msgid ""\n"' + chunks.join('"\n"') + '"\n';
return 'msgid ""\n' + chunks.map(JSON.stringify).join('\n') + '\n';
}

@@ -131,0 +130,0 @@ return "msgid " + JSON.stringify(str) + "\n";

@@ -5,3 +5,3 @@ {

"description": "Extract gettext calls from JavaScript and EJS files",
"version": "0.1.4",
"version": "0.1.5",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -12,3 +12,4 @@ // TODO figure out why

exports.testAll['test comments'] = require('./test_comment');
exports.testAll['test expressiosn'] = require('./expressions');
exports.testAll['test po_quotes'] = require("./po_quotes");
exports.testAll['test expressions'] = require('./expressions');

@@ -15,0 +16,0 @@ if (module == require.main) {

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