@neurosity/sdk 6.5.0 → 6.5.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/dist/browser/neurosity.iife.js +731 -884
- package/dist/browser/neurosity.js +11 -11
- package/dist/browser/neurosity.js.map +1 -1
- package/dist/cjs/Neurosity.js +5 -1
- package/dist/cjs/utils/heartbeat.js +14 -4
- package/dist/electron/index.js +2 -2
- package/dist/electron/index.js.map +1 -1
- package/dist/esm/Neurosity.js +6 -2
- package/dist/esm/neurosity.mjs +731 -884
- package/dist/esm/utils/heartbeat.js +14 -4
- package/dist/examples/neurosity.iife.js +731 -884
- package/dist/examples/neurosity.js +11 -11
- package/dist/examples/neurosity.mjs +731 -884
- package/package.json +2 -2
package/dist/esm/Neurosity.js
CHANGED
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { combineLatest, of, throwError } from "rxjs";
|
|
11
|
-
import { ReplaySubject, firstValueFrom
|
|
11
|
+
import { ReplaySubject, firstValueFrom } from "rxjs";
|
|
12
12
|
import { map, startWith, switchMap } from "rxjs/operators";
|
|
13
13
|
import { distinctUntilChanged } from "rxjs/operators";
|
|
14
14
|
import isEqual from "fast-deep-equal";
|
|
@@ -132,7 +132,11 @@ export class Neurosity {
|
|
|
132
132
|
osHasBluetoothSupport: this._osHasBluetoothSupport()
|
|
133
133
|
}).pipe(switchMap(({ selectedDevice, osHasBluetoothSupport }) => {
|
|
134
134
|
if (!selectedDevice) {
|
|
135
|
-
return
|
|
135
|
+
return of({
|
|
136
|
+
connected: false,
|
|
137
|
+
streamingMode,
|
|
138
|
+
activeMode: STREAMING_TYPE.WIFI
|
|
139
|
+
});
|
|
136
140
|
}
|
|
137
141
|
const isUnableToUseBluetooth = this.isMissingBluetoothTransport || !osHasBluetoothSupport;
|
|
138
142
|
if (isUnableToUseBluetooth) {
|