wao 0.33.2 → 0.34.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.
@@ -9,7 +9,7 @@
9
9
  "deploy": "node scripts/deploy.js"
10
10
  },
11
11
  "dependencies": {
12
- "hbsig": "^0.0.6",
13
- "wao": "^0.33.2"
12
+ "hbsig": "^0.1.0",
13
+ "wao": "^0.34.0"
14
14
  }
15
15
  }
@@ -1,20 +1,19 @@
1
1
  import assert from "assert"
2
- import { describe, it, before, after, beforeEach } from "node:test"
2
+ import { describe, it, before, after } from "node:test"
3
3
  import { HyperBEAM } from "wao/test"
4
4
 
5
5
  /*
6
6
  The link to your HyperBEAM node directory.
7
7
  It's relative to your app root folder, not the test folder.
8
8
  */
9
- const cwd = "../HyperBEAM"
10
-
11
9
  describe("HyperBEAM", function () {
12
10
  let hbeam, hb
13
11
 
14
12
  // start a hyperbeam node and wait till it's ready
15
- before(async () => (hbeam = await new HyperBEAM({ cwd }).ready()))
16
-
17
- beforeEach(async () => (hb = hbeam.hb))
13
+ before(async () => {
14
+ hbeam = await new HyperBEAM({ reset: true }).ready()
15
+ hb = hbeam.hb
16
+ })
18
17
 
19
18
  // kill the node after testing
20
19
  after(async () => hbeam.kill())
@@ -9,7 +9,7 @@
9
9
  "deploy": "node scripts/deploy.js"
10
10
  },
11
11
  "dependencies": {
12
- "hbsig": "^0.0.6",
13
- "wao": "^0.33.2"
12
+ "hbsig": "^0.1.0",
13
+ "wao": "^0.34.0"
14
14
  }
15
15
  }
@@ -1,20 +1,19 @@
1
1
  import assert from "assert"
2
- import { describe, it, before, after, beforeEach } from "node:test"
2
+ import { describe, it, before, after } from "node:test"
3
3
  import { HyperBEAM } from "wao/test"
4
4
 
5
5
  /*
6
6
  The link to your HyperBEAM node directory.
7
7
  It's relative to your app root folder, not the test folder.
8
8
  */
9
- const cwd = "../HyperBEAM"
10
-
11
9
  describe("HyperBEAM", function () {
12
10
  let hbeam, hb
13
11
 
14
12
  // start a hyperbeam node and wait till it's ready
15
- before(async () => (hbeam = await new HyperBEAM({ cwd }).ready()))
16
-
17
- beforeEach(async () => (hb = hbeam.hb))
13
+ before(async () => {
14
+ hbeam = await new HyperBEAM({ reset: true }).ready()
15
+ hb = hbeam.hb
16
+ })
18
17
 
19
18
  // kill the node after testing
20
19
  after(async () => hbeam.kill())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wao",
3
- "version": "0.33.2",
3
+ "version": "0.34.0",
4
4
  "bin": {
5
5
  "wao": "./cjs/cli.js",
6
6
  "wao-esm": "./esm/cli.js"
@@ -48,7 +48,7 @@
48
48
  "express": "^5.1.0",
49
49
  "fast-sha256": "^1.3.0",
50
50
  "graphql": "^16.10.0",
51
- "hbsig": "^0.0.6",
51
+ "hbsig": "^0.1.0",
52
52
  "http-message-signatures": "^1.0.4",
53
53
  "lmdb": "^3.2.2",
54
54
  "localforage": "^1.10.0",