x-block-lib 0.6.46 → 0.6.47
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/index.js +29 -39
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3909,13 +3909,7 @@ r.forBlock.call_func_v1 = function(e) {
|
|
|
3909
3909
|
const _ = r.statementToCode(o, "CALLBACK");
|
|
3910
3910
|
return `{
|
|
3911
3911
|
${a}
|
|
3912
|
-
${t}var __result__ = __callFuncV1__(
|
|
3913
|
-
${t}${t}${i},
|
|
3914
|
-
${t}${t}${s},
|
|
3915
|
-
${t}${t}__inputs__,
|
|
3916
|
-
${t}${t}__getEnvV1__(),
|
|
3917
|
-
${t}${t}${c}
|
|
3918
|
-
${t});
|
|
3912
|
+
${t}var __result__ = __callFuncV1__(${i},${s},__inputs__,__getEnvV1__(),${c});
|
|
3919
3913
|
${l}${_}}
|
|
3920
3914
|
`;
|
|
3921
3915
|
};
|
|
@@ -4327,9 +4321,9 @@ const $f = {
|
|
|
4327
4321
|
},
|
|
4328
4322
|
rebuildBlocks_: function() {
|
|
4329
4323
|
this.isInsertionMarker() || Ge(this, [
|
|
4330
|
-
["SUCCESS", "
|
|
4331
|
-
["MESSAGE", "
|
|
4332
|
-
["DATA", "
|
|
4324
|
+
["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
|
|
4325
|
+
["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
|
|
4326
|
+
["DATA", "__data__", "PARAM_DATA", !0]
|
|
4333
4327
|
]);
|
|
4334
4328
|
}
|
|
4335
4329
|
};
|
|
@@ -4337,10 +4331,10 @@ k.add_data_v1 = $f;
|
|
|
4337
4331
|
r.forBlock.add_data_v1 = function(e) {
|
|
4338
4332
|
const t = r.INDENT, n = "typeof(__tx__) !== 'undefined' ? __tx__ : null", o = r.valueToCode(e, "TABLE", u.ATOMIC) || "null", i = r.statementToCode(e, "HANDLE");
|
|
4339
4333
|
return `{
|
|
4340
|
-
${t}var __result__ = __addDataV1__(
|
|
4341
|
-
${t}
|
|
4342
|
-
${t}
|
|
4343
|
-
${t}
|
|
4334
|
+
${t}var __result__ = __addDataV1__(${n},${o});
|
|
4335
|
+
${t}var __success__ = __result__.success;
|
|
4336
|
+
${t}var __message__ = __result__.message;
|
|
4337
|
+
${t}var __data__ = __result__.data;
|
|
4344
4338
|
${i}}
|
|
4345
4339
|
`;
|
|
4346
4340
|
};
|
|
@@ -4640,8 +4634,8 @@ const zf = {
|
|
|
4640
4634
|
},
|
|
4641
4635
|
rebuildBlocks_: function() {
|
|
4642
4636
|
this.isInsertionMarker() || Ge(this, [
|
|
4643
|
-
["SUCCESS", "
|
|
4644
|
-
["MESSAGE", "
|
|
4637
|
+
["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
|
|
4638
|
+
["MESSAGE", "__message__", "PARAM_MESSAGE", !0]
|
|
4645
4639
|
]);
|
|
4646
4640
|
}
|
|
4647
4641
|
};
|
|
@@ -4649,11 +4643,9 @@ k.delete_data_v1 = zf;
|
|
|
4649
4643
|
r.forBlock.delete_data_v1 = function(e) {
|
|
4650
4644
|
const t = r.INDENT, n = "typeof(__tx__) !== 'undefined' ? __tx__ : null", o = r.valueToCode(e, "TABLE", u.ATOMIC) || "null", i = r.valueToCode(e, "CONDITION", u.ATOMIC) || "null", s = r.statementToCode(e, "HANDLE");
|
|
4651
4645
|
return `{
|
|
4652
|
-
${t}var __result__ = __deleteDataV1__(
|
|
4653
|
-
${t}
|
|
4654
|
-
${t}
|
|
4655
|
-
${t}${t}${i}
|
|
4656
|
-
${t});
|
|
4646
|
+
${t}var __result__ = __deleteDataV1__(${n},${o},${i});
|
|
4647
|
+
${t}var __success__ = __result__.success;
|
|
4648
|
+
${t}var __message__ = __result__.message;
|
|
4657
4649
|
${s}}
|
|
4658
4650
|
`;
|
|
4659
4651
|
};
|
|
@@ -4700,10 +4692,10 @@ const Jf = {
|
|
|
4700
4692
|
},
|
|
4701
4693
|
rebuildBlocks_: function() {
|
|
4702
4694
|
this.isInsertionMarker() || Ge(this, [
|
|
4703
|
-
["SUCCESS", "
|
|
4704
|
-
["MESSAGE", "
|
|
4705
|
-
["MAIN_DATA", "
|
|
4706
|
-
["EXTRA_DATA", "
|
|
4695
|
+
["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
|
|
4696
|
+
["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
|
|
4697
|
+
["MAIN_DATA", "__mainData__", "PARAM_MAIN_DATA", !0],
|
|
4698
|
+
["EXTRA_DATA", "__extraData__", "PARAM_EXTRA_DATA", !0]
|
|
4707
4699
|
]);
|
|
4708
4700
|
}
|
|
4709
4701
|
};
|
|
@@ -4714,12 +4706,11 @@ r.forBlock.query_data_v1 = function(e) {
|
|
|
4714
4706
|
e.getInput("EXTRA") && (s = r.valueToCode(e, "EXTRA", u.ATOMIC) || "null");
|
|
4715
4707
|
const a = r.statementToCode(e, "HANDLE");
|
|
4716
4708
|
return `{
|
|
4717
|
-
${t}var __result__ = __queryDataV1__(
|
|
4718
|
-
${t}
|
|
4719
|
-
${t}
|
|
4720
|
-
${t}
|
|
4721
|
-
${t}
|
|
4722
|
-
${t});
|
|
4709
|
+
${t}var __result__ = __queryDataV1__(${n},${o},${i},${s});
|
|
4710
|
+
${t}var __success__ = __result__.success;
|
|
4711
|
+
${t}var __message__ = __result__.message;
|
|
4712
|
+
${t}var __mainData__ = __result__.mainData;
|
|
4713
|
+
${t}var __extraData__ = __result__.extraData;
|
|
4723
4714
|
${a}}
|
|
4724
4715
|
`;
|
|
4725
4716
|
};
|
|
@@ -5322,9 +5313,9 @@ const im = {
|
|
|
5322
5313
|
},
|
|
5323
5314
|
rebuildBlocks_: function() {
|
|
5324
5315
|
this.isInsertionMarker() || Ge(this, [
|
|
5325
|
-
["SUCCESS", "
|
|
5326
|
-
["MESSAGE", "
|
|
5327
|
-
["DATA", "
|
|
5316
|
+
["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
|
|
5317
|
+
["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
|
|
5318
|
+
["DATA", "__data__", "PARAM_DATA", !0]
|
|
5328
5319
|
]);
|
|
5329
5320
|
}
|
|
5330
5321
|
};
|
|
@@ -5332,11 +5323,10 @@ k.update_data_v1 = im;
|
|
|
5332
5323
|
r.forBlock.update_data_v1 = function(e) {
|
|
5333
5324
|
const t = r.INDENT, n = "typeof(__tx__) !== 'undefined' ? __tx__ : null", o = r.valueToCode(e, "TABLE", u.ATOMIC) || "null", i = r.valueToCode(e, "CONDITION", u.ATOMIC) || "null", s = r.statementToCode(e, "HANDLE");
|
|
5334
5325
|
return `{
|
|
5335
|
-
${t}var __result__ = __updateDataV1__(
|
|
5336
|
-
${t}
|
|
5337
|
-
${t}
|
|
5338
|
-
${t}
|
|
5339
|
-
${t});
|
|
5326
|
+
${t}var __result__ = __updateDataV1__(${n},${o},${i});
|
|
5327
|
+
${t}var __success__ = __result__.success;
|
|
5328
|
+
${t}var __message__ = __result__.message;
|
|
5329
|
+
${t}var __data__ = __result__.data;
|
|
5340
5330
|
${s}}
|
|
5341
5331
|
`;
|
|
5342
5332
|
};
|