@builder.io/sdk-react-native 1.0.31-1 → 1.0.31-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 (24) hide show
  1. package/lib/browser/commonjs/constants/sdk-version.js +1 -1
  2. package/lib/browser/commonjs/functions/evaluate/node-runtime/safeDynamicRequire.js +4 -18
  3. package/lib/browser/commonjs/functions/evaluate/node-runtime/safeDynamicRequire.js.map +1 -1
  4. package/lib/browser/module/constants/sdk-version.js +1 -1
  5. package/lib/browser/module/functions/evaluate/node-runtime/safeDynamicRequire.js +5 -18
  6. package/lib/browser/module/functions/evaluate/node-runtime/safeDynamicRequire.js.map +1 -1
  7. package/lib/browser/typescript/constants/sdk-version.d.ts +1 -1
  8. package/lib/edge/commonjs/constants/sdk-version.js +1 -1
  9. package/lib/edge/commonjs/functions/evaluate/node-runtime/safeDynamicRequire.js +4 -18
  10. package/lib/edge/commonjs/functions/evaluate/node-runtime/safeDynamicRequire.js.map +1 -1
  11. package/lib/edge/module/constants/sdk-version.js +1 -1
  12. package/lib/edge/module/functions/evaluate/node-runtime/safeDynamicRequire.js +5 -18
  13. package/lib/edge/module/functions/evaluate/node-runtime/safeDynamicRequire.js.map +1 -1
  14. package/lib/edge/typescript/constants/sdk-version.d.ts +1 -1
  15. package/lib/node/commonjs/constants/sdk-version.js +1 -1
  16. package/lib/node/commonjs/functions/evaluate/node-runtime/safeDynamicRequire.js +4 -18
  17. package/lib/node/commonjs/functions/evaluate/node-runtime/safeDynamicRequire.js.map +1 -1
  18. package/lib/node/module/constants/sdk-version.js +1 -1
  19. package/lib/node/module/functions/evaluate/node-runtime/safeDynamicRequire.js +5 -18
  20. package/lib/node/module/functions/evaluate/node-runtime/safeDynamicRequire.js.map +1 -1
  21. package/lib/node/typescript/constants/sdk-version.d.ts +1 -1
  22. package/package.json +1 -2
  23. package/src/constants/sdk-version.ts +1 -1
  24. package/src/functions/evaluate/node-runtime/safeDynamicRequire.ts +10 -20
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SDK_VERSION = void 0;
7
- const SDK_VERSION = exports.SDK_VERSION = "1.0.31-0";
7
+ const SDK_VERSION = exports.SDK_VERSION = "1.0.31-1";
8
8
  //# sourceMappingURL=sdk-version.js.map
@@ -4,29 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.safeDynamicRequire = void 0;
7
- var _nodeModule = require("node:module");
8
- const noop = () => {};
9
-
10
7
  /**
11
- * Allows us to require node-specific code safely within bundlers.
12
- *
13
- * https://github.com/laverdet/isolated-vm/issues/423
14
- *
15
- * NOTE: this code should only ever run in `node`, and never in an `edge` runtime.
16
- * This is guaranteed by the fact that each SDK has separate bundles for each runtime.
17
- * However, it might still end up running in the `browser` if the `node` bundle is loaded in the
18
- * browser (which happens in many apps' dev mode, and certain other scenarios like Qwik's prod mode).
19
- * This is why we catch and ignore the error at the very end.
8
+ * Overriding usage of `import.meta` because the metro bundler in Expo 50+ does not like it.
20
9
  */
21
10
 
11
+ const noop = () => {};
22
12
  let safeDynamicRequire = exports.safeDynamicRequire = noop;
23
13
  try {
24
- exports.safeDynamicRequire = safeDynamicRequire = (0, _nodeModule.createRequire)(import.meta.url);
14
+ exports.safeDynamicRequire = safeDynamicRequire = eval('require');
25
15
  } catch (error) {
26
- try {
27
- exports.safeDynamicRequire = safeDynamicRequire = eval('require');
28
- } catch (error) {
29
- /* empty */
30
- }
16
+ /* empty */
31
17
  }
32
18
  //# sourceMappingURL=safeDynamicRequire.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_nodeModule","require","noop","safeDynamicRequire","exports","createRequire","import","meta","url","error","eval"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/node-runtime/safeDynamicRequire.ts"],"mappings":";;;;;;AAaA,IAAAA,WAAA,GAAAC,OAAA;AAbA,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,IAAIC,kBAAkC,GAAAC,OAAA,CAAAD,kBAAA,GAAKD,IAAmC;AACrF,IAAI;EACFE,OAAA,CAAAD,kBAAA,GAAAA,kBAAkB,GAAG,IAAAE,yBAAa,EAACC,MAAM,CAACC,IAAI,CAACC,GAAG,CAAC;AACrD,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd,IAAI;IACFL,OAAA,CAAAD,kBAAA,GAAAA,kBAAkB,GAAGO,IAAI,CAAC,SAAS,CAAC;EACtC,CAAC,CAAC,OAAOD,KAAK,EAAE;IACd;EAAA;AAEJ"}
1
+ {"version":3,"names":["noop","safeDynamicRequire","exports","eval","error"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/node-runtime/safeDynamicRequire.ts"],"mappings":";;;;;;AAAA;AACA;AACA;;AAEA,MAAMA,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AAEd,IAAIC,kBAAkC,GAAAC,OAAA,CAAAD,kBAAA,GAC3CD,IAAiC;AAEnC,IAAI;EACFE,OAAA,CAAAD,kBAAA,GAAAA,kBAAkB,GAAGE,IAAI,CAAC,SAAS,CAAC;AACtC,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd;AAAA"}
@@ -1,2 +1,2 @@
1
- export const SDK_VERSION = "1.0.31-0";
1
+ export const SDK_VERSION = "1.0.31-1";
2
2
  //# sourceMappingURL=sdk-version.js.map
@@ -1,25 +1,12 @@
1
- const noop = () => {};
2
-
3
1
  /**
4
- * Allows us to require node-specific code safely within bundlers.
5
- *
6
- * https://github.com/laverdet/isolated-vm/issues/423
7
- *
8
- * NOTE: this code should only ever run in `node`, and never in an `edge` runtime.
9
- * This is guaranteed by the fact that each SDK has separate bundles for each runtime.
10
- * However, it might still end up running in the `browser` if the `node` bundle is loaded in the
11
- * browser (which happens in many apps' dev mode, and certain other scenarios like Qwik's prod mode).
12
- * This is why we catch and ignore the error at the very end.
2
+ * Overriding usage of `import.meta` because the metro bundler in Expo 50+ does not like it.
13
3
  */
14
- import { createRequire } from 'node:module';
4
+
5
+ const noop = () => {};
15
6
  export let safeDynamicRequire = noop;
16
7
  try {
17
- safeDynamicRequire = createRequire(import.meta.url);
8
+ safeDynamicRequire = eval('require');
18
9
  } catch (error) {
19
- try {
20
- safeDynamicRequire = eval('require');
21
- } catch (error) {
22
- /* empty */
23
- }
10
+ /* empty */
24
11
  }
25
12
  //# sourceMappingURL=safeDynamicRequire.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["noop","createRequire","safeDynamicRequire","import","meta","url","error","eval"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/node-runtime/safeDynamicRequire.ts"],"mappings":"AAAA,MAAMA,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,aAAa,QAAQ,aAAa;AAC3C,OAAO,IAAIC,kBAAkC,GAAKF,IAAmC;AACrF,IAAI;EACFE,kBAAkB,GAAGD,aAAa,CAACE,MAAM,CAACC,IAAI,CAACC,GAAG,CAAC;AACrD,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd,IAAI;IACFJ,kBAAkB,GAAGK,IAAI,CAAC,SAAS,CAAC;EACtC,CAAC,CAAC,OAAOD,KAAK,EAAE;IACd;EAAA;AAEJ"}
1
+ {"version":3,"names":["noop","safeDynamicRequire","eval","error"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/node-runtime/safeDynamicRequire.ts"],"mappings":"AAAA;AACA;AACA;;AAEA,MAAMA,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AAErB,OAAO,IAAIC,kBAAkC,GAC3CD,IAAiC;AAEnC,IAAI;EACFC,kBAAkB,GAAGC,IAAI,CAAC,SAAS,CAAC;AACtC,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd;AAAA"}
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "1.0.31-0";
1
+ export declare const SDK_VERSION = "1.0.31-1";
2
2
  //# sourceMappingURL=sdk-version.d.ts.map
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SDK_VERSION = void 0;
7
- const SDK_VERSION = exports.SDK_VERSION = "1.0.31-0";
7
+ const SDK_VERSION = exports.SDK_VERSION = "1.0.31-1";
8
8
  //# sourceMappingURL=sdk-version.js.map
@@ -4,29 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.safeDynamicRequire = void 0;
7
- var _nodeModule = require("node:module");
8
- const noop = () => {};
9
-
10
7
  /**
11
- * Allows us to require node-specific code safely within bundlers.
12
- *
13
- * https://github.com/laverdet/isolated-vm/issues/423
14
- *
15
- * NOTE: this code should only ever run in `node`, and never in an `edge` runtime.
16
- * This is guaranteed by the fact that each SDK has separate bundles for each runtime.
17
- * However, it might still end up running in the `browser` if the `node` bundle is loaded in the
18
- * browser (which happens in many apps' dev mode, and certain other scenarios like Qwik's prod mode).
19
- * This is why we catch and ignore the error at the very end.
8
+ * Overriding usage of `import.meta` because the metro bundler in Expo 50+ does not like it.
20
9
  */
21
10
 
11
+ const noop = () => {};
22
12
  let safeDynamicRequire = exports.safeDynamicRequire = noop;
23
13
  try {
24
- exports.safeDynamicRequire = safeDynamicRequire = (0, _nodeModule.createRequire)(import.meta.url);
14
+ exports.safeDynamicRequire = safeDynamicRequire = eval('require');
25
15
  } catch (error) {
26
- try {
27
- exports.safeDynamicRequire = safeDynamicRequire = eval('require');
28
- } catch (error) {
29
- /* empty */
30
- }
16
+ /* empty */
31
17
  }
32
18
  //# sourceMappingURL=safeDynamicRequire.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_nodeModule","require","noop","safeDynamicRequire","exports","createRequire","import","meta","url","error","eval"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/node-runtime/safeDynamicRequire.ts"],"mappings":";;;;;;AAaA,IAAAA,WAAA,GAAAC,OAAA;AAbA,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,IAAIC,kBAAkC,GAAAC,OAAA,CAAAD,kBAAA,GAAKD,IAAmC;AACrF,IAAI;EACFE,OAAA,CAAAD,kBAAA,GAAAA,kBAAkB,GAAG,IAAAE,yBAAa,EAACC,MAAM,CAACC,IAAI,CAACC,GAAG,CAAC;AACrD,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd,IAAI;IACFL,OAAA,CAAAD,kBAAA,GAAAA,kBAAkB,GAAGO,IAAI,CAAC,SAAS,CAAC;EACtC,CAAC,CAAC,OAAOD,KAAK,EAAE;IACd;EAAA;AAEJ"}
1
+ {"version":3,"names":["noop","safeDynamicRequire","exports","eval","error"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/node-runtime/safeDynamicRequire.ts"],"mappings":";;;;;;AAAA;AACA;AACA;;AAEA,MAAMA,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AAEd,IAAIC,kBAAkC,GAAAC,OAAA,CAAAD,kBAAA,GAC3CD,IAAiC;AAEnC,IAAI;EACFE,OAAA,CAAAD,kBAAA,GAAAA,kBAAkB,GAAGE,IAAI,CAAC,SAAS,CAAC;AACtC,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd;AAAA"}
@@ -1,2 +1,2 @@
1
- export const SDK_VERSION = "1.0.31-0";
1
+ export const SDK_VERSION = "1.0.31-1";
2
2
  //# sourceMappingURL=sdk-version.js.map
@@ -1,25 +1,12 @@
1
- const noop = () => {};
2
-
3
1
  /**
4
- * Allows us to require node-specific code safely within bundlers.
5
- *
6
- * https://github.com/laverdet/isolated-vm/issues/423
7
- *
8
- * NOTE: this code should only ever run in `node`, and never in an `edge` runtime.
9
- * This is guaranteed by the fact that each SDK has separate bundles for each runtime.
10
- * However, it might still end up running in the `browser` if the `node` bundle is loaded in the
11
- * browser (which happens in many apps' dev mode, and certain other scenarios like Qwik's prod mode).
12
- * This is why we catch and ignore the error at the very end.
2
+ * Overriding usage of `import.meta` because the metro bundler in Expo 50+ does not like it.
13
3
  */
14
- import { createRequire } from 'node:module';
4
+
5
+ const noop = () => {};
15
6
  export let safeDynamicRequire = noop;
16
7
  try {
17
- safeDynamicRequire = createRequire(import.meta.url);
8
+ safeDynamicRequire = eval('require');
18
9
  } catch (error) {
19
- try {
20
- safeDynamicRequire = eval('require');
21
- } catch (error) {
22
- /* empty */
23
- }
10
+ /* empty */
24
11
  }
25
12
  //# sourceMappingURL=safeDynamicRequire.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["noop","createRequire","safeDynamicRequire","import","meta","url","error","eval"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/node-runtime/safeDynamicRequire.ts"],"mappings":"AAAA,MAAMA,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,aAAa,QAAQ,aAAa;AAC3C,OAAO,IAAIC,kBAAkC,GAAKF,IAAmC;AACrF,IAAI;EACFE,kBAAkB,GAAGD,aAAa,CAACE,MAAM,CAACC,IAAI,CAACC,GAAG,CAAC;AACrD,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd,IAAI;IACFJ,kBAAkB,GAAGK,IAAI,CAAC,SAAS,CAAC;EACtC,CAAC,CAAC,OAAOD,KAAK,EAAE;IACd;EAAA;AAEJ"}
1
+ {"version":3,"names":["noop","safeDynamicRequire","eval","error"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/node-runtime/safeDynamicRequire.ts"],"mappings":"AAAA;AACA;AACA;;AAEA,MAAMA,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AAErB,OAAO,IAAIC,kBAAkC,GAC3CD,IAAiC;AAEnC,IAAI;EACFC,kBAAkB,GAAGC,IAAI,CAAC,SAAS,CAAC;AACtC,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd;AAAA"}
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "1.0.31-0";
1
+ export declare const SDK_VERSION = "1.0.31-1";
2
2
  //# sourceMappingURL=sdk-version.d.ts.map
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SDK_VERSION = void 0;
7
- const SDK_VERSION = exports.SDK_VERSION = "1.0.31-0";
7
+ const SDK_VERSION = exports.SDK_VERSION = "1.0.31-1";
8
8
  //# sourceMappingURL=sdk-version.js.map
@@ -4,29 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.safeDynamicRequire = void 0;
7
- var _nodeModule = require("node:module");
8
- const noop = () => {};
9
-
10
7
  /**
11
- * Allows us to require node-specific code safely within bundlers.
12
- *
13
- * https://github.com/laverdet/isolated-vm/issues/423
14
- *
15
- * NOTE: this code should only ever run in `node`, and never in an `edge` runtime.
16
- * This is guaranteed by the fact that each SDK has separate bundles for each runtime.
17
- * However, it might still end up running in the `browser` if the `node` bundle is loaded in the
18
- * browser (which happens in many apps' dev mode, and certain other scenarios like Qwik's prod mode).
19
- * This is why we catch and ignore the error at the very end.
8
+ * Overriding usage of `import.meta` because the metro bundler in Expo 50+ does not like it.
20
9
  */
21
10
 
11
+ const noop = () => {};
22
12
  let safeDynamicRequire = exports.safeDynamicRequire = noop;
23
13
  try {
24
- exports.safeDynamicRequire = safeDynamicRequire = (0, _nodeModule.createRequire)(import.meta.url);
14
+ exports.safeDynamicRequire = safeDynamicRequire = eval('require');
25
15
  } catch (error) {
26
- try {
27
- exports.safeDynamicRequire = safeDynamicRequire = eval('require');
28
- } catch (error) {
29
- /* empty */
30
- }
16
+ /* empty */
31
17
  }
32
18
  //# sourceMappingURL=safeDynamicRequire.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_nodeModule","require","noop","safeDynamicRequire","exports","createRequire","import","meta","url","error","eval"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/node-runtime/safeDynamicRequire.ts"],"mappings":";;;;;;AAaA,IAAAA,WAAA,GAAAC,OAAA;AAbA,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,IAAIC,kBAAkC,GAAAC,OAAA,CAAAD,kBAAA,GAAKD,IAAmC;AACrF,IAAI;EACFE,OAAA,CAAAD,kBAAA,GAAAA,kBAAkB,GAAG,IAAAE,yBAAa,EAACC,MAAM,CAACC,IAAI,CAACC,GAAG,CAAC;AACrD,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd,IAAI;IACFL,OAAA,CAAAD,kBAAA,GAAAA,kBAAkB,GAAGO,IAAI,CAAC,SAAS,CAAC;EACtC,CAAC,CAAC,OAAOD,KAAK,EAAE;IACd;EAAA;AAEJ"}
1
+ {"version":3,"names":["noop","safeDynamicRequire","exports","eval","error"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/node-runtime/safeDynamicRequire.ts"],"mappings":";;;;;;AAAA;AACA;AACA;;AAEA,MAAMA,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AAEd,IAAIC,kBAAkC,GAAAC,OAAA,CAAAD,kBAAA,GAC3CD,IAAiC;AAEnC,IAAI;EACFE,OAAA,CAAAD,kBAAA,GAAAA,kBAAkB,GAAGE,IAAI,CAAC,SAAS,CAAC;AACtC,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd;AAAA"}
@@ -1,2 +1,2 @@
1
- export const SDK_VERSION = "1.0.31-0";
1
+ export const SDK_VERSION = "1.0.31-1";
2
2
  //# sourceMappingURL=sdk-version.js.map
@@ -1,25 +1,12 @@
1
- const noop = () => {};
2
-
3
1
  /**
4
- * Allows us to require node-specific code safely within bundlers.
5
- *
6
- * https://github.com/laverdet/isolated-vm/issues/423
7
- *
8
- * NOTE: this code should only ever run in `node`, and never in an `edge` runtime.
9
- * This is guaranteed by the fact that each SDK has separate bundles for each runtime.
10
- * However, it might still end up running in the `browser` if the `node` bundle is loaded in the
11
- * browser (which happens in many apps' dev mode, and certain other scenarios like Qwik's prod mode).
12
- * This is why we catch and ignore the error at the very end.
2
+ * Overriding usage of `import.meta` because the metro bundler in Expo 50+ does not like it.
13
3
  */
14
- import { createRequire } from 'node:module';
4
+
5
+ const noop = () => {};
15
6
  export let safeDynamicRequire = noop;
16
7
  try {
17
- safeDynamicRequire = createRequire(import.meta.url);
8
+ safeDynamicRequire = eval('require');
18
9
  } catch (error) {
19
- try {
20
- safeDynamicRequire = eval('require');
21
- } catch (error) {
22
- /* empty */
23
- }
10
+ /* empty */
24
11
  }
25
12
  //# sourceMappingURL=safeDynamicRequire.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["noop","createRequire","safeDynamicRequire","import","meta","url","error","eval"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/node-runtime/safeDynamicRequire.ts"],"mappings":"AAAA,MAAMA,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,aAAa,QAAQ,aAAa;AAC3C,OAAO,IAAIC,kBAAkC,GAAKF,IAAmC;AACrF,IAAI;EACFE,kBAAkB,GAAGD,aAAa,CAACE,MAAM,CAACC,IAAI,CAACC,GAAG,CAAC;AACrD,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd,IAAI;IACFJ,kBAAkB,GAAGK,IAAI,CAAC,SAAS,CAAC;EACtC,CAAC,CAAC,OAAOD,KAAK,EAAE;IACd;EAAA;AAEJ"}
1
+ {"version":3,"names":["noop","safeDynamicRequire","eval","error"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/node-runtime/safeDynamicRequire.ts"],"mappings":"AAAA;AACA;AACA;;AAEA,MAAMA,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AAErB,OAAO,IAAIC,kBAAkC,GAC3CD,IAAiC;AAEnC,IAAI;EACFC,kBAAkB,GAAGC,IAAI,CAAC,SAAS,CAAC;AACtC,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd;AAAA"}
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "1.0.31-0";
1
+ export declare const SDK_VERSION = "1.0.31-1";
2
2
  //# sourceMappingURL=sdk-version.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-react-native",
3
3
  "description": "Builder.io SDK for React Native",
4
- "version": "1.0.31-1",
4
+ "version": "1.0.31-2",
5
5
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/react-native",
6
6
  "repository": {
7
7
  "type": "git",
@@ -11,7 +11,6 @@
11
11
  "type": "module",
12
12
  "main": "lib/browser/commonjs/index.js",
13
13
  "module": "lib/browser/module/index.js",
14
- "react-native": "src/index.ts",
15
14
  "source": "src/index.ts",
16
15
  "types": "lib/browser/typescript/index.d.ts",
17
16
  "exports": {
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.0.31-0"
1
+ export const SDK_VERSION = "1.0.31-1"
@@ -1,24 +1,14 @@
1
- const noop = () => {};
2
-
3
1
  /**
4
- * Allows us to require node-specific code safely within bundlers.
5
- *
6
- * https://github.com/laverdet/isolated-vm/issues/423
7
- *
8
- * NOTE: this code should only ever run in `node`, and never in an `edge` runtime.
9
- * This is guaranteed by the fact that each SDK has separate bundles for each runtime.
10
- * However, it might still end up running in the `browser` if the `node` bundle is loaded in the
11
- * browser (which happens in many apps' dev mode, and certain other scenarios like Qwik's prod mode).
12
- * This is why we catch and ignore the error at the very end.
2
+ * Overriding usage of `import.meta` because the metro bundler in Expo 50+ does not like it.
13
3
  */
14
- import { createRequire } from 'node:module';
15
- export let safeDynamicRequire: typeof require = ((noop as unknown) as typeof require);
4
+
5
+ const noop = () => {};
6
+
7
+ export let safeDynamicRequire: typeof require =
8
+ noop as unknown as typeof require;
9
+
16
10
  try {
17
- safeDynamicRequire = createRequire(import.meta.url);
11
+ safeDynamicRequire = eval('require');
18
12
  } catch (error) {
19
- try {
20
- safeDynamicRequire = eval('require');
21
- } catch (error) {
22
- /* empty */
23
- }
24
- }
13
+ /* empty */
14
+ }