@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.esm.js CHANGED
@@ -42,8 +42,7 @@ function nextTick(fn) {
42
42
  });
43
43
  // tslint:disable-next-line
44
44
  element.data = String((called = ++called));
45
- }
46
- //# sourceMappingURL=next-tick.function.js.map
45
+ }
47
46
 
48
47
  var PROPERTY_NAME_DENY_LIST = Object.freeze(['__proto__', 'prototype', 'constructor']);
49
48
  // TODO: unit tests
@@ -122,10 +121,9 @@ var QueryString = /** @class */ (function () {
122
121
  function assertAllowedPropertyName(name) {
123
122
  if (PROPERTY_NAME_DENY_LIST.indexOf(name) >= 0)
124
123
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
125
- }
126
- //# sourceMappingURL=query-string.class.js.map
124
+ }
127
125
 
128
- var version = "1.1.35";
126
+ var version = "1.2.0";
129
127
 
130
128
  var Subscription = /** @class */ (function () {
131
129
  function Subscription(listeners, listener) {
@@ -218,8 +216,7 @@ var BehaviorSubject = /** @class */ (function () {
218
216
  return this.toPromise();
219
217
  };
220
218
  return BehaviorSubject;
221
- }());
222
- //# sourceMappingURL=observable.class.js.map
219
+ }());
223
220
 
224
221
  var State = {
225
222
  Pending: 'Pending',
@@ -384,8 +381,7 @@ var TinyPromise = /** @class */ (function () {
384
381
  };
385
382
  return TinyPromise;
386
383
  }());
387
- var Promise$1 = (typeof Promise !== 'undefined' ? Promise : TinyPromise);
388
- //# sourceMappingURL=promise.class.js.map
384
+ var Promise$1 = (typeof Promise !== 'undefined' ? Promise : TinyPromise);
389
385
 
390
386
  // Webpack workaround to conditionally require certain external modules
391
387
  // only on the server and not bundle them on the client
@@ -398,8 +394,7 @@ catch (err) {
398
394
  // all good
399
395
  serverOnlyRequire = (function () { return null; });
400
396
  }
401
- var serverOnlyRequire$1 = serverOnlyRequire;
402
- //# sourceMappingURL=server-only-require.function.js.map
397
+ var serverOnlyRequire$1 = serverOnlyRequire;
403
398
 
404
399
  function promiseResolve(value) {
405
400
  return new Promise$1(function (resolve) { return resolve(value); });
@@ -475,8 +470,7 @@ function getFetch() {
475
470
  }
476
471
  // Otherwise, use tiny-fetch.
477
472
  return _fetch !== null && _fetch !== void 0 ? _fetch : tinyFetch;
478
- }
479
- //# sourceMappingURL=fetch.function.js.map
473
+ }
480
474
 
481
475
  function assign(target) {
482
476
  var args = [];
@@ -497,8 +491,7 @@ function assign(target) {
497
491
  }
498
492
  }
499
493
  return to;
500
- }
501
- //# sourceMappingURL=assign.function.js.map
494
+ }
502
495
 
503
496
  function throttle(func, wait, options) {
504
497
  if (options === void 0) { options = {}; }
@@ -536,8 +529,7 @@ function throttle(func, wait, options) {
536
529
  }
537
530
  return result;
538
531
  };
539
- }
540
- //# sourceMappingURL=throttle.function.js.map
532
+ }
541
533
 
542
534
  var camelCaseToKebabCase = function (str) {
543
535
  return str ? str.replace(/([A-Z])/g, function (g) { return "-".concat(g[0].toLowerCase()); }) : '';
@@ -739,8 +731,7 @@ var Animator = /** @class */ (function () {
739
731
  });
740
732
  };
741
733
  return Animator;
742
- }());
743
- //# sourceMappingURL=animator.class.js.map
734
+ }());
744
735
 
745
736
  /**
746
737
  * Only gets one level up from hostname
@@ -753,8 +744,7 @@ function getTopLevelDomain(host) {
753
744
  return parts.slice(1).join('.');
754
745
  }
755
746
  return host;
756
- }
757
- //# sourceMappingURL=get-top-level-domain.js.map
747
+ }
758
748
 
759
749
  /**
760
750
  * RegExp to match field-content in RFC 7230 sec 3.2
@@ -878,8 +868,7 @@ function pushCookie(headers, cookie) {
878
868
  }
879
869
  }
880
870
  headers.push(cookie.toHeader());
881
- }
882
- //# sourceMappingURL=cookies.class.js.map
871
+ }
883
872
 
884
873
  function omit(obj) {
885
874
  var values = [];
@@ -892,8 +881,7 @@ function omit(obj) {
892
881
  delete newObject[key];
893
882
  }
894
883
  return newObject;
895
- }
896
- //# sourceMappingURL=omit.function.js.map
884
+ }
897
885
 
898
886
  /**
899
887
  * @credit https://stackoverflow.com/a/2117523
@@ -909,8 +897,7 @@ function uuidv4() {
909
897
  */
910
898
  function uuid() {
911
899
  return uuidv4().replace(/-/g, '');
912
- }
913
- //# sourceMappingURL=uuid.js.map
900
+ }
914
901
 
915
902
  function emptyUrl() {
916
903
  return {
@@ -956,8 +943,7 @@ function parse(url) {
956
943
  out.path = "".concat(u.pathname).concat(u.search);
957
944
  out.pathname = u.pathname;
958
945
  return out;
959
- }
960
- //# sourceMappingURL=url.js.map
946
+ }
961
947
 
962
948
  /**
963
949
  * Safe conversion to error type. Intended to be used in catch blocks where the
@@ -975,11 +961,9 @@ function toError(err) {
975
961
  if (err instanceof Error)
976
962
  return err;
977
963
  return new Error(String(err));
978
- }
979
- //# sourceMappingURL=to-error.js.map
964
+ }
980
965
 
981
- var DEFAULT_API_VERSION = 'v1';
982
- //# sourceMappingURL=api-version.js.map
966
+ var DEFAULT_API_VERSION = 'v1';
983
967
 
984
968
  function datePlusMinutes(minutes) {
985
969
  if (minutes === void 0) { minutes = 30; }
@@ -2544,7 +2528,7 @@ var Builder = /** @class */ (function () {
2544
2528
  if (options === void 0) { options = {}; }
2545
2529
  var instance = this;
2546
2530
  if (!Builder.isBrowser) {
2547
- instance = new Builder(options.apiKey || this.apiKey, options.req, options.res, false, null, options.apiVersion);
2531
+ instance = new Builder(options.apiKey || this.apiKey, options.req, options.res, false, null, options.apiVersion || this.apiVersion);
2548
2532
  instance.setUserAttributes(this.getUserAttributes());
2549
2533
  }
2550
2534
  else {
@@ -2609,14 +2593,10 @@ var Builder = /** @class */ (function () {
2609
2593
  Builder.isReact = false;
2610
2594
  Builder.overrideUserAttributes = {};
2611
2595
  return Builder;
2612
- }());
2613
- //# sourceMappingURL=builder.class.js.map
2596
+ }());
2614
2597
 
2615
2598
  var builder = new Builder(null, undefined, undefined, true);
2616
- Builder.singletonInstance = builder;
2617
- //# sourceMappingURL=builder.js.map
2618
-
2619
- //# sourceMappingURL=index.js.map
2599
+ Builder.singletonInstance = builder;
2620
2600
 
2621
2601
  export { Builder, BuilderComponent, isBrowser, BehaviorSubject, Subscription, builder };
2622
2602
  //# sourceMappingURL=index.esm.js.map