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.3.0 to 2.3.1

dist/index.d.ts

2

./dist/index.js

@@ -25,2 +25,3 @@ "use strict";

HfInferenceEndpoint: () => HfInferenceEndpoint,
InferenceOutputError: () => InferenceOutputError,
audioClassification: () => audioClassification,

@@ -708,2 +709,3 @@ automaticSpeechRecognition: () => automaticSpeechRecognition,

HfInferenceEndpoint,
InferenceOutputError,
audioClassification,

@@ -710,0 +712,0 @@ automaticSpeechRecognition,

@@ -25,2 +25,3 @@ "use strict";

HfInferenceEndpoint: () => HfInferenceEndpoint,
InferenceOutputError: () => InferenceOutputError,
audioClassification: () => audioClassification,

@@ -708,2 +709,3 @@ automaticSpeechRecognition: () => automaticSpeechRecognition,

HfInferenceEndpoint,
InferenceOutputError,
audioClassification,

@@ -710,0 +712,0 @@ automaticSpeechRecognition,

11

package.json
{
"name": "@huggingface/inference",
"version": "2.3.0",
"version": "2.3.1",
"packageManager": "pnpm@8.3.1",

@@ -32,7 +32,7 @@ "license": "MIT",

"source": "src/index.ts",
"types": "src/index.ts",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"exports": {
"types": "./src/index.ts",
"types": "./dist/index.d.ts",
"require": "./dist/index.js",

@@ -43,2 +43,3 @@ "import": "./dist/index.mjs"

"@types/node": "18.13.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.4",

@@ -54,3 +55,4 @@ "vite": "^4.1.4",

"scripts": {
"build": "tsup src/index.ts --format cjs,esm --clean",
"build": "tsup src/index.ts --format cjs,esm --clean && pnpm run dts",
"dts": "ts-node scripts/generate-dts.ts",
"lint": "eslint --quiet --fix --ext .cjs,.ts .",

@@ -60,3 +62,2 @@ "lint:check": "eslint --ext .cjs,.ts .",

"format:check": "prettier --check .",
"preversion": "pnpm --filter doc-internal run fix-cdn-versions && git add ../../README.md",
"test": "vitest run --config vitest.config.ts",

@@ -63,0 +64,0 @@ "test:browser": "vitest run --browser.name=chrome --browser.headless --config vitest.config.ts",

export { HfInference, HfInferenceEndpoint } from "./HfInference";
export { InferenceOutputError } from "./lib/InferenceOutputError";
export * from "./types";
export * from "./tasks";
/**
* Return copy of object, only keeping allowlisted properties.
*
* This doesn't add {p: undefined} anymore, for props not in the o object.
*/
export function pick<T, K extends keyof T>(o: T, props: K[] | ReadonlyArray<K>): Pick<T, K> {
// inspired by stackoverflow.com/questions/25553910/one-liner-to-take-some-properties-from-object-in-es-6
return Object.assign(

@@ -9,0 +6,0 @@ {},

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