autopass 2.2.0 → 2.2.1

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 (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +1 -1
  3. package/package.json +14 -14
package/README.md CHANGED
@@ -71,7 +71,7 @@ Get all entries.
71
71
 
72
72
  Add new entry
73
73
 
74
- #### `await pass.addFIle(name, buffer)`
74
+ #### `await pass.addFile(name, buffer)`
75
75
 
76
76
  Add new file
77
77
 
package/index.js CHANGED
@@ -269,7 +269,7 @@ class Autopass extends ReadyResource {
269
269
  onadd: async (candidate) => {
270
270
  const id = candidate.inviteId
271
271
  const inv = await this.base.view.findOne('@autopass/invite', {})
272
- if (!b4a.equals(inv.id, id)) {
272
+ if (inv === null || !b4a.equals(inv.id, id)) {
273
273
  return
274
274
  }
275
275
  candidate.open(inv.publicKey)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autopass",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "standard && brittle test.js"
@@ -22,22 +22,22 @@
22
22
  "brittle": "^3.7.0",
23
23
  "hyperdht": "^6.20.1",
24
24
  "standard": "^17.1.2",
25
- "test-tmp": "^1.3.0"
25
+ "test-tmp": "^1.3.0",
26
+ "bare-fs": "^4.1.2",
27
+ "bare-process": "^4.2.1"
26
28
  },
27
29
  "dependencies": {
28
- "autobase": "^7.0.34",
30
+ "autobase": "^7.16.2",
29
31
  "b4a": "^1.6.7",
30
- "bare-fs": "^4.1.2",
31
- "bare-process": "^4.2.1",
32
32
  "blind-pairing": "^2.3.1",
33
- "compact-encoding": "^2.16.0",
34
- "corestore": "^7.0.7",
35
- "hyperbee": "^2.22.2",
36
- "hypercore": "^11.0.9",
37
- "hyperdb": "^4.9.4",
38
- "hyperdispatch": "^1.0.2",
39
- "hyperschema": "^1.10.4",
40
- "hyperswarm": "^4.8.4",
41
- "ready-resource": "^1.1.1"
33
+ "compact-encoding": "^2.16.1",
34
+ "corestore": "^7.4.5",
35
+ "hyperbee": "^2.24.3",
36
+ "hypercore": "^11.11.1",
37
+ "hyperdb": "^4.15.2",
38
+ "hyperdispatch": "^1.4.0",
39
+ "hyperschema": "^1.13.0",
40
+ "hyperswarm": "^4.12.1",
41
+ "ready-resource": "^1.1.2"
42
42
  }
43
43
  }