mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 01:41:37 +08:00
Update version to 1.44.7 and modify import in zip.js to use readEntry instead of readEntire
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"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)",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user