react-native-update-cli 2.29.0 → 2.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,7 +23,7 @@ exports.readRemoteZipEntry = readRemoteZipEntry;
23
23
  // `openRemoteZip` read just the bundle of a remote archive through HTTP Range
24
24
  // requests instead of downloading the whole ppk / apk / ipa. Every helper
25
25
  // throws on anything unexpected; callers fall back to a full download.
26
- const fs_extra_1 = __importDefault(require("fs-extra"));
26
+ const fs_1 = __importDefault(require("fs"));
27
27
  const stream_1 = require("stream");
28
28
  const yauzl_1 = require("yauzl");
29
29
  const zlib_1 = require("zlib");
@@ -75,15 +75,15 @@ async function readZipEntryWithLocation(zipPath, matches) {
75
75
  }
76
76
  async function locationOfEntry(zipPath, entry) {
77
77
  const header = Buffer.alloc(LOCAL_HEADER_SIZE);
78
- const fd = await fs_extra_1.default.open(zipPath, 'r');
78
+ const handle = await fs_1.default.promises.open(zipPath, 'r');
79
79
  try {
80
- const { bytesRead } = await fs_extra_1.default.read(fd, header, 0, LOCAL_HEADER_SIZE, entry.relativeOffsetOfLocalHeader);
80
+ const { bytesRead } = await handle.read(header, 0, LOCAL_HEADER_SIZE, entry.relativeOffsetOfLocalHeader);
81
81
  if (bytesRead !== LOCAL_HEADER_SIZE) {
82
82
  throw new Error('truncated local file header');
83
83
  }
84
84
  }
85
85
  finally {
86
- await fs_extra_1.default.close(fd);
86
+ await handle.close();
87
87
  }
88
88
  if (header.readUInt32LE(0) !== LOCAL_HEADER_SIGNATURE) {
89
89
  throw new Error('invalid local file header signature');
@@ -12,7 +12,8 @@ exports.crc32Update = crc32Update;
12
12
  // a second deflate of every asset (yazl can only add uncompressed data and
13
13
  // re-deflates it). Plain zip only: no zip64, no data descriptors, no extra
14
14
  // fields; callers must check `fitsRawZip` before choosing this writer.
15
- const fs_extra_1 = __importDefault(require("fs-extra"));
15
+ const fs_1 = __importDefault(require("fs"));
16
+ const fs_helpers_1 = require("./fs-helpers");
16
17
  const LOCAL_HEADER_SIGNATURE = 0x04034b50;
17
18
  const CENTRAL_HEADER_SIGNATURE = 0x02014b50;
18
19
  const EOCD_SIGNATURE = 0x06054b50;
@@ -67,7 +68,7 @@ class RawZipWriter {
67
68
  closed;
68
69
  constructor(output) {
69
70
  this.output = output;
70
- this.out = fs_extra_1.default.createWriteStream(output);
71
+ this.out = fs_1.default.createWriteStream(output);
71
72
  this.closed = new Promise((resolve, reject) => {
72
73
  this.out.once('close', resolve);
73
74
  this.out.once('error', (error) => {
@@ -148,7 +149,7 @@ class RawZipWriter {
148
149
  async addStoredFile(filePath, fileName, like) {
149
150
  let crc = 0;
150
151
  let size = 0;
151
- for await (const chunk of fs_extra_1.default.createReadStream(filePath)) {
152
+ for await (const chunk of fs_1.default.createReadStream(filePath)) {
152
153
  crc = crc32Update(crc, chunk);
153
154
  size += chunk.length;
154
155
  }
@@ -162,7 +163,7 @@ class RawZipWriter {
162
163
  lastModFileDate: like?.lastModFileDate ?? 0x21, // 1980-01-01
163
164
  externalFileAttributes: like?.externalFileAttributes,
164
165
  versionMadeBy: like?.versionMadeBy,
165
- }, fs_extra_1.default.createReadStream(filePath));
166
+ }, fs_1.default.createReadStream(filePath));
166
167
  }
167
168
  /** Write the central directory and close the file. */
168
169
  async end() {
@@ -190,7 +191,7 @@ class RawZipWriter {
190
191
  async abort() {
191
192
  this.out.destroy();
192
193
  await this.closed.catch(() => { });
193
- await fs_extra_1.default.remove(this.output).catch(() => { });
194
+ await (0, fs_helpers_1.remove)(this.output).catch(() => { });
194
195
  }
195
196
  write(chunk) {
196
197
  if (this.failure)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update-cli",
3
- "version": "2.29.0",
3
+ "version": "2.29.1",
4
4
  "description": "command line tool for react-native-update (remote updates for react native)",
5
5
  "main": "lib/exports.js",
6
6
  "types": "lib/exports.d.ts",
@@ -62,19 +62,15 @@
62
62
  "homepage": "https://github.com/reactnativecn/react-native-update-cli",
63
63
  "dependencies": {
64
64
  "bplist-parser": "^0.3.2",
65
- "bytebuffer": "^5.0.1",
66
65
  "cgbi-to-png": "^1.0.7",
67
66
  "chalk": "4",
68
67
  "cli-arguments": "^0.2.1",
69
68
  "compare-versions": "^6.1.1",
70
69
  "filesize-parser": "^1.5.2",
71
- "form-data": "^4.0.6",
72
- "fs-extra": "^11.4.0",
73
70
  "global-dirs": "^4.0.0",
74
71
  "gradle-to-js": "^2.0.1",
75
72
  "https-proxy-agent": "^7.0.6",
76
73
  "i18next": "^26.4.0",
77
- "node-fetch": "^2.6.1",
78
74
  "plist": "^5.0.0",
79
75
  "progress": "^2.0.3",
80
76
  "properties": "^1.2.1",
@@ -98,9 +94,7 @@
98
94
  "@biomejs/biome": "^2.5.10",
99
95
  "@types/bun": "^1.4.0",
100
96
  "@types/filesize-parser": "^1.5.3",
101
- "@types/fs-extra": "^11.0.4",
102
97
  "@types/node": "^26.3.0",
103
- "@types/node-fetch": "^2.6.13",
104
98
  "@types/progress": "^2.0.7",
105
99
  "@types/yauzl": "^3.4.0",
106
100
  "@types/yazl": "^3.3.1",