Changing front

This commit is contained in:
2023-01-16 17:44:37 +01:00
parent 0b8a93b256
commit 4fe4be7730
48586 changed files with 4725790 additions and 17464 deletions

View File

@@ -0,0 +1,54 @@
import {createRequire as __cjsCompatRequire} from 'module';
const require = __cjsCompatRequire(import.meta.url);
const __ESM_IMPORT_META_URL__ = import.meta.url;
import {
mainNgcc
} from "../chunk-4DUYFEVT.js";
import "../chunk-DLVFMDSC.js";
import {
clearTsConfigCache
} from "../chunk-6SQNW4B4.js";
import "../chunk-7BIXVSI3.js";
import "../chunk-QYEU7OV5.js";
import "../chunk-ALSLKTUB.js";
import {
ConsoleLogger,
LogLevel
} from "../chunk-OFXSI6E3.js";
import "../chunk-OUTDZGN7.js";
import "../chunk-TOW3O33K.js";
import "../chunk-DSVWG4QJ.js";
import {
NodeJSFileSystem,
setFileSystem
} from "../chunk-E7DPJFUS.js";
import "../chunk-4F26FKLW.js";
import "../chunk-NDREJTCS.js";
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/index.mjs
import { dirname, join } from "path";
import { fileURLToPath } from "url";
function process(options) {
setFileSystem(new NodeJSFileSystem());
return mainNgcc(options);
}
var containingDirPath = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(__ESM_IMPORT_META_URL__));
var ngccMainFilePath = join(containingDirPath, "./main-ngcc.js");
export {
ConsoleLogger,
LogLevel,
clearTsConfigCache,
containingDirPath,
ngccMainFilePath,
process
};
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,6 @@
{
"version": 3,
"sources": ["../../../../../../../packages/compiler-cli/ngcc/index.ts"],
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAQ,SAAS,YAAW;AAC5B,SAAQ,qBAAoB;AAatB,SAAU,QAAQ,SAAyC;AAC/D,gBAAc,IAAI,iBAAgB,CAAE;AACpC,SAAO,SAAS,OAAO;AACzB;AAMO,IAAM,oBACT,OAAO,cAAc,cAAc,YAAY,QAAQ,cAAc,uBAAuB,CAAC;AAQ1F,IAAM,mBAAmB,KAAK,mBAAmB,gBAAgB;",
"names": []
}

View File

@@ -0,0 +1,50 @@
#!/usr/bin/env node
import {createRequire as __cjsCompatRequire} from 'module';
const require = __cjsCompatRequire(import.meta.url);
const __ESM_IMPORT_META_URL__ = import.meta.url;
import {
parseCommandLineOptions
} from "../chunk-QVO57CDR.js";
import {
mainNgcc
} from "../chunk-4DUYFEVT.js";
import "../chunk-DLVFMDSC.js";
import "../chunk-6SQNW4B4.js";
import "../chunk-7BIXVSI3.js";
import "../chunk-QYEU7OV5.js";
import "../chunk-ALSLKTUB.js";
import "../chunk-OFXSI6E3.js";
import "../chunk-OUTDZGN7.js";
import "../chunk-TOW3O33K.js";
import "../chunk-DSVWG4QJ.js";
import "../chunk-E7DPJFUS.js";
import "../chunk-4F26FKLW.js";
import "../chunk-NDREJTCS.js";
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/main-ngcc.mjs
process.title = "ngcc";
var startTime = Date.now();
var options = parseCommandLineOptions(process.argv.slice(2));
(async () => {
try {
await mainNgcc(options);
if (options.logger) {
const duration = Math.round((Date.now() - startTime) / 1e3);
options.logger.debug(`Run ngcc in ${duration}s.`);
}
process.exitCode = 0;
} catch (e) {
console.error(e.stack || e.message);
process.exit(typeof e.code === "number" ? e.code : 1);
}
})();
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
//# sourceMappingURL=main-ngcc.js.map

View File

@@ -0,0 +1,6 @@
{
"version": 3,
"sources": ["../../../../../../../packages/compiler-cli/ngcc/main-ngcc.ts"],
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,QAAQ,QAAQ;AAChB,IAAM,YAAY,KAAK,IAAG;AAC1B,IAAM,UAAU,wBAAwB,QAAQ,KAAK,MAAM,CAAC,CAAC;CAC5D,YAAW;AACV,MAAI;AACF,UAAM,SAAS,OAAO;AACtB,QAAI,QAAQ,QAAQ;AAClB,YAAM,WAAW,KAAK,OAAO,KAAK,IAAG,IAAK,aAAa,GAAI;AAC3D,cAAQ,OAAO,MAAM,eAAe,YAAY;;AAElD,YAAQ,WAAW;WACZ,GAAP;AACA,YAAQ,MAAO,EAAY,SAAU,EAAY,OAAO;AACxD,YAAQ,KAAK,OAAO,EAAE,SAAS,WAAW,EAAE,OAAO,CAAC;;AAExD,GAAE;",
"names": []
}

View File

@@ -0,0 +1,114 @@
import {createRequire as __cjsCompatRequire} from 'module';
const require = __cjsCompatRequire(import.meta.url);
const __ESM_IMPORT_META_URL__ = import.meta.url;
import {
parseCommandLineOptions
} from "../../../../chunk-QVO57CDR.js";
import {
PackageJsonUpdate,
applyChange,
getCreateCompileFn,
getSharedSetup,
sendMessageToMaster,
stringifyTask
} from "../../../../chunk-6SQNW4B4.js";
import "../../../../chunk-7BIXVSI3.js";
import "../../../../chunk-QYEU7OV5.js";
import "../../../../chunk-ALSLKTUB.js";
import "../../../../chunk-OFXSI6E3.js";
import "../../../../chunk-OUTDZGN7.js";
import "../../../../chunk-TOW3O33K.js";
import "../../../../chunk-DSVWG4QJ.js";
import "../../../../chunk-E7DPJFUS.js";
import "../../../../chunk-4F26FKLW.js";
import "../../../../chunk-NDREJTCS.js";
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/package_json_updater.mjs
import cluster from "cluster";
var ClusterWorkerPackageJsonUpdater = class {
constructor() {
if (cluster.isMaster) {
throw new Error("Tried to create cluster worker PackageJsonUpdater on the master process.");
}
}
createUpdate() {
return new PackageJsonUpdate((...args) => this.writeChanges(...args));
}
writeChanges(changes, packageJsonPath, preExistingParsedJson) {
if (preExistingParsedJson) {
for (const [propPath, value] of changes) {
if (propPath.length === 0) {
throw new Error(`Missing property path for writing value to '${packageJsonPath}'.`);
}
applyChange(preExistingParsedJson, propPath, value, "unimportant");
}
}
sendMessageToMaster({
type: "update-package-json",
packageJsonPath,
changes
});
}
};
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/worker.mjs
import cluster2 from "cluster";
async function startWorker(logger, createCompileFn) {
if (cluster2.isMaster) {
throw new Error("Tried to run cluster worker on the master process.");
}
const compile = createCompileFn((transformedFiles) => sendMessageToMaster({
type: "transformed-files",
files: transformedFiles.map((f) => f.path)
}), (_task, outcome, message) => sendMessageToMaster({ type: "task-completed", outcome, message }));
cluster2.worker.on("message", async (msg) => {
try {
switch (msg.type) {
case "process-task":
logger.debug(`[Worker #${cluster2.worker.id}] Processing task: ${stringifyTask(msg.task)}`);
return await compile(msg.task);
default:
throw new Error(`[Worker #${cluster2.worker.id}] Invalid message received: ${JSON.stringify(msg)}`);
}
} catch (err) {
switch (err && err.code) {
case "ENOMEM":
logger.warn(`[Worker #${cluster2.worker.id}] ${err.stack || err.message}`);
return process.exit(1);
default:
await sendMessageToMaster({
type: "error",
error: err instanceof Error ? err.stack || err.message : err
});
}
}
});
await sendMessageToMaster({ type: "ready" });
return new Promise(() => void 0);
}
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/ngcc_cluster_worker.mjs
(async () => {
process.title = "ngcc (worker)";
try {
const { logger, pathMappings, enableI18nLegacyMessageIdFormat, fileSystem, tsConfig, getFileWriter } = getSharedSetup(parseCommandLineOptions(process.argv.slice(2)));
const pkgJsonUpdater = new ClusterWorkerPackageJsonUpdater();
const fileWriter = getFileWriter(pkgJsonUpdater);
const createCompileFn = getCreateCompileFn(fileSystem, logger, fileWriter, enableI18nLegacyMessageIdFormat, tsConfig, pathMappings);
await startWorker(logger, createCompileFn);
process.exitCode = 0;
} catch (e) {
console.error(e.stack || e.message);
process.exit(1);
}
})();
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
//# sourceMappingURL=ngcc_cluster_worker.js.map

View File

@@ -0,0 +1,6 @@
{
"version": 3,
"sources": ["../../../../../../../../../../packages/compiler-cli/ngcc/src/execution/cluster/package_json_updater.ts", "../../../../../../../../../../packages/compiler-cli/ngcc/src/execution/cluster/worker.ts", "../../../../../../../../../../packages/compiler-cli/ngcc/src/execution/cluster/ngcc_cluster_worker.ts"],
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,OAAO,aAAa;AAad,IAAO,kCAAP,MAAsC;EAC1C,cAAA;AACE,QAAI,QAAQ,UAAU;AACpB,YAAM,IAAI,MAAM,0EAA0E;;EAE9F;EAEA,eAAY;AACV,WAAO,IAAI,kBAAkB,IAAI,SAAS,KAAK,aAAa,GAAG,IAAI,CAAC;EACtE;EAKA,aACI,SAA8B,iBAC9B,uBAAkC;AACpC,QAAI,uBAAuB;AACzB,iBAAW,CAAC,UAAU,KAAK,KAAK,SAAS;AACvC,YAAI,SAAS,WAAW,GAAG;AACzB,gBAAM,IAAI,MAAM,+CAA+C,mBAAmB;;AAIpF,oBAAY,uBAAuB,UAAU,OAAO,aAAa;;;AAIrE,wBAAoB;MAClB,MAAM;MACN;MACA;KACD;EACH;;;;AC/CF,OAAOA,cAAa;AASpB,eAAsB,YAAY,QAAgB,iBAAgC;AAChF,MAAIC,SAAQ,UAAU;AACpB,UAAM,IAAI,MAAM,oDAAoD;;AAGtE,QAAM,UAAU,gBACZ,sBAAoB,oBAAoB;IACtC,MAAM;IACN,OAAO,iBAAiB,IAAI,OAAK,EAAE,IAAI;GACxC,GACD,CAAC,OAAO,SAAS,YAAY,oBAAoB,EAAC,MAAM,kBAAkB,SAAS,QAAO,CAAC,CAAC;AAGhG,EAAAA,SAAQ,OAAO,GAAG,WAAW,OAAO,QAAwB;AAC1D,QAAI;AACF,cAAQ,IAAI,MAAM;QAChB,KAAK;AACH,iBAAO,MACH,YAAYA,SAAQ,OAAO,wBAAwB,cAAc,IAAI,IAAI,GAAG;AAChF,iBAAO,MAAM,QAAQ,IAAI,IAAI;QAC/B;AACE,gBAAM,IAAI,MACN,YAAYA,SAAQ,OAAO,iCAAiC,KAAK,UAAU,GAAG,GAAG;;aAElF,KAAP;AACA,cAAQ,OAAO,IAAI,MAAM;QACvB,KAAK;AAMH,iBAAO,KAAK,YAAYA,SAAQ,OAAO,OAAO,IAAI,SAAS,IAAI,SAAS;AACxE,iBAAO,QAAQ,KAAK,CAAC;QACvB;AACE,gBAAM,oBAAoB;YACxB,MAAM;YACN,OAAQ,eAAe,QAAU,IAAI,SAAS,IAAI,UAAW;WAC9D;;;EAGT,CAAC;AAGD,QAAM,oBAAoB,EAAC,MAAM,QAAO,CAAC;AAIzC,SAAO,IAAI,QAAQ,MAAM,MAAS;AACpC;;;CCnDC,YAAW;AACV,UAAQ,QAAQ;AAEhB,MAAI;AACF,UAAM,EACJ,QACA,cACA,iCACA,YACA,UACA,cAAa,IACX,eAAe,wBAAwB,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC;AAKjE,UAAM,iBAAiB,IAAI,gCAA+B;AAC1D,UAAM,aAAa,cAAc,cAAc;AAG/C,UAAM,kBAAkB,mBACpB,YAAY,QAAQ,YAAY,iCAAiC,UAAU,YAAY;AAE3F,UAAM,YAAY,QAAQ,eAAe;AACzC,YAAQ,WAAW;WACZ,GAAP;AACA,YAAQ,MAAO,EAAY,SAAU,EAAY,OAAO;AACxD,YAAQ,KAAK,CAAC;;AAElB,GAAE;",
"names": ["cluster", "cluster"]
}

View File

@@ -0,0 +1,35 @@
import {createRequire as __cjsCompatRequire} from 'module';
const require = __cjsCompatRequire(import.meta.url);
const __ESM_IMPORT_META_URL__ = import.meta.url;
import {
removeLockFile
} from "../../../../chunk-DLVFMDSC.js";
import {
ConsoleLogger
} from "../../../../chunk-OFXSI6E3.js";
import {
NodeJSFileSystem
} from "../../../../chunk-E7DPJFUS.js";
import "../../../../chunk-NDREJTCS.js";
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.mjs
var fs = new NodeJSFileSystem();
var logLevel = parseInt(process.argv.pop(), 10);
var logger = new ConsoleLogger(logLevel);
var ppid = process.ppid.toString();
var lockFilePath = fs.resolve(process.argv.pop());
logger.debug(`Starting unlocker at process ${process.pid} on behalf of process ${ppid}`);
logger.debug(`The lock-file path is ${lockFilePath}`);
process.on("disconnect", () => {
removeLockFile(fs, logger, lockFilePath, ppid);
});
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
//# sourceMappingURL=ngcc_lock_unlocker.js.map

View File

@@ -0,0 +1,6 @@
{
"version": 3,
"sources": ["../../../../../../../../../../packages/compiler-cli/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.ts"],
"mappings": ";;;;;;;;;;;;;;;;;AAkBA,IAAM,KAAK,IAAI,iBAAgB;AAI/B,IAAM,WAAW,SAAS,QAAQ,KAAK,IAAG,GAAK,EAAE;AACjD,IAAM,SAAS,IAAI,cAAc,QAAQ;AAGzC,IAAM,OAAO,QAAQ,KAAK,SAAQ;AAGlC,IAAM,eAAe,GAAG,QAAQ,QAAQ,KAAK,IAAG,CAAG;AAEnD,OAAO,MAAM,gCAAgC,QAAQ,4BAA4B,MAAM;AACvF,OAAO,MAAM,yBAAyB,cAAc;AAMpD,QAAQ,GAAG,cAAc,MAAK;AAC5B,iBAAe,IAAI,QAAQ,cAAc,IAAI;AAC/C,CAAC;",
"names": []
}