shinkansen-pantograph 1.3.136 → 1.3.138

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-pantograph",
3
- "version": "1.3.136",
3
+ "version": "1.3.138",
4
4
  "description": "Shinkansen Pantograph",
5
5
  "keywords": [
6
6
  "Shinkansen",
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "main": "./src/index.cjs",
15
15
  "type": "module",
16
- "types": "./src/index.d.cts",
16
+ "types": "./src/index.d.mts",
17
17
  "author": {
18
18
  "name": "Jonathan Perry for Modern Poacher Limited",
19
19
  "email": "modernpoacher@modernpoacher.com",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "scripts": {
31
31
  "prelint": "npm run nvm",
32
- "lint": "eslint . --ext .mjs,.cjs",
32
+ "lint": "eslint . --ext .mjs,.cjs,.mts,.cts",
33
33
  "lint:fix": "npm run lint -- --fix",
34
34
  "pretest": "npm run nvm",
35
35
  "test": "cross-env NODE_ENV=test mocha test --recursive",
@@ -60,8 +60,8 @@
60
60
  "husky": "^9.0.11",
61
61
  "mocha": "^10.3.0",
62
62
  "rimraf": "^5.0.5",
63
- "shinkansen-rails": "1.0.140",
64
- "shinkansen-signals": "1.1.119",
63
+ "shinkansen-rails": "1.0.141",
64
+ "shinkansen-signals": "1.1.120",
65
65
  "sinon": "^17.0.1"
66
66
  },
67
67
  "exports": {
@@ -0,0 +1,3 @@
1
+ declare module 'shinkansen-pantograph' {
2
+ export { default as Pantograph } from 'shinkansen-pantograph/pantograph'
3
+ }
@@ -1,5 +1,5 @@
1
1
  declare module 'shinkansen-pantograph/pantograph' {
2
- import React from 'react'
2
+ import type React from 'react'
3
3
 
4
4
  interface RouteType {
5
5
  pathname: string
@@ -12,7 +12,7 @@ declare module 'shinkansen-pantograph/pantograph' {
12
12
  export function getRedirectToEmbark (embark: { embark: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
13
13
  export function getRedirectToDebark (debark: { debark: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
14
14
  export function getRedirectToConfirm (confirm: { confirm: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
15
- export function getRedirectTo (to: {redirect?: Record<string, unknown>, route: RouteType}): React.JSX.Element | null
15
+ export function getRedirectTo (to: { redirect?: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
16
16
  export function getRedirectFromAlpha (alpha: { state: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
17
17
  export function getRedirectFromOmega (omega: { state: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
18
18
  export function getRedirectFromEmbark (embark: { state: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
@@ -22,7 +22,3 @@ declare module 'shinkansen-pantograph/pantograph' {
22
22
 
23
23
  export default pantograph
24
24
  }
25
-
26
- declare module 'shinkansen-pantograph' {
27
- export { default as Pantograph } from 'shinkansen-pantograph/pantograph'
28
- }