Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18next-parser

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-parser - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

test/manual/en/translation_old.json

6

CHANGELOG.md
# Changelog
# 3.4.0 - latest
# 3.5.0 - latest
- Stop trying to parse directories #252
# 3.4.0
- Support multiline output in YAML #251

@@ -6,0 +10,0 @@ - Fix bug with unicode escape sequences #227

@@ -85,2 +85,7 @@ 'use strict';Object.defineProperty(exports, "__esModule", { value: true });var _extends = Object.assign || function (target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i];for (var key in source) {if (Object.prototype.hasOwnProperty.call(source, key)) {target[key] = source[key];}}}return target;};var _createClass = function () {function defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}return function (Constructor, protoProps, staticProps) {if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;};}();var _helpers = require('./helpers');

content = file.contents.toString('utf8');
} else if (_fs2.default.lstatSync(file.path).isDirectory()) {
var warning = file.path + ' is a directory: skipping';
this.warn(warning);
done();
return;
} else {

@@ -87,0 +92,0 @@ content = _fs2.default.readFileSync(file.path, encoding);

@@ -48,2 +48,3 @@ # Contribute

i18next manual/**/*.html -c i18next-parser.config.js --fail-on-warnings
i18next manual/**/*.{js,jsx} --fail-on-warnings
```

@@ -50,0 +51,0 @@

2

package.json

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

"name": "i18next-parser",
"version": "3.4.0",
"version": "3.5.0",
"license": "MIT",

@@ -8,0 +8,0 @@ "main": "dist/index.js",

@@ -85,2 +85,7 @@ import { dotPathToHash, mergeHashes, transferValues } from './helpers'

content = file.contents.toString('utf8')
} else if (fs.lstatSync(file.path).isDirectory()) {
const warning = `${file.path} is a directory: skipping`
this.warn(warning)
done()
return
} else {

@@ -87,0 +92,0 @@ content = fs.readFileSync(file.path, encoding)

@@ -919,6 +919,9 @@ import { assert } from 'chai'

i18nextParser.once('end', () => {
assert.equal(result.replace(/\r\n/g, '\n'), `multiline: |-
assert.equal(
result.replace(/\r\n/g, '\n'),
`multiline: |-
One
Two
`)
`
)
done()

@@ -925,0 +928,0 @@ })

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