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

atomic-promise

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atomic-promise - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

dist/atomic-promise.js

@@ -1,2 +0,2 @@

/*! atomic-promise v0.0.6 https://github.com/falsandtru/atomic-promise | (c) 2018, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! atomic-promise v0.0.7 https://github.com/falsandtru/atomic-promise | (c) 2018, falsandtru | (Apache-2.0 AND MPL-2.0) License */
require = function () {

@@ -3,0 +3,0 @@ function r(e, n, t) {

@@ -1,2 +0,2 @@

/*! atomic-promise v0.0.6 https://github.com/falsandtru/atomic-promise | (c) 2018, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! atomic-promise v0.0.7 https://github.com/falsandtru/atomic-promise | (c) 2018, falsandtru | (Apache-2.0 AND MPL-2.0) License */
require=function(){return function e(t,n,r){function i(s,c){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!c&&u)return u(s,!0);if(o)return o(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var h=n[s]={exports:{}};t[s][0].call(h.exports,function(e){return i(t[s][1][e]||e)},h,h.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}}()({1:[function(e,t,n){},{}],2:[function(e,t,n){arguments[4][1][0].apply(n,arguments)},{dup:1}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.concat=function(e,t){for(let n=0,r=e.length,i=t.length;n<i;++n)e[r+n]=t[n];return e}},{}],4:[function(e,t,n){"use strict";var r,i;Object.defineProperty(n,"__esModule",{value:!0});const o=e("./concat");var s;!function(e){e[e.resolved=0]="resolved",e[e.rejected=1]="rejected"}(s||(s={}));const c=Symbol(),u=Symbol(),f=Symbol();class h{constructor(e){this[Symbol.toStringTag]="Promise",this[r]=[],this[i]=[];try{e(e=>{this[c][0]=this[c][0]||[0,e],this[f]()},e=>{this[c][0]=this[c][0]||[1,e],this[f]()})}catch(e){this[c][0]=[1,e],this[f]()}}static get[Symbol.species](){return h}static all(e){return e.reduce((e,t)=>e.then(e=>h.resolve(t).then(t=>o.concat(e,[t]))),h.resolve([]))}static race(e){return new h((t,n)=>void e.forEach(e=>void h.resolve(e).then(t,n)))}static resolve(e){return new h(t=>void t(e))}static reject(e){return new h((t,n)=>void n(e))}[f](){if(!this[c][0])return;const[e,t]=this[c][0];for(;this[u].length>0;){const[n,r]=this[u].shift();switch(e){case 0:a(t)?t.then(n,r):n(t);continue;case 1:r(t);continue}}}then(e,t){return new h((n,r)=>{this[u].push([t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else n(this)}]),this[f]()})}catch(e){return this.then(void 0,e)}finally(e){return this.then(e,e).then(()=>this)}}function a(e){return!!e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}n.AtomicPromise=h,r=c,i=u},{"./concat":3}],"atomic-promise":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(e("spica/promise"))},{"spica/promise":4}]},{},[1,2,"atomic-promise"]),function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():Object.assign(e,t())}("undefined"!=typeof self?self:this,function(){return require("atomic-promise")});
{
"name": "atomic-promise",
"version": "0.0.6",
"version": "0.0.7",
"description": "Promise with no delay.",

@@ -5,0 +5,0 @@ "private": false,

Sorry, the diff of this file is too big to display

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