source: trip-planner-front/node_modules/@angular/compiler-cli/ngcc/src/analysis/util.js@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 3.6 KB
Line 
1(function (factory) {
2 if (typeof module === "object" && typeof module.exports === "object") {
3 var v = factory(require, exports);
4 if (v !== undefined) module.exports = v;
5 }
6 else if (typeof define === "function" && define.amd) {
7 define("@angular/compiler-cli/ngcc/src/analysis/util", ["require", "exports", "@angular/compiler-cli/src/ngtsc/file_system"], factory);
8 }
9})(function (require, exports) {
10 "use strict";
11 Object.defineProperty(exports, "__esModule", { value: true });
12 exports.NOOP_DEPENDENCY_TRACKER = exports.isWithinPackage = void 0;
13 /**
14 * @license
15 * Copyright Google LLC All Rights Reserved.
16 *
17 * Use of this source code is governed by an MIT-style license that can be
18 * found in the LICENSE file at https://angular.io/license
19 */
20 var file_system_1 = require("@angular/compiler-cli/src/ngtsc/file_system");
21 function isWithinPackage(packagePath, filePath) {
22 var relativePath = file_system_1.relative(packagePath, filePath);
23 return file_system_1.isLocalRelativePath(relativePath) && !relativePath.startsWith('node_modules/');
24 }
25 exports.isWithinPackage = isWithinPackage;
26 var NoopDependencyTracker = /** @class */ (function () {
27 function NoopDependencyTracker() {
28 }
29 NoopDependencyTracker.prototype.addDependency = function () { };
30 NoopDependencyTracker.prototype.addResourceDependency = function () { };
31 NoopDependencyTracker.prototype.recordDependencyAnalysisFailure = function () { };
32 return NoopDependencyTracker;
33 }());
34 exports.NOOP_DEPENDENCY_TRACKER = new NoopDependencyTracker();
35});
36//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbXBpbGVyLWNsaS9uZ2NjL3NyYy9hbmFseXNpcy91dGlsLnRzIl0sIm5hbWVzIjpbX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