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.0.4 to 0.0.5

2

dist/yaku.js
/*
Yaku v0.0.1
Yaku v0.0.5
(c) 2015 Yad Smood. http://ysmood.org

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

{
"name": "yaku",
"version": "0.0.4",
"version": "0.0.5",
"description": "A ES6 Promise/A+ implementation that doesn't hurts.",

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

@@ -12,3 +12,3 @@ # Overview

- The minified file is only 2.7KB (`bluebird` / 73KB, `es6-promise` / 18KB)
- The minified file is only 2.7KB ([Bluebird][] / 73KB, [ES6-promise][] / 18KB)
- 100% compliant with Promise/A+ specs

@@ -56,9 +56,9 @@ - Better performance than the native Promise

| Name | Unit Test | 1ms async task | sync task | Helpers | file size |
| ----------- | --------- | -------------- | --------- | ------- | --------- |
| Yaku | 872/872 | 283ms | 68ms | ++ | 2.7KB |
| Bluebird | 872/872 | 244ms | 164ms | +++++++ | 73KB |
| es6-promise | 872/872 | 435ms | 110ms | + | 18KB |
| native | 872/872 | 816ms | 605ms | + | 0KB |
| q | 208/872 | 2637ms | 2327ms | +++ | 24K |
| Name | Unit Test | 1ms async task | sync task | Helpers | file size |
| --------------- | --------- | -------------- | --------- | ------- | --------- |
| Yaku | 872/872 | 283ms | 68ms | ++ | 2.7KB |
| [Bluebird][] | 872/872 | 244ms | 164ms | +++++++ | 73KB |
| [ES6-promise][] | 872/872 | 435ms | 110ms | + | 18KB |
| [native][] | 872/872 | 816ms | 605ms | + | 0KB |
| [q][] | 208/872 | 2637ms | 2327ms | +++ | 24K |

@@ -123,3 +123,3 @@ - **Helpers**: extra methods that help with your promise programming, such as

The catch() method returns a Promise and deals with rejected cases only.
The `catch()` method returns a Promise and deals with rejected cases only.
It behaves the same as calling `Promise.prototype.then(undefined, onRejected)`.

@@ -145,3 +145,3 @@

The Promise. resolve(value) method returns a Promise object that is resolved with the given value.
The `Promise.resolve(value)` method returns a Promise object that is resolved with the given value.
If the value is a thenable (i.e. has a then method), the returned promise will "follow" that thenable,

@@ -164,3 +164,3 @@ adopting its eventual state; otherwise the returned promise will be fulfilled with the value.

The Promise.reject(reason) method returns a Promise object that is rejected with the given reason.
The `Promise.reject(reason)` method returns a Promise object that is rejected with the given reason.

@@ -180,3 +180,3 @@ - **<u>param</u>**: `reason` { _Any_ }

The Promise.race(iterable) method returns a promise that resolves or rejects
The `Promise.race(iterable)` method returns a promise that resolves or rejects
as soon as one of the promises in the iterable resolves or rejects,

@@ -269,2 +269,6 @@ with the value or reason from that promise.

[Bluebird]: https://github.com/petkaantonov/bluebird
[ES6-promise]: https://github.com/jakearchibald/es6-promise
[native]: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects
[q]: https://github.com/kriskowal/q
[release page]: https://github.com/ysmood/yaku/releases

@@ -271,0 +275,0 @@ [docs/minPromiseA+.coffee]: docs/minPromiseA+.coffee

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