@soundretouch/api 1.0.0 → 1.0.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.
- package/README.md +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,13 +9,13 @@ As Bose announced the deprecation of the SoundTouch lineup and will stop cloud s
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npm i soundretouch
|
|
12
|
+
npm i @soundretouch/api
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
17
|
```ts
|
|
18
|
-
import { SoundTouchDevice } from 'soundretouch
|
|
18
|
+
import { SoundTouchDevice } from '@soundretouch/api'
|
|
19
19
|
|
|
20
20
|
const device = new SoundTouchDevice('192.168.1.67')
|
|
21
21
|
|
|
@@ -30,7 +30,7 @@ await device.keyPressAndRelease('PLAY')
|
|
|
30
30
|
## WebSocket Asynchronous Notifications
|
|
31
31
|
|
|
32
32
|
```ts
|
|
33
|
-
import { SoundTouchDevice } from 'soundretouch
|
|
33
|
+
import { SoundTouchDevice } from '@soundretouch/api'
|
|
34
34
|
|
|
35
35
|
const device = new SoundTouchDevice('192.168.1.67')
|
|
36
36
|
|
|
@@ -46,7 +46,7 @@ device.onVolumeUpdated((volume) => {
|
|
|
46
46
|
## Discovery
|
|
47
47
|
|
|
48
48
|
```ts
|
|
49
|
-
import { SoundTouchDiscovery } from 'soundretouch
|
|
49
|
+
import { SoundTouchDiscovery } from '@soundretouch/api'
|
|
50
50
|
|
|
51
51
|
const handle = SoundTouchDiscovery.start(async (device) => {
|
|
52
52
|
console.log('Found device at', device.host)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soundretouch/api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Unofficial TypeScript API wrapper for managing Bose SoundTouch devices.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bose",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "https://github.com/RemcoS2000/soundretouch-api.git"
|
|
22
|
+
"url": "git+https://github.com/RemcoS2000/soundretouch-api.git"
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"type": "module",
|