🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

twitter-api-v2

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twitter-api-v2 - npm Package Compare versions

Comparing version

to
1.23.1

4

changelog.md

@@ -0,1 +1,5 @@

1.23.1
------
- Fix uploadMedia v2 issue #589 (@avillegasn)
1.23.0

@@ -2,0 +6,0 @@ ------

2

dist/cjs/client-mixins/request-handler.helper.js

@@ -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",