@webreflection/lie
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -34,3 +34,3 @@ 'use strict'; | ||
/** | ||
* | ||
* Returns the `Promise<unknown>` or a `Lie<unknown>` if the `value` is not a `Promise`. | ||
* @param {Promise<unknown> | unknown} value | ||
@@ -37,0 +37,0 @@ * @returns {Promise<unknown> | Lie<unknown>} |
@@ -33,3 +33,3 @@ class Lie { | ||
/** | ||
* | ||
* Returns the `Promise<unknown>` or a `Lie<unknown>` if the `value` is not a `Promise`. | ||
* @param {Promise<unknown> | unknown} value | ||
@@ -36,0 +36,0 @@ * @returns {Promise<unknown> | Lie<unknown>} |
{ | ||
"name": "@webreflection/lie", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An optionally sync promise that directly passes along its value", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |
@@ -1,2 +0,2 @@ | ||
# Lie | ||
# @webreflection/lie | ||
@@ -6,2 +6,4 @@ An optionally sync promise that directly passes along its value, particularly useful for any *API* that handles both synchronous and asynchronous use cases through explicit `.then(...)` invocation. | ||
```js | ||
import lie from '@webreflection/lie'; | ||
lie(123) | ||
@@ -8,0 +10,0 @@ // invoked synchronously |
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
4530
30