fis3-parser-react-i18n
Advanced tools
Comparing version 0.0.23-beta.8 to 0.0.23-beta.9
@@ -29,3 +29,7 @@ var parse = require('@babel/parser').parse; | ||
var chineseFunc = function (chinesePath) { | ||
var code = fs.readFileSync(p.resolve(process.cwd(), chinesePath, 'zh-CN.ts'), 'utf8'); | ||
var filePath = p.resolve(process.cwd(), chinesePath, 'zh-CN.ts'); | ||
if (!fs.existsSync(filePath)) { | ||
filePath = p.resolve(process.cwd(), chinesePath, 'zh-CN.js'); | ||
} | ||
var code = fs.readFileSync(filePath, 'utf8'); | ||
var ast = parse(code, { | ||
@@ -32,0 +36,0 @@ sourceType: 'module', |
{ | ||
"name": "fis3-parser-react-i18n", | ||
"version": "0.0.23-beta.8", | ||
"version": "0.0.23-beta.9", | ||
"description": "fis3处理react国际化插件", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9619
235
1