catto.js 0.2.1 → 0.2.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/Server.js +3 -3
  2. package/package.json +1 -1
package/Server.js CHANGED
@@ -129,9 +129,9 @@ class Server extends EventEmitter {
129
129
  this.app.ws(...args);
130
130
  return this;
131
131
  }
132
- static(folder, path) {
133
- if (path) {
134
- this.app.use(path, express.static(path.join(__dirname,"..","..",folder)));
132
+ static(folder, pathname) {
133
+ if (pathname) {
134
+ this.app.use(pathname, express.static(path.join(__dirname,"..","..",folder)));
135
135
  } else {
136
136
  this.app.use(express.static(path.join(__dirname,"..","..",folder)));
137
137
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catto.js",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Universal module for everything.",
5
5
  "main": "index.js",
6
6
  "scripts": {