@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.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +4 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +14 -11
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.js +3 -0
- package/dist/src/builder.class.js.map +1 -1
- package/dist/src/types/element.d.ts +4 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -123,7 +123,7 @@ function assertAllowedPropertyName(name) {
|
|
|
123
123
|
throw new Error("Property name \"".concat(name, "\" is not allowed"));
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
var version = "1.1.31
|
|
126
|
+
var version = "1.1.31";
|
|
127
127
|
|
|
128
128
|
var Subscription = /** @class */ (function () {
|
|
129
129
|
function Subscription(listeners, listener) {
|
|
@@ -2184,6 +2184,9 @@ var Builder = /** @class */ (function () {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
return observable;
|
|
2186
2186
|
};
|
|
2187
|
+
// this is needed to satisfy the Angular SDK, which used to rely on the more complex version of `requestUrl`.
|
|
2188
|
+
// even though we only use `fetch()` now, we prefer to keep the old behavior and use the `fetch` that comes from
|
|
2189
|
+
// the core SDK for consistency
|
|
2187
2190
|
Builder.prototype.requestUrl = function (url, options) {
|
|
2188
2191
|
return fetch(url, options).then(function (res) { return res.json(); });
|
|
2189
2192
|
};
|