@xyo-network/boundwitness-loader 4.0.2 → 4.1.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.
@@ -0,0 +1,22 @@
1
+ import type { BaseParams } from '@xylabs/base';
2
+ import { Base } from '@xylabs/base';
3
+ import type { Hash } from '@xylabs/hex';
4
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
5
+ import type { Payload } from '@xyo-network/payload-model';
6
+ export interface PayloadWorkingSet {
7
+ archivists?: ArchivistInstance[];
8
+ huriEndpoints?: string[];
9
+ payloads?: Payload[];
10
+ }
11
+ export interface BoundWitnessLoaderParams extends BaseParams {
12
+ cache?: ArchivistInstance;
13
+ workingSet: PayloadWorkingSet;
14
+ }
15
+ export declare class BoundWitnessLoader extends Base<BoundWitnessLoaderParams> {
16
+ private _cache?;
17
+ private _createCacheMutex;
18
+ load(hash: Hash | Hash[]): Promise<Payload[]>;
19
+ private getCache;
20
+ private getPayload;
21
+ }
22
+ //# sourceMappingURL=Loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../src/Loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEnC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAGrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAIzD,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAChC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;CACrB;AAED,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,UAAU,EAAE,iBAAiB,CAAA;CAC9B;AAED,qBAAa,kBAAmB,SAAQ,IAAI,CAAC,wBAAwB,CAAC;IACpE,OAAO,CAAC,MAAM,CAAC,CAAmB;IAClC,OAAO,CAAC,iBAAiB,CAAc;IAEjC,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAYrC,QAAQ;YAQR,UAAU;CAuBzB"}
@@ -0,0 +1,2 @@
1
+ export * from './Loader.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -0,0 +1,22 @@
1
+ import type { BaseParams } from '@xylabs/base';
2
+ import { Base } from '@xylabs/base';
3
+ import type { Hash } from '@xylabs/hex';
4
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
5
+ import type { Payload } from '@xyo-network/payload-model';
6
+ export interface PayloadWorkingSet {
7
+ archivists?: ArchivistInstance[];
8
+ huriEndpoints?: string[];
9
+ payloads?: Payload[];
10
+ }
11
+ export interface BoundWitnessLoaderParams extends BaseParams {
12
+ cache?: ArchivistInstance;
13
+ workingSet: PayloadWorkingSet;
14
+ }
15
+ export declare class BoundWitnessLoader extends Base<BoundWitnessLoaderParams> {
16
+ private _cache?;
17
+ private _createCacheMutex;
18
+ load(hash: Hash | Hash[]): Promise<Payload[]>;
19
+ private getCache;
20
+ private getPayload;
21
+ }
22
+ //# sourceMappingURL=Loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../src/Loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEnC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAGrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAIzD,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAChC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;CACrB;AAED,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,UAAU,EAAE,iBAAiB,CAAA;CAC9B;AAED,qBAAa,kBAAmB,SAAQ,IAAI,CAAC,wBAAwB,CAAC;IACpE,OAAO,CAAC,MAAM,CAAC,CAAmB;IAClC,OAAO,CAAC,iBAAiB,CAAc;IAEjC,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAYrC,QAAQ;YAQR,UAAU;CAuBzB"}
@@ -0,0 +1,2 @@
1
+ export * from './Loader.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { BaseParams, Base } from '@xylabs/base';
2
+ import { Hash } from '@xylabs/hex';
3
+ import { ArchivistInstance } from '@xyo-network/archivist-model';
4
+ import { Payload } from '@xyo-network/payload-model';
5
+
6
+ interface PayloadWorkingSet {
7
+ archivists?: ArchivistInstance[];
8
+ huriEndpoints?: string[];
9
+ payloads?: Payload[];
10
+ }
11
+ interface BoundWitnessLoaderParams extends BaseParams {
12
+ cache?: ArchivistInstance;
13
+ workingSet: PayloadWorkingSet;
14
+ }
15
+ declare class BoundWitnessLoader extends Base<BoundWitnessLoaderParams> {
16
+ private _cache?;
17
+ private _createCacheMutex;
18
+ load(hash: Hash | Hash[]): Promise<Payload[]>;
19
+ private getCache;
20
+ private getPayload;
21
+ }
22
+
23
+ export { BoundWitnessLoader };
24
+ export type { BoundWitnessLoaderParams, PayloadWorkingSet };
@@ -0,0 +1,24 @@
1
+ import { BaseParams, Base } from '@xylabs/base';
2
+ import { Hash } from '@xylabs/hex';
3
+ import { ArchivistInstance } from '@xyo-network/archivist-model';
4
+ import { Payload } from '@xyo-network/payload-model';
5
+
6
+ interface PayloadWorkingSet {
7
+ archivists?: ArchivistInstance[];
8
+ huriEndpoints?: string[];
9
+ payloads?: Payload[];
10
+ }
11
+ interface BoundWitnessLoaderParams extends BaseParams {
12
+ cache?: ArchivistInstance;
13
+ workingSet: PayloadWorkingSet;
14
+ }
15
+ declare class BoundWitnessLoader extends Base<BoundWitnessLoaderParams> {
16
+ private _cache?;
17
+ private _createCacheMutex;
18
+ load(hash: Hash | Hash[]): Promise<Payload[]>;
19
+ private getCache;
20
+ private getPayload;
21
+ }
22
+
23
+ export { BoundWitnessLoader };
24
+ export type { BoundWitnessLoaderParams, PayloadWorkingSet };
@@ -0,0 +1,24 @@
1
+ import { BaseParams, Base } from '@xylabs/base';
2
+ import { Hash } from '@xylabs/hex';
3
+ import { ArchivistInstance } from '@xyo-network/archivist-model';
4
+ import { Payload } from '@xyo-network/payload-model';
5
+
6
+ interface PayloadWorkingSet {
7
+ archivists?: ArchivistInstance[];
8
+ huriEndpoints?: string[];
9
+ payloads?: Payload[];
10
+ }
11
+ interface BoundWitnessLoaderParams extends BaseParams {
12
+ cache?: ArchivistInstance;
13
+ workingSet: PayloadWorkingSet;
14
+ }
15
+ declare class BoundWitnessLoader extends Base<BoundWitnessLoaderParams> {
16
+ private _cache?;
17
+ private _createCacheMutex;
18
+ load(hash: Hash | Hash[]): Promise<Payload[]>;
19
+ private getCache;
20
+ private getPayload;
21
+ }
22
+
23
+ export { BoundWitnessLoader };
24
+ export type { BoundWitnessLoaderParams, PayloadWorkingSet };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/boundwitness-loader",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,27 +21,27 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/types/index.d.ts",
24
+ "types": "./dist/neutral/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/types/index.d.ts",
30
+ "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/base": "^4.12.33",
33
- "@xylabs/exists": "^4.12.33",
34
- "@xylabs/hex": "^4.12.33",
35
- "@xyo-network/archivist-memory": "^4.0.2",
36
- "@xyo-network/archivist-model": "^4.0.2",
37
- "@xyo-network/boundwitness-model": "^4.0.2",
38
- "@xyo-network/huri": "^4.0.2",
39
- "@xyo-network/payload-model": "^4.0.2",
32
+ "@xylabs/base": "^4.13.15",
33
+ "@xylabs/exists": "^4.13.15",
34
+ "@xylabs/hex": "^4.13.15",
35
+ "@xyo-network/archivist-memory": "^4.1.0",
36
+ "@xyo-network/archivist-model": "^4.1.0",
37
+ "@xyo-network/boundwitness-model": "^4.1.0",
38
+ "@xyo-network/huri": "^4.1.0",
39
+ "@xyo-network/payload-model": "^4.1.0",
40
40
  "async-mutex": "^0.5.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@xylabs/ts-scripts-yarn3": "^6.5.12",
44
- "@xylabs/tsconfig": "^6.5.12",
43
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
44
+ "@xylabs/tsconfig": "^7.0.0-rc.20",
45
45
  "typescript": "^5.8.3",
46
46
  "vitest": "^3.2.4"
47
47
  },
File without changes
File without changes
File without changes
File without changes