From d02f9f1c23f89cb51c08880263e041c840448c58 Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Wed, 25 Mar 2026 08:11:59 +0100 Subject: [PATCH] Fix typescript build - ignore deprecations in typescript config - remove unused npm packages from designer-client package.json - remove fs package from cds-ui/server since it was malicious in the past Issue-ID: CCSDK-4187 Change-Id: Ia1439c40a1ac5d162c82df95574eab0effe2d6bc Signed-off-by: Fiete Ostkamp --- cds-ui/designer-client/package.json | 3 --- cds-ui/server/package.json | 6 +++--- .../server/src/clients/blueprint-management-service-grpc-client.ts | 3 +-- cds-ui/server/tsconfig.json | 3 ++- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/cds-ui/designer-client/package.json b/cds-ui/designer-client/package.json index e7a335d54..0d52a7dad 100644 --- a/cds-ui/designer-client/package.json +++ b/cds-ui/designer-client/package.json @@ -19,16 +19,13 @@ "@angular/compiler": "~8.2.9", "@angular/core": "~8.2.9", "@angular/forms": "~8.2.9", - "@angular/http": "^7.2.15", "@angular/material": "^8.2.3", "@angular/platform-browser": "~8.2.9", "@angular/platform-browser-dynamic": "~8.2.9", "@angular/router": "~8.2.9", "@ng-bootstrap/ng-bootstrap": "^5.1.1", - "angular-animations": "0.0.10", "angular-datatables": "^9.0.2", "angular-font-awesome": "^3.1.2", - "angular-material-expansion-panel": "^0.7.2", "backbone": "^1.4.0", "bootstrap": "^4.3.1", "dagre": "^0.8.5", diff --git a/cds-ui/server/package.json b/cds-ui/server/package.json index 143eb7404..564b6fc76 100644 --- a/cds-ui/server/package.json +++ b/cds-ui/server/package.json @@ -50,6 +50,7 @@ "express": "4.17.3" }, "dependencies": { + "@grpc/grpc-js": "^1.7.0", "@grpc/proto-loader": "^0.5.1", "@loopback/boot": "^1.0.8", "@loopback/context": "^1.16.0", @@ -71,8 +72,6 @@ "filereader": "^0.10.3", "form-data": "^2.3.3", "formidable": "^1.2.1", - "fs": "0.0.1-security", - "@grpc/grpc-js": "^1.7.0", "jszip": "^3.2.1", "loopback-connector-rest": "^3.4.1", "multer": "^1.4.1", @@ -91,6 +90,7 @@ "@types/multer": "^1.3.7", "@types/multiparty": "0.0.32", "@types/node": "^17.0.45", - "@types/request": "^2.48.1" + "@types/request": "^2.48.1", + "typescript": "^6.0.2" } } diff --git a/cds-ui/server/src/clients/blueprint-management-service-grpc-client.ts b/cds-ui/server/src/clients/blueprint-management-service-grpc-client.ts index 6a2fba91e..22d973b6d 100644 --- a/cds-ui/server/src/clients/blueprint-management-service-grpc-client.ts +++ b/cds-ui/server/src/clients/blueprint-management-service-grpc-client.ts @@ -14,7 +14,7 @@ ~ limitations under the License. */ import * as fs from 'fs'; -import * as uuidv1 from 'uuid/v1'; +import uuidv1 = require('uuid/v1'); const grpc = require('@grpc/grpc-js'); import * as protoLoader from '@grpc/proto-loader'; import { processorApiConfig } from '../config/app-config'; @@ -116,4 +116,3 @@ class BluePrintManagementServiceGrpcClient { } export const bluePrintManagementServiceGrpcClient = new BluePrintManagementServiceGrpcClient(); - diff --git a/cds-ui/server/tsconfig.json b/cds-ui/server/tsconfig.json index e042793b2..c0e46be4f 100644 --- a/cds-ui/server/tsconfig.json +++ b/cds-ui/server/tsconfig.json @@ -12,6 +12,7 @@ "**/*.d.ts" ], "compilerOptions": { - "experimentalDecorators": true + "experimentalDecorators": true, + "ignoreDeprecations": "6.0" } } -- 2.16.6