Skip to content

Commit

Permalink
chore(deps): update dependency prettier to v3.1.0 (#5983)
Browse files Browse the repository at this point in the history
* 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 <tom@tjenkinson.me>
  • Loading branch information
renovate[bot] and tjenkinson committed Nov 22, 2023
1 parent d13feb6 commit 6322fc0
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions build-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ const buildRollupConfig = ({
file: outputFile
? outputFile
: minified
? `./dist/${outputName}.min.${extension}`
: `./dist/${outputName}.${extension}`,
? `./dist/${outputName}.min.${extension}`
: `./dist/${outputName}.${extension}`,
format,
banner: shouldBundleWorker(format) ? workerFnBanner : null,
footer: shouldBundleWorker(format) ? workerFnFooter : null,
Expand Down
8 changes: 4 additions & 4 deletions demo/chart/chartjs-horizontal-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ Chart.controllers.horizontalBar.prototype.calculateBarValuePixels = function (
value.start === undefined
? 0
: value.max >= 0 && value.min >= 0
? value.min
: value.max;
? value.min
: value.max;
const length =
value.start === undefined
? value.end
: value.max >= 0 && value.min >= 0
? value.max - value.min
: value.min - value.max;
? value.max - value.min
: value.min - value.max;
const base = scale.getPixelForValue(start);
const head = scale.getPixelForValue(start + length);
const size = head - base;
Expand Down
4 changes: 2 additions & 2 deletions demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1465,8 +1465,8 @@ function getURLParam(sParam, defaultValue) {
return sParameterName[1] === 'undefined'
? undefined
: sParameterName[1] === 'false'
? false
: sParameterName[1];
? false
: sParameterName[1];
}
}
return defaultValue;
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"mocha": "10.2.0",
"node-fetch": "3.3.2",
"npm-run-all": "4.1.5",
"prettier": "3.0.3",
"prettier": "3.1.0",
"promise-polyfill": "8.3.0",
"rollup": "3.29.4",
"rollup-plugin-istanbul": "4.0.0",
Expand Down
8 changes: 4 additions & 4 deletions src/controller/abr-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ class AbrController implements AbrComponentAPI {
const currentFragDuration = partCurrent
? partCurrent.duration
: fragCurrent
? fragCurrent.duration
: 0;
? fragCurrent.duration
: 0;

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

const ttfbEstimateSec = this.bwEstimator.getEstimateTTFB() / 1000;
const levelsSkipped: number[] = [];
Expand Down
4 changes: 2 additions & 2 deletions src/controller/base-playlist-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ export default class BasePlaylistController implements NetworkComponentAPI {
details.advanced
? 'REFRESHED ' + details.lastPartSn + '-' + details.lastPartIndex
: details.updated
? 'UPDATED'
: 'MISSED'
? 'UPDATED'
: 'MISSED'
}`,
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/loader/playlist-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ class PlaylistLoader implements NetworkComponentAPI {
const levelId = Number.isFinite(level as number)
? (level as number)
: Number.isFinite(id as number)
? (id as number)
: 0;
? (id as number)
: 0;
const levelType = mapContextToLevelType(context);
const levelDetails: LevelDetails = M3U8Parser.parseLevelPlaylist(
response.data as string,
Expand Down
4 changes: 2 additions & 2 deletions src/utils/mp4-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ function parseStsd(stsd: Uint8Array): { codec: string; encrypted: boolean } {
? 12
: 10
: highBitDepth
? 10
: 8;
? 10
: 8;
const monochrome = (av1CBox[2] & 0x10) >> 4;
const chromaSubsamplingX = (av1CBox[2] & 0x08) >> 3;
const chromaSubsamplingY = (av1CBox[2] & 0x04) >> 2;
Expand Down
4 changes: 2 additions & 2 deletions src/utils/vttparser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ function parseCue(input: string, cue: VTTCue, regionList: Region[]) {
cue.align === 'start' || cue.align === 'left'
? 0
: cue.align === 'end' || cue.align === 'right'
? 100
: 50;
? 100
: 50;
}
cue.position = position;
}
Expand Down

0 comments on commit 6322fc0

Please sign in to comment.