@itwin/rpcinterface-full-stack-tests 5.0.0-dev.75 → 5.0.0-dev.76
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 +6 -19
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -73878,12 +73878,7 @@ class WebAppRpcLoggingFrontend extends WebAppRpcLogging {
|
|
|
73878
73878
|
}
|
|
73879
73879
|
}
|
|
73880
73880
|
getHostname() {
|
|
73881
|
-
|
|
73882
|
-
return globalThis.window.location.host;
|
|
73883
|
-
}
|
|
73884
|
-
else {
|
|
73885
|
-
return "imodeljs-mobile";
|
|
73886
|
-
}
|
|
73881
|
+
return globalThis.window?.location?.host ?? "imodeljs-mobile";
|
|
73887
73882
|
}
|
|
73888
73883
|
logErrorFrontend(message, request) {
|
|
73889
73884
|
const operationDescriptor = this.buildOperationDescriptor(request.operation);
|
|
@@ -74214,7 +74209,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_4__.Rpc
|
|
|
74214
74209
|
async performFetch() {
|
|
74215
74210
|
const requestClass = this.supplyRequest();
|
|
74216
74211
|
const fetchFunction = this.supplyFetch();
|
|
74217
|
-
const path = new URL(this.path, typeof
|
|
74212
|
+
const path = new URL(this.path, typeof location !== "undefined" ? location.origin : undefined);
|
|
74218
74213
|
if (this._pathSuffix) {
|
|
74219
74214
|
const params = new URLSearchParams();
|
|
74220
74215
|
params.set("parameters", this._pathSuffix);
|
|
@@ -74369,8 +74364,6 @@ class RpcMultipartParser {
|
|
|
74369
74364
|
_headerValueMark;
|
|
74370
74365
|
_partDataMark;
|
|
74371
74366
|
_partBoundaryFlag;
|
|
74372
|
-
_headerFieldDecoder;
|
|
74373
|
-
_headerValueDecoder;
|
|
74374
74367
|
_headerField;
|
|
74375
74368
|
_partHeaders;
|
|
74376
74369
|
_partName;
|
|
@@ -74395,8 +74388,6 @@ class RpcMultipartParser {
|
|
|
74395
74388
|
if (!boundary) {
|
|
74396
74389
|
throw new Error("content-type missing boundary");
|
|
74397
74390
|
}
|
|
74398
|
-
this._headerFieldDecoder = null;
|
|
74399
|
-
this._headerValueDecoder = null;
|
|
74400
74391
|
this._headerField = "";
|
|
74401
74392
|
this._partHeaders = {};
|
|
74402
74393
|
this._partName = null;
|
|
@@ -74630,16 +74621,14 @@ class RpcMultipartParser {
|
|
|
74630
74621
|
this._partHeaders = {};
|
|
74631
74622
|
this._partName = null;
|
|
74632
74623
|
this._partChunks.length = 0;
|
|
74633
|
-
this._headerFieldDecoder = new TextDecoder("utf8");
|
|
74634
74624
|
this._headerField = "";
|
|
74635
|
-
this._headerValueDecoder = new TextDecoder("utf8");
|
|
74636
74625
|
this._headerValue = "";
|
|
74637
74626
|
}
|
|
74638
74627
|
_onParseHeaderField(b) {
|
|
74639
|
-
this._headerField +=
|
|
74628
|
+
this._headerField += new TextDecoder("utf8").decode(b);
|
|
74640
74629
|
}
|
|
74641
74630
|
_onParseHeaderValue(b) {
|
|
74642
|
-
this._headerValue +=
|
|
74631
|
+
this._headerValue += new TextDecoder("utf8").decode(b);
|
|
74643
74632
|
}
|
|
74644
74633
|
_onParseHeaderEnd() {
|
|
74645
74634
|
this._headerField = this._headerField.toLowerCase();
|
|
@@ -74654,9 +74643,7 @@ class RpcMultipartParser {
|
|
|
74654
74643
|
else if (this._headerField === "content-transfer-encoding") {
|
|
74655
74644
|
// this._partTransferEncoding = this._headerValue.toLowerCase();
|
|
74656
74645
|
}
|
|
74657
|
-
this._headerFieldDecoder = new TextDecoder("utf8");
|
|
74658
74646
|
this._headerField = "";
|
|
74659
|
-
this._headerValueDecoder = new TextDecoder("utf8");
|
|
74660
74647
|
this._headerValue = "";
|
|
74661
74648
|
}
|
|
74662
74649
|
_onParsePartData(b) {
|
|
@@ -313488,7 +313475,7 @@ class TestContext {
|
|
|
313488
313475
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
313489
313476
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
313490
313477
|
await core_frontend_1.NoRenderApp.startup({
|
|
313491
|
-
applicationVersion: "5.0.0-dev.
|
|
313478
|
+
applicationVersion: "5.0.0-dev.76",
|
|
313492
313479
|
applicationId: this.settings.gprid,
|
|
313493
313480
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
313494
313481
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -339576,7 +339563,7 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
|
339576
339563
|
/***/ ((module) => {
|
|
339577
339564
|
|
|
339578
339565
|
"use strict";
|
|
339579
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.0.0-dev.
|
|
339566
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.0.0-dev.76","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 ES2022 --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","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:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*"},"//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":"^3.0.6","@vitest/coverage-v8":"^3.0.6","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":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","webpack":"^5.97.1"},"//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/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
339580
339567
|
|
|
339581
339568
|
/***/ }),
|
|
339582
339569
|
|