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

promise-finally

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-finally - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

1

dist/promise-finally.d.ts

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

import Promise = require('native-or-bluebird');
export default function promiseFinally(value: any, cb: Function): Promise<any>;

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

var Promise = require('native-or-bluebird');
function promiseFinally(value, cb) {

@@ -2,0 +3,0 @@ return Promise.resolve(value)

2

dist/promise-finally.spec.js
var test = require('blue-tape');
var Promise = require('native-or-bluebird');
var promise_finally_1 = require('./promise-finally');
require('es6-promise').polyfill();
test('promise-finally', function (t) {

@@ -5,0 +5,0 @@ t.test('run on resolve', function (t) {

{
"name": "promise-finally",
"version": "1.0.0",
"version": "2.0.0",
"description": "Simple wrapper to run promise \"finally\" logic",

@@ -44,3 +44,2 @@ "main": "dist/promise-finally.js",

"blue-tape": "^0.1.10",
"es6-promise": "^3.0.2",
"istanbul": "^0.3.6",

@@ -50,3 +49,6 @@ "pre-commit": "^1.0.6",

"typescript": "^1.6.2"
},
"dependencies": {
"native-or-bluebird": "^1.2.0"
}
}

@@ -18,3 +18,3 @@ # Promise Finally

Requires `Promise` to exist globally.
Uses [`native-or-bluebird`](https://github.com/normalize/native-or-bluebird).

@@ -21,0 +21,0 @@ ```js

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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