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

callback-timeout

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

callback-timeout - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

11

errors.js

@@ -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')

19

package.json
{
"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

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