facebook-api-video-upload
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -94,4 +94,3 @@ 'use strict'; | ||
function facebookApiVideoUpload(args) { | ||
return Promise.resolve(streamToPromise(args.stream)) | ||
.then(buffer => buffer) | ||
return streamToPromise(args.stream) | ||
.then(buffer => [buffer, apiInit(args, buffer.length)]) | ||
@@ -98,0 +97,0 @@ .spread((buffer, res) => { |
{ | ||
"name": "facebook-api-video-upload", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "A handy function to upload video in chunk on the facebook graph.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -20,3 +20,3 @@ [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) | ||
id: yourid, //The id represent {page_id || user_id || event_id || group_id} | ||
stream: fs.createReadStream('./test/fixture/fixture.mp4') //path to the video, | ||
stream: fs.createReadStream('./test/fixture/fixture.mp4'), //path to the video, | ||
title: "my video", | ||
@@ -23,0 +23,0 @@ description: "my description" |
5119
5
92