diff --git a/build.mjs b/build.mjs index 3e193cf..9b4b7f8 100644 --- a/build.mjs +++ b/build.mjs @@ -6,7 +6,7 @@ const baseConfig = { bundle: true, logLevel: 'info', banner: { - js: `/* + js: `/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public @@ -14,6 +14,7 @@ const baseConfig = { * file, You can obtain one at https://mozilla.org/MPL/2.0/. */`, }, + legalComments: 'none', }; const umdConfig = { diff --git a/scripts/ensure-license-headers.ts b/scripts/ensure-license-headers.ts index 68d458d..cf4e3e8 100644 --- a/scripts/ensure-license-headers.ts +++ b/scripts/ensure-license-headers.ts @@ -4,7 +4,7 @@ import { fileURLToPath } from 'url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); -const LICENSE_HEADER = `/* +const LICENSE_HEADER = `/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/codec-data.ts b/src/codec-data.ts index 6eea22b..9f7b80f 100644 --- a/src/codec-data.ts +++ b/src/codec-data.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/codec.ts b/src/codec.ts index 2465adf..4a0eb65 100644 --- a/src/codec.ts +++ b/src/codec.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/conversion.ts b/src/conversion.ts index 7725e5f..9eb98b8 100644 --- a/src/conversion.ts +++ b/src/conversion.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/custom-coder.ts b/src/custom-coder.ts index 407ffb1..71e1381 100644 --- a/src/custom-coder.ts +++ b/src/custom-coder.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/demuxer.ts b/src/demuxer.ts index db26556..b47d0c1 100644 --- a/src/demuxer.ts +++ b/src/demuxer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/index.ts b/src/index.ts index 22e7af0..dd6b185 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/input-format.ts b/src/input-format.ts index 4cea7a0..d9d34ca 100644 --- a/src/input-format.ts +++ b/src/input-format.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/input-track.ts b/src/input-track.ts index 086ddf0..6b33aac 100644 --- a/src/input-track.ts +++ b/src/input-track.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/input.ts b/src/input.ts index 8a947e2..5c3d086 100644 --- a/src/input.ts +++ b/src/input.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/isobmff/isobmff-boxes.ts b/src/isobmff/isobmff-boxes.ts index a0b27a5..5da915a 100644 --- a/src/isobmff/isobmff-boxes.ts +++ b/src/isobmff/isobmff-boxes.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/isobmff/isobmff-demuxer.ts b/src/isobmff/isobmff-demuxer.ts index 8061e38..fa7f5d7 100644 --- a/src/isobmff/isobmff-demuxer.ts +++ b/src/isobmff/isobmff-demuxer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/isobmff/isobmff-misc.ts b/src/isobmff/isobmff-misc.ts index 0ccf5df..2024c94 100644 --- a/src/isobmff/isobmff-misc.ts +++ b/src/isobmff/isobmff-misc.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/isobmff/isobmff-muxer.ts b/src/isobmff/isobmff-muxer.ts index f2e52b3..821774a 100644 --- a/src/isobmff/isobmff-muxer.ts +++ b/src/isobmff/isobmff-muxer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/isobmff/isobmff-reader.ts b/src/isobmff/isobmff-reader.ts index 5f01b0d..425059b 100644 --- a/src/isobmff/isobmff-reader.ts +++ b/src/isobmff/isobmff-reader.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/matroska/ebml.ts b/src/matroska/ebml.ts index d03d326..1db1f8a 100644 --- a/src/matroska/ebml.ts +++ b/src/matroska/ebml.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/matroska/matroska-demuxer.ts b/src/matroska/matroska-demuxer.ts index ea7ac12..6ab02ca 100644 --- a/src/matroska/matroska-demuxer.ts +++ b/src/matroska/matroska-demuxer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/matroska/matroska-misc.ts b/src/matroska/matroska-misc.ts index 304679f..38584fe 100644 --- a/src/matroska/matroska-misc.ts +++ b/src/matroska/matroska-misc.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/matroska/matroska-muxer.ts b/src/matroska/matroska-muxer.ts index f87e9c6..3d58309 100644 --- a/src/matroska/matroska-muxer.ts +++ b/src/matroska/matroska-muxer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/media-sink.ts b/src/media-sink.ts index 3ec0a20..816a3f0 100644 --- a/src/media-sink.ts +++ b/src/media-sink.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/media-source.ts b/src/media-source.ts index b580c79..7734f5f 100644 --- a/src/media-source.ts +++ b/src/media-source.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/misc.ts b/src/misc.ts index f2c0bb2..92c7321 100644 --- a/src/misc.ts +++ b/src/misc.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/mp3/mp3-demuxer.ts b/src/mp3/mp3-demuxer.ts index f426ab0..3f64fa9 100644 --- a/src/mp3/mp3-demuxer.ts +++ b/src/mp3/mp3-demuxer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/mp3/mp3-misc.ts b/src/mp3/mp3-misc.ts index d9a7eeb..687b5f6 100644 --- a/src/mp3/mp3-misc.ts +++ b/src/mp3/mp3-misc.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/mp3/mp3-muxer.ts b/src/mp3/mp3-muxer.ts index ba4dbf7..3d95b7c 100644 --- a/src/mp3/mp3-muxer.ts +++ b/src/mp3/mp3-muxer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/mp3/mp3-reader.ts b/src/mp3/mp3-reader.ts index eadcac4..11152ab 100644 --- a/src/mp3/mp3-reader.ts +++ b/src/mp3/mp3-reader.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/mp3/mp3-writer.ts b/src/mp3/mp3-writer.ts index 328777b..380631a 100644 --- a/src/mp3/mp3-writer.ts +++ b/src/mp3/mp3-writer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/muxer.ts b/src/muxer.ts index 6fff533..45ee2cd 100644 --- a/src/muxer.ts +++ b/src/muxer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/ogg/ogg-demuxer.ts b/src/ogg/ogg-demuxer.ts index a1c4c28..708e8c4 100644 --- a/src/ogg/ogg-demuxer.ts +++ b/src/ogg/ogg-demuxer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/ogg/ogg-misc.ts b/src/ogg/ogg-misc.ts index 7beb95a..07ef2a5 100644 --- a/src/ogg/ogg-misc.ts +++ b/src/ogg/ogg-misc.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/ogg/ogg-muxer.ts b/src/ogg/ogg-muxer.ts index dedafaa..1b18333 100644 --- a/src/ogg/ogg-muxer.ts +++ b/src/ogg/ogg-muxer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/ogg/ogg-reader.ts b/src/ogg/ogg-reader.ts index 57a8e10..3459b30 100644 --- a/src/ogg/ogg-reader.ts +++ b/src/ogg/ogg-reader.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/output-format.ts b/src/output-format.ts index c94cf62..e26d182 100644 --- a/src/output-format.ts +++ b/src/output-format.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/output.ts b/src/output.ts index 675529a..f99f3f4 100644 --- a/src/output.ts +++ b/src/output.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/packet.ts b/src/packet.ts index bd5952e..ddbdc56 100644 --- a/src/packet.ts +++ b/src/packet.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/pcm.ts b/src/pcm.ts index 2aad005..f83feae 100644 --- a/src/pcm.ts +++ b/src/pcm.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/reader.ts b/src/reader.ts index fb4a9e4..138601a 100644 --- a/src/reader.ts +++ b/src/reader.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/sample.ts b/src/sample.ts index f93557f..62475f1 100644 --- a/src/sample.ts +++ b/src/sample.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/source.ts b/src/source.ts index e16fb84..30cb989 100644 --- a/src/source.ts +++ b/src/source.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/subtitles.ts b/src/subtitles.ts index b67f958..d4c3ba1 100644 --- a/src/subtitles.ts +++ b/src/subtitles.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/target.ts b/src/target.ts index 914bc82..78fc777 100644 --- a/src/target.ts +++ b/src/target.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/wave/riff-reader.ts b/src/wave/riff-reader.ts index 9cdba48..58c5bd4 100644 --- a/src/wave/riff-reader.ts +++ b/src/wave/riff-reader.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/wave/riff-writer.ts b/src/wave/riff-writer.ts index 3c79a5c..cbfc102 100644 --- a/src/wave/riff-writer.ts +++ b/src/wave/riff-writer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/wave/wave-demuxer.ts b/src/wave/wave-demuxer.ts index ea1f3df..b5a446f 100644 --- a/src/wave/wave-demuxer.ts +++ b/src/wave/wave-demuxer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/wave/wave-muxer.ts b/src/wave/wave-muxer.ts index 20c0a36..c4bfb4e 100644 --- a/src/wave/wave-muxer.ts +++ b/src/wave/wave-muxer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/writer.ts b/src/writer.ts index 4077b91..d9853c4 100644 --- a/src/writer.ts +++ b/src/writer.ts @@ -1,4 +1,4 @@ -/* +/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public