Socket
Socket
Sign inDemoInstall

@gradio/utils

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gradio/utils - npm Package Compare versions

Comparing version 0.4.2 to 0.5.0

6

CHANGELOG.md
# @gradio/utils
## 0.5.0
### Features
- [#8131](https://github.com/gradio-app/gradio/pull/8131) [`bb504b4`](https://github.com/gradio-app/gradio/commit/bb504b494947a287d6386e0e7ead3860c0f15223) - Gradio components in `gr.Chatbot()`. Thanks @dawoodkhan82!
## 0.4.2

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@gradio/utils",
"version": "0.4.2",
"version": "0.5.0",
"description": "Gradio UI packages",

@@ -5,0 +5,0 @@ "type": "module",

import type { ActionReturn } from "svelte/action";
import type { Client } from "@gradio/client";
export interface SelectData {

@@ -175,2 +176,6 @@ index: number | [number, number];

type component_loader =
typeof import("virtual:component-loader").load_component;
let virtual_component_loader: component_loader | null = null;
export type I18nFormatter = any;

@@ -187,2 +192,4 @@ export class Gradio<T extends Record<string, any> = Record<string, any>> {

client: Client;
_load_component: component_loader | null = null;
load_component = _load_component.bind(this);

@@ -210,2 +217,11 @@ constructor(

this.client = client;
if (!virtual_component_loader) {
import("virtual:component-loader").then((module) => {
this._load_component = module.load_component;
virtual_component_loader = module.load_component;
});
} else {
this._load_component = virtual_component_loader;
}
}

@@ -221,1 +237,13 @@

}
function _load_component(
this: Gradio,
name: string,
variant: "component" | "example" | "base" = "component"
): ReturnType<component_loader> {
return this._load_component!({
name,
api_url: this.client.config?.root!,
variant
});
}
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