homebridge-denon-tv 5.2.0 → 5.2.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/index.js CHANGED
@@ -1,4 +1,3 @@
1
- 'use strict';
2
1
  import { join } from 'path';
3
2
  import { mkdirSync, existsSync, writeFileSync } from 'fs';
4
3
  import MainZone from './src/mainzone.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Denon TV",
3
3
  "name": "homebridge-denon-tv",
4
- "version": "5.2.0",
4
+ "version": "5.2.2",
5
5
  "description": "Homebridge plugin to control Denon/Marantz AV Receivers.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -17,7 +17,9 @@
17
17
  "url": "https://github.com/grzegorz914/homebridge-denon-tv/issues"
18
18
  },
19
19
  "type": "module",
20
- "main": "index.js",
20
+ "exports": {
21
+ ".": "./index.js"
22
+ },
21
23
  "files": [
22
24
  "src",
23
25
  "index.js",
@@ -33,9 +35,9 @@
33
35
  },
34
36
  "dependencies": {
35
37
  "async-mqtt": "^2.6.3",
36
- "axios": "^1.7.8",
38
+ "axios": "^1.7.9",
37
39
  "fast-xml-parser": "^4.5.0",
38
- "express": "^4.21.1"
40
+ "express": "^4.21.2"
39
41
  },
40
42
  "keywords": [
41
43
  "homebridge",
package/src/denon.js CHANGED
@@ -1,6 +1,4 @@
1
- 'use strict';
2
- import { promises } from 'fs';
3
- const fsPromises = promises;
1
+ import { promises as fsPromises } from 'fs';
4
2
  import axios from 'axios';
5
3
  import { Agent } from 'https';
6
4
  import EventEmitter from 'events';
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  import EventEmitter from 'events';
3
2
 
4
3
  class ImpulseGenerator extends EventEmitter {
package/src/mainzone.js CHANGED
@@ -1,6 +1,4 @@
1
- 'use strict';
2
- import { promises } from 'fs';
3
- const fsPromises = promises;
1
+ import { promises as fsPromises } from 'fs';
4
2
  import EventEmitter from 'events';
5
3
  import Mqtt from './mqtt.js';
6
4
  import RestFul from './restful.js';
package/src/mqtt.js CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  import asyncMqtt from 'async-mqtt';
3
2
  const { connectAsync } = asyncMqtt;
4
3
  import EventEmitter from 'events';
package/src/restful.js CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  import express, { json } from 'express';
3
2
  import EventEmitter from 'events';
4
3
 
package/src/surround.js CHANGED
@@ -1,6 +1,4 @@
1
- 'use strict';
2
- import { promises } from 'fs';
3
- const fsPromises = promises;
1
+ import { promises as fsPromises } from 'fs';
4
2
  import EventEmitter from 'events';
5
3
  import Mqtt from './mqtt.js';
6
4
  import RestFul from './restful.js';
package/src/zone2.js CHANGED
@@ -1,6 +1,4 @@
1
- 'use strict';
2
- import { promises } from 'fs';
3
- const fsPromises = promises;
1
+ import { promises as fsPromises } from 'fs';
4
2
  import EventEmitter from 'events';
5
3
  import Mqtt from './mqtt.js';
6
4
  import RestFul from './restful.js';
package/src/zone3.js CHANGED
@@ -1,6 +1,4 @@
1
- 'use strict';
2
- import { promises } from 'fs';
3
- const fsPromises = promises;
1
+ import { promises as fsPromises } from 'fs';
4
2
  import EventEmitter from 'events';
5
3
  import Mqtt from './mqtt.js';
6
4
  import RestFul from './restful.js';