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.
Files changed (3) hide show
  1. package/cli.cjs +7 -2
  2. package/index.js +7 -2
  3. 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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-openapi",
3
- "version": "0.0.25-alpha.2",
3
+ "version": "0.0.25-alpha.3",
4
4
  "description": "Generate Angular services and TypeScript types from OpenAPI/Swagger specifications",
5
5
  "keywords": [
6
6
  "angular",