@builder.io/sdk 2.0.5 → 2.0.6

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.umd.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.5-0";
155
+ var version = "2.0.5";
156
156
 
157
157
  var Subscription = /** @class */ (function () {
158
158
  function Subscription(listeners, listener) {
@@ -189,9 +189,18 @@
189
189
  // TODO: follow minimal basic spec: https://github.com/tc39/proposal-observable
190
190
  var BehaviorSubject = /** @class */ (function () {
191
191
  function BehaviorSubject(value) {
192
+ var _this = this;
192
193
  this.value = value;
193
194
  this.listeners = [];
194
195
  this.errorListeners = [];
196
+ this.then = function () {
197
+ var _a;
198
+ var args = [];
199
+ for (var _i = 0; _i < arguments.length; _i++) {
200
+ args[_i] = arguments[_i];
201
+ }
202
+ return (_a = _this.toPromise()).then.apply(_a, args);
203
+ };
195
204
  }
196
205
  BehaviorSubject.prototype.next = function (value) {
197
206
  this.value = value;