sample-cross-fx 0.14.15 → 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.
@@ -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.15" || 0,
131101
+ version: "0.14.16-beta.3830" || 0,
131102
131102
  spec: ''
131103
131103
  });
131104
131104
  const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
@@ -133573,11 +133573,11 @@ function installPiralDebug(options) {
133573
133573
  debug: debugApiVersion,
133574
133574
  instance: {
133575
133575
  name: "sample-cross-fx",
133576
- version: "0.14.15",
133576
+ version: "0.14.16-beta.3830",
133577
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"
133578
133578
  },
133579
133579
  build: {
133580
- date: "2022-03-05T09:05:30.679Z",
133580
+ date: "2022-03-09T16:29:42.824Z",
133581
133581
  cli: "0.14.15",
133582
133582
  compat: "0.14"
133583
133583
  },
@@ -255746,4 +255746,4 @@ const app = React.createElement(piral_core_1.Piral, {
255746
255746
 
255747
255747
  /******/ })()
255748
255748
  ;
255749
- //# sourceMappingURL=index.bfba15.js.map
255749
+ //# sourceMappingURL=index.16a9e2.js.map