@ng-openapi/http-resource 0.1.1 → 0.1.2-pr-119-fix-118-nullable-format-strings-12ffce1.0

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/index.cjs +2 -2
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -3093,7 +3093,7 @@ function hasDuplicateFunctionNames(arr) {
3093
3093
  __name(hasDuplicateFunctionNames, "hasDuplicateFunctionNames");
3094
3094
 
3095
3095
  // ../../shared/src/config/constants.ts
3096
- var disableLinting = `/* @ts-nocheck */
3096
+ var disableLinting = `// @ts-nocheck
3097
3097
  /* eslint-disable */
3098
3098
  /* @noformat */
3099
3099
  /* @formatter:off */
@@ -3491,6 +3491,7 @@ var HttpResourceGenerator = class {
3491
3491
  });
3492
3492
  this.addServiceClass(sourceFile, controllerName, operations);
3493
3493
  sourceFile.fixMissingImports().formatText();
3494
+ sourceFile.insertText(0, HTTP_RESOURCE_GENERATOR_HEADER_COMMENT(getResourceClassName(controllerName, this.config.options.naming?.resources)));
3494
3495
  sourceFile.saveSync();
3495
3496
  }
3496
3497
  addServiceClass(sourceFile, controllerName, operations) {
@@ -3498,7 +3499,6 @@ var HttpResourceGenerator = class {
3498
3499
  const basePathTokenName = getBasePathTokenName(this.config.clientName);
3499
3500
  const clientContextTokenName = getClientContextTokenName(this.config.clientName);
3500
3501
  const serviceDecorator = emitServiceDecorator(this.config.options);
3501
- sourceFile.insertText(0, HTTP_RESOURCE_GENERATOR_HEADER_COMMENT(className));
3502
3502
  sourceFile.addImportDeclarations([
3503
3503
  {
3504
3504
  namedImports: [
package/index.js CHANGED
@@ -3059,7 +3059,7 @@ function hasDuplicateFunctionNames(arr) {
3059
3059
  __name(hasDuplicateFunctionNames, "hasDuplicateFunctionNames");
3060
3060
 
3061
3061
  // ../../shared/src/config/constants.ts
3062
- var disableLinting = `/* @ts-nocheck */
3062
+ var disableLinting = `// @ts-nocheck
3063
3063
  /* eslint-disable */
3064
3064
  /* @noformat */
3065
3065
  /* @formatter:off */
@@ -3457,6 +3457,7 @@ var HttpResourceGenerator = class {
3457
3457
  });
3458
3458
  this.addServiceClass(sourceFile, controllerName, operations);
3459
3459
  sourceFile.fixMissingImports().formatText();
3460
+ sourceFile.insertText(0, HTTP_RESOURCE_GENERATOR_HEADER_COMMENT(getResourceClassName(controllerName, this.config.options.naming?.resources)));
3460
3461
  sourceFile.saveSync();
3461
3462
  }
3462
3463
  addServiceClass(sourceFile, controllerName, operations) {
@@ -3464,7 +3465,6 @@ var HttpResourceGenerator = class {
3464
3465
  const basePathTokenName = getBasePathTokenName(this.config.clientName);
3465
3466
  const clientContextTokenName = getClientContextTokenName(this.config.clientName);
3466
3467
  const serviceDecorator = emitServiceDecorator(this.config.options);
3467
- sourceFile.insertText(0, HTTP_RESOURCE_GENERATOR_HEADER_COMMENT(className));
3468
3468
  sourceFile.addImportDeclarations([
3469
3469
  {
3470
3470
  namedImports: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-openapi/http-resource",
3
- "version": "0.1.1",
3
+ "version": "0.1.2-pr-119-fix-118-nullable-format-strings-12ffce1.0",
4
4
  "description": "HTTP Resource plugin for ng-openapi - Angular HTTP utilities with caching and state management",
5
5
  "keywords": [
6
6
  "angular",