@jnode/server 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/handlers.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnode/server",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Simple web server package for Node.js.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/handlers.js CHANGED
@@ -54,7 +54,7 @@ class DataHandler {
54
54
  // file handler: local file
55
55
  class FileHandler {
56
56
  constructor(file, options = {}) {
57
- this.file = path.resolve(this.file);
57
+ this.file = path.resolve(file);
58
58
  this.options = options;
59
59
 
60
60
  // range may be disabled by `options.disableRange` or when `statusCode` is set to non-200 value