@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.
- package/CHANGELOG.md +14 -0
- package/LICENSE +1 -1
- package/dist/lib/device-events.d.ts +1 -1
- package/dist/lib/device-events.js +3 -0
- package/dist/lib/device-events.js.map +1 -1
- package/dist/lib/device.d.ts +1 -1
- package/dist/lib/fake-spawn.d.ts +3 -3
- package/dist/lib/tools.d.ts +2 -2
- package/dist/lib/types.d.ts +2 -2
- package/docs/coverage/cobertura-coverage.xml +142 -139
- package/docs/coverage/device-event.ts.html +1 -1
- package/docs/coverage/device-events.ts.html +17 -8
- package/docs/coverage/device.ts.html +1 -1
- package/docs/coverage/fake-spawn.ts.html +1 -1
- package/docs/coverage/index.html +15 -15
- package/docs/coverage/index.ts.html +1 -1
- package/docs/coverage/instance.ts.html +1 -1
- package/docs/coverage/tools.ts.html +5 -5
- package/docs/coverage/types.ts.html +2 -2
- package/docs/reference/assets/main.js +56 -52
- package/docs/reference/assets/search.js +1 -1
- package/docs/reference/assets/style.css +23 -0
- package/docs/reference/classes/NodePyATVDevice.html +74 -74
- package/docs/reference/classes/NodePyATVDeviceEvent.html +10 -10
- package/docs/reference/classes/NodePyATVInstance.html +14 -14
- package/docs/reference/enums/NodePyATVDeviceState.html +11 -11
- package/docs/reference/enums/NodePyATVExecutableType.html +7 -7
- package/docs/reference/enums/NodePyATVKeys.html +28 -28
- package/docs/reference/enums/NodePyATVListenerState.html +9 -9
- package/docs/reference/enums/NodePyATVMediaType.html +9 -9
- package/docs/reference/enums/NodePyATVPowerState.html +7 -7
- package/docs/reference/enums/NodePyATVProtocol.html +9 -9
- package/docs/reference/enums/NodePyATVRepeatState.html +8 -8
- package/docs/reference/enums/NodePyATVShuffleState.html +8 -8
- package/docs/reference/index.html +5 -5
- package/docs/reference/interfaces/NodePyATVDeviceOptions.html +27 -27
- package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +21 -21
- package/docs/reference/interfaces/NodePyATVFindOptions.html +14 -14
- package/docs/reference/interfaces/NodePyATVGetStateOptions.html +6 -6
- package/docs/reference/interfaces/NodePyATVInstanceOptions.html +12 -12
- package/docs/reference/interfaces/NodePyATVService.html +7 -7
- package/docs/reference/interfaces/NodePyATVState.html +20 -20
- package/docs/reference/interfaces/NodePyATVVersionResponse.html +7 -7
- package/docs/reference/modules.html +4 -4
- package/docs/reference/types/NodePyATVEventValueType.html +5 -5
- package/docs/tests/index.html +1 -1
- package/docs/tests/mochawesome.json +652 -652
- package/package.json +13 -13
- package/release.config.cjs +1 -6
- package/src/lib/device-events.ts +3 -0
- package/src/lib/tools.ts +1 -1
- package/src/lib/types.ts +1 -1
- 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
|
-
"@
|
|
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.
|
|
18
|
+
"@types/node": "^18.13.0",
|
|
19
19
|
"@types/semver": "^7.3.13",
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
21
|
-
"@typescript-eslint/parser": "^5.
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^5.51.0",
|
|
21
|
+
"@typescript-eslint/parser": "^5.51.0",
|
|
22
22
|
"c8": "^7.12.0",
|
|
23
|
-
"eslint": "^8.
|
|
24
|
-
"eslint-plugin-jsonc": "^2.
|
|
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.
|
|
27
|
+
"mocha": "^10.2.0",
|
|
28
28
|
"mochawesome": "^7.1.3",
|
|
29
|
-
"semantic-release": "^
|
|
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.
|
|
34
|
-
"typescript": "^4.9.
|
|
33
|
+
"typedoc": "^0.23.25",
|
|
34
|
+
"typescript": "^4.9.5"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": "^
|
|
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": "
|
|
61
|
+
"version": "6.0.0-develop.1"
|
|
62
62
|
}
|
package/release.config.cjs
CHANGED
|
@@ -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(
|
|
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'
|
package/src/lib/device-events.ts
CHANGED
|
@@ -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
package/src/lib/types.ts
CHANGED