Comparing version 0.2.1 to 0.3.0
@@ -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 @@ }; |
{ | ||
"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" | ||
} | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59557
1439
1
3