New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kew

Package Overview
Dependencies
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kew - npm Package Compare versions

Comparing version 0.5.0-alpha to 0.5.0-alpha.1

20

kew.js

@@ -24,4 +24,12 @@

/**
* @param {function()} callback
*/
function nextTick (callback) {
callback()
}
var nextTick = process.nextTick
if (typeof process !== 'undefined') {
nextTick = process.nextTick
}

@@ -35,3 +43,3 @@ /**

* @param {Function} callback
* @param {Object} scope
* @param {Object|undefined} scope
* @param {Array} args

@@ -69,5 +77,9 @@ */

* for leaked rejections.
* @constructor
*/
function PromiseStats() {
/** @type {number} */
this.errorsEmitted = 0
/** @type {number} */
this.errorsHandled = 0

@@ -234,3 +246,3 @@ }

*
* @param {function(this:SCOPE, T, ?): RESULT} onSuccess
* @param {function(this:SCOPE, ...): RESULT} onSuccess
* @param {SCOPE} scope Object whose context callback will be executed in.

@@ -271,3 +283,3 @@ * @param {...*} var_args Additional arguments to be passed to the promise callback.

*
* @param {function(this:SCOPE, Error, ?)} onFail
* @param {function(this:SCOPE, ...)} onFail
* @param {SCOPE} scope Object whose context callback will be executed in.

@@ -274,0 +286,0 @@ * @param {...?} var_args

4

package.json
{
"name": "kew",
"description": "a lightweight promise library for node",
"version": "0.5.0-alpha",
"version": "0.5.0-alpha.1",
"homepage": "https://github.com/Obvious/kew",

@@ -25,3 +25,3 @@ "authors": [

"nodeunit": "0.8.1",
"closure-npc": "0.1.3"
"closure-npc": "0.1.5"
},

@@ -28,0 +28,0 @@ "scripts": {

@@ -25,2 +25,8 @@ /**

/**
* @param {number} n
* @param {*} result
*/
var callbackNeedsBind = function (n, result) {};
/**
@param {Error} error

@@ -36,2 +42,7 @@ */

/** @return {kew.Promise.<string>} */
var stringPromise = function () {
return kew.resolve('string')
}
var exampleThen = function () {

@@ -47,2 +58,7 @@ var examplePromise = new Promise();

var thenBound = function () {
stringPromise().thenBound(callbackNeedsBind, null, 3).failBound(callbackNeedsBind, null, 3);
};
var examplePromise = function () {

@@ -49,0 +65,0 @@ var promise = new Promise(callback);

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