@oeos-components/utils 0.0.9 → 0.0.11

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.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const reactivity = require('@vue/reactivity');
4
- const lodash = require('lodash');
5
4
  const consola = require('consola');
5
+ const lodashEs = require('lodash-es');
6
6
  const elementPlus = require('element-plus');
7
7
 
8
8
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
@@ -215,9 +215,9 @@ function clone(data, times = 1) {
215
215
  data = reactivity.unref(data);
216
216
  }
217
217
  if (getType(data) !== "array") {
218
- return lodash.cloneDeep(data);
218
+ return lodashEs.cloneDeep(data);
219
219
  }
220
- const clonedData = lodash.cloneDeep(data);
220
+ const clonedData = lodashEs.cloneDeep(data);
221
221
  const result = [];
222
222
  for (let i = 0; i < times; i++) {
223
223
  result.push(...clonedData);
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { unref, isRef, toRaw } from '@vue/reactivity';
2
- import { cloneDeep } from 'lodash';
3
2
  import { consola } from 'consola';
3
+ import { cloneDeep } from 'lodash-es';
4
4
  import { ElMessage, ElMessageBox } from 'element-plus';
5
5
 
6
6
  const isString = (val) => typeof val === "string";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oeos-components/utils",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "utils of oeos-components",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -25,7 +25,7 @@
25
25
  "@vue/shared": "^3.5.18",
26
26
  "consola": "^3.4.2",
27
27
  "element-plus": "^2.10.4",
28
- "lodash": "^4.17.21",
28
+ "lodash-es": "^4.17.21",
29
29
  "vue": "3.4.15"
30
30
  }
31
31
  }