roavatar-renderer 1.4.3 → 1.4.4

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
@@ -1250,6 +1250,8 @@ export declare const FLAGS: {
1250
1250
  ASSET_REQUEST_PRIORITY: RequestPriority | undefined;
1251
1251
  /**the domain all api requests go through */
1252
1252
  API_DOMAIN: string;
1253
+ /**prefix to add before all api requests */
1254
+ API_REQUEST_PREFIX: string;
1253
1255
  /**credentials request type when fetching from API_DOMAIN and credentials are usually include */
1254
1256
  INCLUDE_REQUEST_CREDENTIALS_OVERRIDE: RequestCredentials;
1255
1257
  /**loads assets from assetdelivery instead of local files */
package/dist/index.js CHANGED
@@ -29515,6 +29515,7 @@ const FLAGS = {
29515
29515
  ASSETDELIVERY_V2: true,
29516
29516
  ASSET_REQUEST_PRIORITY: "high",
29517
29517
  API_DOMAIN: "roblox.com",
29518
+ API_REQUEST_PREFIX: "",
29518
29519
  INCLUDE_REQUEST_CREDENTIALS_OVERRIDE: "include",
29519
29520
  //assets
29520
29521
  ONLINE_ASSETS: false,
@@ -35219,7 +35220,7 @@ async function RBLXPost(url, auth, body, attempt = 0, method = "POST") {
35219
35220
  "X-CSRF-TOKEN": xCsrfToken
35220
35221
  });
35221
35222
  try {
35222
- fetch(url, {
35223
+ fetch(FLAGS.API_REQUEST_PREFIX + url, {
35223
35224
  method,
35224
35225
  credentials: FLAGS.INCLUDE_REQUEST_CREDENTIALS_OVERRIDE,
35225
35226
  headers: fetchHeaders,
@@ -35264,7 +35265,7 @@ async function RBLXGet(url, headers, includeCredentials = true) {
35264
35265
  }
35265
35266
  const fetchHeaders = new Headers(newHeaders);
35266
35267
  try {
35267
- fetch(url, {
35268
+ fetch(FLAGS.API_REQUEST_PREFIX + url, {
35268
35269
  credentials: includeCredentials ? FLAGS.INCLUDE_REQUEST_CREDENTIALS_OVERRIDE : void 0,
35269
35270
  headers: fetchHeaders,
35270
35271
  priority: FLAGS.ASSET_REQUEST_PRIORITY
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roavatar-renderer",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "A renderer for Roblox avatars, used by the RoAvatar extension.",
5
5
  "author": "steinan",
6
6
  "type": "module",