Socket
Socket
Sign inDemoInstall

finished

Package Overview
Dependencies
0
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.4 to 1.2.0

HISTORY.md

4

index.js

@@ -9,4 +9,6 @@

var res = thingie.res || thingie
if (!socket.writable)
if (res.finished || !socket.writable) {
return defer(callback)
}

@@ -13,0 +15,0 @@ socket.on('error', done)

{
"name": "finished",
"description": "Execute a callback when a request closes, finishes, or errors",
"version": "1.1.4",
"author": {
"name": "Jonathan Ong",
"email": "me@jongleberry.com",
"url": "http://jongleberry.com",
"twitter": "https://twitter.com/jongleberry"
},
"version": "1.2.0",
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/expressjs/finished.git"
},
"bugs": {
"mail": "me@jongleberry.com",
"url": "https://github.com/expressjs/finished/issues"
},
"repository": "expressjs/finished",
"devDependencies": {
"mocha": "*",
"should": "*"
"istanbul": "0.2.10",
"mocha": "~1.20.1",
"should": "~4.0.1"
},

@@ -28,4 +17,6 @@ "engine": {

"scripts": {
"test": "mocha --require should --reporter spec"
"test": "mocha --reporter dot test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec test/"
}
}

@@ -1,3 +0,7 @@

# finished [![Build Status](https://travis-ci.org/expressjs/finished.svg?branch=master)](https://travis-ci.org/expressjs/finished) [![NPM Version](https://badge.fury.io/js/finished.svg)](http://badge.fury.io/js/finished)
# finished
[![NPM Version](https://badge.fury.io/js/finished.svg)](http://badge.fury.io/js/finished)
[![Build Status](https://travis-ci.org/expressjs/finished.svg?branch=master)](https://travis-ci.org/expressjs/finished)
[![Coverage Status](https://img.shields.io/coveralls/expressjs/finished.svg?branch=master)](https://coveralls.io/r/expressjs/finished)
Execute a callback when a request closes, finishes, or errors.

@@ -7,3 +11,5 @@

`npm install finished`
```sh
$ npm install finished
```

@@ -10,0 +16,0 @@ #### Uses

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc