speaker-calibration 2.2.263 → 2.2.264

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speaker-calibration",
3
- "version": "2.2.263",
3
+ "version": "2.2.264",
4
4
  "description": "Speaker calibration library for auditory testing",
5
5
  "main": "dist/main.js",
6
6
  "directories": {
@@ -525,8 +525,8 @@ class Speaker extends AudioPeer {
525
525
  explanation.style.lineHeight = '1.5';
526
526
  explanation.innerHTML = formatLineBreak(
527
527
  this.phrases.RC_skipQR_ExplanationWithoutPreferNot[this.language]
528
- .replace('xxx', `<b style="user-select: text">${shortURL}</b>`)
529
- .replace('𝕏𝕏𝕏', `<b style="user-select: text">${shortURL}</b>`),
528
+ .replace('[[xxx]]', `<b style="user-select: text">${shortURL}</b>`)
529
+ .replace('[[XXX]]', `<b style="user-select: text">${shortURL}</b>`),
530
530
  this.phrases.RC_checkInternetConnection[this.language]
531
531
  );
532
532
 
@@ -629,7 +629,10 @@ class Speaker extends AudioPeer {
629
629
  const timeToCalibrateDisplay = document.getElementById(this.timeToCalibrateDisplay);
630
630
  if (timeToCalibrateDisplay) {
631
631
  const timeToCalibrateText = this.phrases.RC_howLongToCalibrate[this.language];
632
- timeToCalibrateDisplay.innerHTML = timeToCalibrateText.replace('𝟙𝟙𝟙', this.timeToCalibrate);
632
+ timeToCalibrateDisplay.innerHTML = timeToCalibrateText.replace(
633
+ '[[111]]',
634
+ this.timeToCalibrate
635
+ );
633
636
  timeToCalibrateDisplay.style.fontWeight = 'normal';
634
637
  timeToCalibrateDisplay.style.fontSize = '1rem';
635
638
  // timeToCalibrateDisplay.style.paddingTop = '20px';
@@ -375,9 +375,9 @@ class Combination extends AudioCalibrator {
375
375
  : '';
376
376
 
377
377
  const samplingParamText = this.phrases.RC_SamplingHzBits[this.language]
378
- .replace('𝟙𝟙𝟙', this.sourceSamplingRate)
379
- .replace('𝟚𝟚𝟚', this.sinkSamplingRate)
380
- .replace('𝟛𝟛𝟛', this.calibrateSoundSamplingDesiredBits);
378
+ .replace('[[111]]', this.sourceSamplingRate)
379
+ .replace('[[222]]', this.sinkSamplingRate)
380
+ .replace('[[333]]', this.calibrateSoundSamplingDesiredBits);
381
381
  const reportParameters = `${simulateText}${samplingParamText} ↓${this._calibrateSoundBurstDownsample}:1`;
382
382
  if (this.flags) {
383
383
  flags = `<br> autoGainControl: ${this.flags.autoGainControl}, echoCancellation: ${this.flags.echoCancellation}, noiseSuppression: ${this.flags.noiseSuppression}`;
package/src/utils.js CHANGED
@@ -136,7 +136,7 @@ function interpolate(x, x0, x1, y0, y1) {
136
136
  export const formatLineBreak = (inputStr, checkInternetConnection) => {
137
137
  let finalStr = inputStr
138
138
  .replace(/\n/g, '<br>')
139
- .replace('𝕃𝕃𝕃', `<a href="#" id="check-connection">${checkInternetConnection}</a>`);
139
+ .replace('[[LLL]]', `<a href="#" id="check-connection">${checkInternetConnection}</a>`);
140
140
 
141
141
  console.log(finalStr);
142
142