dep: lodash -> lodash-es

This commit is contained in:
2022-08-21 18:14:36 +09:00
parent b517000650
commit 78a9641c14
51 changed files with 79 additions and 49 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
import { isString } from "lodash";
import { isString } from "lodash-es";
interface NameValuePair {
name: string,
+1 -1
View File
@@ -1,4 +1,4 @@
import { isInteger, isString } from "lodash";
import { isInteger, isString } from "lodash-es";
export function simpleSerialize(...values : (string|number)[]): string{
const result = [];