@xyo-network/previous-hash-store-model 3.0.7 → 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 +4 -4
- 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/previous-hash-store-model",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/hex": "^4.0.
|
|
32
|
+
"@xylabs/hex": "^4.0.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@xylabs/ts-scripts-yarn3": "^4.0.
|
|
36
|
-
"@xylabs/tsconfig": "^4.0.
|
|
35
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
|
36
|
+
"@xylabs/tsconfig": "^4.0.7",
|
|
37
37
|
"typescript": "^5.5.4"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
package/xy.config.ts
CHANGED