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
4
Versions
60
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 3.1.3 to 3.1.4-test

22

dist/index.js
var __defProp = Object.defineProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
for (var name2 in all)
__defProp(target, name2, { get: all[name2], enumerable: true });
};

@@ -172,2 +172,6 @@

// package.json
var name = "@huggingface/inference";
var version = "3.1.4-test";
// src/lib/makeRequestOptions.ts

@@ -213,2 +217,4 @@ var HF_HUB_INFERENCE_PROXY_TEMPLATE = `${HF_HUB_URL}/api/inference-proxy/{{PROVIDER}}`;

}
const ownUserAgent = `${name}/${version}`;
headers["User-Agent"] = [ownUserAgent, typeof navigator !== "undefined" ? navigator.userAgent : void 0].filter((x) => x !== void 0).join(" ");
const binary = "data" in args && !!args.data;

@@ -239,4 +245,4 @@ if (!binary) {

if (provider === "replicate") {
const version = model.includes(":") ? model.split(":")[1] : void 0;
otherArgs = { input: otherArgs, version };
const version2 = model.includes(":") ? model.split(":")[1] : void 0;
otherArgs = { input: otherArgs, version: version2 };
}

@@ -1255,4 +1261,4 @@ const info = {

this.defaultOptions = defaultOptions;
for (const [name, fn] of Object.entries(tasks_exports)) {
Object.defineProperty(this, name, {
for (const [name2, fn] of Object.entries(tasks_exports)) {
Object.defineProperty(this, name2, {
enumerable: false,

@@ -1277,4 +1283,4 @@ value: (params, options) => (

defaultOptions;
for (const [name, fn] of Object.entries(tasks_exports)) {
Object.defineProperty(this, name, {
for (const [name2, fn] of Object.entries(tasks_exports)) {
Object.defineProperty(this, name2, {
enumerable: false,

@@ -1281,0 +1287,0 @@ value: (params, options) => (

{
"name": "@huggingface/inference",
"version": "3.1.3",
"version": "3.1.4-test",
"packageManager": "pnpm@8.10.5",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -10,2 +10,3 @@ import type { WidgetType } from "@huggingface/tasks";

import { isUrl } from "./isUrl";
import { version as packageVersion, name as packageName } from "../../package.json";

@@ -93,2 +94,8 @@ const HF_HUB_INFERENCE_PROXY_TEMPLATE = `${HF_HUB_URL}/api/inference-proxy/{{PROVIDER}}`;

// e.g. @huggingface/inference@3.1.3
const ownUserAgent = `${packageName}/${packageVersion}`;
headers["User-Agent"] = [ownUserAgent, typeof navigator !== "undefined" ? navigator.userAgent : undefined]
.filter((x) => x !== undefined)
.join(" ");
const binary = "data" in args && !!args.data;

@@ -95,0 +102,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