diff --git a/viewer/package.json b/viewer/package.json index 6a57e0075e3..d1692d19b28 100644 --- a/viewer/package.json +++ b/viewer/package.json @@ -90,7 +90,7 @@ "@types/jsdom": "21.1.1", "@types/lodash": "4.14.195", "@types/mixpanel-browser": "2.47.1", - "@types/node": "18.16.19", + "@types/node": "18.17.0", "@types/random-seed": "0.3.3", "@types/skmeans": "0.11.4", "@types/stats": "0.16.30", diff --git a/viewer/packages/sector-loader/tests/mockSectorUtils.ts b/viewer/packages/sector-loader/tests/mockSectorUtils.ts index b2da9666bf8..77330e82d1b 100644 --- a/viewer/packages/sector-loader/tests/mockSectorUtils.ts +++ b/viewer/packages/sector-loader/tests/mockSectorUtils.ts @@ -12,7 +12,7 @@ const modelIdentifier = 'some_model_identifier'; // https://blog.logrocket.com/alternatives-dirname-node-js-es-modules/ import url from 'url'; -const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); +const __dirname = url.fileURLToPath(new url.URL('.', import.meta.url)); export function createWantedSectorMock(id: number = 1): IMock { const wantedFile = 'wanted_file.glb'; diff --git a/viewer/packages/sector-parser/tests/GltfSectorParser.test.ts b/viewer/packages/sector-parser/tests/GltfSectorParser.test.ts index 91e94800d4c..f12505006f2 100644 --- a/viewer/packages/sector-parser/tests/GltfSectorParser.test.ts +++ b/viewer/packages/sector-parser/tests/GltfSectorParser.test.ts @@ -9,7 +9,7 @@ import { RevealGeometryCollectionType } from '../src/types'; // https://blog.logrocket.com/alternatives-dirname-node-js-es-modules/ import url from 'url'; -const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); +const __dirname = url.fileURLToPath(new url.URL('.', import.meta.url)); describe(GltfSectorParser.name, () => { let parsedPrimitivesResult: { type: RevealGeometryCollectionType; geometryBuffer: THREE.BufferGeometry }[]; diff --git a/viewer/yarn.lock b/viewer/yarn.lock index e6b0f0747a8..09245c5c8a0 100644 --- a/viewer/yarn.lock +++ b/viewer/yarn.lock @@ -759,7 +759,7 @@ __metadata: "@types/jsdom": 21.1.1 "@types/lodash": 4.14.195 "@types/mixpanel-browser": 2.47.1 - "@types/node": 18.16.19 + "@types/node": 18.17.0 "@types/random-seed": 0.3.3 "@types/skmeans": 0.11.4 "@types/stats": 0.16.30 @@ -2363,10 +2363,10 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:18.16.19": - version: 18.16.19 - resolution: "@types/node@npm:18.16.19" - checksum: 63c31f09616508aa7135380a4c79470a897b75f9ff3a70eb069e534dfabdec3f32fb0f9df5939127f1086614d980ddea0fa5e8cc29a49103c4f74cd687618aaf +"@types/node@npm:18.17.0": + version: 18.17.0 + resolution: "@types/node@npm:18.17.0" + checksum: 3a43c5c5541342751b514485144818a515fac5427f663066068eaacbe8a108cbe1207aae75ec89d34c3b32414c334aad84e9083cf7fcf3ebfd970adc871314a4 languageName: node linkType: hard