minimal-piral 1.5.0-beta.6565 → 1.5.0-beta.6569
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/app/{index.b56ce2.js → index.c57a21.js} +9 -7
- package/app/index.c57a21.js.map +1 -0
- package/app/index.html +1 -1
- package/app/index.js +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +5 -5
- package/app/index.b56ce2.js.map +0 -1
|
@@ -3633,12 +3633,12 @@ function installPiralDebug(options) {
|
|
|
3633
3633
|
debug: debugApiVersion,
|
|
3634
3634
|
instance: {
|
|
3635
3635
|
name: "minimal-piral",
|
|
3636
|
-
version: "1.5.0-beta.
|
|
3636
|
+
version: "1.5.0-beta.6569",
|
|
3637
3637
|
dependencies: "tslib,react,react-dom,react-router,react-router-dom"
|
|
3638
3638
|
},
|
|
3639
3639
|
build: {
|
|
3640
|
-
date: "2024-01-
|
|
3641
|
-
cli: "1.5.0-beta.
|
|
3640
|
+
date: "2024-01-22T17:23:48.562Z",
|
|
3641
|
+
cli: "1.5.0-beta.6569",
|
|
3642
3642
|
compat: "1"
|
|
3643
3643
|
}
|
|
3644
3644
|
};
|
|
@@ -3938,15 +3938,17 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
3938
3938
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
3939
3939
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
3940
3940
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
3941
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3941
3942
|
|
|
3942
3943
|
function installPiletEmulator(requestPilets, options) {
|
|
3943
3944
|
var addPilet = options.addPilet,
|
|
3944
3945
|
removePilet = options.removePilet,
|
|
3945
3946
|
integrate = options.integrate,
|
|
3946
3947
|
_options$piletApiFall = options.piletApiFallback,
|
|
3947
|
-
piletApiFallback = _options$piletApiFall === void 0 ? '
|
|
3948
|
+
piletApiFallback = _options$piletApiFall === void 0 ? 'https://feed.piral.cloud/api/v1/pilet/emulator-website' : _options$piletApiFall;
|
|
3948
3949
|
integrate(function () {
|
|
3949
3950
|
// check if pilets should be loaded
|
|
3951
|
+
var dbgPiletApiKey = 'dbg:pilet-api';
|
|
3950
3952
|
var loadPilets = sessionStorage.getItem('dbg:load-pilets') === 'on';
|
|
3951
3953
|
var noPilets = function noPilets() {
|
|
3952
3954
|
return Promise.resolve([]);
|
|
@@ -3954,7 +3956,7 @@ function installPiletEmulator(requestPilets, options) {
|
|
|
3954
3956
|
var requester = loadPilets ? requestPilets : noPilets;
|
|
3955
3957
|
var promise = requester();
|
|
3956
3958
|
// the window['dbg:pilet-api'] should point to an API address used as a proxy, fall back to '/$pilet-api' if unavailable
|
|
3957
|
-
var piletApi = window[
|
|
3959
|
+
var piletApi = window[dbgPiletApiKey] || sessionStorage.getItem(dbgPiletApiKey) || piletApiFallback;
|
|
3958
3960
|
// either take a full URI or make it an absolute path relative to the current origin
|
|
3959
3961
|
var initialTarget = /^https?:/.test(piletApi) ? piletApi : "".concat(location.origin).concat(piletApi[0] === '/' ? '' : '/').concat(piletApi);
|
|
3960
3962
|
var updateTarget = initialTarget.replace('http', 'ws');
|
|
@@ -3964,7 +3966,7 @@ function installPiletEmulator(requestPilets, options) {
|
|
|
3964
3966
|
var appendix = fetch(initialTarget).then(function (res) {
|
|
3965
3967
|
return res.json();
|
|
3966
3968
|
}).then(function (item) {
|
|
3967
|
-
return Array.isArray(item) ? item : [item];
|
|
3969
|
+
return Array.isArray(item) ? item : item && _typeof(item) === 'object' ? Array.isArray(item.items) ? item.items : [item] : [];
|
|
3968
3970
|
});
|
|
3969
3971
|
ws.onmessage = function (_ref) {
|
|
3970
3972
|
var data = _ref.data;
|
|
@@ -44723,4 +44725,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
|
|
|
44723
44725
|
|
|
44724
44726
|
/******/ })()
|
|
44725
44727
|
;
|
|
44726
|
-
//# sourceMappingURL=index.
|
|
44728
|
+
//# sourceMappingURL=index.c57a21.js.map
|