@pushrocks/lik
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "@pushrocks/lik", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"private": false, | ||
"description": "light little helpers for node", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"main": "dist_ts/index.js", | ||
"typings": "dist_ts/index.d.ts", | ||
"scripts": { | ||
@@ -23,8 +23,8 @@ "test": "(tstest test/)", | ||
"devDependencies": { | ||
"@gitzone/tsbuild": "^2.1.17", | ||
"@gitzone/tsbuild": "^2.1.24", | ||
"@gitzone/tsrun": "^1.2.8", | ||
"@gitzone/tstest": "^1.0.28", | ||
"@pushrocks/tapbundle": "^3.2.0", | ||
"@types/node": "^13.7.0", | ||
"tslint": "^6.0.0", | ||
"@pushrocks/tapbundle": "^3.2.1", | ||
"@types/node": "^14.0.5", | ||
"tslint": "^6.1.2", | ||
"tslint-config-prettier": "^1.18.0" | ||
@@ -37,3 +37,3 @@ }, | ||
"@pushrocks/smarttime": "^3.0.12", | ||
"@pushrocks/smartunique": "^3.0.1", | ||
"@pushrocks/smartunique": "^3.0.3", | ||
"@types/minimatch": "^3.0.3", | ||
@@ -47,3 +47,4 @@ "minimatch": "^3.0.4", | ||
"dist/**/*", | ||
"dist_web/**/*", | ||
"dist_*/**/*", | ||
"dist_ts/**/*", | ||
"dist_ts_web/**/*", | ||
@@ -50,0 +51,0 @@ "assets/**/*", |
@@ -38,3 +38,2 @@ # @pushrocks/lik | ||
## Contribution | ||
@@ -41,0 +40,0 @@ |
@@ -191,3 +191,3 @@ import * as plugins from './lik.plugins'; | ||
/** | ||
* returns a new Objectmap that includes | ||
* returns a new Objectmap that includes | ||
*/ | ||
@@ -194,0 +194,0 @@ public concat(objectMapArg: ObjectMap<T>) { |
@@ -95,7 +95,11 @@ import * as plugins from './lik.plugins'; | ||
*/ | ||
public registerUntilTrue(functionArg: ITriggerFunction, doFunctionArg) { | ||
public registerUntilTrue(functionArg: ITriggerFunction, callbackArg?: () => any) { | ||
const trueDeferred = plugins.smartpromise.defer(); | ||
this._triggerUntilTrueFunctionArray.push(() => { | ||
const result = functionArg(); | ||
if (result === true) { | ||
doFunctionArg(); | ||
if (callbackArg) { | ||
callbackArg(); | ||
} | ||
trueDeferred.resolve(); | ||
} | ||
@@ -105,2 +109,3 @@ return result; | ||
this.notifyTrigger(); | ||
return trueDeferred.promise; | ||
} | ||
@@ -107,0 +112,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85691
1935
48
1