forked from pillarjs/send
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add: new option to specify which file system to use to serve files by default. * Add: exported erros for basic file system interface check * Add: basic tests via global injection
- Loading branch information
Showing
7 changed files
with
127 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,48 @@ | ||
{ | ||
"name": "send", | ||
"description": "Better streaming static file server with Range and conditional-GET support", | ||
"version": "0.16.2", | ||
"author": "TJ Holowaychuk <[email protected]>", | ||
"name" : "send", | ||
"description" : "Better streaming static file server with Range and conditional-GET support", | ||
"version" : "0.17.0", | ||
"author" : "TJ Holowaychuk <[email protected]>", | ||
"contributors": [ | ||
"Douglas Christopher Wilson <[email protected]>", | ||
"James Wyatt Cready <[email protected]>", | ||
"Jesús Leganés Combarro <[email protected]>" | ||
"Jesús Leganés Combarro <[email protected]>", | ||
"Davrononv Alexander Alisherovich <[email protected]>" | ||
], | ||
"license": "MIT", | ||
"license" : "MIT", | ||
"repository": "pillarjs/send", | ||
"keywords": [ | ||
"keywords" : [ | ||
"static", | ||
"file", | ||
"server" | ||
], | ||
"dependencies": { | ||
"debug": "2.6.9", | ||
"depd": "~2.0.0", | ||
"destroy": "~1.0.4", | ||
"encodeurl": "~1.0.2", | ||
"escape-html": "~1.0.3", | ||
"etag": "~1.8.1", | ||
"fresh": "0.5.2", | ||
"http-errors": "~1.7.1", | ||
"mime": "1.6.0", | ||
"ms": "2.1.1", | ||
"on-finished": "~2.3.0", | ||
"debug" : "2.6.9", | ||
"depd" : "~2.0.0", | ||
"destroy" : "~1.0.4", | ||
"encodeurl" : "~1.0.2", | ||
"escape-html" : "~1.0.3", | ||
"etag" : "~1.8.1", | ||
"fresh" : "0.5.2", | ||
"http-errors" : "~1.7.1", | ||
"mime" : "1.6.0", | ||
"ms" : "2.1.1", | ||
"on-finished" : "~2.3.0", | ||
"range-parser": "~1.2.0", | ||
"statuses": "~1.5.0" | ||
"statuses" : "~1.5.0" | ||
}, | ||
"devDependencies": { | ||
"after": "0.8.2", | ||
"eslint": "5.8.0", | ||
"after" : "0.8.2", | ||
"eslint" : "5.8.0", | ||
"eslint-config-standard": "12.0.0", | ||
"eslint-plugin-import": "2.14.0", | ||
"eslint-plugin-markdown": "1.0.0-rc.1", | ||
"eslint-plugin-node": "7.0.1", | ||
"eslint-plugin-promise": "4.0.1", | ||
"eslint-plugin-import" : "2.14.0", | ||
"eslint-plugin-markdown": "1.0.0-beta.6", | ||
"eslint-plugin-node" : "7.0.1", | ||
"eslint-plugin-promise" : "4.0.1", | ||
"eslint-plugin-standard": "4.0.0", | ||
"istanbul": "0.4.5", | ||
"mocha": "5.2.0", | ||
"supertest": "3.3.0" | ||
"istanbul" : "0.4.5", | ||
"mocha" : "5.2.0", | ||
"supertest" : "3.3.0" | ||
}, | ||
"files": [ | ||
"HISTORY.md", | ||
|
@@ -53,9 +54,10 @@ | |
"node": ">= 0.8.0" | ||
}, | ||
"scripts": { | ||
"lint": "eslint --plugin markdown --ext js,md .", | ||
"test": "mocha --check-leaks --reporter spec --bail", | ||
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --check-leaks --reporter spec", | ||
"lint" : "eslint --plugin markdown --ext js,md .", | ||
"test" : "mocha --check-leaks --reporter spec --bail", | ||
"test:d" : "node --inspect-brk test.js", | ||
"test-ci" : "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --check-leaks --reporter spec", | ||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --check-leaks --reporter dot" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
var Mocha = require('mocha') | ||
var path = require('path') | ||
|
||
// Instantiate a Mocha instance. | ||
var mocha = new Mocha() | ||
|
||
var testDir = '/test/' | ||
mocha.addFile( | ||
path.join(__dirname, testDir, 'send.js') | ||
) | ||
// Run the tests. | ||
mocha.run(function (failures) { | ||
// exit with non-zero status if there were failures | ||
process.exitCode = failures ? 1 : 0 | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters