mcard-js 2.1.39 → 2.1.41
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/dist/AbstractSqlEngine-BSfp8S_Y.d.cts +451 -0
- package/dist/AbstractSqlEngine-BSfp8S_Y.d.ts +451 -0
- package/dist/CardCollection-MXTUJV4J.js +9 -0
- package/dist/EventProducer-AWD6YMZR.js +47 -0
- package/dist/Handle-3N4QOA3U.js +13 -0
- package/dist/IndexedDBEngine-2G5KCISA.js +11 -0
- package/dist/LLMRuntime-LBWUJ7ON.js +16 -0
- package/dist/LambdaRuntime-B6D6IQKZ.js +18 -0
- package/dist/Loader-3LSJXJQG.js +11 -0
- package/dist/MCard-H56VOJLR.js +8 -0
- package/dist/NetworkRuntime-IAFHPQSX.js +1570 -0
- package/dist/OllamaProvider-QPX2JXL2.js +8 -0
- package/dist/chunk-2R4ESMZB.js +110 -0
- package/dist/chunk-3EIBJPNF.js +17 -0
- package/dist/chunk-3LPY36OG.js +355 -0
- package/dist/chunk-3MMMJ7NH.js +1068 -0
- package/dist/chunk-42VF42KH.js +273 -0
- package/dist/chunk-4PDYHPR6.js +297 -0
- package/dist/chunk-ADV52544.js +95 -0
- package/dist/chunk-FIE4LAJG.js +215 -0
- package/dist/chunk-PNKVD2UK.js +26 -0
- package/dist/chunk-RSTKX7WM.js +907 -0
- package/dist/chunk-VXV35I5J.js +2315 -0
- package/dist/index.browser.cjs +375 -276
- package/dist/index.browser.d.cts +4 -4
- package/dist/index.browser.d.ts +4 -4
- package/dist/index.browser.js +18 -13
- package/dist/index.cjs +382 -453
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +26 -21
- package/dist/storage/SqliteNodeEngine.cjs +395 -270
- package/dist/storage/SqliteNodeEngine.d.cts +9 -94
- package/dist/storage/SqliteNodeEngine.d.ts +9 -94
- package/dist/storage/SqliteNodeEngine.js +6 -5
- package/dist/storage/SqliteWasmEngine.cjs +382 -252
- package/dist/storage/SqliteWasmEngine.d.cts +8 -29
- package/dist/storage/SqliteWasmEngine.d.ts +8 -29
- package/dist/storage/SqliteWasmEngine.js +6 -5
- package/package.json +1 -1
package/dist/index.browser.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StorageEngine, M as MCard, P as Page } from './
|
|
1
|
+
import { S as StorageEngine, M as MCard, P as Page } from './AbstractSqlEngine-BSfp8S_Y.cjs';
|
|
2
2
|
export { SqliteWasmEngine } from './storage/SqliteWasmEngine.cjs';
|
|
3
3
|
import { getWebInstrumentations, Faro } from '@grafana/faro-web-sdk';
|
|
4
4
|
|
|
@@ -57,7 +57,7 @@ declare class HandleValidationError extends Error {
|
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* Validate and normalize a handle string
|
|
60
|
-
* @returns Normalized handle (NFC
|
|
60
|
+
* @returns Normalized handle (NFC, case-preserving)
|
|
61
61
|
* @throws HandleValidationError if invalid
|
|
62
62
|
*/
|
|
63
63
|
declare function validateHandle(handle: string): string;
|
|
@@ -382,10 +382,10 @@ declare class IndexedDBEngine implements StorageEngine {
|
|
|
382
382
|
add(card: MCard): Promise<string>;
|
|
383
383
|
get(hash: string): Promise<MCard | null>;
|
|
384
384
|
delete(hash: string): Promise<void>;
|
|
385
|
-
getPage(pageNumber: number, pageSize
|
|
385
|
+
getPage(pageNumber: number, pageSize?: number): Promise<Page<MCard>>;
|
|
386
386
|
count(): Promise<number>;
|
|
387
387
|
searchByHash(hashPrefix: string): Promise<MCard[]>;
|
|
388
|
-
search(query: string, pageNumber: number, pageSize
|
|
388
|
+
search(query: string, pageNumber: number, pageSize?: number): Promise<Page<MCard>>;
|
|
389
389
|
getAll(): Promise<MCard[]>;
|
|
390
390
|
clear(): Promise<void>;
|
|
391
391
|
registerHandle(handle: string, hash: string): Promise<void>;
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StorageEngine, M as MCard, P as Page } from './
|
|
1
|
+
import { S as StorageEngine, M as MCard, P as Page } from './AbstractSqlEngine-BSfp8S_Y.js';
|
|
2
2
|
export { SqliteWasmEngine } from './storage/SqliteWasmEngine.js';
|
|
3
3
|
import { getWebInstrumentations, Faro } from '@grafana/faro-web-sdk';
|
|
4
4
|
|
|
@@ -57,7 +57,7 @@ declare class HandleValidationError extends Error {
|
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* Validate and normalize a handle string
|
|
60
|
-
* @returns Normalized handle (NFC
|
|
60
|
+
* @returns Normalized handle (NFC, case-preserving)
|
|
61
61
|
* @throws HandleValidationError if invalid
|
|
62
62
|
*/
|
|
63
63
|
declare function validateHandle(handle: string): string;
|
|
@@ -382,10 +382,10 @@ declare class IndexedDBEngine implements StorageEngine {
|
|
|
382
382
|
add(card: MCard): Promise<string>;
|
|
383
383
|
get(hash: string): Promise<MCard | null>;
|
|
384
384
|
delete(hash: string): Promise<void>;
|
|
385
|
-
getPage(pageNumber: number, pageSize
|
|
385
|
+
getPage(pageNumber: number, pageSize?: number): Promise<Page<MCard>>;
|
|
386
386
|
count(): Promise<number>;
|
|
387
387
|
searchByHash(hashPrefix: string): Promise<MCard[]>;
|
|
388
|
-
search(query: string, pageNumber: number, pageSize
|
|
388
|
+
search(query: string, pageNumber: number, pageSize?: number): Promise<Page<MCard>>;
|
|
389
389
|
getAll(): Promise<MCard[]>;
|
|
390
390
|
clear(): Promise<void>;
|
|
391
391
|
registerHandle(handle: string, hash: string): Promise<void>;
|
package/dist/index.browser.js
CHANGED
|
@@ -12,6 +12,9 @@ import {
|
|
|
12
12
|
computeHash,
|
|
13
13
|
validationRegistry
|
|
14
14
|
} from "./chunk-4EUEU4SM.js";
|
|
15
|
+
import {
|
|
16
|
+
IndexedDBEngine
|
|
17
|
+
} from "./chunk-42VF42KH.js";
|
|
15
18
|
import {
|
|
16
19
|
IO
|
|
17
20
|
} from "./chunk-MPMRBT5R.js";
|
|
@@ -20,8 +23,15 @@ import {
|
|
|
20
23
|
} from "./chunk-2KADE3SE.js";
|
|
21
24
|
import {
|
|
22
25
|
SqliteWasmEngine
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-2R4ESMZB.js";
|
|
27
|
+
import "./chunk-RSTKX7WM.js";
|
|
28
|
+
import "./chunk-3EIBJPNF.js";
|
|
29
|
+
import {
|
|
30
|
+
ContentHandle,
|
|
31
|
+
HandleValidationError,
|
|
32
|
+
init_Handle,
|
|
33
|
+
validateHandle
|
|
34
|
+
} from "./chunk-ADV52544.js";
|
|
25
35
|
import {
|
|
26
36
|
ALGORITHM_HIERARCHY,
|
|
27
37
|
EVENT_CONSTANTS
|
|
@@ -29,24 +39,19 @@ import {
|
|
|
29
39
|
import {
|
|
30
40
|
CardCollection,
|
|
31
41
|
Maybe
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import {
|
|
34
|
-
IndexedDBEngine
|
|
35
|
-
} from "./chunk-7V37AAPK.js";
|
|
36
|
-
import {
|
|
37
|
-
ContentHandle,
|
|
38
|
-
HandleValidationError,
|
|
39
|
-
validateHandle
|
|
40
|
-
} from "./chunk-NZ6OQ7UT.js";
|
|
42
|
+
} from "./chunk-4PDYHPR6.js";
|
|
41
43
|
import {
|
|
42
44
|
ContentTypeInterpreter,
|
|
43
45
|
MCard
|
|
44
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-3MMMJ7NH.js";
|
|
45
47
|
import {
|
|
46
48
|
GTime,
|
|
47
49
|
HashValidator
|
|
48
50
|
} from "./chunk-7NKII2JA.js";
|
|
49
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-PNKVD2UK.js";
|
|
52
|
+
|
|
53
|
+
// src/index.browser.ts
|
|
54
|
+
init_Handle();
|
|
50
55
|
export {
|
|
51
56
|
ALGORITHM_HIERARCHY,
|
|
52
57
|
CardCollection,
|