mirror of
				https://gitcode.com/github-mirrors/react-native-update-cli.git
				synced 2025-11-04 08:43:10 +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",
 | 
					  "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": {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user