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

twitter-api-v2

Package Overview
Dependencies
Maintainers
1
Versions
68
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 1.12.4 to 1.12.5

4

changelog.md

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

1.12.5
------
- Fix: Better check for error presence in `ApiResponseError` instanciation
1.12.4

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

2

dist/types/errors.types.js

@@ -78,3 +78,3 @@ "use strict";

// Fix bad error data payload on some v1 endpoints (see https://github.com/PLhery/node-twitter-api-v2/issues/342)
if ('error' in options.data) {
if (options.data && 'error' in options.data && !options.data.errors) {
const data = { ...options.data };

@@ -81,0 +81,0 @@ data.errors = [{

{
"name": "twitter-api-v2",
"version": "1.12.4",
"version": "1.12.5",
"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/index.js",

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