@arcware-cloud/pixelstreaming-websdk 1.3.3 → 1.3.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/index.cjs.js +11 -10
- package/index.esm.js +11 -10
- package/index.umd.js +11 -10
- package/package.json +1 -1
- package/types/lib/ArcwareConfig.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -23234,27 +23234,28 @@ class ArcwareApplication extends lib_pixelstreamingfrontend_ui_ue5_5_1.Applicati
|
|
|
23234
23234
|
});
|
|
23235
23235
|
}
|
|
23236
23236
|
applicationResponse(response) {
|
|
23237
|
-
var _a, _b;
|
|
23238
|
-
let obj
|
|
23237
|
+
var _a, _b, _c, _d;
|
|
23238
|
+
let obj;
|
|
23239
23239
|
try {
|
|
23240
23240
|
obj = (0, common_1.parseUnknownToObject)(response, { allowJsonish: true });
|
|
23241
23241
|
}
|
|
23242
|
-
catch (
|
|
23243
|
-
//
|
|
23242
|
+
catch (_e) {
|
|
23243
|
+
// not parseable → just send to generic handler and bail out
|
|
23244
|
+
(_a = this.responseCallback) === null || _a === void 0 ? void 0 : _a.call(this, response);
|
|
23245
|
+
return;
|
|
23244
23246
|
}
|
|
23245
23247
|
const t = (0, common_1.normalizeType)(obj["type"]);
|
|
23246
23248
|
// route to exactly one callback
|
|
23247
23249
|
if (t === "event") {
|
|
23248
|
-
(
|
|
23250
|
+
(_b = this.analyticsEventCallback) === null || _b === void 0 ? void 0 : _b.call(this, response);
|
|
23249
23251
|
return;
|
|
23250
23252
|
}
|
|
23251
23253
|
if (t === "filetransfer" || t === "createscreenshot") {
|
|
23252
|
-
(
|
|
23254
|
+
(_c = this.fileDownloadCallback) === null || _c === void 0 ? void 0 : _c.call(this, response);
|
|
23253
23255
|
return;
|
|
23254
23256
|
}
|
|
23255
|
-
|
|
23256
|
-
|
|
23257
|
-
}
|
|
23257
|
+
// fallback: unknown type → generic callback
|
|
23258
|
+
(_d = this.responseCallback) === null || _d === void 0 ? void 0 : _d.call(this, response);
|
|
23258
23259
|
}
|
|
23259
23260
|
applyArcwareStyles() {
|
|
23260
23261
|
const PixelStreamingApplicationStyles = new lib_pixelstreamingfrontend_ui_ue5_5_1.PixelStreamingApplicationStyle(ArcwarePixelStreamingApplicationStyles_1.ArcwareStyles);
|
|
@@ -23419,7 +23420,7 @@ class ArcwareConfig extends lib_pixelstreamingfrontend_ue5_5_1.Config {
|
|
|
23419
23420
|
if (!config.initialSettings.ss)
|
|
23420
23421
|
config.initialSettings.ss = exports.DefaultUrl;
|
|
23421
23422
|
super(config);
|
|
23422
|
-
this.VERSION = "1.3.
|
|
23423
|
+
this.VERSION = "1.3.4";
|
|
23423
23424
|
this.settings = settings;
|
|
23424
23425
|
this.session = new Session_1.Session();
|
|
23425
23426
|
this._initialSettings = config.initialSettings;
|
package/index.esm.js
CHANGED
|
@@ -23235,27 +23235,28 @@ class ArcwareApplication extends _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5
|
|
|
23235
23235
|
});
|
|
23236
23236
|
}
|
|
23237
23237
|
applicationResponse(response) {
|
|
23238
|
-
var _a, _b;
|
|
23239
|
-
let obj
|
|
23238
|
+
var _a, _b, _c, _d;
|
|
23239
|
+
let obj;
|
|
23240
23240
|
try {
|
|
23241
23241
|
obj = (0,_features_common__WEBPACK_IMPORTED_MODULE_10__.parseUnknownToObject)(response, { allowJsonish: true });
|
|
23242
23242
|
}
|
|
23243
|
-
catch (
|
|
23244
|
-
//
|
|
23243
|
+
catch (_e) {
|
|
23244
|
+
// not parseable → just send to generic handler and bail out
|
|
23245
|
+
(_a = this.responseCallback) === null || _a === void 0 ? void 0 : _a.call(this, response);
|
|
23246
|
+
return;
|
|
23245
23247
|
}
|
|
23246
23248
|
const t = (0,_features_common__WEBPACK_IMPORTED_MODULE_10__.normalizeType)(obj["type"]);
|
|
23247
23249
|
// route to exactly one callback
|
|
23248
23250
|
if (t === "event") {
|
|
23249
|
-
(
|
|
23251
|
+
(_b = this.analyticsEventCallback) === null || _b === void 0 ? void 0 : _b.call(this, response);
|
|
23250
23252
|
return;
|
|
23251
23253
|
}
|
|
23252
23254
|
if (t === "filetransfer" || t === "createscreenshot") {
|
|
23253
|
-
(
|
|
23255
|
+
(_c = this.fileDownloadCallback) === null || _c === void 0 ? void 0 : _c.call(this, response);
|
|
23254
23256
|
return;
|
|
23255
23257
|
}
|
|
23256
|
-
|
|
23257
|
-
|
|
23258
|
-
}
|
|
23258
|
+
// fallback: unknown type → generic callback
|
|
23259
|
+
(_d = this.responseCallback) === null || _d === void 0 ? void 0 : _d.call(this, response);
|
|
23259
23260
|
}
|
|
23260
23261
|
applyArcwareStyles() {
|
|
23261
23262
|
const PixelStreamingApplicationStyles = new _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5_5__WEBPACK_IMPORTED_MODULE_11__.PixelStreamingApplicationStyle(_styles_ArcwarePixelStreamingApplicationStyles__WEBPACK_IMPORTED_MODULE_0__.ArcwareStyles);
|
|
@@ -23427,7 +23428,7 @@ class ArcwareConfig extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBP
|
|
|
23427
23428
|
if (!config.initialSettings.ss)
|
|
23428
23429
|
config.initialSettings.ss = DefaultUrl;
|
|
23429
23430
|
super(config);
|
|
23430
|
-
this.VERSION = "1.3.
|
|
23431
|
+
this.VERSION = "1.3.4";
|
|
23431
23432
|
this.settings = settings;
|
|
23432
23433
|
this.session = new _domain_Session__WEBPACK_IMPORTED_MODULE_0__.Session();
|
|
23433
23434
|
this._initialSettings = config.initialSettings;
|
package/index.umd.js
CHANGED
|
@@ -23244,27 +23244,28 @@ class ArcwareApplication extends lib_pixelstreamingfrontend_ui_ue5_5_1.Applicati
|
|
|
23244
23244
|
});
|
|
23245
23245
|
}
|
|
23246
23246
|
applicationResponse(response) {
|
|
23247
|
-
var _a, _b;
|
|
23248
|
-
let obj
|
|
23247
|
+
var _a, _b, _c, _d;
|
|
23248
|
+
let obj;
|
|
23249
23249
|
try {
|
|
23250
23250
|
obj = (0, common_1.parseUnknownToObject)(response, { allowJsonish: true });
|
|
23251
23251
|
}
|
|
23252
|
-
catch (
|
|
23253
|
-
//
|
|
23252
|
+
catch (_e) {
|
|
23253
|
+
// not parseable → just send to generic handler and bail out
|
|
23254
|
+
(_a = this.responseCallback) === null || _a === void 0 ? void 0 : _a.call(this, response);
|
|
23255
|
+
return;
|
|
23254
23256
|
}
|
|
23255
23257
|
const t = (0, common_1.normalizeType)(obj["type"]);
|
|
23256
23258
|
// route to exactly one callback
|
|
23257
23259
|
if (t === "event") {
|
|
23258
|
-
(
|
|
23260
|
+
(_b = this.analyticsEventCallback) === null || _b === void 0 ? void 0 : _b.call(this, response);
|
|
23259
23261
|
return;
|
|
23260
23262
|
}
|
|
23261
23263
|
if (t === "filetransfer" || t === "createscreenshot") {
|
|
23262
|
-
(
|
|
23264
|
+
(_c = this.fileDownloadCallback) === null || _c === void 0 ? void 0 : _c.call(this, response);
|
|
23263
23265
|
return;
|
|
23264
23266
|
}
|
|
23265
|
-
|
|
23266
|
-
|
|
23267
|
-
}
|
|
23267
|
+
// fallback: unknown type → generic callback
|
|
23268
|
+
(_d = this.responseCallback) === null || _d === void 0 ? void 0 : _d.call(this, response);
|
|
23268
23269
|
}
|
|
23269
23270
|
applyArcwareStyles() {
|
|
23270
23271
|
const PixelStreamingApplicationStyles = new lib_pixelstreamingfrontend_ui_ue5_5_1.PixelStreamingApplicationStyle(ArcwarePixelStreamingApplicationStyles_1.ArcwareStyles);
|
|
@@ -23429,7 +23430,7 @@ class ArcwareConfig extends lib_pixelstreamingfrontend_ue5_5_1.Config {
|
|
|
23429
23430
|
if (!config.initialSettings.ss)
|
|
23430
23431
|
config.initialSettings.ss = exports.DefaultUrl;
|
|
23431
23432
|
super(config);
|
|
23432
|
-
this.VERSION = "1.3.
|
|
23433
|
+
this.VERSION = "1.3.4";
|
|
23433
23434
|
this.settings = settings;
|
|
23434
23435
|
this.session = new Session_1.Session();
|
|
23435
23436
|
this._initialSettings = config.initialSettings;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcware-cloud/pixelstreaming-websdk",
|
|
3
3
|
"description": "WebSDK for easy implementation of pixel streaming with Arcware Cloud Services. Heavily based on the '@epicgames-ps' library.",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.4",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./index.umd.js",
|
|
7
7
|
"module": "./index.umd.js",
|
|
@@ -26,7 +26,7 @@ export declare class ArcwareConfig extends Config {
|
|
|
26
26
|
readonly session: Session;
|
|
27
27
|
readonly settings: Settings;
|
|
28
28
|
private _initialSettings;
|
|
29
|
-
readonly VERSION = "1.3.
|
|
29
|
+
readonly VERSION = "1.3.4";
|
|
30
30
|
constructor(config: ArcwareConfigParams);
|
|
31
31
|
/** Setup connection string. */
|
|
32
32
|
get urlFlags(): string;
|