Socket
Socket
Sign inDemoInstall

@webreflection/lie

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webreflection/lie - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

cjs/index.js

@@ -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*".
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