homebridge-nanoleaf-multi 6.0.0 → 7.0.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.
- package/.gitlab-ci.yml +8 -2
- package/dist/platformFactory.js +5 -4
- package/dist/platformFactory.js.map +1 -1
- package/dist/types/Context.d.ts +2 -2
- package/package.json +10 -10
- package/src/platformFactory.ts +6 -5
- package/src/types/Context.ts +2 -2
package/.gitlab-ci.yml
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
image: node
|
|
2
|
-
|
|
3
1
|
stages:
|
|
4
2
|
- build
|
|
5
3
|
- publish
|
|
6
4
|
|
|
5
|
+
variables:
|
|
6
|
+
NODE_VERSION: '24'
|
|
7
|
+
|
|
8
|
+
image: node:${NODE_VERSION}
|
|
9
|
+
|
|
7
10
|
build:
|
|
8
11
|
stage: build
|
|
9
12
|
before_script:
|
|
@@ -17,6 +20,9 @@ publish:
|
|
|
17
20
|
- build
|
|
18
21
|
only:
|
|
19
22
|
- main
|
|
23
|
+
id_tokens:
|
|
24
|
+
NPM_ID_TOKEN:
|
|
25
|
+
aud: "npm:registry.npmjs.org"
|
|
20
26
|
before_script:
|
|
21
27
|
- npm install
|
|
22
28
|
- npm run build:production
|
package/dist/platformFactory.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const
|
|
12
|
+
const winston_1 = require("winston");
|
|
13
13
|
const helpers_for_homebridge_1 = require("helpers-for-homebridge");
|
|
14
14
|
const palette_kit_core_1 = require("@manganese/palette-kit-core");
|
|
15
15
|
const palette_kit_client_1 = require("@manganese/palette-kit-client");
|
|
@@ -21,9 +21,10 @@ exports.default = (homebridge) => {
|
|
|
21
21
|
constructor(homebridgeLog, configuration) {
|
|
22
22
|
this.configuration = configuration;
|
|
23
23
|
this.zones = new Map();
|
|
24
|
-
const log =
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const log = (0, winston_1.createLogger)({
|
|
25
|
+
transports: [
|
|
26
|
+
new helpers_for_homebridge_1.HomebridgeLogTransport(homebridgeLog),
|
|
27
|
+
],
|
|
27
28
|
});
|
|
28
29
|
const palette = new palette_kit_core_1.Palette({}, { log });
|
|
29
30
|
const paletteClient = new palette_kit_client_1.PaletteClient(configuration.paletteClient, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platformFactory.js","sourceRoot":"","sources":["../src/platformFactory.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"platformFactory.js","sourceRoot":"","sources":["../src/platformFactory.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAAuC;AAEvC,mEAAgE;AAChE,kEAAsD;AACtD,sEAA8D;AAG9D,+CAA6E;AAC7E,2CAAkD;AAClD,iCAA8B;AAE9B,kBAAe,CAAC,UAAe,EAAE,EAAE;IACjC,MAAM,QAAQ;QAIZ,YACE,aAAsB,EACb,aAAoC;YAApC,kBAAa,GAAb,aAAa,CAAuB;YAJ/C,UAAK,GAAG,IAAI,GAAG,EAA8B,CAAC;YAM5C,MAAM,GAAG,GAAG,IAAA,sBAAY,EAAC;gBACvB,UAAU,EAAE;oBACV,IAAI,+CAAsB,CAAC,aAAa,CAAC;iBAC1C;aACF,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,IAAI,0BAAO,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;YACzC,MAAM,aAAa,GAAG,IAAI,kCAAa,CACrC,aAAa,CAAC,aAAa,EAC3B;gBACE,GAAG;aACJ,EACD,OAAO,CACR,CAAC;YAEF,IAAI,CAAC,OAAO,GAAG;gBACb,UAAU;gBACV,GAAG;gBACH,OAAO;gBACP,aAAa;aACd,CAAC;YAEF,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO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xB,CAAC;SAAA;KACF;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"}
|
package/dist/types/Context.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Logger } from 'winston';
|
|
2
2
|
import { PaletteClient } from '@manganese/palette-kit-client';
|
|
3
3
|
import { Palette } from '@manganese/palette-kit-core';
|
|
4
4
|
export interface Context {
|
|
5
5
|
homebridge: any;
|
|
6
6
|
palette: Palette;
|
|
7
7
|
paletteClient: PaletteClient;
|
|
8
|
-
log:
|
|
8
|
+
log: Logger;
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "homebridge-nanoleaf-multi",
|
|
3
3
|
"displayName": "Homebridge Nanoleaf Multi",
|
|
4
4
|
"description": "Homebridge plugin for multi-color dynamic effects with Nanoleaf smart home products",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "7.0.0",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"homebridge-plugin"
|
|
8
8
|
],
|
|
@@ -24,29 +24,29 @@
|
|
|
24
24
|
"build:production": "NODE_ENV=production tsc"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": "
|
|
27
|
+
"node": ">=24.0.0",
|
|
28
28
|
"homebridge": "^1.6.0"
|
|
29
29
|
},
|
|
30
30
|
"main": "dist/index.js",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@manganese/core-kit-node": "^
|
|
33
|
-
"@manganese/palette-kit-client": "^
|
|
34
|
-
"@manganese/palette-kit-core": "^
|
|
32
|
+
"@manganese/core-kit-node": "^4.0.0",
|
|
33
|
+
"@manganese/palette-kit-client": "^5.0.0",
|
|
34
|
+
"@manganese/palette-kit-core": "^5.0.0",
|
|
35
35
|
"async-lock": "^1.2.4",
|
|
36
36
|
"axios": "^0.19.2",
|
|
37
37
|
"colors": "^1.4.0",
|
|
38
|
-
"helpers-for-homebridge": "^
|
|
39
|
-
"nanoleaf-client-multi": "^
|
|
38
|
+
"helpers-for-homebridge": "^6.0.0",
|
|
39
|
+
"nanoleaf-client-multi": "^4.0.0",
|
|
40
40
|
"rwlock": "^5.0.0",
|
|
41
|
-
"
|
|
41
|
+
"winston": "^3.19.0"
|
|
42
42
|
},
|
|
43
43
|
"prettier": "@manganese/prettier-configuration",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@manganese/prettier-configuration": "^1.0.5",
|
|
46
|
-
"@types/node": "^
|
|
46
|
+
"@types/node": "^24.11.0",
|
|
47
47
|
"@types/rwlock": "^5.0.3",
|
|
48
48
|
"homebridge": "^1.6.0",
|
|
49
49
|
"prettier": "^3.1.1",
|
|
50
|
-
"typescript": "^5.
|
|
50
|
+
"typescript": "^5.9.3"
|
|
51
51
|
}
|
|
52
52
|
}
|
package/src/platformFactory.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createLogger } from 'winston';
|
|
2
2
|
import { API, Logging } from 'homebridge';
|
|
3
|
-
import {
|
|
3
|
+
import { HomebridgeLogTransport } from 'helpers-for-homebridge';
|
|
4
4
|
import { Palette } from '@manganese/palette-kit-core';
|
|
5
5
|
import { PaletteClient } from '@manganese/palette-kit-client';
|
|
6
6
|
|
|
@@ -18,9 +18,10 @@ export default (homebridge: any) => {
|
|
|
18
18
|
homebridgeLog: Logging,
|
|
19
19
|
readonly configuration: PlatformConfiguration
|
|
20
20
|
) {
|
|
21
|
-
const log =
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
const log = createLogger({
|
|
22
|
+
transports: [
|
|
23
|
+
new HomebridgeLogTransport(homebridgeLog),
|
|
24
|
+
],
|
|
24
25
|
});
|
|
25
26
|
|
|
26
27
|
const palette = new Palette({}, { log });
|
package/src/types/Context.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Logger} from 'winston';
|
|
2
2
|
import { PaletteClient } from '@manganese/palette-kit-client';
|
|
3
3
|
import { Palette } from '@manganese/palette-kit-core';
|
|
4
4
|
|
|
@@ -6,5 +6,5 @@ export interface Context {
|
|
|
6
6
|
homebridge: any;
|
|
7
7
|
palette: Palette;
|
|
8
8
|
paletteClient: PaletteClient;
|
|
9
|
-
log:
|
|
9
|
+
log: Logger;
|
|
10
10
|
}
|