minecraft-auth
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -0,0 +0,0 @@ import { AccountType } from "./types"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Account } from "./Account"; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare function HttpGet_BEARER(url: string, token: string, headers?: {}, objectResponse?: boolean): Promise<any>; | ||
export declare function HttpCustom_BEARER(method: string, url: string, token: string, body?: string, headers?: any, objectResponse?: boolean): Promise<any>; | ||
export declare function HttpPost_BEARER(url: string, data: string, token: string, headers?: {}, objectResponse?: boolean): Promise<any>; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Account } from "../Account"; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare function uuid(username: string): string; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export * as MicrosoftAuth from "./MicrosoftAuth/MicrosoftAuth"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Account } from "../Account"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { MCTokenResponse, MSConfigType, ServerConfigType, TokenResponse, XBLResponse, XSTSResponse } from "./MicrosoftAuth.types"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -1,2 +0,2 @@ | ||
export declare type MSConfigType = { | ||
export type MSConfigType = { | ||
appID: string; | ||
@@ -8,3 +8,3 @@ appSecret?: string; | ||
}; | ||
export declare type ServerConfigType = { | ||
export type ServerConfigType = { | ||
port: number; | ||
@@ -15,3 +15,3 @@ host: string; | ||
}; | ||
export declare type TokenResponse = { | ||
export type TokenResponse = { | ||
token_type: string; | ||
@@ -28,3 +28,3 @@ expires_in: number; | ||
}; | ||
export declare type MCTokenResponse = { | ||
export type MCTokenResponse = { | ||
username: string; | ||
@@ -36,3 +36,3 @@ roles: []; | ||
}; | ||
export declare type XBLResponse = { | ||
export type XBLResponse = { | ||
IssueInstant: string; | ||
@@ -49,3 +49,3 @@ NotAfter: string; | ||
}; | ||
export declare type XSTSResponse = { | ||
export type XSTSResponse = { | ||
IssueInstant: string; | ||
@@ -52,0 +52,0 @@ NotAfter: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=MicrosoftAuth.types.js.map |
@@ -0,0 +0,0 @@ import { MCProfileResponse, NameChangeInfoResponse, ProfileResponseDecoded, UsernameToUUIDResponse } from "./MojangAPI.types"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -1,2 +0,2 @@ | ||
export declare type MCOwnershipResponse = { | ||
export type MCOwnershipResponse = { | ||
"items": [ | ||
@@ -15,3 +15,3 @@ { | ||
}; | ||
export declare type MCProfileResponse = { | ||
export type MCProfileResponse = { | ||
"id": string; | ||
@@ -30,3 +30,3 @@ "name": string; | ||
}; | ||
export declare type NameChangeInfoResponse = { | ||
export type NameChangeInfoResponse = { | ||
"changedAt": string; | ||
@@ -36,6 +36,6 @@ "createdAt": string; | ||
}; | ||
export declare type NameAvailabilityResponse = { | ||
export type NameAvailabilityResponse = { | ||
"status": "DUPLICATE" | "AVAILABLE"; | ||
}; | ||
export declare type StatusResponse = [ | ||
export type StatusResponse = [ | ||
{ | ||
@@ -66,13 +66,13 @@ "minecraft.net": StatusType; | ||
]; | ||
export declare type StatusType = "green" | "red" | "yellow"; | ||
export declare type UsernameToUUIDResponse = { | ||
export type StatusType = "green" | "red" | "yellow"; | ||
export type UsernameToUUIDResponse = { | ||
"name": string; | ||
"id": string; | ||
}; | ||
export declare type NameHistoryResponse = NameHistoryEntry[]; | ||
export declare type NameHistoryEntry = { | ||
export type NameHistoryResponse = NameHistoryEntry[]; | ||
export type NameHistoryEntry = { | ||
"name": string; | ||
"changedToAt": number; | ||
}; | ||
export declare type ProfileResponse = { | ||
export type ProfileResponse = { | ||
"id": string; | ||
@@ -87,3 +87,3 @@ "name": string; | ||
}; | ||
export declare type ProfileResponseDecoded = { | ||
export type ProfileResponseDecoded = { | ||
"id": string; | ||
@@ -98,3 +98,3 @@ "name": string; | ||
}; | ||
export declare type DecodedTextures = { | ||
export type DecodedTextures = { | ||
"timestamp": number; | ||
@@ -101,0 +101,0 @@ "profileId": string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=MojangAPI.types.js.map |
@@ -0,0 +0,0 @@ import { Account } from "../Account"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { MCAuthResponse } from "./MojangAuth.types"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -1,2 +0,2 @@ | ||
export declare type MCAuthResponse = { | ||
export type MCAuthResponse = { | ||
"user": { | ||
@@ -32,3 +32,3 @@ "username": string; | ||
}; | ||
export declare type MCErrorResponse = { | ||
export type MCErrorResponse = { | ||
"error": string; | ||
@@ -35,0 +35,0 @@ "errorMessage": string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=MojangAuth.types.js.map |
/// <reference types="node" /> | ||
import http from "http"; | ||
export declare type ListeningHttpServer = http.Server & { | ||
export type ListeningHttpServer = http.Server & { | ||
fullClose: () => any; | ||
}; | ||
export declare type AccountType = "mojang" | "cracked" | "microsoft" | "token"; | ||
export type AccountType = "mojang" | "cracked" | "microsoft" | "token"; | ||
export declare class AuthenticationError extends Error { | ||
@@ -8,0 +8,0 @@ additionalInfo?: string; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "minecraft-auth", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Package to authenticate with minecraft using traditional yggdrasil, new microsoft authentication and non-premium.", | ||
@@ -30,5 +30,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@types/node": "^17.0.21", | ||
"atob": "^2.1.2", | ||
"http-client-methods": "^1.0.3" | ||
"http-client-methods": "^1.0.4" | ||
}, | ||
@@ -39,11 +38,13 @@ "files": [ | ||
"devDependencies": { | ||
"@tsconfig/node16": "^1.0.3", | ||
"@tsconfig/node16": "^16.1.1", | ||
"@types/atob": "^2.1.2", | ||
"@types/jest": "^27.4.1", | ||
"jest": "^27.5.1", | ||
"jest-mock": "^27.5.1", | ||
"nodemon": "^2.0.15", | ||
"ts-jest": "^27.1.3", | ||
"typescript": "^4.6.2" | ||
"@types/jest": "^29.5.5", | ||
"@types/node": "^17.0.45", | ||
"jest": "^29.7.0", | ||
"jest-mock": "^29.7.0", | ||
"nodemon": "^3.0.1", | ||
"ts-jest": "^29.1.1", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
2
70766
10
- Removed@types/node@^17.0.21
- Removed@types/node@17.0.45(transitive)
Updatedhttp-client-methods@^1.0.4