Skip to content

Commit ebd6d36

Browse files
committed
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.
1 parent 818907f commit ebd6d36

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

package.json

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
{
22
"name": "react-native-update-cli",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"description": "command line tool for react-native-update (remote updates for react native)",
55
"main": "index.js",
66
"bin": {
77
"pushy": "lib/index.js",
88
"cresc": "lib/index.js"
99
},
10-
"files": [
11-
"lib",
12-
"src",
13-
"cli.json"
14-
],
10+
"files": ["lib", "src", "cli.json"],
1511
"scripts": {
1612
"build": "swc src -d lib --strip-leading-paths",
1713
"prepublishOnly": "npm run build && chmod +x lib/index.js",
@@ -21,13 +17,7 @@
2117
"type": "git",
2218
"url": "git+https://github.com/reactnativecn/react-native-update-cli.git"
2319
},
24-
"keywords": [
25-
"react-native",
26-
"ios",
27-
"android",
28-
"harmony",
29-
"update"
30-
],
20+
"keywords": ["react-native", "ios", "android", "harmony", "update"],
3121
"author": "reactnativecn",
3222
"license": "BSD-3-Clause",
3323
"bugs": {
@@ -81,8 +71,5 @@
8171
"@types/yazl": "^2.4.6",
8272
"typescript": "^5.8.3"
8373
},
84-
"trustedDependencies": [
85-
"@biomejs/biome",
86-
"@swc/core"
87-
]
74+
"trustedDependencies": ["@biomejs/biome", "@swc/core"]
8875
}

src/utils/http-helper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defaultEndpoints } from './constants';
2+
import fetch from 'node-fetch';
23

34
// const baseUrl = `http://localhost:9000`;
45
// let baseUrl = SERVER.main[0];

0 commit comments

Comments
 (0)