From e60bb60b634f2ef671c63484863d6067a1657ca6 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Tue, 19 Mar 2024 16:42:47 +0100 Subject: [PATCH] fix build error --- apps/run/src/app/process.ts | 4 ++-- package-lock.json | 44 +++++++++++++++++++++++++++++++++++-- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/apps/run/src/app/process.ts b/apps/run/src/app/process.ts index 29431dd0..e3091097 100644 --- a/apps/run/src/app/process.ts +++ b/apps/run/src/app/process.ts @@ -1,7 +1,7 @@ import { diffDecodeTrack, diffEncodeAirspaces, - diffEncodeArray, + diffEncodeArray32bit, fetchResponse, protos, SecretKeys, @@ -37,7 +37,7 @@ export async function postProcessTrack(datastore: Datastore, trackId: number | s trackEntity.ground_altitude_group = Buffer.from( protos.GroundAltitudeGroup.toBinary({ groundAltitudes: groundAltitudes.map(({ altitudes, hasErrors }) => ({ - altitudes: diffEncodeArray(altitudes), + altitudes: diffEncodeArray32bit(altitudes), hasErrors, })), }), diff --git a/package-lock.json b/package-lock.json index c1d0337a..6ed39a1f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5031,7 +5031,7 @@ "version": "0.5.3", "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", - "dev": true, + "devOptional": true, "dependencies": { "tslib": "^2.4.0" } @@ -5318,6 +5318,12 @@ "@types/express": "*" } }, + "node_modules/@types/geojson": { + "version": "7946.0.14", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.14.tgz", + "integrity": "sha512-WCfD5Ht3ZesJUsONdhvm84dmzWOiOzOAqOncN0++w0lBw1o8OuDNJF2McvvCef/yBqb/HYRahp1BYtODFQ8bRg==", + "peer": true + }, "node_modules/@types/google.maps": { "version": "3.55.4", "resolved": "https://registry.npmjs.org/@types/google.maps/-/google.maps-3.55.4.tgz", @@ -12115,6 +12121,41 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/jest-circus/node_modules/babel-plugin-macros": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", + "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + } + }, + "node_modules/jest-circus/node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/jest-circus/node_modules/dedent": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", @@ -18132,7 +18173,6 @@ "version": "5.4.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz", "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==", - "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver"