sample-cross-fx 0.14.12 → 0.14.13
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.397784.js → index.150056.js} +103 -22
- package/app/{index.397784.js.map → index.150056.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 +17 -17
|
@@ -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);
|
|
@@ -129391,16 +129429,6 @@ function registerModule(name, resolve) {
|
|
|
129391
129429
|
return content.then(_exports);
|
|
129392
129430
|
} else {
|
|
129393
129431
|
_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
129432
|
}
|
|
129405
129433
|
}
|
|
129406
129434
|
|
|
@@ -131013,7 +131041,7 @@ function createInstance(config = {}) {
|
|
|
131013
131041
|
const createApi = apiFactory(context, usedPlugins);
|
|
131014
131042
|
const root = createApi({
|
|
131015
131043
|
name: 'root',
|
|
131016
|
-
version: "0.14.
|
|
131044
|
+
version: "0.14.13" || 0,
|
|
131017
131045
|
spec: ''
|
|
131018
131046
|
});
|
|
131019
131047
|
const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
|
|
@@ -133396,15 +133424,29 @@ function installPiralDebug(options) {
|
|
|
133396
133424
|
};
|
|
133397
133425
|
|
|
133398
133426
|
const eventDispatcher = document.body.dispatchEvent;
|
|
133427
|
+
const systemResolve = System.constructor.prototype.resolve;
|
|
133428
|
+
const depMap = {};
|
|
133429
|
+
|
|
133430
|
+
System.constructor.prototype.resolve = function (...args) {
|
|
133431
|
+
const [url, parent] = args;
|
|
133432
|
+
|
|
133433
|
+
if (parent) {
|
|
133434
|
+
depMap[parent] = depMap[parent] || {};
|
|
133435
|
+
depMap[parent][url] = true;
|
|
133436
|
+
}
|
|
133437
|
+
|
|
133438
|
+
return systemResolve.call(this, ...args);
|
|
133439
|
+
};
|
|
133440
|
+
|
|
133399
133441
|
const debugApi = {
|
|
133400
133442
|
debug: debugApiVersion,
|
|
133401
133443
|
instance: {
|
|
133402
133444
|
name: "sample-cross-fx",
|
|
133403
|
-
version: "0.14.
|
|
133445
|
+
version: "0.14.13",
|
|
133404
133446
|
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
133447
|
},
|
|
133406
133448
|
build: {
|
|
133407
|
-
date: "2022-02-
|
|
133449
|
+
date: "2022-02-27T09:08:59.834Z",
|
|
133408
133450
|
cli: "0.14.12",
|
|
133409
133451
|
compat: "0.14"
|
|
133410
133452
|
},
|
|
@@ -133413,6 +133455,13 @@ function installPiralDebug(options) {
|
|
|
133413
133455
|
createApi
|
|
133414
133456
|
}
|
|
133415
133457
|
};
|
|
133458
|
+
const details = {
|
|
133459
|
+
name: debugApi.instance.name,
|
|
133460
|
+
version: debugApi.instance.version,
|
|
133461
|
+
kind: debugApiVersion,
|
|
133462
|
+
mode: false ? 0 : 'development',
|
|
133463
|
+
capabilities: ['events', 'container', 'routes', 'pilets', 'settings', 'extensions', 'dependencies', 'dependency-map']
|
|
133464
|
+
};
|
|
133416
133465
|
|
|
133417
133466
|
const start = () => {
|
|
133418
133467
|
const container = (0,_decycle__WEBPACK_IMPORTED_MODULE_1__.decycle)(getGlobalState());
|
|
@@ -133425,13 +133474,9 @@ function installPiralDebug(options) {
|
|
|
133425
133474
|
version: pilet.version,
|
|
133426
133475
|
disabled: pilet.disabled
|
|
133427
133476
|
}));
|
|
133428
|
-
sendMessage({
|
|
133429
|
-
type: 'available'
|
|
133430
|
-
|
|
133431
|
-
version: debugApi.instance.version,
|
|
133432
|
-
kind: debugApiVersion,
|
|
133433
|
-
mode: false ? 0 : 'development',
|
|
133434
|
-
capabilities: ['events', 'container', 'routes', 'pilets', 'settings', 'extensions', 'dependencies'],
|
|
133477
|
+
sendMessage(Object.assign(Object.assign({
|
|
133478
|
+
type: 'available'
|
|
133479
|
+
}, details), {
|
|
133435
133480
|
state: {
|
|
133436
133481
|
routes,
|
|
133437
133482
|
pilets,
|
|
@@ -133441,6 +133486,32 @@ function installPiralDebug(options) {
|
|
|
133441
133486
|
extensions,
|
|
133442
133487
|
dependencies
|
|
133443
133488
|
}
|
|
133489
|
+
}));
|
|
133490
|
+
};
|
|
133491
|
+
|
|
133492
|
+
const check = () => {
|
|
133493
|
+
sendMessage(Object.assign({
|
|
133494
|
+
type: 'info'
|
|
133495
|
+
}, details));
|
|
133496
|
+
};
|
|
133497
|
+
|
|
133498
|
+
const getDependencyMap = () => {
|
|
133499
|
+
const dependencyMap = {};
|
|
133500
|
+
const pilets = getPilets().map(pilet => ({
|
|
133501
|
+
name: pilet.name,
|
|
133502
|
+
link: pilet.link
|
|
133503
|
+
})).filter(m => m.link);
|
|
133504
|
+
Object.keys(depMap).forEach(url => {
|
|
133505
|
+
const dependencies = depMap[url];
|
|
133506
|
+
const pilet = pilets.find(p => p.link === url);
|
|
133507
|
+
|
|
133508
|
+
if (pilet) {
|
|
133509
|
+
dependencyMap[pilet.name] = dependencies;
|
|
133510
|
+
}
|
|
133511
|
+
});
|
|
133512
|
+
sendMessage({
|
|
133513
|
+
type: 'dependency-map',
|
|
133514
|
+
dependencyMap
|
|
133444
133515
|
});
|
|
133445
133516
|
};
|
|
133446
133517
|
|
|
@@ -133485,6 +133556,12 @@ function installPiralDebug(options) {
|
|
|
133485
133556
|
case 'init':
|
|
133486
133557
|
return start();
|
|
133487
133558
|
|
|
133559
|
+
case 'check-piral':
|
|
133560
|
+
return check();
|
|
133561
|
+
|
|
133562
|
+
case 'get-dependency-map':
|
|
133563
|
+
return getDependencyMap();
|
|
133564
|
+
|
|
133488
133565
|
case 'update-settings':
|
|
133489
133566
|
return updateSettings(content.settings);
|
|
133490
133567
|
|
|
@@ -133727,7 +133804,11 @@ function withEmulatorPilets(requestPilets, options) {
|
|
|
133727
133804
|
return promise.catch(err => {
|
|
133728
133805
|
console.error(`Requesting the pilets failed. We'll continue loading without pilets (DEBUG only).`, err);
|
|
133729
133806
|
return [];
|
|
133730
|
-
}).then(pilets => appendix.then(debugPilets =>
|
|
133807
|
+
}).then(pilets => appendix.then(debugPilets => {
|
|
133808
|
+
const debugPiletNames = debugPilets.map(m => m.name);
|
|
133809
|
+
const feedPilets = pilets.filter(m => !debugPiletNames.includes(m.name));
|
|
133810
|
+
return [...feedPilets, ...debugPilets];
|
|
133811
|
+
}));
|
|
133731
133812
|
};
|
|
133732
133813
|
}
|
|
133733
133814
|
|
|
@@ -255482,4 +255563,4 @@ const app = React.createElement(piral_core_1.Piral, {
|
|
|
255482
255563
|
|
|
255483
255564
|
/******/ })()
|
|
255484
255565
|
;
|
|
255485
|
-
//# sourceMappingURL=index.
|
|
255566
|
+
//# sourceMappingURL=index.150056.js.map
|