@lumiastream/tapo-cove 3.0.0 → 3.0.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": "@lumiastream/tapo-cove",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "private": false,
5
5
  "license": "GPL",
6
6
  "main": "dist/index.js",
@@ -8,13 +8,12 @@
8
8
  "types": "dist/index.d.ts",
9
9
  "scripts": {
10
10
  "build": "tsup src/index.ts --format cjs,esm --dts",
11
- "prepublishOnly": "npm run build",
12
11
  "lint": "tsc"
13
12
  },
14
13
  "dependencies": {
15
- "@lumiastream/fetch-cove": "^3.0.0",
16
- "@lumiastream/lumia-rgb-types": "^3.0.0",
17
- "@lumiastream/lumia-rgb-utils": "^3.0.0",
14
+ "@lumiastream/fetch-cove": "^3.0.1",
15
+ "@lumiastream/lumia-rgb-types": "^3.0.1",
16
+ "@lumiastream/lumia-rgb-utils": "^3.0.1",
18
17
  "axios": "*",
19
18
  "local-devices": "^4.0.0"
20
19
  },
@@ -24,5 +23,5 @@
24
23
  "tsup": "*",
25
24
  "typescript": "*"
26
25
  },
27
- "gitHead": "c29d83f1d1fa40b55241a4c6922d31af87dbe2ae"
26
+ "gitHead": "6e797b8bc117e56553edd91f8a5644bebd9fa23d"
28
27
  }
package/test/auth.test.ts DELETED
@@ -1,22 +0,0 @@
1
- import { discover, TapoApi } from '../src';
2
-
3
- const email = '';
4
- const password = '';
5
- const deviceId = '';
6
- const deviceIp = '';
7
- const token = '';
8
-
9
- (async () => {
10
- const api = new TapoApi({ token });
11
- // const token = await api.auth({ email, password });
12
- // console.log('token: ', token);
13
-
14
- const devices = await discover({ token });
15
- console.log('devices: ', devices);
16
-
17
- // const deviceKey = await TapoApi.loginDevice(email, password, '192.168.5.204');
18
- // const devices = await api.setup({ email, password, devices: [{ id: deviceId, ip: deviceIp }] });
19
- // console.log('devices: ', devices);
20
-
21
- // await api.sendPower({ device: { id: deviceId }, power: false });
22
- })();
@@ -1,9 +0,0 @@
1
- import { discover } from '../src';
2
-
3
- discover({ email: '', password: '' })
4
- .then((res) => {
5
- console.log('Devices found: ', res);
6
- })
7
- .catch((err) => {
8
- console.log('Discovery Err', err);
9
- });
@@ -1,17 +0,0 @@
1
- import { LightState, TapoApi } from '../src';
2
-
3
- const email = '';
4
- const password = '';
5
- const token = '';
6
- const deviceId = '';
7
- const deviceIp = '';
8
-
9
- (async () => {
10
- const api = new TapoApi({ token });
11
-
12
- const devices = await api.setup({ email, password, devices: [{ id: deviceId, ip: deviceIp }] });
13
- console.log('devices: ', devices);
14
-
15
- const state = new LightState({ rgb: { r: 200, g: 0, b: 10 }, brightness: 100 });
16
- await api.sendState({ device: { id: deviceId }, state });
17
- })();
package/test/plug.test.ts DELETED
@@ -1,16 +0,0 @@
1
- import { TapoApi } from '../src';
2
-
3
- const email = '';
4
- const password = '';
5
- const token = '';
6
- const deviceId = '';
7
- const deviceIp = '';
8
-
9
- (async () => {
10
- const api = new TapoApi({ token });
11
-
12
- const devices = await api.setup({ email, password, devices: [{ id: deviceId, ip: deviceIp }] });
13
- console.log('devices: ', devices);
14
-
15
- await api.sendPower({ device: { id: deviceId }, power: false });
16
- })();