@itwin/rpcinterface-full-stack-tests 3.6.0-dev.1 → 3.6.0-dev.3

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":"_cb67.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\2\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.2.12\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"_cb67.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\3\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.2.12\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
@@ -104466,6 +104466,7 @@ class GraphicalEditingScope extends _BriefcaseTxns__WEBPACK_IMPORTED_MODULE_2__.
104466
104466
  notifyGeometryChanged(props) {
104467
104467
  const changes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ModelGeometryChanges.iterable(props);
104468
104468
  const modelIds = [];
104469
+ let deletedIds;
104469
104470
  for (const modelChanges of changes) {
104470
104471
  // ###TODO do we care about the model range?
104471
104472
  let list = this._geometryChanges.get(modelChanges.id);
@@ -104480,11 +104481,16 @@ class GraphicalEditingScope extends _BriefcaseTxns__WEBPACK_IMPORTED_MODULE_2__.
104480
104481
  }
104481
104482
  list.insert(elementChange);
104482
104483
  if (_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.DbOpcode.Delete === elementChange.type) {
104483
- this.iModel.selectionSet.remove(elementChange.id);
104484
- this.iModel.hilited.setHilite(elementChange.id, false);
104484
+ if (undefined === deletedIds)
104485
+ deletedIds = new Set();
104486
+ deletedIds.add(elementChange.id);
104485
104487
  }
104486
104488
  }
104487
104489
  }
104490
+ if (deletedIds) {
104491
+ this.iModel.selectionSet.remove(deletedIds);
104492
+ this.iModel.hilited.setHilite(deletedIds, false);
104493
+ }
104488
104494
  this.onGeometryChanges.raiseEvent(changes, this);
104489
104495
  }
104490
104496
  }
@@ -110284,13 +110290,15 @@ class HiliteSet {
110284
110290
  * @param onOff True to add the elements to the hilited set, false to remove them.
110285
110291
  */
110286
110292
  setHilite(arg, onOff) {
110293
+ const oldSize = this.elements.size;
110287
110294
  for (const id of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.iterable(arg)) {
110288
110295
  if (onOff)
110289
110296
  this.elements.addId(id);
110290
110297
  else
110291
110298
  this.elements.deleteId(id);
110292
110299
  }
110293
- _IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.viewManager.onSelectionSetChanged(this.iModel);
110300
+ if (oldSize !== this.elements.size)
110301
+ _IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.viewManager.onSelectionSetChanged(this.iModel);
110294
110302
  }
110295
110303
  }
110296
110304
  /** A set of *currently selected* elements for an IModelConnection.
@@ -192482,34 +192490,35 @@ class BSplineCurve3d extends BSplineCurve3dBase {
192482
192490
  return _BSplineCurveOps__WEBPACK_IMPORTED_MODULE_16__.BSplineCurveOps.createThroughPoints(options.fitPoints, 4); // temporary
192483
192491
  }
192484
192492
  /** Create a bspline with given knots.
192485
- *
192486
- * * Two count conditions are recognized:
192487
- *
192488
- * ** If poleArray.length + order == knotArray.length, the first and last are assumed to be the
192489
- * extraneous knots of classic clamping.
192490
- * ** If poleArray.length + order == knotArray.length + 2, the knots are in modern form.
192491
- *
192493
+ * * Only two knot count conditions are recognized; all others return undefined:
192494
+ * * If poleArray.length + order === knotArray.length, the first and last are assumed to be the extraneous knots of classic clamping.
192495
+ * * If poleArray.length + order === knotArray.length + 2, the knots are in modern form.
192492
192496
  */
192493
192497
  static create(poleArray, knotArray, order) {
192498
+ if (order < 2)
192499
+ return undefined;
192494
192500
  let numPoles = poleArray.length;
192495
192501
  if (poleArray instanceof Float64Array) {
192496
192502
  numPoles /= 3; // blocked as xyz
192497
192503
  }
192504
+ if (numPoles < order)
192505
+ return undefined;
192498
192506
  const numKnots = knotArray.length;
192499
- // shift knots-of-interest limits for overclamped case ...
192500
- const skipFirstAndLast = (numPoles + order === numKnots);
192501
- if (order < 2 || numPoles < order)
192507
+ let skipFirstAndLast;
192508
+ if (numPoles + order === numKnots)
192509
+ skipFirstAndLast = true; // classic (first/last knots extraneous)
192510
+ else if (numPoles + order === numKnots + 2)
192511
+ skipFirstAndLast = false; // modern
192512
+ else
192502
192513
  return undefined;
192503
192514
  const knots = _KnotVector__WEBPACK_IMPORTED_MODULE_3__.KnotVector.create(knotArray, order - 1, skipFirstAndLast);
192504
192515
  const curve = new BSplineCurve3d(numPoles, order, knots);
192516
+ let i = 0;
192505
192517
  if (poleArray instanceof Float64Array) {
192506
- let i = 0;
192507
- for (const coordinate of poleArray) {
192518
+ for (const coordinate of poleArray)
192508
192519
  curve._bcurve.packedData[i++] = coordinate;
192509
- }
192510
192520
  }
192511
192521
  else {
192512
- let i = 0;
192513
192522
  for (const p of poleArray) {
192514
192523
  curve._bcurve.packedData[i++] = p.x;
192515
192524
  curve._bcurve.packedData[i++] = p.y;
@@ -292866,7 +292875,7 @@ class TestContext {
292866
292875
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
292867
292876
  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` } });
292868
292877
  await core_frontend_1.NoRenderApp.startup({
292869
- applicationVersion: "3.6.0-dev.1",
292878
+ applicationVersion: "3.6.0-dev.3",
292870
292879
  applicationId: this.settings.gprid,
292871
292880
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
292872
292881
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -293842,17 +293851,17 @@ var Key;
293842
293851
  (function (Key) {
293843
293852
  /** Check if the supplied key is a `NodeKey` */
293844
293853
  function isNodeKey(key) {
293845
- return key.type;
293854
+ return !!key.type;
293846
293855
  }
293847
293856
  Key.isNodeKey = isNodeKey;
293848
293857
  /** Check if the supplied key is an `InstanceKey` */
293849
293858
  function isInstanceKey(key) {
293850
- return key.className && key.id;
293859
+ return !!key.className && !!key.id;
293851
293860
  }
293852
293861
  Key.isInstanceKey = isInstanceKey;
293853
293862
  /** Check if the supplied key is an `EntityProps` */
293854
293863
  function isEntityProps(key) {
293855
- return key.classFullName && key.id;
293864
+ return !!key.classFullName && !!key.id;
293856
293865
  }
293857
293866
  Key.isEntityProps = isEntityProps;
293858
293867
  })(Key || (Key = {}));
@@ -293926,7 +293935,7 @@ class KeySet {
293926
293935
  return this._nodeKeys.size;
293927
293936
  }
293928
293937
  isKeySet(set) {
293929
- return set._nodeKeys && set._instanceKeys;
293938
+ return !!set._nodeKeys && !!set._instanceKeys;
293930
293939
  }
293931
293940
  isKeysArray(keys) {
293932
293941
  return Array.isArray(keys);
@@ -293968,7 +293977,12 @@ class KeySet {
293968
293977
  this._nodeKeys.add(JSON.stringify(key));
293969
293978
  for (const entry of keyset.instanceKeys) {
293970
293979
  const lcClassName = entry["0"].toLowerCase();
293971
- const ids = entry["1"] === _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid ? new Set([_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid]) : _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.decompressSet(entry["1"]);
293980
+ const idsJson = entry["1"];
293981
+ const ids = typeof idsJson === "string"
293982
+ ? idsJson === _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid
293983
+ ? new Set([_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid])
293984
+ : _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.decompressSet(idsJson)
293985
+ : new Set(idsJson);
293972
293986
  this._instanceKeys.set(lcClassName, ids);
293973
293987
  this._lowerCaseMap.set(lcClassName, entry["0"]);
293974
293988
  }
@@ -311989,7 +312003,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
311989
312003
  /***/ ((module) => {
311990
312004
 
311991
312005
  "use strict";
311992
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0-dev.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","build:ci":"npm run -s build && npm run -s build:esm","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","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.6.0-dev.1","@itwin/core-bentley":"workspace:^3.6.0-dev.1","@itwin/core-common":"workspace:^3.6.0-dev.1","@itwin/core-geometry":"workspace:^3.6.0-dev.1","@itwin/core-orbitgt":"workspace:^3.6.0-dev.1","@itwin/core-quantity":"workspace:^3.6.0-dev.1","@itwin/webgl-compatibility":"workspace:^3.6.0-dev.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/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":"18.11.5","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","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/object-storage-azure":"~1.4.0","@itwin/cloud-agnostic-core":"~1.4.0","@itwin/object-storage-core":"~1.4.0","@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","reflect-metadata":"0.1.13"},"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"}}]}}');
312006
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.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":"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","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.6.0-dev.3","@itwin/core-bentley":"workspace:^3.6.0-dev.3","@itwin/core-common":"workspace:^3.6.0-dev.3","@itwin/core-geometry":"workspace:^3.6.0-dev.3","@itwin/core-orbitgt":"workspace:^3.6.0-dev.3","@itwin/core-quantity":"workspace:^3.6.0-dev.3","@itwin/webgl-compatibility":"workspace:^3.6.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":"18.11.5","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","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/object-storage-azure":"~1.4.0","@itwin/cloud-agnostic-core":"~1.4.0","@itwin/object-storage-core":"~1.4.0","@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","reflect-metadata":"0.1.13"},"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"}}]}}');
311993
312007
 
311994
312008
  /***/ }),
311995
312009