manner.js 0.0.29 → 0.0.30

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/server.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manner.js",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "Frontend mode project.",
5
5
  "repository": "git@github.com:leobrad/mode.git",
6
6
  "author": "Leo Ely",
package/server.js CHANGED
@@ -224,6 +224,7 @@ class CommonHttp {
224
224
  } = this;
225
225
  res.end(time);
226
226
  } else if (this.regexp.test(url)) {
227
+ const restPath = url.substring(1, url.length);
227
228
  this.cacheOutput(req, res, restPath, _fs.default.readFileSync(_path.default.resolve('static', restPath)), parseInt(_fs.default.statSync(_path.default.resolve('static', restPath)).mtimeMs));
228
229
  } else if (url.substring(0, 4) === '/api') {
229
230
  const body = await new Promise((resolve, reject) => {