@builder.io/react 2.0.11-0 → 2.0.11-1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/react",
3
- "version": "2.0.10",
3
+ "version": "2.0.11-0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/builder-react.cjs.js",
@@ -123,7 +123,7 @@
123
123
  "react-dom": ">=16.8.0"
124
124
  },
125
125
  "dependencies": {
126
- "@builder.io/sdk": "^1.1.30",
126
+ "@builder.io/sdk": "^1.1.31-0",
127
127
  "@emotion/core": "^10.0.17",
128
128
  "hash-sum": "^2.0.0",
129
129
  "preact": "^10.1.0",
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.safeDynamicRequire = void 0;
4
4
  var sdk_1 = require("@builder.io/sdk");
5
- var is_eval_supported_1 = require("./is-eval-supported");
6
5
  var noop = function () { return null; };
7
6
  /*
8
7
  * The if condition below used to be
@@ -25,8 +24,8 @@ var noop = function () { return null; };
25
24
  * 1. Node -> globalThis.require does not work
26
25
  * 2. Cloudflare edge -> only globalThis.require works
27
26
  */
28
- if ((0, is_eval_supported_1.isEvalSupported)() && (typeof (globalThis === null || globalThis === void 0 ? void 0 : globalThis.require) === 'function' ||
29
- (sdk_1.Builder.isServer && typeof require === 'function'))) {
27
+ if (typeof (globalThis === null || globalThis === void 0 ? void 0 : globalThis.require) === 'function' ||
28
+ (sdk_1.Builder.isServer && typeof require === 'function')) {
30
29
  exports.safeDynamicRequire = eval('require');
31
30
  }
32
31
  exports.safeDynamicRequire !== null && exports.safeDynamicRequire !== void 0 ? exports.safeDynamicRequire : (exports.safeDynamicRequire = noop);
@@ -1 +1 @@
1
- {"version":3,"file":"safe-dynamic-require.js","sourceRoot":"","sources":["../../../../src/functions/safe-dynamic-require.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,uCAA0C;AAC1C,yDAAsD;AAEtD,IAAM,IAAI,GAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAC;AAKxB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,IAAK,IAAA,mCAAe,GAAE,IAAI,CACxB,OAAO,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,CAAA,KAAK,UAAU;IACzC,CAAC,aAAO,CAAC,QAAQ,IAAI,OAAO,OAAO,KAAK,UAAU,CAAC,CACpD,EAAE;IACD,0BAAkB,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;CACtC;AAED,0BAAkB,aAAlB,0BAAkB,cAAlB,0BAAkB,IAAlB,0BAAkB,GAAK,IAAW,EAAC"}
1
+ {"version":3,"file":"safe-dynamic-require.js","sourceRoot":"","sources":["../../../../src/functions/safe-dynamic-require.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,uCAA0C;AAE1C,IAAM,IAAI,GAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAC;AAKxB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,IACE,OAAO,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,CAAA,KAAK,UAAU;IACzC,CAAC,aAAO,CAAC,QAAQ,IAAI,OAAO,OAAO,KAAK,UAAU,CAAC,EACnD;IACA,0BAAkB,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;CACtC;AAED,0BAAkB,aAAlB,0BAAkB,cAAlB,0BAAkB,IAAlB,0BAAkB,GAAK,IAAW,EAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/react",
3
- "version": "2.0.11-0",
3
+ "version": "2.0.11-1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/builder-react.cjs.js",
@@ -123,7 +123,7 @@
123
123
  "react-dom": ">=16.8.0"
124
124
  },
125
125
  "dependencies": {
126
- "@builder.io/sdk": "^1.1.30",
126
+ "@builder.io/sdk": "^1.1.31-0",
127
127
  "@emotion/core": "^10.0.17",
128
128
  "hash-sum": "^2.0.0",
129
129
  "preact": "^10.1.0",
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  import { Builder } from '@builder.io/sdk';
4
- import { isEvalSupported } from './is-eval-supported';
5
4
 
6
5
  const noop = () => null;
7
6
  // Allow us to require things dynamically safe from webpack bundling
@@ -29,10 +28,10 @@ export let safeDynamicRequire: typeof require;
29
28
  * 1. Node -> globalThis.require does not work
30
29
  * 2. Cloudflare edge -> only globalThis.require works
31
30
  */
32
- if ( isEvalSupported() && (
31
+ if (
33
32
  typeof globalThis?.require === 'function' ||
34
33
  (Builder.isServer && typeof require === 'function')
35
- )) {
34
+ ) {
36
35
  safeDynamicRequire = eval('require');
37
36
  }
38
37