@itwin/rpcinterface-full-stack-tests 3.4.0-dev.3 → 3.4.0-dev.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"_b43d.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\1\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.2.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"_b43d.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\15\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.2.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
@@ -21,9 +21,9 @@
21
21
 
22
22
  /***/ }),
23
23
 
24
- /***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.7/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
24
+ /***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.8/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
25
25
  /*!********************************************************************************************************************!*\
26
- !*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.7/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
26
+ !*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.8/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
27
27
  \********************************************************************************************************************/
28
28
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
29
29
 
@@ -2296,7 +2296,7 @@ exports.getAccessTokenFromBackend = exports.getTokenCallbackName = void 0;
2296
2296
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2297
2297
  * See LICENSE.md in the project root for license terms and full copyright notice.
2298
2298
  *--------------------------------------------------------------------------------------------*/
2299
- const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.7/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
2299
+ const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.8/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
2300
2300
  // Shared by both the frontend and backend side of the tests
2301
2301
  exports.getTokenCallbackName = "getToken";
2302
2302
  async function getAccessTokenFromBackend(user, oidcConfig) {
@@ -86791,6 +86791,7 @@ class IpcWebSocketBackend extends IpcWebSocket {
86791
86791
  constructor() {
86792
86792
  super();
86793
86793
  this._handlers = new Map();
86794
+ this._processingQueue = [];
86794
86795
  IpcWebSocket.receivers.add(async (e, m) => this.dispatch(e, m));
86795
86796
  }
86796
86797
  send(channel, ...data) {
@@ -86804,22 +86805,35 @@ class IpcWebSocketBackend extends IpcWebSocket {
86804
86805
  };
86805
86806
  }
86806
86807
  async dispatch(_evt, message) {
86807
- if (message.type !== IpcWebSocketMessageType.Invoke || !message.method)
86808
+ if (message.type !== IpcWebSocketMessageType.Invoke)
86808
86809
  return;
86809
- const handler = this._handlers.get(message.channel);
86810
- if (!handler)
86810
+ this._processingQueue.push(message);
86811
+ await this.processMessages();
86812
+ }
86813
+ async processMessages() {
86814
+ if (this._processing || !this._processingQueue.length) {
86811
86815
  return;
86812
- let args = message.data;
86813
- if (typeof (args) === "undefined")
86814
- args = [];
86815
- const response = await handler({}, message.method, ...args);
86816
- IpcWebSocket.transport.send({
86817
- type: IpcWebSocketMessageType.Response,
86818
- channel: message.channel,
86819
- response: message.request,
86820
- data: response,
86821
- sequence: -1,
86822
- });
86816
+ }
86817
+ const message = this._processingQueue.shift();
86818
+ if (message && message.method) {
86819
+ const handler = this._handlers.get(message.channel);
86820
+ if (handler) {
86821
+ this._processing = message;
86822
+ let args = message.data;
86823
+ if (typeof (args) === "undefined")
86824
+ args = [];
86825
+ const response = await handler({}, message.method, ...args);
86826
+ IpcWebSocket.transport.send({
86827
+ type: IpcWebSocketMessageType.Response,
86828
+ channel: message.channel,
86829
+ response: message.request,
86830
+ data: response,
86831
+ sequence: -1,
86832
+ });
86833
+ this._processing = undefined;
86834
+ }
86835
+ }
86836
+ await this.processMessages();
86823
86837
  }
86824
86838
  }
86825
86839
 
@@ -265702,7 +265716,7 @@ __webpack_require__.r(__webpack_exports__);
265702
265716
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
265703
265717
  /* harmony export */ "ITwinLocalization": () => (/* binding */ ITwinLocalization)
265704
265718
  /* harmony export */ });
265705
- /* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.8.16/node_modules/i18next/dist/esm/i18next.js");
265719
+ /* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js");
265706
265720
  /* harmony import */ var i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.4/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js");
265707
265721
  /* harmony import */ var i18next_xhr_backend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! i18next-xhr-backend */ "../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js");
265708
265722
  /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
@@ -287100,7 +287114,7 @@ class TestContext {
287100
287114
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
287101
287115
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
287102
287116
  await core_frontend_1.NoRenderApp.startup({
287103
- applicationVersion: "3.4.0-dev.3",
287117
+ applicationVersion: "3.4.0-dev.9",
287104
287118
  applicationId: this.settings.gprid,
287105
287119
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
287106
287120
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -302699,10 +302713,10 @@ function _unsupportedIterableToArray(o, minLen) {
302699
302713
 
302700
302714
  /***/ }),
302701
302715
 
302702
- /***/ "../../common/temp/node_modules/.pnpm/i18next@21.8.16/node_modules/i18next/dist/esm/i18next.js":
302703
- /*!*****************************************************************************************************!*\
302704
- !*** ../../common/temp/node_modules/.pnpm/i18next@21.8.16/node_modules/i18next/dist/esm/i18next.js ***!
302705
- \*****************************************************************************************************/
302716
+ /***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js":
302717
+ /*!****************************************************************************************************!*\
302718
+ !*** ../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js ***!
302719
+ \****************************************************************************************************/
302706
302720
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302707
302721
 
302708
302722
  "use strict";
@@ -304603,6 +304617,8 @@ var Connector = function (_EventEmitter) {
304603
304617
  _this.waitingReads = [];
304604
304618
  _this.maxParallelReads = options.maxParallelReads || 10;
304605
304619
  _this.readingCalls = 0;
304620
+ _this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5;
304621
+ _this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;
304606
304622
  _this.state = {};
304607
304623
  _this.queue = [];
304608
304624
 
@@ -304709,7 +304725,7 @@ var Connector = function (_EventEmitter) {
304709
304725
  var _this3 = this;
304710
304726
 
304711
304727
  var tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
304712
- var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 350;
304728
+ var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.retryTimeout;
304713
304729
  var callback = arguments.length > 5 ? arguments[5] : undefined;
304714
304730
  if (!lng.length) return callback(null, {});
304715
304731
 
@@ -304735,7 +304751,7 @@ var Connector = function (_EventEmitter) {
304735
304751
  _this3.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback);
304736
304752
  }
304737
304753
 
304738
- if (err && data && tried < 5) {
304754
+ if (err && data && tried < _this3.maxRetries) {
304739
304755
  setTimeout(function () {
304740
304756
  _this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
304741
304757
  }, wait);
@@ -305557,7 +305573,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
305557
305573
  /***/ ((module) => {
305558
305574
 
305559
305575
  "use strict";
305560
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.3","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","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.3","@itwin/core-bentley":"workspace:^3.4.0-dev.3","@itwin/core-common":"workspace:^3.4.0-dev.3","@itwin/core-geometry":"workspace:^3.4.0-dev.3","@itwin/core-orbitgt":"workspace:^3.4.0-dev.3","@itwin/core-quantity":"workspace:^3.4.0-dev.3","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.3"},"//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/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"^7.3.9","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//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/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
305576
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.9","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","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.9","@itwin/core-bentley":"workspace:^3.4.0-dev.9","@itwin/core-common":"workspace:^3.4.0-dev.9","@itwin/core-geometry":"workspace:^3.4.0-dev.9","@itwin/core-orbitgt":"workspace:^3.4.0-dev.9","@itwin/core-quantity":"workspace:^3.4.0-dev.9","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.9"},"//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/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//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/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
305561
305577
 
305562
305578
  /***/ }),
305563
305579