@xyo-network/huri 4.1.2 → 4.1.4

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,35 +1,2 @@
1
- import { Address, Hash } from '@xylabs/hex';
2
- import { Payload } from '@xyo-network/payload-model';
3
-
4
- type ObjectCategory = 'block' | 'payload';
5
- type HuriFetchFunction = (huri: Huri) => Promise<Payload | undefined>;
6
- interface HuriOptions {
7
- archivistUri?: string;
8
- token?: string;
9
- }
10
- interface FetchedPayload<T extends Payload = Payload> {
11
- huri?: Huri;
12
- payload: T;
13
- }
14
- declare class Huri<T extends Payload = Payload> {
15
- archive?: string;
16
- archivist?: Address | string;
17
- hash: Hash;
18
- originalHref: string;
19
- protocol?: string;
20
- token?: string;
21
- private isHuri;
22
- constructor(huri: Hash | Huri | string, { archivistUri, token }?: HuriOptions);
23
- get href(): string;
24
- static fetch<T extends Payload = Payload>(huri: Huri): Promise<T | undefined>;
25
- static isHuri(value: unknown): Huri<Payload> | undefined;
26
- private static parsePath;
27
- private static parseProtocol;
28
- fetch(): Promise<T | undefined>;
29
- toString(): string;
30
- private parsePath;
31
- private validateParse;
32
- }
33
-
34
- export { Huri };
35
- export type { FetchedPayload, HuriFetchFunction, HuriOptions, ObjectCategory };
1
+ export * from './Huri.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1,35 +1,2 @@
1
- import { Address, Hash } from '@xylabs/hex';
2
- import { Payload } from '@xyo-network/payload-model';
3
-
4
- type ObjectCategory = 'block' | 'payload';
5
- type HuriFetchFunction = (huri: Huri) => Promise<Payload | undefined>;
6
- interface HuriOptions {
7
- archivistUri?: string;
8
- token?: string;
9
- }
10
- interface FetchedPayload<T extends Payload = Payload> {
11
- huri?: Huri;
12
- payload: T;
13
- }
14
- declare class Huri<T extends Payload = Payload> {
15
- archive?: string;
16
- archivist?: Address | string;
17
- hash: Hash;
18
- originalHref: string;
19
- protocol?: string;
20
- token?: string;
21
- private isHuri;
22
- constructor(huri: Hash | Huri | string, { archivistUri, token }?: HuriOptions);
23
- get href(): string;
24
- static fetch<T extends Payload = Payload>(huri: Huri): Promise<T | undefined>;
25
- static isHuri(value: unknown): Huri<Payload> | undefined;
26
- private static parsePath;
27
- private static parseProtocol;
28
- fetch(): Promise<T | undefined>;
29
- toString(): string;
30
- private parsePath;
31
- private validateParse;
32
- }
33
-
34
- export { Huri };
35
- export type { FetchedPayload, HuriFetchFunction, HuriOptions, ObjectCategory };
1
+ export * from './Huri.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1,35 +1,2 @@
1
- import { Address, Hash } from '@xylabs/hex';
2
- import { Payload } from '@xyo-network/payload-model';
3
-
4
- type ObjectCategory = 'block' | 'payload';
5
- type HuriFetchFunction = (huri: Huri) => Promise<Payload | undefined>;
6
- interface HuriOptions {
7
- archivistUri?: string;
8
- token?: string;
9
- }
10
- interface FetchedPayload<T extends Payload = Payload> {
11
- huri?: Huri;
12
- payload: T;
13
- }
14
- declare class Huri<T extends Payload = Payload> {
15
- archive?: string;
16
- archivist?: Address | string;
17
- hash: Hash;
18
- originalHref: string;
19
- protocol?: string;
20
- token?: string;
21
- private isHuri;
22
- constructor(huri: Hash | Huri | string, { archivistUri, token }?: HuriOptions);
23
- get href(): string;
24
- static fetch<T extends Payload = Payload>(huri: Huri): Promise<T | undefined>;
25
- static isHuri(value: unknown): Huri<Payload> | undefined;
26
- private static parsePath;
27
- private static parseProtocol;
28
- fetch(): Promise<T | undefined>;
29
- toString(): string;
30
- private parsePath;
31
- private validateParse;
32
- }
33
-
34
- export { Huri };
35
- export type { FetchedPayload, HuriFetchFunction, HuriOptions, ObjectCategory };
1
+ export * from './Huri.ts';
2
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/huri",
3
- "version": "4.1.2",
3
+ "version": "4.1.4",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,18 +29,18 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/assert": "^4.13.15",
33
- "@xylabs/axios": "^4.13.15",
34
- "@xylabs/hex": "^4.13.15",
35
- "@xylabs/typeof": "^4.13.15",
36
- "@xyo-network/account": "^4.1.2",
37
- "@xyo-network/payload-model": "^4.1.2"
32
+ "@xylabs/assert": "^4.13.16",
33
+ "@xylabs/axios": "^4.13.16",
34
+ "@xylabs/hex": "^4.13.16",
35
+ "@xylabs/typeof": "^4.13.16",
36
+ "@xyo-network/account": "^4.1.4",
37
+ "@xyo-network/payload-model": "^4.1.4"
38
38
  },
39
39
  "devDependencies": {
40
- "@xylabs/delay": "^4.13.15",
41
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
42
- "@xylabs/tsconfig": "^7.0.0-rc.23",
43
- "@xylabs/vitest-extended": "^4.13.15",
40
+ "@xylabs/delay": "^4.13.16",
41
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
42
+ "@xylabs/tsconfig": "^7.0.0-rc.27",
43
+ "@xylabs/vitest-extended": "^4.13.16",
44
44
  "typescript": "^5.8.3",
45
45
  "vitest": "^3.2.4"
46
46
  },