vigor-roblox 1.0.1 → 1.0.2
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/dist/index.d.ts +6 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -117,6 +117,11 @@ interface RobloxThumbnailTarget {
|
|
|
117
117
|
format?: string;
|
|
118
118
|
isCircular?: boolean;
|
|
119
119
|
}
|
|
120
|
+
interface RobloxThumbnailRaw extends RobloxThumbnailTarget {
|
|
121
|
+
imageUrl: string | null;
|
|
122
|
+
state: string;
|
|
123
|
+
version: string;
|
|
124
|
+
}
|
|
120
125
|
interface RobloxThumbnail extends RobloxThumbnailTarget {
|
|
121
126
|
url: string | null;
|
|
122
127
|
state: string;
|
|
@@ -236,4 +241,4 @@ interface RobloxApi {
|
|
|
236
241
|
declare function createRobloxApi({ cache, cookies: cookiesList, ipgeolocationKey, }: CreateRobloxApiOptions): RobloxApi;
|
|
237
242
|
|
|
238
243
|
export { RobloxAuthError, RobloxRateLimitError, RobloxRequestError, createRobloxApi };
|
|
239
|
-
export type { CreateRobloxApiOptions, RobloxApi, RobloxApiCache, RobloxAssetId, RobloxAuthenticatedUser, RobloxCookie, RobloxDisplayName, RobloxJobId, RobloxPlaceId, RobloxPlaceInfo, RobloxPresenceEntry, RobloxServerEntry, RobloxServerEntryWithLocation, RobloxServerLocation, RobloxServersResult, RobloxThumbnail, RobloxThumbnailTarget, RobloxUniverseId, RobloxUser, RobloxUserAgeBracket, RobloxUserBirthdate, RobloxUserCountryCode, RobloxUserDescription, RobloxUserGender, RobloxUserId, RobloxUserName, RobloxUserRoles, RobloxUserSimple, VigorFetchInstance };
|
|
244
|
+
export type { CreateRobloxApiOptions, RobloxApi, RobloxApiCache, RobloxAssetId, RobloxAuthenticatedUser, RobloxCookie, RobloxDisplayName, RobloxJobId, RobloxPlaceId, RobloxPlaceInfo, RobloxPresenceEntry, RobloxServerEntry, RobloxServerEntryWithLocation, RobloxServerLocation, RobloxServersResult, RobloxThumbnail, RobloxThumbnailRaw, RobloxThumbnailTarget, RobloxUniverseId, RobloxUser, RobloxUserAgeBracket, RobloxUserBirthdate, RobloxUserCountryCode, RobloxUserDescription, RobloxUserGender, RobloxUserId, RobloxUserName, RobloxUserRoles, RobloxUserSimple, VigorFetchInstance };
|
package/dist/index.js
CHANGED
|
@@ -2062,7 +2062,7 @@ function createRobloxApi({ cache, cookies: cookiesList, ipgeolocationKey, }) {
|
|
|
2062
2062
|
api.setResult(ctx.result.flat());
|
|
2063
2063
|
}))
|
|
2064
2064
|
.request();
|
|
2065
|
-
return results.map(t => ({ ...t, url: t.state === 'Completed' ? t.
|
|
2065
|
+
return results.map(t => ({ ...t, url: t.state === 'Completed' ? t.imageUrl : null }));
|
|
2066
2066
|
}
|
|
2067
2067
|
catch (cause) {
|
|
2068
2068
|
throw wrapVigorError(cause);
|
|
@@ -2092,7 +2092,7 @@ function createRobloxApi({ cache, cookies: cookiesList, ipgeolocationKey, }) {
|
|
|
2092
2092
|
return results.map(item => {
|
|
2093
2093
|
const original = batchMap.get(item.requestId) ?? {};
|
|
2094
2094
|
const { requestId: _rid, ...rest } = item;
|
|
2095
|
-
return { ...original, ...rest, url: rest.state === 'Completed' ? rest.
|
|
2095
|
+
return { ...original, ...rest, url: rest.state === 'Completed' ? rest.imageUrl : null };
|
|
2096
2096
|
});
|
|
2097
2097
|
}
|
|
2098
2098
|
catch (cause) {
|
package/dist/index.mjs
CHANGED
|
@@ -2060,7 +2060,7 @@ function createRobloxApi({ cache, cookies: cookiesList, ipgeolocationKey, }) {
|
|
|
2060
2060
|
api.setResult(ctx.result.flat());
|
|
2061
2061
|
}))
|
|
2062
2062
|
.request();
|
|
2063
|
-
return results.map(t => ({ ...t, url: t.state === 'Completed' ? t.
|
|
2063
|
+
return results.map(t => ({ ...t, url: t.state === 'Completed' ? t.imageUrl : null }));
|
|
2064
2064
|
}
|
|
2065
2065
|
catch (cause) {
|
|
2066
2066
|
throw wrapVigorError(cause);
|
|
@@ -2090,7 +2090,7 @@ function createRobloxApi({ cache, cookies: cookiesList, ipgeolocationKey, }) {
|
|
|
2090
2090
|
return results.map(item => {
|
|
2091
2091
|
const original = batchMap.get(item.requestId) ?? {};
|
|
2092
2092
|
const { requestId: _rid, ...rest } = item;
|
|
2093
|
-
return { ...original, ...rest, url: rest.state === 'Completed' ? rest.
|
|
2093
|
+
return { ...original, ...rest, url: rest.state === 'Completed' ? rest.imageUrl : null };
|
|
2094
2094
|
});
|
|
2095
2095
|
}
|
|
2096
2096
|
catch (cause) {
|