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 0.1.0 to 0.1.1

7

cjs/index.js
'use strict';
module.exports = typeof Promise === 'function' ? Promise : function (fn) {
let queue = [], resolved = 0;
fn(() => {
let queue = [], resolved = 0, value;
fn($ => {
value = $;
resolved = 1;

@@ -10,4 +11,4 @@ queue.splice(0).forEach(then);

function then(fn) {
return (resolved ? setTimeout(fn) : queue.push(fn)), this;
return (resolved ? setTimeout(fn, 0, value) : queue.push(fn)), this;
}
};
export default typeof Promise === 'function' ? Promise : function (fn) {
let queue = [], resolved = 0;
fn(() => {
let queue = [], resolved = 0, value;
fn($ => {
value = $;
resolved = 1;

@@ -9,4 +10,4 @@ queue.splice(0).forEach(then);

function then(fn) {
return (resolved ? setTimeout(fn) : queue.push(fn)), this;
return (resolved ? setTimeout(fn, 0, value) : queue.push(fn)), this;
}
};
{
"name": "@webreflection/lie",
"version": "0.1.0",
"version": "0.1.1",
"description": "A badly implemented Promise",

@@ -5,0 +5,0 @@ "main": "./cjs/index.js",

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