@rljson/io 0.0.58 → 0.0.60

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.
@@ -1,159 +1,159 @@
1
- [
2
- {
3
- "_hash": "jERNpYntKnsV66yxoS2xOg",
4
- "key": "tableCfgs",
5
- "type": "tableCfgs",
6
- "isHead": false,
7
- "isRoot": false,
8
- "isShared": true,
9
- "previous": "",
10
- "columns": [
11
- {
12
- "key": "_hash",
13
- "type": "string",
14
- "titleShort": "Hash",
15
- "titleLong": "Row Hash",
16
- "_hash": "2QxgcOKzL6zsVCo9Yi_5Ke"
17
- },
18
- {
19
- "key": "key",
20
- "type": "string",
21
- "titleShort": "Key",
22
- "titleLong": "Table Key",
23
- "_hash": "vXW6G031fGusGpEgdnVWmt"
24
- },
25
- {
26
- "key": "type",
27
- "type": "string",
28
- "titleShort": "Type",
29
- "titleLong": "Content Type",
30
- "_hash": "X2upWVtQ02TKW3mj6SqU0c"
31
- },
32
- {
33
- "key": "isHead",
34
- "type": "boolean",
35
- "titleShort": "Is Head",
36
- "titleLong": "Is Head Table",
37
- "_hash": "A-q9m5MVPMRVN6hk4pAMLH"
38
- },
39
- {
40
- "key": "isRoot",
41
- "type": "boolean",
42
- "titleShort": "Is Root",
43
- "titleLong": "Is Root Table",
44
- "_hash": "qYiiwGCxzUtxlqIvZeU1rh"
45
- },
46
- {
47
- "key": "isShared",
48
- "type": "boolean",
49
- "titleShort": "Is Shared",
50
- "titleLong": "Is Shared Table",
51
- "_hash": "jS9CqQBxXDhz1IB6PET4-P"
52
- },
53
- {
54
- "key": "previous",
55
- "type": "string",
56
- "titleShort": "Previous",
57
- "titleLong": "Previous Table Configuration Hash",
58
- "_hash": "0EgSa6oJSjOqjUCqlJzb5E"
59
- },
60
- {
61
- "key": "columns",
62
- "type": "jsonArray",
63
- "titleShort": "Columns",
64
- "titleLong": "Column Configurations",
65
- "_hash": "GRV_4vc3xouarDpc1ZXE2_"
66
- }
67
- ]
68
- },
69
- {
70
- "key": "revisions",
71
- "type": "revisions",
72
- "isHead": true,
73
- "isRoot": true,
74
- "isShared": false,
75
- "columns": [
76
- {
77
- "key": "_hash",
78
- "type": "string",
79
- "titleShort": "Hash",
80
- "titleLong": "Row Hash",
81
- "_hash": "2QxgcOKzL6zsVCo9Yi_5Ke"
82
- },
83
- {
84
- "key": "table",
85
- "type": "string",
86
- "titleShort": "Table",
87
- "titleLong": "Table Key",
88
- "_hash": "dxePvdUNnwg2TdHEAPlzcL"
89
- },
90
- {
91
- "key": "predecessor",
92
- "type": "string",
93
- "titleShort": "Predecessor",
94
- "titleLong": "Predecessor Revision Hash",
95
- "_hash": "DX2BPCXbaK-WFn4Oy9hYjg"
96
- },
97
- {
98
- "key": "successor",
99
- "type": "string",
100
- "titleShort": "Successor",
101
- "titleLong": "Successor Revision Hash",
102
- "_hash": "w-IMk9JjuBkgt88ddVGV7B"
103
- },
104
- {
105
- "key": "timestamp",
106
- "type": "number",
107
- "titleShort": "Timestamp",
108
- "titleLong": "Revision Timestamp",
109
- "_hash": "G9EloAJ1OVidMrffwSVrLt"
110
- },
111
- {
112
- "key": "id",
113
- "type": "string",
114
- "titleShort": "ID",
115
- "titleLong": "Revision ID",
116
- "_hash": "gwBBBa7SXFx2Zfz00JYdCR"
117
- }
118
- ],
119
- "_hash": "KFWwSAaR3bnqCwesHeAN4k"
120
- },
121
- {
122
- "key": "table0",
123
- "type": "components",
124
- "isHead": false,
125
- "isRoot": false,
126
- "isShared": true,
127
- "columns": [
128
- {
129
- "key": "_hash",
130
- "type": "string",
131
- "titleShort": "_hash",
132
- "titleLong": "Hash",
133
- "_hash": "L9iUlNEZRCGaQQts9mi--U"
134
- },
135
- {
136
- "key": "col0",
137
- "type": "string",
138
- "titleShort": "col0",
139
- "titleLong": "Col0",
140
- "_hash": "dCXjY3cV-nGTHT-40a9SLj"
141
- },
142
- {
143
- "key": "col1",
144
- "type": "string",
145
- "titleShort": "col1",
146
- "titleLong": "Col1",
147
- "_hash": "FMQLo4Apkp7E3LwlW9Fzuy"
148
- },
149
- {
150
- "key": "col2",
151
- "type": "string",
152
- "titleShort": "col2",
153
- "titleLong": "Col2",
154
- "_hash": "jeJdZQXgk22xyinIGX6IeM"
155
- }
156
- ],
157
- "_hash": "XyGTK9tL8OKBWGtsV0Ni-6"
158
- }
1
+ [
2
+ {
3
+ "_hash": "jERNpYntKnsV66yxoS2xOg",
4
+ "key": "tableCfgs",
5
+ "type": "tableCfgs",
6
+ "isHead": false,
7
+ "isRoot": false,
8
+ "isShared": true,
9
+ "previous": "",
10
+ "columns": [
11
+ {
12
+ "key": "_hash",
13
+ "type": "string",
14
+ "titleShort": "Hash",
15
+ "titleLong": "Row Hash",
16
+ "_hash": "2QxgcOKzL6zsVCo9Yi_5Ke"
17
+ },
18
+ {
19
+ "key": "key",
20
+ "type": "string",
21
+ "titleShort": "Key",
22
+ "titleLong": "Table Key",
23
+ "_hash": "vXW6G031fGusGpEgdnVWmt"
24
+ },
25
+ {
26
+ "key": "type",
27
+ "type": "string",
28
+ "titleShort": "Type",
29
+ "titleLong": "Content Type",
30
+ "_hash": "X2upWVtQ02TKW3mj6SqU0c"
31
+ },
32
+ {
33
+ "key": "isHead",
34
+ "type": "boolean",
35
+ "titleShort": "Is Head",
36
+ "titleLong": "Is Head Table",
37
+ "_hash": "A-q9m5MVPMRVN6hk4pAMLH"
38
+ },
39
+ {
40
+ "key": "isRoot",
41
+ "type": "boolean",
42
+ "titleShort": "Is Root",
43
+ "titleLong": "Is Root Table",
44
+ "_hash": "qYiiwGCxzUtxlqIvZeU1rh"
45
+ },
46
+ {
47
+ "key": "isShared",
48
+ "type": "boolean",
49
+ "titleShort": "Is Shared",
50
+ "titleLong": "Is Shared Table",
51
+ "_hash": "jS9CqQBxXDhz1IB6PET4-P"
52
+ },
53
+ {
54
+ "key": "previous",
55
+ "type": "string",
56
+ "titleShort": "Previous",
57
+ "titleLong": "Previous Table Configuration Hash",
58
+ "_hash": "0EgSa6oJSjOqjUCqlJzb5E"
59
+ },
60
+ {
61
+ "key": "columns",
62
+ "type": "jsonArray",
63
+ "titleShort": "Columns",
64
+ "titleLong": "Column Configurations",
65
+ "_hash": "GRV_4vc3xouarDpc1ZXE2_"
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "key": "revisions",
71
+ "type": "revisions",
72
+ "isHead": true,
73
+ "isRoot": true,
74
+ "isShared": false,
75
+ "columns": [
76
+ {
77
+ "key": "_hash",
78
+ "type": "string",
79
+ "titleShort": "Hash",
80
+ "titleLong": "Row Hash",
81
+ "_hash": "2QxgcOKzL6zsVCo9Yi_5Ke"
82
+ },
83
+ {
84
+ "key": "table",
85
+ "type": "string",
86
+ "titleShort": "Table",
87
+ "titleLong": "Table Key",
88
+ "_hash": "dxePvdUNnwg2TdHEAPlzcL"
89
+ },
90
+ {
91
+ "key": "predecessor",
92
+ "type": "string",
93
+ "titleShort": "Predecessor",
94
+ "titleLong": "Predecessor Revision Hash",
95
+ "_hash": "DX2BPCXbaK-WFn4Oy9hYjg"
96
+ },
97
+ {
98
+ "key": "successor",
99
+ "type": "string",
100
+ "titleShort": "Successor",
101
+ "titleLong": "Successor Revision Hash",
102
+ "_hash": "w-IMk9JjuBkgt88ddVGV7B"
103
+ },
104
+ {
105
+ "key": "timestamp",
106
+ "type": "number",
107
+ "titleShort": "Timestamp",
108
+ "titleLong": "Revision Timestamp",
109
+ "_hash": "G9EloAJ1OVidMrffwSVrLt"
110
+ },
111
+ {
112
+ "key": "id",
113
+ "type": "string",
114
+ "titleShort": "ID",
115
+ "titleLong": "Revision ID",
116
+ "_hash": "gwBBBa7SXFx2Zfz00JYdCR"
117
+ }
118
+ ],
119
+ "_hash": "KFWwSAaR3bnqCwesHeAN4k"
120
+ },
121
+ {
122
+ "key": "table0",
123
+ "type": "components",
124
+ "isHead": false,
125
+ "isRoot": false,
126
+ "isShared": true,
127
+ "columns": [
128
+ {
129
+ "key": "_hash",
130
+ "type": "string",
131
+ "titleShort": "_hash",
132
+ "titleLong": "Hash",
133
+ "_hash": "L9iUlNEZRCGaQQts9mi--U"
134
+ },
135
+ {
136
+ "key": "col0",
137
+ "type": "string",
138
+ "titleShort": "col0",
139
+ "titleLong": "Col0",
140
+ "_hash": "dCXjY3cV-nGTHT-40a9SLj"
141
+ },
142
+ {
143
+ "key": "col1",
144
+ "type": "string",
145
+ "titleShort": "col1",
146
+ "titleLong": "Col1",
147
+ "_hash": "FMQLo4Apkp7E3LwlW9Fzuy"
148
+ },
149
+ {
150
+ "key": "col2",
151
+ "type": "string",
152
+ "titleShort": "col2",
153
+ "titleLong": "Col2",
154
+ "_hash": "jeJdZQXgk22xyinIGX6IeM"
155
+ }
156
+ ],
157
+ "_hash": "XyGTK9tL8OKBWGtsV0Ni-6"
158
+ }
159
159
  ]
@@ -1,128 +1,128 @@
1
- {
2
- "tableCfgs": {
3
- "_type": "tableCfgs",
4
- "_data": [
5
- {
6
- "key": "revisions",
7
- "type": "revisions",
8
- "isHead": true,
9
- "isRoot": true,
10
- "isShared": false,
11
- "columns": [
12
- {
13
- "key": "_hash",
14
- "type": "string",
15
- "titleShort": "Hash",
16
- "titleLong": "Row Hash",
17
- "_hash": "2QxgcOKzL6zsVCo9Yi_5Ke"
18
- },
19
- {
20
- "key": "table",
21
- "type": "string",
22
- "titleShort": "Table",
23
- "titleLong": "Table Key",
24
- "_hash": "dxePvdUNnwg2TdHEAPlzcL"
25
- },
26
- {
27
- "key": "predecessor",
28
- "type": "string",
29
- "titleShort": "Predecessor",
30
- "titleLong": "Predecessor Revision Hash",
31
- "_hash": "DX2BPCXbaK-WFn4Oy9hYjg"
32
- },
33
- {
34
- "key": "successor",
35
- "type": "string",
36
- "titleShort": "Successor",
37
- "titleLong": "Successor Revision Hash",
38
- "_hash": "w-IMk9JjuBkgt88ddVGV7B"
39
- },
40
- {
41
- "key": "timestamp",
42
- "type": "number",
43
- "titleShort": "Timestamp",
44
- "titleLong": "Revision Timestamp",
45
- "_hash": "G9EloAJ1OVidMrffwSVrLt"
46
- },
47
- {
48
- "key": "id",
49
- "type": "string",
50
- "titleShort": "ID",
51
- "titleLong": "Revision ID",
52
- "_hash": "gwBBBa7SXFx2Zfz00JYdCR"
53
- }
54
- ],
55
- "_hash": "KFWwSAaR3bnqCwesHeAN4k"
56
- },
57
- {
58
- "_hash": "jERNpYntKnsV66yxoS2xOg",
59
- "key": "tableCfgs",
60
- "type": "tableCfgs",
61
- "isHead": false,
62
- "isRoot": false,
63
- "isShared": true,
64
- "previous": "",
65
- "columns": [
66
- {
67
- "key": "_hash",
68
- "type": "string",
69
- "titleShort": "Hash",
70
- "titleLong": "Row Hash",
71
- "_hash": "2QxgcOKzL6zsVCo9Yi_5Ke"
72
- },
73
- {
74
- "key": "key",
75
- "type": "string",
76
- "titleShort": "Key",
77
- "titleLong": "Table Key",
78
- "_hash": "vXW6G031fGusGpEgdnVWmt"
79
- },
80
- {
81
- "key": "type",
82
- "type": "string",
83
- "titleShort": "Type",
84
- "titleLong": "Content Type",
85
- "_hash": "X2upWVtQ02TKW3mj6SqU0c"
86
- },
87
- {
88
- "key": "isHead",
89
- "type": "boolean",
90
- "titleShort": "Is Head",
91
- "titleLong": "Is Head Table",
92
- "_hash": "A-q9m5MVPMRVN6hk4pAMLH"
93
- },
94
- {
95
- "key": "isRoot",
96
- "type": "boolean",
97
- "titleShort": "Is Root",
98
- "titleLong": "Is Root Table",
99
- "_hash": "qYiiwGCxzUtxlqIvZeU1rh"
100
- },
101
- {
102
- "key": "isShared",
103
- "type": "boolean",
104
- "titleShort": "Is Shared",
105
- "titleLong": "Is Shared Table",
106
- "_hash": "jS9CqQBxXDhz1IB6PET4-P"
107
- },
108
- {
109
- "key": "previous",
110
- "type": "string",
111
- "titleShort": "Previous",
112
- "titleLong": "Previous Table Configuration Hash",
113
- "_hash": "0EgSa6oJSjOqjUCqlJzb5E"
114
- },
115
- {
116
- "key": "columns",
117
- "type": "jsonArray",
118
- "titleShort": "Columns",
119
- "titleLong": "Column Configurations",
120
- "_hash": "GRV_4vc3xouarDpc1ZXE2_"
121
- }
122
- ]
123
- }
124
- ],
125
- "_tableCfg": "jERNpYntKnsV66yxoS2xOg",
126
- "_hash": "6iuL4dWHnsKqfvyAdVizTC"
127
- }
1
+ {
2
+ "tableCfgs": {
3
+ "_type": "tableCfgs",
4
+ "_data": [
5
+ {
6
+ "key": "revisions",
7
+ "type": "revisions",
8
+ "isHead": true,
9
+ "isRoot": true,
10
+ "isShared": false,
11
+ "columns": [
12
+ {
13
+ "key": "_hash",
14
+ "type": "string",
15
+ "titleShort": "Hash",
16
+ "titleLong": "Row Hash",
17
+ "_hash": "2QxgcOKzL6zsVCo9Yi_5Ke"
18
+ },
19
+ {
20
+ "key": "table",
21
+ "type": "string",
22
+ "titleShort": "Table",
23
+ "titleLong": "Table Key",
24
+ "_hash": "dxePvdUNnwg2TdHEAPlzcL"
25
+ },
26
+ {
27
+ "key": "predecessor",
28
+ "type": "string",
29
+ "titleShort": "Predecessor",
30
+ "titleLong": "Predecessor Revision Hash",
31
+ "_hash": "DX2BPCXbaK-WFn4Oy9hYjg"
32
+ },
33
+ {
34
+ "key": "successor",
35
+ "type": "string",
36
+ "titleShort": "Successor",
37
+ "titleLong": "Successor Revision Hash",
38
+ "_hash": "w-IMk9JjuBkgt88ddVGV7B"
39
+ },
40
+ {
41
+ "key": "timestamp",
42
+ "type": "number",
43
+ "titleShort": "Timestamp",
44
+ "titleLong": "Revision Timestamp",
45
+ "_hash": "G9EloAJ1OVidMrffwSVrLt"
46
+ },
47
+ {
48
+ "key": "id",
49
+ "type": "string",
50
+ "titleShort": "ID",
51
+ "titleLong": "Revision ID",
52
+ "_hash": "gwBBBa7SXFx2Zfz00JYdCR"
53
+ }
54
+ ],
55
+ "_hash": "KFWwSAaR3bnqCwesHeAN4k"
56
+ },
57
+ {
58
+ "_hash": "jERNpYntKnsV66yxoS2xOg",
59
+ "key": "tableCfgs",
60
+ "type": "tableCfgs",
61
+ "isHead": false,
62
+ "isRoot": false,
63
+ "isShared": true,
64
+ "previous": "",
65
+ "columns": [
66
+ {
67
+ "key": "_hash",
68
+ "type": "string",
69
+ "titleShort": "Hash",
70
+ "titleLong": "Row Hash",
71
+ "_hash": "2QxgcOKzL6zsVCo9Yi_5Ke"
72
+ },
73
+ {
74
+ "key": "key",
75
+ "type": "string",
76
+ "titleShort": "Key",
77
+ "titleLong": "Table Key",
78
+ "_hash": "vXW6G031fGusGpEgdnVWmt"
79
+ },
80
+ {
81
+ "key": "type",
82
+ "type": "string",
83
+ "titleShort": "Type",
84
+ "titleLong": "Content Type",
85
+ "_hash": "X2upWVtQ02TKW3mj6SqU0c"
86
+ },
87
+ {
88
+ "key": "isHead",
89
+ "type": "boolean",
90
+ "titleShort": "Is Head",
91
+ "titleLong": "Is Head Table",
92
+ "_hash": "A-q9m5MVPMRVN6hk4pAMLH"
93
+ },
94
+ {
95
+ "key": "isRoot",
96
+ "type": "boolean",
97
+ "titleShort": "Is Root",
98
+ "titleLong": "Is Root Table",
99
+ "_hash": "qYiiwGCxzUtxlqIvZeU1rh"
100
+ },
101
+ {
102
+ "key": "isShared",
103
+ "type": "boolean",
104
+ "titleShort": "Is Shared",
105
+ "titleLong": "Is Shared Table",
106
+ "_hash": "jS9CqQBxXDhz1IB6PET4-P"
107
+ },
108
+ {
109
+ "key": "previous",
110
+ "type": "string",
111
+ "titleShort": "Previous",
112
+ "titleLong": "Previous Table Configuration Hash",
113
+ "_hash": "0EgSa6oJSjOqjUCqlJzb5E"
114
+ },
115
+ {
116
+ "key": "columns",
117
+ "type": "jsonArray",
118
+ "titleShort": "Columns",
119
+ "titleLong": "Column Configurations",
120
+ "_hash": "GRV_4vc3xouarDpc1ZXE2_"
121
+ }
122
+ ]
123
+ }
124
+ ],
125
+ "_tableCfg": "jERNpYntKnsV66yxoS2xOg",
126
+ "_hash": "6iuL4dWHnsKqfvyAdVizTC"
127
+ }
128
128
  }
@@ -1,38 +1,38 @@
1
- // @license
2
- // Copyright (c) 2025 Rljson
3
- //
4
- // Use of this source code is governed by terms that can be
5
- // found in the LICENSE file in the root of this package.
6
-
7
- import { Io, IoMem, IoTestSetup } from '@rljson/io';
8
-
9
- // ..............................................................................
10
- class MyIoTestSetup implements IoTestSetup {
11
- async beforeAll(): Promise<void> {
12
- // This method can be used for any additional setup required before init.
13
- // Currently, it does nothing.
14
- }
15
- async beforeEach(): Promise<void> {
16
- this._io = await IoMem.example();
17
- }
18
-
19
- async afterEach(): Promise<void> {
20
- await this.io.close();
21
- }
22
-
23
- async afterAll(): Promise<void> {
24
- // This method can be used for any additional cleanup after afterEach.
25
- }
26
-
27
- get io(): Io {
28
- if (!this._io) {
29
- throw new Error('Call init() before accessing io');
30
- }
31
- return this._io;
32
- }
33
-
34
- private _io: Io | null = null;
35
- }
36
-
37
- // .............................................................................
38
- export const testSetup = () => new MyIoTestSetup();
1
+ // @license
2
+ // Copyright (c) 2025 Rljson
3
+ //
4
+ // Use of this source code is governed by terms that can be
5
+ // found in the LICENSE file in the root of this package.
6
+
7
+ import { Io, IoMem, IoTestSetup } from '@rljson/io';
8
+
9
+ // ..............................................................................
10
+ class MyIoTestSetup implements IoTestSetup {
11
+ async beforeAll(): Promise<void> {
12
+ // This method can be used for any additional setup required before init.
13
+ // Currently, it does nothing.
14
+ }
15
+ async beforeEach(): Promise<void> {
16
+ this._io = await IoMem.example();
17
+ }
18
+
19
+ async afterEach(): Promise<void> {
20
+ await this.io.close();
21
+ }
22
+
23
+ async afterAll(): Promise<void> {
24
+ // This method can be used for any additional cleanup after afterEach.
25
+ }
26
+
27
+ get io(): Io {
28
+ if (!this._io) {
29
+ throw new Error('Call init() before accessing io');
30
+ }
31
+ return this._io;
32
+ }
33
+
34
+ private _io: Io | null = null;
35
+ }
36
+
37
+ // .............................................................................
38
+ export const testSetup = () => new MyIoTestSetup();