@graffy/server 0.19.1-alpha.1 → 0.19.1-alpha.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.
package/httpServer.d.ts CHANGED
@@ -13,5 +13,6 @@
13
13
  * @returns
14
14
  */
15
15
  export default function server(store: any, { auth, allowedOptions }?: {
16
- allowedOptions?: any[];
16
+ auth?: any;
17
+ allowedOptions?: string[];
17
18
  }): (req: any, res: any) => Promise<void>;
package/package.json CHANGED
@@ -2,18 +2,9 @@
2
2
  "name": "@graffy/server",
3
3
  "description": "Node.js library for building an API for a Graffy store.",
4
4
  "author": "aravind (https://github.com/aravindet)",
5
- "version": "0.19.1-alpha.1",
6
- "main": "./cjs/index.js",
7
- "exports": {
8
- ".": {
9
- "import": "./index.js",
10
- "types": "./index.d.ts"
11
- },
12
- "./*": {
13
- "import": "./*.js",
14
- "types": "./*.d.ts"
15
- }
16
- },
5
+ "version": "0.19.1-alpha.3",
6
+ "type": "module",
7
+ "main": "./index.js",
17
8
  "types": "./index.d.ts",
18
9
  "repository": {
19
10
  "type": "git",
@@ -21,8 +12,8 @@
21
12
  },
22
13
  "license": "Apache-2.0",
23
14
  "dependencies": {
24
- "@graffy/common": "0.19.1-alpha.1",
15
+ "@graffy/common": "0.19.1-alpha.3",
25
16
  "debug": "^4.4.3",
26
- "ws": "^8.19.0"
17
+ "ws": "^8.20.1"
27
18
  }
28
19
  }
package/wsServer.d.ts CHANGED
@@ -13,5 +13,6 @@
13
13
  * @returns
14
14
  */
15
15
  export default function server(store: any, { auth, allowedOptions }?: {
16
- allowedOptions?: any[];
16
+ auth?: any;
17
+ allowedOptions?: string[];
17
18
  }): (request: any, socket: any, head: any) => Promise<void>;