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

yaku

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaku - npm Package Compare versions

Comparing version 0.2.9 to 0.3.0

16

lib/utils.js

@@ -80,2 +80,3 @@ var Promise, isArray, isFunction, isNumber, isObject, utils,

isIterDone = false;
iterIndex = 0;
if (!isNumber(limit)) {

@@ -91,6 +92,5 @@ progress = saveResults;

if (isArray(list)) {
iterIndex = 0;
iter = function() {
var el;
el = list[iterIndex++];
el = list[iterIndex];
if (el === void 0) {

@@ -115,9 +115,5 @@ return utils.end;

addTask = function() {
var err, p, task;
try {
task = iter();
} catch (_error) {
err = _error;
return reject(err);
}
var index, p, task;
task = iter();
index = iterIndex++;
if (isIterDone || task === utils.end) {

@@ -139,3 +135,3 @@ isIterDone = true;

if (saveResults) {
resutls.push(ret);
resutls[index] = ret;
}

@@ -142,0 +138,0 @@ if (typeof progress === "function") {

/*
Yaku v0.2.9
Yaku v0.3.0
(c) 2015 Yad Smood. http://ysmood.org

@@ -4,0 +4,0 @@ License MIT

{
"name": "yaku",
"version": "0.2.9",
"version": "0.3.0",
"description": "An ES6 Promise/A+ implementation that doesn't hurt.",

@@ -5,0 +5,0 @@ "main": "lib/yaku.js",

@@ -92,3 +92,3 @@ <a href="http://promisesaplus.com/">

> No. All non-ES6 APIs are only implemented for debugging and testing, which means when you remove Yaku, everything
> should works well with ES6 native promise. If you need fancy and magic, go for [Bluebird][].
> should work well with ES6 native promise. If you need fancy and magic, go for [Bluebird][].

@@ -388,3 +388,3 @@ - Why use [CoffeeScript][], not Javascript?

- ### **[callbackify(fn, self)](src/utils.coffee?source#L146)**
- ### **[callbackify(fn, self)](src/utils.coffee?source#L144)**

@@ -402,11 +402,11 @@ If a function returns promise, convert it to

- ### **[Deferred](src/utils.coffee?source#L168)**
- ### **[Deferred](src/utils.coffee?source#L166)**
Create a `jQuery.Deferred` like object.
- ### **[end](src/utils.coffee?source#L180)**
- ### **[end](src/utils.coffee?source#L178)**
The end symbol.
- ### **[flow(fns)](src/utils.coffee?source#L235)**
- ### **[flow(fns)](src/utils.coffee?source#L233)**

@@ -475,3 +475,3 @@ Creates a function that is the composition of the provided functions.

- ### **[isPromise(obj)](src/utils.coffee?source#L281)**
- ### **[isPromise(obj)](src/utils.coffee?source#L279)**

@@ -484,3 +484,3 @@ Check if an object is a promise-like object.

- ### **[promisify(fn, self)](src/utils.coffee?source#L306)**
- ### **[promisify(fn, self)](src/utils.coffee?source#L304)**

@@ -515,3 +515,3 @@ Convert a node callback style function to a function that returns

- ### **[sleep(time, val)](src/utils.coffee?source#L325)**
- ### **[sleep(time, val)](src/utils.coffee?source#L323)**

@@ -530,3 +530,3 @@ Create a promise that will wait for a while before resolution.

- ### **[throw(err)](src/utils.coffee?source#L339)**
- ### **[throw(err)](src/utils.coffee?source#L337)**

@@ -533,0 +533,0 @@ Throw an error to break the program.

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