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

Update version to 1.44.7 and modify import in zip.js to use readEntry instead of readEntire

This commit is contained in:
sunnylqm
2025-05-15 11:58:36 +08:00
parent ebfb9dd4b9
commit 002e8662d6
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-native-update-cli", "name": "react-native-update-cli",
"version": "1.44.6", "version": "1.44.7",
"description": "command line tool for react-native-update (remote updates for react native)", "description": "command line tool for react-native-update (remote updates for react native)",
"main": "index.js", "main": "index.js",
"bin": { "bin": {

View File

@@ -1,6 +1,6 @@
const Unzip = require('isomorphic-unzip'); const Unzip = require('isomorphic-unzip');
const { isBrowser, decodeNullUnicode } = require('./utils'); const { isBrowser, decodeNullUnicode } = require('./utils');
import { enumZipEntries, readEntire } from '../../bundle'; import { enumZipEntries, readEntry } from '../../bundle';
class Zip { class Zip {
constructor(file) { constructor(file) {
@@ -53,7 +53,7 @@ class Zip {
let originSource; let originSource;
await enumZipEntries(this.file, (entry, zipFile) => { await enumZipEntries(this.file, (entry, zipFile) => {
if (regex.test(entry.fileName)) { if (regex.test(entry.fileName)) {
return readEntire(entry, zipFile).then((v) => (originSource = v)); return readEntry(entry, zipFile).then((v) => (originSource = v));
} }
}); });
return originSource; return originSource;