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/compiler-cli/ngcc/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/@angular/compiler-cli/ngcc/src/host/umd_host.js

    r59329aa re29cc2e  
    470470    exports.UmdReflectionHost = UmdReflectionHost;
    471471    function parseStatementForUmdModule(statement) {
    472         var wrapperCall = getUmdWrapperCall(statement);
    473         if (!wrapperCall)
     472        var wrapper = getUmdWrapper(statement);
     473        if (wrapper === null)
    474474            return null;
    475         var wrapperFn = wrapperCall.expression;
    476         if (!ts.isFunctionExpression(wrapperFn))
    477             return null;
    478         var factoryFnParamIndex = wrapperFn.parameters.findIndex(function (parameter) { return ts.isIdentifier(parameter.name) && parameter.name.text === 'factory'; });
     475        var factoryFnParamIndex = wrapper.fn.parameters.findIndex(function (parameter) { return ts.isIdentifier(parameter.name) && parameter.name.text === 'factory'; });
    479476        if (factoryFnParamIndex === -1)
    480477            return null;
    481         var factoryFn = utils_2.stripParentheses(wrapperCall.arguments[factoryFnParamIndex]);
     478        var factoryFn = utils_2.stripParentheses(wrapper.call.arguments[factoryFnParamIndex]);
    482479        if (!factoryFn || !ts.isFunctionExpression(factoryFn))
    483480            return null;
    484         return { wrapperFn: wrapperFn, factoryFn: factoryFn };
     481        return { wrapperFn: wrapper.fn, factoryFn: factoryFn };
    485482    }
    486483    exports.parseStatementForUmdModule = parseStatementForUmdModule;
    487     function getUmdWrapperCall(statement) {
    488         if (!ts.isExpressionStatement(statement) || !ts.isParenthesizedExpression(statement.expression) ||
    489             !ts.isCallExpression(statement.expression.expression) ||
    490             !ts.isFunctionExpression(statement.expression.expression.expression)) {
     484    function getUmdWrapper(statement) {
     485        if (!ts.isExpressionStatement(statement))
    491486            return null;
     487        if (ts.isParenthesizedExpression(statement.expression) &&
     488            ts.isCallExpression(statement.expression.expression) &&
     489            ts.isFunctionExpression(statement.expression.expression.expression)) {
     490            // (function () { ... } (...) );
     491            var call = statement.expression.expression;
     492            var fn = statement.expression.expression.expression;
     493            return { call: call, fn: fn };
    492494        }
    493         return statement.expression.expression;
     495        if (ts.isCallExpression(statement.expression) &&
     496            ts.isParenthesizedExpression(statement.expression.expression) &&
     497            ts.isFunctionExpression(statement.expression.expression.expression)) {
     498            // (function () { ... }) (...);
     499            var call = statement.expression;
     500            var fn = statement.expression.expression.expression;
     501            return { call: call, fn: fn };
     502        }
     503        return null;
    494504    }
    495505    function getImportsOfUmdModule(umdModule) {
     
    537547    }
    538548});
    539 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW1kX2hvc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21waWxlci1jbGkvbmdjYy9zcmMvaG9zdC91bWRfaG9zdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7Ozs7Ozs7Ozs7Ozs7O0lBRUgsK0JBQWlDO0lBRWpDLDJFQUE0RDtJQUU1RCx5RUFBK0c7SUFFL0csOERBQWlGO0lBRWpGLDZGQUFrWTtJQUNsWSxpRkFBd0c7SUFDeEcsMkVBQStDO0lBRS9DLG1FQUF5QztJQUV6QztRQUF1Qyw2Q0FBa0I7UUFVdkQsMkJBQVksTUFBYyxFQUFFLE1BQWUsRUFBRSxHQUFrQixFQUFFLEdBQThCO1lBQTlCLG9CQUFBLEVBQUEsVUFBOEI7WUFBL0YsWUFDRSxrQkFBTSxNQUFNLEVBQUUsTUFBTSxFQUFFLEdBQUcsRUFBRSxHQUFHLENBQUMsU0FHaEM7WUFiUyxnQkFBVSxHQUNoQixJQUFJLGtCQUFVLENBQWdDLFVBQUEsRUFBRSxJQUFJLE9BQUEsS0FBSSxDQUFDLGdCQUFnQixDQUFDL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zSWRlbnRpZmllcihub2RlOiB0cy5Ob2RlKTogbm9kZSBpcyB0cy5JZGVudGlmaWVyIHtcbiAgcmV0dXJuIHRzLmlzSWRlbnRpZmllcihub2RlKSAmJiBub2RlLnRleHQgPT09ICdleHBvcnRzJztcbn1cbiJdfQ==
  • trip-planner-front/node_modules/@angular/compiler-cli/ngcc/src/packages/build_marker.d.ts

    r59329aa re29cc2e  
    1010import { PackageJsonUpdater } from '../writing/package_json_updater';
    1111import { EntryPointPackageJson, PackageJsonFormatProperties } from './entry_point';
    12 export declare const NGCC_VERSION = "12.2.9";
     12export declare const NGCC_VERSION = "12.2.13";
    1313/**
    1414 * Returns true if there is a format in this entry-point that was compiled with an outdated version
  • trip-planner-front/node_modules/@angular/compiler-cli/ngcc/src/packages/build_marker.js

    r59329aa re29cc2e  
    1313    var tslib_1 = require("tslib");
    1414    var new_entry_point_file_writer_1 = require("@angular/compiler-cli/ngcc/src/writing/new_entry_point_file_writer");
    15     exports.NGCC_VERSION = '12.2.9';
     15    exports.NGCC_VERSION = '12.2.13';
    1616    /**
    1717     * Returns true if there is a format in this entry-point that was compiled with an outdated version
  • trip-planner-front/node_modules/@angular/compiler-cli/ngcc/src/rendering/umd_rendering_formatter.js

    r59329aa re29cc2e  
    5656                return;
    5757            }
    58             var wrapperFunction = umdModule.wrapperFn;
     58            var wrapperFn = umdModule.wrapperFn, factoryFn = umdModule.factoryFn;
    5959            // We need to add new `require()` calls for each import in the CommonJS initializer
    60             renderCommonJsDependencies(output, wrapperFunction, imports);
    61             renderAmdDependencies(output, wrapperFunction, imports);
    62             renderGlobalDependencies(output, wrapperFunction, imports);
    63             renderFactoryParameters(output, wrapperFunction, imports);
     60            renderCommonJsDependencies(output, wrapperFn, imports);
     61            renderAmdDependencies(output, wrapperFn, imports);
     62            renderGlobalDependencies(output, wrapperFn, imports);
     63            renderFactoryParameters(output, factoryFn, imports);
    6464        };
    6565        /**
     
    197197     * Add dependency parameters to the UMD factory function.
    198198     */
    199     function renderFactoryParameters(output, wrapperFunction, imports) {
    200         var wrapperCall = wrapperFunction.parent;
    201         var secondArgument = wrapperCall.arguments[1];
    202         if (!secondArgument) {
    203             return;
    204         }
    205         // Be resilient to the factory being inside parentheses
    206         var factoryFunction = ts.isParenthesizedExpression(secondArgument) ? secondArgument.expression : secondArgument;
    207         if (!ts.isFunctionExpression(factoryFunction)) {
    208             return;
    209         }
     199    function renderFactoryParameters(output, factoryFunction, imports) {
    210200        var parameters = factoryFunction.parameters;
    211201        var parameterString = imports.map(function (i) { return i.qualifier.text; }).join(',');
     
    324314    }
    325315});
    326 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW1kX3JlbmRlcmluZ19mb3JtYXR0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21waWxlci1jbGkvbmdjYy9zcmMvcmVuZGVyaW5nL3VtZF9yZW5kZXJpbmdfZm9ybWF0dGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7SUFRQSwrQkFBaUM7SUFRakMsOEdBQWtFO0lBQ2xFLHdFQUF1QztJQUt2Qzs7OztPQUlHO0lBQ0g7UUFBMkMsaURBQXNCO1FBQy9ELCtCQUFZLEVBQW9CLEVBQVksT0FBMEIsRUFBRSxNQUFlO1lBQXZGLFlBQ0Usa0JBQU0sRUFBRSxFQUFFLE9BQU8sRUFBRSxNQUFNLENBQUMsU0FDM0I7WUFGMkMsYUFBTyxHQUFQLE9BQU8sQ0FBbUI7O1FBRXRFLENBQUM7UUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7OztXQW1CRztRQUNNLDBDQUFVLEdBQW5CLFVBQW9CLE1BQW1CLEVBQUUsT0FBaUIsRUFBRSxJQUFtQjtZQUM3RSxJQUFJLE9BQU8sQ0FBQyxNQUFNLEtBQUssQ0FBQyxFQUF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3Npb24pID0+IGJvb2xlYW4pIHtcbiAgcmV0dXJuIHRlc3Qobm9kZS5sZWZ0KSB8fCB0ZXN0KG5vZGUucmlnaHQpO1xufVxuXG5mdW5jdGlvbiBpc1R5cGVPZihub2RlOiB0cy5FeHByZXNzaW9uLCAuLi50eXBlczogc3RyaW5nW10pOiBib29sZWFuIHtcbiAgcmV0dXJuIHRzLmlzQmluYXJ5RXhwcmVzc2lvbihub2RlKSAmJiB0cy5pc1R5cGVPZkV4cHJlc3Npb24obm9kZS5sZWZ0KSAmJlxuICAgICAgdHMuaXNJZGVudGlmaWVyKG5vZGUubGVmdC5leHByZXNzaW9uKSAmJiB0eXBlcy5pbmRleE9mKG5vZGUubGVmdC5leHByZXNzaW9uLnRleHQpICE9PSAtMTtcbn1cbiJdfQ==
Note: See TracChangeset for help on using the changeset viewer.