This commit is contained in:
gilesb 2023-11-23 00:11:17 +00:00
parent 14954deeb0
commit 14538b6708
1 changed files with 22 additions and 20 deletions

View File

@ -29388,20 +29388,35 @@ var external_path_default = /*#__PURE__*/__nccwpck_require__.n(external_path_);
// EXTERNAL MODULE: ../../../node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/index.js
var lib = __nccwpck_require__(4305);
var lib_default = /*#__PURE__*/__nccwpck_require__.n(lib);
;// CONCATENATED MODULE: ./src/document/lib/sequence.js
/* harmony default export */ const sequence = (async (promises) => {
let results = [];
// eslint-disable-next-line no-restricted-syntax
for (const promise of promises) {
results = [
...results,
// eslint-disable-next-line no-await-in-loop
await promise(),
];
}
return results;
});
;// CONCATENATED MODULE: ./src/data.js
/* harmony default export */ const data = (async ({ dir, exclude }) => (
await Promise.all(
await sequence(
(await external_fs_.promises.readdir(dir))
.filter(
(name) => name !== exclude
&& external_path_default().extname(name) === '.xml',
)
.map(
(name) => external_fs_.promises.readFile(
(name) => () => external_fs_.promises.readFile(
`${dir}/${name}`,
).then(
(buffer) => ({
@ -29463,20 +29478,6 @@ const removeDir = async (path) => {
/* harmony default export */ const remove_dir = (removeDir);
;// CONCATENATED MODULE: ./src/document/lib/sequence.js
/* harmony default export */ const sequence = (async (promises) => {
let results = [];
// eslint-disable-next-line no-restricted-syntax
for (const promise of promises) {
results = [
...results,
// eslint-disable-next-line no-await-in-loop
await promise(),
];
}
return results;
});
;// CONCATENATED MODULE: ./src/document/lib/table-line.js
@ -29992,14 +29993,15 @@ const findDisplay = (line, link) => {
/* harmony default export */ const document_displays = (async ({
displays,
myDisplayFields,
root,
}) => {
await mkdir_if_new(`${root}/displays`);
await Promise.all(
displays.map(async (display) => {
await sequence(
displays.map((display) => async () => {
const fileName = `${root}/displays/${display.name}.md`;
await external_fs_.promises.appendFile(
fileName,
@ -30315,8 +30317,8 @@ const findDisplay = (line, link) => {
`${root}/globals/README.md`,
'# globals\n\n',
);
await Promise.all(
globals.map(async (global) => {
await sequence(
globals.map((global) => async () => {
await external_fs_.promises.appendFile(
`${root}/globals/README.md`,
`* [${global.name}](./${global.name})\n`,