@builder.io/sdk 2.1.0 → 2.1.1
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 +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
throw new Error("Property name \"".concat(name, "\" is not allowed"));
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
var version = "2.0
|
|
155
|
+
var version = "2.1.1-0";
|
|
156
156
|
|
|
157
157
|
var Subscription = /** @class */ (function () {
|
|
158
158
|
function Subscription(listeners, listener) {
|
|
@@ -2642,7 +2642,7 @@
|
|
|
2642
2642
|
if (options === void 0) { options = {}; }
|
|
2643
2643
|
var instance = this;
|
|
2644
2644
|
if (!Builder.isBrowser) {
|
|
2645
|
-
instance = new Builder(options.apiKey || this.apiKey, options.req, options.res, false,
|
|
2645
|
+
instance = new Builder(options.apiKey || this.apiKey, options.req, options.res, false, options.authToken || this.authToken, options.apiVersion || this.apiVersion);
|
|
2646
2646
|
instance.setUserAttributes(this.getUserAttributes());
|
|
2647
2647
|
}
|
|
2648
2648
|
else {
|
|
@@ -2651,6 +2651,9 @@
|
|
|
2651
2651
|
if (options.apiKey && !this.apiKey) {
|
|
2652
2652
|
this.apiKey = options.apiKey;
|
|
2653
2653
|
}
|
|
2654
|
+
if (options.authToken && !this.authToken) {
|
|
2655
|
+
this.authToken = options.authToken;
|
|
2656
|
+
}
|
|
2654
2657
|
if (options.apiVersion && !this.apiVersion) {
|
|
2655
2658
|
this.apiVersion = options.apiVersion;
|
|
2656
2659
|
}
|