sample-cross-fx 0.14.14-beta.3767 → 0.14.15-beta.3791

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.
@@ -128654,8 +128654,9 @@ __webpack_require__.r(__webpack_exports__);
128654
128654
  /* harmony export */ "includeDependency": () => (/* binding */ includeDependency),
128655
128655
  /* harmony export */ "includeBundle": () => (/* binding */ includeBundle)
128656
128656
  /* harmony export */ });
128657
- function requireModule(name) {
128658
- const dependency = System.get(name);
128657
+ function requireModule(name, parent) {
128658
+ const moduleId = System.resolve(name, parent);
128659
+ const dependency = moduleId && System.get(moduleId);
128659
128660
 
128660
128661
  if (!dependency) {
128661
128662
  const error = new Error(`Cannot find module '${name}'`);
@@ -128701,7 +128702,11 @@ function evalDependency(name, content, link = '') {
128701
128702
  try {
128702
128703
  const sourceUrl = link && `\n//# sourceURL=${link}`;
128703
128704
  const importer = new Function('module', 'exports', 'require', content + sourceUrl);
128704
- importer(mod, mod.exports, requireModule);
128705
+ const parent = link || name;
128706
+
128707
+ const require = moduleId => requireModule(moduleId, parent);
128708
+
128709
+ importer(mod, mod.exports, require);
128705
128710
  } catch (e) {
128706
128711
  console.error(`Error while evaluating ${name}.`, e);
128707
128712
  }
@@ -128722,7 +128727,8 @@ function compileDependency(name, content, link = '') {
128722
128727
  }
128723
128728
 
128724
128729
  function includeScript(piletName, depName, link, integrity, crossOrigin) {
128725
- window[depName] = requireModule;
128730
+ window[depName] = moduleId => requireModule(moduleId, link);
128731
+
128726
128732
  return includeScriptDependency(link, integrity, crossOrigin).then(s => checkPiletAppAsync(piletName, s.app), () => checkPiletApp(piletName));
128727
128733
  }
128728
128734
  /**
@@ -131092,7 +131098,7 @@ function createInstance(config = {}) {
131092
131098
  const createApi = apiFactory(context, usedPlugins);
131093
131099
  const root = createApi({
131094
131100
  name: 'root',
131095
- version: "0.14.14-beta.3767" || 0,
131101
+ version: "0.14.15-beta.3791" || 0,
131096
131102
  spec: ''
131097
131103
  });
131098
131104
  const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
@@ -133548,25 +133554,27 @@ function installPiralDebug(options) {
133548
133554
 
133549
133555
  System.constructor.prototype.resolve = function (...args) {
133550
133556
  const [url, parent] = args;
133557
+ const result = systemResolve.call(this, ...args);
133551
133558
 
133552
133559
  if (parent) {
133553
- depMap[parent] = depMap[parent] || {};
133554
- depMap[parent][url] = true;
133560
+ const deps = depMap[parent] || {};
133561
+ deps[url] = result;
133562
+ depMap[parent] = deps;
133555
133563
  }
133556
133564
 
133557
- return systemResolve.call(this, ...args);
133565
+ return result;
133558
133566
  };
133559
133567
 
133560
133568
  const debugApi = {
133561
133569
  debug: debugApiVersion,
133562
133570
  instance: {
133563
133571
  name: "sample-cross-fx",
133564
- version: "0.14.14-beta.3767",
133572
+ version: "0.14.15-beta.3791",
133565
133573
  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"
133566
133574
  },
133567
133575
  build: {
133568
- date: "2022-03-02T21:12:58.402Z",
133569
- cli: "0.14.13",
133576
+ date: "2022-03-04T16:05:59.260Z",
133577
+ cli: "0.14.14",
133570
133578
  compat: "0.14"
133571
133579
  },
133572
133580
  pilets: {
@@ -133618,11 +133626,18 @@ function installPiralDebug(options) {
133618
133626
  const dependencyMap = {};
133619
133627
 
133620
133628
  const addDeps = (pilet, dependencies) => {
133621
- if (!(pilet in dependencyMap)) {
133622
- dependencyMap[pilet] = [];
133629
+ const deps = dependencyMap[pilet] || [];
133630
+
133631
+ for (const depName of Object.keys(dependencies)) {
133632
+ if (!deps.some(m => m.demanded === depName)) {
133633
+ deps.push({
133634
+ demanded: depName,
133635
+ resolved: dependencies[depName]
133636
+ });
133637
+ }
133623
133638
  }
133624
133639
 
133625
- dependencyMap[pilet].push(...dependencies);
133640
+ dependencyMap[pilet] = deps;
133626
133641
  };
133627
133642
 
133628
133643
  const pilets = getPilets().map(pilet => ({
@@ -255727,4 +255742,4 @@ const app = React.createElement(piral_core_1.Piral, {
255727
255742
 
255728
255743
  /******/ })()
255729
255744
  ;
255730
- //# sourceMappingURL=index.38693d.js.map
255745
+ //# sourceMappingURL=index.b64adf.js.map