@webreflection/lie
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -23,3 +23,3 @@ 'use strict'; | ||
* @param {(value: V) => T} success | ||
* @param {() => never} [_] ignored `failure` callback | ||
* @param {() => never} [_] | ||
* @returns {Thenable<T>} | ||
@@ -26,0 +26,0 @@ */ |
@@ -22,3 +22,3 @@ /** | ||
* @param {(value: V) => T} success | ||
* @param {() => never} [_] ignored `failure` callback | ||
* @param {() => never} [_] | ||
* @returns {Thenable<T>} | ||
@@ -25,0 +25,0 @@ */ |
{ | ||
"name": "@webreflection/lie", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "An optionally sync promise that directly passes along its value", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |
@@ -7,2 +7,4 @@ # @webreflection/lie | ||
import lie from '@webreflection/lie'; | ||
// the lie signature: | ||
// <T>(value: T) => Thenable<T> | ||
@@ -31,1 +33,3 @@ lie(123) | ||
``` | ||
**Note**: a `lie(Promise.resolve(123))`, a `lie(lie(123))`, or even a `lie({ then: able })` would simply pass through as result the provided value, as opposite of creating "*lies of lies*". |
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
4595
34