Comparing version 0.1.0 to 0.2.1
@@ -33,3 +33,3 @@ var fs = require('fs') | ||
this.mimetype = options.mimetype || mime.lookup(this.path.slice(this.path.lastIndexOf('.')+1)) | ||
this.mimetype = options.mimetype || mime.getType(this.path.slice(this.path.lastIndexOf('.')+1)) | ||
@@ -156,3 +156,3 @@ var stopBuffering = function () { | ||
self.path = path.join(self.path, self.index) | ||
self.mimetype = mime.lookup(self.path.slice(self.path.lastIndexOf('.')+1)) | ||
self.mimetype = mime.getType(self.path.slice(self.path.lastIndexOf('.')+1)) | ||
fs.stat(self.path, finish) | ||
@@ -159,0 +159,0 @@ return |
{ | ||
"name": "filed", | ||
"description": "Simplified file library.", | ||
"version": "0.1.0", | ||
"version": "0.2.1", | ||
"repository": { | ||
@@ -13,4 +13,5 @@ "type": "git", | ||
}, | ||
"license": "ASL 2.0", | ||
"dependencies": { | ||
"mime": ">= 1.2.6" | ||
"mime": "1.2.6" | ||
}, | ||
@@ -17,0 +18,0 @@ "scripts": { |
@@ -77,1 +77,4 @@ # filed -- Simplified file library. | ||
Just to round out the full feature set and make it full file server if you give filed an existing directory it will actually check for an index.html file in that directory and serve it if it exists. | ||
## License | ||
`ASL 2.0`, see [LICENSE](LICENSE) file. |
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
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
80
28666
8
1
+ Addedmime@1.2.6(transitive)
- Removedmime@4.0.4(transitive)
Updatedmime@1.2.6