Socket
Socket
Sign inDemoInstall

relike

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

relike - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

CHANGELOG.md
## 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

2

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

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