@xyo-network/previous-hash-store-model 2.72.8 → 2.73.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.
@@ -1,6 +1,7 @@
1
- export interface PreviousHashStore {
1
+ interface PreviousHashStore {
2
2
  getItem(address: string): string | null | Promise<string | null>;
3
3
  removeItem(address: string): void | Promise<void>;
4
4
  setItem(address: string, previousHash: string): void | Promise<void>;
5
5
  }
6
- //# sourceMappingURL=PreviousHashStore.d.ts.map
6
+
7
+ export { PreviousHashStore };
@@ -0,0 +1,7 @@
1
+ interface PreviousHashStore {
2
+ getItem(address: string): string | null | Promise<string | null>;
3
+ removeItem(address: string): void | Promise<void>;
4
+ setItem(address: string, previousHash: string): void | Promise<void>;
5
+ }
6
+
7
+ export { PreviousHashStore };
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/index.ts
17
+ var src_exports = {};
18
+ module.exports = __toCommonJS(src_exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './PreviousHashStore'\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -11,31 +11,40 @@
11
11
  },
12
12
  "description": "Primary SDK for using XYO Protocol 2.0",
13
13
  "devDependencies": {
14
- "@xylabs/ts-scripts-yarn3": "^2.19.3",
15
- "@xylabs/tsconfig": "^2.19.3",
14
+ "@xylabs/ts-scripts-yarn3": "^2.19.5",
15
+ "@xylabs/tsconfig": "^2.19.5",
16
+ "publint": "^0.2.2",
17
+ "tsup": "^7.2.0",
16
18
  "typescript": "^5.2.2"
17
19
  },
18
- "browser": "dist/esm/index.js",
19
- "main": "dist/cjs/index.js",
20
- "module": "dist/esm/index.js",
21
20
  "docs": "dist/docs.json",
22
21
  "exports": {
23
22
  ".": {
24
- "node": {
25
- "import": "./dist/esm/index.js",
26
- "require": "./dist/cjs/index.js"
23
+ "require": {
24
+ "types": "./dist/index.d.ts",
25
+ "default": "./dist/index.js"
27
26
  },
28
- "browser": {
29
- "import": "./dist/esm/index.js",
30
- "require": "./dist/cjs/index.js"
31
- },
32
- "default": "./dist/esm/index.js"
27
+ "import": {
28
+ "types": "./dist/index.d.mts",
29
+ "default": "./dist/index.mjs"
30
+ }
33
31
  },
34
32
  "./dist/docs.json": {
35
33
  "default": "./dist/docs.json"
36
34
  },
35
+ "./cjs": {
36
+ "default": "./dist/index.js"
37
+ },
38
+ "./docs": {
39
+ "default": "./dist/docs.json"
40
+ },
41
+ "./esm": {
42
+ "default": "./dist/index.mjs"
43
+ },
37
44
  "./package.json": "./package.json"
38
45
  },
46
+ "main": "dist/index.js",
47
+ "module": "dist/index.mjs",
39
48
  "homepage": "https://xyo.network",
40
49
  "license": "LGPL-3.0",
41
50
  "publishConfig": {
@@ -45,7 +54,11 @@
45
54
  "type": "git",
46
55
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
47
56
  },
57
+ "scripts": {
58
+ "package-compile": "tsup && publint",
59
+ "package-recompile": "tsup && publint"
60
+ },
48
61
  "sideEffects": false,
49
- "types": "dist/types/index.d.ts",
50
- "version": "2.72.8"
62
+ "types": "dist/index.d.ts",
63
+ "version": "2.73.0"
51
64
  }
package/tsup.config.ts ADDED
@@ -0,0 +1,16 @@
1
+ import { defineConfig } from 'tsup'
2
+
3
+ // eslint-disable-next-line import/no-default-export
4
+ export default defineConfig({
5
+ bundle: true,
6
+ cjsInterop: true,
7
+ clean: true,
8
+ dts: {
9
+ entry: ['src/index.ts'],
10
+ },
11
+ entry: ['src/index.ts'],
12
+ format: ['cjs', 'esm'],
13
+ sourcemap: true,
14
+ splitting: false,
15
+ tsconfig: 'tsconfig.json',
16
+ })
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=PreviousHashStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PreviousHashStore.js","sourceRoot":"","sources":["../../src/PreviousHashStore.ts"],"names":[],"mappings":""}
package/dist/cjs/index.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./PreviousHashStore"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,8DAAmC"}
package/dist/docs.json DELETED
@@ -1,332 +0,0 @@
1
- {
2
- "id": 0,
3
- "name": "@xyo-network/previous-hash-store-model",
4
- "variant": "project",
5
- "kind": 1,
6
- "flags": {},
7
- "children": [
8
- {
9
- "id": 1,
10
- "name": "PreviousHashStore",
11
- "variant": "declaration",
12
- "kind": 256,
13
- "flags": {},
14
- "children": [
15
- {
16
- "id": 2,
17
- "name": "getItem",
18
- "variant": "declaration",
19
- "kind": 2048,
20
- "flags": {},
21
- "sources": [
22
- {
23
- "fileName": "PreviousHashStore.ts",
24
- "line": 2,
25
- "character": 2,
26
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/7dd5ad12b4447/packages/protocol/packages/account/packages/previous-hash-store/packages/model/src/PreviousHashStore.ts#L2"
27
- }
28
- ],
29
- "signatures": [
30
- {
31
- "id": 3,
32
- "name": "getItem",
33
- "variant": "signature",
34
- "kind": 4096,
35
- "flags": {},
36
- "sources": [
37
- {
38
- "fileName": "PreviousHashStore.ts",
39
- "line": 2,
40
- "character": 2,
41
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/7dd5ad12b4447/packages/protocol/packages/account/packages/previous-hash-store/packages/model/src/PreviousHashStore.ts#L2"
42
- }
43
- ],
44
- "parameters": [
45
- {
46
- "id": 4,
47
- "name": "address",
48
- "variant": "param",
49
- "kind": 32768,
50
- "flags": {},
51
- "type": {
52
- "type": "intrinsic",
53
- "name": "string"
54
- }
55
- }
56
- ],
57
- "type": {
58
- "type": "union",
59
- "types": [
60
- {
61
- "type": "literal",
62
- "value": null
63
- },
64
- {
65
- "type": "intrinsic",
66
- "name": "string"
67
- },
68
- {
69
- "type": "reference",
70
- "target": {
71
- "sourceFileName": "../../../../../../../../node_modules/typescript/lib/lib.es5.d.ts",
72
- "qualifiedName": "Promise"
73
- },
74
- "typeArguments": [
75
- {
76
- "type": "union",
77
- "types": [
78
- {
79
- "type": "literal",
80
- "value": null
81
- },
82
- {
83
- "type": "intrinsic",
84
- "name": "string"
85
- }
86
- ]
87
- }
88
- ],
89
- "name": "Promise",
90
- "package": "typescript"
91
- }
92
- ]
93
- }
94
- }
95
- ]
96
- },
97
- {
98
- "id": 5,
99
- "name": "removeItem",
100
- "variant": "declaration",
101
- "kind": 2048,
102
- "flags": {},
103
- "sources": [
104
- {
105
- "fileName": "PreviousHashStore.ts",
106
- "line": 3,
107
- "character": 2,
108
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/7dd5ad12b4447/packages/protocol/packages/account/packages/previous-hash-store/packages/model/src/PreviousHashStore.ts#L3"
109
- }
110
- ],
111
- "signatures": [
112
- {
113
- "id": 6,
114
- "name": "removeItem",
115
- "variant": "signature",
116
- "kind": 4096,
117
- "flags": {},
118
- "sources": [
119
- {
120
- "fileName": "PreviousHashStore.ts",
121
- "line": 3,
122
- "character": 2,
123
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/7dd5ad12b4447/packages/protocol/packages/account/packages/previous-hash-store/packages/model/src/PreviousHashStore.ts#L3"
124
- }
125
- ],
126
- "parameters": [
127
- {
128
- "id": 7,
129
- "name": "address",
130
- "variant": "param",
131
- "kind": 32768,
132
- "flags": {},
133
- "type": {
134
- "type": "intrinsic",
135
- "name": "string"
136
- }
137
- }
138
- ],
139
- "type": {
140
- "type": "union",
141
- "types": [
142
- {
143
- "type": "intrinsic",
144
- "name": "void"
145
- },
146
- {
147
- "type": "reference",
148
- "target": {
149
- "sourceFileName": "../../../../../../../../node_modules/typescript/lib/lib.es5.d.ts",
150
- "qualifiedName": "Promise"
151
- },
152
- "typeArguments": [
153
- {
154
- "type": "intrinsic",
155
- "name": "void"
156
- }
157
- ],
158
- "name": "Promise",
159
- "package": "typescript"
160
- }
161
- ]
162
- }
163
- }
164
- ]
165
- },
166
- {
167
- "id": 8,
168
- "name": "setItem",
169
- "variant": "declaration",
170
- "kind": 2048,
171
- "flags": {},
172
- "sources": [
173
- {
174
- "fileName": "PreviousHashStore.ts",
175
- "line": 4,
176
- "character": 2,
177
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/7dd5ad12b4447/packages/protocol/packages/account/packages/previous-hash-store/packages/model/src/PreviousHashStore.ts#L4"
178
- }
179
- ],
180
- "signatures": [
181
- {
182
- "id": 9,
183
- "name": "setItem",
184
- "variant": "signature",
185
- "kind": 4096,
186
- "flags": {},
187
- "sources": [
188
- {
189
- "fileName": "PreviousHashStore.ts",
190
- "line": 4,
191
- "character": 2,
192
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/7dd5ad12b4447/packages/protocol/packages/account/packages/previous-hash-store/packages/model/src/PreviousHashStore.ts#L4"
193
- }
194
- ],
195
- "parameters": [
196
- {
197
- "id": 10,
198
- "name": "address",
199
- "variant": "param",
200
- "kind": 32768,
201
- "flags": {},
202
- "type": {
203
- "type": "intrinsic",
204
- "name": "string"
205
- }
206
- },
207
- {
208
- "id": 11,
209
- "name": "previousHash",
210
- "variant": "param",
211
- "kind": 32768,
212
- "flags": {},
213
- "type": {
214
- "type": "intrinsic",
215
- "name": "string"
216
- }
217
- }
218
- ],
219
- "type": {
220
- "type": "union",
221
- "types": [
222
- {
223
- "type": "intrinsic",
224
- "name": "void"
225
- },
226
- {
227
- "type": "reference",
228
- "target": {
229
- "sourceFileName": "../../../../../../../../node_modules/typescript/lib/lib.es5.d.ts",
230
- "qualifiedName": "Promise"
231
- },
232
- "typeArguments": [
233
- {
234
- "type": "intrinsic",
235
- "name": "void"
236
- }
237
- ],
238
- "name": "Promise",
239
- "package": "typescript"
240
- }
241
- ]
242
- }
243
- }
244
- ]
245
- }
246
- ],
247
- "groups": [
248
- {
249
- "title": "Methods",
250
- "children": [
251
- 2,
252
- 5,
253
- 8
254
- ]
255
- }
256
- ],
257
- "sources": [
258
- {
259
- "fileName": "PreviousHashStore.ts",
260
- "line": 1,
261
- "character": 17,
262
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/7dd5ad12b4447/packages/protocol/packages/account/packages/previous-hash-store/packages/model/src/PreviousHashStore.ts#L1"
263
- }
264
- ]
265
- }
266
- ],
267
- "groups": [
268
- {
269
- "title": "Interfaces",
270
- "children": [
271
- 1
272
- ]
273
- }
274
- ],
275
- "packageName": "@xyo-network/previous-hash-store-model",
276
- "readme": [
277
- {
278
- "kind": "text",
279
- "text": "[![logo][]](https://xyo.network)\n\nPart of [sdk-xyo-clint-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)\n\n## License\n\n> See the [LICENSE](LICENSE) file for license details\n\n## Credits\n\n[Made with 🔥 and ❄️ by XYO](https://xyo.network)\n\n[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png"
280
- }
281
- ],
282
- "symbolIdMap": {
283
- "0": {
284
- "sourceFileName": "src/index.ts",
285
- "qualifiedName": ""
286
- },
287
- "1": {
288
- "sourceFileName": "src/PreviousHashStore.ts",
289
- "qualifiedName": "PreviousHashStore"
290
- },
291
- "2": {
292
- "sourceFileName": "src/PreviousHashStore.ts",
293
- "qualifiedName": "PreviousHashStore.getItem"
294
- },
295
- "3": {
296
- "sourceFileName": "src/PreviousHashStore.ts",
297
- "qualifiedName": "PreviousHashStore.getItem"
298
- },
299
- "4": {
300
- "sourceFileName": "src/PreviousHashStore.ts",
301
- "qualifiedName": "address"
302
- },
303
- "5": {
304
- "sourceFileName": "src/PreviousHashStore.ts",
305
- "qualifiedName": "PreviousHashStore.removeItem"
306
- },
307
- "6": {
308
- "sourceFileName": "src/PreviousHashStore.ts",
309
- "qualifiedName": "PreviousHashStore.removeItem"
310
- },
311
- "7": {
312
- "sourceFileName": "src/PreviousHashStore.ts",
313
- "qualifiedName": "address"
314
- },
315
- "8": {
316
- "sourceFileName": "src/PreviousHashStore.ts",
317
- "qualifiedName": "PreviousHashStore.setItem"
318
- },
319
- "9": {
320
- "sourceFileName": "src/PreviousHashStore.ts",
321
- "qualifiedName": "PreviousHashStore.setItem"
322
- },
323
- "10": {
324
- "sourceFileName": "src/PreviousHashStore.ts",
325
- "qualifiedName": "address"
326
- },
327
- "11": {
328
- "sourceFileName": "src/PreviousHashStore.ts",
329
- "qualifiedName": "previousHash"
330
- }
331
- }
332
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=PreviousHashStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PreviousHashStore.js","sourceRoot":"","sources":["../../src/PreviousHashStore.ts"],"names":[],"mappings":""}
package/dist/esm/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './PreviousHashStore';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PreviousHashStore.d.ts","sourceRoot":"","sources":["../../src/PreviousHashStore.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAChE,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACjD,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACrE"}
@@ -1,2 +0,0 @@
1
- export * from './PreviousHashStore';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}