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

@guiiai/kit

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guiiai/kit - npm Package Compare versions

Comparing version 0.7.7 to 0.8.0

78

dist/index.d.ts
import * as birpc from 'birpc';
import { ChannelOptions } from 'birpc';
import { UserProfile, UserAuthorization } from '@guiiai/shared';

@@ -27,2 +28,3 @@ declare function isNuxt(): boolean;

reject: () => Promise<void>;
regenerate: () => Promise<void>;
abort: () => Promise<void>;

@@ -40,48 +42,51 @@ selectCode: (data: {

/**
* Represents the server-side configuration for Vite RPC
*/
interface RpcViteServerConfig {
isSignedIn: boolean;
profile?: UserProfile;
}
/**
* Represents the client-side configuration for Vite RPC
*/
interface RpcViteClientConfig {
isSignedIn: boolean;
authorization: UserAuthorization;
}
/**
* Represents data structure for code preview operations
*/
interface RpcVitePreviewerData {
id: string;
code: string | null;
error?: string;
}
/**
* Defines server-side RPC functions for configuration and project management
*/
interface RpcFnViteServer {
getConfig: () => Promise<{
isSignedIn: boolean;
profile?: {
id: string;
token: string;
customApi?: {
apiKey: string;
apiBaseUrl: string;
};
};
}>;
getConfig: () => Promise<RpcViteServerConfig>;
clearConfig: () => Promise<true>;
/**
* This `save-profile` will not be used, because writing profile is done at plugin server side
* but this interface is still needed for test purpose
*/
setConfig: (config: any) => Promise<true>;
getProject: () => {
setConfig: (config: RpcViteServerConfig) => Promise<true>;
getProject: () => Promise<{
project: {
title: string;
};
};
setCustomApi: (config: {
apiKey: string;
apiBaseUrl: string;
}) => Promise<void>;
}>;
}
/**
* Defines client-side RPC functions for handling payment and configuration events
*/
interface RpcFnViteClient {
paymentSuccess: () => void;
updateConfig: (data: {
isSignedIn: boolean;
profile: {
id: string;
token: string;
};
}) => void;
updateConfig: (data: RpcViteClientConfig) => void;
}
/**
* Defines server-side RPC functions for code preview lifecycle management
*/
interface RpcFnVitePreviewerServer {
previewerPrefetch: (data: {
id: string;
}) => Promise<{
id: string;
code: string | null;
error?: string;
} | undefined>;
}) => Promise<RpcVitePreviewerData | undefined>;
previewerPropose: (data: {

@@ -99,2 +104,5 @@ id: string;

}
/**
* Defines client-side RPC functions for code preview operations
*/
interface RpcFnVitePreviewerClient {

@@ -118,2 +126,2 @@ }

export { type RpcFnIframeServer, type RpcFnIslandClient, type RpcFnViteClient, type RpcFnVitePreviewerClient, type RpcFnVitePreviewerServer, type RpcFnViteServer, RpcViteIslandKey, RpcViteKey, RpcVitePreviewerKey, createBroadcastChannel, createRpcIframeIslandClient, createRpcIframeIslandServer, createRpcViteClient, createRpcVitePreviewerClient, createRpcVitePreviewerServer, createRpcViteServer, createViteClientChannel, createViteServerChannel, getDevToolsClientUrl, getRpcIframeIslandClient, getRpcIframeIslandServer, getRpcViteClient, getRpcVitePreviewerClient, isNuxt };
export { type RpcFnIframeServer, type RpcFnIslandClient, type RpcFnViteClient, type RpcFnVitePreviewerClient, type RpcFnVitePreviewerServer, type RpcFnViteServer, type RpcViteClientConfig, RpcViteIslandKey, RpcViteKey, type RpcVitePreviewerData, RpcVitePreviewerKey, type RpcViteServerConfig, createBroadcastChannel, createRpcIframeIslandClient, createRpcIframeIslandServer, createRpcViteClient, createRpcVitePreviewerClient, createRpcVitePreviewerServer, createRpcViteServer, createViteClientChannel, createViteServerChannel, getDevToolsClientUrl, getRpcIframeIslandClient, getRpcIframeIslandServer, getRpcViteClient, getRpcVitePreviewerClient, isNuxt };
{
"name": "@guiiai/kit",
"version": "0.7.7",
"version": "0.8.0",
"description": "",

@@ -31,5 +31,5 @@ "author": {

"dependencies": {
"birpc": "^0.2.17",
"birpc": "^0.2.19",
"superjson": "^2.2.1",
"@guiiai/shared": "0.7.7"
"@guiiai/shared": "0.8.0"
},

@@ -36,0 +36,0 @@ "scripts": {

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