Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

Location:
trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/action-executor.js

    r59329aa re29cc2e  
    6363        for (const action of actions) {
    6464            const execution = executor(action);
    65             executions.set(execution, execution.then((result) => {
    66                 executions.delete(execution);
    67                 return result;
    68             }));
     65            executions.set(execution, execution.then((result) => [execution, result]));
    6966        }
    7067        while (executions.size > 0) {
    71             yield Promise.race(executions.values());
     68            const [execution, result] = await Promise.race(executions.values());
     69            executions.delete(execution);
     70            yield result;
    7271        }
    7372    }
  • trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/process-bundle.d.ts

    r59329aa re29cc2e  
    2525    replacements?: [string, string][];
    2626    supportedBrowsers?: string[] | Record<string, string>;
     27    memoryMode?: boolean;
    2728}
    2829export interface ProcessBundleResult {
     
    3637    size: number;
    3738    integrity?: string;
     39    content?: string;
    3840    map?: {
    3941        filename: string;
    4042        size: number;
     43        content?: string;
    4144    };
    4245}
  • trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/process-bundle.js

    r59329aa re29cc2e  
    135135exports.process = process;
    136136async function processBundle(options) {
    137     const { optimize, isOriginal, code, map, downlevelMap, filename: filepath, hiddenSourceMaps, cacheKeys = [], integrityAlgorithm, } = options;
     137    const { optimize, isOriginal, code, map, downlevelMap, filename: filepath, hiddenSourceMaps, cacheKeys = [], integrityAlgorithm, memoryMode, } = options;
    138138    const filename = path.basename(filepath);
    139139    let resultCode = code;
     
    169169        }
    170170        await cachePut(mapContent, cacheKeys[isOriginal ? 1 /* OriginalMap */ : 3 /* DownlevelMap */]);
    171         fs.writeFileSync(filepath + '.map', mapContent);
    172     }
    173     const fileResult = createFileEntry(filepath, resultCode, mapContent, integrityAlgorithm);
     171        if (!memoryMode) {
     172            fs.writeFileSync(filepath + '.map', mapContent);
     173        }
     174    }
     175    const fileResult = createFileEntry(filepath, resultCode, mapContent, memoryMode, integrityAlgorithm);
    174176    await cachePut(resultCode, cacheKeys[isOriginal ? 0 /* OriginalCode */ : 2 /* DownlevelCode */], fileResult.integrity);
    175     fs.writeFileSync(filepath, resultCode);
     177    if (!memoryMode) {
     178        fs.writeFileSync(filepath, resultCode);
     179    }
    176180    return fileResult;
    177181}
     
    201205    return { code: minifyOutput.code, map: minifyOutput.map };
    202206}
    203 function createFileEntry(filename, code, map, integrityAlgorithm) {
     207function createFileEntry(filename, code, map, memoryMode, integrityAlgorithm) {
    204208    return {
    205209        filename: filename,
    206210        size: Buffer.byteLength(code),
    207211        integrity: integrityAlgorithm && generateIntegrityValue(integrityAlgorithm, code),
     212        content: memoryMode ? code : undefined,
    208213        map: !map
    209214            ? undefined
     
    211216                filename: filename + '.map',
    212217                size: Buffer.byteLength(map),
     218                content: memoryMode ? map : undefined,
    213219            },
    214220    };
Note: See TracChangeset for help on using the changeset viewer.