Skip to content

Commit 6322fc0

Browse files
chore(deps): update dependency prettier to v3.1.0 (#5983)
* chore(deps): update dependency prettier to v3.1.0 * Run prettier --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tom Jenkinson <[email protected]>
1 parent d13feb6 commit 6322fc0

File tree

10 files changed

+28
-28
lines changed

10 files changed

+28
-28
lines changed

build-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ const buildRollupConfig = ({
266266
file: outputFile
267267
? outputFile
268268
: minified
269-
? `./dist/${outputName}.min.${extension}`
270-
: `./dist/${outputName}.${extension}`,
269+
? `./dist/${outputName}.min.${extension}`
270+
: `./dist/${outputName}.${extension}`,
271271
format,
272272
banner: shouldBundleWorker(format) ? workerFnBanner : null,
273273
footer: shouldBundleWorker(format) ? workerFnFooter : null,

demo/chart/chartjs-horizontal-bar.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ Chart.controllers.horizontalBar.prototype.calculateBarValuePixels = function (
1919
value.start === undefined
2020
? 0
2121
: value.max >= 0 && value.min >= 0
22-
? value.min
23-
: value.max;
22+
? value.min
23+
: value.max;
2424
const length =
2525
value.start === undefined
2626
? value.end
2727
: value.max >= 0 && value.min >= 0
28-
? value.max - value.min
29-
: value.min - value.max;
28+
? value.max - value.min
29+
: value.min - value.max;
3030
const base = scale.getPixelForValue(start);
3131
const head = scale.getPixelForValue(start + length);
3232
const size = head - base;

demo/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,8 +1465,8 @@ function getURLParam(sParam, defaultValue) {
14651465
return sParameterName[1] === 'undefined'
14661466
? undefined
14671467
: sParameterName[1] === 'false'
1468-
? false
1469-
: sParameterName[1];
1468+
? false
1469+
: sParameterName[1];
14701470
}
14711471
}
14721472
return defaultValue;

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"mocha": "10.2.0",
118118
"node-fetch": "3.3.2",
119119
"npm-run-all": "4.1.5",
120-
"prettier": "3.0.3",
120+
"prettier": "3.1.0",
121121
"promise-polyfill": "8.3.0",
122122
"rollup": "3.29.4",
123123
"rollup-plugin-istanbul": "4.0.0",

src/controller/abr-controller.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@ class AbrController implements AbrComponentAPI {
504504
const currentFragDuration = partCurrent
505505
? partCurrent.duration
506506
: fragCurrent
507-
? fragCurrent.duration
508-
: 0;
507+
? fragCurrent.duration
508+
: 0;
509509

510510
// playbackRate is the absolute value of the playback rate; if media.playbackRate is 0, we use 1 to load as
511511
// if we're playing back at the normal rate.
@@ -647,8 +647,8 @@ class AbrController implements AbrComponentAPI {
647647
const currentFragDuration = partCurrent
648648
? partCurrent.duration
649649
: fragCurrent
650-
? fragCurrent.duration
651-
: 0;
650+
? fragCurrent.duration
651+
: 0;
652652

653653
const ttfbEstimateSec = this.bwEstimator.getEstimateTTFB() / 1000;
654654
const levelsSkipped: number[] = [];

src/controller/base-playlist-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ export default class BasePlaylistController implements NetworkComponentAPI {
152152
details.advanced
153153
? 'REFRESHED ' + details.lastPartSn + '-' + details.lastPartIndex
154154
: details.updated
155-
? 'UPDATED'
156-
: 'MISSED'
155+
? 'UPDATED'
156+
: 'MISSED'
157157
}`,
158158
);
159159
}

src/loader/playlist-loader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ class PlaylistLoader implements NetworkComponentAPI {
457457
const levelId = Number.isFinite(level as number)
458458
? (level as number)
459459
: Number.isFinite(id as number)
460-
? (id as number)
461-
: 0;
460+
? (id as number)
461+
: 0;
462462
const levelType = mapContextToLevelType(context);
463463
const levelDetails: LevelDetails = M3U8Parser.parseLevelPlaylist(
464464
response.data as string,

src/utils/mp4-tools.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ function parseStsd(stsd: Uint8Array): { codec: string; encrypted: boolean } {
382382
? 12
383383
: 10
384384
: highBitDepth
385-
? 10
386-
: 8;
385+
? 10
386+
: 8;
387387
const monochrome = (av1CBox[2] & 0x10) >> 4;
388388
const chromaSubsamplingX = (av1CBox[2] & 0x08) >> 3;
389389
const chromaSubsamplingY = (av1CBox[2] & 0x04) >> 2;

src/utils/vttparser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ function parseCue(input: string, cue: VTTCue, regionList: Region[]) {
221221
cue.align === 'start' || cue.align === 'left'
222222
? 0
223223
: cue.align === 'end' || cue.align === 'right'
224-
? 100
225-
: 50;
224+
? 100
225+
: 50;
226226
}
227227
cue.position = position;
228228
}

0 commit comments

Comments
 (0)