react-native-update-cli 2.4.0 → 2.4.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.
- package/lib/utils/http-helper.js +7 -1
- package/package.json +4 -17
- package/src/utils/http-helper.ts +1 -0
package/lib/utils/http-helper.js
CHANGED
|
@@ -23,6 +23,12 @@ _export(exports, {
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
const _constants = require("./constants");
|
|
26
|
+
const _nodefetch = /*#__PURE__*/ _interop_require_default(require("node-fetch"));
|
|
27
|
+
function _interop_require_default(obj) {
|
|
28
|
+
return obj && obj.__esModule ? obj : {
|
|
29
|
+
default: obj
|
|
30
|
+
};
|
|
31
|
+
}
|
|
26
32
|
function promiseAny(promises) {
|
|
27
33
|
return new Promise((resolve, reject)=>{
|
|
28
34
|
let count = 0;
|
|
@@ -39,7 +45,7 @@ function promiseAny(promises) {
|
|
|
39
45
|
const ping = async (url)=>{
|
|
40
46
|
let pingFinished = false;
|
|
41
47
|
return Promise.race([
|
|
42
|
-
|
|
48
|
+
(0, _nodefetch.default)(url, {
|
|
43
49
|
method: 'HEAD'
|
|
44
50
|
}).then(({ status, statusText })=>{
|
|
45
51
|
pingFinished = true;
|
package/package.json
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-update-cli",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "command line tool for react-native-update (remote updates for react native)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"pushy": "lib/index.js",
|
|
8
8
|
"cresc": "lib/index.js"
|
|
9
9
|
},
|
|
10
|
-
"files": [
|
|
11
|
-
"lib",
|
|
12
|
-
"src",
|
|
13
|
-
"cli.json"
|
|
14
|
-
],
|
|
10
|
+
"files": ["lib", "src", "cli.json"],
|
|
15
11
|
"scripts": {
|
|
16
12
|
"build": "swc src -d lib --strip-leading-paths",
|
|
17
13
|
"prepublishOnly": "npm run build && chmod +x lib/index.js",
|
|
@@ -21,13 +17,7 @@
|
|
|
21
17
|
"type": "git",
|
|
22
18
|
"url": "git+https://github.com/reactnativecn/react-native-update-cli.git"
|
|
23
19
|
},
|
|
24
|
-
"keywords": [
|
|
25
|
-
"react-native",
|
|
26
|
-
"ios",
|
|
27
|
-
"android",
|
|
28
|
-
"harmony",
|
|
29
|
-
"update"
|
|
30
|
-
],
|
|
20
|
+
"keywords": ["react-native", "ios", "android", "harmony", "update"],
|
|
31
21
|
"author": "reactnativecn",
|
|
32
22
|
"license": "BSD-3-Clause",
|
|
33
23
|
"bugs": {
|
|
@@ -81,8 +71,5 @@
|
|
|
81
71
|
"@types/yazl": "^2.4.6",
|
|
82
72
|
"typescript": "^5.8.3"
|
|
83
73
|
},
|
|
84
|
-
"trustedDependencies": [
|
|
85
|
-
"@biomejs/biome",
|
|
86
|
-
"@swc/core"
|
|
87
|
-
]
|
|
74
|
+
"trustedDependencies": ["@biomejs/biome", "@swc/core"]
|
|
88
75
|
}
|