shinkansen-rails 1.0.253 → 1.0.254
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/babel.config.cjs +0 -12
- package/package.json +5 -3
- package/src/index.d.mts +5 -1
- package/src/rails/index.d.mts +14 -9
- package/tsconfig.json +0 -11
package/babel.config.cjs
CHANGED
|
@@ -38,23 +38,11 @@ const presets = [
|
|
|
38
38
|
]
|
|
39
39
|
]
|
|
40
40
|
|
|
41
|
-
const plugins = [
|
|
42
|
-
[
|
|
43
|
-
'module-resolver', {
|
|
44
|
-
alias: {
|
|
45
|
-
'shinkansen-rails/rails': './src/rails/index.mjs',
|
|
46
|
-
'shinkansen-rails': './src/index.cjs'
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
]
|
|
51
|
-
|
|
52
41
|
module.exports = (api) => {
|
|
53
42
|
if (api) api.cache.using(env)
|
|
54
43
|
|
|
55
44
|
return {
|
|
56
45
|
presets,
|
|
57
|
-
plugins,
|
|
58
46
|
ignore: [
|
|
59
47
|
/node_modules\/(?!shinkansen|@modernpoacher)/
|
|
60
48
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-rails",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.254",
|
|
4
4
|
"description": "Shinkansen Rails",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -45,18 +45,20 @@
|
|
|
45
45
|
"@sequencemedia/sinon-chai": "^0.0.87",
|
|
46
46
|
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
47
47
|
"@typescript-eslint/parser": "7.18.0",
|
|
48
|
-
"babel-plugin-module-resolver": "^5.0.2",
|
|
49
48
|
"chai": "^5.1.2",
|
|
50
49
|
"core-js": "^3.39.0",
|
|
51
50
|
"cross-env": "^7.0.3",
|
|
52
51
|
"eslint": "8.57.1",
|
|
53
52
|
"eslint-config-love": "47.0.0",
|
|
54
53
|
"eslint-config-standard": "^17.1.0",
|
|
55
|
-
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
56
54
|
"husky": "^9.1.7",
|
|
57
55
|
"mocha": "^10.8.2",
|
|
58
56
|
"sinon": "^19.0.2"
|
|
59
57
|
},
|
|
58
|
+
"imports": {
|
|
59
|
+
"#rails": "./src/index.mjs",
|
|
60
|
+
"#rails/rails": "./src/rails/index.mjs"
|
|
61
|
+
},
|
|
60
62
|
"exports": {
|
|
61
63
|
".": {
|
|
62
64
|
"require": "./src/index.cjs",
|
package/src/index.d.mts
CHANGED
package/src/rails/index.d.mts
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
declare module '
|
|
2
|
-
export function any (o: Record<
|
|
3
|
-
export function has (o: Record<
|
|
4
|
-
export function get (o: Record<
|
|
1
|
+
declare module '#rails/rails' {
|
|
2
|
+
export function any (o: Record<PropertyKey, unknown>): boolean
|
|
3
|
+
export function has (o: Record<PropertyKey, unknown>, k: string): boolean
|
|
4
|
+
export function get (o: Record<PropertyKey, unknown>, k: string): unknown
|
|
5
5
|
|
|
6
|
-
export function rail (p: string
|
|
7
|
-
export function go (o: Record<
|
|
8
|
-
export function to (o: Record<
|
|
6
|
+
export function rail (p: string): string
|
|
7
|
+
export function go (o: Record<PropertyKey, unknown>, p: string): boolean
|
|
8
|
+
export function to (o: Record<PropertyKey, unknown>, p: string): boolean
|
|
9
9
|
|
|
10
10
|
export default class Rails {
|
|
11
11
|
static pattern (p: string | undefined): string
|
|
12
12
|
static rail (p: string | undefined): string
|
|
13
|
-
static go (o: Record<
|
|
14
|
-
static to (o: Record<
|
|
13
|
+
static go (o: Record<PropertyKey, unknown> | undefined, p: string | undefined): boolean
|
|
14
|
+
static to (o: Record<PropertyKey, unknown> | undefined, p: string | undefined): boolean
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
|
|
18
|
+
declare module 'shinkansen-rails/rails' {
|
|
19
|
+
export { default } from '#rails/rails'
|
|
20
|
+
export * from '#rails/rails'
|
|
21
|
+
}
|