@builder.io/sdk 1.1.30 → 1.1.31-0

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.cjs.js CHANGED
@@ -129,7 +129,7 @@ function assertAllowedPropertyName(name) {
129
129
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
130
130
  }
131
131
 
132
- var version = "1.1.30-1";
132
+ var version = "1.1.30";
133
133
 
134
134
  var Subscription = /** @class */ (function () {
135
135
  function Subscription(listeners, listener) {
@@ -391,15 +391,12 @@ var Promise$1 = (typeof Promise !== 'undefined' ? Promise : TinyPromise);
391
391
 
392
392
  // Webpack workaround to conditionally require certain external modules
393
393
  // only on the server and not bundle them on the client
394
- var serverOnlyRequire;
395
- try {
394
+ var serverOnlyRequire = (function () { return null; });
395
+ if (typeof (globalThis === null || globalThis === void 0 ? void 0 : globalThis.require) === 'function' ||
396
+ (typeof window === 'undefined' && typeof require === 'function')) {
396
397
  // tslint:disable-next-line:no-eval
397
398
  serverOnlyRequire = eval('require');
398
399
  }
399
- catch (err) {
400
- // all good
401
- serverOnlyRequire = (function () { return null; });
402
- }
403
400
  var serverOnlyRequire$1 = serverOnlyRequire;
404
401
 
405
402
  function promiseResolve(value) {