fix(ihm_client): corrections Dockerfile et service.ts pour build Docker réussi - Correction npm install pour inclure devDependencies - Correction hexToBlob pour éviter ArrayBufferLike/SharedArrayBuffer - Infrastructure 4NK_node maintenant opérationnelle avec ihm_client
Some checks failed
CI - 4NK Node / Code Quality (push) Failing after 32s
CI - 4NK Node / Unit Tests (push) Failing after 35s
CI - 4NK Node / Integration Tests (push) Successful in 27s
CI - 4NK Node / Security Tests (push) Failing after 33s
CI - 4NK Node / Docker Build & Test (push) Failing after 11s
CI - 4NK Node / Documentation Tests (push) Successful in 4s
CI - 4NK Node / Performance Tests (push) Successful in 28s
CI - 4NK Node / Notify (push) Failing after 2s

This commit is contained in:
Nicolas Cantu 2025-08-25 20:00:06 +02:00
parent efb32e9604
commit 4a295c5eb8
2 changed files with 7 additions and 4 deletions

View File

@ -14,8 +14,8 @@ RUN apk update && apk add --no-cache \
# Copie des fichiers de dépendances
COPY package*.json ./
# Installation des dépendances
RUN npm install --omit=dev
# Installation des dépendances (inclut les devDependencies nécessaires au build)
RUN npm install
# Copie du code source
COPY . .

View File

@ -1640,8 +1640,11 @@ export default class Services {
public hexToBlob(hexString: string): Blob {
const uint8Array = this.hexToUInt8Array(hexString);
return new Blob([uint8Array.buffer], { type: "application/octet-stream" });
// Crée un ArrayBuffer standard et copie les données pour éviter ArrayBufferLike/SharedArrayBuffer
const ab = new ArrayBuffer(uint8Array.length);
const view = new Uint8Array(ab);
view.set(uint8Array);
return new Blob([ab], { type: "application/octet-stream" });
}
public hexToUInt8Array(hexString: string): Uint8Array {