mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Add files via upload
This commit is contained in:
parent
2404df8b45
commit
8ddcc312b7
201
social/twitter/node_modules/twitter-api-v2/LICENSE
generated
vendored
Normal file
201
social/twitter/node_modules/twitter-api-v2/LICENSE
generated
vendored
Normal file
@ -0,0 +1,201 @@
|
|||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
130
social/twitter/node_modules/twitter-api-v2/README.md
generated
vendored
Normal file
130
social/twitter/node_modules/twitter-api-v2/README.md
generated
vendored
Normal file
@ -0,0 +1,130 @@
|
|||||||
|
# Twitter API v2
|
||||||
|
|
||||||
|
[![Twitter API v2 badge](https://img.shields.io/endpoint?url=https%3A%2F%2Ftwbadges.glitch.me%2Fbadges%2Fv2)](https://developer.twitter.com/en/docs/twitter-api/early-access)
|
||||||
|
[![Twitter API v1.1 badge](https://img.shields.io/endpoint?url=https%3A%2F%2Ftwbadges.glitch.me%2Fbadges%2Fstandard)](https://developer.twitter.com/en/docs/twitter-api/v1)
|
||||||
|
[![Version badge](https://badgen.net/github/release/PLhery/node-twitter-api-v2)](https://github.com/PLhery/node-twitter-api-v2)
|
||||||
|
[![Checks badge](https://github.com/PLhery/node-twitter-api-v2/actions/workflows/CI.yml/badge.svg)](https://github.com/PLhery/node-twitter-api-v2/actions/workflows/CI.yml)
|
||||||
|
[![Package size badge](https://badgen.net/bundlephobia/minzip/twitter-api-v2)](https://bundlephobia.com/package/twitter-api-v2)
|
||||||
|
|
||||||
|
Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.
|
||||||
|
|
||||||
|
Main maintainer: [@alkihis](https://github.com/alkihis) - <a href="https://www.buymeacoffee.com/alkihis" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" height="20px" marginTop="10px"></a>
|
||||||
|
|
||||||
|
|
||||||
|
## Highlights
|
||||||
|
|
||||||
|
✅ **Ready for v2 and good ol' v1.1 Twitter API**
|
||||||
|
|
||||||
|
✅ **Light: No dependencies, 23kb minified+gzipped**
|
||||||
|
|
||||||
|
✅ **Bundled types for request parameters and responses**
|
||||||
|
|
||||||
|
✅ **Streaming support**
|
||||||
|
|
||||||
|
✅ **Pagination utils**
|
||||||
|
|
||||||
|
✅ **User-context authentication with OAuth2**
|
||||||
|
|
||||||
|
✅ **Media upload helpers**
|
||||||
|
|
||||||
|
## How to use
|
||||||
|
|
||||||
|
Install it through your favorite package manager:
|
||||||
|
```bash
|
||||||
|
yarn add twitter-api-v2
|
||||||
|
# or
|
||||||
|
npm i twitter-api-v2
|
||||||
|
```
|
||||||
|
|
||||||
|
Here's a quick example of usage:
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import { TwitterApi } from 'twitter-api-v2';
|
||||||
|
|
||||||
|
// Instantiate with desired auth type (here's Bearer v2 auth)
|
||||||
|
const twitterClient = new TwitterApi('<YOUR_APP_USER_TOKEN>');
|
||||||
|
|
||||||
|
// Tell typescript it's a readonly app
|
||||||
|
const readOnlyClient = twitterClient.readOnly;
|
||||||
|
|
||||||
|
// Play with the built in methods
|
||||||
|
const user = await readOnlyClient.v2.userByUsername('plhery');
|
||||||
|
await twitterClient.v1.tweet('Hello, this is a test.');
|
||||||
|
// You can upload media easily!
|
||||||
|
await twitterClient.v1.uploadMedia('./big-buck-bunny.mp4');
|
||||||
|
```
|
||||||
|
|
||||||
|
## Why?
|
||||||
|
|
||||||
|
Sometimes, you just want to quickly bootstrap an application using the Twitter API.
|
||||||
|
Even though there are a lot of libraries available on the JavaScript ecosystem, they usually just
|
||||||
|
provide wrappers around HTTP methods, and some of them are bloated with many dependencies.
|
||||||
|
|
||||||
|
`twitter-api-v2` is meant to provide full endpoint wrapping, from method name to response data,
|
||||||
|
using descriptive typings for read/write/DMs rights, request parameters and response payload.
|
||||||
|
|
||||||
|
A small feature comparaison with other libs:
|
||||||
|
|
||||||
|
| Package | API version(s) | Response typings | Media helpers | Pagination | Subdeps | Size (gzip) | Install size |
|
||||||
|
| -------------- | -------------- | ---------------- | ------------- | ---------- | --------------- | -------------:| -------------:|
|
||||||
|
| twitter-api-v2 | v1.1, v2, labs | ✅ | ✅ | ✅ | 0 | ~23 kB | [![twitter-api-v2 install size badge](https://badgen.net/packagephobia/install/twitter-api-v2)](https://packagephobia.com/result?p=twitter-api-v2) |
|
||||||
|
| twit | v1.1 | ❌ | ✅ | ❌ | 51 | ~214.5 kB | [![twit install size badge](https://badgen.net/packagephobia/install/twit)](https://packagephobia.com/result?p=twit) |
|
||||||
|
| twitter | v1.1 | ❌ | ❌ | ❌ | 50 | ~182.1 kB | [![twitter install size badge](https://badgen.net/packagephobia/install/twitter)](https://packagephobia.com/result?p=twitter) |
|
||||||
|
| twitter-lite | v1.1, v2 | ❌ | ❌ | ❌ | 4 | ~5.3 kB | [![twitter-lite install size badge](https://badgen.net/packagephobia/install/twitter-lite)](https://packagephobia.com/result?p=twitter-lite) |
|
||||||
|
| twitter-v2 | v2 | ❌ | ❌ | ❌ | 7 | ~4.5 kB | [![twitter-v2 install size badge](https://badgen.net/packagephobia/install/twitter-v2)](https://packagephobia.com/result?p=twitter-v2) |
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
Here's everything `twitter-api-v2` can do:
|
||||||
|
|
||||||
|
### Basics:
|
||||||
|
- Support for v1.1 and **v2 of Twitter API**
|
||||||
|
- Make signed HTTP requests to Twitter with every auth type: **OAuth 1.0a**, **OAuth2** (even brand new user context OAuth2!) and **Basic** HTTP Authorization
|
||||||
|
- Helpers for numerous HTTP request methods (`GET`, `POST`, `PUT`, `DELETE` and `PATCH`),
|
||||||
|
that handle query string parse & format, automatic body formatting and more
|
||||||
|
- High-class support for stream endpoints, with easy data consumption and auto-reconnect on stream errors
|
||||||
|
|
||||||
|
### Request helpers:
|
||||||
|
- Automatic paginator for endpoints like user and tweet timelines,
|
||||||
|
allowing payload consumption with modern asynchronous iterators until your rate-limit is hit
|
||||||
|
- Convenient methods for authentication - generate auth links and ask for tokens to your users
|
||||||
|
- Media upload with API v1.1, including **long video & subtitles support**, automatic media type detection,
|
||||||
|
**chunked upload** and support for **concurrent uploads**
|
||||||
|
- Dedicated methods that wraps API v1.1 & v2 endpoints, with **typed arguments** and fully **typed responses**
|
||||||
|
- Typed errors, meaningful error messages, error enumerations for both v1.1 and v2
|
||||||
|
|
||||||
|
### Type-safe first:
|
||||||
|
- **Typings for tweet, user, media entities (and more) are bundled!**
|
||||||
|
- Type-safe wrapping of dedicated methods in 3 right level: *DM*/*Read-write*/*Read-only* (just like Twitter API do!) -
|
||||||
|
you can declare a read-only client - you will only see the methods associated with read-only endpoints
|
||||||
|
|
||||||
|
And last but not least, fully powered by native `Promise`s.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
Learn how to use the full potential of `twitter-api-v2`.
|
||||||
|
|
||||||
|
- Get started
|
||||||
|
- [Create a client and make your first request](./doc/basics.md)
|
||||||
|
- [Handle Twitter authentication flows](./doc/auth.md)
|
||||||
|
- [Explore some examples](./doc/examples.md)
|
||||||
|
- [Use and create plugins](./doc/plugins.md)
|
||||||
|
- Use endpoints wrappers — ensure typings of request & response
|
||||||
|
- [Available endpoint wrappers for v1.1 API](./doc/v1.md)
|
||||||
|
- [Available endpoint wrappers for v2 API](./doc/v2.md)
|
||||||
|
- [Use Twitter streaming endpoints (v1.1 & v2)](./doc/streaming.md)
|
||||||
|
- Deep diving into requests
|
||||||
|
- [Use direct HTTP-method wrappers](./doc/http-wrappers.md)
|
||||||
|
- [Use rate limit helpers](./doc/rate-limiting.md)
|
||||||
|
- [Handle errors](./doc/errors.md)
|
||||||
|
- [Master `twitter-api-v2` paginators](./doc/paginators.md)
|
||||||
|
- [Discover available helpers](./doc/helpers.md)
|
||||||
|
|
||||||
|
## Plugins
|
||||||
|
|
||||||
|
Official plugins for `twitter-api-v2`:
|
||||||
|
- [`@twitter-api-v2/plugin-token-refresher`](https://www.npmjs.com/package/@twitter-api-v2/plugin-token-refresher): Handle OAuth 2.0 (user-context) token refreshing for you
|
||||||
|
- [`@twitter-api-v2/plugin-rate-limit`](https://www.npmjs.com/package/@twitter-api-v2/plugin-rate-limit): Access and store automatically rate limit data
|
||||||
|
- [`@twitter-api-v2/plugin-cache-redis`](https://www.npmjs.com/package/@twitter-api-v2/plugin-cache-redis): Store responses in a Redis store and serve cached responses
|
||||||
|
|
||||||
|
See [how to use plugins here](./doc/plugins.md).
|
257
social/twitter/node_modules/twitter-api-v2/changelog.md
generated
vendored
Normal file
257
social/twitter/node_modules/twitter-api-v2/changelog.md
generated
vendored
Normal file
@ -0,0 +1,257 @@
|
|||||||
|
1.12.7
|
||||||
|
------
|
||||||
|
- Fix: Fix Exception throw when response data is truthy but not an object (for example, a raw HTML page) #354
|
||||||
|
- Fix: Typing issue with `TwitterApiErrorData.errors` that can be `undefined` in some cases #357
|
||||||
|
- Feat: Add `include_rts` parameters for `.userTimeline` #349
|
||||||
|
|
||||||
|
1.12.6
|
||||||
|
------
|
||||||
|
- Feat: add follow and unfollow api V1 methods (thanks to @Abdullah-Malik)
|
||||||
|
|
||||||
|
1.12.5
|
||||||
|
------
|
||||||
|
- Fix: Better check for error presence in `ApiResponseError` instanciation
|
||||||
|
|
||||||
|
1.12.4
|
||||||
|
------
|
||||||
|
- Fix: Ignore rate limit data for endpoints without rate limit headers in paginators #341
|
||||||
|
- Fix: Patch for unifiying endpoints with various error payload in v1 API #342
|
||||||
|
- Feat: `variants` property for `media.fields`, add `MediaVariantsV2` interface (thanks to @roncli) #347
|
||||||
|
|
||||||
|
1.12.3
|
||||||
|
------
|
||||||
|
- Feat: .favoriteTimeline for API v1 #296 (thanks to @AuroraDysis)
|
||||||
|
- Feat: duration_millis property for v1 medias (thanks to @RyoshiKayo)
|
||||||
|
- Feat: source_user_id and source_user_id_str missing properties in MediaEntityV1 (thanks to @AuroraDysis)
|
||||||
|
|
||||||
|
1.12.2
|
||||||
|
------
|
||||||
|
- Feat: .homeTimeline for API v2 #288
|
||||||
|
|
||||||
|
1.12.1
|
||||||
|
------
|
||||||
|
- Fix: missing id prop of TweetEntityMentionV2 #274 (@lima-eduardo)
|
||||||
|
- Fix: add place_id to SendTweetV1Params #287 (@viniciuskneves)
|
||||||
|
|
||||||
|
1.12.0
|
||||||
|
------
|
||||||
|
- Feat: Update plugin API to support response overloading on error #248
|
||||||
|
- Feat: `.quote` method to create a retweet with comment (quoted tweet) in `v1` and `v2` #260 (@jonah-saltzman)
|
||||||
|
|
||||||
|
1.11.3
|
||||||
|
------
|
||||||
|
- Feat: New spaces features: `topic_ids` and `ended_at` on space object, `/spaces/:id/buyers` endpoint #237
|
||||||
|
- Feat: New bookmarks API #237
|
||||||
|
- Feat: New Quoted tweets endpoint #237
|
||||||
|
- Feat: Allow v2.search to be used without query parameter #252
|
||||||
|
- Fix: Usertimeline v1 endpoint .done property value is false #238
|
||||||
|
- Feat: `sort_order` parameter #246 (@nolbuzanis)
|
||||||
|
- Fix: Better error message for failed media uploads #244 (@nolbuzanis)
|
||||||
|
|
||||||
|
1.11.2
|
||||||
|
------
|
||||||
|
- Fix: .meta is not correctly typed in paginators #231
|
||||||
|
- Fix: Catched promise is rejected without ability of catching it later when a request fails and a plugin is used #229
|
||||||
|
|
||||||
|
1.11.1
|
||||||
|
------
|
||||||
|
- Feat: Support error hooks in plugins #226 #227
|
||||||
|
- Fix: Bypass Twitter v2 incoherence by converting `start_time` to a valid `since_id` when `until_id` is used in paginators #197 #228
|
||||||
|
- Feat: Getter for DM images `.v1.downloadDmImage` to download images hosted on `ton.twitter.com` protected by OAuth 1.0a
|
||||||
|
|
||||||
|
1.11.0
|
||||||
|
------
|
||||||
|
- Feat: Support plugins (more features coming soon as plugins!)
|
||||||
|
- Feat: Compression level can now be specified explicitly
|
||||||
|
- Refactor: `.v1.uploadMedia()` now accept `options.mimeType` and `options.longVideo` as argument, in replacement of `options.type` (which is now deprecated)
|
||||||
|
- Fix: OAuth2 scope incorrectly encoded #184
|
||||||
|
|
||||||
|
1.10.3
|
||||||
|
------
|
||||||
|
- Feat: Native support of gzip compression for streaming endpoints
|
||||||
|
- Feat: Native support of brotli (25% more compressed than gzip) compression for non-streaming endpoints, when available
|
||||||
|
|
||||||
|
1.10.2
|
||||||
|
------
|
||||||
|
- Feat: Native support of gzip/deflate compression for non-streaming endpoints
|
||||||
|
|
||||||
|
1.10.1
|
||||||
|
------
|
||||||
|
- Fix: Crash when a v2 paginator is empty and response does not contains a `.meta` property #177
|
||||||
|
- Fix: "Memory leak" when response are abruptly closed by Twitter or OS, because no close/error listener on response object was attributed
|
||||||
|
|
||||||
|
1.10.0
|
||||||
|
------
|
||||||
|
- Feat: Pagination support for `tweets/:id/liking_users` and `tweets/:id/retweeted_by` #165
|
||||||
|
- Feat: Support custom Node HTTP agents #149
|
||||||
|
- Doc: Better example for `.v2.me()` and fix typos #160 #164 (thanks to @rbochenek and @ShubhamKushwah)
|
||||||
|
|
||||||
|
1.9.1
|
||||||
|
-----
|
||||||
|
- Fix: Use next_token instead of until_id if pagination token available #152
|
||||||
|
|
||||||
|
1.9.0
|
||||||
|
-----
|
||||||
|
- Feat: Helpers for v2 includes
|
||||||
|
- Feat: Support for custom debug loggers
|
||||||
|
- Fix: Errors accessor to get API errors in paginators #145
|
||||||
|
- Fix: Correctly update .includes/.meta/.errors in paginators when using async iterator #142
|
||||||
|
- Fix: Incorrect HTTP method for GET lists #147 #148
|
||||||
|
- Doc: Better doc & examples for OAuth 2.0 user-context
|
||||||
|
|
||||||
|
1.8.1
|
||||||
|
-----
|
||||||
|
- Feat: Add every GET lists v2 endpoints
|
||||||
|
|
||||||
|
1.8.0
|
||||||
|
-----
|
||||||
|
- Feat: Add OAuth2 user-context support
|
||||||
|
- Feat: Add users/me v2 endpoint wrapper
|
||||||
|
|
||||||
|
1.7.2
|
||||||
|
-----
|
||||||
|
- Fix: Paginator can return multiple times the same results in some conditions
|
||||||
|
- Feat: .done property for paginators, to know when a next page is fetchable
|
||||||
|
|
||||||
|
1.7.1
|
||||||
|
-----
|
||||||
|
- Fix: wrong type for optional parameter images in TweetEntityUrlV2
|
||||||
|
|
||||||
|
1.7.0
|
||||||
|
-----
|
||||||
|
- Feat: Create tweet v2 endpoint (thanks to @sudo-kaizen) #110
|
||||||
|
- Feat: Delete tweet v2 endpoint (thanks to @sudo-kaizen) #111
|
||||||
|
- Feat: Tweet thread and reply to a tweet v2
|
||||||
|
- Fix: BREAKING: Explicitly specify userId on userMutingUsers (thanks to @mika-f) #114
|
||||||
|
|
||||||
|
1.6.5
|
||||||
|
-----
|
||||||
|
- Fix: Increase retry timeout on stream reconnection
|
||||||
|
|
||||||
|
1.6.4
|
||||||
|
-----
|
||||||
|
- Fix: Reject stream reconnection if a reconnect process is already started
|
||||||
|
|
||||||
|
1.6.3
|
||||||
|
-----
|
||||||
|
- Fix: Streams will know correctly reject `.connect` `Promise` on connection error if `autoReconnect` is `false`
|
||||||
|
|
||||||
|
1.6.2
|
||||||
|
-----
|
||||||
|
- Feat: Streams do now support auto-reconnection for the initial connection attempt
|
||||||
|
|
||||||
|
1.6.1
|
||||||
|
-----
|
||||||
|
- Feat: New option for creating streams, `autoConnect` that is `true` by default ; Setting the value to `false` will cause the `TweetStream` object to be returned immediately (not in a `Promise`), because connection isn't awaited #92
|
||||||
|
- Fix: `autoReconnectRetries`: Setting this params to `Infinity` no longer causes the stream reconnection attempts to be delayed to next event loop turn #92
|
||||||
|
- Fix: Use `https.request(options)` instead of `https.request(url, options)`, because some people has outdated dependencies that overwrite native Node's exported function and break its signature #94 #96
|
||||||
|
- Feat: Next retry timeout computation can be customized by using `.nextRetryTimeout` property of `TweetStream` instance, that is function taking a `tryOccurence` and returning the number of milliseconds to wait before trying to reconnect
|
||||||
|
|
||||||
|
1.6.0
|
||||||
|
-----
|
||||||
|
- Feat: List v2 muted users endpoint #89
|
||||||
|
- Feat: Manage v2 lists endpoints
|
||||||
|
- Feat: Support user-flow with OAuth2 (beta - not documented yet)
|
||||||
|
- Fix: Incorrect typing for createMediaMetadata #93
|
||||||
|
|
||||||
|
1.5.2
|
||||||
|
-----
|
||||||
|
- Feat: Tweet thread helper #76 #79
|
||||||
|
- Fix: Explicit max_results parameters should now work properly in paginators #74 #84
|
||||||
|
- Fix: Endpoints with parameterized URLs now registers properly rate-limit data in cache store
|
||||||
|
|
||||||
|
1.5.1
|
||||||
|
-----
|
||||||
|
- Fix: Fix return type for v1.1 'tweets' wrapper #72
|
||||||
|
|
||||||
|
1.5.0
|
||||||
|
-----
|
||||||
|
- Feat: v1.1 List endpoints, GET and POST, with doc, paginators and typings #70
|
||||||
|
- Feat: Save rate limit information for last request of each endpoint #70
|
||||||
|
- Doc: Documentation improvements for uploading media #68 #70
|
||||||
|
- Doc: Fixed parameter name #67
|
||||||
|
|
||||||
|
1.4.1
|
||||||
|
-----
|
||||||
|
- Fix: Incorrect type union in MessageCreateAttachmentV1 & MessageCreateLocationV1
|
||||||
|
- Doc: Added real-life examples
|
||||||
|
- Doc: Add Twitter doc link to .tweet/.reply
|
||||||
|
|
||||||
|
1.4.0
|
||||||
|
-----
|
||||||
|
- Feat: Add every oauth/authenticate parameters #54 - thanks to @tbhmens
|
||||||
|
- Fix: Set allowSyntheticDefaultImport to false to improve compat #57 - thanks to @PLHery
|
||||||
|
- Feat: Add missing tweet.field items in type enumeration #60 - thanks to @filippkowalski
|
||||||
|
- Doc: Add info about error handling #61
|
||||||
|
- Feat: Endpoint wrappers for v2 Spaces endpoints #62
|
||||||
|
- Feat: Endpoint wrappers for v2 Batch Compliance endpoints #62
|
||||||
|
- Feat: Types & wrappers for account, friendships, users and tweets v1.1 endpoints #64
|
||||||
|
- Fix: Incorrect encoding of '*' character in query strings #63 #64
|
||||||
|
|
||||||
|
1.3.0
|
||||||
|
-----
|
||||||
|
- Doc: Improve rate-limit documentation #47 #32
|
||||||
|
- Feat: Public Direct Messages (DMs) 1.1 endpoints support: wrappers, typings, docs and tests #48
|
||||||
|
- Feat: New 05/06/07-2021 v2 endpoints wrappers #50
|
||||||
|
- Feat: Paginator mode for .following/.followers for v2 #50
|
||||||
|
- Fix: Many fixes for tweet streams auto-reconnect, handle connection errors more smoothly #50
|
||||||
|
- Feat: New events for tweet streams, that includes lost connection and reconnections #50
|
||||||
|
- Feat: Handle stream errors deliveries in a dedicated .DataError event (for v2 tweet streams) #50
|
||||||
|
- Fix: Corrections for body-mode auto-detection (mainly for manual API requests) #53
|
||||||
|
|
||||||
|
1.2.0
|
||||||
|
-----
|
||||||
|
- Fix: fetchLast was throwing an error with timelines #43
|
||||||
|
- Feat: Add .meta and .includes in v2 paginators #35 #46
|
||||||
|
- Feat: Add some missing attributes to tweetEntity typings #42
|
||||||
|
|
||||||
|
1.1.1
|
||||||
|
-----
|
||||||
|
- Fix: in streams, the KeepAlive was not emitted #33
|
||||||
|
|
||||||
|
1.1.0
|
||||||
|
-----
|
||||||
|
- Add the new v2 likes endpoint
|
||||||
|
- Fix: add some missing media types
|
||||||
|
|
||||||
|
1.0.0
|
||||||
|
-----
|
||||||
|
First Stable Version
|
||||||
|
- More tests, way more documentation
|
||||||
|
- Add every missing v2 endpoints
|
||||||
|
- Remove the two dependencies (form-data and oauth)
|
||||||
|
- Improve error management
|
||||||
|
- Fix issues with node12
|
||||||
|
- Fix issues with the auth API
|
||||||
|
|
||||||
|
0.4.0
|
||||||
|
-----
|
||||||
|
- Add V1 and V2 streaming V2 endpoints
|
||||||
|
- Add V2 followers and following endpoints
|
||||||
|
- Refactor / various fixes
|
||||||
|
|
||||||
|
0.3.0
|
||||||
|
-----
|
||||||
|
- Add the four API v2 user endpoints
|
||||||
|
- Improve type definitions
|
||||||
|
- Minor v2 search refactor
|
||||||
|
|
||||||
|
0.2.3
|
||||||
|
-----
|
||||||
|
- Fix npm package (was not built)
|
||||||
|
|
||||||
|
0.2.1
|
||||||
|
-----
|
||||||
|
- Export typescript definitions
|
||||||
|
|
||||||
|
0.2.0
|
||||||
|
-----
|
||||||
|
- Link and Oauth auth
|
||||||
|
- PUT/PATCH/DELETE
|
||||||
|
- improve get/post methods (build query strings, v1/v2 urls, ...)
|
||||||
|
- read/write/DMs segmentation
|
||||||
|
- native media chunked upload, with simultaneous send of file parts
|
||||||
|
|
||||||
|
0.1.0
|
||||||
|
-----
|
||||||
|
- First foundations
|
56
social/twitter/node_modules/twitter-api-v2/package.json
generated
vendored
Normal file
56
social/twitter/node_modules/twitter-api-v2/package.json
generated
vendored
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
{
|
||||||
|
"name": "twitter-api-v2",
|
||||||
|
"version": "1.12.7",
|
||||||
|
"description": "Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.",
|
||||||
|
"main": "dist/index.js",
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
|
"keywords": [
|
||||||
|
"twitter",
|
||||||
|
"api",
|
||||||
|
"typed",
|
||||||
|
"types",
|
||||||
|
"v2",
|
||||||
|
"v1.1"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"build": "tsc",
|
||||||
|
"build-doc": "typedoc src/index.ts --out tsdocs",
|
||||||
|
"lint": "eslint --ext \".ts\" --ignore-path .gitignore .",
|
||||||
|
"mocha": "mocha -r ts-node/register --timeout 10000",
|
||||||
|
"test": "npm run mocha 'test/**/*.test.ts'",
|
||||||
|
"test-tweet": "npm run mocha 'test/tweet.*.test.ts'",
|
||||||
|
"test-user": "npm run mocha 'test/user.*.test.ts'",
|
||||||
|
"test-stream": "npm run mocha test/stream.test.ts",
|
||||||
|
"test-media": "npm run mocha test/media-upload.test.ts",
|
||||||
|
"test-auth": "npm run mocha test/auth.test.ts",
|
||||||
|
"test-dm": "npm run mocha test/dm.*.test.ts",
|
||||||
|
"test-list": "npm run mocha test/list.*.test.ts",
|
||||||
|
"test-space": "npm run mocha test/space.v2.test.ts",
|
||||||
|
"test-account": "npm run mocha test/account.*.test.ts",
|
||||||
|
"test-plugin": "npm run mocha test/plugin.test.ts",
|
||||||
|
"prepublish": "npm run build"
|
||||||
|
},
|
||||||
|
"repository": "github:plhery/node-twitter-api-v2",
|
||||||
|
"author": "Paul-Louis Hery <paullouis.hery+twitterapi@gmail.com> (https://twitter.com/plhery)",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/chai": "^4.2.16",
|
||||||
|
"@types/mocha": "^9.0.0",
|
||||||
|
"@types/node": "^14.14.37",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^4.28.5",
|
||||||
|
"@typescript-eslint/parser": "^4.28.5",
|
||||||
|
"chai": "^4.3.4",
|
||||||
|
"dotenv": "^8.2.0",
|
||||||
|
"eslint": "^7.31.0",
|
||||||
|
"mocha": "^10.0.0",
|
||||||
|
"ts-node": "^9.1.1",
|
||||||
|
"typedoc": "^0.22.15",
|
||||||
|
"typescript": "^4.2.4"
|
||||||
|
},
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/plhery/node-twitter-api/issues"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user