@builder.io/sdk 1.1.31-2 → 1.1.32

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.31-1";
132
+ var version = "1.1.31";
133
133
 
134
134
  var Subscription = /** @class */ (function () {
135
135
  function Subscription(listeners, listener) {
@@ -2190,6 +2190,9 @@ var Builder = /** @class */ (function () {
2190
2190
  }
2191
2191
  return observable;
2192
2192
  };
2193
+ // this is needed to satisfy the Angular SDK, which used to rely on the more complex version of `requestUrl`.
2194
+ // even though we only use `fetch()` now, we prefer to keep the old behavior and use the `fetch` that comes from
2195
+ // the core SDK for consistency
2193
2196
  Builder.prototype.requestUrl = function (url, options) {
2194
2197
  return fetch(url, options).then(function (res) { return res.json(); });
2195
2198
  };