@huggingface/inference
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -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, |
{ | ||
"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
203884
53
5419
6