1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-11-22 23:46:10 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Compare commits

...

1 Commits

Author SHA1 Message Date
sunnylqm
f59be2749e v10.11.2 2024-07-29 00:56:57 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-native-update", "name": "react-native-update",
"version": "10.11.1", "version": "10.11.2",
"description": "react-native hot update", "description": "react-native hot update",
"main": "src/index", "main": "src/index",
"scripts": { "scripts": {

View File

@@ -21,7 +21,7 @@ import {
} from './core'; } from './core';
import { CheckResult, ProgressData, PushyTestPayload } from './type'; import { CheckResult, ProgressData, PushyTestPayload } from './type';
import { PushyContext } from './context'; import { PushyContext } from './context';
import { URLSearchParams } from 'react-native-url-polyfill'; import { URL } from 'react-native-url-polyfill';
export const PushyProvider = ({ export const PushyProvider = ({
client, client,
@@ -307,7 +307,7 @@ export const PushyProvider = ({
if (!url) { if (!url) {
return; return;
} }
const params = new URLSearchParams(url); const params = new URL(url).searchParams;
const payload = { const payload = {
type: params.get('type'), type: params.get('type'),
data: params.get('data'), data: params.get('data'),