@xyo-network/boundwitness-loader 4.1.2 → 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,24 +1,2 @@
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 };
1
+ export * from './Loader.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1,24 +1,2 @@
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 };
1
+ export * from './Loader.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1,24 +1,2 @@
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 };
1
+ export * from './Loader.ts';
2
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/boundwitness-loader",
3
- "version": "4.1.2",
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,19 +29,19 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
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.2",
36
- "@xyo-network/archivist-model": "^4.1.2",
37
- "@xyo-network/boundwitness-model": "^4.1.2",
38
- "@xyo-network/huri": "^4.1.2",
39
- "@xyo-network/payload-model": "^4.1.2",
32
+ "@xylabs/base": "^4.13.16",
33
+ "@xylabs/exists": "^4.13.16",
34
+ "@xylabs/hex": "^4.13.16",
35
+ "@xyo-network/archivist-memory": "^4.1.3",
36
+ "@xyo-network/archivist-model": "^4.1.3",
37
+ "@xyo-network/boundwitness-model": "^4.1.3",
38
+ "@xyo-network/huri": "^4.1.3",
39
+ "@xyo-network/payload-model": "^4.1.3",
40
40
  "async-mutex": "^0.5.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
44
- "@xylabs/tsconfig": "^7.0.0-rc.23",
43
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
44
+ "@xylabs/tsconfig": "^7.0.0-rc.27",
45
45
  "typescript": "^5.8.3",
46
46
  "vitest": "^3.2.4"
47
47
  },