sample-cross-fx 0.14.15-beta.3791 → 0.14.16-beta.3830
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.b64adf.js → index.16a9e2.js} +37 -33
- package/app/{index.b64adf.js.map → index.16a9e2.js.map} +1 -1
- 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 +20 -20
|
@@ -128963,7 +128963,13 @@ function checkFetchPilets(fetchPilets) {
|
|
|
128963
128963
|
|
|
128964
128964
|
function loadMetadata(fetchPilets) {
|
|
128965
128965
|
if (checkFetchPilets(fetchPilets)) {
|
|
128966
|
-
return fetchPilets()
|
|
128966
|
+
return fetchPilets().then(pilets => {
|
|
128967
|
+
if (!Array.isArray(pilets)) {
|
|
128968
|
+
throw new Error('The fetched pilets metadata is not an array.');
|
|
128969
|
+
}
|
|
128970
|
+
|
|
128971
|
+
return pilets.map(meta => Object.assign({}, meta));
|
|
128972
|
+
});
|
|
128967
128973
|
}
|
|
128968
128974
|
|
|
128969
128975
|
return Promise.resolve([]);
|
|
@@ -128977,13 +128983,7 @@ function loadMetadata(fetchPilets) {
|
|
|
128977
128983
|
*/
|
|
128978
128984
|
|
|
128979
128985
|
function loadPilets(fetchPilets, loadPilet) {
|
|
128980
|
-
return loadMetadata(fetchPilets).then(pilets =>
|
|
128981
|
-
if (!Array.isArray(pilets)) {
|
|
128982
|
-
throw new Error('The fetched pilets metadata is not an array.');
|
|
128983
|
-
}
|
|
128984
|
-
|
|
128985
|
-
return Promise.all(pilets.map(loadPilet));
|
|
128986
|
-
});
|
|
128986
|
+
return loadMetadata(fetchPilets).then(pilets => Promise.all(pilets.map(loadPilet)));
|
|
128987
128987
|
}
|
|
128988
128988
|
/**
|
|
128989
128989
|
* Loads a pilet from the specified metadata and loader function.
|
|
@@ -131098,7 +131098,7 @@ function createInstance(config = {}) {
|
|
|
131098
131098
|
const createApi = apiFactory(context, usedPlugins);
|
|
131099
131099
|
const root = createApi({
|
|
131100
131100
|
name: 'root',
|
|
131101
|
-
version: "0.14.
|
|
131101
|
+
version: "0.14.16-beta.3830" || 0,
|
|
131102
131102
|
spec: ''
|
|
131103
131103
|
});
|
|
131104
131104
|
const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
|
|
@@ -133476,19 +133476,32 @@ function installPiralDebug(options) {
|
|
|
133476
133476
|
});
|
|
133477
133477
|
};
|
|
133478
133478
|
|
|
133479
|
+
const activatePilet = pilet => {
|
|
133480
|
+
try {
|
|
133481
|
+
const {
|
|
133482
|
+
createApi
|
|
133483
|
+
} = options;
|
|
133484
|
+
const newApi = createApi(pilet);
|
|
133485
|
+
injectPilet(pilet);
|
|
133486
|
+
pilet.setup(newApi);
|
|
133487
|
+
} catch (error) {
|
|
133488
|
+
console.error(error);
|
|
133489
|
+
}
|
|
133490
|
+
};
|
|
133491
|
+
|
|
133479
133492
|
const togglePilet = name => {
|
|
133480
133493
|
const pilet = getPilets().find(m => m.name === name);
|
|
133481
133494
|
|
|
133482
|
-
if (pilet
|
|
133483
|
-
|
|
133484
|
-
|
|
133485
|
-
|
|
133486
|
-
|
|
133487
|
-
|
|
133488
|
-
|
|
133489
|
-
|
|
133490
|
-
|
|
133491
|
-
|
|
133495
|
+
if (!pilet) {// nothing to do, obviously invalid call
|
|
133496
|
+
} else if (pilet.disabled) {
|
|
133497
|
+
if (pilet.original) {
|
|
133498
|
+
// everything is fine, let's use the cached version
|
|
133499
|
+
activatePilet(pilet.original);
|
|
133500
|
+
} else {
|
|
133501
|
+
// something fishy is going on - let's just try to activate the same pilet
|
|
133502
|
+
activatePilet(Object.assign(Object.assign({}, pilet), {
|
|
133503
|
+
disabled: false
|
|
133504
|
+
}));
|
|
133492
133505
|
}
|
|
133493
133506
|
} else {
|
|
133494
133507
|
injectPilet({
|
|
@@ -133509,18 +133522,9 @@ function installPiralDebug(options) {
|
|
|
133509
133522
|
|
|
133510
133523
|
const appendPilet = meta => {
|
|
133511
133524
|
const {
|
|
133512
|
-
createApi,
|
|
133513
133525
|
loadPilet
|
|
133514
133526
|
} = options;
|
|
133515
|
-
loadPilet(meta).then(
|
|
133516
|
-
try {
|
|
133517
|
-
const newApi = createApi(pilet);
|
|
133518
|
-
injectPilet(pilet);
|
|
133519
|
-
pilet.setup(newApi);
|
|
133520
|
-
} catch (error) {
|
|
133521
|
-
console.error(error);
|
|
133522
|
-
}
|
|
133523
|
-
});
|
|
133527
|
+
loadPilet(meta).then(activatePilet);
|
|
133524
133528
|
};
|
|
133525
133529
|
|
|
133526
133530
|
const toggleVisualize = () => {
|
|
@@ -133569,12 +133573,12 @@ function installPiralDebug(options) {
|
|
|
133569
133573
|
debug: debugApiVersion,
|
|
133570
133574
|
instance: {
|
|
133571
133575
|
name: "sample-cross-fx",
|
|
133572
|
-
version: "0.14.
|
|
133576
|
+
version: "0.14.16-beta.3830",
|
|
133573
133577
|
dependencies: "@angular/common,@angular/compiler,@angular/core,@angular/platform-browser,@angular/platform-browser-dynamic,@webcomponents/webcomponentsjs,angular,aurelia-framework,aurelia-templating-binding,aurelia-templating-resources,aurelia-pal-browser,aurelia-event-aggregator,aurelia-history-browser,hyperapp,inferno,inferno-create-element,mithril,lit-element,solid-js,solid-js/dom,preact,riot,rxjs,vue,zone.js,react,react-dom,react-router,react-router-dom,history,tslib,path-to-regexp,@libre/atom,@dbeining/react-atom"
|
|
133574
133578
|
},
|
|
133575
133579
|
build: {
|
|
133576
|
-
date: "2022-03-
|
|
133577
|
-
cli: "0.14.
|
|
133580
|
+
date: "2022-03-09T16:29:42.824Z",
|
|
133581
|
+
cli: "0.14.15",
|
|
133578
133582
|
compat: "0.14"
|
|
133579
133583
|
},
|
|
133580
133584
|
pilets: {
|
|
@@ -255742,4 +255746,4 @@ const app = React.createElement(piral_core_1.Piral, {
|
|
|
255742
255746
|
|
|
255743
255747
|
/******/ })()
|
|
255744
255748
|
;
|
|
255745
|
-
//# sourceMappingURL=index.
|
|
255749
|
+
//# sourceMappingURL=index.16a9e2.js.map
|