Selaa lähdekoodia

fix(rn,polyfills) use core-js for promise polyfills

We use the same on the web, on browsers that don't support them.
factor2
Saúl Ibarra Corretgé 4 kuukautta sitten
vanhempi
commit
e9a8fd5392
3 muutettua tiedostoa jossa 129 lisäystä ja 182 poistoa
  1. 127
    178
      package-lock.json
  2. 0
    2
      package.json
  3. 2
    2
      react/features/mobile/polyfills/browser.js

+ 127
- 178
package-lock.json
File diff suppressed because it is too large
Näytä tiedosto


+ 0
- 2
package.json Näytä tiedosto

75
     "null-loader": "4.0.1",
75
     "null-loader": "4.0.1",
76
     "optional-require": "1.0.3",
76
     "optional-require": "1.0.3",
77
     "pixelmatch": "5.3.0",
77
     "pixelmatch": "5.3.0",
78
-    "promise.allsettled": "1.0.4",
79
-    "promise.withresolvers": "1.0.3",
80
     "punycode": "2.3.0",
78
     "punycode": "2.3.0",
81
     "react": "18.2.0",
79
     "react": "18.2.0",
82
     "react-dom": "18.2.0",
80
     "react-dom": "18.2.0",

+ 2
- 2
react/features/mobile/polyfills/browser.js Näytä tiedosto

4
 import BackgroundTimer from 'react-native-background-timer';
4
 import BackgroundTimer from 'react-native-background-timer';
5
 import { TextDecoder, TextEncoder } from 'text-encoding';
5
 import { TextDecoder, TextEncoder } from 'text-encoding';
6
 
6
 
7
-import 'promise.allsettled/auto'; // Promise.allSettled.
8
-import 'promise.withresolvers/auto'; // Promise.withResolvers.
7
+import 'core-js/features/promise/all-settled'; // Promise.allSettled.
8
+import 'core-js/features/promise/with-resolvers'; // Promise.withResolvers.
9
 import 'react-native-url-polyfill/auto'; // Complete URL polyfill.
9
 import 'react-native-url-polyfill/auto'; // Complete URL polyfill.
10
 
10
 
11
 import Storage from './Storage';
11
 import Storage from './Storage';

Loading…
Peruuta
Tallenna