@builder.io/sdk 2.0.5-0 → 2.0.5
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 +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +3 -2
- package/dist/src/builder.class.d.ts +1 -0
- package/dist/src/builder.class.js +2 -2
- package/dist/src/builder.class.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -3
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.
|
|
155
|
+
var version = "2.0.5-0";
|
|
156
156
|
|
|
157
157
|
var Subscription = /** @class */ (function () {
|
|
158
158
|
function Subscription(listeners, listener) {
|
|
@@ -2332,7 +2332,7 @@
|
|
|
2332
2332
|
// even though we only use `fetch()` now, we prefer to keep the old behavior and use the `fetch` that comes from
|
|
2333
2333
|
// the core SDK for consistency
|
|
2334
2334
|
Builder.prototype.requestUrl = function (url, options) {
|
|
2335
|
-
return getFetch()(url, options).then(function (res) { return res.json(); });
|
|
2335
|
+
return getFetch()(url, __assign({ next: __assign({ revalidate: 1 }, options === null || options === void 0 ? void 0 : options.next) }, options)).then(function (res) { return res.json(); });
|
|
2336
2336
|
};
|
|
2337
2337
|
Object.defineProperty(Builder.prototype, "host", {
|
|
2338
2338
|
get: function () {
|
|
@@ -2497,7 +2497,7 @@
|
|
|
2497
2497
|
}
|
|
2498
2498
|
var queryStr = QueryString.stringifyDeep(queryParams);
|
|
2499
2499
|
var format = queryParams.format;
|
|
2500
|
-
var requestOptions = { headers: {} };
|
|
2500
|
+
var requestOptions = { headers: {}, next: { revalidate: 1 } };
|
|
2501
2501
|
if (this.authToken) {
|
|
2502
2502
|
requestOptions.headers = __assign(__assign({}, requestOptions.headers), { Authorization: "Bearer ".concat(this.authToken) });
|
|
2503
2503
|
}
|