Skip to content

Commit

Permalink
chore: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
eshaz committed Aug 7, 2023
1 parent d46f684 commit 1006016
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mse-audio-wrapper",
"version": "1.4.12",
"version": "1.4.13",
"description": "Library to enable Media Source Extensions API playback for unsupported audio containers and raw codecs",
"main": "src/MSEAudioWrapper.js",
"type": "module",
Expand Down Expand Up @@ -44,9 +44,9 @@
"url": "https://github.com/sponsors/eshaz"
},
"dependencies": {
"codec-parser": "2.4.2"
"codec-parser": "2.4.3"
},
"devDependencies": {
"prettier": "^2.8.7"
"prettier": "^3.0.1"
}
}
4 changes: 2 additions & 2 deletions src/MSEAudioWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ export default class MSEAudioWrapper {
if (chunk.constructor === Uint8Array) {
yield* this._processFrames(
[...this._codecParser.parseChunk(chunk)].flatMap(
(frame) => frame.codecFrames || frame
)
(frame) => frame.codecFrames || frame,
),
);
} else if (Array.isArray(chunk)) {
yield* this._processFrames(chunk);
Expand Down
2 changes: 1 addition & 1 deletion src/containers/ContainerElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default class ContainerElement {
if (Array.isArray(this._contents)) {
length = this._contents.reduce(
(acc, val) => acc + (val.length === undefined ? 1 : val.length),
0
0,
);
} else {
length = this._contents.length === undefined ? 1 : this._contents.length;
Expand Down
4 changes: 2 additions & 2 deletions src/containers/isobmff/ISOBMFFContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default class ISOBMFFContainer {
streamDescriptorTag.addTag(
new ESTag(5, {
contents: header.audioSpecificConfig,
})
}),
);
}

Expand Down Expand Up @@ -337,7 +337,7 @@ export default class ISOBMFFContainer {
getSamplesPerFrame(frames) {
return this._codec === MP4A_40_2
? frames.map(({ data, header }) =>
Box.getUint32(data.length - header.length)
Box.getUint32(data.length - header.length),
)
: frames.map(({ data }) => Box.getUint32(data.length));
}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/webm/EBML.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class EBML extends ContainerElement {
buffer[0] |= 0b00000001;
} else if (typeof number !== "number" || isNaN(number)) {
logError(
`EBML Variable integer must be a number, instead received ${number}`
`EBML Variable integer must be a number, instead received ${number}`,
);
throw new Error(MSE_AUDIO_WRAPPER + ": Unable to encode WEBM");
}
Expand Down
6 changes: 3 additions & 3 deletions src/containers/webm/WEBMContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class WEBMContainer {
this._getCodecSpecificTrack = (header) => [
new EBML(id.CodecDelay, {
contents: EBML.getUint32(
Math.round(header.preSkip * this._timestampScale)
Math.round(header.preSkip * this._timestampScale),
),
}), // OPUS codec delay
new EBML(id.SeekPreRoll, {
Expand Down Expand Up @@ -81,7 +81,7 @@ export default class WEBMContainer {
children: [
new EBML(id.TimestampScale, {
contents: EBML.getUint32(
Math.floor(this._timestampScale) // Base timestamps on sample rate vs. milliseconds https://www.matroska.org/technical/notes.html#timestamps
Math.floor(this._timestampScale), // Base timestamps on sample rate vs. milliseconds https://www.matroska.org/technical/notes.html#timestamps
),
}),
new EBML(id.MuxingApp, {
Expand Down Expand Up @@ -140,7 +140,7 @@ export default class WEBMContainer {
0x80, // No lacing
data, // ogg page contents
],
})
}),
),
],
}).contents;
Expand Down
2 changes: 1 addition & 1 deletion src/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const xiphLacing = (...buffers) =>
const logError = (...messages) => {
console.error(
MSE_AUDIO_WRAPPER,
messages.reduce((acc, message) => acc + "\n " + message, "")
messages.reduce((acc, message) => acc + "\n " + message, ""),
);
};

Expand Down

0 comments on commit 1006016

Please sign in to comment.