x-block-lib 0.8.72 → 0.8.74

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2208,7 +2208,7 @@ const os = {
2208
2208
  t = !0;
2209
2209
  }
2210
2210
  if (t)
2211
- this.getInput("INSTANCE") || this.appendValueInput("INSTANCE").setAlign(k.Align.RIGHT).appendField(m("BKY_APP_INSTANCE")).setCheck("String"), this.event.params && this.event.params.length > 0 && this.moveInputBefore("INSTANCE", "PARAM0");
2211
+ this.getInput("INSTANCE") || this.appendValueInput("INSTANCE").setAlign(k.Align.RIGHT).appendField("%{BKY_APP_INSTANCE}").setCheck("String"), this.event.params && this.event.params.length > 0 && this.moveInputBefore("INSTANCE", "PARAM0");
2212
2212
  else if (this.getInput("INSTANCE")) {
2213
2213
  const e = this.getInput("INSTANCE").connection.targetBlock();
2214
2214
  e && e.dispose(), this.removeInput("INSTANCE");
@@ -2531,7 +2531,7 @@ const as = {
2531
2531
  t = !0;
2532
2532
  }
2533
2533
  if (t)
2534
- this.getInput("INSTANCE") || this.appendValueInput("INSTANCE").setAlign(k.Align.RIGHT).appendField(m("BKY_APP_INSTANCE")), this.method.inputs && this.method.inputs.length > 0 ? this.moveInputBefore("INSTANCE", "INPUT0") : this.method.outputs && this.method.outputs.length > 0 && this.moveInputBefore("INSTANCE", "OUTPUT0");
2534
+ this.getInput("INSTANCE") || this.appendValueInput("INSTANCE").setAlign(k.Align.RIGHT).appendField("%{BKY_APP_INSTANCE}").setCheck("String"), this.method.inputs && this.method.inputs.length > 0 ? this.moveInputBefore("INSTANCE", "INPUT0") : this.method.outputs && this.method.outputs.length > 0 && this.moveInputBefore("INSTANCE", "OUTPUT0");
2535
2535
  else if (this.getInput("INSTANCE")) {
2536
2536
  const e = this.getInput("INSTANCE").connection.targetBlock();
2537
2537
  e && e.dispose(), this.removeInput("INSTANCE");
@@ -2652,20 +2652,20 @@ s.forBlock.call_app_method_v1 = function(t) {
2652
2652
  if (o.method.outputs && o.method.outputs.length > 0) {
2653
2653
  const d = s.statementToCode(o, "HANDLE");
2654
2654
  return `{
2655
- const __outputs__ = ${l}(${i}, ${a});
2655
+ const __outputs__ = await ${l}(${i}, ${a});
2656
2656
  ${c}${d}}
2657
2657
  `;
2658
2658
  } else
2659
- return `${l}(${i}, ${a});
2659
+ return `await ${l}(${i}, ${a});
2660
2660
  `;
2661
2661
  } else if (o.method.outputs && o.method.outputs.length > 0) {
2662
2662
  const r = s.statementToCode(o, "HANDLE");
2663
2663
  return `{
2664
- const __outputs__ = __callMethodV1__(${n(o.method.id)}, ${i}, ${a});
2664
+ const __outputs__ = await __callMethodV1__(${n(o.method.id)}, ${i}, ${a});
2665
2665
  ${c}${r}}
2666
2666
  `;
2667
2667
  } else
2668
- return `__callMethodV1__(${n(o.method.id)}, ${i}, ${a});
2668
+ return `await __callMethodV1__(${n(o.method.id)}, ${i}, ${a});
2669
2669
  `;
2670
2670
  };
2671
2671
  const cs = {
@@ -3499,7 +3499,7 @@ s.forBlock.set_app_property_v1 = function(t) {
3499
3499
  o = s.valueToCode(n, "INSTANCE", u.NONE) || "''";
3500
3500
  }
3501
3501
  const i = s.valueToCode(n, "VALUE", u.NONE);
3502
- return `__setPropertyV1__(${e(n.property.id)}, ${i}, ${o});
3502
+ return `await __setPropertyV1__(${e(n.property.id)}, ${i}, ${o});
3503
3503
  `;
3504
3504
  };
3505
3505
  const hs = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.8.72",
4
+ "version": "0.8.74",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -38,7 +38,7 @@
38
38
  "vue-router": "^4.6.4",
39
39
  "vuetify": "^3.11.4",
40
40
  "x-essential-lib": "^0.9.20",
41
- "x-runtime-lib": "^0.8.144",
41
+ "x-runtime-lib": "^0.8.145",
42
42
  "x-state-lib": "^0.3.32"
43
43
  },
44
44
  "devDependencies": {