@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.esm.js CHANGED
@@ -123,7 +123,7 @@ function assertAllowedPropertyName(name) {
123
123
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
124
124
  }
125
125
 
126
- var version = "1.1.30-0";
126
+ var version = "1.1.30";
127
127
 
128
128
  var Subscription = /** @class */ (function () {
129
129
  function Subscription(listeners, listener) {
@@ -385,15 +385,12 @@ var Promise$1 = (typeof Promise !== 'undefined' ? Promise : TinyPromise);
385
385
 
386
386
  // Webpack workaround to conditionally require certain external modules
387
387
  // only on the server and not bundle them on the client
388
- var serverOnlyRequire;
389
- try {
388
+ var serverOnlyRequire = (function () { return null; });
389
+ if (typeof (globalThis === null || globalThis === void 0 ? void 0 : globalThis.require) === 'function' ||
390
+ (typeof window === 'undefined' && typeof require === 'function')) {
390
391
  // tslint:disable-next-line:no-eval
391
392
  serverOnlyRequire = eval('require');
392
393
  }
393
- catch (err) {
394
- // all good
395
- serverOnlyRequire = (function () { return null; });
396
- }
397
394
  var serverOnlyRequire$1 = serverOnlyRequire;
398
395
 
399
396
  function promiseResolve(value) {
@@ -683,7 +680,7 @@ var Animator = /** @class */ (function () {
683
680
  triggered &&
684
681
  !pendingAnimation &&
685
682
  !isScrolledIntoView(element)) {
686
- // we want to repeat the animation everytime the the element is out of vide and back again
683
+ // we want to repeat the animation every time the the element is out of view and back again
687
684
  triggered = false;
688
685
  assign(element.style, animation.steps[0].styles);
689
686
  }