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

bitcodin

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcodin - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

.npmignore

42

lib/bitcodin.js

@@ -231,2 +231,10 @@ /**

}
},
delete: function (jobId){
if (isNaN(jobId)) {
var def = Q.defer();
def.reject('jobId is no number!');
return def.promise;
}
return rest.delete('/job/' + jobId);
}

@@ -350,2 +358,36 @@ },

}
},
manifest: {
mpd: {
vtt: function (jobId, subtitles) {
if (isNaN(jobId)) {
var def = Q.defer();
def.reject('jobId is no number');
return def.promise;
}
if (!subtitles){
var def = Q.defer();
def.reject('subtitles need to be a url');
return def.promise;
}
var payload = { jobId: jobId, subtitles: subtitles }
return rest.post('/manifest/mpd/vtt', payload);
}
},
hls: {
vtt: function (jobId, subtitles) {
if (isNaN(jobId)) {
var def = Q.defer();
def.reject('jobId is no number');
return def.promise;
}
if (!subtitles){
var def = Q.defer();
def.reject('you need to provide subtitles array');
return def.promise;
}
var payload = { jobId: jobId, subtitles: subtitles }
return rest.post('/manifest/hls/vtt', payload);
}
}
}

@@ -352,0 +394,0 @@ };

4

package.json
{
"name": "bitcodin",
"version": "0.2.1",
"version": "0.3.0",
"description": "Bitcodin API wrapper",

@@ -45,5 +45,5 @@ "homepage": "https://github.com/bitmovin/bitcodin-node",

"name": "Martin Fillafer",
"email": "martin.fillafer@bitmovin.net"
"email": "martin.fillafer@bitmovin.com"
}
]
}
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