@itwin/ecschema-rpcinterface-tests 4.10.0 → 4.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dist/bundled-tests.js +15 -3
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -87104,6 +87104,8 @@ class RealityDataSourceTilesetUrlImpl {
|
|
|
87104
87104
|
constructor(props) {
|
|
87105
87105
|
/** For use by all Reality Data. For RD stored on PW Context Share, represents the portion from the root of the Azure Blob Container*/
|
|
87106
87106
|
this._baseUrl = "";
|
|
87107
|
+
/** Need to be passed down to child tile requests when requesting from blob storage, e.g. a Cesium export from the Mesh Export Service*/
|
|
87108
|
+
this._searchParams = "";
|
|
87107
87109
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(props.sourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.TilesetUrl || props.sourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.OrbitGtBlob);
|
|
87108
87110
|
this.key = props.sourceKey;
|
|
87109
87111
|
this._tilesetUrl = this.key.id;
|
|
@@ -87140,8 +87142,11 @@ class RealityDataSourceTilesetUrlImpl {
|
|
|
87140
87142
|
// otherwise the full path to root document is given.
|
|
87141
87143
|
// The base URL contains the base URL from which tile relative path are constructed.
|
|
87142
87144
|
// The tile's path root will need to be reinserted for child tiles to return a 200
|
|
87145
|
+
// If the original url includes search paramaters, they are stored in _searchParams to be reinserted into child tile requests.
|
|
87143
87146
|
setBaseUrl(url) {
|
|
87144
87147
|
const urlParts = url.split("/");
|
|
87148
|
+
const newUrl = new URL(url);
|
|
87149
|
+
this._searchParams = newUrl.search;
|
|
87145
87150
|
urlParts.pop();
|
|
87146
87151
|
if (urlParts.length === 0)
|
|
87147
87152
|
this._baseUrl = "";
|
|
@@ -87172,9 +87177,16 @@ class RealityDataSourceTilesetUrlImpl {
|
|
|
87172
87177
|
}
|
|
87173
87178
|
return true;
|
|
87174
87179
|
}
|
|
87175
|
-
/** Returns the tile URL.
|
|
87180
|
+
/** Returns the tile URL.
|
|
87181
|
+
* If the tile path is a relative URL, the base URL is prepended to it.
|
|
87182
|
+
* For both absolute and relative tile path URLs, the search parameters are checked. If the search params are empty, the base URL's search params are appended to the tile path.
|
|
87183
|
+
*/
|
|
87176
87184
|
getTileUrl(tilePath) {
|
|
87177
|
-
|
|
87185
|
+
if (this.isValidURL(tilePath)) {
|
|
87186
|
+
const url = new URL(tilePath);
|
|
87187
|
+
return url.search === "" ? `${tilePath}${this._searchParams}` : tilePath;
|
|
87188
|
+
}
|
|
87189
|
+
return tilePath.includes("?") ? `${this._baseUrl}${tilePath}` : `${this._baseUrl}${tilePath}${this._searchParams}`;
|
|
87178
87190
|
}
|
|
87179
87191
|
/**
|
|
87180
87192
|
* Returns the tile content. The path to the tile is relative to the base url of present reality data whatever the type.
|
|
@@ -304638,7 +304650,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
304638
304650
|
/***/ ((module) => {
|
|
304639
304651
|
|
|
304640
304652
|
"use strict";
|
|
304641
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.
|
|
304653
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.1","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run --coverage","test:debug":"vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.10.1","@itwin/core-bentley":"workspace:^4.10.1","@itwin/core-common":"workspace:^4.10.1","@itwin/core-geometry":"workspace:^4.10.1","@itwin/core-orbitgt":"workspace:^4.10.1","@itwin/core-quantity":"workspace:^4.10.1"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^2.1.0","@vitest/coverage-v8":"^2.1.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","cpx2":"^3.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^2.1.0","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.2.5","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
|
|
304642
304654
|
|
|
304643
304655
|
/***/ })
|
|
304644
304656
|
|