tutuca 0.9.47 → 0.9.49
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/tutuca-cli.js +218 -109
- package/dist/tutuca-dev.js +270 -162
- package/dist/tutuca-dev.min.js +3 -3
- package/dist/tutuca-extra.js +4 -3
- package/dist/tutuca-extra.min.js +2 -2
- package/dist/tutuca.js +4 -3
- package/dist/tutuca.min.js +2 -2
- package/package.json +1 -1
- package/skill/tutuca/core.md +15 -0
package/dist/tutuca.js
CHANGED
|
@@ -1710,7 +1710,8 @@ class ComponentStack {
|
|
|
1710
1710
|
enter() {
|
|
1711
1711
|
return new ComponentStack(this.comps, this);
|
|
1712
1712
|
}
|
|
1713
|
-
registerComponents(comps,
|
|
1713
|
+
registerComponents(comps, opts) {
|
|
1714
|
+
const { aliases = {} } = opts ?? {};
|
|
1714
1715
|
for (let i = 0;i < comps.length; i++) {
|
|
1715
1716
|
const comp = comps[i];
|
|
1716
1717
|
comp.scope = this.enter();
|
|
@@ -2802,9 +2803,9 @@ class App {
|
|
|
2802
2803
|
sendAtRoot(name, args, opts) {
|
|
2803
2804
|
this.transactor.pushSend(new Path([]), name, args, opts);
|
|
2804
2805
|
}
|
|
2805
|
-
registerComponents(comps,
|
|
2806
|
+
registerComponents(comps, opts) {
|
|
2806
2807
|
const scope = this.compStack.enter();
|
|
2807
|
-
scope.registerComponents(comps,
|
|
2808
|
+
scope.registerComponents(comps, opts);
|
|
2808
2809
|
return scope;
|
|
2809
2810
|
}
|
|
2810
2811
|
_transactNextBatch(maxRunTimeMs = 10) {
|