@haverstack/commons 0.34.0 → 0.35.0
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/README.md +8 -3
- package/dist/index.d.ts +230 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +77 -111
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -31,12 +31,17 @@ import { defineCommonsTypes, NOTE, TASK } from '@haverstack/commons';
|
|
|
31
31
|
// Register only the commons types your app actually writes.
|
|
32
32
|
await defineCommonsTypes(stack, [NOTE, TASK]);
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
// Each constant is a type handle, so content is typed from the schema.
|
|
35
|
+
const note = await stack.create(NOTE, { text: 'Hello, Haverstack!' });
|
|
36
|
+
const tasks = await stack.query(TASK); // records: { content: { title: string; done: boolean; ... } }[]
|
|
35
37
|
```
|
|
36
38
|
|
|
37
39
|
Each export (`NOTE`, `BOOKMARK`, `TASK`, `CONTACT`, `ARTICLE`, `PLACE`, `PAGE`, `IMAGE`,
|
|
38
|
-
`POST`, `SITE`) is a
|
|
39
|
-
|
|
40
|
+
`POST`, `SITE`) is a [type handle](https://github.com/haverstack/core/blob/main/docs/spec/data-model.md#type-handles)
|
|
41
|
+
— `{ id, baseId, schema }` — plus the `name` its type's `stack.defineType(...)` block in
|
|
42
|
+
[`docs/commons/`](https://github.com/haverstack/core/tree/main/docs/commons) carries, mirroring
|
|
43
|
+
that block exactly. Pass it to the typed overloads of `get`, `query`, `create`, `mutate`,
|
|
44
|
+
`patchContent` and `subscribe`; use `NOTE.baseId` for calls about the whole family.
|
|
40
45
|
`defineCommonsTypes()` is a thin loop over `stack.defineType()` — calling it again with
|
|
41
46
|
types already registered is the ordinary idempotent no-op path (see `defineType`'s own
|
|
42
47
|
docs), so it's safe to call on every app startup.
|
package/dist/index.d.ts
CHANGED
|
@@ -10,21 +10,239 @@
|
|
|
10
10
|
* markdown, which is the drift the Schema Commons' governance process exists
|
|
11
11
|
* to prevent.
|
|
12
12
|
*
|
|
13
|
+
* Each constant is also a type handle, so `stack.create(NOTE, …)` and the
|
|
14
|
+
* other typed overloads derive content types from the same literal. See
|
|
15
|
+
* docs/spec/data-model.md § Type handles.
|
|
16
|
+
*
|
|
13
17
|
* Only Draft-status types are exported here. Proposed types (not yet backed
|
|
14
18
|
* by a concrete intended writer) stay docs-only until they graduate.
|
|
15
19
|
*/
|
|
16
|
-
import type {
|
|
17
|
-
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
import type { ReadonlyTypeSchema, Stack, StackType, TypeHandle } from '@haverstack/core';
|
|
21
|
+
/** A type handle plus the display name `defineType()` takes. */
|
|
22
|
+
export type CommonsType<S extends ReadonlyTypeSchema = ReadonlyTypeSchema> = TypeHandle<S> & {
|
|
23
|
+
readonly name: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const NOTE: CommonsType<{
|
|
26
|
+
readonly text: {
|
|
27
|
+
readonly kind: "text";
|
|
28
|
+
readonly required: true;
|
|
29
|
+
};
|
|
30
|
+
readonly title: {
|
|
31
|
+
readonly kind: "string";
|
|
32
|
+
};
|
|
33
|
+
readonly format: {
|
|
34
|
+
readonly kind: "string";
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
export declare const BOOKMARK: CommonsType<{
|
|
38
|
+
readonly url: {
|
|
39
|
+
readonly kind: "string";
|
|
40
|
+
readonly required: true;
|
|
41
|
+
};
|
|
42
|
+
readonly title: {
|
|
43
|
+
readonly kind: "string";
|
|
44
|
+
};
|
|
45
|
+
readonly description: {
|
|
46
|
+
readonly kind: "text";
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
export declare const TASK: CommonsType<{
|
|
50
|
+
readonly title: {
|
|
51
|
+
readonly kind: "string";
|
|
52
|
+
readonly required: true;
|
|
53
|
+
};
|
|
54
|
+
readonly done: {
|
|
55
|
+
readonly kind: "boolean";
|
|
56
|
+
readonly required: true;
|
|
57
|
+
};
|
|
58
|
+
readonly notes: {
|
|
59
|
+
readonly kind: "text";
|
|
60
|
+
};
|
|
61
|
+
readonly due: {
|
|
62
|
+
readonly kind: "date";
|
|
63
|
+
};
|
|
64
|
+
readonly completedAt: {
|
|
65
|
+
readonly kind: "date";
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
68
|
+
export declare const CONTACT: CommonsType<{
|
|
69
|
+
readonly name: {
|
|
70
|
+
readonly kind: "string";
|
|
71
|
+
readonly required: true;
|
|
72
|
+
};
|
|
73
|
+
readonly emails: {
|
|
74
|
+
readonly kind: "array";
|
|
75
|
+
readonly items: {
|
|
76
|
+
readonly kind: "object";
|
|
77
|
+
readonly properties: {
|
|
78
|
+
readonly value: {
|
|
79
|
+
readonly kind: "string";
|
|
80
|
+
readonly required: true;
|
|
81
|
+
};
|
|
82
|
+
readonly label: {
|
|
83
|
+
readonly kind: "string";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly phones: {
|
|
89
|
+
readonly kind: "array";
|
|
90
|
+
readonly items: {
|
|
91
|
+
readonly kind: "object";
|
|
92
|
+
readonly properties: {
|
|
93
|
+
readonly value: {
|
|
94
|
+
readonly kind: "string";
|
|
95
|
+
readonly required: true;
|
|
96
|
+
};
|
|
97
|
+
readonly label: {
|
|
98
|
+
readonly kind: "string";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
readonly urls: {
|
|
104
|
+
readonly kind: "array";
|
|
105
|
+
readonly items: {
|
|
106
|
+
readonly kind: "object";
|
|
107
|
+
readonly properties: {
|
|
108
|
+
readonly value: {
|
|
109
|
+
readonly kind: "string";
|
|
110
|
+
readonly required: true;
|
|
111
|
+
};
|
|
112
|
+
readonly label: {
|
|
113
|
+
readonly kind: "string";
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
readonly org: {
|
|
119
|
+
readonly kind: "string";
|
|
120
|
+
};
|
|
121
|
+
readonly note: {
|
|
122
|
+
readonly kind: "text";
|
|
123
|
+
};
|
|
124
|
+
}>;
|
|
125
|
+
export declare const ARTICLE: CommonsType<{
|
|
126
|
+
readonly title: {
|
|
127
|
+
readonly kind: "string";
|
|
128
|
+
readonly required: true;
|
|
129
|
+
};
|
|
130
|
+
readonly text: {
|
|
131
|
+
readonly kind: "text";
|
|
132
|
+
readonly required: true;
|
|
133
|
+
};
|
|
134
|
+
readonly format: {
|
|
135
|
+
readonly kind: "string";
|
|
136
|
+
};
|
|
137
|
+
readonly summary: {
|
|
138
|
+
readonly kind: "text";
|
|
139
|
+
};
|
|
140
|
+
readonly url: {
|
|
141
|
+
readonly kind: "string";
|
|
142
|
+
};
|
|
143
|
+
readonly author: {
|
|
144
|
+
readonly kind: "string";
|
|
145
|
+
};
|
|
146
|
+
readonly publishedAt: {
|
|
147
|
+
readonly kind: "date";
|
|
148
|
+
};
|
|
149
|
+
}>;
|
|
150
|
+
export declare const PLACE: CommonsType<{
|
|
151
|
+
readonly latitude: {
|
|
152
|
+
readonly kind: "number";
|
|
153
|
+
readonly required: true;
|
|
154
|
+
};
|
|
155
|
+
readonly longitude: {
|
|
156
|
+
readonly kind: "number";
|
|
157
|
+
readonly required: true;
|
|
158
|
+
};
|
|
159
|
+
readonly name: {
|
|
160
|
+
readonly kind: "string";
|
|
161
|
+
};
|
|
162
|
+
readonly address: {
|
|
163
|
+
readonly kind: "string";
|
|
164
|
+
};
|
|
165
|
+
readonly url: {
|
|
166
|
+
readonly kind: "string";
|
|
167
|
+
};
|
|
168
|
+
}>;
|
|
169
|
+
export declare const PAGE: CommonsType<{
|
|
170
|
+
readonly slug: {
|
|
171
|
+
readonly kind: "string";
|
|
172
|
+
readonly required: true;
|
|
173
|
+
};
|
|
174
|
+
readonly text: {
|
|
175
|
+
readonly kind: "text";
|
|
176
|
+
readonly required: true;
|
|
177
|
+
};
|
|
178
|
+
readonly title: {
|
|
179
|
+
readonly kind: "string";
|
|
180
|
+
};
|
|
181
|
+
readonly format: {
|
|
182
|
+
readonly kind: "string";
|
|
183
|
+
};
|
|
184
|
+
readonly publishedAt: {
|
|
185
|
+
readonly kind: "date";
|
|
186
|
+
};
|
|
187
|
+
readonly collection: {
|
|
188
|
+
readonly kind: "object";
|
|
189
|
+
readonly properties: {
|
|
190
|
+
readonly typeId: {
|
|
191
|
+
readonly kind: "string";
|
|
192
|
+
readonly required: true;
|
|
193
|
+
};
|
|
194
|
+
readonly tag: {
|
|
195
|
+
readonly kind: "string";
|
|
196
|
+
};
|
|
197
|
+
readonly order: {
|
|
198
|
+
readonly kind: "string";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
203
|
+
export declare const IMAGE: CommonsType<{
|
|
204
|
+
readonly file: {
|
|
205
|
+
readonly kind: "file-ref";
|
|
206
|
+
readonly required: true;
|
|
207
|
+
};
|
|
208
|
+
readonly caption: {
|
|
209
|
+
readonly kind: "text";
|
|
210
|
+
};
|
|
211
|
+
readonly alt: {
|
|
212
|
+
readonly kind: "string";
|
|
213
|
+
};
|
|
214
|
+
readonly capturedAt: {
|
|
215
|
+
readonly kind: "date";
|
|
216
|
+
};
|
|
217
|
+
}>;
|
|
218
|
+
export declare const POST: CommonsType<{
|
|
219
|
+
readonly text: {
|
|
220
|
+
readonly kind: "text";
|
|
221
|
+
readonly required: true;
|
|
222
|
+
};
|
|
223
|
+
readonly format: {
|
|
224
|
+
readonly kind: "string";
|
|
225
|
+
};
|
|
226
|
+
readonly url: {
|
|
227
|
+
readonly kind: "string";
|
|
228
|
+
};
|
|
229
|
+
}>;
|
|
230
|
+
export declare const SITE: CommonsType<{
|
|
231
|
+
readonly title: {
|
|
232
|
+
readonly kind: "string";
|
|
233
|
+
readonly required: true;
|
|
234
|
+
};
|
|
235
|
+
readonly baseUrl: {
|
|
236
|
+
readonly kind: "string";
|
|
237
|
+
readonly required: true;
|
|
238
|
+
};
|
|
239
|
+
readonly description: {
|
|
240
|
+
readonly kind: "text";
|
|
241
|
+
};
|
|
242
|
+
readonly handle: {
|
|
243
|
+
readonly kind: "string";
|
|
244
|
+
};
|
|
245
|
+
}>;
|
|
28
246
|
/**
|
|
29
247
|
* Registers each given commons type on `stack` via `defineType()`, exactly
|
|
30
248
|
* as written here. Sequential, matching `Stack`'s own system-type seeding —
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAU,MAAM,kBAAkB,CAAC;AAEjG,gEAAgE;AAChE,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,IAAI,UAAU,CAAC,CAAC,CAAC,GAAG;IAC3F,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAgBF,eAAO,MAAM,IAAI;;;;;;;;;;;EAIf,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;EAInB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;EAMf,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOlB,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;EAQlB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;EAMhB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcf,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;EAKhB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;EAIf,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;EAKf,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,KAAK,EACZ,OAAO,SAAS,WAAW,EAAE,KAC5B,OAAO,CAAC,SAAS,EAAE,CAMrB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,9 +10,15 @@
|
|
|
10
10
|
* markdown, which is the drift the Schema Commons' governance process exists
|
|
11
11
|
* to prevent.
|
|
12
12
|
*
|
|
13
|
+
* Each constant is also a type handle, so `stack.create(NOTE, …)` and the
|
|
14
|
+
* other typed overloads derive content types from the same literal. See
|
|
15
|
+
* docs/spec/data-model.md § Type handles.
|
|
16
|
+
*
|
|
13
17
|
* Only Draft-status types are exported here. Proposed types (not yet backed
|
|
14
18
|
* by a concrete intended writer) stay docs-only until they graduate.
|
|
15
19
|
*/
|
|
20
|
+
import { typeHandle } from '@haverstack/core';
|
|
21
|
+
const commonsType = (id, name, schema) => Object.freeze({ ...typeHandle(id, schema), name });
|
|
16
22
|
const labeledValue = {
|
|
17
23
|
kind: 'object',
|
|
18
24
|
properties: {
|
|
@@ -20,119 +26,79 @@ const labeledValue = {
|
|
|
20
26
|
label: { kind: 'string' },
|
|
21
27
|
},
|
|
22
28
|
};
|
|
23
|
-
export const NOTE = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
export const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
};
|
|
77
|
-
export const PLACE = {
|
|
78
|
-
id: 'org.haverstack/place@1',
|
|
79
|
-
name: 'Place',
|
|
80
|
-
schema: {
|
|
81
|
-
latitude: { kind: 'number', required: true },
|
|
82
|
-
longitude: { kind: 'number', required: true },
|
|
83
|
-
name: { kind: 'string' },
|
|
84
|
-
address: { kind: 'string' },
|
|
85
|
-
url: { kind: 'string' },
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
export const PAGE = {
|
|
89
|
-
id: 'org.haverstack/page@1',
|
|
90
|
-
name: 'Page',
|
|
91
|
-
schema: {
|
|
92
|
-
slug: { kind: 'string', required: true },
|
|
93
|
-
text: { kind: 'text', required: true },
|
|
94
|
-
title: { kind: 'string' },
|
|
95
|
-
format: { kind: 'string' },
|
|
96
|
-
publishedAt: { kind: 'date' },
|
|
97
|
-
collection: {
|
|
98
|
-
kind: 'object',
|
|
99
|
-
properties: {
|
|
100
|
-
typeId: { kind: 'string', required: true },
|
|
101
|
-
tag: { kind: 'string' },
|
|
102
|
-
order: { kind: 'string' },
|
|
103
|
-
},
|
|
29
|
+
export const NOTE = commonsType('org.haverstack/note@1', 'Note', {
|
|
30
|
+
text: { kind: 'text', required: true },
|
|
31
|
+
title: { kind: 'string' },
|
|
32
|
+
format: { kind: 'string' },
|
|
33
|
+
});
|
|
34
|
+
export const BOOKMARK = commonsType('org.haverstack/bookmark@1', 'Bookmark', {
|
|
35
|
+
url: { kind: 'string', required: true },
|
|
36
|
+
title: { kind: 'string' },
|
|
37
|
+
description: { kind: 'text' },
|
|
38
|
+
});
|
|
39
|
+
export const TASK = commonsType('org.haverstack/task@1', 'Task', {
|
|
40
|
+
title: { kind: 'string', required: true },
|
|
41
|
+
done: { kind: 'boolean', required: true },
|
|
42
|
+
notes: { kind: 'text' },
|
|
43
|
+
due: { kind: 'date' },
|
|
44
|
+
completedAt: { kind: 'date' },
|
|
45
|
+
});
|
|
46
|
+
export const CONTACT = commonsType('org.haverstack/contact@1', 'Contact', {
|
|
47
|
+
name: { kind: 'string', required: true },
|
|
48
|
+
emails: { kind: 'array', items: labeledValue },
|
|
49
|
+
phones: { kind: 'array', items: labeledValue },
|
|
50
|
+
urls: { kind: 'array', items: labeledValue },
|
|
51
|
+
org: { kind: 'string' },
|
|
52
|
+
note: { kind: 'text' },
|
|
53
|
+
});
|
|
54
|
+
export const ARTICLE = commonsType('org.haverstack/article@1', 'Article', {
|
|
55
|
+
title: { kind: 'string', required: true },
|
|
56
|
+
text: { kind: 'text', required: true },
|
|
57
|
+
format: { kind: 'string' },
|
|
58
|
+
summary: { kind: 'text' },
|
|
59
|
+
url: { kind: 'string' },
|
|
60
|
+
author: { kind: 'string' },
|
|
61
|
+
publishedAt: { kind: 'date' },
|
|
62
|
+
});
|
|
63
|
+
export const PLACE = commonsType('org.haverstack/place@1', 'Place', {
|
|
64
|
+
latitude: { kind: 'number', required: true },
|
|
65
|
+
longitude: { kind: 'number', required: true },
|
|
66
|
+
name: { kind: 'string' },
|
|
67
|
+
address: { kind: 'string' },
|
|
68
|
+
url: { kind: 'string' },
|
|
69
|
+
});
|
|
70
|
+
export const PAGE = commonsType('org.haverstack/page@1', 'Page', {
|
|
71
|
+
slug: { kind: 'string', required: true },
|
|
72
|
+
text: { kind: 'text', required: true },
|
|
73
|
+
title: { kind: 'string' },
|
|
74
|
+
format: { kind: 'string' },
|
|
75
|
+
publishedAt: { kind: 'date' },
|
|
76
|
+
collection: {
|
|
77
|
+
kind: 'object',
|
|
78
|
+
properties: {
|
|
79
|
+
typeId: { kind: 'string', required: true },
|
|
80
|
+
tag: { kind: 'string' },
|
|
81
|
+
order: { kind: 'string' },
|
|
104
82
|
},
|
|
105
83
|
},
|
|
106
|
-
};
|
|
107
|
-
export const IMAGE = {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
export const SITE = {
|
|
127
|
-
id: 'org.haverstack/site@1',
|
|
128
|
-
name: 'Site',
|
|
129
|
-
schema: {
|
|
130
|
-
title: { kind: 'string', required: true },
|
|
131
|
-
baseUrl: { kind: 'string', required: true },
|
|
132
|
-
description: { kind: 'text' },
|
|
133
|
-
handle: { kind: 'string' },
|
|
134
|
-
},
|
|
135
|
-
};
|
|
84
|
+
});
|
|
85
|
+
export const IMAGE = commonsType('org.haverstack/image@1', 'Image', {
|
|
86
|
+
file: { kind: 'file-ref', required: true },
|
|
87
|
+
caption: { kind: 'text' },
|
|
88
|
+
alt: { kind: 'string' },
|
|
89
|
+
capturedAt: { kind: 'date' },
|
|
90
|
+
});
|
|
91
|
+
export const POST = commonsType('org.haverstack/post@1', 'Post', {
|
|
92
|
+
text: { kind: 'text', required: true },
|
|
93
|
+
format: { kind: 'string' },
|
|
94
|
+
url: { kind: 'string' },
|
|
95
|
+
});
|
|
96
|
+
export const SITE = commonsType('org.haverstack/site@1', 'Site', {
|
|
97
|
+
title: { kind: 'string', required: true },
|
|
98
|
+
baseUrl: { kind: 'string', required: true },
|
|
99
|
+
description: { kind: 'text' },
|
|
100
|
+
handle: { kind: 'string' },
|
|
101
|
+
});
|
|
136
102
|
/**
|
|
137
103
|
* Registers each given commons type on `stack` via `defineType()`, exactly
|
|
138
104
|
* as written here. Sequential, matching `Stack`'s own system-type seeding —
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQ9C,MAAM,WAAW,GAAG,CAClB,EAAU,EACV,IAAY,EACZ,MAAS,EACO,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAExE,MAAM,YAAY,GAAG;IACnB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACzC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC1B;CACO,CAAC;AAEX,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAC,uBAAuB,EAAE,MAAM,EAAE;IAC/D,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACtC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;IACzB,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAC,2BAA2B,EAAE,UAAU,EAAE;IAC3E,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EA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AC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haverstack/commons",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Canonical Schema Commons type definitions for Haverstack — register commons types exactly as written",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"interop"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@haverstack/core": "^0.
|
|
30
|
+
"@haverstack/core": "^0.40.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^22.0.0",
|