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

kaku-core

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kaku-core - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

22

modules/TrackInfoFetcher.js

@@ -1,8 +0,6 @@

'use strict';
var EventEmitter = require('events').EventEmitter;
var YoutubeDownloader = require('youtube-dl');
var BaseModule = require('../modules/BaseModule');
let EventEmitter = require('events').EventEmitter;
let YoutubeDownloader = require('youtube-dl');
let BaseModule = require('../modules/BaseModule');
let TrackInfoFetcher = function() {
var TrackInfoFetcher = function() {
EventEmitter.call(this);

@@ -38,3 +36,3 @@

this._userOptions = {};
for (let key in options) {
for (var key in options) {
this._userOptions[key] = options[key];

@@ -52,5 +50,5 @@ }

TrackInfoFetcher.prototype.getOptions = function() {
let options = this._defaultOptions.slice();
var options = this._defaultOptions.slice();
for (let key in this._userOptions) {
for (var key in this._userOptions) {
// we can't override default options

@@ -62,3 +60,3 @@ if (options.indexOf(key) !== -1) {

// [ '-f bestaudio', '--no-cache-dir ', ... ]
let option = key + ' ' + this._userOptions[key];
var option = key + ' ' + this._userOptions[key];
options.push(option);

@@ -76,4 +74,4 @@ }

TrackInfoFetcher.prototype.getInfo = function(url) {
let promise = new Promise((resolve, reject) => {
let options = this.getOptions();
var promise = new Promise((resolve, reject) => {
var options = this.getOptions();
YoutubeDownloader.getInfo(url, options, (error, info) => {

@@ -80,0 +78,0 @@ if (error) {

{
"name": "kaku-core",
"version": "0.0.6",
"version": "0.0.7",
"description": "This repo keeps shared scripts that can be reused in differnt clients",

@@ -5,0 +5,0 @@ "main": "index.js",

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