From aa1e904aaacfb820368fefa990977bfddecc8d6e Mon Sep 17 00:00:00 2001 From: Maxim Kuznetsov Date: Mon, 25 Sep 2023 11:37:00 +0300 Subject: [PATCH] fix(parse-i3s): getting root node url for normalizeTilesetData without nodepages --- modules/i3s/src/lib/parsers/parse-i3s.ts | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/i3s/src/lib/parsers/parse-i3s.ts b/modules/i3s/src/lib/parsers/parse-i3s.ts index 17f1d13ffe..18960240e0 100644 --- a/modules/i3s/src/lib/parsers/parse-i3s.ts +++ b/modules/i3s/src/lib/parsers/parse-i3s.ts @@ -91,7 +91,7 @@ export async function normalizeTilesetData(tileset : SceneLayer3D, options : Loa root = await nodePagesTile.formTileFromNodePages(0); } else { // @ts-expect-error options is not properly typed - const rootNodeUrl = getUrlWithToken(`${tileset.url}/nodes/root`, options.i3s?.token); + const rootNodeUrl = getUrlWithToken(`${url}/nodes/root`, options.i3s?.token); // eslint-disable-next-line no-use-before-define root = await load(rootNodeUrl, I3SLoader, { ...options, diff --git a/yarn.lock b/yarn.lock index b67bf8ed53..c3422c95fa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4141,9 +4141,9 @@ camelcase@^5.0.0, camelcase@^5.3.1: integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== caniuse-lite@^1.0.30001449: - version "1.0.30001538" - resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001538.tgz" - integrity sha512-HWJnhnID+0YMtGlzcp3T9drmBJUVDchPJ08tpUGFLs9CYlwWPH2uLgpHn8fND5pCgXVtnGS3H4QR9XLMHVNkHw== + version "1.0.30001539" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001539.tgz" + integrity sha512-hfS5tE8bnNiNvEOEkm8HElUHroYwlqMMENEzELymy77+tJ6m+gA2krtHl5hxJaj71OlpC2cHZbdSMX1/YEqEkA== caseless@~0.12.0: version "0.12.0"