Comparing version 1.0.1 to 1.0.2
## 1.0.2 - 2016-01-26 | ||
- Release v1.0.2 / npm@v1.0.2 | ||
- update related libs | ||
- update dotfiles | ||
- update relike-all links to relike-value | ||
## 1.0.1 - 2016-01-15 | ||
@@ -4,0 +10,0 @@ - Release v1.0.1 / npm@v1.0.1 |
{ | ||
"name": "relike", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Simple promisify a callback-style function with sane defaults. Support promisify-ing sync functions.", | ||
@@ -5,0 +5,0 @@ "repository": "hybridables/relike", |
@@ -12,13 +12,13 @@ # [relike][author-www-url] [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] | ||
What's the difference between this module, [relike-all](https://github.com/hybridables/relike-all) and [redolent](https://github.com/hybridables/redolent)? | ||
What's the difference between this module, [relike-value](https://github.com/hybridables/relike-value) and [redolent](https://github.com/hybridables/redolent)? | ||
–– Simply, almost nothing. | ||
1. This one just accept `sync` or `async` function which is executed immediately with next arguments, after that it returns `Promise`. | ||
2. [relike-all](https://github.com/hybridables/relike-all) accepts everything and returns `Promise`. But it is little bit tricky: | ||
2. [relike-value](https://github.com/hybridables/relike-value) accepts everything and returns `Promise`. But it is little bit tricky: | ||
- if you pass only one **non-function** argument to it, it will pass it to promise | ||
- if you pass more that one arguments to it, it will create array from them and pass it to promise | ||
- if you pass `function` as first argument, next arguments will be passed to this function | ||
3. [redolent](https://github.com/hybridables/redolent) accepts **everything** and returns function, which when is executed it returns `Promise`. Above things applies here, because it is on top of `relike-all`. | ||
3. [redolent](https://github.com/hybridables/redolent) accepts **everything** and returns function, which when is executed it returns `Promise`. Above things applies here, because it is on top of `relike-value`. | ||
> **Notice:** Both `relike` and `relike-all` direcly executes first argument (if function) and returns `Promise`. | ||
> **Notice:** Both `relike` and `relike-value` direcly executes first argument (if function) and returns `Promise`. | ||
@@ -121,2 +121,5 @@ ## Install | ||
- [native-promise](https://github.com/tunnckoCore/native-promise): Get native `Promise` or falsey value if not available. | ||
- [redolent](https://github.com/hybridables/redolent): Simple promisify **everything** (string, array, stream, boolean, sync/async function, etc) with sane defaults. | ||
- [relike-all](https://github.com/hybridables/relike-all): Promisify all functions in an object, using `relike`. | ||
- [relike-value](https://github.com/hybridables/relike-value): Create promise from sync, async, string, number, array and so on. Handle completion (results) and errors gracefully! Built on top of `relike`, used by `redolent` to build robust (hybrid) APIs. | ||
@@ -123,0 +126,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
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
13464
177