From 82d6194e3ecab81c166cb96750fac5aa58e4df01 Mon Sep 17 00:00:00 2001 From: NT Date: Mon, 4 Aug 2025 14:20:35 -0700 Subject: [PATCH] Replace lodash.get and lodash.set as they are no longer maintained --- package.json | 3 +-- src/container/container-binding-config.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 7715d9b..e4c81f4 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,7 @@ "tsc": "tsc" }, "dependencies": { - "lodash.get": "^4.4.2", - "lodash.set": "^4.3.2", + "lodash": "^4.17.21", "reflect-metadata": "^0.1.13" }, "devDependencies": { diff --git a/src/container/container-binding-config.ts b/src/container/container-binding-config.ts index 12d6ec1..0df658e 100644 --- a/src/container/container-binding-config.ts +++ b/src/container/container-binding-config.ts @@ -1,8 +1,7 @@ import { InjectorHandler } from './injection-handler'; import { Scope, ObjectFactory, Config, BuildContext, ValueConfig } from '../model'; import { InstanceFactory, ValueFactory } from './container-types'; -import get = require('lodash.get'); -import set = require('lodash.set'); +import { get, set } from 'lodash'; export class IoCBindConfig implements Config { public source: Function;