i18-fe-automator-beta 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,7 +23,7 @@ var stripAnsi = require('strip-ansi');
23
23
  require('shelljs');
24
24
  var process$1 = require('child_process');
25
25
  var _ = require('lodash');
26
- var nanoid = require('nanoid');
26
+ require('nanoid');
27
27
  var request$1 = require('request-promise');
28
28
  require('os');
29
29
  require('console');
@@ -2279,8 +2279,8 @@ function translateUtil(appid, key, projectName, isLintFix) {
2279
2279
  EN = EN[0].toUpperCase() + EN.slice(1);
2280
2280
  item1.EN = EN;
2281
2281
  if (isLintFix) {
2282
- item1.key = nanoid.nanoid().replace("_", "a");
2283
- // item1.key = id + "-" + key;
2282
+ // item1.key = nanoid().replace("_", "a");
2283
+ item1.key = id + "-" + key;
2284
2284
  } else {
2285
2285
  item1.key = id + "-" + key;
2286
2286
  }
@@ -21,7 +21,7 @@ import stripAnsi from 'strip-ansi';
21
21
  import 'shelljs';
22
22
  import process$1 from 'child_process';
23
23
  import _ from 'lodash';
24
- import { nanoid } from 'nanoid';
24
+ import 'nanoid';
25
25
  import request$1 from 'request-promise';
26
26
  import 'os';
27
27
  import 'console';
@@ -2257,8 +2257,8 @@ function translateUtil(appid, key, projectName, isLintFix) {
2257
2257
  EN = EN[0].toUpperCase() + EN.slice(1);
2258
2258
  item1.EN = EN;
2259
2259
  if (isLintFix) {
2260
- item1.key = nanoid().replace("_", "a");
2261
- // item1.key = id + "-" + key;
2260
+ // item1.key = nanoid().replace("_", "a");
2261
+ item1.key = id + "-" + key;
2262
2262
  } else {
2263
2263
  item1.key = id + "-" + key;
2264
2264
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18-fe-automator-beta",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "i18-fe-automator-beta内测版本,只用于key: ''替换、检测中文规则等",
5
5
  "type": "module",
6
6
  "bin": {