@builder.io/sdk 2.1.0 → 2.1.1-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
@@ -118,7 +118,7 @@ function assertAllowedPropertyName(name) {
118
118
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
119
119
  }
120
120
 
121
- var version = "2.0.8";
121
+ var version = "2.1.0";
122
122
 
123
123
  var Subscription = /** @class */ (function () {
124
124
  function Subscription(listeners, listener) {
@@ -2540,7 +2540,7 @@ var Builder = /** @class */ (function () {
2540
2540
  if (options === void 0) { options = {}; }
2541
2541
  var instance = this;
2542
2542
  if (!Builder.isBrowser) {
2543
- instance = new Builder(options.apiKey || this.apiKey, options.req, options.res, false, null, options.apiVersion || this.apiVersion);
2543
+ instance = new Builder(options.apiKey || this.apiKey, options.req, options.res, false, options.authToken || this.authToken, options.apiVersion || this.apiVersion);
2544
2544
  instance.setUserAttributes(this.getUserAttributes());
2545
2545
  }
2546
2546
  else {
@@ -2549,6 +2549,9 @@ var Builder = /** @class */ (function () {
2549
2549
  if (options.apiKey && !this.apiKey) {
2550
2550
  this.apiKey = options.apiKey;
2551
2551
  }
2552
+ if (options.authToken && !this.authToken) {
2553
+ this.authToken = options.authToken;
2554
+ }
2552
2555
  if (options.apiVersion && !this.apiVersion) {
2553
2556
  this.apiVersion = options.apiVersion;
2554
2557
  }