@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.
- package/lib/browser/commonjs/constants/sdk-version.js +1 -1
- package/lib/browser/commonjs/functions/evaluate/node-runtime/safeDynamicRequire.js +4 -18
- package/lib/browser/commonjs/functions/evaluate/node-runtime/safeDynamicRequire.js.map +1 -1
- package/lib/browser/module/constants/sdk-version.js +1 -1
- package/lib/browser/module/functions/evaluate/node-runtime/safeDynamicRequire.js +5 -18
- package/lib/browser/module/functions/evaluate/node-runtime/safeDynamicRequire.js.map +1 -1
- package/lib/browser/typescript/constants/sdk-version.d.ts +1 -1
- package/lib/edge/commonjs/constants/sdk-version.js +1 -1
- package/lib/edge/commonjs/functions/evaluate/node-runtime/safeDynamicRequire.js +4 -18
- package/lib/edge/commonjs/functions/evaluate/node-runtime/safeDynamicRequire.js.map +1 -1
- package/lib/edge/module/constants/sdk-version.js +1 -1
- package/lib/edge/module/functions/evaluate/node-runtime/safeDynamicRequire.js +5 -18
- package/lib/edge/module/functions/evaluate/node-runtime/safeDynamicRequire.js.map +1 -1
- package/lib/edge/typescript/constants/sdk-version.d.ts +1 -1
- package/lib/node/commonjs/constants/sdk-version.js +1 -1
- package/lib/node/commonjs/functions/evaluate/node-runtime/safeDynamicRequire.js +4 -18
- package/lib/node/commonjs/functions/evaluate/node-runtime/safeDynamicRequire.js.map +1 -1
- package/lib/node/module/constants/sdk-version.js +1 -1
- package/lib/node/module/functions/evaluate/node-runtime/safeDynamicRequire.js +5 -18
- package/lib/node/module/functions/evaluate/node-runtime/safeDynamicRequire.js.map +1 -1
- package/lib/node/typescript/constants/sdk-version.d.ts +1 -1
- package/package.json +1 -2
- package/src/constants/sdk-version.ts +1 -1
- package/src/functions/evaluate/node-runtime/safeDynamicRequire.ts +10 -20
|
@@ -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
|
-
*
|
|
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 = (
|
|
14
|
+
exports.safeDynamicRequire = safeDynamicRequire = eval('require');
|
|
25
15
|
} catch (error) {
|
|
26
|
-
|
|
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":["
|
|
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-
|
|
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
|
-
*
|
|
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
|
-
|
|
4
|
+
|
|
5
|
+
const noop = () => {};
|
|
15
6
|
export let safeDynamicRequire = noop;
|
|
16
7
|
try {
|
|
17
|
-
safeDynamicRequire =
|
|
8
|
+
safeDynamicRequire = eval('require');
|
|
18
9
|
} catch (error) {
|
|
19
|
-
|
|
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","
|
|
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-
|
|
1
|
+
export declare const SDK_VERSION = "1.0.31-1";
|
|
2
2
|
//# sourceMappingURL=sdk-version.d.ts.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
|
-
*
|
|
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 = (
|
|
14
|
+
exports.safeDynamicRequire = safeDynamicRequire = eval('require');
|
|
25
15
|
} catch (error) {
|
|
26
|
-
|
|
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":["
|
|
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-
|
|
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
|
-
*
|
|
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
|
-
|
|
4
|
+
|
|
5
|
+
const noop = () => {};
|
|
15
6
|
export let safeDynamicRequire = noop;
|
|
16
7
|
try {
|
|
17
|
-
safeDynamicRequire =
|
|
8
|
+
safeDynamicRequire = eval('require');
|
|
18
9
|
} catch (error) {
|
|
19
|
-
|
|
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","
|
|
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-
|
|
1
|
+
export declare const SDK_VERSION = "1.0.31-1";
|
|
2
2
|
//# sourceMappingURL=sdk-version.d.ts.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
|
-
*
|
|
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 = (
|
|
14
|
+
exports.safeDynamicRequire = safeDynamicRequire = eval('require');
|
|
25
15
|
} catch (error) {
|
|
26
|
-
|
|
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":["
|
|
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-
|
|
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
|
-
*
|
|
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
|
-
|
|
4
|
+
|
|
5
|
+
const noop = () => {};
|
|
15
6
|
export let safeDynamicRequire = noop;
|
|
16
7
|
try {
|
|
17
|
-
safeDynamicRequire =
|
|
8
|
+
safeDynamicRequire = eval('require');
|
|
18
9
|
} catch (error) {
|
|
19
|
-
|
|
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","
|
|
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-
|
|
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-
|
|
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-
|
|
1
|
+
export const SDK_VERSION = "1.0.31-1"
|
|
@@ -1,24 +1,14 @@
|
|
|
1
|
-
const noop = () => {};
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
*
|
|
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
|
-
|
|
15
|
-
|
|
4
|
+
|
|
5
|
+
const noop = () => {};
|
|
6
|
+
|
|
7
|
+
export let safeDynamicRequire: typeof require =
|
|
8
|
+
noop as unknown as typeof require;
|
|
9
|
+
|
|
16
10
|
try {
|
|
17
|
-
safeDynamicRequire =
|
|
11
|
+
safeDynamicRequire = eval('require');
|
|
18
12
|
} catch (error) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} catch (error) {
|
|
22
|
-
/* empty */
|
|
23
|
-
}
|
|
24
|
-
}
|
|
13
|
+
/* empty */
|
|
14
|
+
}
|