@neurodevs/node-lsl 14.0.0 → 14.1.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 (57) hide show
  1. package/build/__tests__/impl/LiblslAdapter.test.d.ts +7 -5
  2. package/build/__tests__/impl/LiblslAdapter.test.js +27 -10
  3. package/build/__tests__/impl/LiblslAdapter.test.js.map +1 -1
  4. package/build/__tests__/impl/LslEventMarkerOutlet.test.d.ts +1 -0
  5. package/build/__tests__/impl/LslEventMarkerOutlet.test.js +7 -0
  6. package/build/__tests__/impl/LslEventMarkerOutlet.test.js.map +1 -1
  7. package/build/__tests__/impl/LslStreamInfo.test.d.ts +1 -0
  8. package/build/__tests__/impl/LslStreamInfo.test.js +8 -1
  9. package/build/__tests__/impl/LslStreamInfo.test.js.map +1 -1
  10. package/build/__tests__/impl/LslStreamInlet.test.d.ts +1 -0
  11. package/build/__tests__/impl/LslStreamInlet.test.js +8 -1
  12. package/build/__tests__/impl/LslStreamInlet.test.js.map +1 -1
  13. package/build/__tests__/impl/LslStreamOutlet.test.d.ts +1 -0
  14. package/build/__tests__/impl/LslStreamOutlet.test.js +8 -0
  15. package/build/__tests__/impl/LslStreamOutlet.test.js.map +1 -1
  16. package/build/impl/LiblslAdapter.d.ts +8 -2
  17. package/build/impl/LiblslAdapter.js +10 -1
  18. package/build/impl/LiblslAdapter.js.map +1 -1
  19. package/build/impl/LslEventMarkerOutlet.d.ts +2 -0
  20. package/build/impl/LslEventMarkerOutlet.js +3 -0
  21. package/build/impl/LslEventMarkerOutlet.js.map +1 -1
  22. package/build/impl/LslStreamInfo.d.ts +11 -9
  23. package/build/impl/LslStreamInfo.js +17 -14
  24. package/build/impl/LslStreamInfo.js.map +1 -1
  25. package/build/impl/LslStreamInlet.d.ts +3 -0
  26. package/build/impl/LslStreamInlet.js +11 -1
  27. package/build/impl/LslStreamInlet.js.map +1 -1
  28. package/build/impl/LslStreamOutlet.d.ts +18 -17
  29. package/build/impl/LslStreamOutlet.js +61 -65
  30. package/build/impl/LslStreamOutlet.js.map +1 -1
  31. package/build/impl/LslWebSocketBridge.d.ts +1 -1
  32. package/build/impl/LslWebSocketBridge.js +2 -2
  33. package/build/impl/LslWebSocketBridge.js.map +1 -1
  34. package/build/testDoubles/Liblsl/FakeLiblsl.d.ts +3 -1
  35. package/build/testDoubles/Liblsl/FakeLiblsl.js +4 -0
  36. package/build/testDoubles/Liblsl/FakeLiblsl.js.map +1 -1
  37. package/build/testDoubles/StreamInfo/FakeStreamInfo.d.ts +2 -0
  38. package/build/testDoubles/StreamInfo/FakeStreamInfo.js +5 -0
  39. package/build/testDoubles/StreamInfo/FakeStreamInfo.js.map +1 -1
  40. package/build/testDoubles/StreamInfo/SpyStreamInfo.d.ts +1 -1
  41. package/build/testDoubles/StreamInfo/SpyStreamInfo.js +2 -2
  42. package/build/testDoubles/StreamInfo/SpyStreamInfo.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/__tests__/impl/LiblslAdapter.test.ts +27 -5
  45. package/src/__tests__/impl/LslEventMarkerOutlet.test.ts +11 -0
  46. package/src/__tests__/impl/LslStreamInfo.test.ts +12 -1
  47. package/src/__tests__/impl/LslStreamInlet.test.ts +12 -1
  48. package/src/__tests__/impl/LslStreamOutlet.test.ts +12 -0
  49. package/src/impl/LiblslAdapter.ts +20 -4
  50. package/src/impl/LslEventMarkerOutlet.ts +5 -0
  51. package/src/impl/LslStreamInfo.ts +22 -17
  52. package/src/impl/LslStreamInlet.ts +14 -1
  53. package/src/impl/LslStreamOutlet.ts +94 -85
  54. package/src/impl/LslWebSocketBridge.ts +2 -2
  55. package/src/testDoubles/Liblsl/FakeLiblsl.ts +6 -0
  56. package/src/testDoubles/StreamInfo/FakeStreamInfo.ts +7 -0
  57. package/src/testDoubles/StreamInfo/SpyStreamInfo.ts +2 -2
@@ -3,17 +3,24 @@ import { StreamInfo, StreamInfoOptions } from '../../impl/LslStreamInfo.js'
3
3
 
4
4
  export default class FakeStreamInfo implements StreamInfo {
5
5
  public static callsToConstructor: StreamInfoOptions[] = []
6
+ public static numCallsToDestroy = 0
7
+
6
8
  public static boundStreamInfo = {} as BoundStreamInfo
7
9
 
8
10
  public constructor(options: StreamInfoOptions) {
9
11
  FakeStreamInfo.callsToConstructor.push(options)
10
12
  }
11
13
 
14
+ public destroy() {
15
+ FakeStreamInfo.numCallsToDestroy++
16
+ }
17
+
12
18
  public get boundStreamInfo() {
13
19
  return FakeStreamInfo.boundStreamInfo
14
20
  }
15
21
 
16
22
  public static resetTestDouble() {
17
23
  FakeStreamInfo.callsToConstructor = []
24
+ FakeStreamInfo.numCallsToDestroy = 0
18
25
  }
19
26
  }
@@ -5,8 +5,8 @@ export default class SpyStreamInfo extends LslStreamInfo {
5
5
  super(options)
6
6
  }
7
7
 
8
- public getStreamInfo() {
9
- return this.streamInfo
8
+ public getBoundInfo() {
9
+ return this.boundInfo
10
10
  }
11
11
 
12
12
  public getName() {