New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

basisu

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basisu - npm Package Compare versions

Comparing version 1.15.0 to 1.16.3

bin/darwin/arm64/basisu

29

bin/basisu.js
#!/usr/bin/env node
const { execFile } = require('child_process');
const args = process.argv.slice(2);
const features = require('cpu-features')();

@@ -10,9 +11,5 @@ const os = require('os')

let platform = os.platform()
if(platform=='win32') {
if (platform == 'win32') {
platform = 'win';
}
if(platform == 'darwin') {
console.error('Darwin not supported in this version. Make a pull request with an image if you need it or use older version.', platform);
process.exit(1)
}
if (platform !== 'linux' && platform !== 'win' && platform !== 'darwin') {

@@ -28,5 +25,5 @@ console.error('Unsupported platform.', platform);

platform,
arch,
(features.flags.sse4_1 === true ? `${arch}_sse` : arch),
platform === 'win' ? 'basisu.exe' : 'basisu'
)
)

@@ -38,10 +35,10 @@ if (platform === 'linux' || platform === 'darwin') {

execFile(basisuPath, args, (err, stdout, stderr) => {
if (err) {
console.log(`err: ${err}`);
// node couldn't execute the command
return;
}
console.log(`stdout: ${stdout}`);
console.log(`stderr: ${stderr}`);
});
if (err) {
console.log(`err: ${err}`);
// node couldn't execute the command
return;
}
console.log(`stdout: ${stdout}`);
console.log(`stderr: ${stderr}`);
});
var os = require('os')
var path = require('path')
const features = require('cpu-features')();
var platform = os.platform()
let platform = os.platform()
if (platform == 'win32') {
platform = 'win';
}

@@ -17,3 +21,3 @@ if (platform !== 'linux' && platform !== 'win' && platform !== 'darwin') {

platform,
arch,
(features.flags.sse4_1 === true ? `${arch}_sse` : arch),
platform === 'win' ? 'basisu.exe' : 'basisu'

@@ -20,0 +24,0 @@ )

{
"name": "basisu",
"version": "1.15.0",
"version": "1.16.3",
"description": "Basis Universal encoder binaries",

@@ -14,3 +14,6 @@ "preferGlobal": true,

"bin": "bin/basisu.js",
"dependencies": {}
}
"dependencies": {
"cpu-features": "^0.0.4",
"fs-extra": "^11.1.0"
}
}

Sorry, the diff of this file is not supported yet

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