New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@huggingface/inference

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huggingface/inference - npm Package Compare versions

Comparing version 2.0.0-rc1 to 2.0.0-rc2

src/utils/distributive-omit.d.ts

2

package.json
{
"name": "@huggingface/inference",
"version": "2.0.0rc1",
"version": "2.0.0-rc2",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Tim Mikeladze <tim.mikeladze@gmail.com>",

import * as tasks from "./tasks";
import type { Options, RequestArgs } from "./types";
import type { DistributiveOmit } from "./utils/distributive-omit";

@@ -8,3 +9,3 @@ type Task = typeof tasks;

[key in keyof Task]: (
args: Omit<Parameters<Task[key]>[0], "accessToken">,
args: DistributiveOmit<Parameters<Task[key]>[0], "accessToken">,
options?: Parameters<Task[key]>[1]

@@ -16,3 +17,3 @@ ) => ReturnType<Task[key]>;

[key in keyof Task]: (
args: Omit<Parameters<Task[key]>[0], "accessToken" | "model">,
args: DistributiveOmit<Parameters<Task[key]>[0], "accessToken" | "model">,
options?: Parameters<Task[key]>[1]

@@ -56,3 +57,3 @@ ) => ReturnType<Task[key]>;

enumerable: false,
value: (params: Omit<RequestArgs, "model">, options: Options) =>
value: (params: RequestArgs, options: Options) =>
// eslint-disable-next-line @typescript-eslint/no-explicit-any

@@ -59,0 +60,0 @@ fn({ ...params, accessToken, model: endpointUrl } as any, { ...defaultOptions, ...options }),

@@ -39,5 +39,5 @@ export interface Options {

export type RequestArgs = BaseArgs &
({ data?: Blob | ArrayBuffer } | { inputs: unknown }) & {
({ data: Blob | ArrayBuffer } | { inputs: unknown }) & {
parameters?: Record<string, unknown>;
accessToken?: string;
};
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