i18next-scanner
Advanced tools
Comparing version 2.6.5 to 2.6.6
@@ -427,3 +427,3 @@ 'use strict'; | ||
try { | ||
var syntax = (0, _esprima.parse)('(' + code + ')'); | ||
var syntax = code.trim() !== '' ? (0, _esprima.parse)('(' + code + ')') : {}; | ||
var props = _lodash2.default.get(syntax, 'body[0].expression.properties') || []; | ||
@@ -430,0 +430,0 @@ // http://i18next.com/docs/options/ |
{ | ||
"name": "i18next-scanner", | ||
"version": "2.6.5", | ||
"version": "2.6.6", | ||
"description": "Scan your code, extract translation keys/values, and merge them into i18n resource files.", | ||
@@ -69,12 +69,12 @@ "homepage": "https://github.com/i18next/i18next-scanner", | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-eslint": "^8.2.1", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"coveralls": "^3.0.0", | ||
"eslint": "^5.0.0", | ||
"eslint-config-trendmicro": "^1.3.1", | ||
"eslint-plugin-import": "^2.13.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.3", | ||
"eslint-plugin-react": "^7.10.0", | ||
"coveralls": "^3.0.2", | ||
"eslint": "^5.6.0", | ||
"eslint-config-trendmicro": "^1.4.1", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-jsx-a11y": "^6.1.1", | ||
"eslint-plugin-react": "^7.11.1", | ||
"gulp": "^3.9.1", | ||
@@ -81,0 +81,0 @@ "gulp-tap": "^1.0.1", |
@@ -528,3 +528,3 @@ # i18next-scanner [![build status](https://travis-ci.org/i18next/i18next-scanner.svg?branch=master)](https://travis-ci.org/i18next/i18next-scanner) [![Coverage Status](https://coveralls.io/repos/i18next/i18next-scanner/badge.svg?branch=master&service=github)](https://coveralls.io/github/i18next/i18next-scanner?branch=master) | ||
Set to `true` to trun on debug output. | ||
Set to `true` to turn on debug output. | ||
@@ -531,0 +531,0 @@ #### removeUnusedKeys |
79501
11
1131