Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency prettier to v3.1.0 #5983

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading