Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
6d29798660 | |||
f80a84086c | |||
929a6eff07 | |||
87243881bb |
8
package-lock.json
generated
8
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/lik",
|
"name": "@pushrocks/lik",
|
||||||
"version": "4.0.4",
|
"version": "4.0.6",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -1294,9 +1294,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@pushrocks/smarttime": {
|
"@pushrocks/smarttime": {
|
||||||
"version": "3.0.15",
|
"version": "3.0.16",
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmarttime/-/smarttime-3.0.15.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmarttime/-/smarttime-3.0.16.tgz",
|
||||||
"integrity": "sha512-chSBvc6whiqqTQA06xiGfSrF/j7l6z1XE47nCOvbS9B7m9uLnGI4IlwU7Z5Jmd52hhFisquWPn7Yy3sgJ7VPmg==",
|
"integrity": "sha512-2pQMnvZThDE9xUdlZQfIGWd1nqPAdS/MRU+RVujtoaie4XZf1F5q6TWx4sNxw99L1owXg2NqdFhv1RQ6BcPfxg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@pushrocks/smartdelay": "^2.0.6",
|
"@pushrocks/smartdelay": "^2.0.6",
|
||||||
"@pushrocks/smartpromise": "^3.0.2",
|
"@pushrocks/smartpromise": "^3.0.2",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/lik",
|
"name": "@pushrocks/lik",
|
||||||
"version": "4.0.4",
|
"version": "4.0.6",
|
||||||
"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",
|
||||||
@ -34,7 +34,7 @@
|
|||||||
"@pushrocks/smartmatch": "^1.0.7",
|
"@pushrocks/smartmatch": "^1.0.7",
|
||||||
"@pushrocks/smartpromise": "^3.0.6",
|
"@pushrocks/smartpromise": "^3.0.6",
|
||||||
"@pushrocks/smartrx": "^2.0.5",
|
"@pushrocks/smartrx": "^2.0.5",
|
||||||
"@pushrocks/smarttime": "^3.0.15",
|
"@pushrocks/smarttime": "^3.0.16",
|
||||||
"@pushrocks/smartunique": "^3.0.3",
|
"@pushrocks/smartunique": "^3.0.3",
|
||||||
"@types/minimatch": "^3.0.3",
|
"@types/minimatch": "^3.0.3",
|
||||||
"symbol-tree": "^3.2.4"
|
"symbol-tree": "^3.2.4"
|
||||||
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
@ -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) {
|
||||||
|
Reference in New Issue
Block a user