twitter-api-v2
Advanced tools
Comparing version
@@ -0,1 +1,5 @@ | ||
1.23.1 | ||
------ | ||
- Fix uploadMedia v2 issue #589 (@avillegasn) | ||
1.23.0 | ||
@@ -2,0 +6,0 @@ ------ |
@@ -97,3 +97,3 @@ "use strict"; | ||
const errors = data.errors; | ||
if ('code' in errors[0]) { | ||
if (typeof errors[0] === 'object' && 'code' in errors[0]) { | ||
errorString += ' - ' + this.formatV1Errors(errors); | ||
@@ -100,0 +100,0 @@ } |
@@ -130,3 +130,3 @@ "use strict"; | ||
const appendArguments = { | ||
segment_index: i + 1, | ||
segment_index: i, | ||
media: chunkedBuffer, | ||
@@ -133,0 +133,0 @@ }; |
@@ -68,3 +68,3 @@ import { request } from 'https'; | ||
const errors = data.errors; | ||
if ('code' in errors[0]) { | ||
if (typeof errors[0] === 'object' && 'code' in errors[0]) { | ||
errorString += ' - ' + this.formatV1Errors(errors); | ||
@@ -71,0 +71,0 @@ } |
@@ -125,3 +125,3 @@ import { API_V2_PREFIX } from '../globals'; | ||
const appendArguments = { | ||
segment_index: i + 1, | ||
segment_index: i, | ||
media: chunkedBuffer, | ||
@@ -128,0 +128,0 @@ }; |
{ | ||
"name": "twitter-api-v2", | ||
"version": "1.23.0", | ||
"version": "1.23.1", | ||
"description": "Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
1027424
0.01%