vrchat 2.20.8-nightly.3 → 2.21.7

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.mjs CHANGED
@@ -6,7 +6,7 @@ import { TOTP } from 'totp-generator';
6
6
 
7
7
  // package.json
8
8
  var displayName = "VRChat.js";
9
- var version = "2.20.8-nightly.3";
9
+ var version = "2.21.7";
10
10
  var homepage = "https://vrchat.community/javascript";
11
11
 
12
12
  // src/lib/metadata.ts
@@ -5437,6 +5437,7 @@ var VRChat = class extends VRChatInternal {
5437
5437
  const headers = new Headers(clientOptions.headers);
5438
5438
  headers.set("user-agent", getUserAgent(application));
5439
5439
  const client2 = createClient(createConfig({
5440
+ baseUrl: "https://api.vrchat.cloud/api/1",
5440
5441
  ...clientOptions,
5441
5442
  headers
5442
5443
  }));
@@ -5502,7 +5503,7 @@ var VRChat = class extends VRChatInternal {
5502
5503
  return request;
5503
5504
  });
5504
5505
  interceptors.response.use(async (response, request, options2) => {
5505
- const { meta } = options2;
5506
+ const { meta = {} } = options2;
5506
5507
  await this.saveCookies(response.headers);
5507
5508
  if (response.status === 401 && !meta[authenticateSymbol]) {
5508
5509
  const error = VRChatError.from(await response.clone().json());