From ebd6d36b301b08e0262592f71a6fe7f063b992de Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Wed, 19 Nov 2025 13:41:41 +0800 Subject: [PATCH] Update version to 2.4.1 in package.json and streamline file and keyword declarations; import fetch in http-helper.ts for enhanced HTTP functionality. --- package.json | 21 ++++----------------- src/utils/http-helper.ts | 1 + 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 56107bb..c0888f9 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,13 @@ { "name": "react-native-update-cli", - "version": "2.4.0", + "version": "2.4.1", "description": "command line tool for react-native-update (remote updates for react native)", "main": "index.js", "bin": { "pushy": "lib/index.js", "cresc": "lib/index.js" }, - "files": [ - "lib", - "src", - "cli.json" - ], + "files": ["lib", "src", "cli.json"], "scripts": { "build": "swc src -d lib --strip-leading-paths", "prepublishOnly": "npm run build && chmod +x lib/index.js", @@ -21,13 +17,7 @@ "type": "git", "url": "git+https://github.com/reactnativecn/react-native-update-cli.git" }, - "keywords": [ - "react-native", - "ios", - "android", - "harmony", - "update" - ], + "keywords": ["react-native", "ios", "android", "harmony", "update"], "author": "reactnativecn", "license": "BSD-3-Clause", "bugs": { @@ -81,8 +71,5 @@ "@types/yazl": "^2.4.6", "typescript": "^5.8.3" }, - "trustedDependencies": [ - "@biomejs/biome", - "@swc/core" - ] + "trustedDependencies": ["@biomejs/biome", "@swc/core"] } diff --git a/src/utils/http-helper.ts b/src/utils/http-helper.ts index 2f5f567..fd32348 100644 --- a/src/utils/http-helper.ts +++ b/src/utils/http-helper.ts @@ -1,4 +1,5 @@ import { defaultEndpoints } from './constants'; +import fetch from 'node-fetch'; // const baseUrl = `http://localhost:9000`; // let baseUrl = SERVER.main[0];