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

promish

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promish - npm Package Compare versions

Comparing version 4.2.6 to 4.2.7

4

lib/promish.js

@@ -32,4 +32,4 @@ 'use strict';

return this.then(
value => { h(); return value; },
error => { h(); throw error; }
value => Promish.resolve(h()).then(() => value),
error => Promish.resolve(h()).then(() => Promish.reject(error))
);

@@ -36,0 +36,0 @@ }

{
"name": "promish",
"version": "4.2.6",
"version": "4.2.7",
"description": "ES6 Promise Shim",

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

@@ -177,4 +177,9 @@ # Promish

A finally handler will be called no matter what state the promise chain gets into.
There are no arguments provided to the finally handler and the downstream promise state will depend on the handler code.
Typically this will be resolved with the return value (e.g. undefined).
There are no arguments provided to the finally handler and the downstream promise state will typically reflect
the state of the promise before the finally handler is called.
If the finally handler returns a promise, finally will wait for the promise to resolve before propagating the
incoming promise value.
If the finally handler's promise is rejected, the new rejected state will override the incoming promise state
and the new state will take on the new rejection state of the finally handler's promise.
This will also be the case if the finally handler throws an exception.

@@ -181,0 +186,0 @@ ```javascript

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