1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-10-30 22:33:11 +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 @@
const Unzip = require('isomorphic-unzip');
const { isBrowser, decodeNullUnicode } = require('./utils');
import { enumZipEntries, readEntire } from '../../bundle';
import { enumZipEntries, readEntry } from '../../bundle';
class Zip {
constructor(file) {
@@ -53,7 +53,7 @@ class Zip {
let originSource;
await enumZipEntries(this.file, (entry, zipFile) => {
if (regex.test(entry.fileName)) {
return readEntire(entry, zipFile).then((v) => (originSource = v));
return readEntry(entry, zipFile).then((v) => (originSource = v));
}
});
return originSource;