@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.browser.js +5 -2
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +5 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.d.ts +1 -0
- package/dist/src/builder.class.js +4 -1
- package/dist/src/builder.class.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
package/dist/index.cjs.js
CHANGED
|
@@ -126,7 +126,7 @@ function assertAllowedPropertyName(name) {
|
|
|
126
126
|
throw new Error("Property name \"".concat(name, "\" is not allowed"));
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
var version = "2.0
|
|
129
|
+
var version = "2.1.0";
|
|
130
130
|
|
|
131
131
|
var Subscription = /** @class */ (function () {
|
|
132
132
|
function Subscription(listeners, listener) {
|
|
@@ -2548,7 +2548,7 @@ var Builder = /** @class */ (function () {
|
|
|
2548
2548
|
if (options === void 0) { options = {}; }
|
|
2549
2549
|
var instance = this;
|
|
2550
2550
|
if (!Builder.isBrowser) {
|
|
2551
|
-
instance = new Builder(options.apiKey || this.apiKey, options.req, options.res, false,
|
|
2551
|
+
instance = new Builder(options.apiKey || this.apiKey, options.req, options.res, false, options.authToken || this.authToken, options.apiVersion || this.apiVersion);
|
|
2552
2552
|
instance.setUserAttributes(this.getUserAttributes());
|
|
2553
2553
|
}
|
|
2554
2554
|
else {
|
|
@@ -2557,6 +2557,9 @@ var Builder = /** @class */ (function () {
|
|
|
2557
2557
|
if (options.apiKey && !this.apiKey) {
|
|
2558
2558
|
this.apiKey = options.apiKey;
|
|
2559
2559
|
}
|
|
2560
|
+
if (options.authToken && !this.authToken) {
|
|
2561
|
+
this.authToken = options.authToken;
|
|
2562
|
+
}
|
|
2560
2563
|
if (options.apiVersion && !this.apiVersion) {
|
|
2561
2564
|
this.apiVersion = options.apiVersion;
|
|
2562
2565
|
}
|