shinkansen-transmission 2.2.211 → 2.2.213
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 +6 -1
- package/index.d.mts +1 -1
- package/package.json +3 -3
- package/src/transmission/common/index.d.mts +7 -7
- package/src/transmission/from-document-to-hash/index.d.mts +5 -5
- package/src/transmission/from-hash-to-document/index.d.mts +7 -7
- package/src/transmission/to-zashiki/index.d.mts +4 -4
package/eslint.config.mjs
CHANGED
@@ -3,6 +3,11 @@ import standard from '@sequencemedia/eslint-config-standard/configs/recommended/
|
|
3
3
|
import typescript from '@sequencemedia/eslint-config-typescript/configs/recommended/merge'
|
4
4
|
|
5
5
|
export default [
|
6
|
+
{
|
7
|
+
ignores: [
|
8
|
+
'coverage'
|
9
|
+
]
|
10
|
+
},
|
6
11
|
/**
|
7
12
|
* Standard config
|
8
13
|
*/
|
@@ -65,7 +70,7 @@ export default [
|
|
65
70
|
languageOptions: {
|
66
71
|
globals: {
|
67
72
|
...globals.browser,
|
68
|
-
|
73
|
+
ZashikiTypes: 'readonly'
|
69
74
|
}
|
70
75
|
},
|
71
76
|
rules: {
|
package/index.d.mts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "shinkansen-transmission",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.213",
|
4
4
|
"description": "Shinkansen Transmission",
|
5
5
|
"keywords": [
|
6
6
|
"Shinkansen",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
43
|
"@babel/core": "^7.26.0",
|
44
|
-
"@babel/eslint-parser": "^7.
|
44
|
+
"@babel/eslint-parser": "^7.26.5",
|
45
45
|
"@babel/preset-env": "^7.26.0",
|
46
46
|
"@babel/register": "^7.25.9",
|
47
47
|
"@sequencemedia/eslint-config-standard": "^0.2.10",
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"chai": "^5.1.2",
|
53
53
|
"core-js": "^3.40.0",
|
54
54
|
"cross-env": "^7.0.3",
|
55
|
-
"eslint": "^9.
|
55
|
+
"eslint": "^9.18.0",
|
56
56
|
"eslint-import-resolver-babel-module": "^5.3.2",
|
57
57
|
"globals": "^15.14.0",
|
58
58
|
"husky": "^9.1.7",
|
@@ -1,10 +1,10 @@
|
|
1
1
|
declare module '#transmission/transmission/common' {
|
2
|
-
type ObjectLiteralType =
|
3
|
-
type ObjectType =
|
4
|
-
type ArrayLiteralType =
|
5
|
-
type ArrayType =
|
2
|
+
type ObjectLiteralType = ZashikiTypes.ObjectLiteralType
|
3
|
+
type ObjectType = ZashikiTypes.ObjectType
|
4
|
+
type ArrayLiteralType = ZashikiTypes.ArrayLiteralType
|
5
|
+
type ArrayType = ZashikiTypes.ArrayType
|
6
6
|
|
7
|
-
type SchemaType =
|
7
|
+
type SchemaType = ZashikiTypes.SchemaType
|
8
8
|
|
9
9
|
export function isObject (v: unknown): boolean
|
10
10
|
export function isArray (v: unknown): boolean
|
@@ -31,7 +31,7 @@ declare module '#transmission/transmission/common' {
|
|
31
31
|
export function hasMetaValue (values: ObjectType | ObjectLiteralType, uri: string | undefined, schema: SchemaType | undefined): boolean
|
32
32
|
export function getMetaValue (values: ObjectType | ObjectLiteralType, uri: string | undefined, schema: SchemaType | undefined): { value: string } | ObjectLiteralType
|
33
33
|
|
34
|
-
export function transformValue (schema: SchemaType): SchemaType | ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType | undefined
|
34
|
+
export function transformValue (schema: SchemaType | undefined): SchemaType | ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType | undefined
|
35
35
|
|
36
36
|
export function findByKey (parentUri: string | undefined, uri: string | undefined): (key: string) => boolean
|
37
37
|
export function findByIndex (parentUri: string | undefined, uri: string | undefined): (schema: SchemaType, index: number) => boolean
|
@@ -41,7 +41,7 @@ declare module '#transmission/transmission/common' {
|
|
41
41
|
export function toString (value: unknown): string
|
42
42
|
|
43
43
|
export function getObject (value: { properties: ObjectType /* object */ }, parentUri: string | undefined, uri: string | undefined): ObjectType
|
44
|
-
export function getArray (value: { items: ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType /*
|
44
|
+
export function getArray (value: { items: ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType /* object or array */ }, parentUri: string | undefined, uri: string | undefined): ArrayType
|
45
45
|
export function getSchema (schema: SchemaType | ObjectType, parentUri: string | undefined, uri: string | undefined): ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType | SchemaType
|
46
46
|
|
47
47
|
export function transformValueIndexFor (array: ArrayType, value: unknown): string
|
@@ -1,11 +1,11 @@
|
|
1
1
|
declare module '#transmission/transmission/from-document-to-hash' {
|
2
|
-
type ObjectLiteralType =
|
3
|
-
type ObjectType =
|
2
|
+
type ObjectLiteralType = ZashikiTypes.ObjectLiteralType
|
3
|
+
type ObjectType = ZashikiTypes.ObjectType
|
4
4
|
|
5
|
-
type SchemaType =
|
5
|
+
type SchemaType = ZashikiTypes.SchemaType
|
6
6
|
|
7
|
-
type DocumentType =
|
8
|
-
type HashType =
|
7
|
+
type DocumentType = ZashikiTypes.DocumentType
|
8
|
+
type HashType = ZashikiTypes.HashType
|
9
9
|
|
10
10
|
export function transformArrayFor (document: DocumentType | undefined, schema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): HashType | undefined
|
11
11
|
export function transformObjectFor (document: DocumentType | undefined, schema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): HashType | undefined
|
@@ -1,13 +1,13 @@
|
|
1
1
|
declare module '#transmission/transmission/from-hash-to-document' {
|
2
|
-
type ObjectLiteralType =
|
3
|
-
type ObjectType =
|
4
|
-
type ArrayLiteralType =
|
5
|
-
type ArrayType =
|
2
|
+
type ObjectLiteralType = ZashikiTypes.ObjectLiteralType
|
3
|
+
type ObjectType = ZashikiTypes.ObjectType
|
4
|
+
type ArrayLiteralType = ZashikiTypes.ArrayLiteralType
|
5
|
+
type ArrayType = ZashikiTypes.ArrayType
|
6
6
|
|
7
|
-
type SchemaType =
|
7
|
+
type SchemaType = ZashikiTypes.SchemaType
|
8
8
|
|
9
|
-
type DocumentType =
|
10
|
-
type HashType =
|
9
|
+
type DocumentType = ZashikiTypes.DocumentType
|
10
|
+
type HashType = ZashikiTypes.HashType
|
11
11
|
|
12
12
|
export function transformValueFor (document: DocumentType, array: ArrayType | ArrayLiteralType | undefined): DocumentType
|
13
13
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
declare module '#transmission/transmission/to-zashiki' {
|
2
|
-
type SchemaType =
|
2
|
+
type SchemaType = ZashikiTypes.SchemaType
|
3
3
|
|
4
|
-
type ObjectLiteralType =
|
5
|
-
type ObjectType =
|
4
|
+
type ObjectLiteralType = ZashikiTypes.ObjectLiteralType
|
5
|
+
type ObjectType = ZashikiTypes.ObjectType
|
6
6
|
|
7
|
-
type ZashikiType =
|
7
|
+
type ZashikiType = ZashikiTypes.ZashikiType
|
8
8
|
|
9
9
|
export default function toZashiki (rootSchema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, params: ObjectType | ObjectLiteralType | undefined): ZashikiType | undefined
|
10
10
|
}
|