promise-finally
Advanced tools
Comparing version 2.2.1 to 3.0.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
7614
0
10
0
38
37
- Removedany-promise@^1.3.0
- Removedany-promise@1.3.0(transitive)