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

@drippy-music/commons

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drippy-music/commons - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

15

index.d.ts

@@ -1,5 +0,1 @@

import { Writable } from "stream";
import { ChildProcess } from "child_process";
import { MessagePort } from "worker_threads";
import Match from "./model/match";

@@ -10,13 +6,2 @@

/**
* Creates a new ChildProcess for ffmpeg
*/
ffmpeg: ChildProcess;
/**
* Creates a new Writable stream to be used with 'worker_threads'
* @param port The worker's parent port
*/
createWorkerStream(port: MessagePort): Writable;
/**
* Validate an object and its properties

@@ -23,0 +8,0 @@ * @param params The object to be validated

@@ -1,5 +0,1 @@

const { Writable } = require('stream');
const { spawn } = require('child_process');
const ffmpeg_static = require('ffmpeg-static');
const fuzz = require('fuzzball');

@@ -10,3 +6,2 @@ const Fuse = require('fuse.js');

const args = ['-f', 'mp3', '-i', 'pipe:0', '-acodec', 'libopus', '-f', 'webm', 'pipe:1'];
const _mergeScores = (matches = [[]]) => {

@@ -27,12 +22,2 @@ const merged = [];

get ffmpeg() {
return spawn(ffmpeg_static, args);
}
createWorkerStream(port) {
const worker_stream = new Writable();
worker_stream.write = (data) => port.postMessage(data.buffer);
return worker_stream;
}
validate(params = {}, required = []) {

@@ -39,0 +24,0 @@ const fields = [];

45

package.json
{
"name": "@drippy-music/commons",
"version": "1.0.0",
"description": "Drippy's common Node.JS utilities",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Drippy-Music/drippy-commons.git"
},
"author": "Vitor Mac",
"license": "MIT",
"bugs": {
"url": "https://github.com/Drippy-Music/drippy-commons/issues"
},
"homepage": "https://github.com/Drippy-Music/drippy-commons#readme",
"dependencies": {
"ffmpeg-static": "^4.1.0",
"fuse.js": "^5.1.0",
"fuzzball": "^1.3.0"
}
}
"name": "@drippy-music/commons",
"version": "1.0.1",
"description": "Drippy's common Node.JS utilities",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Drippy-Music/drippy-commons.git"
},
"author": "Vitor Mac",
"license": "MIT",
"bugs": {
"url": "https://github.com/Drippy-Music/drippy-commons/issues"
},
"homepage": "https://github.com/Drippy-Music/drippy-commons#readme",
"dependencies": {
"fuse.js": "^5.1.0",
"fuzzball": "^1.3.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