@sebbo2002/node-pyatv 5.1.2-develop.2 → 6.0.0-develop.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE +1 -1
  3. package/dist/lib/device-events.d.ts +1 -1
  4. package/dist/lib/device-events.js +3 -0
  5. package/dist/lib/device-events.js.map +1 -1
  6. package/dist/lib/device.d.ts +1 -1
  7. package/dist/lib/fake-spawn.d.ts +3 -3
  8. package/dist/lib/tools.d.ts +2 -2
  9. package/dist/lib/types.d.ts +2 -2
  10. package/docs/coverage/cobertura-coverage.xml +142 -139
  11. package/docs/coverage/device-event.ts.html +1 -1
  12. package/docs/coverage/device-events.ts.html +17 -8
  13. package/docs/coverage/device.ts.html +1 -1
  14. package/docs/coverage/fake-spawn.ts.html +1 -1
  15. package/docs/coverage/index.html +15 -15
  16. package/docs/coverage/index.ts.html +1 -1
  17. package/docs/coverage/instance.ts.html +1 -1
  18. package/docs/coverage/tools.ts.html +5 -5
  19. package/docs/coverage/types.ts.html +2 -2
  20. package/docs/reference/assets/main.js +56 -52
  21. package/docs/reference/assets/search.js +1 -1
  22. package/docs/reference/assets/style.css +23 -0
  23. package/docs/reference/classes/NodePyATVDevice.html +74 -74
  24. package/docs/reference/classes/NodePyATVDeviceEvent.html +10 -10
  25. package/docs/reference/classes/NodePyATVInstance.html +14 -14
  26. package/docs/reference/enums/NodePyATVDeviceState.html +11 -11
  27. package/docs/reference/enums/NodePyATVExecutableType.html +7 -7
  28. package/docs/reference/enums/NodePyATVKeys.html +28 -28
  29. package/docs/reference/enums/NodePyATVListenerState.html +9 -9
  30. package/docs/reference/enums/NodePyATVMediaType.html +9 -9
  31. package/docs/reference/enums/NodePyATVPowerState.html +7 -7
  32. package/docs/reference/enums/NodePyATVProtocol.html +9 -9
  33. package/docs/reference/enums/NodePyATVRepeatState.html +8 -8
  34. package/docs/reference/enums/NodePyATVShuffleState.html +8 -8
  35. package/docs/reference/index.html +5 -5
  36. package/docs/reference/interfaces/NodePyATVDeviceOptions.html +27 -27
  37. package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +21 -21
  38. package/docs/reference/interfaces/NodePyATVFindOptions.html +14 -14
  39. package/docs/reference/interfaces/NodePyATVGetStateOptions.html +6 -6
  40. package/docs/reference/interfaces/NodePyATVInstanceOptions.html +12 -12
  41. package/docs/reference/interfaces/NodePyATVService.html +7 -7
  42. package/docs/reference/interfaces/NodePyATVState.html +20 -20
  43. package/docs/reference/interfaces/NodePyATVVersionResponse.html +7 -7
  44. package/docs/reference/modules.html +4 -4
  45. package/docs/reference/types/NodePyATVEventValueType.html +5 -5
  46. package/docs/tests/index.html +1 -1
  47. package/docs/tests/mochawesome.json +652 -652
  48. package/package.json +13 -13
  49. package/release.config.cjs +1 -6
  50. package/src/lib/device-events.ts +3 -0
  51. package/src/lib/tools.ts +1 -1
  52. package/src/lib/types.ts +1 -1
  53. package/tsconfig.json +1 -1
package/package.json CHANGED
@@ -9,32 +9,32 @@
9
9
  },
10
10
  "description": "A lightweight wrapper around pyatv…",
11
11
  "devDependencies": {
12
- "@amanda-mitchell/semantic-release-npm-multiple": "^3.5.0",
13
- "@qiwi/semantic-release-gh-pages-plugin": "^5.2.3",
12
+ "@qiwi/semantic-release-gh-pages-plugin": "^5.2.4",
14
13
  "@semantic-release/changelog": "^6.0.2",
15
14
  "@semantic-release/exec": "^6.0.3",
16
15
  "@semantic-release/git": "^10.0.1",
16
+ "@semantic-release/npm": "^9.0.2",
17
17
  "@types/mocha": "^10.0.1",
18
- "@types/node": "^18.11.10",
18
+ "@types/node": "^18.13.0",
19
19
  "@types/semver": "^7.3.13",
20
- "@typescript-eslint/eslint-plugin": "^5.45.0",
21
- "@typescript-eslint/parser": "^5.45.0",
20
+ "@typescript-eslint/eslint-plugin": "^5.51.0",
21
+ "@typescript-eslint/parser": "^5.51.0",
22
22
  "c8": "^7.12.0",
23
- "eslint": "^8.29.0",
24
- "eslint-plugin-jsonc": "^2.5.0",
23
+ "eslint": "^8.34.0",
24
+ "eslint-plugin-jsonc": "^2.6.0",
25
25
  "esm": "^3.2.25",
26
26
  "license-checker": "^25.0.1",
27
- "mocha": "^10.1.0",
27
+ "mocha": "^10.2.0",
28
28
  "mochawesome": "^7.1.3",
29
- "semantic-release": "^19.0.5",
29
+ "semantic-release": "^20.1.0",
30
30
  "semantic-release-license": "^1.0.3",
31
31
  "source-map-support": "^0.5.21",
32
32
  "ts-node": "^10.9.1",
33
- "typedoc": "^0.23.21",
34
- "typescript": "^4.9.3"
33
+ "typedoc": "^0.23.25",
34
+ "typescript": "^4.9.5"
35
35
  },
36
36
  "engines": {
37
- "node": "^12.20.0 || >=14.13.1"
37
+ "node": "^14.8.0 || >=16.0.0"
38
38
  },
39
39
  "homepage": "https://github.com/sebbo2002/js-template#readme",
40
40
  "license": "MIT",
@@ -58,5 +58,5 @@
58
58
  "test": "mocha"
59
59
  },
60
60
  "type": "module",
61
- "version": "5.1.2-develop.2"
61
+ "version": "6.0.0-develop.1"
62
62
  }
@@ -25,12 +25,7 @@ configuration.plugins.push('@semantic-release/changelog');
25
25
 
26
26
  configuration.plugins.push('semantic-release-license');
27
27
 
28
- configuration.plugins.push(['@amanda-mitchell/semantic-release-npm-multiple', {
29
- 'registries': {
30
- 'github': {},
31
- 'public': {}
32
- }
33
- }]);
28
+ configuration.plugins.push('@semantic-release/npm');
34
29
 
35
30
  configuration.plugins.push(['@semantic-release/exec', {
36
31
  'prepareCmd': './.github/workflows/build.sh'
@@ -134,6 +134,9 @@ export default class NodePyATVDeviceEvents extends EventEmitter {
134
134
  const listenStart = new Date().getTime();
135
135
  const parameters = getParamters(this.options);
136
136
  this.pyatv = execute(reqId, NodePyATVExecutableType.atvscript, [...parameters, 'push_updates'], this.options);
137
+ if(!this.pyatv) {
138
+ throw new Error('Unable to start listener: Unable to start atvscript');
139
+ }
137
140
 
138
141
  const onError = (error: Error) => {
139
142
  debug(reqId, `Got error from child process: ${error}`, this.options);
package/src/lib/tools.ts CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  } from './types.js';
12
12
 
13
13
  import {ChildProcess, spawn, SpawnOptions} from 'child_process';
14
- import {FakeChildProcess} from './fake-spawn';
14
+ import {FakeChildProcess} from './fake-spawn.js';
15
15
 
16
16
  const requestIds: string[] = [];
17
17
 
package/src/lib/types.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import {ChildProcess, SpawnOptions} from 'child_process';
2
- import {FakeChildProcess} from './fake-spawn';
2
+ import {FakeChildProcess} from './fake-spawn.js';
3
3
 
4
4
  export enum NodePyATVExecutableType {
5
5
  atvremote = 'atvremote',
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "declaration": true,
4
4
  "esModuleInterop": true,
5
5
  "module": "es2020",
6
- "moduleResolution": "node",
6
+ "moduleResolution": "node16",
7
7
  "outDir": "./dist",
8
8
  "sourceMap": true,
9
9
  "strict": true,