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

i18njs

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18njs - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

2

bower.json
{
"name": "i18njs",
"main": "i18njs.js",
"version": "2.0.5",
"version": "2.0.6",
"homepage": "https://github.com/yoannmoinet/i18njs",

@@ -6,0 +6,0 @@ "authors": [

@@ -1,3 +0,3 @@

<a name="2.0.5"></a>
## 2.0.5 (2015-08-08)
<a name="2.0.6"></a>
## 2.0.6 (2015-08-09)

@@ -7,2 +7,14 @@

<a name="2.0.6"></a>
## 2.0.6 (2015-08-09)
### Bug Fixes
* indent with spaces like everywhere else ([ce66e3c](https://github.com/yoannmoinet/i18njs/commit/ce66e3c))
* use concat-cli without windows-style new lines ([b9b8c31](https://github.com/yoannmoinet/i18njs/commit/b9b8c31))
* use unix new-lines ([bb985c2](https://github.com/yoannmoinet/i18njs/commit/bb985c2))
<a name="2.0.5"></a>

@@ -9,0 +21,0 @@ ## 2.0.5 (2015-08-08)

{
"name": "i18njs",
"version": "2.0.5",
"version": "2.0.6",
"description": "A simple i18n for Javascript with a templating feature.",

@@ -41,3 +41,3 @@ "main": "i18njs.js",

"devDependencies": {
"concat-cli": "^1.0.1",
"concat-cli": "yoannmoinet/concat-cli",
"conventional-changelog": "0.2.1",

@@ -44,0 +44,0 @@ "eslint": "^0.24.1",

@@ -44,13 +44,13 @@ # i18njs

var en_locales = {
'hello_world': {
'hello': 'Hello',
'world': 'World'
}
'hello_world': {
'hello': 'Hello',
'world': 'World'
}
};
var fr_locales = {
'hello_world': {
'hello': 'Bonjour',
'world': 'Monde'
}
'hello_world': {
'hello': 'Bonjour',
'world': 'Monde'
}
};

@@ -138,8 +138,8 @@

var en_locales = {
'st': '{{=interpolate}} {{for(var i = 0, max = 1; i < max; i += 1) {}}to{{}}} {{-escape}}'
'st': '{{=interpolate}} {{for(var i = 0, max = 1; i < max; i += 1) {}}to{{}}} {{-escape}}'
};
var data = {
'interpolate': 'Hello',
'escape': '\'<the>\' `&` "World"'
'interpolate': 'Hello',
'escape': '\'<the>\' `&` "World"'
};

@@ -161,3 +161,3 @@

var st = i18n.get('st', data, {
evaluate: /<%([\s\S]+?)%>/g;
evaluate: /<%([\s\S]+?)%>/g;
interpolate: /<%=([\s\S]+?)%>/g;

@@ -178,8 +178,8 @@ escape: /<%-([\s\S]+?)%>/g;

var defaults = {
fr: {
key: 'default fr'
},
en: {
key: 'default en'
}
fr: {
key: 'default fr'
},
en: {
key: 'default en'
}
};

@@ -196,3 +196,3 @@

var defaults = {
key: 'My Brand'
key: 'My Brand'
};

@@ -199,0 +199,0 @@

Sorry, the diff of this file is not supported yet

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