@mainnet-cash/indexeddb-storage 3.1.1 → 3.1.2

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/index.html CHANGED
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <title>The Empty Mainnet App</title>
6
- <meta name="viewport" content="width=device-width, initial-scale=1"><script defer src="indexeddb-storage-3.1.1.js"></script></head>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1"><script defer src="indexeddb-storage-3.1.2.js"></script></head>
7
7
  <body><script defer src="mainnet.js"></script><script>document.addEventListener("DOMContentLoaded", async (event) => Object.assign(globalThis, await __mainnetPromise))</script>
8
8
  </body>
9
9
  </html>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@mainnet-cash/indexeddb-storage",
4
- "version": "3.1.1",
4
+ "version": "3.1.2",
5
5
  "module": "dist/module/index.js",
6
6
  "types": "dist/module/index.d.ts",
7
7
  "exports": {
@@ -10,7 +10,7 @@
10
10
  "license": "MIT",
11
11
  "author": "readcash",
12
12
  "dependencies": {
13
- "mainnet-js": "3.1.1"
13
+ "mainnet-js": "3.1.2"
14
14
  },
15
15
  "devDependencies": {
16
16
  "fake-indexeddb": "^3.1.2"
@@ -377,9 +377,7 @@ describe(`Wallet should function in the browser`, () => {
377
377
  expect(txDecoded === null).toBe(false);
378
378
  const txHash = txDecoded.hash;
379
379
  expect(
380
- localStorage.getItem(
381
- `tx-${aliceWallet.provider.network}-${txHash}-${true}-${false}`
382
- )
380
+ localStorage.getItem(`tx-${aliceWallet.provider.network}-${txHash}`)
383
381
  ).toBe(null);
384
382
  Config.UseLocalStorageCache = true;
385
383
  await aliceWallet.provider.getRawTransaction(txHash);
@@ -387,12 +385,12 @@ describe(`Wallet should function in the browser`, () => {
387
385
 
388
386
  expect(
389
387
  localStorage.getItem(
390
- `tx-${aliceWallet.provider.network}-${txHash}-${false}-${false}`
388
+ `txraw-${aliceWallet.provider.network}-${txHash}`
391
389
  ) === null
392
390
  ).toBe(false);
393
391
  expect(
394
392
  typeof localStorage.getItem(
395
- `tx-${aliceWallet.provider.network}-${txHash}-${false}-${false}`
393
+ `txraw-${aliceWallet.provider.network}-${txHash}`
396
394
  ) === "string"
397
395
  ).toBe(true);
398
396
  expect(
@@ -400,13 +398,12 @@ describe(`Wallet should function in the browser`, () => {
400
398
  ).toBe("string");
401
399
 
402
400
  expect(
403
- localStorage.getItem(
404
- `tx-${aliceWallet.provider.network}-${txHash}-${true}-${false}`
405
- ) === null
401
+ localStorage.getItem(`tx-${aliceWallet.provider.network}-${txHash}`) ===
402
+ null
406
403
  ).toBe(false);
407
404
  expect(
408
405
  typeof localStorage.getItem(
409
- `tx-${aliceWallet.provider.network}-${txHash}-${true}-${false}`
406
+ `tx-${aliceWallet.provider.network}-${txHash}`
410
407
  ) === "string"
411
408
  ).toBe(true);
412
409
  expect(