@xyo-network/archivist-cookie 4.1.1 → 4.1.3

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,40 +1,2 @@
1
- import { Hash } from '@xylabs/hex';
2
- import { PromisableArray, Promisable } from '@xylabs/promise';
3
- import { AbstractArchivist } from '@xyo-network/archivist-abstract';
4
- import { ArchivistConfig, ArchivistParams, ArchivistModuleEventData } from '@xyo-network/archivist-model';
5
- import { BoundWitness } from '@xyo-network/boundwitness-model';
6
- import { AnyConfigSchema } from '@xyo-network/module-model';
7
- import { Schema, WithStorageMeta, Payload } from '@xyo-network/payload-model';
8
-
9
- declare const CookieArchivistConfigSchema: "network.xyo.archivist.cookie.config";
10
- type CookieArchivistConfigSchema = typeof CookieArchivistConfigSchema;
11
- type CookieArchivistConfig = ArchivistConfig<{
12
- domain?: string;
13
- maxEntries?: number;
14
- maxEntrySize?: number;
15
- namespace?: string;
16
- schema: CookieArchivistConfigSchema;
17
- }>;
18
- type CookieArchivistParams = ArchivistParams<AnyConfigSchema<CookieArchivistConfig>>;
19
- declare class CookieArchivist<TParams extends CookieArchivistParams = CookieArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData> extends AbstractArchivist<TParams, TEventData> {
20
- static readonly configSchemas: Schema[];
21
- static readonly defaultConfigSchema: Schema;
22
- static readonly labels: {
23
- "network.xyo.storage.class": string;
24
- };
25
- get domain(): string | undefined;
26
- get maxEntries(): number;
27
- get maxEntrySize(): number;
28
- get namespace(): string;
29
- get queries(): string[];
30
- protected allHandler(): PromisableArray<WithStorageMeta<Payload>>;
31
- protected clearHandler(): void | Promise<void>;
32
- protected commitHandler(): Promise<BoundWitness[]>;
33
- protected deleteHandler(hashes: Hash[]): Promise<WithStorageMeta<Payload>[]>;
34
- protected getHandler(hashes: Hash[]): Promisable<WithStorageMeta<Payload>[]>;
35
- protected insertHandler(payloads: WithStorageMeta<Payload>[]): WithStorageMeta<Payload>[];
36
- private keyFromHash;
37
- }
38
-
39
- export { CookieArchivist, CookieArchivistConfigSchema };
40
- export type { CookieArchivistConfig, CookieArchivistParams };
1
+ export * from './CookieArchivist.ts';
2
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/archivist-cookie",
3
- "version": "4.1.1",
3
+ "version": "4.1.3",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,25 +29,25 @@
29
29
  "module": "dist/browser/index.mjs",
30
30
  "types": "dist/browser/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/assert": "^4.13.15",
33
- "@xylabs/exists": "^4.13.15",
34
- "@xylabs/hex": "^4.13.15",
35
- "@xylabs/promise": "^4.13.15",
36
- "@xyo-network/archivist-abstract": "^4.1.1",
37
- "@xyo-network/archivist-model": "^4.1.1",
38
- "@xyo-network/boundwitness-model": "^4.1.1",
39
- "@xyo-network/module-model": "^4.1.1",
40
- "@xyo-network/payload-builder": "^4.1.1",
41
- "@xyo-network/payload-model": "^4.1.1",
32
+ "@xylabs/assert": "^4.13.16",
33
+ "@xylabs/exists": "^4.13.16",
34
+ "@xylabs/hex": "^4.13.16",
35
+ "@xylabs/promise": "^4.13.16",
36
+ "@xyo-network/archivist-abstract": "^4.1.3",
37
+ "@xyo-network/archivist-model": "^4.1.3",
38
+ "@xyo-network/boundwitness-model": "^4.1.3",
39
+ "@xyo-network/module-model": "^4.1.3",
40
+ "@xyo-network/payload-builder": "^4.1.3",
41
+ "@xyo-network/payload-model": "^4.1.3",
42
42
  "js-cookie": "^3.0.5"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/js-cookie": "^3.0.6",
46
- "@xylabs/delay": "^4.13.15",
47
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
48
- "@xylabs/tsconfig": "^7.0.0-rc.23",
49
- "@xyo-network/id-payload-plugin": "^4.1.1",
50
- "@xyo-network/payload-wrapper": "^4.1.1",
46
+ "@xylabs/delay": "^4.13.16",
47
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
48
+ "@xylabs/tsconfig": "^7.0.0-rc.27",
49
+ "@xyo-network/id-payload-plugin": "^4.1.3",
50
+ "@xyo-network/payload-wrapper": "^4.1.3",
51
51
  "typescript": "^5.8.3",
52
52
  "vitest": "^3.2.4"
53
53
  },