@builder.io/sdk 1.2.0 → 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
@@ -129,7 +129,7 @@ function assertAllowedPropertyName(name) {
129
129
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
130
130
  }
131
131
 
132
- var version = "1.1.35";
132
+ var version = "1.2.0";
133
133
 
134
134
  var Subscription = /** @class */ (function () {
135
135
  function Subscription(listeners, listener) {
@@ -969,7 +969,7 @@ function toError(err) {
969
969
  return new Error(String(err));
970
970
  }
971
971
 
972
- var DEFAULT_API_VERSION = 'v3';
972
+ var DEFAULT_API_VERSION = 'v1';
973
973
 
974
974
  function datePlusMinutes(minutes) {
975
975
  if (minutes === void 0) { minutes = 30; }
@@ -2534,7 +2534,7 @@ var Builder = /** @class */ (function () {
2534
2534
  if (options === void 0) { options = {}; }
2535
2535
  var instance = this;
2536
2536
  if (!Builder.isBrowser) {
2537
- 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);
2538
2538
  instance.setUserAttributes(this.getUserAttributes());
2539
2539
  }
2540
2540
  else {