@certik/skynet 0.19.0 → 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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.19.2
4
+ - Updated: type of `apiKey` in `Serve` and `ServeDefinition` types
5
+
6
+ ## 0.19.1
7
+ - Fixed: the domain that nomad api prints in console on start
8
+
3
9
  ## 0.19.0
4
10
 
5
11
  - BREAKING: remove multicall from web3 module
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) {
@@ -224,7 +224,7 @@ ${getSelectorDesc(selector)}
224
224
 
225
225
  app.listen(serve.port, () => {
226
226
  if (isProduction()) {
227
- inline.log(`${name} listening at https://api.certik-skynet.com${serve.prefix}`);
227
+ inline.log(`${name} listening at https://api.wf.corp.certik.com${serve.prefix}`);
228
228
  } else {
229
229
  inline.log(`${name} listening at http://localhost:${serve.port}`);
230
230
  }
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/bun.lockb CHANGED
File without changes
package/examples/api.ts CHANGED
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@certik/skynet",
3
- "version": "0.19.0",
3
+ "version": "0.19.2",
4
4
  "description": "Skynet Shared JS library",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -1,5 +0,0 @@
1
- {
2
- "conventionalCommits.scopes": [
3
- "lib-skynet"
4
- ]
5
- }