shinkansen-relay 1.0.199 → 1.0.202

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shinkansen-relay",
3
- "version": "1.0.199",
3
+ "version": "1.0.202",
4
4
  "description": "Shinkansen Relay",
5
5
  "keywords": [
6
6
  "Shinkansen",
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "main": "./src/index.cjs",
13
13
  "type": "module",
14
- "types": "./src/index.d.cts",
14
+ "types": "./src/index.d.mts",
15
15
  "author": {
16
16
  "name": "Jonathan Perry for Modern Poacher Limited",
17
17
  "email": "modernpoacher@modernpoacher.com",
@@ -44,8 +44,8 @@
44
44
  "@babel/preset-env": "^7.23.9",
45
45
  "@babel/register": "^7.23.7",
46
46
  "@modernpoacher/hooks": "^1.0.466",
47
- "@typescript-eslint/eslint-plugin": "^7.0.2",
48
- "@typescript-eslint/parser": "^7.0.2",
47
+ "@typescript-eslint/eslint-plugin": "^7.1.0",
48
+ "@typescript-eslint/parser": "^7.1.0",
49
49
  "babel-plugin-module-resolver": "^5.0.0",
50
50
  "chai": "^5.1.0",
51
51
  "core-js": "^3.36.0",
@@ -56,7 +56,7 @@
56
56
  "eslint-import-resolver-babel-module": "^5.3.2",
57
57
  "husky": "^9.0.11",
58
58
  "mocha": "^10.3.0",
59
- "shinkansen-signals": "1.1.119"
59
+ "shinkansen-signals": "1.1.120"
60
60
  },
61
61
  "exports": {
62
62
  ".": {
@@ -0,0 +1,10 @@
1
+ interface RelayType {
2
+ SIGNAL: string
3
+ SERVICE: string
4
+ }
5
+
6
+ type StateType = Record<string, boolean>
7
+
8
+ declare module 'shinkansen-relay' {
9
+ export { default as Relay } from 'shinkansen-relay/relay'
10
+ }
@@ -0,0 +1,7 @@
1
+ declare module 'shinkansen-relay/relay' {
2
+ export default class Relay {
3
+ static initiate (relay: { was: Record<string, string>, now: Record<string, string> }): StateType
4
+
5
+ static regulate (state: StateType): RelayType
6
+ }
7
+ }
@@ -0,0 +1,3 @@
1
+ declare module 'shinkansen-relay/relay/initiate' {
2
+ export function initiate (relay: { was: Record<string, string>, now: Record<string, string> }): StateType
3
+ }
@@ -0,0 +1,3 @@
1
+ declare module 'shinkansen-relay/relay/regulate' {
2
+ export function regulate (state: StateType): RelayType
3
+ }
package/src/index.d.cts DELETED
@@ -1,26 +0,0 @@
1
- interface RelayType {
2
- SIGNAL: string
3
- SERVICE: string
4
- }
5
-
6
- type StateType = Record<string, boolean>
7
-
8
- declare module 'shinkansen-relay/relay/initiate' {
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
14
- }
15
-
16
- declare module 'shinkansen-relay/relay' {
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
- }
22
- }
23
-
24
- declare module 'shinkansen-relay' {
25
- export { default as Relay } from 'shinkansen-relay/relay'
26
- }