shinkansen-transmission 2.5.95 → 2.5.141
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/eslint.config.mjs +3 -2
- package/husky.mjs +16 -0
- package/package.json +15 -15
package/eslint.config.mjs
CHANGED
|
@@ -62,7 +62,8 @@ export default [
|
|
|
62
62
|
{
|
|
63
63
|
max: 5
|
|
64
64
|
}
|
|
65
|
-
]
|
|
65
|
+
],
|
|
66
|
+
'@typescript-eslint/no-redundant-type-constituents': 'off'
|
|
66
67
|
}
|
|
67
68
|
}),
|
|
68
69
|
{
|
|
@@ -70,7 +71,7 @@ export default [
|
|
|
70
71
|
'src/**/*.d.{mts,cts}'
|
|
71
72
|
],
|
|
72
73
|
rules: {
|
|
73
|
-
'no-redeclare': 'off'
|
|
74
|
+
'no-redeclare': 'off', '@typescript-eslint/no-redundant-type-constituents': 'off'
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
]
|
package/husky.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
Promise.resolve(import('husky'))
|
|
5
|
+
.then(({ default: husky }) => { husky() })
|
|
6
|
+
.catch((e) => {
|
|
7
|
+
if (e instanceof Error) {
|
|
8
|
+
if ('code' in e) {
|
|
9
|
+
const { code } = e
|
|
10
|
+
if (code === 'ERR_MODULE_NOT_FOUND') return
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const { message } = e
|
|
14
|
+
if (message) console.error(`💥 ${message}`)
|
|
15
|
+
}
|
|
16
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-transmission",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.141",
|
|
4
4
|
"description": "Shinkansen Transmission",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"url": "git+ssh://git@github.com/modernpoacher/shinkansen-transmission.git"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"coverage": "c8 --reporter html npm run test",
|
|
29
|
+
"coverage": "# c8 --reporter html npm run test",
|
|
30
30
|
"lint": "eslint",
|
|
31
31
|
"lint:fix": "npm run lint -- --fix",
|
|
32
32
|
"nvm": "bash nvm.sh",
|
|
33
33
|
"prelint": "npm run nvm",
|
|
34
|
-
"prepare": "husky",
|
|
34
|
+
"prepare": "node husky.mjs",
|
|
35
35
|
"pretest": "npm run nvm",
|
|
36
36
|
"test": "cross-env NODE_ENV=test mocha test --recursive --verbose"
|
|
37
37
|
},
|
|
@@ -40,24 +40,24 @@
|
|
|
40
40
|
"fast-deep-equal": "^3.1.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@babel/core": "
|
|
44
|
-
"@babel/preset-env": "
|
|
45
|
-
"@babel/register": "
|
|
46
|
-
"@sequencemedia/eslint-config-standard": "^0.2.
|
|
47
|
-
"@sequencemedia/eslint-config-typescript": "^0.1.
|
|
43
|
+
"@babel/core": "7.29.7",
|
|
44
|
+
"@babel/preset-env": "7.29.7",
|
|
45
|
+
"@babel/register": "7.29.7",
|
|
46
|
+
"@sequencemedia/eslint-config-standard": "^0.2.125",
|
|
47
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.216",
|
|
48
48
|
"@types/babel__register": "^7.17.3",
|
|
49
49
|
"@types/chai": "^5.2.3",
|
|
50
|
-
"@types/debug": "^4.1.
|
|
50
|
+
"@types/debug": "^4.1.13",
|
|
51
51
|
"@types/mocha": "^10.0.10",
|
|
52
|
-
"@types/node": "^
|
|
53
|
-
"c8": "^
|
|
54
|
-
"chai": "^6.2.
|
|
55
|
-
"core-js": "^3.
|
|
52
|
+
"@types/node": "^26.4.1",
|
|
53
|
+
"c8": "^12.0.0",
|
|
54
|
+
"chai": "^6.2.2",
|
|
55
|
+
"core-js": "^3.50.0",
|
|
56
56
|
"cross-env": "^10.1.0",
|
|
57
57
|
"eslint": "9.38.0",
|
|
58
|
-
"globals": "^
|
|
58
|
+
"globals": "^17.12.0",
|
|
59
59
|
"husky": "^9.1.7",
|
|
60
|
-
"mocha": "^
|
|
60
|
+
"mocha": "^12.0.0"
|
|
61
61
|
},
|
|
62
62
|
"imports": {
|
|
63
63
|
"#transmission": {
|