@ludovicm67/mp4-tools
Advanced tools
Comparing version 0.2.7 to 0.2.8
# @ludovicm67/mp4-tools | ||
## 0.2.8 | ||
### Patch Changes | ||
- e425a7f: Improve handling of optional types | ||
## 0.2.7 | ||
@@ -4,0 +10,0 @@ |
@@ -1,2 +0,2 @@ | ||
export function buildFile(data: MP4ParsedFile, context?: MP4ParsedFile | null): { | ||
export function buildFile(data: MP4ParsedFile, context?: MP4ParsedFile): { | ||
filedata: import('@ludovicm67/media-tools-utils').Buffer; | ||
@@ -6,3 +6,3 @@ rest: import('@ludovicm67/media-tools-utils').Buffer; | ||
export function parse(fileBuffer: import('@ludovicm67/media-tools-utils').Buffer): MP4ParsedFile; | ||
export function fix(prevChunk: import('@ludovicm67/media-tools-utils').Buffer, brokenChunk: import('@ludovicm67/media-tools-utils').Buffer, options: LibOptions | null): import('@ludovicm67/media-tools-utils').Buffer; | ||
export function fix(prevChunk: import('@ludovicm67/media-tools-utils').Buffer, brokenChunk: import('@ludovicm67/media-tools-utils').Buffer, options?: LibOptions): import('@ludovicm67/media-tools-utils').Buffer; | ||
/** | ||
@@ -36,3 +36,3 @@ * Internal representation of a MP4 file. | ||
*/ | ||
debug: boolean | null; | ||
debug?: boolean; | ||
}; | ||
@@ -39,0 +39,0 @@ import { utils } from '@ludovicm67/media-tools-utils'; |
@@ -26,3 +26,3 @@ // @ts-check | ||
* @param {MP4ParsedFile} data The data to build the file from. | ||
* @param {MP4ParsedFile?} [context={}] The context to use to build the file, usually the previous parsed chunk. | ||
* @param {MP4ParsedFile} [context={}] The context to use to build the file, usually the previous parsed chunk. | ||
* @returns {{ filedata: import('@ludovicm67/media-tools-utils').Buffer, rest: import('@ludovicm67/media-tools-utils').Buffer }} The built file and the rest of the file. | ||
@@ -144,3 +144,3 @@ */ | ||
* @typedef {Object} LibOptions | ||
* @property {boolean?} debug Whether to enable debug mode or not. | ||
* @property {boolean} [debug] Whether to enable debug mode or not. | ||
*/ | ||
@@ -155,3 +155,3 @@ | ||
* @param {import('@ludovicm67/media-tools-utils').Buffer} brokenChunk Content of the broken chunk. | ||
* @param {LibOptions?} options Options. | ||
* @param {LibOptions} [options={}] Options. | ||
* @returns {import('@ludovicm67/media-tools-utils').Buffer} The fixed chunk. | ||
@@ -158,0 +158,0 @@ */ |
{ | ||
"name": "@ludovicm67/mp4-tools", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "MP4 tools", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
66555
24