@builder.io/sdk 1.1.30-1 → 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.umd.js CHANGED
@@ -152,7 +152,7 @@
152
152
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
153
153
  }
154
154
 
155
- var version = "1.1.30-0";
155
+ var version = "1.1.30";
156
156
 
157
157
  var Subscription = /** @class */ (function () {
158
158
  function Subscription(listeners, listener) {
@@ -414,15 +414,12 @@
414
414
 
415
415
  // Webpack workaround to conditionally require certain external modules
416
416
  // only on the server and not bundle them on the client
417
- var serverOnlyRequire;
418
- try {
417
+ var serverOnlyRequire = (function () { return null; });
418
+ if (typeof (globalThis === null || globalThis === void 0 ? void 0 : globalThis.require) === 'function' ||
419
+ (typeof window === 'undefined' && typeof require === 'function')) {
419
420
  // tslint:disable-next-line:no-eval
420
421
  serverOnlyRequire = eval('require');
421
422
  }
422
- catch (err) {
423
- // all good
424
- serverOnlyRequire = (function () { return null; });
425
- }
426
423
  var serverOnlyRequire$1 = serverOnlyRequire;
427
424
 
428
425
  function promiseResolve(value) {
@@ -712,7 +709,7 @@
712
709
  triggered &&
713
710
  !pendingAnimation &&
714
711
  !isScrolledIntoView(element)) {
715
- // we want to repeat the animation everytime the the element is out of vide and back again
712
+ // we want to repeat the animation every time the the element is out of view and back again
716
713
  triggered = false;
717
714
  assign(element.style, animation.steps[0].styles);
718
715
  }