mindoodb-app-sdk 0.0.14 → 0.0.17
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 +410 -132
- package/dist/index.d.ts +97 -4
- package/dist/index.js +367 -55
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +300 -40
- package/dist/{types-B1iKRIuy.d.ts → types-Dw6YRApH.d.ts} +135 -9
- package/package.json +13 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MindooDBAppBooleanExpression, MindooDBAppExpression, MindooDBAppViewSortDirection, MindooDBAppViewTotalMode, MindooDBAppViewDefinition } from 'mindoodb-view-language';
|
|
2
2
|
|
|
3
|
-
/** Launch target used by the
|
|
3
|
+
/** Launch target used by the Haven when opening an app. */
|
|
4
4
|
type MindooDBAppRuntime = "iframe" | "window";
|
|
5
|
-
/** Theme mode currently active in the
|
|
5
|
+
/** Theme mode currently active in the Haven host UI. */
|
|
6
6
|
type MindooDBAppThemeMode = "light" | "dark";
|
|
7
7
|
/** Host theme snapshot exposed to running apps. */
|
|
8
8
|
interface MindooDBAppHostTheme {
|
|
@@ -109,6 +109,11 @@ interface MindooDBAppLaunchContext {
|
|
|
109
109
|
uiPreferences: MindooDBAppUiPreferences;
|
|
110
110
|
tenantId?: string;
|
|
111
111
|
preferredDatabaseId?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Epoch-millisecond cutoff when the host opened app databases in time travel
|
|
114
|
+
* read-only mode. Absent/null means the app is looking at live data.
|
|
115
|
+
*/
|
|
116
|
+
timeTravelDate?: number | null;
|
|
112
117
|
user: {
|
|
113
118
|
id: string;
|
|
114
119
|
username: string;
|
|
@@ -130,6 +135,18 @@ type MindooDBAppAttachmentPreviewMode = "image" | "pdf" | "text" | "markdown" |
|
|
|
130
135
|
interface MindooDBAppAttachmentPreviewOptions {
|
|
131
136
|
/** Historical snapshot timestamp previously obtained from `documents.history.getAtTimestamp()`. */
|
|
132
137
|
timestamp?: number;
|
|
138
|
+
/** Stable revision id previously obtained from `documents.listHistory()`. */
|
|
139
|
+
revisionId?: MindooDBAppDocumentRevisionId;
|
|
140
|
+
}
|
|
141
|
+
type MindooDBAppDocumentScanPreset = "auto" | "a4-portrait" | "a4-landscape" | "letter-portrait" | "letter-landscape";
|
|
142
|
+
interface MindooDBAppScanAttachmentOptions {
|
|
143
|
+
defaultFileName?: string;
|
|
144
|
+
preset?: MindooDBAppDocumentScanPreset;
|
|
145
|
+
mimeType?: "image/jpeg" | "image/png" | "application/pdf";
|
|
146
|
+
}
|
|
147
|
+
interface MindooDBAppScanAttachmentResult {
|
|
148
|
+
ok: boolean;
|
|
149
|
+
attachment?: MindooDBAppAttachmentInfo | null;
|
|
133
150
|
}
|
|
134
151
|
/** Resolved Haven preview session prepared for opening in a separate tab or window. */
|
|
135
152
|
interface MindooDBAppAttachmentPreviewSession {
|
|
@@ -148,6 +165,7 @@ interface MindooDBAppDocumentSummary {
|
|
|
148
165
|
id: string;
|
|
149
166
|
data?: Record<string, unknown>;
|
|
150
167
|
attachmentCount?: number;
|
|
168
|
+
createdAt?: string;
|
|
151
169
|
updatedAt?: string;
|
|
152
170
|
identityLabel?: string;
|
|
153
171
|
publicKeyFingerprint?: string;
|
|
@@ -157,12 +175,19 @@ interface MindooDBAppDocumentSummary {
|
|
|
157
175
|
interface MindooDBAppDocument {
|
|
158
176
|
id: string;
|
|
159
177
|
data: Record<string, unknown>;
|
|
178
|
+
/** Current Automerge heads for causal text edit reconciliation. */
|
|
179
|
+
heads?: string[];
|
|
160
180
|
attachments?: MindooDBAppAttachmentInfo[];
|
|
181
|
+
createdAt?: string;
|
|
161
182
|
updatedAt?: string;
|
|
162
183
|
}
|
|
184
|
+
/** Opaque persisted id for a document revision in the MindooDB DAG. */
|
|
185
|
+
type MindooDBAppDocumentRevisionId = string;
|
|
163
186
|
/** One entry in the document history timeline. */
|
|
164
187
|
interface MindooDBAppDocumentHistoryEntry {
|
|
188
|
+
revisionId: MindooDBAppDocumentRevisionId;
|
|
165
189
|
timestamp: number;
|
|
190
|
+
heads?: string[];
|
|
166
191
|
publicKey: string;
|
|
167
192
|
publicKeyFingerprint?: string;
|
|
168
193
|
identityLabel?: string;
|
|
@@ -173,9 +198,13 @@ interface MindooDBAppDocumentHistoryEntry {
|
|
|
173
198
|
/** Historical snapshot returned for a document at a specific timestamp. */
|
|
174
199
|
interface MindooDBAppHistoricalDocument {
|
|
175
200
|
id: string;
|
|
201
|
+
revisionId?: MindooDBAppDocumentRevisionId;
|
|
176
202
|
timestamp: number;
|
|
203
|
+
heads?: string[];
|
|
177
204
|
state: "missing" | "deleted" | "exists";
|
|
178
205
|
data: Record<string, unknown> | null;
|
|
206
|
+
attachments?: MindooDBAppAttachmentInfo[];
|
|
207
|
+
attachmentSnapshotRevisionId?: MindooDBAppDocumentRevisionId | null;
|
|
179
208
|
}
|
|
180
209
|
/** Query options for paging through changefeed-backed document listings in a database. */
|
|
181
210
|
interface MindooDBAppDocumentListQuery {
|
|
@@ -220,6 +249,87 @@ interface MindooDBAppCreateDocumentInput {
|
|
|
220
249
|
set: Record<string, unknown>;
|
|
221
250
|
/** Optional named document key. Defaults to `"default"` when omitted. */
|
|
222
251
|
decryptionKeyId?: string;
|
|
252
|
+
/**
|
|
253
|
+
* Optional caller-provided document id. When omitted, MindooDB generates a
|
|
254
|
+
* UUID7. When provided, the id must match `^[A-Za-z][A-Za-z0-9_]*$`: the
|
|
255
|
+
* first character is an ASCII letter and subsequent characters may be ASCII
|
|
256
|
+
* letters, ASCII digits, or `_`.
|
|
257
|
+
*
|
|
258
|
+
* If a document with this id already exists locally, MindooDB returns the
|
|
259
|
+
* existing document instead of creating a new one (idempotent create), and
|
|
260
|
+
* the values in `set` are NOT applied. Caller-provided ids are useful for
|
|
261
|
+
* loading a known well-known document directly without first building a
|
|
262
|
+
* view, and for migrations that want to preserve external ids.
|
|
263
|
+
*
|
|
264
|
+
* Documents created with the same caller-provided id on independent replicas
|
|
265
|
+
* share Automerge ancestry, so subsequent edits on either replica still
|
|
266
|
+
* merge correctly when the replicas sync.
|
|
267
|
+
*/
|
|
268
|
+
id?: string;
|
|
269
|
+
}
|
|
270
|
+
interface MindooDBAppTextEdit {
|
|
271
|
+
index: number;
|
|
272
|
+
deleteCount: number;
|
|
273
|
+
insert?: string;
|
|
274
|
+
}
|
|
275
|
+
interface MindooDBAppTextPatch {
|
|
276
|
+
path: Array<string | number>;
|
|
277
|
+
baseHeads?: string[];
|
|
278
|
+
edits: MindooDBAppTextEdit[];
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Sets the value at `path` inside the document payload.
|
|
282
|
+
*
|
|
283
|
+
* Creates the field if it does not exist, or replaces the existing value.
|
|
284
|
+
* `path` addresses a property using object keys and list indices, for example
|
|
285
|
+
* `["workbook", "worksheetsById", "ws-1", "title"]`.
|
|
286
|
+
*/
|
|
287
|
+
interface MindooDBAppJsonSetPatch {
|
|
288
|
+
path: Array<string | number>;
|
|
289
|
+
value: unknown;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Removes the value at `path` from the document payload.
|
|
293
|
+
*
|
|
294
|
+
* For object properties this deletes the key; for list entries the host
|
|
295
|
+
* decides whether unset is supported and may reject the patch.
|
|
296
|
+
*/
|
|
297
|
+
interface MindooDBAppJsonUnsetPatch {
|
|
298
|
+
path: Array<string | number>;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Inserts one or more values into the list located at `path`.
|
|
302
|
+
*
|
|
303
|
+
* `index` is the insertion point within the current list, where `0` prepends
|
|
304
|
+
* and `list.length` appends. Existing entries at or after `index` shift right.
|
|
305
|
+
*/
|
|
306
|
+
interface MindooDBAppJsonListInsertPatch {
|
|
307
|
+
path: Array<string | number>;
|
|
308
|
+
index: number;
|
|
309
|
+
values: unknown[];
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Deletes a contiguous run of entries from the list located at `path`.
|
|
313
|
+
*
|
|
314
|
+
* Removes `deleteCount` entries starting at `index`. Subsequent entries shift
|
|
315
|
+
* left to fill the gap.
|
|
316
|
+
*/
|
|
317
|
+
interface MindooDBAppJsonListDeletePatch {
|
|
318
|
+
path: Array<string | number>;
|
|
319
|
+
index: number;
|
|
320
|
+
deleteCount: number;
|
|
321
|
+
}
|
|
322
|
+
interface MindooDBAppJsonPatch {
|
|
323
|
+
/**
|
|
324
|
+
* Automerge heads of the document snapshot this JSON patch was authored
|
|
325
|
+
* against. Hosts can use this to apply order-sensitive edits at the original
|
|
326
|
+
* causal version and merge them with concurrent changes.
|
|
327
|
+
*/
|
|
328
|
+
baseHeads?: string[];
|
|
329
|
+
set?: MindooDBAppJsonSetPatch[];
|
|
330
|
+
unset?: MindooDBAppJsonUnsetPatch[];
|
|
331
|
+
listInsert?: MindooDBAppJsonListInsertPatch[];
|
|
332
|
+
listDelete?: MindooDBAppJsonListDeletePatch[];
|
|
223
333
|
}
|
|
224
334
|
/**
|
|
225
335
|
* Sparse patch payload used when updating an existing document.
|
|
@@ -233,6 +343,10 @@ interface MindooDBAppUpdateDocumentInput {
|
|
|
233
343
|
set?: Record<string, unknown>;
|
|
234
344
|
/** Top-level fields to remove from the document entirely. */
|
|
235
345
|
unset?: string[];
|
|
346
|
+
/** Granular JSON operations to apply at document paths. */
|
|
347
|
+
json?: MindooDBAppJsonPatch;
|
|
348
|
+
/** Granular text edits to apply at document paths. */
|
|
349
|
+
text?: MindooDBAppTextPatch[];
|
|
236
350
|
}
|
|
237
351
|
/** Query used for history lookups at a specific timestamp. */
|
|
238
352
|
interface MindooDBAppHistoryQuery {
|
|
@@ -244,17 +358,23 @@ interface MindooDBAppBridgeConnectOptions {
|
|
|
244
358
|
targetOrigin?: string;
|
|
245
359
|
connectTimeoutMs?: number;
|
|
246
360
|
}
|
|
247
|
-
/** Initial postMessage handshake sent from the app to the
|
|
361
|
+
/** Initial postMessage handshake sent from the app to the Haven. */
|
|
248
362
|
interface MindooDBAppBridgeConnectMessage {
|
|
249
363
|
protocol: "mindoodb-app-bridge";
|
|
250
364
|
type: "mindoodb-app:connect";
|
|
251
365
|
launchId: string;
|
|
252
366
|
}
|
|
253
|
-
/** Handshake acknowledgement returned by the
|
|
367
|
+
/** Handshake acknowledgement returned by the Haven host. */
|
|
254
368
|
interface MindooDBAppBridgeConnectedMessage {
|
|
255
369
|
protocol: "mindoodb-app-bridge";
|
|
256
370
|
type: "mindoodb-app:connected";
|
|
257
371
|
}
|
|
372
|
+
/** Handshake error returned when the Haven host rejects a launch. */
|
|
373
|
+
interface MindooDBAppBridgeHandshakeErrorMessage {
|
|
374
|
+
protocol: "mindoodb-app-bridge";
|
|
375
|
+
type: "mindoodb-app:error";
|
|
376
|
+
error: string;
|
|
377
|
+
}
|
|
258
378
|
/** Structured error payload transported over bridge RPC or stream messages. */
|
|
259
379
|
interface MindooDBAppBridgeErrorPayload {
|
|
260
380
|
code: string;
|
|
@@ -336,7 +456,7 @@ interface MindooDBAppBridgeStreamError {
|
|
|
336
456
|
}
|
|
337
457
|
/** Union of all non-RPC stream transport messages. */
|
|
338
458
|
type MindooDBAppBridgeStreamMessage = MindooDBAppBridgeStreamReadRequest | MindooDBAppBridgeStreamWriteRequest | MindooDBAppBridgeStreamCloseRequest | MindooDBAppBridgeStreamAbortRequest | MindooDBAppAttachmentChunk | MindooDBAppBridgeStreamAck | MindooDBAppBridgeStreamError;
|
|
339
|
-
/** Host-pushed event emitted when the
|
|
459
|
+
/** Host-pushed event emitted when the Haven theme changes. */
|
|
340
460
|
interface MindooDBAppBridgeThemeChangedMessage {
|
|
341
461
|
protocol: "mindoodb-app-bridge";
|
|
342
462
|
kind: "theme-changed";
|
|
@@ -445,8 +565,12 @@ interface MindooDBAppDocumentApi {
|
|
|
445
565
|
delete(docId: string): Promise<{
|
|
446
566
|
ok: true;
|
|
447
567
|
}>;
|
|
568
|
+
undelete(docId: string): Promise<{
|
|
569
|
+
ok: true;
|
|
570
|
+
}>;
|
|
448
571
|
listHistory(docId: string): Promise<MindooDBAppDocumentHistoryEntry[]>;
|
|
449
572
|
getAtTimestamp(docId: string, timestamp: number): Promise<MindooDBAppHistoricalDocument>;
|
|
573
|
+
getAtRevision(docId: string, revisionId: MindooDBAppDocumentRevisionId): Promise<MindooDBAppHistoricalDocument>;
|
|
450
574
|
}
|
|
451
575
|
type MindooDBAppViewEntryKind = "category" | "document";
|
|
452
576
|
/** Unique document identity within a multi-source view. */
|
|
@@ -486,6 +610,7 @@ interface MindooDBAppViewNavigatorOpenOptions {
|
|
|
486
610
|
interface MindooDBAppCreateViewNavigatorInput {
|
|
487
611
|
databaseIds: string[];
|
|
488
612
|
definition: MindooDBAppViewDefinition;
|
|
613
|
+
categorizationStyle?: MindooDBAppConfiguredViewCategorizationStyle;
|
|
489
614
|
options?: MindooDBAppViewNavigatorOpenOptions;
|
|
490
615
|
}
|
|
491
616
|
/** @deprecated Use `MindooDBAppCreateViewNavigatorInput`. */
|
|
@@ -570,12 +695,13 @@ interface MindooDBAppViewNavigator {
|
|
|
570
695
|
}
|
|
571
696
|
/** Attachment operations exposed by an opened database handle. */
|
|
572
697
|
interface MindooDBAppAttachmentApi {
|
|
573
|
-
list(docId: string): Promise<MindooDBAppAttachmentInfo[]>;
|
|
698
|
+
list(docId: string, options?: MindooDBAppAttachmentPreviewOptions): Promise<MindooDBAppAttachmentInfo[]>;
|
|
574
699
|
remove(docId: string, attachmentName: string): Promise<{
|
|
575
700
|
ok: true;
|
|
576
701
|
}>;
|
|
577
|
-
openReadStream(docId: string, attachmentName: string): Promise<MindooDBAppReadableAttachmentStream>;
|
|
702
|
+
openReadStream(docId: string, attachmentName: string, options?: MindooDBAppAttachmentPreviewOptions): Promise<MindooDBAppReadableAttachmentStream>;
|
|
578
703
|
openWriteStream(docId: string, attachmentName: string, contentType?: string): Promise<MindooDBAppWritableAttachmentStream>;
|
|
704
|
+
scan(docId: string, options?: MindooDBAppScanAttachmentOptions): Promise<MindooDBAppScanAttachmentResult>;
|
|
579
705
|
preparePreviewSession(docId: string, attachmentName: string, options?: MindooDBAppAttachmentPreviewOptions): Promise<MindooDBAppAttachmentPreviewSession>;
|
|
580
706
|
openPreview(docId: string, attachmentName: string, options?: MindooDBAppAttachmentPreviewOptions): Promise<{
|
|
581
707
|
ok: true;
|
|
@@ -587,7 +713,7 @@ interface MindooDBAppDatabase {
|
|
|
587
713
|
documents: MindooDBAppDocumentApi;
|
|
588
714
|
attachments: MindooDBAppAttachmentApi;
|
|
589
715
|
}
|
|
590
|
-
/** Connected session between the running app and the
|
|
716
|
+
/** Connected session between the running app and the Haven host. */
|
|
591
717
|
interface MindooDBAppSession {
|
|
592
718
|
getLaunchContext(): Promise<MindooDBAppLaunchContext>;
|
|
593
719
|
listDatabases(): Promise<MindooDBAppDatabaseInfo[]>;
|
|
@@ -606,4 +732,4 @@ interface MindooDBAppBridge {
|
|
|
606
732
|
connect(options?: MindooDBAppBridgeConnectOptions): Promise<MindooDBAppSession>;
|
|
607
733
|
}
|
|
608
734
|
|
|
609
|
-
export type {
|
|
735
|
+
export type { MindooDBAppDocumentListQuery as $, MindooDBAppBridgeThemeChangedMessage as A, MindooDBAppBridgeUiPreferencesChangedMessage as B, MindooDBAppBridgeViewportChangedMessage as C, MindooDBAppCapability as D, MindooDBAppConfiguredViewCategorizationStyle as E, MindooDBAppConfiguredViewColumn as F, MindooDBAppConfiguredViewColumnRole as G, MindooDBAppConfiguredViewExpressionMode as H, MindooDBAppConfiguredViewFieldExpression as I, MindooDBAppConfiguredViewFilterDefinition as J, MindooDBAppConfiguredViewFilterMode as K, MindooDBAppConfiguredViewFilterRule as L, MindooDBAppAttachmentPreviewMode as M, MindooDBAppConfiguredViewFormulaExpression as N, MindooDBAppConfiguredViewFormulaFilterDefinition as O, MindooDBAppConfiguredViewPreviewMode as P, MindooDBAppConfiguredViewRuleFilterDefinition as Q, MindooDBAppConfiguredViewRuleMatchMode as R, MindooDBAppConfiguredViewRuleOperator as S, MindooDBAppConfiguredViewValueExpression as T, MindooDBAppCreateDocumentInput as U, MindooDBAppCreateViewInput as V, MindooDBAppCreateViewNavigatorInput as W, MindooDBAppDatabaseInfo as X, MindooDBAppDocumentApi as Y, MindooDBAppDocumentHeadCursorResult as Z, MindooDBAppDocumentHistoryEntry as _, MindooDBAppBridge as a, MindooDBAppDocumentListResult as a0, MindooDBAppDocumentRevisionId as a1, MindooDBAppDocumentScanPreset as a2, MindooDBAppDocumentSummary as a3, MindooDBAppHistoricalDocument as a4, MindooDBAppHistoryQuery as a5, MindooDBAppHostTheme as a6, MindooDBAppJsonListDeletePatch as a7, MindooDBAppJsonListInsertPatch as a8, MindooDBAppJsonPatch as a9, MindooDBAppShowMenuResult as aA, MindooDBAppTextEdit as aB, MindooDBAppTextPatch as aC, MindooDBAppThemeMode as aD, MindooDBAppUiPreferences as aE, MindooDBAppUpdateDocumentInput as aF, MindooDBAppViewCursorDocumentListResult as aG, MindooDBAppViewCursorResult as aH, MindooDBAppViewEntry as aI, MindooDBAppViewEntryKind as aJ, MindooDBAppViewNavigator as aK, MindooDBAppViewNavigatorExpansionState as aL, MindooDBAppViewNavigatorOpenOptions as aM, MindooDBAppViewNavigatorPageOptions as aN, MindooDBAppViewNavigatorPageResult as aO, MindooDBAppViewNavigatorRangeQuery as aP, MindooDBAppViewNavigatorSelectionState as aQ, MindooDBAppViewport as aR, MindooDBAppWritableAttachmentStream as aS, MindooDBAppJsonSetPatch as aa, MindooDBAppJsonUnsetPatch as ab, MindooDBAppLaunchContext as ac, MindooDBAppMenuAnchor as ad, MindooDBAppMenuApi as ae, MindooDBAppMenuCommandItem as af, MindooDBAppMenuDismissReason as ag, MindooDBAppMenuDismissedResult as ah, MindooDBAppMenuItem as ai, MindooDBAppMenuKind as aj, MindooDBAppMenuPlacement as ak, MindooDBAppMenuPointAnchor as al, MindooDBAppMenuRect as am, MindooDBAppMenuRectAnchor as an, MindooDBAppMenuSelectionResult as ao, MindooDBAppMenuSeparatorItem as ap, MindooDBAppReadableAttachmentStream as aq, MindooDBAppResolvedViewDefinition as ar, MindooDBAppResolvedViewSource as as, MindooDBAppRuntime as at, MindooDBAppScanAttachmentOptions as au, MindooDBAppScanAttachmentResult as av, MindooDBAppScopedDocId as aw, MindooDBAppScopedDocumentSummary as ax, MindooDBAppSession as ay, MindooDBAppShowMenuInput as az, MindooDBAppDatabase as b, MindooDBAppDocument as c, MindooDBAppAttachmentApi as d, MindooDBAppAttachmentChunk as e, MindooDBAppAttachmentInfo as f, MindooDBAppAttachmentPreviewOptions as g, MindooDBAppAttachmentPreviewSession as h, MindooDBAppBridgeConnectMessage as i, MindooDBAppBridgeConnectOptions as j, MindooDBAppBridgeConnectedMessage as k, MindooDBAppBridgeErrorPayload as l, MindooDBAppBridgeHandshakeErrorMessage as m, MindooDBAppBridgePortMessage as n, MindooDBAppBridgeRpcError as o, MindooDBAppBridgeRpcMessage as p, MindooDBAppBridgeRpcRequest as q, MindooDBAppBridgeRpcSuccess as r, MindooDBAppBridgeStreamAbortRequest as s, MindooDBAppBridgeStreamAck as t, MindooDBAppBridgeStreamCloseRequest as u, MindooDBAppBridgeStreamError as v, MindooDBAppBridgeStreamMessage as w, MindooDBAppBridgeStreamOpenResult as x, MindooDBAppBridgeStreamReadRequest as y, MindooDBAppBridgeStreamWriteRequest as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mindoodb-app-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
|
+
"engines": {
|
|
5
|
+
"node": ">=22.13.0"
|
|
6
|
+
},
|
|
4
7
|
"description": "MindooDB app SDK for building apps that connect to the Haven host bridge",
|
|
5
8
|
"license": "ISC",
|
|
6
9
|
"author": "Mindoo GmbH",
|
|
@@ -32,20 +35,19 @@
|
|
|
32
35
|
"default": "./dist/testing/index.js"
|
|
33
36
|
}
|
|
34
37
|
},
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build": "tsup src/index.ts src/testing/index.ts --format esm --dts --clean --tsconfig tsconfig.build.json",
|
|
37
|
-
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
38
|
-
"test": "vitest run",
|
|
39
|
-
"test:watch": "vitest",
|
|
40
|
-
"prepublishOnly": "npm run build && npm run test"
|
|
41
|
-
},
|
|
42
38
|
"dependencies": {
|
|
43
|
-
"mindoodb-view-language": "0.0.
|
|
39
|
+
"mindoodb-view-language": "0.0.12"
|
|
44
40
|
},
|
|
45
41
|
"devDependencies": {
|
|
46
|
-
"@types/node": "
|
|
42
|
+
"@types/node": "25.5.0",
|
|
47
43
|
"tsup": "^8.5.1",
|
|
48
44
|
"typescript": "^6.0.2",
|
|
49
45
|
"vitest": "^4.1.2"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "tsup src/index.ts src/testing/index.ts --format esm --dts --clean --tsconfig tsconfig.build.json",
|
|
49
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
50
|
+
"test": "vitest run",
|
|
51
|
+
"test:watch": "vitest"
|
|
50
52
|
}
|
|
51
|
-
}
|
|
53
|
+
}
|