@builder.io/sdk 1.1.35 → 1.3.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
@@ -71,8 +71,7 @@
71
71
  });
72
72
  // tslint:disable-next-line
73
73
  element.data = String((called = ++called));
74
- }
75
- //# sourceMappingURL=next-tick.function.js.map
74
+ }
76
75
 
77
76
  var PROPERTY_NAME_DENY_LIST = Object.freeze(['__proto__', 'prototype', 'constructor']);
78
77
  // TODO: unit tests
@@ -151,10 +150,9 @@
151
150
  function assertAllowedPropertyName(name) {
152
151
  if (PROPERTY_NAME_DENY_LIST.indexOf(name) >= 0)
153
152
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
154
- }
155
- //# sourceMappingURL=query-string.class.js.map
153
+ }
156
154
 
157
- var version = "1.1.35";
155
+ var version = "1.2.0";
158
156
 
159
157
  var Subscription = /** @class */ (function () {
160
158
  function Subscription(listeners, listener) {
@@ -247,8 +245,7 @@
247
245
  return this.toPromise();
248
246
  };
249
247
  return BehaviorSubject;
250
- }());
251
- //# sourceMappingURL=observable.class.js.map
248
+ }());
252
249
 
253
250
  var State = {
254
251
  Pending: 'Pending',
@@ -413,8 +410,7 @@
413
410
  };
414
411
  return TinyPromise;
415
412
  }());
416
- var Promise$1 = (typeof Promise !== 'undefined' ? Promise : TinyPromise);
417
- //# sourceMappingURL=promise.class.js.map
413
+ var Promise$1 = (typeof Promise !== 'undefined' ? Promise : TinyPromise);
418
414
 
419
415
  // Webpack workaround to conditionally require certain external modules
420
416
  // only on the server and not bundle them on the client
@@ -427,8 +423,7 @@
427
423
  // all good
428
424
  serverOnlyRequire = (function () { return null; });
429
425
  }
430
- var serverOnlyRequire$1 = serverOnlyRequire;
431
- //# sourceMappingURL=server-only-require.function.js.map
426
+ var serverOnlyRequire$1 = serverOnlyRequire;
432
427
 
433
428
  function promiseResolve(value) {
434
429
  return new Promise$1(function (resolve) { return resolve(value); });
@@ -504,8 +499,7 @@
504
499
  }
505
500
  // Otherwise, use tiny-fetch.
506
501
  return _fetch !== null && _fetch !== void 0 ? _fetch : tinyFetch;
507
- }
508
- //# sourceMappingURL=fetch.function.js.map
502
+ }
509
503
 
510
504
  function assign(target) {
511
505
  var args = [];
@@ -526,8 +520,7 @@
526
520
  }
527
521
  }
528
522
  return to;
529
- }
530
- //# sourceMappingURL=assign.function.js.map
523
+ }
531
524
 
532
525
  function throttle(func, wait, options) {
533
526
  if (options === void 0) { options = {}; }
@@ -565,8 +558,7 @@
565
558
  }
566
559
  return result;
567
560
  };
568
- }
569
- //# sourceMappingURL=throttle.function.js.map
561
+ }
570
562
 
571
563
  var camelCaseToKebabCase = function (str) {
572
564
  return str ? str.replace(/([A-Z])/g, function (g) { return "-".concat(g[0].toLowerCase()); }) : '';
@@ -768,8 +760,7 @@
768
760
  });
769
761
  };
770
762
  return Animator;
771
- }());
772
- //# sourceMappingURL=animator.class.js.map
763
+ }());
773
764
 
774
765
  /**
775
766
  * Only gets one level up from hostname
@@ -782,8 +773,7 @@
782
773
  return parts.slice(1).join('.');
783
774
  }
784
775
  return host;
785
- }
786
- //# sourceMappingURL=get-top-level-domain.js.map
776
+ }
787
777
 
788
778
  /**
789
779
  * RegExp to match field-content in RFC 7230 sec 3.2
@@ -907,8 +897,7 @@
907
897
  }
908
898
  }
909
899
  headers.push(cookie.toHeader());
910
- }
911
- //# sourceMappingURL=cookies.class.js.map
900
+ }
912
901
 
913
902
  function omit(obj) {
914
903
  var values = [];
@@ -921,8 +910,7 @@
921
910
  delete newObject[key];
922
911
  }
923
912
  return newObject;
924
- }
925
- //# sourceMappingURL=omit.function.js.map
913
+ }
926
914
 
927
915
  /**
928
916
  * @credit https://stackoverflow.com/a/2117523
@@ -938,8 +926,7 @@
938
926
  */
939
927
  function uuid() {
940
928
  return uuidv4().replace(/-/g, '');
941
- }
942
- //# sourceMappingURL=uuid.js.map
929
+ }
943
930
 
944
931
  function emptyUrl() {
945
932
  return {
@@ -985,8 +972,7 @@
985
972
  out.path = "".concat(u.pathname).concat(u.search);
986
973
  out.pathname = u.pathname;
987
974
  return out;
988
- }
989
- //# sourceMappingURL=url.js.map
975
+ }
990
976
 
991
977
  function pad (hash, len) {
992
978
  while (hash.length < len) {
@@ -1072,11 +1058,9 @@
1072
1058
  if (err instanceof Error)
1073
1059
  return err;
1074
1060
  return new Error(String(err));
1075
- }
1076
- //# sourceMappingURL=to-error.js.map
1061
+ }
1077
1062
 
1078
- var DEFAULT_API_VERSION = 'v1';
1079
- //# sourceMappingURL=api-version.js.map
1063
+ var DEFAULT_API_VERSION = 'v1';
1080
1064
 
1081
1065
  function datePlusMinutes(minutes) {
1082
1066
  if (minutes === void 0) { minutes = 30; }
@@ -2641,7 +2625,7 @@
2641
2625
  if (options === void 0) { options = {}; }
2642
2626
  var instance = this;
2643
2627
  if (!Builder.isBrowser) {
2644
- instance = new Builder(options.apiKey || this.apiKey, options.req, options.res, false, null, options.apiVersion);
2628
+ instance = new Builder(options.apiKey || this.apiKey, options.req, options.res, false, null, options.apiVersion || this.apiVersion);
2645
2629
  instance.setUserAttributes(this.getUserAttributes());
2646
2630
  }
2647
2631
  else {
@@ -2706,14 +2690,10 @@
2706
2690
  Builder.isReact = false;
2707
2691
  Builder.overrideUserAttributes = {};
2708
2692
  return Builder;
2709
- }());
2710
- //# sourceMappingURL=builder.class.js.map
2693
+ }());
2711
2694
 
2712
2695
  var builder = new Builder(null, undefined, undefined, true);
2713
- Builder.singletonInstance = builder;
2714
- //# sourceMappingURL=builder.js.map
2715
-
2716
- //# sourceMappingURL=index.js.map
2696
+ Builder.singletonInstance = builder;
2717
2697
 
2718
2698
  exports.Builder = Builder;
2719
2699
  exports.BuilderComponent = BuilderComponent;