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/cli/commands
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/@angular/cli/commands/config-impl.js

    r59329aa re29cc2e  
    2121    ['cli.analytics', undefined],
    2222    ['cli.analyticsSharing.tracking', undefined],
    23     ['cli.analyticsSharing.uuid', (v) => (v ? `${v}` : uuid_1.v4())],
     23    ['cli.analyticsSharing.uuid', (v) => (v === '' ? uuid_1.v4() : `${v}`)],
    2424]);
    2525/**
     
    5555}
    5656function normalizeValue(value) {
    57     var _a, _b;
    5857    const valueString = `${value}`.trim();
    5958    switch (valueString) {
     
    7069        return +valueString;
    7170    }
    72     return (_b = (_a = json_file_1.parseJson(valueString)) !== null && _a !== void 0 ? _a : value) !== null && _b !== void 0 ? _b : undefined;
     71    try {
     72        // We use `JSON.parse` instead of `parseJson` because the latter will parse UUIDs
     73        // and convert them into a numberic entities.
     74        // Example: 73b61974-182c-48e4-b4c6-30ddf08c5c98 -> 73.
     75        // These values should never contain comments, therefore using `JSON.parse` is safe.
     76        return JSON.parse(valueString);
     77    }
     78    catch {
     79        return value;
     80    }
    7381}
    7482class ConfigCommand extends command_1.Command {
  • trip-planner-front/node_modules/@angular/cli/commands/update-impl.js

    r59329aa re29cc2e  
    164164    async executeMigrations(packageName, collectionPath, from, to, commit) {
    165165        const collection = this.workflow.engine.createCollection(collectionPath);
    166         const migrationRange = new semver.Range('>' + (semver.prerelease(from) ? from.split('-')[0] + '-0' : from) + ' <=' + to);
     166        const migrationRange = new semver.Range('>' + (semver.prerelease(from) ? from.split('-')[0] + '-0' : from) + ' <=' + to.split('-')[0]);
    167167        const migrations = [];
    168168        for (const name of collection.listSchematicNames()) {
Note: See TracChangeset for help on using the changeset viewer.