@cero-base/cero 0.8.0 → 0.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cero-base/cero",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "The ideal p2p API — everything is a handle, handles contain refs, refs contain rows.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -64,6 +64,10 @@
64
64
  "crypto": {
65
65
  "bare": "bare-crypto",
66
66
  "default": "crypto"
67
+ },
68
+ "abort-controller": {
69
+ "bare": "bare-abort-controller",
70
+ "default": "bare-abort-controller"
67
71
  }
68
72
  },
69
73
  "scripts": {
@@ -71,11 +75,12 @@
71
75
  "build:types": "rm -rf types && tsc -p .",
72
76
  "pretest": "npm run build:test",
73
77
  "prepublishOnly": "npm run build:types",
74
- "test": "ls test/*.test.js | xargs -P2 -n1 brittle-node"
78
+ "test": "ls test/*.test.js | xargs -P1 -n1 brittle-node"
75
79
  },
76
80
  "dependencies": {
77
- "@cero-base/core": "^0.8.0",
81
+ "@cero-base/core": "^0.8.2",
78
82
  "b4a": "^1.8.1",
83
+ "bare-abort-controller": "^1.1.2",
79
84
  "bare-crypto": "^1.13.7",
80
85
  "bare-fs": "^4.7.1",
81
86
  "bare-path": "^3.0.0",
@@ -1,3 +1,4 @@
1
+ import AbortController from 'abort-controller'
1
2
  import b4a from 'b4a'
2
3
  import Hypercore from 'hypercore'
3
4
  import { discoveryKey } from 'hypercore-crypto'
@@ -379,4 +379,5 @@ export type Child = Handle & HandleExtra;
379
379
  import ReadyResource from 'ready-resource';
380
380
  import { Database } from '@cero-base/core/database';
381
381
  import { Pairing } from '@cero-base/core/pairing';
382
+ import AbortController from 'abort-controller';
382
383
  import { Identity } from '@cero-base/core/identity';