@builder.io/sdk 3.0.0 → 3.0.1
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 +6 -0
- package/dist/index.browser.js +6 -3
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +6 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +6 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.d.ts +1 -1
- package/dist/src/builder.class.js +5 -2
- package/dist/src/builder.class.js.map +1 -1
- package/dist/src/builder.class.test.js +5 -5
- package/dist/src/builder.class.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.browser.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 = "3.0.
|
|
155
|
+
var version = "3.0.1";
|
|
156
156
|
|
|
157
157
|
var Subscription = /** @class */ (function () {
|
|
158
158
|
function Subscription(listeners, listener) {
|
|
@@ -1320,6 +1320,9 @@
|
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
1322
|
Builder.register = function (type, info) {
|
|
1323
|
+
if (type === 'plugin') {
|
|
1324
|
+
info = this.serializeIncludingFunctions(info);
|
|
1325
|
+
}
|
|
1323
1326
|
// TODO: all must have name and can't conflict?
|
|
1324
1327
|
var typeList = this.registry[type];
|
|
1325
1328
|
if (!typeList) {
|
|
@@ -1441,7 +1444,7 @@
|
|
|
1441
1444
|
enumerable: false,
|
|
1442
1445
|
configurable: true
|
|
1443
1446
|
});
|
|
1444
|
-
Builder.
|
|
1447
|
+
Builder.serializeIncludingFunctions = function (info) {
|
|
1445
1448
|
var serializeFn = function (fnValue) {
|
|
1446
1449
|
var fnStr = fnValue.toString().trim();
|
|
1447
1450
|
// we need to account for a few different fn syntaxes:
|
|
@@ -1459,7 +1462,7 @@
|
|
|
1459
1462
|
}));
|
|
1460
1463
|
};
|
|
1461
1464
|
Builder.prepareComponentSpecToSend = function (spec) {
|
|
1462
|
-
return __assign(__assign({}, this.
|
|
1465
|
+
return __assign(__assign({}, this.serializeIncludingFunctions(spec)), { class: undefined });
|
|
1463
1466
|
};
|
|
1464
1467
|
Builder.registerBlock = function (component, options) {
|
|
1465
1468
|
this.registerComponent(component, options);
|