@builder.io/sdk 2.0.4 → 2.0.5-0
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/CHANGELOG.md +3 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +12 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +12 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +3 -4
- package/dist/src/builder.class.d.ts +10 -0
- package/dist/src/builder.class.js +11 -0
- package/dist/src/builder.class.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/coverage/clover.xml +0 -155
- package/coverage/coverage-final.json +0 -3
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -131
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/classes/index.html +0 -116
- package/coverage/lcov-report/src/classes/query-string.class.ts.html +0 -328
- package/coverage/lcov-report/src/index.html +0 -116
- package/coverage/lcov-report/src/url.ts.html +0 -253
- package/coverage/lcov.info +0 -238
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 = "2.0.4
|
|
132
|
+
var version = "2.0.4";
|
|
133
133
|
|
|
134
134
|
var Subscription = /** @class */ (function () {
|
|
135
135
|
function Subscription(listeners, listener) {
|
|
@@ -1271,6 +1271,17 @@ var Builder = /** @class */ (function () {
|
|
|
1271
1271
|
Builder.registerTrustedHost = function (host) {
|
|
1272
1272
|
this.trustedHosts.push(host);
|
|
1273
1273
|
};
|
|
1274
|
+
/**
|
|
1275
|
+
* @param context @type {import('isolated-vm').Context}
|
|
1276
|
+
* Use this function to control the execution context of custom code on the server.
|
|
1277
|
+
* const ivm = require('isolated-vm');
|
|
1278
|
+
* const isolate = new ivm.Isolate({ memoryLimit: 128 });
|
|
1279
|
+
* const context = isolate.createContextSync();
|
|
1280
|
+
* Builder.setServerContext(context);
|
|
1281
|
+
*/
|
|
1282
|
+
Builder.setServerContext = function (context) {
|
|
1283
|
+
this.serverContext = context;
|
|
1284
|
+
};
|
|
1274
1285
|
Builder.isTrustedHost = function (hostname) {
|
|
1275
1286
|
return (this.trustedHosts.findIndex(function (trustedHost) { return trustedHost === hostname || hostname.endsWith(".".concat(trustedHost)); }) > -1);
|
|
1276
1287
|
};
|