Skip to content

Commit eb519d0

Browse files
committed
v10.36.3
1 parent e5c08aa commit eb519d0

File tree

4 files changed

+3
-18
lines changed

4 files changed

+3
-18
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<network-security-config>
3-
<domain-config cleartextTrafficPermitted="true">
4-
<domain includeSubdomains="true">10.0.2.2</domain>
5-
<domain includeSubdomains="true">localhost</domain>
6-
<domain includeSubdomains="true">cos.pgyer.com</domain>
7-
</domain-config>
3+
<base-config cleartextTrafficPermitted="true" />
84
</network-security-config>

Example/testHotUpdate/src/TestConsole.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import {
88
TextInput,
99
Button,
1010
StyleSheet,
11-
SafeAreaView,
1211
Text,
1312
View,
1413
TouchableOpacity,
1514
} from 'react-native';
15+
import { SafeAreaView } from 'react-native-safe-area-context';
1616

1717
import {PushyModule} from 'react-native-update/src/core';
1818
const Hash = '9D5CE6EBA420717BE7E7D308B11F8207681B066C951D68F3994D19828F342474';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update",
3-
"version": "10.36.2",
3+
"version": "10.36.3",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"scripts": {

src/utils.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,6 @@ export const enhancedFetch = async (
111111
isRetry = false,
112112
): Promise<Response> => {
113113
return fetch(url, params)
114-
.then(r => {
115-
if (r.ok) {
116-
return r;
117-
}
118-
throw Error(
119-
i18n.t('error_http_status', {
120-
status: r.status,
121-
statusText: r.statusText,
122-
}),
123-
);
124-
})
125114
.catch(e => {
126115
log('fetch error', url, e);
127116
if (isRetry) {

0 commit comments

Comments
 (0)