diff --git a/src/after.ts b/src/after.ts index 214d400..823afb7 100644 --- a/src/after.ts +++ b/src/after.ts @@ -1,4 +1,4 @@ -import { after } from 'lodash'; +import after = require('lodash/after'); import { DecoratorConfig, DecoratorFactory, LodashDecorator } from './factory'; import { PostValueApplicator } from './applicators'; @@ -23,4 +23,4 @@ export const After: (n: number) => LodashDecorator = DecoratorFactory.createInst new DecoratorConfig(after, new PostValueApplicator(), { setter: true }) ); export { After as after }; -export default After; \ No newline at end of file +export default After; diff --git a/src/afterAll.ts b/src/afterAll.ts index 2d3ac82..78eefa4 100644 --- a/src/afterAll.ts +++ b/src/afterAll.ts @@ -1,4 +1,4 @@ -import { after } from 'lodash'; +import after = require('lodash/after'); import { DecoratorConfig, DecoratorFactory, LodashDecorator } from './factory'; import { PostValueApplicator } from './applicators'; diff --git a/src/applicators/ComposeApplicator.ts b/src/applicators/ComposeApplicator.ts index f1ba31c..695f372 100644 --- a/src/applicators/ComposeApplicator.ts +++ b/src/applicators/ComposeApplicator.ts @@ -1,4 +1,4 @@ -import { identity } from 'lodash'; +import identity = require('lodash/identity'); import { Applicator, ApplicateOptions } from './Applicator'; import { resolveFunction } from '../utils'; @@ -11,7 +11,7 @@ export class ComposeApplicator extends Applicator { get post(): boolean { return this._config.post === true; } - + apply({ config: { execute }, value = identity, args, target }: ApplicateOptions): any { const applicator = this; @@ -29,4 +29,4 @@ export class ComposeApplicator extends Applicator { return execute(..._args).apply(this, invokeArgs); }; } -} \ No newline at end of file +} diff --git a/src/applicators/MemoizeApplicator.ts b/src/applicators/MemoizeApplicator.ts index a457e45..fa7d448 100644 --- a/src/applicators/MemoizeApplicator.ts +++ b/src/applicators/MemoizeApplicator.ts @@ -1,4 +1,5 @@ -import { isFunction, isObject } from 'lodash'; +import isFunction = require('lodash/isFunction'); +import isObject = require('lodash/isObject'); import { Applicator, ApplicateOptions } from './Applicator'; import { resolveFunction } from '../utils'; @@ -30,4 +31,4 @@ export class MemoizeApplicator extends Applicator { return memoized; } -} \ No newline at end of file +} diff --git a/src/applicators/PartialedApplicator.ts b/src/applicators/PartialedApplicator.ts index 498ce15..8a2dba2 100644 --- a/src/applicators/PartialedApplicator.ts +++ b/src/applicators/PartialedApplicator.ts @@ -1,4 +1,4 @@ -import { partial } from 'lodash'; +import partial = require('lodash/partial'); import { Applicator, ApplicateOptions } from './Applicator'; @@ -6,4 +6,4 @@ export class PartialedApplicator extends Applicator { apply({ config: { execute }, value, args }: ApplicateOptions): any { return partial(execute, value, ...args); } -} \ No newline at end of file +} diff --git a/src/ary.ts b/src/ary.ts index d18ef8b..c573266 100644 --- a/src/ary.ts +++ b/src/ary.ts @@ -1,4 +1,4 @@ -import { ary } from 'lodash'; +import ary = require('lodash/ary'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; diff --git a/src/attempt.ts b/src/attempt.ts index 811d796..5fbd922 100644 --- a/src/attempt.ts +++ b/src/attempt.ts @@ -1,4 +1,5 @@ -import { attempt, partial } from 'lodash'; +import attempt = require('lodash/attempt'); +import partial = require('lodash/partial'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; diff --git a/src/before.ts b/src/before.ts index 91aa4c1..06f5e6b 100644 --- a/src/before.ts +++ b/src/before.ts @@ -1,4 +1,4 @@ -import { before } from 'lodash'; +import before = require('lodash/before'); import { DecoratorConfig, DecoratorFactory, LodashDecorator } from './factory'; import { PostValueApplicator } from './applicators'; @@ -30,4 +30,4 @@ export const Before: (n: number) => LodashDecorator = DecoratorFactory.createIns new DecoratorConfig(before, new PostValueApplicator(), { setter: true }) ); export { Before as before }; -export default Before; \ No newline at end of file +export default Before; diff --git a/src/beforeAll.ts b/src/beforeAll.ts index 7bab2e5..bd898ff 100644 --- a/src/beforeAll.ts +++ b/src/beforeAll.ts @@ -1,4 +1,4 @@ -import { before } from 'lodash'; +import before = require('lodash/before'); import { DecoratorConfig, DecoratorFactory, LodashDecorator } from './factory'; import { PostValueApplicator } from './applicators'; diff --git a/src/bind.ts b/src/bind.ts index 7c6c5e3..fd2b719 100644 --- a/src/bind.ts +++ b/src/bind.ts @@ -1,4 +1,4 @@ -import { bind } from 'lodash'; +import bind = require('lodash/bind'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { BindApplicator } from './applicators'; @@ -31,4 +31,4 @@ export const Bind: (...partials: any[]) => LodashMethodDecorator = DecoratorFact new DecoratorConfig(bind, new BindApplicator()) ); export { Bind as bind }; -export default Bind; \ No newline at end of file +export default Bind; diff --git a/src/curry.ts b/src/curry.ts index 1831668..992bbb2 100644 --- a/src/curry.ts +++ b/src/curry.ts @@ -1,4 +1,4 @@ -import { curry } from 'lodash'; +import curry = require('lodash/curry'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -32,4 +32,4 @@ export const Curry: (arity?: number) => LodashMethodDecorator = DecoratorFactory new DecoratorConfig(curry, new PreValueApplicator(), { bound: true }) ); export { Curry as curry }; -export default Curry; \ No newline at end of file +export default Curry; diff --git a/src/curryAll.ts b/src/curryAll.ts index c7529f4..b658df0 100644 --- a/src/curryAll.ts +++ b/src/curryAll.ts @@ -1,4 +1,4 @@ -import { curry } from 'lodash'; +import curry = require('lodash/curry'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -30,4 +30,4 @@ export const CurryAll: (arity?: number) => LodashMethodDecorator = DecoratorFact new DecoratorConfig(curry, new PreValueApplicator()) ); export { CurryAll as curryAll }; -export default CurryAll; \ No newline at end of file +export default CurryAll; diff --git a/src/curryRight.ts b/src/curryRight.ts index 419fd6c..fd8fca0 100644 --- a/src/curryRight.ts +++ b/src/curryRight.ts @@ -1,4 +1,4 @@ -import { curryRight } from 'lodash'; +import curryRight = require('lodash/curryRight'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -32,4 +32,4 @@ export const CurryRight: (arity?: number) => LodashMethodDecorator = DecoratorFa new DecoratorConfig(curryRight, new PreValueApplicator(), { bound: true }) ); export { CurryRight as curryRight }; -export default CurryRight; \ No newline at end of file +export default CurryRight; diff --git a/src/curryRightAll.ts b/src/curryRightAll.ts index bfe12d6..472248d 100644 --- a/src/curryRightAll.ts +++ b/src/curryRightAll.ts @@ -1,4 +1,4 @@ -import { curryRight } from 'lodash'; +import curryRight = require('lodash/curryRight'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -30,4 +30,4 @@ export const CurryRightAll: (arity?: number) => LodashMethodDecorator = Decorato new DecoratorConfig(curryRight, new PreValueApplicator()) ); export { CurryRightAll as curryRightAll }; -export default CurryRightAll; \ No newline at end of file +export default CurryRightAll; diff --git a/src/debounce.ts b/src/debounce.ts index 9f7fff3..6896c13 100644 --- a/src/debounce.ts +++ b/src/debounce.ts @@ -1,4 +1,4 @@ -import { debounce } from 'lodash'; +import debounce = require('lodash/debounce'); import { DecoratorConfig, DecoratorFactory, LodashDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -43,4 +43,4 @@ export const Debounce: (wait?: number, options?: DebounceOptions) => LodashDecor ); export { Debounce as debounce }; -export default Debounce; \ No newline at end of file +export default Debounce; diff --git a/src/debounceAll.ts b/src/debounceAll.ts index f61932f..aa53107 100644 --- a/src/debounceAll.ts +++ b/src/debounceAll.ts @@ -1,4 +1,4 @@ -import { debounce } from 'lodash'; +import debounce = require('lodash/debounce'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -44,4 +44,4 @@ export const DebounceAll: (wait?: number, options?: DebounceOptions) => LodashMe new DecoratorConfig(debounce, new PreValueApplicator()) ); export { DebounceAll as debounceAll }; -export default DebounceAll; \ No newline at end of file +export default DebounceAll; diff --git a/src/defer.ts b/src/defer.ts index 2f9155c..66340a6 100644 --- a/src/defer.ts +++ b/src/defer.ts @@ -1,4 +1,4 @@ -import { defer } from 'lodash'; +import defer = require('lodash/defer'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { InvokeApplicator } from './applicators'; @@ -31,4 +31,4 @@ export const Defer: (...args: any[]) => LodashMethodDecorator = DecoratorFactory new DecoratorConfig(defer, new InvokeApplicator(), { setter: true }) ); export { Defer as defer }; -export default Defer; \ No newline at end of file +export default Defer; diff --git a/src/delay.ts b/src/delay.ts index 602d87c..397cca5 100644 --- a/src/delay.ts +++ b/src/delay.ts @@ -1,4 +1,4 @@ -import { delay } from 'lodash'; +import delay = require('lodash/delay'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -40,4 +40,4 @@ export const Delay: (wait: number, ...args: any[]) => LodashMethodDecorator = De ) ); export { Delay as delay }; -export default Delay; \ No newline at end of file +export default Delay; diff --git a/src/factory/DecoratorFactory.ts b/src/factory/DecoratorFactory.ts index 625b568..b38ce2e 100644 --- a/src/factory/DecoratorFactory.ts +++ b/src/factory/DecoratorFactory.ts @@ -1,7 +1,7 @@ -import { isFunction } from 'lodash'; +import isFunction = require('lodash/isFunction'); -import { - InstanceChainMap, +import { + InstanceChainMap, LodashDecorator, InstanceChainContext } from './common'; @@ -60,7 +60,7 @@ export class InternalDecoratorFactory { } return copyMetadata( - applicator.apply({ args, target, instance, value: fn, config }), + applicator.apply({ args, target, instance, value: fn, config }), fn ); }); @@ -83,11 +83,11 @@ export class InternalDecoratorFactory { // If we have a getter apply the decorators to the getter and assign it to the instance. if (isGetter) { getter = applyChain(get, { value: get, getter: true }, instance); - } + } if (isSetter) { setter = applyChain(set, { value: set, setter: true }, instance); - } + } Object.defineProperty(instance, name, { enumerable, @@ -96,8 +96,8 @@ export class InternalDecoratorFactory { set: setter }); } else if (isMethod || isProperty) { - const newFn = isMethod - ? applyChain(value, { value, method: true }, instance) + const newFn = isMethod + ? applyChain(value, { value, method: true }, instance) : applyChain(value, { value, property: true }, instance); Object.defineProperty(instance, name, { @@ -145,7 +145,7 @@ export class InternalDecoratorFactory { private _isApplicable(context: InstanceChainContext, config: DecoratorConfig): boolean { return !Boolean( - context.getter && !config.getter + context.getter && !config.getter || context.setter && !config.setter || context.method && !config.method || context.property && !config.property diff --git a/src/flip.ts b/src/flip.ts index 20831d7..a88e709 100644 --- a/src/flip.ts +++ b/src/flip.ts @@ -1,4 +1,4 @@ -import { flip } from 'lodash'; +import flip = require('lodash/flip'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -25,4 +25,4 @@ export const Flip: () => LodashMethodDecorator = DecoratorFactory.createDecorato new DecoratorConfig(flip, new PreValueApplicator()) ); export { Flip as flip }; -export default Flip; \ No newline at end of file +export default Flip; diff --git a/src/flow.ts b/src/flow.ts index f6c58de..db63f86 100644 --- a/src/flow.ts +++ b/src/flow.ts @@ -1,4 +1,4 @@ -import { flow } from 'lodash'; +import flow = require('lodash/flow'); import { DecoratorConfig, @@ -32,4 +32,4 @@ export const Flow: (...fns: ResolvableFunction[]) => LodashDecorator = Decorator new DecoratorConfig(flow, new ComposeApplicator({ post: true }), { property: true }) ); export { Flow as flow }; -export default Flow; \ No newline at end of file +export default Flow; diff --git a/src/flowRight.ts b/src/flowRight.ts index d81e0c3..e846e2a 100644 --- a/src/flowRight.ts +++ b/src/flowRight.ts @@ -1,4 +1,4 @@ -import { flowRight } from 'lodash'; +import flowRight = require('lodash/flowRight'); import { DecoratorConfig, @@ -32,4 +32,4 @@ export const FlowRight: (...fns: ResolvableFunction[]) => LodashDecorator = Deco new DecoratorConfig(flowRight, new ComposeApplicator({ post: false }), { property: true }) ); export { FlowRight as flowRight }; -export default FlowRight; \ No newline at end of file +export default FlowRight; diff --git a/src/memoize.ts b/src/memoize.ts index da8eb4e..f1bde3e 100644 --- a/src/memoize.ts +++ b/src/memoize.ts @@ -1,4 +1,4 @@ -import { memoize } from 'lodash'; +import memoize = require('lodash/memoize'); import { DecoratorConfig, @@ -13,4 +13,4 @@ export const Memoize: (resolver?: ResolvableFunction|MemoizeConfig) => new DecoratorConfig(memoize, new MemoizeApplicator()) ); export { Memoize as memoize }; -export default Memoize; \ No newline at end of file +export default Memoize; diff --git a/src/memoizeAll.ts b/src/memoizeAll.ts index c23fe3a..bd990f9 100644 --- a/src/memoizeAll.ts +++ b/src/memoizeAll.ts @@ -1,4 +1,4 @@ -import { memoize } from 'lodash'; +import memoize = require('lodash/memoize'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { MemoizeApplicator } from './applicators'; @@ -12,4 +12,4 @@ export const MemoizeAll: (resolver?: Function|MemoizeConfig) => Lodash new DecoratorConfig(memoize, new MemoizeApplicator()) ); export { MemoizeAll as memoizeAll }; -export default MemoizeAll; \ No newline at end of file +export default MemoizeAll; diff --git a/src/mixin.ts b/src/mixin.ts index 4c44eaf..0267a60 100644 --- a/src/mixin.ts +++ b/src/mixin.ts @@ -1,4 +1,4 @@ -import { assign } from 'lodash'; +import assign = require('lodash/assign'); export function Mixin(...srcs: Object[]): ClassDecorator { return (target: Function) => { @@ -8,4 +8,4 @@ export function Mixin(...srcs: Object[]): ClassDecorator { }; } export { Mixin as mixin }; -export default Mixin; \ No newline at end of file +export default Mixin; diff --git a/src/negate.ts b/src/negate.ts index 4496abf..60b286e 100644 --- a/src/negate.ts +++ b/src/negate.ts @@ -1,4 +1,4 @@ -import { negate } from 'lodash'; +import negate = require('lodash/negate'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -7,4 +7,4 @@ export const Negate: () => LodashMethodDecorator = DecoratorFactory.createDecora new DecoratorConfig(negate, new PreValueApplicator()) ); export { Negate as negate }; -export default Negate; \ No newline at end of file +export default Negate; diff --git a/src/once.ts b/src/once.ts index 80da230..c8a7867 100644 --- a/src/once.ts +++ b/src/once.ts @@ -1,4 +1,4 @@ -import { once } from 'lodash'; +import once = require('lodash/once'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -7,4 +7,4 @@ export const Once: () => LodashMethodDecorator = DecoratorFactory.createInstance new DecoratorConfig(once, new PreValueApplicator(), { setter: true }) ); export { Once as once }; -export default Once; \ No newline at end of file +export default Once; diff --git a/src/onceAll.ts b/src/onceAll.ts index 4620217..9d7921a 100644 --- a/src/onceAll.ts +++ b/src/onceAll.ts @@ -1,8 +1,8 @@ -import { once } from 'lodash'; +import once = require('lodash/once'); import { DecoratorConfig, DecoratorFactory } from './factory'; import { PreValueApplicator } from './applicators'; export const OnceAll = DecoratorFactory.createDecorator(new DecoratorConfig(once, new PreValueApplicator(), { setter: true }))(); export { OnceAll as onceAll }; -export default OnceAll; \ No newline at end of file +export default OnceAll; diff --git a/src/overArgs.ts b/src/overArgs.ts index 45e9e22..2bf7b2f 100644 --- a/src/overArgs.ts +++ b/src/overArgs.ts @@ -1,4 +1,4 @@ -import { overArgs } from 'lodash'; +import overArgs = require('lodash/overArgs'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -7,4 +7,4 @@ export const OverArgs: (...transforms: Function[]) => LodashMethodDecorator = De new DecoratorConfig(overArgs, new PreValueApplicator(), { setter: true }) ); export { OverArgs as overArgs }; -export default OverArgs; \ No newline at end of file +export default OverArgs; diff --git a/src/partial.ts b/src/partial.ts index 7a504eb..0abaa88 100644 --- a/src/partial.ts +++ b/src/partial.ts @@ -1,4 +1,4 @@ -import { partial } from 'lodash'; +import partial = require('lodash/partial'); import { DecoratorConfig, DecoratorFactory } from './factory'; import { PartialApplicator } from './applicators'; @@ -7,4 +7,4 @@ export const Partial: (...partials: any[]) => PropertyDecorator = DecoratorFacto new DecoratorConfig(partial, new PartialApplicator(), { property: true, method: false }) ); export { Partial as partial }; -export default Partial; \ No newline at end of file +export default Partial; diff --git a/src/partialRight.ts b/src/partialRight.ts index 9929bf2..d5f4586 100644 --- a/src/partialRight.ts +++ b/src/partialRight.ts @@ -1,4 +1,4 @@ -import { partialRight } from 'lodash'; +import partialRight = require('lodash/partialRight'); import { DecoratorConfig, DecoratorFactory } from './factory'; import { PartialApplicator } from './applicators'; @@ -7,4 +7,4 @@ export const PartialRight: (...partials: any[]) => PropertyDecorator = Decorator new DecoratorConfig(partialRight, new PartialApplicator(), { property: true, method: false }) ); export { PartialRight as partialRight }; -export default PartialRight; \ No newline at end of file +export default PartialRight; diff --git a/src/rearg.ts b/src/rearg.ts index b7d86c6..91843bc 100644 --- a/src/rearg.ts +++ b/src/rearg.ts @@ -1,4 +1,4 @@ -import { rearg } from 'lodash'; +import rearg = require('lodash/rearg'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -7,4 +7,4 @@ export const Rearg: (indexes: number|number[], ...args: number[]) => LodashMetho new DecoratorConfig(rearg, new PreValueApplicator()) ); export { Rearg as rearg }; -export default Rearg; \ No newline at end of file +export default Rearg; diff --git a/src/rest.ts b/src/rest.ts index d55df1b..da34f29 100644 --- a/src/rest.ts +++ b/src/rest.ts @@ -1,4 +1,4 @@ -import { rest } from 'lodash'; +import rest = require('lodash/rest'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -7,4 +7,4 @@ export const Rest: (start?: number) => LodashMethodDecorator = DecoratorFactory. new DecoratorConfig(rest, new PreValueApplicator()) ); export { Rest as rest }; -export default Rest; \ No newline at end of file +export default Rest; diff --git a/src/spread.ts b/src/spread.ts index b2faf3e..8d121b1 100644 --- a/src/spread.ts +++ b/src/spread.ts @@ -1,4 +1,4 @@ -import { spread } from 'lodash'; +import spread = require('lodash/spread'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -7,4 +7,4 @@ export const Spread: (start?: number) => LodashMethodDecorator = DecoratorFactor new DecoratorConfig(spread, new PreValueApplicator()) ); export { Spread as spread }; -export default Spread; \ No newline at end of file +export default Spread; diff --git a/src/throttle.ts b/src/throttle.ts index 49660b8..087fa1f 100644 --- a/src/throttle.ts +++ b/src/throttle.ts @@ -1,4 +1,4 @@ -import { throttle } from 'lodash'; +import throttle = require('lodash/throttle'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -19,4 +19,4 @@ export const ThrottleSetter: (wait?: number, options?: ThrottleOptions) => Lodas export { Throttle as throttle }; export { ThrottleGetter as throttleGetter }; export { ThrottleSetter as throttleSetter }; -export default Throttle; \ No newline at end of file +export default Throttle; diff --git a/src/throttleAll.ts b/src/throttleAll.ts index fd45d2c..ce3f7e3 100644 --- a/src/throttleAll.ts +++ b/src/throttleAll.ts @@ -1,4 +1,4 @@ -import { throttle } from 'lodash'; +import throttle = require('lodash/throttle'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -8,4 +8,4 @@ export const ThrottleAll: (wait?: number, options?: ThrottleOptions) => LodashMe new DecoratorConfig(throttle, new PreValueApplicator(), { setter: true }) ); export { ThrottleAll as throttleAll }; -export default ThrottleAll; \ No newline at end of file +export default ThrottleAll; diff --git a/src/unary.ts b/src/unary.ts index 2bf5e0e..a15cf23 100644 --- a/src/unary.ts +++ b/src/unary.ts @@ -1,4 +1,4 @@ -import { unary } from 'lodash'; +import unary = require('lodash/unary'); import { DecoratorConfig, DecoratorFactory, LodashMethodDecorator } from './factory'; import { PreValueApplicator } from './applicators'; @@ -7,4 +7,4 @@ export const Unary: () => LodashMethodDecorator = DecoratorFactory.createDecorat new DecoratorConfig(unary, new PreValueApplicator()) ); export { Unary as unary }; -export default Unary; \ No newline at end of file +export default Unary; diff --git a/src/utils/CompositeKeyWeakMap.ts b/src/utils/CompositeKeyWeakMap.ts index ec62577..e0eb52b 100644 --- a/src/utils/CompositeKeyWeakMap.ts +++ b/src/utils/CompositeKeyWeakMap.ts @@ -1,11 +1,11 @@ -import { isUndefined } from 'lodash'; +import isUndefined = require('lodash/isUndefined'); /** * A map for weakly holding nested references. * @private * @export * @class CompositeKeyWeakMap - * @template T + * @template T */ export class CompositeKeyWeakMap { private _weakMap = new WeakMap(); diff --git a/src/utils/copyMetaData.ts b/src/utils/copyMetaData.ts index e6df015..ff516cf 100644 --- a/src/utils/copyMetaData.ts +++ b/src/utils/copyMetaData.ts @@ -1,4 +1,4 @@ -import { forOwn } from 'lodash'; +import forOwn = require('lodash/forOwn'); /** * Used to copy over meta data from function to function. diff --git a/src/utils/resolveFunction.ts b/src/utils/resolveFunction.ts index 52e2264..f4f553a 100644 --- a/src/utils/resolveFunction.ts +++ b/src/utils/resolveFunction.ts @@ -1,4 +1,5 @@ -import { isFunction, isString } from 'lodash'; +import isFunction = require('lodash/isFunction'); +import isString = require('lodash/isString'); import { log } from './log'; /** @@ -25,4 +26,4 @@ export function resolveFunction(method?: string|Function, context?: any, target? if (throwNotFound) { throw new ReferenceError(log(`Can not resolve method ${method} on any target Objects`)); } -} \ No newline at end of file +} diff --git a/src/wrap.ts b/src/wrap.ts index fb66f35..a648a99 100644 --- a/src/wrap.ts +++ b/src/wrap.ts @@ -1,4 +1,4 @@ -import { wrap } from 'lodash'; +import wrap = require('lodash/wrap'); import { DecoratorConfig, @@ -12,4 +12,4 @@ export const Wrap: (fnToWrap?: ResolvableFunction) => LodashMethodDecorator = De new DecoratorConfig(wrap, new WrapApplicator()) ); export { Wrap as wrap }; -export default Wrap; \ No newline at end of file +export default Wrap;