@itwin/ecschema-rpcinterface-tests 4.8.0-dev.10 → 4.8.0-dev.11

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":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\7\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\6\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
@@ -57118,7 +57118,7 @@ class RpcRequest {
57118
57118
  for (const param of this.parameters) {
57119
57119
  if (typeof (param) === "object" && param !== null) {
57120
57120
  for (const prop of Object.getOwnPropertyNames(requiredProperties)) {
57121
- if (param.hasOwnProperty(prop) && typeof (param[prop]) === requiredProperties[prop]) {
57121
+ if (prop in param && typeof (param[prop]) === requiredProperties[prop]) {
57122
57122
  return param;
57123
57123
  }
57124
57124
  }
@@ -57831,7 +57831,6 @@ class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODUL
57831
57831
  */
57832
57832
  inflateToken(tokenFromBody, request) {
57833
57833
  const urlPathComponents = request.path.split("/");
57834
- const iModelKey = tokenFromBody.key;
57835
57834
  let iModelId = tokenFromBody.iModelId;
57836
57835
  let iTwinId = tokenFromBody.iTwinId;
57837
57836
  const changeset = { id: tokenFromBody.changeset?.id ?? "0", index: tokenFromBody.changeset?.index };
@@ -57854,7 +57853,9 @@ class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODUL
57854
57853
  ++i;
57855
57854
  }
57856
57855
  }
57857
- return { key: iModelKey, iTwinId, iModelId, changeset };
57856
+ // Overwrite the key if it includes a : because its most likely a guid. We know what it should be based off of the url.
57857
+ // Leave it alone if its a non guid key.
57858
+ return { key: tokenFromBody.key === undefined || tokenFromBody.key.includes(":") ? `${iModelId}:${changeset.id}` : tokenFromBody.key, iTwinId, iModelId, changeset };
57858
57859
  }
57859
57860
  /** Returns the OpenAPI-compatible URI path parameters for an RPC operation.
57860
57861
  * @internal
@@ -197478,11 +197479,12 @@ class CurveCurveCloseApproachXY extends _geometry3d_GeometryHandler__WEBPACK_IMP
197478
197479
  }
197479
197480
  /** Solve Newton for 2 arcs and the given newtonEvaluator. */
197480
197481
  solveArcArcNewton(curveP, curveQ, reversed, newtonEvaluator) {
197481
- const seedsU = [0.2, 0.4, 0.6, 0.8]; // HEURISTIC: 2 arcs have up to 4 perpendiculars/intersections
197482
- const seedsV = [0.2, 0.4, 0.6, 0.8];
197482
+ // HEURISTIC: 2 ellipses have up to 8 perpendiculars and up to 4 intersections
197483
+ const seedDelta = 1 / 10; // denominator 9 fails the unit test
197484
+ const seedStart = seedDelta / 2;
197483
197485
  const newtonSearcher = new _numerics_Newton__WEBPACK_IMPORTED_MODULE_6__.Newton2dUnboundedWithDerivative(newtonEvaluator);
197484
- for (const seedU of seedsU) {
197485
- for (const seedV of seedsV) {
197486
+ for (let seedU = seedStart; seedU < 1; seedU += seedDelta) {
197487
+ for (let seedV = seedStart; seedV < 1; seedV += seedDelta) {
197486
197488
  newtonSearcher.setUV(seedU, seedV);
197487
197489
  if (newtonSearcher.runIterations()) {
197488
197490
  const curvePFraction = newtonSearcher.getU();
@@ -231134,10 +231136,10 @@ class SmallSystem {
231134
231136
  return false;
231135
231137
  }
231136
231138
  /**
231137
- * Solve a linear system
231138
- * * x equation: `ux *u * vx * v + wx * w = cx`
231139
- * * y equation: `uy *u * vy * v + wy * w = cy`
231140
- * * z equation: `uz *u * vz * v + wz * w = cz`
231139
+ * Solve a linear system:
231140
+ * * x equation: `axx * u + axy * v + axz * w = cx`
231141
+ * * y equation: `ayx * u + ayy * v + ayz * w = cy`
231142
+ * * z equation: `azx * u + azy * v + azz * w = cz`
231141
231143
  * @param axx row 0, column 0 coefficient
231142
231144
  * @param axy row 0, column 1 coefficient
231143
231145
  * @param axz row 0, column 1 coefficient
@@ -231151,6 +231153,7 @@ class SmallSystem {
231151
231153
  * @param cy right hand side row 1 coefficient
231152
231154
  * @param cz right hand side row 2 coefficient
231153
231155
  * @param result optional result.
231156
+ * @returns solution vector (u,v,w) or `undefined` if system is singular.
231154
231157
  */
231155
231158
  static linearSystem3d(axx, axy, axz, // first row of matrix
231156
231159
  ayx, ayy, ayz, // second row of matrix
@@ -297834,7 +297837,7 @@ var loadLanguages = instance.loadLanguages;
297834
297837
  /***/ ((module) => {
297835
297838
 
297836
297839
  "use strict";
297837
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.8.0-dev.10","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 --includes=../../generated-docs/extract --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 -f visualstudio \\"./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 -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 && 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.8.0-dev.10","@itwin/core-bentley":"workspace:^4.8.0-dev.10","@itwin/core-common":"workspace:^4.8.0-dev.10","@itwin/core-geometry":"workspace:^4.8.0-dev.10","@itwin/core-orbitgt":"workspace:^4.8.0-dev.10","@itwin/core-quantity":"workspace:^4.8.0-dev.10"},"//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":"^4.0.2","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.56.0","glob":"^10.3.12","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","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.1.0","@itwin/object-storage-core":"^2.2.2","@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"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
297840
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.8.0-dev.11","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 --includes=../../generated-docs/extract --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 -f visualstudio \\"./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 -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 && 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.8.0-dev.11","@itwin/core-bentley":"workspace:^4.8.0-dev.11","@itwin/core-common":"workspace:^4.8.0-dev.11","@itwin/core-geometry":"workspace:^4.8.0-dev.11","@itwin/core-orbitgt":"workspace:^4.8.0-dev.11","@itwin/core-quantity":"workspace:^4.8.0-dev.11"},"//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":"^4.0.2","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.56.0","glob":"^10.3.12","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","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.1.0","@itwin/object-storage-core":"^2.2.2","@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"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
297838
297841
 
297839
297842
  /***/ })
297840
297843