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

react-i18nliner

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-i18nliner - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

5

__tests__/ComponentInterpolator.test.js

@@ -44,11 +44,12 @@ var subjector = require('../test_utils/subjector');

var subject = Subject({
string: 'Hi %{user}, create %{count} new accounts',
string: 'Hi %{user} (%{user_id}), create %{count} new accounts',
wrappers: {},
user: "Jane",
user_id: 0,
count: <input />
}, ["$1"]);
expect(removeNoise(subject.getDOMNode().innerHTML)).toEqual(
'Hi Jane, create <input> new accounts'
'Hi Jane (0), create <input> new accounts'
);
});
});

3

ComponentInterpolator.js

@@ -106,5 +106,6 @@ var React = require('react');

invariant(
child = this.props[token],
this.props.hasOwnProperty(token),
`<ComponentInterpolator> expected '${token}' placeholder value, none found`
);
child = this.props[token];
child = child.type ? cloneWithProps(child, {key: tokens.length}) : child;

@@ -111,0 +112,0 @@ children.push(child);

@@ -7,3 +7,3 @@ var fs = require("fs");

return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
}
};

@@ -10,0 +10,0 @@ var getTranslatePattern = function(config) {

{
"name": "react-i18nliner",
"version": "0.0.4",
"version": "0.0.5",
"description": "i18n made simple",

@@ -5,0 +5,0 @@ "main": "main.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