Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.0 to 1.0.1

2

cjs/index.js

@@ -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

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