callback-timeout
Advanced tools
Comparing version 1.0.1 to 2.0.0
@@ -1,10 +0,3 @@ | ||
var inherits = require('util').inherits, | ||
captureStackTrace = require('capture-stack-trace') | ||
var defineError = require('define-error') | ||
module.exports.TimeoutError = TimeoutError | ||
function TimeoutError (message) { | ||
captureStackTrace(this, TimeoutError) | ||
this.name = this.constructor.name | ||
this.message = message | ||
} | ||
inherits(TimeoutError, Error) | ||
module.exports.TimeoutError = defineError('TimeoutError') |
{ | ||
"name": "callback-timeout", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Invokes callback with single error argument if timeout occurs before it's invoked by other means", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "make npm-test", | ||
"coverage": "make npm-coverage" | ||
}, | ||
"directories": { | ||
@@ -23,2 +19,3 @@ "example": "example", | ||
], | ||
"license": "MIT", | ||
"devDependencies": { | ||
@@ -28,5 +25,7 @@ "@jasonpincin/standard": "~5.0.0-7", | ||
"opn": "~1.0.2", | ||
"phantomjs": "~1.9.18", | ||
"tap-dot": "~1.0.0", | ||
"tap-spec": "~4.0.2", | ||
"tape": "~4.0.3" | ||
"tape": "~4.0.3", | ||
"zuul": "~3.2.0" | ||
}, | ||
@@ -38,6 +37,10 @@ "author": { | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"capture-stack-trace": "~1.0.0" | ||
"define-error": "~1.0.0" | ||
}, | ||
"scripts": { | ||
"test": "make npm-test", | ||
"coverage": "make npm-coverage", | ||
"browser-tests": "zuul -- test/*.js" | ||
} | ||
} |
@@ -64,2 +64,8 @@ callback-timeout | ||
### browser tests | ||
`npm run browser-tests` | ||
This will run the tests in all browsers (specified in .zuul.yml). Be sure to [educate zuul](https://github.com/defunctzombie/zuul/wiki/cloud-testing#2-educate-zuul) first. | ||
### coverage | ||
@@ -66,0 +72,0 @@ |
Sorry, the diff of this file is not supported yet
11305
76
8
13
105
+ Addeddefine-error@~1.0.0
+ Addeddefine-error@1.0.0(transitive)
- Removedcapture-stack-trace@~1.0.0