Socket
Socket
Sign inDemoInstall

twitter-api-v2

Package Overview
Dependencies
0
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.14.3 to 1.15.0

4

changelog.md

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

1.15.0
------
- fix: Add missing client settings when fetching the token #480 (@qfish)
1.14.3

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

2

dist/cjs/client/readonly.js

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

// Create a client with Basic authentication
const basicClient = new _1.default({ username: tokens.appKey, password: tokens.appSecret });
const basicClient = new _1.default({ username: tokens.appKey, password: tokens.appSecret }, this._requestMaker.clientSettings);
const res = await basicClient.post('https://api.twitter.com/oauth2/token', { grant_type: 'client_credentials' });

@@ -151,0 +151,0 @@ // New object with Bearer token

@@ -143,3 +143,3 @@ import TwitterApi from '.';

// Create a client with Basic authentication
const basicClient = new TwitterApi({ username: tokens.appKey, password: tokens.appSecret });
const basicClient = new TwitterApi({ username: tokens.appKey, password: tokens.appSecret }, this._requestMaker.clientSettings);
const res = await basicClient.post('https://api.twitter.com/oauth2/token', { grant_type: 'client_credentials' });

@@ -146,0 +146,0 @@ // New object with Bearer token

{
"name": "twitter-api-v2",
"version": "1.14.3",
"version": "1.15.0",
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc