insite-common 2.1.0 → 2.1.1

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.
@@ -3,7 +3,7 @@ import type https from "node:https";
3
3
  import type { AddressInfo } from "node:net";
4
4
 
5
5
 
6
- type InSiteServer = {
6
+ type Server = {
7
7
  icon: string;
8
8
  name: string;
9
9
  protocol: string;
@@ -11,7 +11,7 @@ type InSiteServer = {
11
11
  };
12
12
 
13
13
 
14
- export function showServerListeningMessage(server: InSiteServer) {
14
+ export function showServerListeningMessage(server: Server) {
15
15
 
16
16
  const { address, family, port } = server.server.address() as AddressInfo;
17
17
 
@@ -84,7 +84,7 @@ export type ScanAbilitySchemas<AS extends AbilitiesSchema, ForceTopLevel = false
84
84
  >;
85
85
 
86
86
 
87
- type BasisInSiteAbilities = {
87
+ type BasisAbilities = {
88
88
  login?: {
89
89
  sessionsLimit: number;
90
90
  };
@@ -96,4 +96,4 @@ type BasisInSiteAbilities = {
96
96
  };
97
97
 
98
98
 
99
- export type Abilities<AS extends AbilitiesSchema> = BasisInSiteAbilities & ScanAbilitySchemas<AS, true>;
99
+ export type Abilities<AS extends AbilitiesSchema> = BasisAbilities & ScanAbilitySchemas<AS, true>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "insite-common",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "inSite common things",
5
5
  "type": "module",
6
6
  "main": "./lib/index.ts",
@@ -25,11 +25,11 @@
25
25
  "author": "Eugene Nesvetaev <dev@nesvet.dev> (https://nesvet.dev/)",
26
26
  "license": "MIT",
27
27
  "devDependencies": {
28
- "@nesvet/eslint-config": "^2.0.34",
28
+ "@nesvet/eslint-config": "^2.0.47",
29
29
  "typescript": "^5.7.3"
30
30
  },
31
31
  "peerDependencies": {
32
- "insite-http": "^2.0.7",
33
- "insite-ws": "^2.0.20"
32
+ "insite-http": "^2.1.1",
33
+ "insite-ws": "^2.1.1"
34
34
  }
35
35
  }