@mimik/api-helper 2.0.5 → 2.0.7

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/lib/common.js CHANGED
@@ -50,6 +50,7 @@ const CLAIMS_SEPARATOR = ',';
50
50
  const BEARERS = ['bearer', 'Bearer'];
51
51
  const USER = 'user';
52
52
  const CLUSTER = 'cluster';
53
+ const ESLINT_HEAD = '/* eslint sort-imports:"off" */\n';
53
54
 
54
55
  export {
55
56
  X_ROUTER_CONTROLLER,
@@ -96,4 +97,5 @@ export {
96
97
  BEARERS,
97
98
  USER,
98
99
  CLUSTER,
100
+ ESLINT_HEAD,
99
101
  };
@@ -1,4 +1,4 @@
1
- import { EXTENSION, REGISTER } from './common.js';
1
+ import { ESLINT_HEAD, EXTENSION, REGISTER } from './common.js';
2
2
  import fs from 'fs';
3
3
  import { getRichError } from '@mimik/response-helper';
4
4
  import logger from '@mimik/sumologic-winston-logger';
@@ -25,7 +25,7 @@ const saveProperties = (extractResult, buildDirectory, controllersDirectoryName,
25
25
  }
26
26
  const controllers = Object.keys(extractResult);
27
27
  const operationIds = [];
28
- let stringToSave = '';
28
+ let stringToSave = ESLINT_HEAD;
29
29
  let itemToSave;
30
30
 
31
31
  controllers.forEach((controller) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimik/api-helper",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "helper for openAPI backend and mimik service",
5
5
  "main": "./index.js",
6
6
  "type": "module",
@@ -46,10 +46,10 @@
46
46
  "swagger-client": "3.35.6"
47
47
  },
48
48
  "devDependencies": {
49
- "@eslint/js": "9.31.0",
49
+ "@eslint/js": "9.32.0",
50
50
  "@mimik/eslint-plugin-document-env": "^2.0.8",
51
51
  "@stylistic/eslint-plugin": "5.2.2",
52
- "eslint": "9.31.0",
52
+ "eslint": "9.32.0",
53
53
  "eslint-plugin-import": "2.32.0",
54
54
  "husky": "9.1.7",
55
55
  "jsdoc-to-markdown": "9.1.2"