@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.cjs.js CHANGED
@@ -48,8 +48,7 @@ function nextTick(fn) {
48
48
  });
49
49
  // tslint:disable-next-line
50
50
  element.data = String((called = ++called));
51
- }
52
- //# sourceMappingURL=next-tick.function.js.map
51
+ }
53
52
 
54
53
  var PROPERTY_NAME_DENY_LIST = Object.freeze(['__proto__', 'prototype', 'constructor']);
55
54
  // TODO: unit tests
@@ -128,10 +127,9 @@ var QueryString = /** @class */ (function () {
128
127
  function assertAllowedPropertyName(name) {
129
128
  if (PROPERTY_NAME_DENY_LIST.indexOf(name) >= 0)
130
129
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
131
- }
132
- //# sourceMappingURL=query-string.class.js.map
130
+ }
133
131
 
134
- var version = "1.1.35";
132
+ var version = "1.2.0";
135
133
 
136
134
  var Subscription = /** @class */ (function () {
137
135
  function Subscription(listeners, listener) {
@@ -224,8 +222,7 @@ var BehaviorSubject = /** @class */ (function () {
224
222
  return this.toPromise();
225
223
  };
226
224
  return BehaviorSubject;
227
- }());
228
- //# sourceMappingURL=observable.class.js.map
225
+ }());
229
226
 
230
227
  var State = {
231
228
  Pending: 'Pending',
@@ -390,8 +387,7 @@ var TinyPromise = /** @class */ (function () {
390
387
  };
391
388
  return TinyPromise;
392
389
  }());
393
- var Promise$1 = (typeof Promise !== 'undefined' ? Promise : TinyPromise);
394
- //# sourceMappingURL=promise.class.js.map
390
+ var Promise$1 = (typeof Promise !== 'undefined' ? Promise : TinyPromise);
395
391
 
396
392
  // Webpack workaround to conditionally require certain external modules
397
393
  // only on the server and not bundle them on the client
@@ -404,8 +400,7 @@ catch (err) {
404
400
  // all good
405
401
  serverOnlyRequire = (function () { return null; });
406
402
  }
407
- var serverOnlyRequire$1 = serverOnlyRequire;
408
- //# sourceMappingURL=server-only-require.function.js.map
403
+ var serverOnlyRequire$1 = serverOnlyRequire;
409
404
 
410
405
  function promiseResolve(value) {
411
406
  return new Promise$1(function (resolve) { return resolve(value); });
@@ -481,8 +476,7 @@ function getFetch() {
481
476
  }
482
477
  // Otherwise, use tiny-fetch.
483
478
  return _fetch !== null && _fetch !== void 0 ? _fetch : tinyFetch;
484
- }
485
- //# sourceMappingURL=fetch.function.js.map
479
+ }
486
480
 
487
481
  function assign(target) {
488
482
  var args = [];
@@ -503,8 +497,7 @@ function assign(target) {
503
497
  }
504
498
  }
505
499
  return to;
506
- }
507
- //# sourceMappingURL=assign.function.js.map
500
+ }
508
501
 
509
502
  function throttle(func, wait, options) {
510
503
  if (options === void 0) { options = {}; }
@@ -542,8 +535,7 @@ function throttle(func, wait, options) {
542
535
  }
543
536
  return result;
544
537
  };
545
- }
546
- //# sourceMappingURL=throttle.function.js.map
538
+ }
547
539
 
548
540
  var camelCaseToKebabCase = function (str) {
549
541
  return str ? str.replace(/([A-Z])/g, function (g) { return "-".concat(g[0].toLowerCase()); }) : '';
@@ -745,8 +737,7 @@ var Animator = /** @class */ (function () {
745
737
  });
746
738
  };
747
739
  return Animator;
748
- }());
749
- //# sourceMappingURL=animator.class.js.map
740
+ }());
750
741
 
751
742
  /**
752
743
  * Only gets one level up from hostname
@@ -759,8 +750,7 @@ function getTopLevelDomain(host) {
759
750
  return parts.slice(1).join('.');
760
751
  }
761
752
  return host;
762
- }
763
- //# sourceMappingURL=get-top-level-domain.js.map
753
+ }
764
754
 
765
755
  /**
766
756
  * RegExp to match field-content in RFC 7230 sec 3.2
@@ -884,8 +874,7 @@ function pushCookie(headers, cookie) {
884
874
  }
885
875
  }
886
876
  headers.push(cookie.toHeader());
887
- }
888
- //# sourceMappingURL=cookies.class.js.map
877
+ }
889
878
 
890
879
  function omit(obj) {
891
880
  var values = [];
@@ -898,8 +887,7 @@ function omit(obj) {
898
887
  delete newObject[key];
899
888
  }
900
889
  return newObject;
901
- }
902
- //# sourceMappingURL=omit.function.js.map
890
+ }
903
891
 
904
892
  /**
905
893
  * @credit https://stackoverflow.com/a/2117523
@@ -915,8 +903,7 @@ function uuidv4() {
915
903
  */
916
904
  function uuid() {
917
905
  return uuidv4().replace(/-/g, '');
918
- }
919
- //# sourceMappingURL=uuid.js.map
906
+ }
920
907
 
921
908
  function emptyUrl() {
922
909
  return {
@@ -962,8 +949,7 @@ function parse(url) {
962
949
  out.path = "".concat(u.pathname).concat(u.search);
963
950
  out.pathname = u.pathname;
964
951
  return out;
965
- }
966
- //# sourceMappingURL=url.js.map
952
+ }
967
953
 
968
954
  /**
969
955
  * Safe conversion to error type. Intended to be used in catch blocks where the
@@ -981,11 +967,9 @@ function toError(err) {
981
967
  if (err instanceof Error)
982
968
  return err;
983
969
  return new Error(String(err));
984
- }
985
- //# sourceMappingURL=to-error.js.map
970
+ }
986
971
 
987
- var DEFAULT_API_VERSION = 'v1';
988
- //# sourceMappingURL=api-version.js.map
972
+ var DEFAULT_API_VERSION = 'v1';
989
973
 
990
974
  function datePlusMinutes(minutes) {
991
975
  if (minutes === void 0) { minutes = 30; }
@@ -2550,7 +2534,7 @@ var Builder = /** @class */ (function () {
2550
2534
  if (options === void 0) { options = {}; }
2551
2535
  var instance = this;
2552
2536
  if (!Builder.isBrowser) {
2553
- instance = new Builder(options.apiKey || this.apiKey, options.req, options.res, false, null, options.apiVersion);
2537
+ instance = new Builder(options.apiKey || this.apiKey, options.req, options.res, false, null, options.apiVersion || this.apiVersion);
2554
2538
  instance.setUserAttributes(this.getUserAttributes());
2555
2539
  }
2556
2540
  else {
@@ -2615,14 +2599,10 @@ var Builder = /** @class */ (function () {
2615
2599
  Builder.isReact = false;
2616
2600
  Builder.overrideUserAttributes = {};
2617
2601
  return Builder;
2618
- }());
2619
- //# sourceMappingURL=builder.class.js.map
2602
+ }());
2620
2603
 
2621
2604
  var builder = new Builder(null, undefined, undefined, true);
2622
- Builder.singletonInstance = builder;
2623
- //# sourceMappingURL=builder.js.map
2624
-
2625
- //# sourceMappingURL=index.js.map
2605
+ Builder.singletonInstance = builder;
2626
2606
 
2627
2607
  exports.Builder = Builder;
2628
2608
  exports.BuilderComponent = BuilderComponent;