From e9284930df484e2fb7a26c90f93c06e1dae8fbbf Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Thu, 1 Oct 2020 19:51:34 +0900 Subject: [PATCH] Update nested-property (#6720) --- package.json | 2 +- src/@types/nested-property.d.ts | 21 --------------------- yarn.lock | 8 ++++---- 3 files changed, 5 insertions(+), 26 deletions(-) delete mode 100644 src/@types/nested-property.d.ts diff --git a/package.json b/package.json index 1c14aa5548..5ea9adb6a1 100644 --- a/package.json +++ b/package.json @@ -181,7 +181,7 @@ "moji": "0.5.1", "ms": "2.1.2", "multer": "1.4.2", - "nested-property": "2.0.1", + "nested-property": "4.0.0", "node-fetch": "2.6.0", "nodemailer": "6.4.11", "nprogress": "0.2.0", diff --git a/src/@types/nested-property.d.ts b/src/@types/nested-property.d.ts deleted file mode 100644 index 097b786a50..0000000000 --- a/src/@types/nested-property.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -type Obj = { [key: string]: any }; - -declare module 'nested-property' { - interface IHasNestedPropertyOptions { - own?: boolean; - } - - interface IIsInNestedPropertyOptions { - validPath?: boolean; - } - - export function set(object: T, property: string, value: any): T; - - export function get(object: Obj, property: string): any; - - export function has(object: Obj, property: string, options?: IHasNestedPropertyOptions): boolean; - - export function hasOwn(object: Obj, property: string, options?: IHasNestedPropertyOptions): boolean; - - export function isIn(object: Obj, property: string, objectInPath: Obj, options?: IIsInNestedPropertyOptions): boolean; -} diff --git a/yarn.lock b/yarn.lock index 0852367fb9..4d9ba26b1f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6266,10 +6266,10 @@ neo-async@^2.6.2: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== -nested-property@2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/nested-property/-/nested-property-2.0.1.tgz#52d569825f0cfd2c2d68170d7facedd4466614a5" - integrity sha512-oOs/zwh5Rw4vBDJxxFrEW066Su+VxLmIUkZkJB4d3pi6hjm/Kn97vWW1f+uGbLiBI8MeiATBj88OTgNpNq7/QA== +nested-property@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/nested-property/-/nested-property-4.0.0.tgz#a67b5a31991e701e03cdbaa6453bc5b1011bb88d" + integrity sha512-yFehXNWRs4cM0+dz7QxCd06hTbWbSkV0ISsqBfkntU6TOY4Qm3Q88fRRLOddkGh2Qq6dZvnKVAahfhjcUvLnyA== next-line@^1.1.0: version "1.1.0"