shinkansen-rails 1.0.256 → 1.0.258
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 +3 -3
- package/src/rails/index.mjs +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-rails",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.258",
|
|
4
4
|
"description": "Shinkansen Rails",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"test": "cross-env NODE_ENV=test mocha test --recursive"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"debug": "^4.
|
|
38
|
+
"debug": "^4.4.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/core": "^7.26.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"eslint-config-love": "47.0.0",
|
|
52
52
|
"eslint-config-standard": "^17.1.0",
|
|
53
53
|
"husky": "^9.1.7",
|
|
54
|
-
"mocha": "^
|
|
54
|
+
"mocha": "^11.0.1",
|
|
55
55
|
"sinon": "^19.0.2"
|
|
56
56
|
},
|
|
57
57
|
"imports": {
|
package/src/rails/index.mjs
CHANGED
|
@@ -14,18 +14,18 @@ const CHAR32 = String.fromCharCode(32)
|
|
|
14
14
|
const CHAR45 = String.fromCharCode(45)
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* @param {Record<
|
|
17
|
+
* @param {Record<PropertyKey, unknown>} o The object containing values
|
|
18
18
|
*/
|
|
19
19
|
export const any = (o) => !!Reflect.ownKeys(o).length
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* @param {Record<
|
|
22
|
+
* @param {Record<PropertyKey, unknown>} o The object containing values
|
|
23
23
|
* @param {string} k The value name
|
|
24
24
|
*/
|
|
25
25
|
export const has = (o, k) => Reflect.has(o, k)
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* @param {Record<
|
|
28
|
+
* @param {Record<PropertyKey, unknown>} o The object containing values
|
|
29
29
|
* @param {string} k The value name
|
|
30
30
|
*/
|
|
31
31
|
export const get = (o, k) => Reflect.get(o, k)
|
|
@@ -45,7 +45,7 @@ export function rail (p) {
|
|
|
45
45
|
/**
|
|
46
46
|
* Interrogate parameters to determine whether or not components can be created
|
|
47
47
|
*
|
|
48
|
-
* @param {Record<
|
|
48
|
+
* @param {Record<PropertyKey, unknown>} o The object containing values for the 'pattern'
|
|
49
49
|
* @param {string} p The 'pattern' according to which URLs should be created
|
|
50
50
|
* @param {boolean} b Whether the Rails can go
|
|
51
51
|
* @return {boolean}
|
|
@@ -78,7 +78,7 @@ export function go (o, p) {
|
|
|
78
78
|
/**
|
|
79
79
|
* Interrogate parameters for object field names
|
|
80
80
|
*
|
|
81
|
-
* @param {Record<
|
|
81
|
+
* @param {Record<PropertyKey, unknown>} o The object containing fields
|
|
82
82
|
* @param {string} p The string containing field names to be found
|
|
83
83
|
* @return {string}
|
|
84
84
|
*
|
|
@@ -122,7 +122,7 @@ export default class Rails {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* @param {Record<
|
|
125
|
+
* @param {Record<PropertyKey, unknown> | undefined} o The object containing values for the 'pattern'
|
|
126
126
|
* @param {string | undefined} p The 'pattern' according to which URLs should be created
|
|
127
127
|
* @return {boolean}
|
|
128
128
|
*/
|
|
@@ -133,7 +133,7 @@ export default class Rails {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* @param {Record<
|
|
136
|
+
* @param {Record<PropertyKey, unknown> | undefined} o The object containing values for the 'pattern'
|
|
137
137
|
* @param {string | undefined} p The 'pattern' according to which URLs should be created
|
|
138
138
|
* @return {boolean}
|
|
139
139
|
*/
|