@kontextso/sdk-react-native 0.0.10-rc.2 → 0.0.10-rc.3
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.
- package/dist/index.js +10 -0
- package/dist/index.mjs +10 -0
- package/package.json +6 -2
package/dist/index.js
CHANGED
|
@@ -1496,7 +1496,17 @@ var ErrorBoundary = class extends import_react11.default.Component {
|
|
|
1496
1496
|
|
|
1497
1497
|
// src/context/AdsProvider.tsx
|
|
1498
1498
|
var import_fetch = require("expo/fetch");
|
|
1499
|
+
var import_encoding = require("react-native-polyfill-globals/src/encoding");
|
|
1500
|
+
var import_readable_stream = require("react-native-polyfill-globals/src/readable-stream");
|
|
1501
|
+
var import_fetch2 = require("react-native-polyfill-globals/src/fetch");
|
|
1502
|
+
var import_react_native5 = require("react-native");
|
|
1499
1503
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1504
|
+
if (import_react_native5.Platform.OS !== "web") {
|
|
1505
|
+
(0, import_encoding.polyfill)();
|
|
1506
|
+
(0, import_readable_stream.polyfill)();
|
|
1507
|
+
(0, import_fetch2.polyfill)();
|
|
1508
|
+
console.log("Polyfilled fetch.");
|
|
1509
|
+
}
|
|
1500
1510
|
var VISITOR_ID_KEY2 = "brain-visitor-id";
|
|
1501
1511
|
ErrorUtils.setGlobalHandler((error, isFatal) => {
|
|
1502
1512
|
if (!isFatal) {
|
package/dist/index.mjs
CHANGED
|
@@ -1464,7 +1464,17 @@ var ErrorBoundary = class extends React5.Component {
|
|
|
1464
1464
|
|
|
1465
1465
|
// src/context/AdsProvider.tsx
|
|
1466
1466
|
import { fetch as fetch2 } from "expo/fetch";
|
|
1467
|
+
import { polyfill as polyfillEncoding } from "react-native-polyfill-globals/src/encoding";
|
|
1468
|
+
import { polyfill as polyfillReadableStream } from "react-native-polyfill-globals/src/readable-stream";
|
|
1469
|
+
import { polyfill as polyfillFetch } from "react-native-polyfill-globals/src/fetch";
|
|
1470
|
+
import { Platform as Platform2 } from "react-native";
|
|
1467
1471
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
1472
|
+
if (Platform2.OS !== "web") {
|
|
1473
|
+
polyfillEncoding();
|
|
1474
|
+
polyfillReadableStream();
|
|
1475
|
+
polyfillFetch();
|
|
1476
|
+
console.log("Polyfilled fetch.");
|
|
1477
|
+
}
|
|
1468
1478
|
var VISITOR_ID_KEY2 = "brain-visitor-id";
|
|
1469
1479
|
ErrorUtils.setGlobalHandler((error, isFatal) => {
|
|
1470
1480
|
if (!isFatal) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kontextso/sdk-react-native",
|
|
3
|
-
"version": "0.0.10-rc.
|
|
3
|
+
"version": "0.0.10-rc.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -47,7 +47,11 @@
|
|
|
47
47
|
"react-dom": "*",
|
|
48
48
|
"react-native": "*"
|
|
49
49
|
},
|
|
50
|
-
"dependencies": {
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"react-native-fetch-api": "^3.0.0",
|
|
52
|
+
"react-native-polyfill-globals": "^3.1.0",
|
|
53
|
+
"web-streams-polyfill": "^3.1.1"
|
|
54
|
+
},
|
|
51
55
|
"files": [
|
|
52
56
|
"dist/*"
|
|
53
57
|
]
|