@xyo-network/previous-hash-store-indexeddb 2.110.10 → 2.110.12

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.
@@ -3,7 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
6
  var __export = (target, all) => {
8
7
  for (var name in all)
9
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -28,25 +27,22 @@ module.exports = __toCommonJS(src_exports);
28
27
  // src/IndexedDbPreviousHashStore.ts
29
28
  var import_idb = require("idb");
30
29
  var IndexedDbPreviousHashStore = class _IndexedDbPreviousHashStore {
31
- static {
32
- __name(this, "IndexedDbPreviousHashStore");
33
- }
34
30
  static CurrentSchemaVersion = 1;
35
31
  db;
36
32
  constructor() {
37
33
  this.db = (0, import_idb.openDB)(this.dbName, _IndexedDbPreviousHashStore.CurrentSchemaVersion, {
38
- upgrade: /* @__PURE__ */ __name((db) => db.createObjectStore(this.storeName), "upgrade")
34
+ upgrade: (db) => db.createObjectStore(this.storeName)
39
35
  });
40
36
  }
41
37
  /**
42
- * The database name.
43
- */
38
+ * The database name.
39
+ */
44
40
  get dbName() {
45
41
  return "xyo";
46
42
  }
47
43
  /**
48
- * The name of the object store.
49
- */
44
+ * The name of the object store.
45
+ */
50
46
  get storeName() {
51
47
  return "previous-hash";
52
48
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/IndexedDbPreviousHashStore.ts"],"sourcesContent":["export * from './IndexedDbPreviousHashStore.js'\n","import { Address, Hash } from '@xylabs/hex'\nimport { PreviousHashStore } from '@xyo-network/previous-hash-store-model'\nimport { DBSchema, IDBPDatabase, openDB } from 'idb'\n\nexport interface PreviousHashStoreSchemaV1 extends DBSchema {\n 'previous-hash': {\n key: string\n value: string\n }\n}\n\nexport class IndexedDbPreviousHashStore implements PreviousHashStore {\n static readonly CurrentSchemaVersion = 1\n private readonly db: Promise<IDBPDatabase<PreviousHashStoreSchemaV1>>\n\n constructor() {\n this.db = openDB<PreviousHashStoreSchemaV1>(this.dbName, IndexedDbPreviousHashStore.CurrentSchemaVersion, {\n upgrade: (db) => db.createObjectStore(this.storeName),\n })\n }\n\n /**\n * The database name.\n */\n get dbName() {\n return 'xyo' as const\n }\n\n /**\n * The name of the object store.\n */\n get storeName() {\n return 'previous-hash' as const\n }\n\n async getItem(address: Address): Promise<Hash | null> {\n const value = (await (await this.db).get(this.storeName, address)) as Hash\n return value ?? null\n }\n async removeItem(address: Address): Promise<void> {\n await (await this.db).delete(this.storeName, address)\n }\n async setItem(address: Address, previousHash: string): Promise<void> {\n await (await this.db).put(this.storeName, previousHash, address)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACEA,iBAA+C;AASxC,IAAMA,6BAAN,MAAMA,4BAAAA;EATb,OASaA;;;EACX,OAAgBC,uBAAuB;EACtBC;EAEjBC,cAAc;AACZ,SAAKD,SAAKE,mBAAkC,KAAKC,QAAQL,4BAA2BC,sBAAsB;MACxGK,SAAS,wBAACJ,OAAOA,GAAGK,kBAAkB,KAAKC,SAAS,GAA3C;IACX,CAAA;EACF;;;;EAKA,IAAIH,SAAS;AACX,WAAO;EACT;;;;EAKA,IAAIG,YAAY;AACd,WAAO;EACT;EAEA,MAAMC,QAAQC,SAAwC;AACpD,UAAMC,QAAS,OAAO,MAAM,KAAKT,IAAIU,IAAI,KAAKJ,WAAWE,OAAAA;AACzD,WAAOC,SAAS;EAClB;EACA,MAAME,WAAWH,SAAiC;AAChD,WAAO,MAAM,KAAKR,IAAIY,OAAO,KAAKN,WAAWE,OAAAA;EAC/C;EACA,MAAMK,QAAQL,SAAkBM,cAAqC;AACnE,WAAO,MAAM,KAAKd,IAAIe,IAAI,KAAKT,WAAWQ,cAAcN,OAAAA;EAC1D;AACF;","names":["IndexedDbPreviousHashStore","CurrentSchemaVersion","db","constructor","openDB","dbName","upgrade","createObjectStore","storeName","getItem","address","value","get","removeItem","delete","setItem","previousHash","put"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/IndexedDbPreviousHashStore.ts"],"sourcesContent":["export * from './IndexedDbPreviousHashStore.js'\n","import { Address, Hash } from '@xylabs/hex'\nimport { PreviousHashStore } from '@xyo-network/previous-hash-store-model'\nimport { DBSchema, IDBPDatabase, openDB } from 'idb'\n\nexport interface PreviousHashStoreSchemaV1 extends DBSchema {\n 'previous-hash': {\n key: string\n value: string\n }\n}\n\nexport class IndexedDbPreviousHashStore implements PreviousHashStore {\n static readonly CurrentSchemaVersion = 1\n private readonly db: Promise<IDBPDatabase<PreviousHashStoreSchemaV1>>\n\n constructor() {\n this.db = openDB<PreviousHashStoreSchemaV1>(this.dbName, IndexedDbPreviousHashStore.CurrentSchemaVersion, {\n upgrade: (db) => db.createObjectStore(this.storeName),\n })\n }\n\n /**\n * The database name.\n */\n get dbName() {\n return 'xyo' as const\n }\n\n /**\n * The name of the object store.\n */\n get storeName() {\n return 'previous-hash' as const\n }\n\n async getItem(address: Address): Promise<Hash | null> {\n const value = (await (await this.db).get(this.storeName, address)) as Hash\n return value ?? null\n }\n async removeItem(address: Address): Promise<void> {\n await (await this.db).delete(this.storeName, address)\n }\n async setItem(address: Address, previousHash: string): Promise<void> {\n await (await this.db).put(this.storeName, previousHash, address)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,iBAA+C;AASxC,IAAM,6BAAN,MAAM,4BAAwD;AAAA,EACnE,OAAgB,uBAAuB;AAAA,EACtB;AAAA,EAEjB,cAAc;AACZ,SAAK,SAAK,mBAAkC,KAAK,QAAQ,4BAA2B,sBAAsB;AAAA,MACxG,SAAS,CAAC,OAAO,GAAG,kBAAkB,KAAK,SAAS;AAAA,IACtD,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,SAAS;AACX,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,YAAY;AACd,WAAO;AAAA,EACT;AAAA,EAEA,MAAM,QAAQ,SAAwC;AACpD,UAAM,QAAS,OAAO,MAAM,KAAK,IAAI,IAAI,KAAK,WAAW,OAAO;AAChE,WAAO,SAAS;AAAA,EAClB;AAAA,EACA,MAAM,WAAW,SAAiC;AAChD,WAAO,MAAM,KAAK,IAAI,OAAO,KAAK,WAAW,OAAO;AAAA,EACtD;AAAA,EACA,MAAM,QAAQ,SAAkB,cAAqC;AACnE,WAAO,MAAM,KAAK,IAAI,IAAI,KAAK,WAAW,cAAc,OAAO;AAAA,EACjE;AACF;","names":[]}
@@ -1,28 +1,22 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
1
  // src/IndexedDbPreviousHashStore.ts
5
2
  import { openDB } from "idb";
6
3
  var IndexedDbPreviousHashStore = class _IndexedDbPreviousHashStore {
7
- static {
8
- __name(this, "IndexedDbPreviousHashStore");
9
- }
10
4
  static CurrentSchemaVersion = 1;
11
5
  db;
12
6
  constructor() {
13
7
  this.db = openDB(this.dbName, _IndexedDbPreviousHashStore.CurrentSchemaVersion, {
14
- upgrade: /* @__PURE__ */ __name((db) => db.createObjectStore(this.storeName), "upgrade")
8
+ upgrade: (db) => db.createObjectStore(this.storeName)
15
9
  });
16
10
  }
17
11
  /**
18
- * The database name.
19
- */
12
+ * The database name.
13
+ */
20
14
  get dbName() {
21
15
  return "xyo";
22
16
  }
23
17
  /**
24
- * The name of the object store.
25
- */
18
+ * The name of the object store.
19
+ */
26
20
  get storeName() {
27
21
  return "previous-hash";
28
22
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/IndexedDbPreviousHashStore.ts"],"sourcesContent":["import { Address, Hash } from '@xylabs/hex'\nimport { PreviousHashStore } from '@xyo-network/previous-hash-store-model'\nimport { DBSchema, IDBPDatabase, openDB } from 'idb'\n\nexport interface PreviousHashStoreSchemaV1 extends DBSchema {\n 'previous-hash': {\n key: string\n value: string\n }\n}\n\nexport class IndexedDbPreviousHashStore implements PreviousHashStore {\n static readonly CurrentSchemaVersion = 1\n private readonly db: Promise<IDBPDatabase<PreviousHashStoreSchemaV1>>\n\n constructor() {\n this.db = openDB<PreviousHashStoreSchemaV1>(this.dbName, IndexedDbPreviousHashStore.CurrentSchemaVersion, {\n upgrade: (db) => db.createObjectStore(this.storeName),\n })\n }\n\n /**\n * The database name.\n */\n get dbName() {\n return 'xyo' as const\n }\n\n /**\n * The name of the object store.\n */\n get storeName() {\n return 'previous-hash' as const\n }\n\n async getItem(address: Address): Promise<Hash | null> {\n const value = (await (await this.db).get(this.storeName, address)) as Hash\n return value ?? null\n }\n async removeItem(address: Address): Promise<void> {\n await (await this.db).delete(this.storeName, address)\n }\n async setItem(address: Address, previousHash: string): Promise<void> {\n await (await this.db).put(this.storeName, previousHash, address)\n }\n}\n"],"mappings":";;;;AAEA,SAAiCA,cAAc;AASxC,IAAMC,6BAAN,MAAMA,4BAAAA;EATb,OASaA;;;EACX,OAAgBC,uBAAuB;EACtBC;EAEjBC,cAAc;AACZ,SAAKD,KAAKE,OAAkC,KAAKC,QAAQL,4BAA2BC,sBAAsB;MACxGK,SAAS,wBAACJ,OAAOA,GAAGK,kBAAkB,KAAKC,SAAS,GAA3C;IACX,CAAA;EACF;;;;EAKA,IAAIH,SAAS;AACX,WAAO;EACT;;;;EAKA,IAAIG,YAAY;AACd,WAAO;EACT;EAEA,MAAMC,QAAQC,SAAwC;AACpD,UAAMC,QAAS,OAAO,MAAM,KAAKT,IAAIU,IAAI,KAAKJ,WAAWE,OAAAA;AACzD,WAAOC,SAAS;EAClB;EACA,MAAME,WAAWH,SAAiC;AAChD,WAAO,MAAM,KAAKR,IAAIY,OAAO,KAAKN,WAAWE,OAAAA;EAC/C;EACA,MAAMK,QAAQL,SAAkBM,cAAqC;AACnE,WAAO,MAAM,KAAKd,IAAIe,IAAI,KAAKT,WAAWQ,cAAcN,OAAAA;EAC1D;AACF;","names":["openDB","IndexedDbPreviousHashStore","CurrentSchemaVersion","db","constructor","openDB","dbName","upgrade","createObjectStore","storeName","getItem","address","value","get","removeItem","delete","setItem","previousHash","put"]}
1
+ {"version":3,"sources":["../../src/IndexedDbPreviousHashStore.ts"],"sourcesContent":["import { Address, Hash } from '@xylabs/hex'\nimport { PreviousHashStore } from '@xyo-network/previous-hash-store-model'\nimport { DBSchema, IDBPDatabase, openDB } from 'idb'\n\nexport interface PreviousHashStoreSchemaV1 extends DBSchema {\n 'previous-hash': {\n key: string\n value: string\n }\n}\n\nexport class IndexedDbPreviousHashStore implements PreviousHashStore {\n static readonly CurrentSchemaVersion = 1\n private readonly db: Promise<IDBPDatabase<PreviousHashStoreSchemaV1>>\n\n constructor() {\n this.db = openDB<PreviousHashStoreSchemaV1>(this.dbName, IndexedDbPreviousHashStore.CurrentSchemaVersion, {\n upgrade: (db) => db.createObjectStore(this.storeName),\n })\n }\n\n /**\n * The database name.\n */\n get dbName() {\n return 'xyo' as const\n }\n\n /**\n * The name of the object store.\n */\n get storeName() {\n return 'previous-hash' as const\n }\n\n async getItem(address: Address): Promise<Hash | null> {\n const value = (await (await this.db).get(this.storeName, address)) as Hash\n return value ?? null\n }\n async removeItem(address: Address): Promise<void> {\n await (await this.db).delete(this.storeName, address)\n }\n async setItem(address: Address, previousHash: string): Promise<void> {\n await (await this.db).put(this.storeName, previousHash, address)\n }\n}\n"],"mappings":";AAEA,SAAiC,cAAc;AASxC,IAAM,6BAAN,MAAM,4BAAwD;AAAA,EACnE,OAAgB,uBAAuB;AAAA,EACtB;AAAA,EAEjB,cAAc;AACZ,SAAK,KAAK,OAAkC,KAAK,QAAQ,4BAA2B,sBAAsB;AAAA,MACxG,SAAS,CAAC,OAAO,GAAG,kBAAkB,KAAK,SAAS;AAAA,IACtD,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,SAAS;AACX,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,YAAY;AACd,WAAO;AAAA,EACT;AAAA,EAEA,MAAM,QAAQ,SAAwC;AACpD,UAAM,QAAS,OAAO,MAAM,KAAK,IAAI,IAAI,KAAK,WAAW,OAAO;AAChE,WAAO,SAAS;AAAA,EAClB;AAAA,EACA,MAAM,WAAW,SAAiC;AAChD,WAAO,MAAM,KAAK,IAAI,OAAO,KAAK,WAAW,OAAO;AAAA,EACtD;AAAA,EACA,MAAM,QAAQ,SAAkB,cAAqC;AACnE,WAAO,MAAM,KAAK,IAAI,IAAI,KAAK,WAAW,cAAc,OAAO;AAAA,EACjE;AACF;","names":[]}
@@ -3,7 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
6
  var __export = (target, all) => {
8
7
  for (var name in all)
9
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -28,25 +27,22 @@ module.exports = __toCommonJS(src_exports);
28
27
  // src/IndexedDbPreviousHashStore.ts
29
28
  var import_idb = require("idb");
30
29
  var IndexedDbPreviousHashStore = class _IndexedDbPreviousHashStore {
31
- static {
32
- __name(this, "IndexedDbPreviousHashStore");
33
- }
34
30
  static CurrentSchemaVersion = 1;
35
31
  db;
36
32
  constructor() {
37
33
  this.db = (0, import_idb.openDB)(this.dbName, _IndexedDbPreviousHashStore.CurrentSchemaVersion, {
38
- upgrade: /* @__PURE__ */ __name((db) => db.createObjectStore(this.storeName), "upgrade")
34
+ upgrade: (db) => db.createObjectStore(this.storeName)
39
35
  });
40
36
  }
41
37
  /**
42
- * The database name.
43
- */
38
+ * The database name.
39
+ */
44
40
  get dbName() {
45
41
  return "xyo";
46
42
  }
47
43
  /**
48
- * The name of the object store.
49
- */
44
+ * The name of the object store.
45
+ */
50
46
  get storeName() {
51
47
  return "previous-hash";
52
48
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/IndexedDbPreviousHashStore.ts"],"sourcesContent":["export * from './IndexedDbPreviousHashStore.js'\n","import { Address, Hash } from '@xylabs/hex'\nimport { PreviousHashStore } from '@xyo-network/previous-hash-store-model'\nimport { DBSchema, IDBPDatabase, openDB } from 'idb'\n\nexport interface PreviousHashStoreSchemaV1 extends DBSchema {\n 'previous-hash': {\n key: string\n value: string\n }\n}\n\nexport class IndexedDbPreviousHashStore implements PreviousHashStore {\n static readonly CurrentSchemaVersion = 1\n private readonly db: Promise<IDBPDatabase<PreviousHashStoreSchemaV1>>\n\n constructor() {\n this.db = openDB<PreviousHashStoreSchemaV1>(this.dbName, IndexedDbPreviousHashStore.CurrentSchemaVersion, {\n upgrade: (db) => db.createObjectStore(this.storeName),\n })\n }\n\n /**\n * The database name.\n */\n get dbName() {\n return 'xyo' as const\n }\n\n /**\n * The name of the object store.\n */\n get storeName() {\n return 'previous-hash' as const\n }\n\n async getItem(address: Address): Promise<Hash | null> {\n const value = (await (await this.db).get(this.storeName, address)) as Hash\n return value ?? null\n }\n async removeItem(address: Address): Promise<void> {\n await (await this.db).delete(this.storeName, address)\n }\n async setItem(address: Address, previousHash: string): Promise<void> {\n await (await this.db).put(this.storeName, previousHash, address)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACEA,iBAA+C;AASxC,IAAMA,6BAAN,MAAMA,4BAAAA;EATb,OASaA;;;EACX,OAAgBC,uBAAuB;EACtBC;EAEjBC,cAAc;AACZ,SAAKD,SAAKE,mBAAkC,KAAKC,QAAQL,4BAA2BC,sBAAsB;MACxGK,SAAS,wBAACJ,OAAOA,GAAGK,kBAAkB,KAAKC,SAAS,GAA3C;IACX,CAAA;EACF;;;;EAKA,IAAIH,SAAS;AACX,WAAO;EACT;;;;EAKA,IAAIG,YAAY;AACd,WAAO;EACT;EAEA,MAAMC,QAAQC,SAAwC;AACpD,UAAMC,QAAS,OAAO,MAAM,KAAKT,IAAIU,IAAI,KAAKJ,WAAWE,OAAAA;AACzD,WAAOC,SAAS;EAClB;EACA,MAAME,WAAWH,SAAiC;AAChD,WAAO,MAAM,KAAKR,IAAIY,OAAO,KAAKN,WAAWE,OAAAA;EAC/C;EACA,MAAMK,QAAQL,SAAkBM,cAAqC;AACnE,WAAO,MAAM,KAAKd,IAAIe,IAAI,KAAKT,WAAWQ,cAAcN,OAAAA;EAC1D;AACF;","names":["IndexedDbPreviousHashStore","CurrentSchemaVersion","db","constructor","openDB","dbName","upgrade","createObjectStore","storeName","getItem","address","value","get","removeItem","delete","setItem","previousHash","put"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/IndexedDbPreviousHashStore.ts"],"sourcesContent":["export * from './IndexedDbPreviousHashStore.js'\n","import { Address, Hash } from '@xylabs/hex'\nimport { PreviousHashStore } from '@xyo-network/previous-hash-store-model'\nimport { DBSchema, IDBPDatabase, openDB } from 'idb'\n\nexport interface PreviousHashStoreSchemaV1 extends DBSchema {\n 'previous-hash': {\n key: string\n value: string\n }\n}\n\nexport class IndexedDbPreviousHashStore implements PreviousHashStore {\n static readonly CurrentSchemaVersion = 1\n private readonly db: Promise<IDBPDatabase<PreviousHashStoreSchemaV1>>\n\n constructor() {\n this.db = openDB<PreviousHashStoreSchemaV1>(this.dbName, IndexedDbPreviousHashStore.CurrentSchemaVersion, {\n upgrade: (db) => db.createObjectStore(this.storeName),\n })\n }\n\n /**\n * The database name.\n */\n get dbName() {\n return 'xyo' as const\n }\n\n /**\n * The name of the object store.\n */\n get storeName() {\n return 'previous-hash' as const\n }\n\n async getItem(address: Address): Promise<Hash | null> {\n const value = (await (await this.db).get(this.storeName, address)) as Hash\n return value ?? null\n }\n async removeItem(address: Address): Promise<void> {\n await (await this.db).delete(this.storeName, address)\n }\n async setItem(address: Address, previousHash: string): Promise<void> {\n await (await this.db).put(this.storeName, previousHash, address)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,iBAA+C;AASxC,IAAM,6BAAN,MAAM,4BAAwD;AAAA,EACnE,OAAgB,uBAAuB;AAAA,EACtB;AAAA,EAEjB,cAAc;AACZ,SAAK,SAAK,mBAAkC,KAAK,QAAQ,4BAA2B,sBAAsB;AAAA,MACxG,SAAS,CAAC,OAAO,GAAG,kBAAkB,KAAK,SAAS;AAAA,IACtD,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,SAAS;AACX,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,YAAY;AACd,WAAO;AAAA,EACT;AAAA,EAEA,MAAM,QAAQ,SAAwC;AACpD,UAAM,QAAS,OAAO,MAAM,KAAK,IAAI,IAAI,KAAK,WAAW,OAAO;AAChE,WAAO,SAAS;AAAA,EAClB;AAAA,EACA,MAAM,WAAW,SAAiC;AAChD,WAAO,MAAM,KAAK,IAAI,OAAO,KAAK,WAAW,OAAO;AAAA,EACtD;AAAA,EACA,MAAM,QAAQ,SAAkB,cAAqC;AACnE,WAAO,MAAM,KAAK,IAAI,IAAI,KAAK,WAAW,cAAc,OAAO;AAAA,EACjE;AACF;","names":[]}
@@ -1,28 +1,22 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
1
  // src/IndexedDbPreviousHashStore.ts
5
2
  import { openDB } from "idb";
6
3
  var IndexedDbPreviousHashStore = class _IndexedDbPreviousHashStore {
7
- static {
8
- __name(this, "IndexedDbPreviousHashStore");
9
- }
10
4
  static CurrentSchemaVersion = 1;
11
5
  db;
12
6
  constructor() {
13
7
  this.db = openDB(this.dbName, _IndexedDbPreviousHashStore.CurrentSchemaVersion, {
14
- upgrade: /* @__PURE__ */ __name((db) => db.createObjectStore(this.storeName), "upgrade")
8
+ upgrade: (db) => db.createObjectStore(this.storeName)
15
9
  });
16
10
  }
17
11
  /**
18
- * The database name.
19
- */
12
+ * The database name.
13
+ */
20
14
  get dbName() {
21
15
  return "xyo";
22
16
  }
23
17
  /**
24
- * The name of the object store.
25
- */
18
+ * The name of the object store.
19
+ */
26
20
  get storeName() {
27
21
  return "previous-hash";
28
22
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/IndexedDbPreviousHashStore.ts"],"sourcesContent":["import { Address, Hash } from '@xylabs/hex'\nimport { PreviousHashStore } from '@xyo-network/previous-hash-store-model'\nimport { DBSchema, IDBPDatabase, openDB } from 'idb'\n\nexport interface PreviousHashStoreSchemaV1 extends DBSchema {\n 'previous-hash': {\n key: string\n value: string\n }\n}\n\nexport class IndexedDbPreviousHashStore implements PreviousHashStore {\n static readonly CurrentSchemaVersion = 1\n private readonly db: Promise<IDBPDatabase<PreviousHashStoreSchemaV1>>\n\n constructor() {\n this.db = openDB<PreviousHashStoreSchemaV1>(this.dbName, IndexedDbPreviousHashStore.CurrentSchemaVersion, {\n upgrade: (db) => db.createObjectStore(this.storeName),\n })\n }\n\n /**\n * The database name.\n */\n get dbName() {\n return 'xyo' as const\n }\n\n /**\n * The name of the object store.\n */\n get storeName() {\n return 'previous-hash' as const\n }\n\n async getItem(address: Address): Promise<Hash | null> {\n const value = (await (await this.db).get(this.storeName, address)) as Hash\n return value ?? null\n }\n async removeItem(address: Address): Promise<void> {\n await (await this.db).delete(this.storeName, address)\n }\n async setItem(address: Address, previousHash: string): Promise<void> {\n await (await this.db).put(this.storeName, previousHash, address)\n }\n}\n"],"mappings":";;;;AAEA,SAAiCA,cAAc;AASxC,IAAMC,6BAAN,MAAMA,4BAAAA;EATb,OASaA;;;EACX,OAAgBC,uBAAuB;EACtBC;EAEjBC,cAAc;AACZ,SAAKD,KAAKE,OAAkC,KAAKC,QAAQL,4BAA2BC,sBAAsB;MACxGK,SAAS,wBAACJ,OAAOA,GAAGK,kBAAkB,KAAKC,SAAS,GAA3C;IACX,CAAA;EACF;;;;EAKA,IAAIH,SAAS;AACX,WAAO;EACT;;;;EAKA,IAAIG,YAAY;AACd,WAAO;EACT;EAEA,MAAMC,QAAQC,SAAwC;AACpD,UAAMC,QAAS,OAAO,MAAM,KAAKT,IAAIU,IAAI,KAAKJ,WAAWE,OAAAA;AACzD,WAAOC,SAAS;EAClB;EACA,MAAME,WAAWH,SAAiC;AAChD,WAAO,MAAM,KAAKR,IAAIY,OAAO,KAAKN,WAAWE,OAAAA;EAC/C;EACA,MAAMK,QAAQL,SAAkBM,cAAqC;AACnE,WAAO,MAAM,KAAKd,IAAIe,IAAI,KAAKT,WAAWQ,cAAcN,OAAAA;EAC1D;AACF;","names":["openDB","IndexedDbPreviousHashStore","CurrentSchemaVersion","db","constructor","openDB","dbName","upgrade","createObjectStore","storeName","getItem","address","value","get","removeItem","delete","setItem","previousHash","put"]}
1
+ {"version":3,"sources":["../../src/IndexedDbPreviousHashStore.ts"],"sourcesContent":["import { Address, Hash } from '@xylabs/hex'\nimport { PreviousHashStore } from '@xyo-network/previous-hash-store-model'\nimport { DBSchema, IDBPDatabase, openDB } from 'idb'\n\nexport interface PreviousHashStoreSchemaV1 extends DBSchema {\n 'previous-hash': {\n key: string\n value: string\n }\n}\n\nexport class IndexedDbPreviousHashStore implements PreviousHashStore {\n static readonly CurrentSchemaVersion = 1\n private readonly db: Promise<IDBPDatabase<PreviousHashStoreSchemaV1>>\n\n constructor() {\n this.db = openDB<PreviousHashStoreSchemaV1>(this.dbName, IndexedDbPreviousHashStore.CurrentSchemaVersion, {\n upgrade: (db) => db.createObjectStore(this.storeName),\n })\n }\n\n /**\n * The database name.\n */\n get dbName() {\n return 'xyo' as const\n }\n\n /**\n * The name of the object store.\n */\n get storeName() {\n return 'previous-hash' as const\n }\n\n async getItem(address: Address): Promise<Hash | null> {\n const value = (await (await this.db).get(this.storeName, address)) as Hash\n return value ?? null\n }\n async removeItem(address: Address): Promise<void> {\n await (await this.db).delete(this.storeName, address)\n }\n async setItem(address: Address, previousHash: string): Promise<void> {\n await (await this.db).put(this.storeName, previousHash, address)\n }\n}\n"],"mappings":";AAEA,SAAiC,cAAc;AASxC,IAAM,6BAAN,MAAM,4BAAwD;AAAA,EACnE,OAAgB,uBAAuB;AAAA,EACtB;AAAA,EAEjB,cAAc;AACZ,SAAK,KAAK,OAAkC,KAAK,QAAQ,4BAA2B,sBAAsB;AAAA,MACxG,SAAS,CAAC,OAAO,GAAG,kBAAkB,KAAK,SAAS;AAAA,IACtD,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,SAAS;AACX,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,YAAY;AACd,WAAO;AAAA,EACT;AAAA,EAEA,MAAM,QAAQ,SAAwC;AACpD,UAAM,QAAS,OAAO,MAAM,KAAK,IAAI,IAAI,KAAK,WAAW,OAAO;AAChE,WAAO,SAAS;AAAA,EAClB;AAAA,EACA,MAAM,WAAW,SAAiC;AAChD,WAAO,MAAM,KAAK,IAAI,OAAO,KAAK,WAAW,OAAO;AAAA,EACtD;AAAA,EACA,MAAM,QAAQ,SAAkB,cAAqC;AACnE,WAAO,MAAM,KAAK,IAAI,IAAI,KAAK,WAAW,cAAc,OAAO;AAAA,EACjE;AACF;","names":[]}
@@ -3,8 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
10
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -18,7 +16,6 @@ var __copyProps = (to, from, except, desc) => {
18
16
  return to;
19
17
  };
20
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
22
19
 
23
20
  // src/index.ts
24
21
  var src_exports = {};
@@ -29,22 +26,23 @@ module.exports = __toCommonJS(src_exports);
29
26
 
30
27
  // src/IndexedDbPreviousHashStore.ts
31
28
  var import_idb = require("idb");
32
- var _IndexedDbPreviousHashStore = class _IndexedDbPreviousHashStore {
29
+ var IndexedDbPreviousHashStore = class _IndexedDbPreviousHashStore {
30
+ static CurrentSchemaVersion = 1;
33
31
  db;
34
32
  constructor() {
35
33
  this.db = (0, import_idb.openDB)(this.dbName, _IndexedDbPreviousHashStore.CurrentSchemaVersion, {
36
- upgrade: /* @__PURE__ */ __name((db) => db.createObjectStore(this.storeName), "upgrade")
34
+ upgrade: (db) => db.createObjectStore(this.storeName)
37
35
  });
38
36
  }
39
37
  /**
40
- * The database name.
41
- */
38
+ * The database name.
39
+ */
42
40
  get dbName() {
43
41
  return "xyo";
44
42
  }
45
43
  /**
46
- * The name of the object store.
47
- */
44
+ * The name of the object store.
45
+ */
48
46
  get storeName() {
49
47
  return "previous-hash";
50
48
  }
@@ -59,9 +57,6 @@ var _IndexedDbPreviousHashStore = class _IndexedDbPreviousHashStore {
59
57
  await (await this.db).put(this.storeName, previousHash, address);
60
58
  }
61
59
  };
62
- __name(_IndexedDbPreviousHashStore, "IndexedDbPreviousHashStore");
63
- __publicField(_IndexedDbPreviousHashStore, "CurrentSchemaVersion", 1);
64
- var IndexedDbPreviousHashStore = _IndexedDbPreviousHashStore;
65
60
  // Annotate the CommonJS export names for ESM import in node:
66
61
  0 && (module.exports = {
67
62
  IndexedDbPreviousHashStore
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/IndexedDbPreviousHashStore.ts"],"sourcesContent":["export * from './IndexedDbPreviousHashStore.js'\n","import { Address, Hash } from '@xylabs/hex'\nimport { PreviousHashStore } from '@xyo-network/previous-hash-store-model'\nimport { DBSchema, IDBPDatabase, openDB } from 'idb'\n\nexport interface PreviousHashStoreSchemaV1 extends DBSchema {\n 'previous-hash': {\n key: string\n value: string\n }\n}\n\nexport class IndexedDbPreviousHashStore implements PreviousHashStore {\n static readonly CurrentSchemaVersion = 1\n private readonly db: Promise<IDBPDatabase<PreviousHashStoreSchemaV1>>\n\n constructor() {\n this.db = openDB<PreviousHashStoreSchemaV1>(this.dbName, IndexedDbPreviousHashStore.CurrentSchemaVersion, {\n upgrade: (db) => db.createObjectStore(this.storeName),\n })\n }\n\n /**\n * The database name.\n */\n get dbName() {\n return 'xyo' as const\n }\n\n /**\n * The name of the object store.\n */\n get storeName() {\n return 'previous-hash' as const\n }\n\n async getItem(address: Address): Promise<Hash | null> {\n const value = (await (await this.db).get(this.storeName, address)) as Hash\n return value ?? null\n }\n async removeItem(address: Address): Promise<void> {\n await (await this.db).delete(this.storeName, address)\n }\n async setItem(address: Address, previousHash: string): Promise<void> {\n await (await this.db).put(this.storeName, previousHash, address)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACEA,iBAA+C;AASxC,IAAMA,8BAAN,MAAMA,4BAAAA;EAEMC;EAEjBC,cAAc;AACZ,SAAKD,SAAKE,mBAAkC,KAAKC,QAAQJ,4BAA2BK,sBAAsB;MACxGC,SAAS,wBAACL,OAAOA,GAAGM,kBAAkB,KAAKC,SAAS,GAA3C;IACX,CAAA;EACF;;;;EAKA,IAAIJ,SAAS;AACX,WAAO;EACT;;;;EAKA,IAAII,YAAY;AACd,WAAO;EACT;EAEA,MAAMC,QAAQC,SAAwC;AACpD,UAAMC,QAAS,OAAO,MAAM,KAAKV,IAAIW,IAAI,KAAKJ,WAAWE,OAAAA;AACzD,WAAOC,SAAS;EAClB;EACA,MAAME,WAAWH,SAAiC;AAChD,WAAO,MAAM,KAAKT,IAAIa,OAAO,KAAKN,WAAWE,OAAAA;EAC/C;EACA,MAAMK,QAAQL,SAAkBM,cAAqC;AACnE,WAAO,MAAM,KAAKf,IAAIgB,IAAI,KAAKT,WAAWQ,cAAcN,OAAAA;EAC1D;AACF;AAlCaV;AACX,cADWA,6BACKK,wBAAuB;AADlC,IAAML,6BAAN;","names":["IndexedDbPreviousHashStore","db","constructor","openDB","dbName","CurrentSchemaVersion","upgrade","createObjectStore","storeName","getItem","address","value","get","removeItem","delete","setItem","previousHash","put"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/IndexedDbPreviousHashStore.ts"],"sourcesContent":["export * from './IndexedDbPreviousHashStore.js'\n","import { Address, Hash } from '@xylabs/hex'\nimport { PreviousHashStore } from '@xyo-network/previous-hash-store-model'\nimport { DBSchema, IDBPDatabase, openDB } from 'idb'\n\nexport interface PreviousHashStoreSchemaV1 extends DBSchema {\n 'previous-hash': {\n key: string\n value: string\n }\n}\n\nexport class IndexedDbPreviousHashStore implements PreviousHashStore {\n static readonly CurrentSchemaVersion = 1\n private readonly db: Promise<IDBPDatabase<PreviousHashStoreSchemaV1>>\n\n constructor() {\n this.db = openDB<PreviousHashStoreSchemaV1>(this.dbName, IndexedDbPreviousHashStore.CurrentSchemaVersion, {\n upgrade: (db) => db.createObjectStore(this.storeName),\n })\n }\n\n /**\n * The database name.\n */\n get dbName() {\n return 'xyo' as const\n }\n\n /**\n * The name of the object store.\n */\n get storeName() {\n return 'previous-hash' as const\n }\n\n async getItem(address: Address): Promise<Hash | null> {\n const value = (await (await this.db).get(this.storeName, address)) as Hash\n return value ?? null\n }\n async removeItem(address: Address): Promise<void> {\n await (await this.db).delete(this.storeName, address)\n }\n async setItem(address: Address, previousHash: string): Promise<void> {\n await (await this.db).put(this.storeName, previousHash, address)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,iBAA+C;AASxC,IAAM,6BAAN,MAAM,4BAAwD;AAAA,EACnE,OAAgB,uBAAuB;AAAA,EACtB;AAAA,EAEjB,cAAc;AACZ,SAAK,SAAK,mBAAkC,KAAK,QAAQ,4BAA2B,sBAAsB;AAAA,MACxG,SAAS,CAAC,OAAO,GAAG,kBAAkB,KAAK,SAAS;AAAA,IACtD,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,SAAS;AACX,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,YAAY;AACd,WAAO;AAAA,EACT;AAAA,EAEA,MAAM,QAAQ,SAAwC;AACpD,UAAM,QAAS,OAAO,MAAM,KAAK,IAAI,IAAI,KAAK,WAAW,OAAO;AAChE,WAAO,SAAS;AAAA,EAClB;AAAA,EACA,MAAM,WAAW,SAAiC;AAChD,WAAO,MAAM,KAAK,IAAI,OAAO,KAAK,WAAW,OAAO;AAAA,EACtD;AAAA,EACA,MAAM,QAAQ,SAAkB,cAAqC;AACnE,WAAO,MAAM,KAAK,IAAI,IAAI,KAAK,WAAW,cAAc,OAAO;AAAA,EACjE;AACF;","names":[]}
@@ -1,26 +1,22 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
-
6
1
  // src/IndexedDbPreviousHashStore.ts
7
2
  import { openDB } from "idb";
8
- var _IndexedDbPreviousHashStore = class _IndexedDbPreviousHashStore {
3
+ var IndexedDbPreviousHashStore = class _IndexedDbPreviousHashStore {
4
+ static CurrentSchemaVersion = 1;
9
5
  db;
10
6
  constructor() {
11
7
  this.db = openDB(this.dbName, _IndexedDbPreviousHashStore.CurrentSchemaVersion, {
12
- upgrade: /* @__PURE__ */ __name((db) => db.createObjectStore(this.storeName), "upgrade")
8
+ upgrade: (db) => db.createObjectStore(this.storeName)
13
9
  });
14
10
  }
15
11
  /**
16
- * The database name.
17
- */
12
+ * The database name.
13
+ */
18
14
  get dbName() {
19
15
  return "xyo";
20
16
  }
21
17
  /**
22
- * The name of the object store.
23
- */
18
+ * The name of the object store.
19
+ */
24
20
  get storeName() {
25
21
  return "previous-hash";
26
22
  }
@@ -35,9 +31,6 @@ var _IndexedDbPreviousHashStore = class _IndexedDbPreviousHashStore {
35
31
  await (await this.db).put(this.storeName, previousHash, address);
36
32
  }
37
33
  };
38
- __name(_IndexedDbPreviousHashStore, "IndexedDbPreviousHashStore");
39
- __publicField(_IndexedDbPreviousHashStore, "CurrentSchemaVersion", 1);
40
- var IndexedDbPreviousHashStore = _IndexedDbPreviousHashStore;
41
34
  export {
42
35
  IndexedDbPreviousHashStore
43
36
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/IndexedDbPreviousHashStore.ts"],"sourcesContent":["import { Address, Hash } from '@xylabs/hex'\nimport { PreviousHashStore } from '@xyo-network/previous-hash-store-model'\nimport { DBSchema, IDBPDatabase, openDB } from 'idb'\n\nexport interface PreviousHashStoreSchemaV1 extends DBSchema {\n 'previous-hash': {\n key: string\n value: string\n }\n}\n\nexport class IndexedDbPreviousHashStore implements PreviousHashStore {\n static readonly CurrentSchemaVersion = 1\n private readonly db: Promise<IDBPDatabase<PreviousHashStoreSchemaV1>>\n\n constructor() {\n this.db = openDB<PreviousHashStoreSchemaV1>(this.dbName, IndexedDbPreviousHashStore.CurrentSchemaVersion, {\n upgrade: (db) => db.createObjectStore(this.storeName),\n })\n }\n\n /**\n * The database name.\n */\n get dbName() {\n return 'xyo' as const\n }\n\n /**\n * The name of the object store.\n */\n get storeName() {\n return 'previous-hash' as const\n }\n\n async getItem(address: Address): Promise<Hash | null> {\n const value = (await (await this.db).get(this.storeName, address)) as Hash\n return value ?? null\n }\n async removeItem(address: Address): Promise<void> {\n await (await this.db).delete(this.storeName, address)\n }\n async setItem(address: Address, previousHash: string): Promise<void> {\n await (await this.db).put(this.storeName, previousHash, address)\n }\n}\n"],"mappings":";;;;;;AAEA,SAAiCA,cAAc;AASxC,IAAMC,8BAAN,MAAMA,4BAAAA;EAEMC;EAEjBC,cAAc;AACZ,SAAKD,KAAKE,OAAkC,KAAKC,QAAQJ,4BAA2BK,sBAAsB;MACxGC,SAAS,wBAACL,OAAOA,GAAGM,kBAAkB,KAAKC,SAAS,GAA3C;IACX,CAAA;EACF;;;;EAKA,IAAIJ,SAAS;AACX,WAAO;EACT;;;;EAKA,IAAII,YAAY;AACd,WAAO;EACT;EAEA,MAAMC,QAAQC,SAAwC;AACpD,UAAMC,QAAS,OAAO,MAAM,KAAKV,IAAIW,IAAI,KAAKJ,WAAWE,OAAAA;AACzD,WAAOC,SAAS;EAClB;EACA,MAAME,WAAWH,SAAiC;AAChD,WAAO,MAAM,KAAKT,IAAIa,OAAO,KAAKN,WAAWE,OAAAA;EAC/C;EACA,MAAMK,QAAQL,SAAkBM,cAAqC;AACnE,WAAO,MAAM,KAAKf,IAAIgB,IAAI,KAAKT,WAAWQ,cAAcN,OAAAA;EAC1D;AACF;AAlCaV;AACX,cADWA,6BACKK,wBAAuB;AADlC,IAAML,6BAAN;","names":["openDB","IndexedDbPreviousHashStore","db","constructor","openDB","dbName","CurrentSchemaVersion","upgrade","createObjectStore","storeName","getItem","address","value","get","removeItem","delete","setItem","previousHash","put"]}
1
+ {"version":3,"sources":["../../src/IndexedDbPreviousHashStore.ts"],"sourcesContent":["import { Address, Hash } from '@xylabs/hex'\nimport { PreviousHashStore } from '@xyo-network/previous-hash-store-model'\nimport { DBSchema, IDBPDatabase, openDB } from 'idb'\n\nexport interface PreviousHashStoreSchemaV1 extends DBSchema {\n 'previous-hash': {\n key: string\n value: string\n }\n}\n\nexport class IndexedDbPreviousHashStore implements PreviousHashStore {\n static readonly CurrentSchemaVersion = 1\n private readonly db: Promise<IDBPDatabase<PreviousHashStoreSchemaV1>>\n\n constructor() {\n this.db = openDB<PreviousHashStoreSchemaV1>(this.dbName, IndexedDbPreviousHashStore.CurrentSchemaVersion, {\n upgrade: (db) => db.createObjectStore(this.storeName),\n })\n }\n\n /**\n * The database name.\n */\n get dbName() {\n return 'xyo' as const\n }\n\n /**\n * The name of the object store.\n */\n get storeName() {\n return 'previous-hash' as const\n }\n\n async getItem(address: Address): Promise<Hash | null> {\n const value = (await (await this.db).get(this.storeName, address)) as Hash\n return value ?? null\n }\n async removeItem(address: Address): Promise<void> {\n await (await this.db).delete(this.storeName, address)\n }\n async setItem(address: Address, previousHash: string): Promise<void> {\n await (await this.db).put(this.storeName, previousHash, address)\n }\n}\n"],"mappings":";AAEA,SAAiC,cAAc;AASxC,IAAM,6BAAN,MAAM,4BAAwD;AAAA,EACnE,OAAgB,uBAAuB;AAAA,EACtB;AAAA,EAEjB,cAAc;AACZ,SAAK,KAAK,OAAkC,KAAK,QAAQ,4BAA2B,sBAAsB;AAAA,MACxG,SAAS,CAAC,OAAO,GAAG,kBAAkB,KAAK,SAAS;AAAA,IACtD,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,SAAS;AACX,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,YAAY;AACd,WAAO;AAAA,EACT;AAAA,EAEA,MAAM,QAAQ,SAAwC;AACpD,UAAM,QAAS,OAAO,MAAM,KAAK,IAAI,IAAI,KAAK,WAAW,OAAO;AAChE,WAAO,SAAS;AAAA,EAClB;AAAA,EACA,MAAM,WAAW,SAAiC;AAChD,WAAO,MAAM,KAAK,IAAI,OAAO,KAAK,WAAW,OAAO;AAAA,EACtD;AAAA,EACA,MAAM,QAAQ,SAAkB,cAAqC;AACnE,WAAO,MAAM,KAAK,IAAI,IAAI,KAAK,WAAW,cAAc,OAAO;AAAA,EACjE;AACF;","names":[]}
package/package.json CHANGED
@@ -11,14 +11,15 @@
11
11
  },
12
12
  "description": "Primary SDK for using XYO Protocol 2.0",
13
13
  "dependencies": {
14
- "@xylabs/hex": "^3.6.4",
15
- "@xyo-network/previous-hash-store-model": "^2.110.10",
14
+ "@xylabs/hex": "^3.6.5",
15
+ "@xyo-network/previous-hash-store-model": "^2.110.12",
16
16
  "idb": "^8.0.0"
17
17
  },
18
18
  "devDependencies": {
19
+ "@types/node": "^22.0.0",
19
20
  "@types/uuid": "10.0.0",
20
- "@xylabs/ts-scripts-yarn3": "^3.12.4",
21
- "@xylabs/tsconfig": "^3.12.4",
21
+ "@xylabs/ts-scripts-yarn3": "^3.13.9",
22
+ "@xylabs/tsconfig": "^3.13.9",
22
23
  "fake-indexeddb": "^6.0.0",
23
24
  "typescript": "^5.5.4",
24
25
  "uuid": "^10.0.0"
@@ -61,6 +62,6 @@
61
62
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
62
63
  },
63
64
  "sideEffects": false,
64
- "version": "2.110.10",
65
+ "version": "2.110.12",
65
66
  "type": "module"
66
67
  }
package/xy.config.ts CHANGED
@@ -10,5 +10,4 @@ const config: XyTsupConfig = {
10
10
  },
11
11
  }
12
12
 
13
- // eslint-disable-next-line import/no-default-export
14
13
  export default config