floatplane
Advanced tools
+4
-6
@@ -10,3 +10,3 @@ import got from "got"; | ||
| import { Content } from "./content.js"; | ||
| export declare const version = "5.0.2"; | ||
| export declare const version = "5.1.0"; | ||
| export type AuthToken = TokenEndpointResponse & { | ||
@@ -21,7 +21,5 @@ expires_at?: Date; | ||
| onDeviceCode: OnDeviceCode; | ||
| clientSettings: { | ||
| server: string; | ||
| clientId: string; | ||
| clientSecret?: string; | ||
| }; | ||
| clientId: string; | ||
| clientSecret?: string; | ||
| serverUrl?: string; | ||
| }; | ||
@@ -28,0 +26,0 @@ export type FloatplaneSettings = { |
+2
-2
@@ -10,3 +10,3 @@ import got from "got"; | ||
| import { Content } from "./content.js"; | ||
| export const version = "5.0.2"; | ||
| export const version = "5.1.0"; | ||
| export class Floatplane { | ||
@@ -110,3 +110,3 @@ got; | ||
| if (this.oauthConfig === undefined) { | ||
| this.oauthConfig = await client.discovery(new URL(this.authConfig.clientSettings?.server), this.authConfig.clientSettings?.clientId, this.authConfig.clientSettings?.clientSecret); | ||
| this.oauthConfig = await client.discovery(new URL(this.authConfig.serverUrl ?? "https://auth.floatplane.com/realms/floatplane"), this.authConfig.clientId, this.authConfig.clientSecret); | ||
| } | ||
@@ -113,0 +113,0 @@ if (!this.authToken) { |
+1
-1
| { | ||
| "name": "floatplane", | ||
| "version": "5.0.2", | ||
| "version": "5.1.0", | ||
| "description": "Library for interfacing with the LMG Floatplane.com api", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
395929
-0.01%7942
-0.03%