Socket
Socket
Sign inDemoInstall

@twurple/api-call

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twurple/api-call - npm Package Compare versions

Comparing version 7.0.0-pre.0 to 7.0.0-pre.1

2

lib/apiCall.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc