@spatialwalk/avatarkit 1.0.0-beta.43 → 1.0.0-beta.44
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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.0-beta.44] - 2025-12-29
|
|
9
|
+
|
|
10
|
+
### 🔧 Performance Improvements
|
|
11
|
+
- **Removed unnecessary headers from static resource requests** - Removed `X-App-Id` and `Authorization` headers from static resource downloads (shape.pb, point_cloud.ply, camera.json, etc.) to avoid CORS preflight requests and improve loading performance
|
|
12
|
+
|
|
8
13
|
## [1.0.0-beta.43] - 2025-12-29
|
|
9
14
|
|
|
10
15
|
### 🔧 Improvements
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { A as APP_CONFIG, e as errorToMessage, l as logEvent, a as logger } from "./index-
|
|
4
|
+
import { A as APP_CONFIG, e as errorToMessage, l as logEvent, a as logger } from "./index-CEqzEo-H.js";
|
|
5
5
|
class StreamingAudioPlayer {
|
|
6
6
|
constructor(options) {
|
|
7
7
|
__publicField(this, "audioContext", null);
|
|
@@ -7573,7 +7573,7 @@ const _AnimationPlayer = class _AnimationPlayer {
|
|
|
7573
7573
|
if (this.streamingPlayer) {
|
|
7574
7574
|
return;
|
|
7575
7575
|
}
|
|
7576
|
-
const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-
|
|
7576
|
+
const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-rs7ZcwVo.js");
|
|
7577
7577
|
const { AvatarSDK: AvatarSDK2 } = await Promise.resolve().then(() => AvatarSDK$1);
|
|
7578
7578
|
const audioFormat = AvatarSDK2.getAudioFormat();
|
|
7579
7579
|
this.streamingPlayer = new StreamingAudioPlayer({
|
|
@@ -8963,7 +8963,7 @@ class AvatarSDK {
|
|
|
8963
8963
|
}
|
|
8964
8964
|
__publicField(AvatarSDK, "_isInitialized", false);
|
|
8965
8965
|
__publicField(AvatarSDK, "_configuration", null);
|
|
8966
|
-
__publicField(AvatarSDK, "_version", "1.0.0-beta.
|
|
8966
|
+
__publicField(AvatarSDK, "_version", "1.0.0-beta.44");
|
|
8967
8967
|
__publicField(AvatarSDK, "_avatarCore", null);
|
|
8968
8968
|
__publicField(AvatarSDK, "_dynamicSdkConfig", null);
|
|
8969
8969
|
const AvatarSDK$1 = Object.freeze(Object.defineProperty({
|
|
@@ -11519,18 +11519,7 @@ function errorToMessage(err) {
|
|
|
11519
11519
|
}
|
|
11520
11520
|
async function downloadResource(url) {
|
|
11521
11521
|
try {
|
|
11522
|
-
const
|
|
11523
|
-
const appId = AvatarSDK.appId;
|
|
11524
|
-
const token = AvatarSDK.sessionToken;
|
|
11525
|
-
if (appId) {
|
|
11526
|
-
headers["X-App-Id"] = appId;
|
|
11527
|
-
}
|
|
11528
|
-
if (token) {
|
|
11529
|
-
headers["Authorization"] = `Bearer ${token}`;
|
|
11530
|
-
}
|
|
11531
|
-
const response = await fetch(url, {
|
|
11532
|
-
headers: Object.keys(headers).length > 0 ? headers : void 0
|
|
11533
|
-
});
|
|
11522
|
+
const response = await fetch(url);
|
|
11534
11523
|
if (!response.ok) {
|
|
11535
11524
|
throw new Error(`HTTP ${response.status} ${response.statusText}`);
|
|
11536
11525
|
}
|
|
@@ -11667,18 +11656,7 @@ class AvatarDownloader {
|
|
|
11667
11656
|
}
|
|
11668
11657
|
try {
|
|
11669
11658
|
logger.log(`📥 Loading camera info from: ${cameraUrl}`);
|
|
11670
|
-
const
|
|
11671
|
-
const appId = AvatarSDK.appId;
|
|
11672
|
-
const token = AvatarSDK.sessionToken;
|
|
11673
|
-
if (appId) {
|
|
11674
|
-
headers["X-App-Id"] = appId;
|
|
11675
|
-
}
|
|
11676
|
-
if (token) {
|
|
11677
|
-
headers["Authorization"] = `Bearer ${token}`;
|
|
11678
|
-
}
|
|
11679
|
-
const response = await fetch(cameraUrl, {
|
|
11680
|
-
headers: Object.keys(headers).length > 0 ? headers : void 0
|
|
11681
|
-
});
|
|
11659
|
+
const response = await fetch(cameraUrl);
|
|
11682
11660
|
if (!response.ok) {
|
|
11683
11661
|
throw new Error(`Failed to fetch camera info: ${response.statusText}`);
|
|
11684
11662
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED