hypercore-signing-request 3.0.1 → 3.0.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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +10 -2
package/index.js CHANGED
@@ -50,7 +50,7 @@ module.exports = {
50
50
  if (!core.opened) await core.ready()
51
51
 
52
52
  if (core.core.compat) throw new Error('Cannot generate signing requests for compat cores')
53
- if (cork.fork !== fork) throw new Error('Core should have the same fork')
53
+ if (core.fork !== fork) throw new Error('Core should have the same fork')
54
54
 
55
55
  return c.encode(Request, {
56
56
  version: VERSION,
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "hypercore-signing-request",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Generate shareable signing requests for Hypercore",
5
5
  "main": "index.js",
6
+ "scripts": {
7
+ "test": "standard && brittle test.js"
8
+ },
6
9
  "files": [
7
10
  "./index.js"
8
11
  ],
@@ -20,5 +23,10 @@
20
23
  "bugs": {
21
24
  "url": "https://github.com/holepunchto/hypercore-signing-request/issues"
22
25
  },
23
- "homepage": "https://github.com/holepunchto/hypercore-signing-request"
26
+ "homepage": "https://github.com/holepunchto/hypercore-signing-request",
27
+ "devDependencies": {
28
+ "brittle": "^3.4.0",
29
+ "random-access-memory": "^6.2.0",
30
+ "standard": "^17.1.0"
31
+ }
24
32
  }