@fileverse-dev/fortune-core 1.1.11-patch-2 → 1.1.11-patch-3

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.
@@ -890,16 +890,25 @@ function pasteHandlerOfCopyPaste(ctx, copyRange) {
890
890
  }
891
891
  var funcV = execfunction(ctx, func, h, c, undefined, undefined, true);
892
892
  var afterUpdateCell = ctx.hooks.afterUpdateCell;
893
- console.log("REACHED HERE FINALLY", afterUpdateCell, arr, value);
894
- if (afterUpdateCell && arr.length === 1) {
893
+ console.log("REACHED HERE FINALLY", afterUpdateCell, __assign(__assign({}, value), {
894
+ v: arr.length === 1 ? funcV[1] : value.v,
895
+ m: arr.length === 1 ? "[object Promise]" : funcV
896
+ }));
897
+ if (afterUpdateCell) {
895
898
  afterUpdateCell(h, c, null, __assign(__assign({}, value), {
896
- v: funcV[1],
897
- m: "[object Promise]"
899
+ v: arr.length === 1 ? funcV[1] : value.v,
900
+ m: arr.length === 1 ? "[object Promise]" : funcV
898
901
  }));
899
902
  }
900
903
  if (!_.isNil(value.spl)) {}
901
904
  }
902
905
  x[c] = _.cloneDeep(value);
906
+ console.log({
907
+ d: d,
908
+ c: c,
909
+ x: x,
910
+ h: h
911
+ });
903
912
  if (value != null && copyHasMC && ((_g = x === null || x === void 0 ? void 0 : x[c]) === null || _g === void 0 ? void 0 : _g.mc)) {
904
913
  if (((_j = (_h = x === null || x === void 0 ? void 0 : x[c]) === null || _h === void 0 ? void 0 : _h.mc) === null || _j === void 0 ? void 0 : _j.rs) != null) {
905
914
  x[c].mc.r = h;
@@ -899,16 +899,25 @@ function pasteHandlerOfCopyPaste(ctx, copyRange) {
899
899
  }
900
900
  var funcV = (0, _formula.execfunction)(ctx, func, h, c, undefined, undefined, true);
901
901
  var afterUpdateCell = ctx.hooks.afterUpdateCell;
902
- console.log("REACHED HERE FINALLY", afterUpdateCell, arr, value);
903
- if (afterUpdateCell && arr.length === 1) {
902
+ console.log("REACHED HERE FINALLY", afterUpdateCell, __assign(__assign({}, value), {
903
+ v: arr.length === 1 ? funcV[1] : value.v,
904
+ m: arr.length === 1 ? "[object Promise]" : funcV
905
+ }));
906
+ if (afterUpdateCell) {
904
907
  afterUpdateCell(h, c, null, __assign(__assign({}, value), {
905
- v: funcV[1],
906
- m: "[object Promise]"
908
+ v: arr.length === 1 ? funcV[1] : value.v,
909
+ m: arr.length === 1 ? "[object Promise]" : funcV
907
910
  }));
908
911
  }
909
912
  if (!_lodash.default.isNil(value.spl)) {}
910
913
  }
911
914
  x[c] = _lodash.default.cloneDeep(value);
915
+ console.log({
916
+ d: d,
917
+ c: c,
918
+ x: x,
919
+ h: h
920
+ });
912
921
  if (value != null && copyHasMC && ((_g = x === null || x === void 0 ? void 0 : x[c]) === null || _g === void 0 ? void 0 : _g.mc)) {
913
922
  if (((_j = (_h = x === null || x === void 0 ? void 0 : x[c]) === null || _h === void 0 ? void 0 : _h.mc) === null || _j === void 0 ? void 0 : _j.rs) != null) {
914
923
  x[c].mc.r = h;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.1.11-patch-2",
3
+ "version": "1.1.11-patch-3",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",