aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.spec.ts.template16
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.ts.template18
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/index.d.ts10
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/index.js19
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/schema.d.ts25
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/schema.js4
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/schema.json44
7 files changed, 136 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.spec.ts.template b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.spec.ts.template
new file mode 100644
index 00000000..d136abd5
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.spec.ts.template
@@ -0,0 +1,16 @@
+import { TestBed } from '@angular/core/testing';
+
+import { <%= classify(name) %>Interceptor } from './<%= dasherize(name) %>.interceptor';
+
+describe('<%= classify(name) %>Interceptor', () => {
+ beforeEach(() => TestBed.configureTestingModule({
+ providers: [
+ <%= classify(name) %>Interceptor
+ ]
+ }));
+
+ it('should be created', () => {
+ const interceptor: <%= classify(name) %>Interceptor = TestBed.inject(<%= classify(name) %>Interceptor);
+ expect(interceptor).toBeTruthy();
+ });
+});
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.ts.template b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.ts.template
new file mode 100644
index 00000000..fffab4dd
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.ts.template
@@ -0,0 +1,18 @@
+import { Injectable } from '@angular/core';
+import {
+ HttpRequest,
+ HttpHandler,
+ HttpEvent,
+ HttpInterceptor
+} from '@angular/common/http';
+import { Observable } from 'rxjs';
+
+@Injectable()
+export class <%= classify(name) %>Interceptor implements HttpInterceptor {
+
+ constructor() {}
+
+ intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>> {
+ return next.handle(request);
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/index.d.ts b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/index.d.ts
new file mode 100644
index 00000000..3bf719d7
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/index.d.ts
@@ -0,0 +1,10 @@
+/**
+ * @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
+ */
+import { Rule } from '@angular-devkit/schematics';
+import { Schema as InterceptorOptions } from './schema';
+export default function (options: InterceptorOptions): Rule;
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/index.js b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/index.js
new file mode 100644
index 00000000..bd9a7ccb
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/index.js
@@ -0,0 +1,19 @@
+"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 });
+const generate_from_files_1 = require("../utility/generate-from-files");
+function default_1(options) {
+ // This schematic uses an older method to implement the flat option
+ const flat = options.flat;
+ options.flat = true;
+ return (0, generate_from_files_1.generateFromFiles)(options, {
+ 'if-flat': (s) => (flat ? '' : s),
+ });
+}
+exports.default = default_1;
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/schema.d.ts b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/schema.d.ts
new file mode 100644
index 00000000..189b7b97
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/schema.d.ts
@@ -0,0 +1,25 @@
+/**
+ * Creates a new, generic interceptor definition in the given or default project.
+ */
+export interface Schema {
+ /**
+ * When true (the default), creates files at the top level of the project.
+ */
+ flat?: boolean;
+ /**
+ * The name of the interceptor.
+ */
+ name: string;
+ /**
+ * The path at which to create the interceptor, relative to the workspace root.
+ */
+ path?: string;
+ /**
+ * The name of the project.
+ */
+ project?: string;
+ /**
+ * Do not create "spec.ts" test files for the new interceptor.
+ */
+ skipTests?: boolean;
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/schema.js b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/schema.js
new file mode 100644
index 00000000..4fb6d3d1
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/schema.js
@@ -0,0 +1,4 @@
+"use strict";
+// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
+// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
+Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/schema.json b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/schema.json
new file mode 100644
index 00000000..6bc844ef
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/interceptor/schema.json
@@ -0,0 +1,44 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema",
+ "$id": "SchematicsAngularInterceptor",
+ "title": "Angular Interceptor Options Schema",
+ "type": "object",
+ "additionalProperties": false,
+ "description": "Creates a new, generic interceptor definition in the given or default project.",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the interceptor.",
+ "$default": {
+ "$source": "argv",
+ "index": 0
+ },
+ "x-prompt": "What name would you like to use for the interceptor?"
+ },
+ "path": {
+ "type": "string",
+ "format": "path",
+ "description": "The path at which to create the interceptor, relative to the workspace root.",
+ "visible": false
+ },
+ "project": {
+ "type": "string",
+ "description": "The name of the project.",
+ "$default": {
+ "$source": "projectName"
+ }
+ },
+ "flat": {
+ "type": "boolean",
+ "default": true,
+ "description": "When true (the default), creates files at the top level of the project."
+ },
+ "skipTests": {
+ "type": "boolean",
+ "description": "Do not create \"spec.ts\" test files for the new interceptor.",
+ "default": false,
+ "x-user-analytics": 12
+ }
+ },
+ "required": ["name"]
+}