@sebbo2002/node-pyatv 6.0.0-develop.2 → 6.0.0-develop.3

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 (120) hide show
  1. package/dist/bin/check.cjs +10 -0
  2. package/dist/bin/check.cjs.map +1 -0
  3. package/dist/bin/check.d.ts +2 -1
  4. package/dist/bin/check.js +4 -45
  5. package/dist/bin/check.js.map +1 -1
  6. package/dist/chunk-TZSWUAOB.js +7 -0
  7. package/dist/chunk-TZSWUAOB.js.map +1 -0
  8. package/dist/lib/index.cjs +7 -0
  9. package/dist/lib/index.cjs.map +1 -0
  10. package/dist/lib/{device.d.ts → index.d.cts} +340 -4
  11. package/dist/lib/index.d.ts +806 -6
  12. package/dist/lib/index.js +1 -7
  13. package/dist/lib/index.js.map +1 -1
  14. package/package.json +18 -9
  15. package/.editorconfig +0 -12
  16. package/.eslintignore +0 -4
  17. package/.eslintrc +0 -60
  18. package/.mocharc.yml +0 -7
  19. package/.nycrc +0 -32
  20. package/CHANGELOG.md +0 -295
  21. package/check.sh +0 -5
  22. package/dist/examples/push.d.ts +0 -1
  23. package/dist/examples/push.js +0 -51
  24. package/dist/examples/push.js.map +0 -1
  25. package/dist/lib/device-event.d.ts +0 -44
  26. package/dist/lib/device-event.js +0 -47
  27. package/dist/lib/device-event.js.map +0 -1
  28. package/dist/lib/device-events.d.ts +0 -30
  29. package/dist/lib/device-events.js +0 -237
  30. package/dist/lib/device-events.js.map +0 -1
  31. package/dist/lib/device.js +0 -793
  32. package/dist/lib/device.js.map +0 -1
  33. package/dist/lib/fake-spawn.d.ts +0 -43
  34. package/dist/lib/fake-spawn.js +0 -85
  35. package/dist/lib/fake-spawn.js.map +0 -1
  36. package/dist/lib/instance.d.ts +0 -97
  37. package/dist/lib/instance.js +0 -208
  38. package/dist/lib/instance.js.map +0 -1
  39. package/dist/lib/tools.d.ts +0 -12
  40. package/dist/lib/tools.js +0 -319
  41. package/dist/lib/tools.js.map +0 -1
  42. package/dist/lib/types.d.ts +0 -204
  43. package/dist/lib/types.js +0 -108
  44. package/dist/lib/types.js.map +0 -1
  45. package/docs/coverage/base.css +0 -224
  46. package/docs/coverage/block-navigation.js +0 -87
  47. package/docs/coverage/cobertura-coverage.xml +0 -2889
  48. package/docs/coverage/device-event.ts.html +0 -256
  49. package/docs/coverage/device-events.ts.html +0 -970
  50. package/docs/coverage/device.ts.html +0 -2518
  51. package/docs/coverage/fake-spawn.ts.html +0 -448
  52. package/docs/coverage/favicon.png +0 -0
  53. package/docs/coverage/index.html +0 -221
  54. package/docs/coverage/index.ts.html +0 -172
  55. package/docs/coverage/instance.ts.html +0 -718
  56. package/docs/coverage/prettify.css +0 -1
  57. package/docs/coverage/prettify.js +0 -2
  58. package/docs/coverage/sort-arrow-sprite.png +0 -0
  59. package/docs/coverage/sorter.js +0 -196
  60. package/docs/coverage/tools.ts.html +0 -1222
  61. package/docs/coverage/types.ts.html +0 -775
  62. package/docs/reference/.nojekyll +0 -1
  63. package/docs/reference/assets/highlight.css +0 -99
  64. package/docs/reference/assets/main.js +0 -58
  65. package/docs/reference/assets/search.js +0 -1
  66. package/docs/reference/assets/style.css +0 -1280
  67. package/docs/reference/classes/NodePyATVDevice.html +0 -1266
  68. package/docs/reference/classes/NodePyATVDeviceEvent.html +0 -123
  69. package/docs/reference/classes/NodePyATVInstance.html +0 -240
  70. package/docs/reference/enums/NodePyATVDeviceState.html +0 -97
  71. package/docs/reference/enums/NodePyATVExecutableType.html +0 -69
  72. package/docs/reference/enums/NodePyATVKeys.html +0 -216
  73. package/docs/reference/enums/NodePyATVListenerState.html +0 -83
  74. package/docs/reference/enums/NodePyATVMediaType.html +0 -83
  75. package/docs/reference/enums/NodePyATVPowerState.html +0 -69
  76. package/docs/reference/enums/NodePyATVProtocol.html +0 -83
  77. package/docs/reference/enums/NodePyATVRepeatState.html +0 -76
  78. package/docs/reference/enums/NodePyATVShuffleState.html +0 -76
  79. package/docs/reference/index.html +0 -139
  80. package/docs/reference/interfaces/NodePyATVDeviceOptions.html +0 -232
  81. package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +0 -193
  82. package/docs/reference/interfaces/NodePyATVFindOptions.html +0 -124
  83. package/docs/reference/interfaces/NodePyATVGetStateOptions.html +0 -66
  84. package/docs/reference/interfaces/NodePyATVInstanceOptions.html +0 -113
  85. package/docs/reference/interfaces/NodePyATVService.html +0 -73
  86. package/docs/reference/interfaces/NodePyATVState.html +0 -164
  87. package/docs/reference/interfaces/NodePyATVVersionResponse.html +0 -73
  88. package/docs/reference/modules.html +0 -106
  89. package/docs/reference/types/NodePyATVEventValueType.html +0 -66
  90. package/docs/tests/assets/MaterialIcons-Regular.woff +0 -0
  91. package/docs/tests/assets/MaterialIcons-Regular.woff2 +0 -0
  92. package/docs/tests/assets/app.css +0 -14
  93. package/docs/tests/assets/app.js +0 -2
  94. package/docs/tests/assets/app.js.LICENSE.txt +0 -55
  95. package/docs/tests/assets/roboto-light-webfont.woff +0 -0
  96. package/docs/tests/assets/roboto-light-webfont.woff2 +0 -0
  97. package/docs/tests/assets/roboto-medium-webfont.woff +0 -0
  98. package/docs/tests/assets/roboto-medium-webfont.woff2 +0 -0
  99. package/docs/tests/assets/roboto-regular-webfont.woff +0 -0
  100. package/docs/tests/assets/roboto-regular-webfont.woff2 +0 -0
  101. package/docs/tests/index.html +0 -2
  102. package/docs/tests/mochawesome.json +0 -4823
  103. package/release.config.cjs +0 -51
  104. package/src/bin/check.ts +0 -41
  105. package/src/examples/push.ts +0 -46
  106. package/src/lib/device-event.ts +0 -57
  107. package/src/lib/device-events.ts +0 -295
  108. package/src/lib/device.ts +0 -811
  109. package/src/lib/fake-spawn.ts +0 -121
  110. package/src/lib/index.ts +0 -29
  111. package/src/lib/instance.ts +0 -211
  112. package/src/lib/tools.ts +0 -379
  113. package/src/lib/types.ts +0 -230
  114. package/test/device-event.ts +0 -88
  115. package/test/device-events.ts +0 -502
  116. package/test/device.ts +0 -826
  117. package/test/instance.ts +0 -428
  118. package/test/tools.ts +0 -301
  119. package/tsconfig.json +0 -19
  120. package/typedoc.json +0 -15
package/dist/lib/index.js CHANGED
@@ -1,8 +1,2 @@
1
- 'use strict';
2
- export { NodePyATVDeviceState, NodePyATVExecutableType, NodePyATVKeys, NodePyATVListenerState, NodePyATVMediaType, NodePyATVPowerState, NodePyATVProtocol, NodePyATVRepeatState, NodePyATVShuffleState } from './types.js';
3
- export { default as NodePyATVDeviceEvent } from './device-event.js';
4
- export { default as NodePyATVDeviceEvents } from './device-events.js';
5
- export { default as NodePyATVDevice } from './device.js';
6
- export { default as NodePyATVInstance } from './instance.js';
7
- export { default } from './instance.js';
1
+ import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m}from"../chunk-TZSWUAOB.js";export{l as NodePyATVDevice,j as NodePyATVDeviceEvent,k as NodePyATVDeviceEvents,d as NodePyATVDeviceState,a as NodePyATVExecutableType,m as NodePyATVInstance,h as NodePyATVKeys,i as NodePyATVListenerState,c as NodePyATVMediaType,g as NodePyATVPowerState,b as NodePyATVProtocol,e as NodePyATVRepeatState,f as NodePyATVShuffleState,m as default};
8
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAEH,oBAAoB,EAEpB,uBAAuB,EAKvB,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EAEpB,qBAAqB,EAGxB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAC,OAAO,IAAI,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAC,OAAO,IAAI,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,aAAa,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAE3D,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -13,32 +13,41 @@
13
13
  "@semantic-release/changelog": "^6.0.2",
14
14
  "@semantic-release/exec": "^6.0.3",
15
15
  "@semantic-release/git": "^10.0.1",
16
- "@semantic-release/npm": "^9.0.2",
16
+ "@semantic-release/npm": "^10.0.2",
17
17
  "@types/mocha": "^10.0.1",
18
18
  "@types/node": "^18.15.3",
19
19
  "@types/semver": "^7.3.13",
20
20
  "@typescript-eslint/eslint-plugin": "^5.54.1",
21
21
  "@typescript-eslint/parser": "^5.54.1",
22
22
  "c8": "^7.13.0",
23
- "eslint": "^8.35.0",
24
- "eslint-plugin-jsonc": "^2.6.0",
23
+ "eslint": "^8.36.0",
24
+ "eslint-plugin-jsonc": "^2.7.0",
25
25
  "esm": "^3.2.25",
26
26
  "license-checker": "^25.0.1",
27
27
  "mocha": "^10.2.0",
28
28
  "mochawesome": "^7.1.3",
29
- "semantic-release": "^20.1.1",
29
+ "semantic-release": "^20.1.3",
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.26",
34
- "typescript": "^4.9.5"
33
+ "tsup": "^6.7.0",
34
+ "typedoc": "^0.23.28",
35
+ "typescript": "^5.0.2"
35
36
  },
36
37
  "engines": {
37
38
  "node": "^14.8.0 || >=16.0.0"
38
39
  },
40
+ "exports": {
41
+ "import": "./dist/lib/index.js",
42
+ "require": "./dist/lib/index.cjs"
43
+ },
44
+ "files": [
45
+ "/dist"
46
+ ],
39
47
  "homepage": "https://github.com/sebbo2002/js-template#readme",
40
48
  "license": "MIT",
41
- "main": "./dist/lib/index.js",
49
+ "main": "./dist/lib/index.cjs",
50
+ "module": "./dist/lib/index.js",
42
51
  "name": "@sebbo2002/node-pyatv",
43
52
  "preferGlobal": false,
44
53
  "repository": {
@@ -46,7 +55,7 @@
46
55
  "url": "https://github.com/sebbo2002/node-pyatv.git"
47
56
  },
48
57
  "scripts": {
49
- "build": "tsc",
58
+ "build": "tsup && cp ./dist/lib/index.d.ts ./dist/lib/index.d.cts",
50
59
  "build-all": "./.github/workflows/build.sh",
51
60
  "check": "./check.sh",
52
61
  "coverage": "c8 mocha",
@@ -58,5 +67,5 @@
58
67
  "test": "mocha"
59
68
  },
60
69
  "type": "module",
61
- "version": "6.0.0-develop.2"
70
+ "version": "6.0.0-develop.3"
62
71
  }
package/.editorconfig DELETED
@@ -1,12 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 4
6
- end_of_line = lf
7
- charset = utf-8
8
- trim_trailing_whitespace = true
9
- insert_final_newline = true
10
-
11
- [*.yml]
12
- indent_size = 2
package/.eslintignore DELETED
@@ -1,4 +0,0 @@
1
- node_modules/**
2
- dist/**
3
- docs/**
4
- package-lock.json
package/.eslintrc DELETED
@@ -1,60 +0,0 @@
1
- {
2
- "env": {
3
- "node": true,
4
- "es6": true,
5
- "mocha": true
6
- },
7
- "extends": [
8
- "plugin:@typescript-eslint/eslint-recommended",
9
- "plugin:@typescript-eslint/recommended",
10
- "plugin:jsonc/recommended-with-json"
11
- ],
12
- "globals": {
13
- "Atomics": "readonly",
14
- "SharedArrayBuffer": "readonly"
15
- },
16
- "parser": "@typescript-eslint/parser",
17
- "parserOptions": {
18
- "ecmaVersion": 2020
19
- },
20
- "plugins": [
21
- "@typescript-eslint"
22
- ],
23
- "rules": {
24
- "semi": "error",
25
- "quotes": [
26
- "error",
27
- "single"
28
- ],
29
- "indent": [
30
- "error",
31
- 4
32
- ],
33
- "jsonc/sort-keys": "error"
34
- },
35
- "overrides": [
36
- {
37
- "files": [
38
- "test/**/*.ts"
39
- ],
40
- "rules": {
41
- "@typescript-eslint/ban-ts-ignore": "off",
42
- "@typescript-eslint/ban-ts-comment": "off"
43
- }
44
- },
45
- {
46
- "files": [
47
- "*.json"
48
- ],
49
- "parser": "jsonc-eslint-parser"
50
- },
51
- {
52
- "files": [
53
- "src/lib/device-events.ts"
54
- ],
55
- "rules": {
56
- "@typescript-eslint/ban-ts-comment": "off"
57
- }
58
- }
59
- ]
60
- }
package/.mocharc.yml DELETED
@@ -1,7 +0,0 @@
1
- loader:
2
- - ts-node/esm
3
- full-trace: true
4
- recursive: true
5
- extension:
6
- - ts
7
- experimental-modules: true
package/.nycrc DELETED
@@ -1,32 +0,0 @@
1
- {
2
- "cache": false,
3
- "check-coverage": true,
4
- "extension": [
5
- ".ts"
6
- ],
7
- "include": [
8
- "src/**/*.ts"
9
- ],
10
- "exclude": [
11
- "coverage/**",
12
- "node_modules/**",
13
- "src/examples/**",
14
- "src/bin/check.ts"
15
- ],
16
- "report-dir": "./docs/coverage/",
17
- "temp-directory": "./.nyc_output",
18
- "sourceMap": true,
19
- "reporter": [
20
- "text",
21
- "text-summary",
22
- "cobertura",
23
- "html"
24
- ],
25
- "all": true,
26
- "instrument": true,
27
- "branches": 80,
28
- "lines": 92,
29
- "functions": 90,
30
- "statements": 92,
31
- "per-file": true
32
- }
package/CHANGELOG.md DELETED
@@ -1,295 +0,0 @@
1
- # [6.0.0-develop.2](https://github.com/sebbo2002/node-pyatv/compare/v6.0.0-develop.1...v6.0.0-develop.2) (2023-03-21)
2
-
3
-
4
- ### Features
5
-
6
- * List and launch AppleTV Apps ([680d1de](https://github.com/sebbo2002/node-pyatv/commit/680d1deb83882a87b246e621cbce6237c9741825))
7
-
8
- # [6.0.0-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v5.1.2-develop.3...v6.0.0-develop.1) (2023-02-12)
9
-
10
-
11
- ### Build System
12
-
13
- * Deprecate node.js 12 ([426588b](https://github.com/sebbo2002/node-pyatv/commit/426588b4bb7bde2924bbc92006ca839e960872e1))
14
-
15
-
16
- ### BREAKING CHANGES
17
-
18
- * From now on, only node.js ^14.8.0 || >=16.0.0 are supported
19
-
20
- ## [5.1.2-develop.3](https://github.com/sebbo2002/node-pyatv/compare/v5.1.2-develop.2...v5.1.2-develop.3) (2022-12-07)
21
-
22
- ## [5.1.2-develop.2](https://github.com/sebbo2002/node-pyatv/compare/v5.1.2-develop.1...v5.1.2-develop.2) (2022-12-04)
23
-
24
- ## [5.1.2-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v5.1.1...v5.1.2-develop.1) (2022-12-04)
25
-
26
- ## [5.1.1](https://github.com/sebbo2002/node-pyatv/compare/v5.1.0...v5.1.1) (2022-10-18)
27
-
28
- ## [5.1.1-develop.2](https://github.com/sebbo2002/node-pyatv/compare/v5.1.1-develop.1...v5.1.1-develop.2) (2022-10-11)
29
-
30
- ## [5.1.1-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v5.1.0...v5.1.1-develop.1) (2022-09-12)
31
-
32
- # [5.1.0](https://github.com/sebbo2002/node-pyatv/compare/v5.0.0...v5.1.0) (2022-08-11)
33
-
34
-
35
- ### Features
36
-
37
- * Add Support for `device_info` and `device.services` ([1f60980](https://github.com/sebbo2002/node-pyatv/commit/1f6098006ec76a018e385f44c8567e465eedbbce))
38
-
39
- # [5.1.0-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v5.0.0...v5.1.0-develop.1) (2022-08-04)
40
-
41
-
42
- ### Features
43
-
44
- * Add Support for `device_info` and `device.services` ([1f60980](https://github.com/sebbo2002/node-pyatv/commit/1f6098006ec76a018e385f44c8567e465eedbbce))
45
-
46
- # [5.0.0](https://github.com/sebbo2002/node-pyatv/compare/v4.3.3...v5.0.0) (2022-07-25)
47
-
48
-
49
- ### Build System
50
-
51
- * Native ESM support ([7b86a4f](https://github.com/sebbo2002/node-pyatv/commit/7b86a4f1187c387a3a5792e1fb72d822b04e3631))
52
-
53
-
54
- ### BREAKING CHANGES
55
-
56
- * Only Support for node.js ^12.20.0 || >=14.13.1
57
-
58
- # [5.0.0-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v4.3.4-develop.4...v5.0.0-develop.1) (2022-07-17)
59
-
60
-
61
- ### Build System
62
-
63
- * Native ESM support ([7b86a4f](https://github.com/sebbo2002/node-pyatv/commit/7b86a4f1187c387a3a5792e1fb72d822b04e3631))
64
-
65
-
66
- ### BREAKING CHANGES
67
-
68
- * Only Support for node.js ^12.20.0 || >=14.13.1
69
-
70
- ## [4.3.4-develop.4](https://github.com/sebbo2002/node-pyatv/compare/v4.3.4-develop.3...v4.3.4-develop.4) (2022-06-10)
71
-
72
- ## [4.3.4-develop.3](https://github.com/sebbo2002/node-pyatv/compare/v4.3.4-develop.2...v4.3.4-develop.3) (2022-06-09)
73
-
74
- ## [4.3.4-develop.2](https://github.com/sebbo2002/node-pyatv/compare/v4.3.4-develop.1...v4.3.4-develop.2) (2022-06-05)
75
-
76
- ## [4.3.4-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v4.3.3...v4.3.4-develop.1) (2022-06-03)
77
-
78
- ## [4.3.3](https://github.com/sebbo2002/node-pyatv/compare/v4.3.2...v4.3.3) (2022-05-14)
79
-
80
- ## [4.3.3-develop.2](https://github.com/sebbo2002/node-pyatv/compare/v4.3.3-develop.1...v4.3.3-develop.2) (2022-05-14)
81
-
82
- ## [4.3.3-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v4.3.2...v4.3.3-develop.1) (2022-05-01)
83
-
84
- ## [4.3.2](https://github.com/sebbo2002/node-pyatv/compare/v4.3.1...v4.3.2) (2022-04-28)
85
-
86
- ## [4.3.2-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v4.3.1...v4.3.2-develop.1) (2022-04-13)
87
-
88
- ## [4.3.1](https://github.com/sebbo2002/node-pyatv/compare/v4.3.0...v4.3.1) (2022-03-31)
89
-
90
- ## [4.3.1-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v4.3.0...v4.3.1-develop.1) (2022-03-31)
91
-
92
- # [4.3.0](https://github.com/sebbo2002/node-pyatv/compare/v4.2.1...v4.3.0) (2022-01-24)
93
-
94
-
95
- ### Bug Fixes
96
-
97
- * Add `turnOn` and `turnOff` to NodePyATVKeys ([7497591](https://github.com/sebbo2002/node-pyatv/commit/7497591f0254687384004f04399b7a29eeba46d9))
98
- * Handle turnOn/turnOff in pressKey() correctly ([7e6eefa](https://github.com/sebbo2002/node-pyatv/commit/7e6eefa8df87d73c4129bdc6d24148fe8ea9976d))
99
-
100
-
101
- ### Features
102
-
103
- * Add `turnOn()` and `turnOff()` commands ([82e52d4](https://github.com/sebbo2002/node-pyatv/commit/82e52d417b191dc5001d0f332140b6746578062f))
104
-
105
- # [4.3.0-develop.3](https://github.com/sebbo2002/node-pyatv/compare/v4.3.0-develop.2...v4.3.0-develop.3) (2022-01-21)
106
-
107
-
108
- ### Bug Fixes
109
-
110
- * Handle turnOn/turnOff in pressKey() correctly ([7e6eefa](https://github.com/sebbo2002/node-pyatv/commit/7e6eefa8df87d73c4129bdc6d24148fe8ea9976d))
111
-
112
- # [4.3.0-develop.2](https://github.com/sebbo2002/node-pyatv/compare/v4.3.0-develop.1...v4.3.0-develop.2) (2022-01-21)
113
-
114
-
115
- ### Bug Fixes
116
-
117
- * Add `turnOn` and `turnOff` to NodePyATVKeys ([7497591](https://github.com/sebbo2002/node-pyatv/commit/7497591f0254687384004f04399b7a29eeba46d9))
118
-
119
- # [4.3.0-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v4.2.1...v4.3.0-develop.1) (2022-01-21)
120
-
121
-
122
- ### Features
123
-
124
- * Add `turnOn()` and `turnOff()` commands ([82e52d4](https://github.com/sebbo2002/node-pyatv/commit/82e52d417b191dc5001d0f332140b6746578062f))
125
-
126
- ## [4.2.1](https://github.com/sebbo2002/node-pyatv/compare/v4.2.0...v4.2.1) (2021-12-14)
127
-
128
-
129
- ### Bug Fixes
130
-
131
- * **CI:** Fix DockerHub container release ([01b7534](https://github.com/sebbo2002/node-pyatv/commit/01b753406d1f1ef24a949c7d7b946d99b779d013))
132
-
133
- ## [4.2.1-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v4.2.0...v4.2.1-develop.1) (2021-12-06)
134
-
135
-
136
- ### Bug Fixes
137
-
138
- * **CI:** Fix DockerHub container release ([01b7534](https://github.com/sebbo2002/node-pyatv/commit/01b753406d1f1ef24a949c7d7b946d99b779d013))
139
-
140
- # [4.2.0](https://github.com/sebbo2002/node-pyatv/compare/v4.1.0...v4.2.0) (2021-11-29)
141
-
142
-
143
- ### Features
144
-
145
- * Add previously inaccessible types and classes to exports ([9443c02](https://github.com/sebbo2002/node-pyatv/commit/9443c02aad02406d465b9ead91a6e88d8f171c44))
146
- * Handle pyatv exceptions for `getState()` and event listeners ([a695e11](https://github.com/sebbo2002/node-pyatv/commit/a695e113258d53dcc6aef5f06e6815b9045aa502)), closes [#105](https://github.com/sebbo2002/node-pyatv/issues/105)
147
-
148
- # [4.2.0-develop.2](https://github.com/sebbo2002/node-pyatv/compare/v4.2.0-develop.1...v4.2.0-develop.2) (2021-11-29)
149
-
150
-
151
- ### Features
152
-
153
- * Add previously inaccessible types and classes to exports ([9443c02](https://github.com/sebbo2002/node-pyatv/commit/9443c02aad02406d465b9ead91a6e88d8f171c44))
154
-
155
- # [4.2.0-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v4.1.1-develop.1...v4.2.0-develop.1) (2021-11-29)
156
-
157
-
158
- ### Features
159
-
160
- * Handle pyatv exceptions for `getState()` and event listeners ([a695e11](https://github.com/sebbo2002/node-pyatv/commit/a695e113258d53dcc6aef5f06e6815b9045aa502)), closes [#105](https://github.com/sebbo2002/node-pyatv/issues/105)
161
-
162
- ## [4.1.1-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v4.1.0...v4.1.1-develop.1) (2021-10-22)
163
-
164
- # [4.1.0](https://github.com/sebbo2002/node-pyatv/compare/v4.0.0...v4.1.0) (2021-10-09)
165
-
166
-
167
- ### Features
168
-
169
- * Add support for companion and raop credentials ([6c68d6b](https://github.com/sebbo2002/node-pyatv/commit/6c68d6b0741785eab8619a4c84b8c779a001b987))
170
-
171
- # [4.0.0-develop.4](https://github.com/sebbo2002/node-pyatv/compare/v4.0.0-develop.3...v4.0.0-develop.4) (2021-10-09)
172
-
173
-
174
- ### Features
175
-
176
- * Add support for companion and raop credentials ([6c68d6b](https://github.com/sebbo2002/node-pyatv/commit/6c68d6b0741785eab8619a4c84b8c779a001b987))
177
-
178
- # [4.0.0-develop.3](https://github.com/sebbo2002/node-pyatv/compare/v4.0.0-develop.2...v4.0.0-develop.3) (2021-06-18)
179
-
180
- # [4.0.0-develop.2](https://github.com/sebbo2002/node-pyatv/compare/v4.0.0-develop.1...v4.0.0-develop.2) (2021-06-08)
181
-
182
- # [4.0.0-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v3.1.1-develop.1...v4.0.0-develop.1) (2021-06-08)
183
-
184
-
185
- ### chore
186
-
187
- * Remove node.js 10 Support ([2b910c0](https://github.com/sebbo2002/node-pyatv/commit/2b910c09bc8a41085fc4472159494d8738d5521e))
188
-
189
-
190
- ### BREAKING CHANGES
191
-
192
- * Removed support for node.js v10
193
-
194
- ## [3.1.1-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v3.1.0...v3.1.1-develop.1) (2021-05-13)
195
-
196
- # [3.1.0](https://github.com/sebbo2002/node-pyatv/compare/v3.0.1...v3.1.0) (2021-05-13)
197
-
198
-
199
- ### Features
200
-
201
- * Use repo template (@sebbo2002/js-template) ([696a474](https://github.com/sebbo2002/node-pyatv/commit/696a4741fc36ed3976ec2ac41e422e3763aeeda8))
202
-
203
- # [3.1.0-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v3.0.1...v3.1.0-develop.1) (2021-05-13)
204
-
205
-
206
- ### Features
207
-
208
- * Use repo template (@sebbo2002/js-template) ([696a474](https://github.com/sebbo2002/node-pyatv/commit/696a4741fc36ed3976ec2ac41e422e3763aeeda8))
209
-
210
- ## [3.0.1](https://github.com/sebbo2002/node-pyatv/compare/v3.0.0...v3.0.1) (2020-12-15)
211
-
212
- # [3.0.0](https://github.com/sebbo2002/node-pyatv/compare/v2.0.0...v3.0.0) (2020-11-29)
213
-
214
-
215
- ### Bug Fixes
216
-
217
- * **CI:** Fix build environment variable ([da77a9c](https://github.com/sebbo2002/node-pyatv/commit/da77a9c2de96303cf2a14409469e6f954208bc37))
218
- * **CI:** Fix build.sh ([16088cf](https://github.com/sebbo2002/node-pyatv/commit/16088cf88dbb1d674323d32647e4db37da224059))
219
- * **CI:** Fix docs branch filter for release ([71b6879](https://github.com/sebbo2002/node-pyatv/commit/71b68797b89e411470bb5f3afdbb30d8a46e423c))
220
- * **CI:** Fix gh-pages branch name ([f2423ca](https://github.com/sebbo2002/node-pyatv/commit/f2423cad8b384f1d1b51d7ec13b2f01253238d10))
221
- * **CI:** Fix release process ([5249ce4](https://github.com/sebbo2002/node-pyatv/commit/5249ce49590cb732c4e729574e365534abb98fea))
222
- * **CI:** multibranch gh-pages ([4f3cb0e](https://github.com/sebbo2002/node-pyatv/commit/4f3cb0e290b1fdb51dcd2cf6d60ff5dd3d8875b2))
223
- * **CI:** multibranch gh-pages ([737c216](https://github.com/sebbo2002/node-pyatv/commit/737c216c1815f10fbb8f5c6b53210afa48131af1))
224
- * **CI:** multibranch gh-pages ([b82302a](https://github.com/sebbo2002/node-pyatv/commit/b82302a02d8b68678528cde5d437d2f7ced0f2c4))
225
- * postinstall file check ([39777b3](https://github.com/sebbo2002/node-pyatv/commit/39777b3d2ad0b19936ba5cd6b3d93111b667c9dd))
226
- * **module:** remove prepare step, use semantic release exec ([54f6e28](https://github.com/sebbo2002/node-pyatv/commit/54f6e2890e9f3906631efdf810b692f0216093ed))
227
-
228
-
229
- ### Continuous Integration
230
-
231
- * **release:** fix NPM_Token for deprecation ([5c988b9](https://github.com/sebbo2002/node-pyatv/commit/5c988b99ef3d254c8aa729b41a6d0321054e4f90))
232
-
233
-
234
- ### Features
235
-
236
- * **Events:** Add powerState events ([0890009](https://github.com/sebbo2002/node-pyatv/commit/0890009737be4c6dae1212336a643a919643eb8e))
237
- * Add semantic release ([2ff70d6](https://github.com/sebbo2002/node-pyatv/commit/2ff70d6375ee40f6f939b9a9997fcf9922d21480))
238
- * DeviceEvents ([e28fbf9](https://github.com/sebbo2002/node-pyatv/commit/e28fbf960f1ff58e245cfd0a0680cf9e5056c5e6))
239
- * Get Device State ([c2cfa60](https://github.com/sebbo2002/node-pyatv/commit/c2cfa60ad09f9b2165f9d2193ce257f01551bde1))
240
- * Instance, Device & Tools ([95c2b77](https://github.com/sebbo2002/node-pyatv/commit/95c2b77070136402a3166a849a8ef8b580ad2935))
241
-
242
-
243
- ### BREAKING CHANGES
244
-
245
- * **release:** as the merge wasn't marked as one successfully…
246
-
247
- # [2.0.0-develop.5](https://github.com/sebbo2002/node-pyatv/compare/v2.0.0-develop.4...v2.0.0-develop.5) (2020-11-15)
248
-
249
-
250
- ### Bug Fixes
251
-
252
- * **CI:** Fix docs branch filter for release ([71b6879](https://github.com/sebbo2002/node-pyatv/commit/71b68797b89e411470bb5f3afdbb30d8a46e423c))
253
-
254
- # [2.0.0-develop.4](https://github.com/sebbo2002/node-pyatv/compare/v2.0.0-develop.3...v2.0.0-develop.4) (2020-11-15)
255
-
256
-
257
- ### Bug Fixes
258
-
259
- * **CI:** Fix gh-pages branch name ([f2423ca](https://github.com/sebbo2002/node-pyatv/commit/f2423cad8b384f1d1b51d7ec13b2f01253238d10))
260
-
261
- # [2.0.0-develop.3](https://github.com/sebbo2002/node-pyatv/compare/v2.0.0-develop.2...v2.0.0-develop.3) (2020-11-15)
262
-
263
-
264
- ### Bug Fixes
265
-
266
- * **CI:** Fix release process ([5249ce4](https://github.com/sebbo2002/node-pyatv/commit/5249ce49590cb732c4e729574e365534abb98fea))
267
-
268
- # [2.0.0-develop.2](https://github.com/sebbo2002/node-pyatv/compare/v2.0.0-develop.1...v2.0.0-develop.2) (2020-11-15)
269
-
270
- # [2.0.0-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v1.1.0-develop.1...v2.0.0-develop.1) (2020-11-13)
271
-
272
-
273
- ### Continuous Integration
274
-
275
- * **release:** fix NPM_Token for deprecation ([5c988b9](https://github.com/sebbo2002/node-pyatv/commit/5c988b99ef3d254c8aa729b41a6d0321054e4f90))
276
-
277
-
278
- ### BREAKING CHANGES
279
-
280
- * **release:** as the merge wasn't marked as one successfully…
281
-
282
- # [1.1.0-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v1.0.0...v1.1.0-develop.1) (2020-11-13)
283
-
284
-
285
- ### Bug Fixes
286
-
287
- * postinstall file check ([39777b3](https://github.com/sebbo2002/node-pyatv/commit/39777b3d2ad0b19936ba5cd6b3d93111b667c9dd))
288
-
289
-
290
- ### Features
291
-
292
- * Add semantic release ([2ff70d6](https://github.com/sebbo2002/node-pyatv/commit/2ff70d6375ee40f6f939b9a9997fcf9922d21480))
293
- * DeviceEvents ([e28fbf9](https://github.com/sebbo2002/node-pyatv/commit/e28fbf960f1ff58e245cfd0a0680cf9e5056c5e6))
294
- * Get Device State ([c2cfa60](https://github.com/sebbo2002/node-pyatv/commit/c2cfa60ad09f9b2165f9d2193ce257f01551bde1))
295
- * Instance, Device & Tools ([95c2b77](https://github.com/sebbo2002/node-pyatv/commit/95c2b77070136402a3166a849a8ef8b580ad2935))
package/check.sh DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- if [ -f "./dist/bin/check.js" ]; then
4
- node "./dist/bin/check.js"
5
- fi
@@ -1 +0,0 @@
1
- export {};
@@ -1,51 +0,0 @@
1
- 'use strict';
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- // import pyatv, {NodePyATVDeviceEvent} from '@sebbo2002/node-pyatv';
12
- import pyatv from '../lib/index.js';
13
- (() => __awaiter(void 0, void 0, void 0, function* () {
14
- const devices = yield pyatv.find( /*{debug: true}*/);
15
- if (!devices.length) {
16
- throw new Error('Oh no. Unable to find any devices. If you find devices with atvremote, please enable the debug log.');
17
- }
18
- console.log(`🔍 Found ${devices.length} device${devices.length > 1 ? 's' : ''}:`);
19
- if (devices.length > 1) {
20
- for (const i in devices) {
21
- const device = devices[i];
22
- console.log(` - ${device.name} (${device.host})`);
23
- }
24
- }
25
- const device = devices.find(d => d.name === 'Wohnzimmer') || devices[0];
26
- console.log(`\n⚡️ Subscribe to live events on ${device.name} (press any key to stop)`);
27
- yield new Promise((resolve, reject) => {
28
- const errorListener = (error) => reject(error);
29
- const updateListener = (event) => {
30
- if (event instanceof Error || event.key === 'dateTime')
31
- return;
32
- console.log(` ${event.key}: ${event === null || event === void 0 ? void 0 : event.value} (was ${event === null || event === void 0 ? void 0 : event.oldValue})`);
33
- };
34
- const keyPressListener = () => {
35
- console.log('\n⏳ Remove event listeners…');
36
- device.off('update', updateListener);
37
- device.off('error', errorListener);
38
- process.stdin.off('data', keyPressListener);
39
- resolve(undefined);
40
- };
41
- device.on('update', updateListener);
42
- device.on('error', errorListener);
43
- process.stdin.on('data', keyPressListener);
44
- });
45
- console.log('🎉 Thank you');
46
- process.exit(0);
47
- }))().catch(error => {
48
- console.log(`🚨 Error: ${error.stack || error}`);
49
- process.exit(1);
50
- });
51
- //# sourceMappingURL=push.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"push.js","sourceRoot":"","sources":["../../src/examples/push.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;AAEb,qEAAqE;AACrE,OAAO,KAA6B,MAAM,iBAAiB,CAAC;AAE5D,CAAC,GAAS,EAAE;IACR,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,IAAI,EAAC,iBAAiB,CAAC,CAAC;IACpD,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,qGAAqG,CAAC,CAAC;KAC1H;IAED,OAAO,CAAC,GAAG,CAAC,YAAY,OAAO,CAAC,MAAM,UAAU,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAClF,IAAG,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;QACnB,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE;YACrB,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1B,OAAO,CAAC,GAAG,CAAC,QAAQ,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;SACvD;KACJ;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,oCAAoC,MAAM,CAAC,IAAI,0BAA0B,CAAC,CAAC;IACvF,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAClC,MAAM,aAAa,GAAG,CAAC,KAAmC,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7E,MAAM,cAAc,GAAG,CAAC,KAAmC,EAAE,EAAE;YAC3D,IAAG,KAAK,YAAY,KAAK,IAAI,KAAK,CAAC,GAAG,KAAK,UAAU;gBAAE,OAAO;YAC9D,OAAO,CAAC,GAAG,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,SAAS,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,GAAG,CAAC,CAAC;QAC7E,CAAC,CAAC;QACF,MAAM,gBAAgB,GAAG,GAAG,EAAE;YAC1B,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;YAC3C,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;YACrC,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;YACnC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;YAC5C,OAAO,CAAC,SAAS,CAAC,CAAC;QACvB,CAAC,CAAC;QAEF,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;QACpC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;QAClC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAC5B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAA,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACf,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,CAAC,KAAK,IAAI,KAAK,EAAE,CAAC,CAAC;IACjD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"}
@@ -1,44 +0,0 @@
1
- import { NodePyATVDevice } from '../lib/index.js';
2
- import type { NodePyATVEventValueType, NodePyATVStateIndex } from './types.js';
3
- export default class NodePyATVDeviceEvent {
4
- protected readonly values: {
5
- key: NodePyATVStateIndex;
6
- old: NodePyATVEventValueType;
7
- new: NodePyATVEventValueType;
8
- device: NodePyATVDevice;
9
- };
10
- /**
11
- *
12
- * @param values
13
- * @internal
14
- */
15
- constructor(values: {
16
- key: NodePyATVStateIndex;
17
- old: NodePyATVEventValueType;
18
- new: NodePyATVEventValueType;
19
- device: NodePyATVDevice;
20
- });
21
- /**
22
- * References the attribute name which was changed. So if the
23
- * title has been updated, this would be `title`.
24
- */
25
- get key(): NodePyATVStateIndex;
26
- /**
27
- * Holds the old value which was there
28
- * before the value was changed.
29
- */
30
- get oldValue(): NodePyATVEventValueType;
31
- /**
32
- * @alias value
33
- */
34
- get newValue(): NodePyATVEventValueType;
35
- /**
36
- * New, current value for `key`
37
- */
38
- get value(): NodePyATVEventValueType;
39
- /**
40
- * References the device instance this
41
- * event originates from
42
- */
43
- get device(): NodePyATVDevice;
44
- }
@@ -1,47 +0,0 @@
1
- 'use strict';
2
- export default class NodePyATVDeviceEvent {
3
- /**
4
- *
5
- * @param values
6
- * @internal
7
- */
8
- constructor(values) {
9
- this.values = Object.assign({}, values, {
10
- key: values.key
11
- });
12
- }
13
- /**
14
- * References the attribute name which was changed. So if the
15
- * title has been updated, this would be `title`.
16
- */
17
- get key() {
18
- return this.values.key;
19
- }
20
- /**
21
- * Holds the old value which was there
22
- * before the value was changed.
23
- */
24
- get oldValue() {
25
- return this.values.old;
26
- }
27
- /**
28
- * @alias value
29
- */
30
- get newValue() {
31
- return this.values.new;
32
- }
33
- /**
34
- * New, current value for `key`
35
- */
36
- get value() {
37
- return this.values.new;
38
- }
39
- /**
40
- * References the device instance this
41
- * event originates from
42
- */
43
- get device() {
44
- return this.values.device;
45
- }
46
- }
47
- //# sourceMappingURL=device-event.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"device-event.js","sourceRoot":"","sources":["../../src/lib/device-event.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAKb,MAAM,CAAC,OAAO,OAAO,oBAAoB;IAGrC;;;;OAIG;IACH,YAAY,MAAuH;QAC/H,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE;YACpC,GAAG,EAAE,MAAM,CAAC,GAA0B;SACzC,CAAC,CAAC;IACP,CAAC;IAED;;;OAGG;IACH,IAAI,GAAG;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACH,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACH,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9B,CAAC;CACJ"}