promise-deferred
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,6 +1,6 @@ | ||
"use strict"; | ||
var Promise = require('promise'); | ||
var Deferred = function Deferred() { | ||
"use strict"; | ||
if (!(this instanceof Deferred)) { return new Deferred(); } | ||
@@ -7,0 +7,0 @@ |
{ | ||
"name": "promise-deferred", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A lightweight Deferred implementation, on top of Promises/A+", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "node test.js", | ||
"test": "npm run lint && node test.js && npm run coverage-quiet", | ||
"coverage": "covert test.js", | ||
"coverage-quiet": "covert test.js --quiet" | ||
"coverage-quiet": "covert test.js --quiet", | ||
"lint": "jscs *.js" | ||
}, | ||
@@ -53,3 +54,4 @@ "repository": { | ||
"tape": "~2.14.0", | ||
"covert": "~0.4.0" | ||
"covert": "~1.0.0", | ||
"jscs": "~1.5.9" | ||
}, | ||
@@ -56,0 +58,0 @@ "engines": { |
@@ -32,7 +32,7 @@ #promise-deferred <sup>[![Version Badge][2]][1]</sup> | ||
[2]: http://vb.teelaun.ch/ljharb/promise-deferred.svg | ||
[3]: https://travis-ci.org/ljharb/promise-deferred.png | ||
[3]: https://travis-ci.org/ljharb/promise-deferred.svg | ||
[4]: https://travis-ci.org/ljharb/promise-deferred | ||
[5]: https://david-dm.org/ljharb/promise-deferred.png | ||
[5]: https://david-dm.org/ljharb/promise-deferred.svg | ||
[6]: https://david-dm.org/ljharb/promise-deferred | ||
[7]: https://david-dm.org/ljharb/promise-deferred/dev-status.png | ||
[7]: https://david-dm.org/ljharb/promise-deferred/dev-status.svg | ||
[8]: https://david-dm.org/ljharb/promise-deferred#info=devDependencies | ||
@@ -39,0 +39,0 @@ [9]: https://ci.testling.com/ljharb/promise-deferred.png |
@@ -12,2 +12,7 @@ var test = require('tape'); | ||
test('Deferred has a reference to Promise', function (t) { | ||
t.ok(Deferred.Promise, Promise, 'Deferred.Promise === Promise'); | ||
t.end(); | ||
}); | ||
test('has a promise', function (t) { | ||
@@ -14,0 +19,0 @@ var deferred = Deferred(); |
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
7204
8
80
3