@twurple/api-call
Advanced tools
Comparing version 7.0.0-pre.0 to 7.0.0-pre.1
@@ -1,2 +0,2 @@ | ||
/// <reference lib="dom" /> | ||
import { type Response } from '@d-fischer/cross-fetch'; | ||
import type { TwitchApiCallFetchOptions, TwitchApiCallOptions } from './TwitchApiCallOptions'; | ||
@@ -3,0 +3,0 @@ /** |
"use strict"; | ||
/// <reference lib="dom" /> | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -4,0 +3,0 @@ exports.callTwitchApi = exports.callTwitchApiRaw = void 0; |
@@ -0,1 +1,2 @@ | ||
import { type Response } from '@d-fischer/cross-fetch'; | ||
import type { TwitchApiCallOptions } from '../TwitchApiCallOptions'; | ||
@@ -2,0 +3,0 @@ /** @private */ |
@@ -1,7 +0,5 @@ | ||
/// <reference lib="dom" /> | ||
import type { RequestInit as NodeRequestInit } from 'node-fetch'; | ||
/** | ||
* The endpoint to call, i.e. /helix or a custom (potentially unsupported) endpoint. | ||
*/ | ||
export declare type TwitchApiCallType = 'helix' | 'auth' | 'custom'; | ||
export type TwitchApiCallType = 'helix' | 'auth' | 'custom'; | ||
/** | ||
@@ -44,3 +42,34 @@ * Configuration for a single API call. | ||
} | ||
export declare type TwitchApiCallFetchOptions = Omit<RequestInit | NodeRequestInit, 'headers' | 'method' | 'body'>; | ||
/** | ||
* An interface to merge compatible fetch options into. | ||
* | ||
* :::warning | ||
* | ||
* You should make sure that this does not include the properties `headers`, `method` or `body` | ||
* in order to not conflict with the internally used properties. | ||
* | ||
* ::: | ||
* | ||
* To make use of the web fetch options, merge them into this like so | ||
* (assuming that RequestInit is the global type from the dom lib): | ||
* | ||
* ```ts | ||
* declare module '@twurple/api-call' { | ||
* export interface TwitchApiCallFetchOptions extends Omit<RequestInit, 'headers' | 'method' | 'body'> {} | ||
* } | ||
* ``` | ||
* | ||
* To make use of the node-fetch options, merge them into this like so: | ||
* | ||
* ```ts | ||
* import type { RequestInit as NodeRequestInit } from 'node-fetch'; | ||
* | ||
* declare module '@twurple/api-call' { | ||
* export interface TwitchApiCallFetchOptions extends Omit<NodeRequestInit, 'headers' | 'method' | 'body'> {} | ||
* } | ||
* ``` | ||
*/ | ||
export interface TwitchApiCallFetchOptions { | ||
/** @private */ _dummy?: never; | ||
} | ||
//# sourceMappingURL=TwitchApiCallOptions.d.ts.map |
"use strict"; | ||
/// <reference lib="dom" /> | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
{ | ||
"name": "@twurple/api-call", | ||
"version": "7.0.0-pre.0", | ||
"version": "7.0.0-pre.1", | ||
"publishConfig": { | ||
@@ -34,7 +34,6 @@ "access": "public" | ||
"dependencies": { | ||
"@d-fischer/cross-fetch": "^4.0.2", | ||
"@d-fischer/cross-fetch": "^5.0.1", | ||
"@d-fischer/qs": "^7.0.2", | ||
"@d-fischer/shared-utils": "^3.6.1", | ||
"@twurple/common": "7.0.0-pre.0", | ||
"@types/node-fetch": "^2.5.7", | ||
"@twurple/common": "7.0.0-pre.1", | ||
"tslib": "^2.0.3" | ||
@@ -41,0 +40,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
22683
5
455
+ Added@d-fischer/cross-fetch@5.0.5(transitive)
+ Added@twurple/common@7.0.0-pre.1(transitive)
- Removed@types/node-fetch@^2.5.7
- Removed@d-fischer/cross-fetch@4.2.1(transitive)
- Removed@twurple/common@7.0.0-pre.0(transitive)
- Removed@types/node@22.5.5(transitive)
- Removed@types/node-fetch@2.6.11(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedform-data@4.0.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedundici-types@6.19.8(transitive)
Updated@twurple/common@7.0.0-pre.1