Skip to content

Commit c5e9ae2

Browse files
committed
Update dependencies where possible
1 parent 412a07a commit c5e9ae2

8 files changed

Lines changed: 665 additions & 641 deletions

File tree

DEPENDENCY_NOTES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The following notes about the app's dependencies should be revisited and resolved when possible:
2+
3+
As of 2026-07-27:
4+
5+
- `@types/node`: Consider updating to `26.x` in the future, but for now `24.x` still has plent of time in LTS.
6+
- `typescript`: `7.x` removes options deprecated in TypeScript 6 and uses a new native compiler. Upgrade to TypeScript 6 first and then consider updating to v7 if/when other packages (like `eslint`) support it.
7+
- `tslog` (test-server only): `5.x` is ESM-only and replaces v4's flat logger settings such as `hideLogPositionForProduction` and `prettyLogTemplate`. Updating will require some migration.

examples/browser/cql4browsers.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10937,7 +10937,7 @@ class Dimension {
1093710937
* @throws an exception if dim2 is not a Dimension object
1093810938
**/
1093910939
add(dim2) {
10940-
if (!dim2 instanceof Dimension) {
10940+
if (!(dim2 instanceof Dimension)) {
1094110941
throw new Error(`Dimension.add called with an invalid parameter - ` + `${typeof dim2} instead of a Dimension object`);
1094210942
}
1094310943
if (this.dimVec_ && dim2.dimVec_) {
@@ -10956,7 +10956,7 @@ class Dimension {
1095610956
* @throws an exception if dim2 is not a Dimension object
1095710957
**/
1095810958
sub(dim2) {
10959-
if (!dim2 instanceof Dimension) {
10959+
if (!(dim2 instanceof Dimension)) {
1096010960
throw new Error(`Dimension.sub called with an invalid parameter - ` + `${typeof dim2} instead of a Dimension object`);
1096110961
}
1096210962
if (this.dimVec_ && dim2.dimVec_) {
@@ -10984,13 +10984,13 @@ class Dimension {
1098410984
* when a unit is raised to a power. This object's vector is changed unless
1098510985
* the vector is null, in which case it stays that way.
1098610986
*
10987-
* @param s the scalar to use
10987+
* @param s the integer scalar to use
1098810988
* @return this object
10989-
* @throws an exception if s is not a number
10989+
* @throws an exception if s is not an integer
1099010990
*/
1099110991
mul(s) {
1099210992
if (!isInteger(s)) {
10993-
throw new Error(`Dimension.sub called with an invalid parameter - ` + `${typeof dim2} instead of a number`);
10993+
throw new Error(`Dimension.mul called with an invalid parameter - ` + `${typeof s} instead of an integer`);
1099410994
}
1099510995
if (this.dimVec_) {
1099610996
for (let i = 0; i < UC.Ucum.dimLen_; i++) this.dimVec_[i] *= s;
@@ -11009,7 +11009,7 @@ class Dimension {
1100911009
* @throws an exception if dim2 is not a Dimension object
1101011010
*/
1101111011
equals(dim2) {
11012-
if (!dim2 instanceof Dimension) {
11012+
if (!(dim2 instanceof Dimension)) {
1101311013
throw new Error(`Dimension.equals called with an invalid parameter - ` + `${typeof dim2} instead of a Dimension object`);
1101411014
}
1101511015
let isEqual = true;
@@ -11035,7 +11035,7 @@ class Dimension {
1103511035
* @throws an exception if dim2 is not a Dimension object
1103611036
*/
1103711037
assignDim(dim2) {
11038-
if (!dim2 instanceof Dimension) {
11038+
if (!(dim2 instanceof Dimension)) {
1103911039
throw new Error(`Dimension.assignDim called with an invalid parameter - ` + `${typeof dim2} instead of a Dimension object`);
1104011040
}
1104111041
if (dim2.dimVec_ === null) this.dimVec_ = null;else {
@@ -12830,7 +12830,7 @@ class Unit {
1283012830
*/
1283112831
assignVals(vals) {
1283212832
for (let key in vals) {
12833-
let uKey = !key.charAt(key.length - 1) === '_' ? key + '_' : key;
12833+
let uKey = key.charAt(key.length - 1) !== '_' ? key + '_' : key;
1283412834
if (this.hasOwnProperty(uKey)) this[uKey] = vals[key];else throw new Error(`Parameter error; ${key} is not a property of a Unit`);
1283512835
}
1283612836
} // end assignVals

0 commit comments

Comments
 (0)