@cero-base/cero 1.10.0 → 1.11.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cero-base/cero",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "The ideal p2p API — everything is a handle, handles contain refs, refs contain rows.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -95,7 +95,7 @@
95
95
  "test:node": "ls test/*.test.js | xargs -P1 -n1 brittle-node"
96
96
  },
97
97
  "dependencies": {
98
- "@cero-base/core": "^1.10.0",
98
+ "@cero-base/core": "^1.11.0",
99
99
  "b4a": "^1.8.1",
100
100
  "bare-abort-controller": "^1.1.2",
101
101
  "bare-crypto": "^1.15.3",
package/src/index.js CHANGED
@@ -196,7 +196,10 @@ export async function cero(dir, spec, opts = {}) {
196
196
  ? { backend: opts.bluetooth }
197
197
  : opts.bluetooth
198
198
  me.bluetooth = new Bluetooth(me, {
199
- backend: bt.backend || null,
199
+ // pass the backend through untouched: `|| null` turned an omitted
200
+ // backend (= lazy-load bare-bluetooth) into an explicit null
201
+ // (= disabled), leaving BLE 'unsupported' on every platform
202
+ backend: bt.backend,
200
203
  autoStart: bt.autoStart !== false,
201
204
  maxOutbound: bt.maxOutbound,
202
205
  maxInbound: bt.maxInbound