@ludovicm67/media-tools
Advanced tools
Comparing version 0.2.4 to 0.3.0
# @ludovicm67/media-tools | ||
## 0.3.0 | ||
### Minor Changes | ||
- e4ce2ed: Add support for OGG files | ||
### Patch Changes | ||
- e4ce2ed: Improve typings | ||
- Updated dependencies [e4ce2ed] | ||
- @ludovicm67/media-tools-utils@0.1.6 | ||
- @ludovicm67/webm-tools@0.3.5 | ||
- @ludovicm67/mp4-tools@0.2.5 | ||
## 0.2.4 | ||
@@ -4,0 +18,0 @@ |
// @ts-check | ||
import * as mp4 from '@ludovicm67/mp4-tools' | ||
import * as ogg from '@ludovicm67/ogg-tools' | ||
import * as webm from '@ludovicm67/webm-tools' | ||
@@ -16,2 +17,3 @@ | ||
MP4: 'mp4', | ||
OGG: 'ogg', | ||
WEBM: 'webm' | ||
@@ -33,3 +35,3 @@ } | ||
* @param {import('@ludovicm67/media-tools-utils').Buffer} brokenChunk Content of the broken chunk. | ||
* @param {MediaToolsOptions?} options Options. | ||
* @param {MediaToolsOptions} [options={}] Options. | ||
* @returns {import('@ludovicm67/media-tools-utils').Buffer} The fixed chunk. | ||
@@ -43,2 +45,4 @@ */ | ||
return mp4.fix(prevChunk, brokenChunk, { debug }) | ||
case MediaTypes.OGG: | ||
return ogg.fix(prevChunk, brokenChunk, { debug }) | ||
case MediaTypes.WEBM: | ||
@@ -54,3 +58,4 @@ return webm.fix(prevChunk, brokenChunk, { debug }) | ||
mp4, | ||
ogg, | ||
webm | ||
} |
{ | ||
"name": "@ludovicm67/media-tools", | ||
"version": "0.2.4", | ||
"version": "0.3.0", | ||
"description": "Media tools", | ||
"main": "index.js", | ||
"type": "module", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"typings": "tsc", | ||
"clean": "rimraf *.tgz **/*.d.ts*", | ||
"build": "yarn clean && yarn typings", | ||
"postpublish": "yarn clean", | ||
"clean": "rimraf *.tgz dist/", | ||
"build": "npm run clean && npm run typings", | ||
"prepack": "npm run build", | ||
"test": "true" | ||
@@ -23,2 +24,7 @@ }, | ||
}, | ||
"files": [ | ||
"dist", | ||
"index.js", | ||
"CHANGELOG.md" | ||
], | ||
"keywords": [ | ||
@@ -31,5 +37,5 @@ "media", | ||
"dependencies": { | ||
"@ludovicm67/media-tools-utils": "^0.1.5", | ||
"@ludovicm67/mp4-tools": "^0.2.4", | ||
"@ludovicm67/webm-tools": "^0.3.4", | ||
"@ludovicm67/media-tools-utils": "^0.1.6", | ||
"@ludovicm67/mp4-tools": "^0.2.5", | ||
"@ludovicm67/webm-tools": "^0.3.5", | ||
"buffer": "^6.0.3" | ||
@@ -36,0 +42,0 @@ }, |
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
7004
7
71