@xyo-network/previous-hash-store-model 3.0.6 → 3.0.8
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/browser/PreviousHashStore.d.ts +7 -0
- package/dist/browser/PreviousHashStore.d.ts.map +1 -0
- package/dist/browser/index.d.ts +2 -9
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/neutral/PreviousHashStore.d.ts +7 -0
- package/dist/neutral/PreviousHashStore.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +2 -9
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/node/PreviousHashStore.d.ts +7 -0
- package/dist/node/PreviousHashStore.d.ts.map +1 -0
- package/dist/node/index.d.ts +2 -9
- package/dist/node/index.d.ts.map +1 -0
- package/package.json +25 -25
- package/xy.config.ts +2 -6
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Address, Hash } from '@xylabs/hex';
|
|
2
|
+
export interface PreviousHashStore {
|
|
3
|
+
getItem(address: Address): Hash | null | Promise<Hash | null>;
|
|
4
|
+
removeItem(address: Address): void | Promise<void>;
|
|
5
|
+
setItem(address: Address, previousHash: Hash): void | Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=PreviousHashStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviousHashStore.d.ts","sourceRoot":"","sources":["../../src/PreviousHashStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IAC7D,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACpE"}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
interface PreviousHashStore {
|
|
4
|
-
getItem(address: Address): Hash | null | Promise<Hash | null>;
|
|
5
|
-
removeItem(address: Address): void | Promise<void>;
|
|
6
|
-
setItem(address: Address, previousHash: Hash): void | Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type { PreviousHashStore };
|
|
1
|
+
export * from './PreviousHashStore.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,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Address, Hash } from '@xylabs/hex';
|
|
2
|
+
export interface PreviousHashStore {
|
|
3
|
+
getItem(address: Address): Hash | null | Promise<Hash | null>;
|
|
4
|
+
removeItem(address: Address): void | Promise<void>;
|
|
5
|
+
setItem(address: Address, previousHash: Hash): void | Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=PreviousHashStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviousHashStore.d.ts","sourceRoot":"","sources":["../../src/PreviousHashStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IAC7D,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACpE"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
interface PreviousHashStore {
|
|
4
|
-
getItem(address: Address): Hash | null | Promise<Hash | null>;
|
|
5
|
-
removeItem(address: Address): void | Promise<void>;
|
|
6
|
-
setItem(address: Address, previousHash: Hash): void | Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type { PreviousHashStore };
|
|
1
|
+
export * from './PreviousHashStore.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,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Address, Hash } from '@xylabs/hex';
|
|
2
|
+
export interface PreviousHashStore {
|
|
3
|
+
getItem(address: Address): Hash | null | Promise<Hash | null>;
|
|
4
|
+
removeItem(address: Address): void | Promise<void>;
|
|
5
|
+
setItem(address: Address, previousHash: Hash): void | Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=PreviousHashStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviousHashStore.d.ts","sourceRoot":"","sources":["../../src/PreviousHashStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IAC7D,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACpE"}
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
interface PreviousHashStore {
|
|
4
|
-
getItem(address: Address): Hash | null | Promise<Hash | null>;
|
|
5
|
-
removeItem(address: Address): void | Promise<void>;
|
|
6
|
-
setItem(address: Address, previousHash: Hash): void | Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type { PreviousHashStore };
|
|
1
|
+
export * from './PreviousHashStore.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,wBAAwB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/previous-hash-store-model",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"url": "https://xyo.network"
|
|
7
|
-
},
|
|
3
|
+
"version": "3.0.8",
|
|
4
|
+
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
|
+
"homepage": "https://xyo.network",
|
|
8
6
|
"bugs": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
7
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues",
|
|
8
|
+
"email": "support@xyo.network"
|
|
11
9
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
15
13
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
14
|
+
"license": "LGPL-3.0-only",
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "XYO Development Team",
|
|
17
|
+
"email": "support@xyo.network",
|
|
18
|
+
"url": "https://xyo.network"
|
|
20
19
|
},
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"type": "module",
|
|
21
22
|
"exports": {
|
|
22
23
|
".": {
|
|
23
24
|
"types": "./dist/neutral/index.d.ts",
|
|
@@ -26,17 +27,16 @@
|
|
|
26
27
|
"./package.json": "./package.json"
|
|
27
28
|
},
|
|
28
29
|
"module": "dist/neutral/index.mjs",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
"access": "public"
|
|
30
|
+
"types": "dist/neutral/index.d.ts",
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@xylabs/hex": "^4.0.3"
|
|
33
33
|
},
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
|
36
|
+
"@xylabs/tsconfig": "^4.0.7",
|
|
37
|
+
"typescript": "^5.5.4"
|
|
37
38
|
},
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"type": "module"
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
}
|
|
42
42
|
}
|
package/xy.config.ts
CHANGED