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 2.2.1 to 3.0.0

README.md

3

dist/promise-finally.d.ts

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

import Promise = require('any-promise');
export default function promiseFinally(value: any, cb: Function): Promise<any>;
export default function promiseFinally<T>(value: T | Promise<T>, cb: () => void | Promise<void>): Promise<T>;
"use strict";
var Promise = require('any-promise');
function promiseFinally(value, cb) {

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

"use strict";
var test = require('blue-tape');
var Promise = require('any-promise');
var promise_finally_1 = require('./promise-finally');
var test = require("blue-tape");
var promise_finally_1 = require("./promise-finally");
test('promise-finally', function (t) {

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

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

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

"devDependencies": {
"blue-tape": "^0.2.0",
"blue-tape": "^1.0.0",
"bluebird": "^3.0.5",

@@ -51,8 +51,5 @@ "istanbul": "^0.4.3",

"tslint-config-standard": "^1.0.0",
"typescript": "^1.6.2",
"typescript": "^2.0.3",
"typings": "^1.0.4"
},
"dependencies": {
"any-promise": "^1.3.0"
}
}
{
"devDependencies": {
"blue-tape": "github:typings/typed-blue-tape#a4e41a85d6f760e7c60088127968eae7d3a556fa"
"blue-tape": "registry:npm/blue-tape#0.2.0+20160723033700"
},
"globalDependencies": {
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#1c56e368e17bb28ca57577250624ca5bd561aa81"
"globalDevDependencies": {
"node": "registry:env/node#6.0.0+20161105011511"
}
}

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