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

@ffprobe-installer/ffprobe

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ffprobe-installer/ffprobe - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

25

index.js
const os = require('node:os');
const path = require('node:path');
const process = require('node:process');

@@ -19,24 +18,8 @@ const verifyFile = require('./lib/verify-file.js');

const npm3Path = path.resolve(__dirname, '..', target);
const npm2Path = path.resolve(__dirname, 'node_modules', '@ffprobe-installer', target);
const npm3Binary = path.join(npm3Path, binary);
const npm2Binary = path.join(npm2Path, binary);
const npm3Package = path.join(npm3Path, 'package.json');
const npm2Package = path.join(npm2Path, 'package.json');
let ffprobePath;
let packageJson;
if (verifyFile(npm3Binary)) {
ffprobePath = npm3Binary;
packageJson = require(npm3Package);
} else if (verifyFile(npm2Binary)) {
ffprobePath = npm2Binary;
packageJson = require(npm2Package);
} else {
throw new Error('Could not find ffprobe executable, tried "' + npm3Binary + '" and "' + npm2Binary + '"');
const ffprobePath = require.resolve(`${packageName}/${binary}`);
if (!verifyFile(ffprobePath)) {
throw new Error(`Could not find ffprobe executable, tried "${ffprobePath}"`);
}
const packageJson = require(`${packageName}/package.json`);
const version = packageJson.ffprobe || packageJson.version;

@@ -43,0 +26,0 @@ const url = packageJson.homepage;

14

package.json
{
"name": "@ffprobe-installer/ffprobe",
"version": "2.1.1",
"version": "2.1.2",
"main": "index.js",

@@ -30,6 +30,6 @@ "scripts": {

"@ffprobe-installer/darwin-x64": "5.1.0",
"@ffprobe-installer/linux-arm": "5.1.0",
"@ffprobe-installer/linux-arm64": "5.1.0",
"@ffprobe-installer/linux-ia32": "5.1.0",
"@ffprobe-installer/linux-x64": "5.1.0",
"@ffprobe-installer/linux-arm": "5.2.0",
"@ffprobe-installer/linux-arm64": "5.2.0",
"@ffprobe-installer/linux-ia32": "5.2.0",
"@ffprobe-installer/linux-x64": "5.2.0",
"@ffprobe-installer/win32-ia32": "5.1.0",

@@ -41,3 +41,3 @@ "@ffprobe-installer/win32-x64": "5.1.0"

"codecov": "^3.7.2",
"execa": "^7.0.0",
"execa": "^8.0.1",
"executable": "^4.1.1",

@@ -48,3 +48,3 @@ "husky": "^8.0.3",

"typescript": "^5.1.6",
"xo": "^0.54.2"
"xo": "^0.56.0"
},

@@ -51,0 +51,0 @@ "repository": {

@@ -75,3 +75,3 @@ # node-ffprobe-installer

- Linux (armhf, arm64, ia32, x64) (20220910-c92edd9): https://www.johnvansickle.com/ffmpeg/
- Linux (armhf, arm64, ia32, x64) (20230721-c2b3861): https://www.johnvansickle.com/ffmpeg/
- macOS (x64) (20230213-f8d6d0f): https://evermeet.cx/ffmpeg/

@@ -78,0 +78,0 @@ - macOS (arm64) (5.1.2-7268323): contributed by [wongyiuhang](https://github.com/wongyiuhang)

@@ -7,4 +7,3 @@ declare const _exports: {

export = _exports;
import path = require("path");
declare const version: any;
declare const url: any;
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