twitter-api-v2
Advanced tools
Comparing version 1.12.4 to 1.12.5
@@ -0,1 +1,5 @@ | ||
1.12.5 | ||
------ | ||
- Fix: Better check for error presence in `ApiResponseError` instanciation | ||
1.12.4 | ||
@@ -2,0 +6,0 @@ ------ |
@@ -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", |
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
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
498283