react-native-update 10.11.1 → 10.11.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/provider.tsx +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update",
3
- "version": "10.11.1",
3
+ "version": "10.11.2",
4
4
  "description": "react-native hot update",
5
5
  "main": "src/index",
6
6
  "scripts": {
package/src/provider.tsx CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  } from './core';
22
22
  import { CheckResult, ProgressData, PushyTestPayload } from './type';
23
23
  import { PushyContext } from './context';
24
- import { URLSearchParams } from 'react-native-url-polyfill';
24
+ import { URL } from 'react-native-url-polyfill';
25
25
 
26
26
  export const PushyProvider = ({
27
27
  client,
@@ -307,7 +307,7 @@ export const PushyProvider = ({
307
307
  if (!url) {
308
308
  return;
309
309
  }
310
- const params = new URLSearchParams(url);
310
+ const params = new URL(url).searchParams;
311
311
  const payload = {
312
312
  type: params.get('type'),
313
313
  data: params.get('data'),