i18next-scanner
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -73,3 +73,3 @@ 'use strict'; | ||
var matchBalancedParentheses = function matchBalancedParentheses() { | ||
var str = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0]; | ||
var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; | ||
@@ -261,4 +261,4 @@ var parentheses = '[]{}()'; | ||
var opts = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var customHandler = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2]; | ||
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var customHandler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
@@ -353,4 +353,4 @@ if (_lodash2.default.isFunction(opts)) { | ||
var opts = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var customHandler = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2]; | ||
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var customHandler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
@@ -413,3 +413,3 @@ if (_lodash2.default.isFunction(opts)) { | ||
value: function get(key) { | ||
var opts = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -500,3 +500,3 @@ if (_lodash2.default.isObject(key)) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -630,7 +630,7 @@ // Backward compatibility | ||
value: function toJSON() { | ||
var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var replacer = options.replacer; | ||
var space = options.space; | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var others = _objectWithoutProperties(options, ['replacer', 'space']); | ||
var replacer = options.replacer, | ||
space = options.space, | ||
others = _objectWithoutProperties(options, ['replacer', 'space']); | ||
@@ -637,0 +637,0 @@ return JSON.stringify(this.get(others), replacer, space); |
{ | ||
"name": "i18next-scanner", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Scan your code, extract translation keys/values, and merge them into i18n resource files.", | ||
@@ -40,16 +40,16 @@ "homepage": "https://github.com/i18next/i18next-scanner", | ||
"dependencies": { | ||
"esprima": "^2.7.2", | ||
"lodash": "^4.13.1", | ||
"through2": "^2.0.1", | ||
"vinyl": "^1.1.1", | ||
"vinyl-fs": "^2.4.3" | ||
"esprima": "^3.1.2", | ||
"lodash": "^4.17.2", | ||
"through2": "^2.0.2", | ||
"vinyl": "^2.0.1", | ||
"vinyl-fs": "^2.4.4" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.10.1", | ||
"babel-core": "^6.9.1", | ||
"babel-eslint": "^6.0.4", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"coveralls": "^2.11.9", | ||
"eslint": "^2.12.0", | ||
"babel-cli": "^6.18.0", | ||
"babel-core": "^6.18.2", | ||
"babel-eslint": "^7.1.1", | ||
"babel-preset-es2015": "^6.18.0", | ||
"babel-preset-stage-0": "^6.16.0", | ||
"coveralls": "^2.11.15", | ||
"eslint": "^3.11.0", | ||
"gulp": "^3.9.1", | ||
@@ -59,5 +59,5 @@ "gulp-tap": "^0.1.3", | ||
"sha1": "^1.1.1", | ||
"tap": "^5.7.2", | ||
"tap": "^8.0.1", | ||
"text-table": "^0.2.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
113520
+ Addedclone@2.1.2(transitive)
+ Addedclone-buffer@1.0.0(transitive)
+ Addedclone-stats@1.0.0(transitive)
+ Addedcloneable-readable@1.1.3(transitive)
+ Addedesprima@3.1.3(transitive)
+ Addedreplace-ext@1.0.1(transitive)
+ Addedvinyl@2.2.1(transitive)
- Removedesprima@2.7.3(transitive)
Updatedesprima@^3.1.2
Updatedlodash@^4.17.2
Updatedthrough2@^2.0.2
Updatedvinyl@^2.0.1
Updatedvinyl-fs@^2.4.4