mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
Plex.tv works!!!!
This commit is contained in:
@@ -12,9 +12,9 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lukehagar/plexjs": "^0.0.22",
|
"@lukehagar/plexjs": "^0.0.25",
|
||||||
"@types/jest": "^29.5.1",
|
"@types/jest": "^29.5.1",
|
||||||
"@types/node": "^18.6.1",
|
"@types/node": "^18.15.12",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
||||||
"@typescript-eslint/parser": "^5.31.0",
|
"@typescript-eslint/parser": "^5.31.0",
|
||||||
"dotenv": "^16.0.3",
|
"dotenv": "^16.0.3",
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
import {
|
import { Configuration, ServerApi, PlexTvApi } from "@lukehagar/plexjs";
|
||||||
Configuration,
|
|
||||||
ServerApi,
|
|
||||||
DevicesApi,
|
|
||||||
PlexTvApi,
|
|
||||||
} from "@lukehagar/plexjs";
|
|
||||||
import dotenv from "dotenv";
|
import dotenv from "dotenv";
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|
||||||
@@ -12,8 +7,8 @@ const config = new Configuration({
|
|||||||
plexToken: process.env.PLEX_TOKEN,
|
plexToken: process.env.PLEX_TOKEN,
|
||||||
});
|
});
|
||||||
|
|
||||||
// new ServerApi(config).getServerCapabilities().then((resp) => console.log(resp));
|
new ServerApi(config).getServerCapabilities().then((resp) => console.log(resp));
|
||||||
|
|
||||||
// new DevicesApi(config).getDevices().then((resp) => console.log(resp));
|
new PlexTvApi(config).getDevices().then((resp) => console.log(resp));
|
||||||
|
|
||||||
new PlexTvApi(config).getUserDetails().then((resp) => console.log(resp));
|
new PlexTvApi(config).getUserDetails().then((resp) => console.log(resp));
|
||||||
|
|||||||
@@ -592,10 +592,10 @@
|
|||||||
"@jridgewell/resolve-uri" "3.1.0"
|
"@jridgewell/resolve-uri" "3.1.0"
|
||||||
"@jridgewell/sourcemap-codec" "1.4.14"
|
"@jridgewell/sourcemap-codec" "1.4.14"
|
||||||
|
|
||||||
"@lukehagar/plexjs@^0.0.22":
|
"@lukehagar/plexjs@^0.0.25":
|
||||||
version "0.0.22"
|
version "0.0.25"
|
||||||
resolved "https://registry.yarnpkg.com/@lukehagar/plexjs/-/plexjs-0.0.22.tgz#a87b9df5efee2fd553ec1bb7fe6a2b71dfdd8c27"
|
resolved "https://registry.yarnpkg.com/@lukehagar/plexjs/-/plexjs-0.0.25.tgz#198708e8599328bec31e83c7b1e45523cbb24198"
|
||||||
integrity sha512-0XNjk4ocqULuNbA3tfqK0bIxBAeA64Dkk6jZUpDkI/CCji5ND+Ara38ZmDXBzT5fRioFoP35Lb2/zTLfpMc8wg==
|
integrity sha512-qzJCSbTNKnYOjU9enVRKKdhNxmLZNAXCeXiWF4f/PVujMEU5+pMKvyUoLWA/bTOob8AjjYujy33Ab9t8gpz9eQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
axios "^0.26.1"
|
axios "^0.26.1"
|
||||||
axios-retry "^3.4.0"
|
axios-retry "^3.4.0"
|
||||||
@@ -821,10 +821,10 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-5.1.2.tgz#07508b45797cb81ec3f273011b054cd0755eddca"
|
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-5.1.2.tgz#07508b45797cb81ec3f273011b054cd0755eddca"
|
||||||
integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==
|
integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==
|
||||||
|
|
||||||
"@types/node@*", "@types/node@>=13.7.0", "@types/node@^18.6.1":
|
"@types/node@*", "@types/node@>=13.7.0", "@types/node@^18.15.12":
|
||||||
version "18.15.11"
|
version "18.15.12"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.11.tgz#b3b790f09cb1696cffcec605de025b088fa4225f"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.12.tgz#833756634e78c829e1254db006468dadbb0c696b"
|
||||||
integrity sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==
|
integrity sha512-Wha1UwsB3CYdqUm2PPzh/1gujGCNtWVUYF0mB00fJFoR4gTyWTDPjSm+zBF787Ahw8vSGgBja90MkgFwvB86Dg==
|
||||||
|
|
||||||
"@types/node@^11.9.4":
|
"@types/node@^11.9.4":
|
||||||
version "11.15.54"
|
version "11.15.54"
|
||||||
|
|||||||
Reference in New Issue
Block a user