@kubohiroya/turbowarp-plus-editor-code-views 0.7.0 → 0.7.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.
@@ -90,7 +90,7 @@ export function attachTargetUndoHistory({ vm, getBlockly, onError = error => con
90
90
  const ready = Promise.resolve().then(getBlockly).then(ScratchBlocks => {
91
91
  if (!disposed)
92
92
  installed = installTargetUndoHistory(vm, ScratchBlocks);
93
- }, onError);
93
+ }).catch(onError);
94
94
  return {
95
95
  ready,
96
96
  dispose() {
@@ -474,7 +474,7 @@ export function attachVariableMerge({ vm, getBlockly, document, locale, onError
474
474
  if (disposed || !ScratchBlocks)
475
475
  return;
476
476
  remove = installVariableMerge(vm, ScratchBlocks, { document, locale, onError });
477
- });
477
+ }).catch(onError ?? (error => console.error(error)));
478
478
  return {
479
479
  ready,
480
480
  dispose() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubohiroya/turbowarp-plus-editor-code-views",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Code views for TurboWarp Plus Editor: code in tabs and windows, the detached block palette, script layout and block field editing",
5
5
  "type": "module",
6
6
  "license": "MPL-2.0",
@@ -133,7 +133,7 @@ export function attachTargetUndoHistory({vm, getBlockly, onError = error => cons
133
133
  let installed: {dispose(): void} | undefined;
134
134
  const ready = Promise.resolve().then(getBlockly).then(ScratchBlocks => {
135
135
  if (!disposed) installed = installTargetUndoHistory(vm, ScratchBlocks);
136
- }, onError);
136
+ }).catch(onError);
137
137
  return {
138
138
  ready,
139
139
  dispose() {
@@ -527,7 +527,7 @@ export function attachVariableMerge ({vm, getBlockly, document, locale, onError}
527
527
  const ready = Promise.resolve().then(() => getBlockly()).then(ScratchBlocks => {
528
528
  if (disposed || !ScratchBlocks) return;
529
529
  remove = installVariableMerge(vm, ScratchBlocks, {document, locale, onError});
530
- });
530
+ }).catch(onError ?? (error => console.error(error)));
531
531
  return {
532
532
  ready,
533
533
  dispose () {