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.2 to 0.7.3

116

dist/index.d.ts

@@ -1,115 +0,1 @@

import * as birpc from 'birpc';
import { ChannelOptions } from 'birpc';
declare function isNuxt(): boolean;
declare function getDevToolsClientUrl(): "/_nuxt/__guii_devtools/" | "/__guii_devtools/";
declare function createBroadcastChannel(): void;
type MergeableChannelOptions = Omit<ChannelOptions, 'serialize' | 'deserialize'>;
declare function createViteClientChannel(viteHotClient: any, eventKey: string): MergeableChannelOptions;
declare function createViteServerChannel(viteServer: any, eventKey: string): MergeableChannelOptions;
interface RpcFnIslandClient {
updateLoginState: (data: {
loginState: boolean;
}) => void;
updateResult: (data: {
success: boolean;
message: string;
}) => void;
}
interface RpcFnIframeServer {
getLoginState: () => Promise<boolean>;
approve: () => Promise<void>;
reject: () => Promise<void>;
abort: () => Promise<void>;
selectCode: (data: {
id: string;
column: number;
line: number;
}) => Promise<void>;
sendPrompt: (data: {
message: string;
imageBase64?: string;
}) => Promise<void>;
}
interface RpcFnViteServer {
getConfig: () => Promise<{
isSignedIn: boolean;
profile?: {
id: string;
token: string;
customApi?: {
apiKey: string;
apiBaseUrl: string;
};
};
}>;
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: () => {
project: {
title: string;
};
};
setCustomApi: (config: {
apiKey: string;
apiBaseUrl: string;
}) => Promise<void>;
}
interface RpcFnViteClient {
paymentSuccess: () => void;
updateConfig: (data: {
isSignedIn: boolean;
profile: {
id: string;
token: string;
};
}) => void;
}
interface RpcFnVitePreviewerServer {
previewerPrefetch: (data: {
id: string;
}) => Promise<{
id: string;
code: string | null;
error?: string;
} | undefined>;
previewerPropose: (data: {
id: string;
code: string;
}) => void;
previewerApprove: (data: {
id: string;
}) => void;
previewerReject: (data: {
id: string;
code: string;
}) => void;
}
interface RpcFnVitePreviewerClient {
}
declare const RpcViteIslandKey = "@guiiai/vite-devtools:rpc-iframe-island";
declare function createRpcIframeIslandServer(functions: RpcFnIframeServer): birpc.BirpcReturn<RpcFnIslandClient, RpcFnIframeServer>;
declare function createRpcIframeIslandClient(functions: RpcFnIslandClient): birpc.BirpcReturn<RpcFnIframeServer, RpcFnIslandClient>;
declare function getRpcIframeIslandClient(): ReturnType<typeof createRpcIframeIslandClient>;
declare function getRpcIframeIslandServer(): ReturnType<typeof createRpcIframeIslandServer>;
declare const RpcViteKey = "@guiiai/vite-devtools:rpc";
declare function createRpcViteServer(viteServer: any, functions: RpcFnViteServer): birpc.BirpcReturn<RpcFnViteClient, RpcFnViteServer>;
declare function createRpcViteClient(viteHotClient: any, functions: RpcFnViteClient): birpc.BirpcReturn<RpcFnViteServer, RpcFnViteClient>;
declare function getRpcViteClient(): (ReturnType<typeof createRpcViteClient>);
declare const RpcVitePreviewerKey = "@guiiai/vite-devtools:rpc-previewer";
declare function createRpcVitePreviewerServer(viteServer: any, functions: RpcFnVitePreviewerServer): birpc.BirpcReturn<RpcFnVitePreviewerClient, RpcFnVitePreviewerServer>;
declare function createRpcVitePreviewerClient(viteHotClient: any, functions: RpcFnVitePreviewerClient): birpc.BirpcReturn<RpcFnVitePreviewerServer, RpcFnVitePreviewerClient>;
declare function getRpcVitePreviewerClient(): ReturnType<typeof createRpcVitePreviewerClient>;
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 * from "/Users/luoling8192/Projects/guii/devtools/packages/kit/src/index";

4

package.json
{
"name": "@guiiai/kit",
"version": "0.7.2",
"version": "0.7.3",
"description": "",

@@ -33,3 +33,3 @@ "author": {

"superjson": "^2.2.1",
"@guiiai/shared": "0.7.2"
"@guiiai/shared": "0.7.3"
},

@@ -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

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