@ludovicm67/ogg-tools
Advanced tools
Comparing version 0.1.2 to 0.1.3
# @ludovicm67/ogg-tools | ||
## 0.1.3 | ||
### Patch Changes | ||
- e425a7f: Improve handling of optional types | ||
## 0.1.2 | ||
@@ -4,0 +10,0 @@ |
@@ -1,2 +0,2 @@ | ||
export function buildFile(data: OGGParsedFile, context?: OGGParsedFile | null): { | ||
export function buildFile(data: OGGParsedFile, context?: OGGParsedFile): { | ||
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): OGGParsedFile; | ||
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; | ||
/** | ||
@@ -50,3 +50,3 @@ * OGG page type. | ||
*/ | ||
debug: boolean | null; | ||
debug?: boolean; | ||
}; | ||
@@ -53,0 +53,0 @@ import { utils } from '@ludovicm67/media-tools-utils'; |
@@ -37,3 +37,3 @@ // @ts-check | ||
* @param {OGGParsedFile} data The data to build the file from. | ||
* @param {OGGParsedFile?} [context] The context to use to build the file, usually the previous parsed chunk. | ||
* @param {OGGParsedFile} [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. | ||
@@ -148,3 +148,3 @@ */ | ||
* @typedef {Object} LibOptions | ||
* @property {boolean?} debug Whether to enable debug mode or not. | ||
* @property {boolean} [debug] Whether to enable debug mode or not. | ||
*/ | ||
@@ -159,3 +159,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. | ||
@@ -162,0 +162,0 @@ */ |
{ | ||
"name": "@ludovicm67/ogg-tools", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "OGG tools", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58523
18