@rtsdk/topia 0.2.1 → 0.2.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.cjs
CHANGED
|
@@ -39751,14 +39751,14 @@ const {
|
|
|
39751
39751
|
*/
|
|
39752
39752
|
class SDKController {
|
|
39753
39753
|
constructor(topia, credentials = {}) {
|
|
39754
|
-
const { assetId = null, interactiveNonce = null, visitorId = null, apiKey = null } = credentials;
|
|
39754
|
+
const { assetId = null, interactiveNonce = null, visitorId = null, apiKey = null, profileId = null } = credentials;
|
|
39755
39755
|
this.topia = topia;
|
|
39756
39756
|
this.credentials = credentials;
|
|
39757
39757
|
this.requestOptions = {};
|
|
39758
39758
|
let payload = {};
|
|
39759
39759
|
const headers = {};
|
|
39760
39760
|
try {
|
|
39761
|
-
if (topia.interactiveSecret) {
|
|
39761
|
+
if (topia.interactiveSecret && (profileId || assetId)) {
|
|
39762
39762
|
payload = {
|
|
39763
39763
|
interactiveNonce,
|
|
39764
39764
|
visitorId,
|
|
@@ -40588,7 +40588,7 @@ var _User_assetsMap, _User_scenesMap, _User_worldsMap;
|
|
|
40588
40588
|
*/
|
|
40589
40589
|
class User extends SDKController {
|
|
40590
40590
|
constructor(topia, options = { profileId: null, credentials: {} }) {
|
|
40591
|
-
super(topia, options.credentials);
|
|
40591
|
+
super(topia, Object.assign({ profileId: options.profileId }, options.credentials));
|
|
40592
40592
|
_User_assetsMap.set(this, void 0);
|
|
40593
40593
|
_User_scenesMap.set(this, void 0);
|
|
40594
40594
|
_User_worldsMap.set(this, void 0);
|
package/dist/index.js
CHANGED
|
@@ -39749,14 +39749,14 @@ const {
|
|
|
39749
39749
|
*/
|
|
39750
39750
|
class SDKController {
|
|
39751
39751
|
constructor(topia, credentials = {}) {
|
|
39752
|
-
const { assetId = null, interactiveNonce = null, visitorId = null, apiKey = null } = credentials;
|
|
39752
|
+
const { assetId = null, interactiveNonce = null, visitorId = null, apiKey = null, profileId = null } = credentials;
|
|
39753
39753
|
this.topia = topia;
|
|
39754
39754
|
this.credentials = credentials;
|
|
39755
39755
|
this.requestOptions = {};
|
|
39756
39756
|
let payload = {};
|
|
39757
39757
|
const headers = {};
|
|
39758
39758
|
try {
|
|
39759
|
-
if (topia.interactiveSecret) {
|
|
39759
|
+
if (topia.interactiveSecret && (profileId || assetId)) {
|
|
39760
39760
|
payload = {
|
|
39761
39761
|
interactiveNonce,
|
|
39762
39762
|
visitorId,
|
|
@@ -40586,7 +40586,7 @@ var _User_assetsMap, _User_scenesMap, _User_worldsMap;
|
|
|
40586
40586
|
*/
|
|
40587
40587
|
class User extends SDKController {
|
|
40588
40588
|
constructor(topia, options = { profileId: null, credentials: {} }) {
|
|
40589
|
-
super(topia, options.credentials);
|
|
40589
|
+
super(topia, Object.assign({ profileId: options.profileId }, options.credentials));
|
|
40590
40590
|
_User_assetsMap.set(this, void 0);
|
|
40591
40591
|
_User_scenesMap.set(this, void 0);
|
|
40592
40592
|
_User_worldsMap.set(this, void 0);
|
package/package.json
CHANGED