@certik/skynet 0.19.1 → 0.19.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.19.2
4
+ - Updated: type of `apiKey` in `Serve` and `ServeDefinition` types
5
+
3
6
  ## 0.19.1
4
7
  - Fixed: the domain that nomad api prints in console on start
5
8
 
package/api.ts CHANGED
@@ -20,7 +20,7 @@ type Route = {
20
20
  type Serve = {
21
21
  prefix: string;
22
22
  port: number;
23
- apiKey?: string;
23
+ apiKey?: string | Record<string, string>;
24
24
  };
25
25
 
26
26
  async function logStartMiddleware(req: Request, res: Response, next: NextFunction) {
package/app.ts CHANGED
@@ -26,7 +26,7 @@ type RouteDefinition = {
26
26
  type ServeDefinition = {
27
27
  prefix: string;
28
28
  port: number;
29
- apiKey?: string;
29
+ apiKey?: string | Record<string, string>;
30
30
  killTimeout?: string;
31
31
  cpu: number;
32
32
  mem: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@certik/skynet",
3
- "version": "0.19.1",
3
+ "version": "0.19.2",
4
4
  "description": "Skynet Shared JS library",
5
5
  "type": "module",
6
6
  "main": "index.ts",