sample-cross-fx 0.14.12-beta.3703 → 0.14.13-beta.3733

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.
@@ -129334,11 +129334,49 @@ __webpack_require__.r(__webpack_exports__);
129334
129334
 
129335
129335
 
129336
129336
 
129337
+
129338
+ function isPrimitiveExport(content) {
129339
+ const type = typeof content;
129340
+ return type === 'function' || type === 'number' || type === 'boolean' || type === 'symbol' || type === 'string' || type === 'bigint' || Array.isArray(content);
129341
+ }
129342
+
129343
+ const systemRegister = System.constructor.prototype.register;
129344
+
129345
+ System.constructor.prototype.register = function (...args) {
129346
+ const getContent = args.pop();
129347
+ args.push((_export, ctx) => {
129348
+ const exp = (...p) => {
129349
+ if (p.length === 1) {
129350
+ const content = p[0];
129351
+
129352
+ if (content instanceof Promise) {
129353
+ return content.then(exp);
129354
+ } else if (isPrimitiveExport(content)) {
129355
+ _export('__esModule', true);
129356
+
129357
+ _export('default', content);
129358
+ } else if (content) {
129359
+ _export(content);
129360
+
129361
+ if (typeof content === 'object' && !('default' in content)) {
129362
+ _export('default', content);
129363
+ }
129364
+ }
129365
+ } else {
129366
+ _export(...p);
129367
+ }
129368
+ };
129369
+
129370
+ return getContent(exp, ctx);
129371
+ });
129372
+ return systemRegister.apply(this, args);
129373
+ };
129337
129374
  /**
129338
129375
  * Loads the provided SystemJS-powered pilet.
129339
129376
  * @param meta The pilet's metadata.
129340
129377
  */
129341
129378
 
129379
+
129342
129380
  function loadSystemPilet(meta) {
129343
129381
  const deps = meta.dependencies;
129344
129382
  const link = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.setBasePath)(meta, meta.link);
@@ -129385,23 +129423,7 @@ function registerDependencies(modules) {
129385
129423
  function registerModule(name, resolve) {
129386
129424
  System.register(name, [], _exports => ({
129387
129425
  execute() {
129388
- const content = resolve();
129389
-
129390
- if (content instanceof Promise) {
129391
- return content.then(_exports);
129392
- } else {
129393
- _exports(content);
129394
-
129395
- if (typeof content === 'function') {
129396
- _exports('__esModule', true);
129397
-
129398
- _exports('default', content);
129399
- } else if (typeof content === 'object') {
129400
- if (content && !Array.isArray(content) && !('default' in content)) {
129401
- _exports('default', content);
129402
- }
129403
- }
129404
- }
129426
+ _exports(resolve());
129405
129427
  }
129406
129428
 
129407
129429
  }));
@@ -131013,7 +131035,7 @@ function createInstance(config = {}) {
131013
131035
  const createApi = apiFactory(context, usedPlugins);
131014
131036
  const root = createApi({
131015
131037
  name: 'root',
131016
- version: "0.14.12-beta.3703" || 0,
131038
+ version: "0.14.13-beta.3733" || 0,
131017
131039
  spec: ''
131018
131040
  });
131019
131041
  const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
@@ -133396,16 +133418,30 @@ function installPiralDebug(options) {
133396
133418
  };
133397
133419
 
133398
133420
  const eventDispatcher = document.body.dispatchEvent;
133421
+ const systemResolve = System.constructor.prototype.resolve;
133422
+ const depMap = {};
133423
+
133424
+ System.constructor.prototype.resolve = function (...args) {
133425
+ const [url, parent] = args;
133426
+
133427
+ if (parent) {
133428
+ depMap[parent] = depMap[parent] || {};
133429
+ depMap[parent][url] = true;
133430
+ }
133431
+
133432
+ return systemResolve.call(this, ...args);
133433
+ };
133434
+
133399
133435
  const debugApi = {
133400
133436
  debug: debugApiVersion,
133401
133437
  instance: {
133402
133438
  name: "sample-cross-fx",
133403
- version: "0.14.12-beta.3703",
133439
+ version: "0.14.13-beta.3733",
133404
133440
  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"
133405
133441
  },
133406
133442
  build: {
133407
- date: "2022-02-20T19:40:08.918Z",
133408
- cli: "0.14.11",
133443
+ date: "2022-02-26T15:36:19.997Z",
133444
+ cli: "0.14.12",
133409
133445
  compat: "0.14"
133410
133446
  },
133411
133447
  pilets: {
@@ -133413,6 +133449,13 @@ function installPiralDebug(options) {
133413
133449
  createApi
133414
133450
  }
133415
133451
  };
133452
+ const details = {
133453
+ name: debugApi.instance.name,
133454
+ version: debugApi.instance.version,
133455
+ kind: debugApiVersion,
133456
+ mode: false ? 0 : 'development',
133457
+ capabilities: ['events', 'container', 'routes', 'pilets', 'settings', 'extensions', 'dependencies', 'dependency-map']
133458
+ };
133416
133459
 
133417
133460
  const start = () => {
133418
133461
  const container = (0,_decycle__WEBPACK_IMPORTED_MODULE_1__.decycle)(getGlobalState());
@@ -133425,13 +133468,9 @@ function installPiralDebug(options) {
133425
133468
  version: pilet.version,
133426
133469
  disabled: pilet.disabled
133427
133470
  }));
133428
- sendMessage({
133429
- type: 'available',
133430
- name: debugApi.instance.name,
133431
- version: debugApi.instance.version,
133432
- kind: debugApiVersion,
133433
- mode: false ? 0 : 'development',
133434
- capabilities: ['events', 'container', 'routes', 'pilets', 'settings', 'extensions', 'dependencies'],
133471
+ sendMessage(Object.assign(Object.assign({
133472
+ type: 'available'
133473
+ }, details), {
133435
133474
  state: {
133436
133475
  routes,
133437
133476
  pilets,
@@ -133441,6 +133480,32 @@ function installPiralDebug(options) {
133441
133480
  extensions,
133442
133481
  dependencies
133443
133482
  }
133483
+ }));
133484
+ };
133485
+
133486
+ const check = () => {
133487
+ sendMessage(Object.assign({
133488
+ type: 'info'
133489
+ }, details));
133490
+ };
133491
+
133492
+ const getDependencyMap = () => {
133493
+ const dependencyMap = {};
133494
+ const pilets = getPilets().map(pilet => ({
133495
+ name: pilet.name,
133496
+ link: pilet.link
133497
+ })).filter(m => m.link);
133498
+ Object.keys(depMap).forEach(url => {
133499
+ const dependencies = depMap[url];
133500
+ const pilet = pilets.find(p => p.link === url);
133501
+
133502
+ if (pilet) {
133503
+ dependencyMap[pilet.name] = dependencies;
133504
+ }
133505
+ });
133506
+ sendMessage({
133507
+ type: 'dependency-map',
133508
+ dependencyMap
133444
133509
  });
133445
133510
  };
133446
133511
 
@@ -133485,6 +133550,12 @@ function installPiralDebug(options) {
133485
133550
  case 'init':
133486
133551
  return start();
133487
133552
 
133553
+ case 'check-piral':
133554
+ return check();
133555
+
133556
+ case 'get-dependency-map':
133557
+ return getDependencyMap();
133558
+
133488
133559
  case 'update-settings':
133489
133560
  return updateSettings(content.settings);
133490
133561
 
@@ -133727,7 +133798,11 @@ function withEmulatorPilets(requestPilets, options) {
133727
133798
  return promise.catch(err => {
133728
133799
  console.error(`Requesting the pilets failed. We'll continue loading without pilets (DEBUG only).`, err);
133729
133800
  return [];
133730
- }).then(pilets => appendix.then(debugPilets => [...pilets, ...debugPilets]));
133801
+ }).then(pilets => appendix.then(debugPilets => {
133802
+ const debugPiletNames = debugPilets.map(m => m.name);
133803
+ const feedPilets = pilets.filter(m => !debugPiletNames.includes(m.name));
133804
+ return [...feedPilets, ...debugPilets];
133805
+ }));
133731
133806
  };
133732
133807
  }
133733
133808
 
@@ -255482,4 +255557,4 @@ const app = React.createElement(piral_core_1.Piral, {
255482
255557
 
255483
255558
  /******/ })()
255484
255559
  ;
255485
- //# sourceMappingURL=index.4c1cd3.js.map
255560
+ //# sourceMappingURL=index.d4b494.js.map