Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ludovicm67/media-tools

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ludovicm67/media-tools - npm Package Compare versions

Comparing version 0.2.4 to 0.3.0

dist/index.d.ts

14

CHANGELOG.md
# @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 @@

7

index.js
// @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
}

20

package.json
{
"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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc