i18next-parser
Advanced tools
Comparing version 3.4.0 to 3.5.0
# 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 @@ |
@@ -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 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
409793
87
5263