Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 1 addition & 43 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,15 @@
"homepage": "https://github.com/reactnativecn/react-native-update-cli",
"dependencies": {
"bplist-parser": "^0.3.2",
"bytebuffer": "^5.0.1",
"cgbi-to-png": "^1.0.7",
"chalk": "4",
"cli-arguments": "^0.2.1",
"compare-versions": "^6.1.1",
"filesize-parser": "^1.5.2",
"form-data": "^4.0.6",
"fs-extra": "^11.4.0",
"global-dirs": "^4.0.0",
"gradle-to-js": "^2.0.1",
"https-proxy-agent": "^7.0.6",
"i18next": "^26.4.0",
"node-fetch": "^2.6.1",
"plist": "^5.0.0",
"progress": "^2.0.3",
"properties": "^1.2.1",
Expand All @@ -98,9 +94,7 @@
"@biomejs/biome": "^2.5.10",
"@types/bun": "^1.4.0",
"@types/filesize-parser": "^1.5.3",
"@types/fs-extra": "^11.0.4",
"@types/node": "^26.3.0",
"@types/node-fetch": "^2.6.13",
"@types/progress": "^2.0.7",
"@types/yauzl": "^3.4.0",
"@types/yazl": "^3.3.1",
Expand Down
11 changes: 6 additions & 5 deletions scripts/fuzz-hermes-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@
* caught with useful coverage, 1 otherwise; invalid arguments exit 2.
*/
import { spawnSync } from 'node:child_process';
import fs from 'fs-extra';
import fs from 'fs';
import os from 'os';
import path from 'path';
import { failureFingerprint } from '../src/utils/failure-fingerprint';
import { ensureDirSync, removeSync } from '../src/utils/fs-helpers';
import { compareHermesBytecode } from '../src/utils/hermes-base';
import { fuzzStringLiterals } from './hermes-fuzz-literals';
import { hermesFuzzSucceeded } from './hermes-fuzz-result';
Expand Down Expand Up @@ -580,7 +581,7 @@ interface Finding {
async function main() {
const rng = new Rng(SEED);
const gen = new Gen(rng);
fs.ensureDirSync(OUT_DIR);
ensureDirSync(OUT_DIR);
console.log(
`fuzz-hermes-base: ${ROUNDS} rounds, seed ${SEED}, hermesc ${hermesc}, out ${OUT_DIR}`,
);
Expand All @@ -598,7 +599,7 @@ async function main() {

for (let round = 0; round < ROUNDS; round++) {
const dir = path.join(OUT_DIR, `round-${String(round).padStart(4, '0')}`);
fs.ensureDirSync(dir);
ensureDirSync(dir);
const next = gen.program();
const baseSource =
pool.length > 0 && rng.chance(0.5) ? rng.pick(pool) : gen.mutate(next);
Expand Down Expand Up @@ -712,7 +713,7 @@ async function main() {
}
}

if (!keep) fs.removeSync(dir);
if (!keep) removeSync(dir);
}

const seconds = ((Date.now() - started) / 1000).toFixed(1);
Expand Down Expand Up @@ -751,7 +752,7 @@ async function main() {
plantedCompileErrors,
});
if (!ok) console.log(`\nfailing cases kept under ${OUT_DIR}`);
else if (!argValue('out')) fs.removeSync(OUT_DIR);
else if (!argValue('out')) removeSync(OUT_DIR);
process.exit(ok ? 0 : 1);
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/smoke-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ async function proxyScenario() {
});
});
// tunnels to the mock host: the API client (undici), the registry check
// (http.get) and the upload (node-fetch) each open their own
// (http.get) and the upload (http.request) each open their own
const tunnels = () =>
seenByProxy.filter((line) => line === `CONNECT 127.0.0.1:${apiPort}`)
.length;
Expand Down
Loading
Loading