Fix text-encoder missing reference for pixelpass (#1420)

Signed-off-by: Sreenadh S <32409698+sree96@users.noreply.github.com>
This commit is contained in:
Sreenadh S
2024-05-07 19:28:52 +05:30
committed by GitHub
parent b7960e0b1c
commit 94ae9f1100
4 changed files with 15 additions and 0 deletions

1
globals.js Normal file
View File

@@ -0,0 +1 @@
global.TextEncoder = require('text-encoding').TextEncoder;

View File

@@ -1,6 +1,7 @@
import 'react-native-gesture-handler';
import 'react-native-url-polyfill/auto'; // https://stackoverflow.com/a/75787849
import {registerRootComponent} from 'expo';
import './globals.js';
import App from './App';

12
package-lock.json generated
View File

@@ -92,6 +92,7 @@
"short-unique-id": "^4.4.4",
"simple-pem2jwk": "^0.2.4",
"telemetry-sdk": "git://github.com/mosip/sunbird-telemetry-sdk.git#f762be5732ee552c0c70bdd540aa4e2701554c71",
"text-encoding": "^0.7.0",
"xstate": "^4.35.0"
},
"devDependencies": {
@@ -27816,6 +27817,12 @@
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/text-encoding": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz",
"integrity": "sha512-oJQ3f1hrOnbRLOcwKz0Liq2IcrvDeZRHXhd9RgLrsT+DjWY/nty1Hi7v3dtkaEYbPYe0mUoOfzRrMwfXXwgPUA==",
"deprecated": "no longer maintained"
},
"node_modules/text-table": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
@@ -50314,6 +50321,11 @@
}
}
},
"text-encoding": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz",
"integrity": "sha512-oJQ3f1hrOnbRLOcwKz0Liq2IcrvDeZRHXhd9RgLrsT+DjWY/nty1Hi7v3dtkaEYbPYe0mUoOfzRrMwfXXwgPUA=="
},
"text-table": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",

View File

@@ -95,6 +95,7 @@
"short-unique-id": "^4.4.4",
"simple-pem2jwk": "^0.2.4",
"telemetry-sdk": "git://github.com/mosip/sunbird-telemetry-sdk.git#f762be5732ee552c0c70bdd540aa4e2701554c71",
"text-encoding": "^0.7.0",
"xstate": "^4.35.0"
},
"devDependencies": {