shinkansen-pantograph 1.3.134 → 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.
|
|
3
|
+
"version": "1.3.138",
|
|
4
4
|
"description": "Shinkansen Pantograph",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
"Router"
|
|
13
13
|
],
|
|
14
14
|
"main": "./src/index.cjs",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"types": "./src/index.d.mts",
|
|
15
17
|
"author": {
|
|
16
18
|
"name": "Jonathan Perry for Modern Poacher Limited",
|
|
17
19
|
"email": "modernpoacher@modernpoacher.com",
|
|
@@ -27,7 +29,7 @@
|
|
|
27
29
|
},
|
|
28
30
|
"scripts": {
|
|
29
31
|
"prelint": "npm run nvm",
|
|
30
|
-
"lint": "eslint . --ext .mjs,.cjs",
|
|
32
|
+
"lint": "eslint . --ext .mjs,.cjs,.mts,.cts",
|
|
31
33
|
"lint:fix": "npm run lint -- --fix",
|
|
32
34
|
"pretest": "npm run nvm",
|
|
33
35
|
"test": "cross-env NODE_ENV=test mocha test --recursive",
|
|
@@ -58,8 +60,8 @@
|
|
|
58
60
|
"husky": "^9.0.11",
|
|
59
61
|
"mocha": "^10.3.0",
|
|
60
62
|
"rimraf": "^5.0.5",
|
|
61
|
-
"shinkansen-rails": "1.0.
|
|
62
|
-
"shinkansen-signals": "1.1.
|
|
63
|
+
"shinkansen-rails": "1.0.141",
|
|
64
|
+
"shinkansen-signals": "1.1.120",
|
|
63
65
|
"sinon": "^17.0.1"
|
|
64
66
|
},
|
|
65
67
|
"exports": {
|
package/src/index.d.mts
ADDED
|
@@ -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
|
-
}
|