fix: 在@voerkai18n/cli
中引入string.prototype.replaceAll
,解决在nodejs 15
以下无法正常使用的问题
This commit is contained in:
parent
e95d4aa3f5
commit
6676659f06
@ -1,5 +1,9 @@
|
||||
# 更新日志
|
||||
|
||||
## 2023/3/24
|
||||
|
||||
- 在`@voerkai18n/cli`中引入`string.prototype.replaceAll`,解决在`nodejs 15`以下无法正常使用的问题
|
||||
|
||||
## 2023/2/13
|
||||
|
||||
- 修改`@voerkai18n/cli`命令入口文件的换行行为`lf`
|
||||
|
@ -5,7 +5,9 @@ const semver = require('semver')
|
||||
const logger = createLogger()
|
||||
const { t } = require("./i18nProxy")
|
||||
const { getPackageReleaseInfo } = require("@voerkai18n/utils");
|
||||
|
||||
|
||||
const replaceAll = require('string.prototype.replaceall');
|
||||
replaceAll.shim()
|
||||
|
||||
const program = new Command();
|
||||
program
|
||||
|
@ -45,6 +45,7 @@
|
||||
"qs": "^6.10.3",
|
||||
"semver": "^7.3.7",
|
||||
"shelljs": "^0.8.5",
|
||||
"string.prototype.replaceall": "^1.0.7",
|
||||
"through2": "^4.0.2",
|
||||
"vinyl": "^2.2.1"
|
||||
},
|
||||
|
13
pnpm-lock.yaml
generated
13
pnpm-lock.yaml
generated
@ -224,6 +224,7 @@ importers:
|
||||
qs: ^6.10.3
|
||||
semver: ^7.3.7
|
||||
shelljs: ^0.8.5
|
||||
string.prototype.replaceall: ^1.0.7
|
||||
through2: ^4.0.2
|
||||
vinyl: ^2.2.1
|
||||
dependencies:
|
||||
@ -244,6 +245,7 @@ importers:
|
||||
qs: 6.11.0
|
||||
semver: 7.3.8
|
||||
shelljs: 0.8.5
|
||||
string.prototype.replaceall: 1.0.7
|
||||
through2: 4.0.2
|
||||
vinyl: 2.2.1
|
||||
|
||||
@ -15732,6 +15734,17 @@ packages:
|
||||
regexp.prototype.flags: 1.4.3
|
||||
side-channel: 1.0.4
|
||||
|
||||
/string.prototype.replaceall/1.0.7:
|
||||
resolution: {integrity: sha512-xB2WV2GlSCSJT5dMGdhdH1noMPiAB91guiepwTYyWY9/0Vq/TZ7RPmnOSUGAEvry08QIK7EMr28aAii+9jC6kw==}
|
||||
dependencies:
|
||||
call-bind: 1.0.2
|
||||
define-properties: 1.1.4
|
||||
es-abstract: 1.21.1
|
||||
get-intrinsic: 1.2.0
|
||||
has-symbols: 1.0.3
|
||||
is-regex: 1.1.4
|
||||
dev: false
|
||||
|
||||
/string.prototype.trimend/1.0.6:
|
||||
resolution: {integrity: sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==}
|
||||
dependencies:
|
||||
|
Loading…
x
Reference in New Issue
Block a user