Compare commits

...

2 Commits

Author SHA1 Message Date
929a6eff07 4.0.5 2020-05-25 22:18:42 +00:00
87243881bb fix(core): update 2020-05-25 22:18:41 +00:00
4 changed files with 7 additions and 6 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/lik", "name": "@pushrocks/lik",
"version": "4.0.4", "version": "4.0.5",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/lik", "name": "@pushrocks/lik",
"version": "4.0.4", "version": "4.0.5",
"private": false, "private": false,
"description": "light little helpers for node", "description": "light little helpers for node",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -1,3 +1,5 @@
import * as plugins from './lik.plugins';
/** /**
* fast map allows for very quick lookups of objects with a unique key * fast map allows for very quick lookups of objects with a unique key
*/ */

View File

@ -1,5 +1,4 @@
import { SmartMatch } from '@pushrocks/smartmatch'; import * as plugins from './lik.plugins';
import * as smartpromise from '@pushrocks/smartpromise';
/** /**
* allows you to easily keep track of a bunch of strings * allows you to easily keep track of a bunch of strings
@ -59,7 +58,7 @@ export class Stringmap {
* checks stringPresence with minimatch * checks stringPresence with minimatch
*/ */
public checkMinimatch(miniMatchStringArg: string): boolean { public checkMinimatch(miniMatchStringArg: string): boolean {
const smartMatchInstance = new SmartMatch(miniMatchStringArg); const smartMatchInstance = new plugins.smartmatch.SmartMatch(miniMatchStringArg);
let foundMatch: boolean = false; let foundMatch: boolean = false;
for (const stringItem of this._stringArray) { for (const stringItem of this._stringArray) {
if (smartMatchInstance.match(stringItem)) { if (smartMatchInstance.match(stringItem)) {
@ -93,7 +92,7 @@ export class Stringmap {
* register a new trigger * register a new trigger
*/ */
public registerUntilTrue(functionArg: TTriggerFunction, callbackArg?: () => any) { public registerUntilTrue(functionArg: TTriggerFunction, callbackArg?: () => any) {
const trueDeferred = smartpromise.defer(); const trueDeferred = plugins.smartpromise.defer();
this._triggerUntilTrueFunctionArray.push(() => { this._triggerUntilTrueFunctionArray.push(() => {
const result = functionArg(this.getStringArray()); const result = functionArg(this.getStringArray());
if (result === true) { if (result === true) {