shinkansen-relay 1.0.194 → 1.0.196
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/package.json +7 -7
- package/src/index.d.cts +16 -5
- package/tsconfig.json +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-relay",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.196",
|
|
4
4
|
"description": "Shinkansen Relay",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
"@babel/eslint-parser": "^7.23.10",
|
|
42
42
|
"@babel/preset-env": "^7.23.9",
|
|
43
43
|
"@babel/register": "^7.23.7",
|
|
44
|
-
"@modernpoacher/hooks": "^1.0.
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "
|
|
46
|
-
"@typescript-eslint/parser": "
|
|
44
|
+
"@modernpoacher/hooks": "^1.0.466",
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^7.0.2",
|
|
46
|
+
"@typescript-eslint/parser": "^7.0.2",
|
|
47
47
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
48
48
|
"chai": "^5.1.0",
|
|
49
49
|
"core-js": "^3.36.0",
|
|
50
50
|
"cross-env": "^7.0.3",
|
|
51
|
-
"eslint": "^8.
|
|
51
|
+
"eslint": "^8.57.0",
|
|
52
52
|
"eslint-config-standard": "^17.1.0",
|
|
53
|
-
"eslint-config-standard-with-typescript": "
|
|
53
|
+
"eslint-config-standard-with-typescript": "^43.0.1",
|
|
54
54
|
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
55
55
|
"husky": "^9.0.11",
|
|
56
56
|
"mocha": "^10.3.0",
|
|
57
|
-
"shinkansen-signals": "1.1.
|
|
57
|
+
"shinkansen-signals": "1.1.117"
|
|
58
58
|
},
|
|
59
59
|
"exports": {
|
|
60
60
|
".": {
|
package/src/index.d.cts
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
interface RelayType {
|
|
2
|
+
SIGNAL: string
|
|
3
|
+
SERVICE: string
|
|
3
4
|
}
|
|
4
5
|
|
|
6
|
+
type StateType = Record<string, boolean>
|
|
7
|
+
|
|
5
8
|
declare module 'shinkansen-relay/relay/initiate' {
|
|
6
|
-
export {
|
|
9
|
+
export function initiate (relay: { was: Record<string, string>, now: Record<string, string> }): StateType
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare module 'shinkansen-relay/relay/regulate' {
|
|
13
|
+
export function regulate (state: StateType): RelayType
|
|
7
14
|
}
|
|
8
15
|
|
|
9
16
|
declare module 'shinkansen-relay/relay' {
|
|
10
|
-
export
|
|
17
|
+
export default class Relay {
|
|
18
|
+
static initiate (relay: { was: Record<string, string>, now: Record<string, string> }): StateType
|
|
19
|
+
|
|
20
|
+
static regulate (state: StateType): RelayType
|
|
21
|
+
}
|
|
11
22
|
}
|
|
12
23
|
|
|
13
24
|
declare module 'shinkansen-relay' {
|
|
14
|
-
export { default as Relay } from '
|
|
25
|
+
export { default as Relay } from 'shinkansen-relay/relay'
|
|
15
26
|
}
|