1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-17 18:06:10 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Compare commits

..

5 Commits

Author SHA1 Message Date
sunnylqm
5c41204da0 v1.20.6 2024-03-07 11:16:07 +08:00
sunnylqm
006951ae88 v1.20.5 2024-03-06 20:45:59 +08:00
sunnylqm
b1fda5ab9c v1.20.3 2024-03-06 20:36:25 +08:00
sunnylqm
385b974aff v1.20.2 2024-03-06 10:20:00 +08:00
sunnylqm
2a02deb015 v1.20.1 2024-03-06 09:55:48 +08:00
3 changed files with 17 additions and 39 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "react-native-update-cli",
"version": "1.20.1",
"version": "1.20.6",
"description": "Command tools for javaScript updater with `pushy` service for react native apps.",
"main": "index.js",
"bin": {
@@ -31,7 +31,6 @@
},
"homepage": "https://github.com/reactnativecn/react-native-pushy/tree/master/react-native-pushy-cli",
"dependencies": {
"app-info-parser": "github:sunnylqm/app-info-parser#fix/support-ascii-versionname",
"cli-arguments": "^0.2.1",
"filesize-parser": "^1.5.0",
"fs-extra": "8",

View File

@@ -1,17 +0,0 @@
diff --git a/src/xml-parser/binary.js b/src/xml-parser/binary.js
index e20cc96e8131078ea81afeb31af46142a52da58e..f0f788cc555046f0dab47f8854f26344e0d5d714 100644
--- a/src/xml-parser/binary.js
+++ b/src/xml-parser/binary.js
@@ -547,8 +547,10 @@ var BinaryXmlParser = /*#__PURE__*/function () {
attr.nodeName = attr.name = this.strings[nameRef];
if (valueRef > 0) {
// some apk have versionName with special characters
- if (attr.name === 'versionName') {
- this.strings[valueRef] = this.strings[valueRef].replace(/[^\d\w-.]/g, '');
+ if (attr.name === 'versionName') {
+ // only keep printable characters
+ // https://www.ascii-code.com/characters/printable-characters
+ this.strings[valueRef] = this.strings[valueRef].replace(/[^\x21-\x7E]/g, '')
}
attr.value = this.strings[valueRef];
}

36
pnpm-lock.yaml generated
View File

@@ -4,15 +4,10 @@ settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
patchedDependencies:
app-info-parser@1.1.6:
hash: 5azvag6rayshexwrrjmxczz7em
path: patches/app-info-parser@1.1.6.patch
dependencies:
app-info-parser:
specifier: ^1.1.6
version: 1.1.6(patch_hash=5azvag6rayshexwrrjmxczz7em)
specifier: github:sunnylqm/app-info-parser#fix/support-ascii-versionname
version: github.com/sunnylqm/app-info-parser/f7748ce60278fb16f6f280d908d35025a241eb57
cli-arguments:
specifier: ^0.2.1
version: 0.2.1
@@ -149,19 +144,6 @@ packages:
dev: true
optional: true
/app-info-parser@1.1.6(patch_hash=5azvag6rayshexwrrjmxczz7em):
resolution: {integrity: sha512-ZAFCM0bN88cbpsMoRhL/JfdX3b+nb5iBEXcu30xABvbaqtw6tXfHujDnuKSpNmA3P0uwpkIxTV/Wun5HfEch8A==}
hasBin: true
dependencies:
bplist-parser: 0.2.0
bytebuffer: 5.0.1
cgbi-to-png: 1.0.7
commander: 7.2.0
isomorphic-unzip: 1.1.5
plist: 3.0.4
dev: false
patched: true
/arr-diff@2.0.0:
resolution: {integrity: sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=}
engines: {node: '>=0.10.0'}
@@ -3255,3 +3237,17 @@ packages:
dependencies:
buffer-crc32: 0.2.13
dev: false
github.com/sunnylqm/app-info-parser/f7748ce60278fb16f6f280d908d35025a241eb57:
resolution: {tarball: https://codeload.github.com/sunnylqm/app-info-parser/tar.gz/f7748ce60278fb16f6f280d908d35025a241eb57}
name: app-info-parser
version: 1.1.6
hasBin: true
dependencies:
bplist-parser: 0.2.0
bytebuffer: 5.0.1
cgbi-to-png: 1.0.7
commander: 7.2.0
isomorphic-unzip: 1.1.5
plist: 3.0.4
dev: false