ng-openapi 0.0.25-alpha.2 → 0.0.25-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.cjs +7 -2
- package/index.js +7 -2
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -419,11 +419,16 @@ var TokenGenerator = class {
|
|
|
419
419
|
});
|
|
420
420
|
sourceFile.addImportDeclaration({
|
|
421
421
|
namedImports: [
|
|
422
|
-
"InjectionToken"
|
|
423
|
-
"HttpInterceptor"
|
|
422
|
+
"InjectionToken"
|
|
424
423
|
],
|
|
425
424
|
moduleSpecifier: "@angular/core"
|
|
426
425
|
});
|
|
426
|
+
sourceFile.addImportDeclaration({
|
|
427
|
+
namedImports: [
|
|
428
|
+
"HttpInterceptor"
|
|
429
|
+
],
|
|
430
|
+
moduleSpecifier: "@angular/common/http"
|
|
431
|
+
});
|
|
427
432
|
const basePathTokenName = this.getBasePathTokenName();
|
|
428
433
|
const interceptorsTokenName = this.getInterceptorsTokenName();
|
|
429
434
|
sourceFile.addVariableStatement({
|
package/index.js
CHANGED
|
@@ -466,11 +466,16 @@ var _TokenGenerator = class _TokenGenerator {
|
|
|
466
466
|
});
|
|
467
467
|
sourceFile.addImportDeclaration({
|
|
468
468
|
namedImports: [
|
|
469
|
-
"InjectionToken"
|
|
470
|
-
"HttpInterceptor"
|
|
469
|
+
"InjectionToken"
|
|
471
470
|
],
|
|
472
471
|
moduleSpecifier: "@angular/core"
|
|
473
472
|
});
|
|
473
|
+
sourceFile.addImportDeclaration({
|
|
474
|
+
namedImports: [
|
|
475
|
+
"HttpInterceptor"
|
|
476
|
+
],
|
|
477
|
+
moduleSpecifier: "@angular/common/http"
|
|
478
|
+
});
|
|
474
479
|
const basePathTokenName = this.getBasePathTokenName();
|
|
475
480
|
const interceptorsTokenName = this.getInterceptorsTokenName();
|
|
476
481
|
sourceFile.addVariableStatement({
|