@builder.io/sdk 1.1.31-0 → 1.1.31-2
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 +10 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +10 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +20 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.d.ts +5 -0
- package/dist/src/builder.class.js +3 -0
- package/dist/src/builder.class.js.map +1 -1
- package/dist/src/functions/server-only-require.function.d.ts +2 -1
- package/dist/src/functions/server-only-require.function.js +7 -5
- package/dist/src/functions/server-only-require.function.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/interfaces/Input.md +1 -1
- package/package.json +1 -1
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.
|
|
132
|
+
var version = "1.1.31-1";
|
|
133
133
|
|
|
134
134
|
var Subscription = /** @class */ (function () {
|
|
135
135
|
function Subscription(listeners, listener) {
|
|
@@ -391,12 +391,15 @@ var Promise$1 = (typeof Promise !== 'undefined' ? Promise : TinyPromise);
|
|
|
391
391
|
|
|
392
392
|
// Webpack workaround to conditionally require certain external modules
|
|
393
393
|
// only on the server and not bundle them on the client
|
|
394
|
-
var serverOnlyRequire
|
|
395
|
-
|
|
396
|
-
(typeof window === 'undefined' && typeof require === 'function')) {
|
|
394
|
+
var serverOnlyRequire;
|
|
395
|
+
try {
|
|
397
396
|
// tslint:disable-next-line:no-eval
|
|
398
397
|
serverOnlyRequire = eval('require');
|
|
399
398
|
}
|
|
399
|
+
catch (err) {
|
|
400
|
+
// all good
|
|
401
|
+
serverOnlyRequire = (function () { return null; });
|
|
402
|
+
}
|
|
400
403
|
var serverOnlyRequire$1 = serverOnlyRequire;
|
|
401
404
|
|
|
402
405
|
function promiseResolve(value) {
|
|
@@ -2187,6 +2190,9 @@ var Builder = /** @class */ (function () {
|
|
|
2187
2190
|
}
|
|
2188
2191
|
return observable;
|
|
2189
2192
|
};
|
|
2193
|
+
Builder.prototype.requestUrl = function (url, options) {
|
|
2194
|
+
return fetch(url, options).then(function (res) { return res.json(); });
|
|
2195
|
+
};
|
|
2190
2196
|
Object.defineProperty(Builder.prototype, "host", {
|
|
2191
2197
|
get: function () {
|
|
2192
2198
|
switch (this.env) {
|