chore: remove not necessary library
MODIFY
package-lock.json
package-lock.json
"@ngx-translate/core": "^14.0.0",
"@ngx-translate/http-loader": "^7.0.0",
"@swimlane/ngx-charts": "^20.0.1",
- "constant-case": "^3.0.4",
"json5": "^2.2.0",
"keycloak-angular": "^9.0.0",
"keycloak-js": "^15.0.2",
"dev": true,
"license": "ISC"
},
- "node_modules/constant-case": {
- "version": "3.0.4",
- "license": "MIT",
- "dependencies": {
- "no-case": "^3.0.4",
- "tslib": "^2.0.3",
- "upper-case": "^2.0.2"
- }
- },
"node_modules/content-disposition": {
"version": "0.5.4",
"dev": true,
"loose-envify": "cli.js"
}
},
- "node_modules/lower-case": {
- "version": "2.0.2",
- "license": "MIT",
- "dependencies": {
- "tslib": "^2.0.3"
- }
- },
"node_modules/lowlight": {
"version": "1.20.0",
"license": "MIT",
"node-gyp-build": "^4.2.2"
}
},
- "node_modules/no-case": {
- "version": "3.0.4",
- "license": "MIT",
- "dependencies": {
- "lower-case": "^2.0.2",
- "tslib": "^2.0.3"
- }
- },
"node_modules/node-addon-api": {
"version": "3.2.1",
"dev": true,
"node": ">=8"
}
},
- "node_modules/upper-case": {
- "version": "2.0.2",
- "license": "MIT",
- "dependencies": {
- "tslib": "^2.0.3"
- }
- },
"node_modules/uri-js": {
"version": "4.4.1",
"dev": true,
"version": "1.1.0",
"dev": true
},
- "constant-case": {
- "version": "3.0.4",
- "requires": {
- "no-case": "^3.0.4",
- "tslib": "^2.0.3",
- "upper-case": "^2.0.2"
- }
- },
"content-disposition": {
"version": "0.5.4",
"dev": true,
"js-tokens": "^3.0.0 || ^4.0.0"
}
},
- "lower-case": {
- "version": "2.0.2",
- "requires": {
- "tslib": "^2.0.3"
- }
- },
"lowlight": {
"version": "1.20.0",
"requires": {
"node-gyp-build": "^4.2.2"
}
},
- "no-case": {
- "version": "3.0.4",
- "requires": {
- "lower-case": "^2.0.2",
- "tslib": "^2.0.3"
- }
- },
"node-addon-api": {
"version": "3.2.1",
"dev": true,
"version": "4.0.0",
"dev": true
},
- "upper-case": {
- "version": "2.0.2",
- "requires": {
- "tslib": "^2.0.3"
- }
- },
"uri-js": {
"version": "4.4.1",
"dev": true,

MODIFY
package.json
package.json
"@ngx-translate/core": "^14.0.0",
"@ngx-translate/http-loader": "^7.0.0",
"@swimlane/ngx-charts": "^20.0.1",
- "constant-case": "^3.0.4",
"json5": "^2.2.0",
"keycloak-angular": "^9.0.0",
"keycloak-js": "^15.0.2",

MODIFY
src/app/services/policy/policy.service.ts
src/app/services/policy/policy.service.ts
@@ -28,7 +28,6 @@ import { BackendService } from '../backend/backend.service';
import { forkJoin, Observable, of } from 'rxjs';
import { formatBytes, formatBytesAsObject } from '../../shared/utility';
import { IContractExt } from '../../interfaces/IContractExt';
-import { constantCase } from 'constant-case';
import { TranslateService } from '@ngx-translate/core';
import { IGaugeChartData } from '../../interfaces/IGaugeChartData';
@@ -209,7 +208,7 @@ export class PolicyService {
public getTranslationForPeriod(period: string): string {
return this.translator.instant(
- 'POLICIES.PERIODS.' + constantCase(period)
+ 'POLICIES.PERIODS.' + period.toUpperCase()
) as string;
}

chore: remove not necessary library