diff --git a/ts/lik.fastmap.ts b/ts/lik.fastmap.ts index 637a129..1ed1447 100644 --- a/ts/lik.fastmap.ts +++ b/ts/lik.fastmap.ts @@ -1,3 +1,5 @@ +import * as plugins from './lik.plugins'; + /** * fast map allows for very quick lookups of objects with a unique key */ diff --git a/ts/lik.stringmap.ts b/ts/lik.stringmap.ts index 180e3ff..cc2392b 100644 --- a/ts/lik.stringmap.ts +++ b/ts/lik.stringmap.ts @@ -1,5 +1,4 @@ -import { SmartMatch } from '@pushrocks/smartmatch'; -import * as smartpromise from '@pushrocks/smartpromise'; +import * as plugins from './lik.plugins'; /** * allows you to easily keep track of a bunch of strings @@ -59,7 +58,7 @@ export class Stringmap { * checks stringPresence with minimatch */ public checkMinimatch(miniMatchStringArg: string): boolean { - const smartMatchInstance = new SmartMatch(miniMatchStringArg); + const smartMatchInstance = new plugins.smartmatch.SmartMatch(miniMatchStringArg); let foundMatch: boolean = false; for (const stringItem of this._stringArray) { if (smartMatchInstance.match(stringItem)) { @@ -93,7 +92,7 @@ export class Stringmap { * register a new trigger */ public registerUntilTrue(functionArg: TTriggerFunction, callbackArg?: () => any) { - const trueDeferred = smartpromise.defer(); + const trueDeferred = plugins.smartpromise.defer(); this._triggerUntilTrueFunctionArray.push(() => { const result = functionArg(this.getStringArray()); if (result === true) {