roavatar-renderer 1.4.2 → 1.4.3
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 +2 -0
- package/dist/index.js +3 -2
- package/package.json +1 -1
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
|
+
/**credentials request type when fetching from API_DOMAIN and credentials are usually include */
|
|
1254
|
+
INCLUDE_REQUEST_CREDENTIALS_OVERRIDE: RequestCredentials;
|
|
1253
1255
|
/**loads assets from assetdelivery instead of local files */
|
|
1254
1256
|
ONLINE_ASSETS: boolean;
|
|
1255
1257
|
/**path to rbxasset:// 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
|
+
INCLUDE_REQUEST_CREDENTIALS_OVERRIDE: "include",
|
|
29518
29519
|
//assets
|
|
29519
29520
|
ONLINE_ASSETS: false,
|
|
29520
29521
|
ASSETS_PATH: "../assets/rbxasset/",
|
|
@@ -35220,7 +35221,7 @@ async function RBLXPost(url, auth, body, attempt = 0, method = "POST") {
|
|
|
35220
35221
|
try {
|
|
35221
35222
|
fetch(url, {
|
|
35222
35223
|
method,
|
|
35223
|
-
credentials:
|
|
35224
|
+
credentials: FLAGS.INCLUDE_REQUEST_CREDENTIALS_OVERRIDE,
|
|
35224
35225
|
headers: fetchHeaders,
|
|
35225
35226
|
body
|
|
35226
35227
|
}).then((response) => {
|
|
@@ -35264,7 +35265,7 @@ async function RBLXGet(url, headers, includeCredentials = true) {
|
|
|
35264
35265
|
const fetchHeaders = new Headers(newHeaders);
|
|
35265
35266
|
try {
|
|
35266
35267
|
fetch(url, {
|
|
35267
|
-
credentials: includeCredentials ?
|
|
35268
|
+
credentials: includeCredentials ? FLAGS.INCLUDE_REQUEST_CREDENTIALS_OVERRIDE : void 0,
|
|
35268
35269
|
headers: fetchHeaders,
|
|
35269
35270
|
priority: FLAGS.ASSET_REQUEST_PRIORITY
|
|
35270
35271
|
}).then((response) => {
|