dep: lodash -> lodash-es
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { TurnObj } from "@/defs";
|
||||
import { clone, isString, range } from "lodash";
|
||||
import { clone, isString, range } from "lodash-es";
|
||||
import { ref, type Ref } from "vue";
|
||||
import { unwrap } from "./unwrap";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import ky from "ky";
|
||||
import { isArray, isEmpty } from "lodash";
|
||||
import { isArray, isEmpty } from "lodash-es";
|
||||
|
||||
export type ValidResponse = {
|
||||
result: true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isArray, isString, isNumber, isBoolean } from "lodash";
|
||||
import { isArray, isString, isNumber, isBoolean } from "lodash-es";
|
||||
|
||||
export function convertFormData(values: Record<string, null | number[] | string[] | boolean[] | number | string | boolean>): FormData {
|
||||
const formData = new FormData();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Schema, { type Rule, type Values } from "async-validator";
|
||||
import { isArray } from "lodash";
|
||||
import { isArray } from "lodash-es";
|
||||
import { mergeKVArray } from "@util/mergeKVArray";
|
||||
import $ from 'jquery';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
import type { ValuesOf } from "@/defs";
|
||||
import { zip } from "lodash";
|
||||
import { zip } from "lodash-es";
|
||||
|
||||
export function merge2DArrToObjectArr<T extends Record<string, unknown>>(column: (keyof T)[], list: ValuesOf<T>[][]): T[]{
|
||||
const result: T[] = [];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isString } from "lodash";
|
||||
import { isString } from "lodash-es";
|
||||
|
||||
interface NameValuePair {
|
||||
name: string,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isInteger, isString } from "lodash";
|
||||
import { isInteger, isString } from "lodash-es";
|
||||
|
||||
export function simpleSerialize(...values : (string|number)[]): string{
|
||||
const result = [];
|
||||
|
||||
Reference in New Issue
Block a user