aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/engine/schematic.js
diff options
context:
space:
mode:
authorNevena Bojovic <nenabojov@gmail.com>2022-03-01 22:05:25 +0100
committerNevena Bojovic <nenabojov@gmail.com>2022-03-01 22:05:25 +0100
commit6555fb80fdd8f6a5d201efadec3189d1244830a0 (patch)
treec1aa1c5aedc634ad1ea7fad4847884d559b51290 /sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/engine/schematic.js
parent7d3640f824f46490b47bd95f1c5a16644f712068 (diff)
Izbrisala bin, obj i node-modules.
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/engine/schematic.js')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/engine/schematic.js67
1 files changed, 0 insertions, 67 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/engine/schematic.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/engine/schematic.js
deleted file mode 100644
index 2b33c2f5..00000000
--- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/engine/schematic.js
+++ /dev/null
@@ -1,67 +0,0 @@
-"use strict";
-/**
- * @license
- * Copyright Google LLC All Rights Reserved.
- *
- * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://angular.io/license
- */
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.SchematicImpl = exports.InvalidSchematicsNameException = void 0;
-const core_1 = require("@angular-devkit/core");
-const rxjs_1 = require("rxjs");
-const operators_1 = require("rxjs/operators");
-const call_1 = require("../rules/call");
-const scoped_1 = require("../tree/scoped");
-class InvalidSchematicsNameException extends core_1.BaseException {
- constructor(name) {
- super(`Schematics has invalid name: "${name}".`);
- }
-}
-exports.InvalidSchematicsNameException = InvalidSchematicsNameException;
-class SchematicImpl {
- constructor(_description, _factory, _collection, _engine) {
- this._description = _description;
- this._factory = _factory;
- this._collection = _collection;
- this._engine = _engine;
- if (!_description.name.match(/^[-@/_.a-zA-Z0-9]+$/)) {
- throw new InvalidSchematicsNameException(_description.name);
- }
- }
- get description() {
- return this._description;
- }
- get collection() {
- return this._collection;
- }
- call(options, host, parentContext, executionOptions) {
- const context = this._engine.createContext(this, parentContext, executionOptions);
- return host.pipe((0, operators_1.first)(), (0, operators_1.concatMap)((tree) => this._engine
- .transformOptions(this, options, context)
- .pipe((0, operators_1.map)((o) => [tree, o]))), (0, operators_1.concatMap)(([tree, transformedOptions]) => {
- let input;
- let scoped = false;
- if (executionOptions && executionOptions.scope) {
- scoped = true;
- input = new scoped_1.ScopedTree(tree, executionOptions.scope);
- }
- else {
- input = tree;
- }
- return (0, call_1.callRule)(this._factory(transformedOptions), (0, rxjs_1.of)(input), context).pipe((0, operators_1.map)((output) => {
- if (output === input) {
- return tree;
- }
- else if (scoped) {
- tree.merge(output);
- return tree;
- }
- else {
- return output;
- }
- }));
- }));
- }
-}
-exports.SchematicImpl = SchematicImpl;