kb-server 0.0.1-beta.2 → 0.0.1-beta.3

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.
@@ -23,7 +23,7 @@ export interface APIErrorResponse {
23
23
  RequestId: string;
24
24
  };
25
25
  }
26
- export type AuthFunction = (action: string, req: express.Request) => Promise<Record<string, any> | false>;
26
+ export type AuthFunction = (action: string, req: express.Request) => Promise<Record<string, any> | false> | false | Record<string, any>;
27
27
  interface IPackAPIOptions {
28
28
  authFn?: AuthFunction;
29
29
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "kb-server",
3
- "version": "0.0.1-beta.2",
3
+ "version": "0.0.1-beta.3",
4
4
  "description": "A fast server for Node.JS,made by express.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
- "build": "tsc",
7
+ "build": "rm -rf ./dist & tsc",
8
8
  "test": "echo \"Error: no test specified\" && exit 1"
9
9
  },
10
10
  "keywords": [