diff --git a/package-lock.json b/package-lock.json index 42d89721..77013ed8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "moment-of-symmetry": "^0.4.2", - "xen-dev-utils": "^0.6.1" + "xen-dev-utils": "^0.7.0" }, "bin": { "sonic-weave": "bin/sonic-weave.js" @@ -4444,9 +4444,9 @@ } }, "node_modules/xen-dev-utils": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/xen-dev-utils/-/xen-dev-utils-0.6.1.tgz", - "integrity": "sha512-smdLvCIYnAuwGiVdj67kW8kS37gwtUFBF253ukTa4V7BfVglt7HYR9r1EQTCB8FC1J8rdNY++M8TRID+YNsH4A==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/xen-dev-utils/-/xen-dev-utils-0.7.0.tgz", + "integrity": "sha512-KECBCnnHD9sh4lY0Q6+KcgKVwMBWUOGjEJ/7S8sER2L3BKciy9kLhPFB+LR3z1oQiNS/OI7lv3L4rtPEX5SPUQ==", "engines": { "node": ">=10.6.0" }, diff --git a/package.json b/package.json index 7a70294d..d0ef101c 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ }, "dependencies": { "moment-of-symmetry": "^0.4.2", - "xen-dev-utils": "^0.6.1" + "xen-dev-utils": "^0.7.0" }, "engines": { "node": ">=12.0.0" diff --git a/src/monzo.ts b/src/monzo.ts index a642c512..b59b81c1 100644 --- a/src/monzo.ts +++ b/src/monzo.ts @@ -1568,7 +1568,7 @@ export class TimeMonzo { * @returns The pitch-space half of the time monzo. */ sqrt() { - const residual = this.residual.pow(HALF); + const residual = this.residual.sqrt(); if (!residual) { return new TimeReal(this.timeExponent.valueOf(), this.valueOf()).sqrt(); }