vigor-roblox 1.0.0 → 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 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
@@ -1102,7 +1102,7 @@ class VigorFetch extends VigorStatus {
1102
1102
  });
1103
1103
  try {
1104
1104
  try {
1105
- new URL(stats.origin[0]);
1105
+ new URL(stats.origin);
1106
1106
  }
1107
1107
  catch {
1108
1108
  throw new VigorFetchError("INVALID_PROTOCOL", {
@@ -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.url : null }));
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.url : null };
2095
+ return { ...original, ...rest, url: rest.state === 'Completed' ? rest.imageUrl : null };
2096
2096
  });
2097
2097
  }
2098
2098
  catch (cause) {
package/dist/index.mjs CHANGED
@@ -1100,7 +1100,7 @@ class VigorFetch extends VigorStatus {
1100
1100
  });
1101
1101
  try {
1102
1102
  try {
1103
- new URL(stats.origin[0]);
1103
+ new URL(stats.origin);
1104
1104
  }
1105
1105
  catch {
1106
1106
  throw new VigorFetchError("INVALID_PROTOCOL", {
@@ -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.url : null }));
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.url : null };
2093
+ return { ...original, ...rest, url: rest.state === 'Completed' ? rest.imageUrl : null };
2094
2094
  });
2095
2095
  }
2096
2096
  catch (cause) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vigor-roblox",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -39,6 +39,6 @@
39
39
  "rollup": "^4.60.2",
40
40
  "rollup-plugin-dts": "^6.4.1",
41
41
  "tslib": "^2.8.1",
42
- "vigor-fetch": "^3.1.8"
42
+ "vigor-fetch": "^3.1.9"
43
43
  }
44
44
  }