mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-12-15 01:22:34 +08:00
v10.36.3
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<domain-config cleartextTrafficPermitted="true">
|
||||
<domain includeSubdomains="true">10.0.2.2</domain>
|
||||
<domain includeSubdomains="true">localhost</domain>
|
||||
<domain includeSubdomains="true">cos.pgyer.com</domain>
|
||||
</domain-config>
|
||||
<base-config cleartextTrafficPermitted="true" />
|
||||
</network-security-config>
|
||||
|
||||
@@ -8,11 +8,11 @@ import {
|
||||
TextInput,
|
||||
Button,
|
||||
StyleSheet,
|
||||
SafeAreaView,
|
||||
Text,
|
||||
View,
|
||||
TouchableOpacity,
|
||||
} from 'react-native';
|
||||
import { SafeAreaView } from 'react-native-safe-area-context';
|
||||
|
||||
import {PushyModule} from 'react-native-update/src/core';
|
||||
const Hash = '9D5CE6EBA420717BE7E7D308B11F8207681B066C951D68F3994D19828F342474';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-update",
|
||||
"version": "10.36.2",
|
||||
"version": "10.36.3",
|
||||
"description": "react-native hot update",
|
||||
"main": "src/index",
|
||||
"scripts": {
|
||||
|
||||
11
src/utils.ts
11
src/utils.ts
@@ -111,17 +111,6 @@ export const enhancedFetch = async (
|
||||
isRetry = false,
|
||||
): Promise<Response> => {
|
||||
return fetch(url, params)
|
||||
.then(r => {
|
||||
if (r.ok) {
|
||||
return r;
|
||||
}
|
||||
throw Error(
|
||||
i18n.t('error_http_status', {
|
||||
status: r.status,
|
||||
statusText: r.statusText,
|
||||
}),
|
||||
);
|
||||
})
|
||||
.catch(e => {
|
||||
log('fetch error', url, e);
|
||||
if (isRetry) {
|
||||
|
||||
Reference in New Issue
Block a user