koa-static-folder
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,3 +0,2 @@ | ||
var debug = require('debug')('koa-static-folder'), | ||
send = require('koa-send'), | ||
var send = require('koa-send'), | ||
fs = require('fs'); | ||
@@ -20,7 +19,5 @@ | ||
debug('Static: "%s".', root); | ||
var rootStat = fs.statSync(root); | ||
if(!rootStat.isDirectory()) throw Error('Root should be a directory.'); | ||
debug('Root is a directory. Initializing static directory serving at "%s"',root); | ||
var finalFiles = walk(root); | ||
@@ -27,0 +24,0 @@ |
{ | ||
"name": "koa-static-folder", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Static file server based on a folder instead of a single file. Node needs to be restarted in order to work through file caching.", | ||
"main": "index.js", | ||
"dependencies": { | ||
"assert": "~1.1.1", | ||
"debug": "~0.7.4", | ||
"koa-send": "~1.2.4", | ||
"koa": "~0.5.1" | ||
@@ -10,0 +9,0 @@ }, |
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
2
4400
56
+ Addedkoa-send@~1.2.4
+ Addeddebug@4.4.0(transitive)
+ Addedee-first@1.0.3(transitive)
+ Addedfinished@1.2.2(transitive)
+ Addedkoa-send@1.2.4(transitive)
+ Addedms@2.1.3(transitive)
- Removedassert@~1.1.1
- Removeddebug@~0.7.4
- Removedassert@1.1.2(transitive)
- Removeddebug@0.7.4(transitive)
- Removedinherits@2.0.1(transitive)
- Removedutil@0.10.3(transitive)