vigor-roblox 1.0.3 → 2.0.0
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/README.md +1 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +174 -1888
- package/dist/index.mjs +160 -1874
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# vigor-roblox
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VigorFetch } from 'vigor-fetch';
|
|
2
2
|
|
|
3
3
|
type RobloxUserId = number & {
|
|
4
4
|
__brand__: 'Roblox_UserId';
|
|
@@ -44,7 +44,6 @@ type RobloxErrorDatas<C extends RobloxErrorCodes> = Parameters<typeof RobloxErro
|
|
|
44
44
|
type RobloxErrorOptions<C extends RobloxErrorCodes, T> = {
|
|
45
45
|
cause?: unknown;
|
|
46
46
|
data?: RobloxErrorDatas<C>;
|
|
47
|
-
timeline?: unknown[];
|
|
48
47
|
context?: T;
|
|
49
48
|
};
|
|
50
49
|
declare abstract class RobloxApiError<C extends RobloxErrorCodes, T = unknown> extends Error {
|
|
@@ -52,7 +51,6 @@ declare abstract class RobloxApiError<C extends RobloxErrorCodes, T = unknown> e
|
|
|
52
51
|
readonly cause?: unknown;
|
|
53
52
|
readonly code: C;
|
|
54
53
|
readonly data: RobloxErrorDatas<C> | undefined;
|
|
55
|
-
readonly timeline: unknown[];
|
|
56
54
|
readonly context: T | undefined;
|
|
57
55
|
constructor(code: C, options: RobloxErrorOptions<C, T>);
|
|
58
56
|
}
|
|
@@ -204,7 +202,7 @@ interface ServersOpts {
|
|
|
204
202
|
cursor?: string;
|
|
205
203
|
thumbnailFormat?: Partial<RobloxThumbnailTarget>;
|
|
206
204
|
}
|
|
207
|
-
type VigorFetchInstance =
|
|
205
|
+
type VigorFetchInstance = VigorFetch<any>;
|
|
208
206
|
interface RobloxApi {
|
|
209
207
|
authenticated: (cookies: RobloxCookie[]) => Promise<RobloxAuthenticatedUser[]>;
|
|
210
208
|
usersSimple: (userIds: RobloxUserId[]) => Promise<RobloxUserSimple[]>;
|