Socket
Socket
Sign inDemoInstall

@pushrocks/lik

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pushrocks/lik - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

dist_ts/index.d.ts

19

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc