twitter-api-v2
Advanced tools
Comparing version 1.14.3 to 1.15.0
@@ -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 @@ ------ |
@@ -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", |
994559