sample-cross-fx 0.14.14 → 0.14.15-beta.3790

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" || 0,
131101
+ version: "0.14.15-beta.3790" || 0,
131096
131102
  spec: ''
131097
131103
  });
131098
131104
  const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
@@ -133561,11 +133567,11 @@ function installPiralDebug(options) {
133561
133567
  debug: debugApiVersion,
133562
133568
  instance: {
133563
133569
  name: "sample-cross-fx",
133564
- version: "0.14.14",
133570
+ version: "0.14.15-beta.3790",
133565
133571
  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
133572
  },
133567
133573
  build: {
133568
- date: "2022-03-03T01:26:17.722Z",
133574
+ date: "2022-03-04T13:46:13.318Z",
133569
133575
  cli: "0.14.14",
133570
133576
  compat: "0.14"
133571
133577
  },
@@ -133618,11 +133624,9 @@ function installPiralDebug(options) {
133618
133624
  const dependencyMap = {};
133619
133625
 
133620
133626
  const addDeps = (pilet, dependencies) => {
133621
- if (!(pilet in dependencyMap)) {
133622
- dependencyMap[pilet] = [];
133623
- }
133624
-
133625
- dependencyMap[pilet].push(...dependencies);
133627
+ const oldDeps = dependencyMap[pilet] || [];
133628
+ const newDeps = Object.keys(dependencies).filter(depName => !oldDeps.includes(depName));
133629
+ dependencyMap[pilet] = [...oldDeps, ...newDeps];
133626
133630
  };
133627
133631
 
133628
133632
  const pilets = getPilets().map(pilet => ({
@@ -255727,4 +255731,4 @@ const app = React.createElement(piral_core_1.Piral, {
255727
255731
 
255728
255732
  /******/ })()
255729
255733
  ;
255730
- //# sourceMappingURL=index.22d3db.js.map
255734
+ //# sourceMappingURL=index.aca71d.js.map