szld-libs 0.3.77 → 0.3.78

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.
@@ -1,4 +1,5 @@
1
1
  import dayjs from "dayjs";
2
+ import _ from "lodash";
2
3
  const handleGetAttrList = async (params, commonRequest, interfaceType) => {
3
4
  var _a;
4
5
  try {
@@ -64,7 +65,7 @@ const handleSetTableRowColor = (record, index, ngColor) => ({
64
65
  }
65
66
  });
66
67
  const handleFormatMobileDate = (values, format = "YYYY-MM-DD") => {
67
- Object.entries(values).forEach(([key, value]) => {
68
+ Object.entries(_.cloneDeep(values)).forEach(([key, value]) => {
68
69
  if (Array.isArray(value) && value.length > 0 && value[0] instanceof Date) {
69
70
  values[key] = value.map((item) => dayjs(item).format(format));
70
71
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const dayjs = require("dayjs");
4
+ const _ = require("lodash");
4
5
  const handleGetAttrList = async (params, commonRequest, interfaceType) => {
5
6
  var _a;
6
7
  try {
@@ -66,7 +67,7 @@ const handleSetTableRowColor = (record, index, ngColor) => ({
66
67
  }
67
68
  });
68
69
  const handleFormatMobileDate = (values, format = "YYYY-MM-DD") => {
69
- Object.entries(values).forEach(([key, value]) => {
70
+ Object.entries(_.cloneDeep(values)).forEach(([key, value]) => {
70
71
  if (Array.isArray(value) && value.length > 0 && value[0] instanceof Date) {
71
72
  values[key] = value.map((item) => dayjs(item).format(format));
72
73
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.3.77",
4
+ "version": "0.3.78",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",