File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,15 @@ export const verifyCommand = new Command()
4444 const { pluginId, xMbSpec } = await setup ( options . url ) ;
4545
4646 try {
47- if ( ! xMbSpec [ "account-id" ] ) {
48- throw new Error ( "Account ID is required" ) ;
49- }
50-
51- // Type assertion since we checked that account-id exists
52- const agentData = formVerifyData ( options , xMbSpec as XMbSpec & { "account-id" : string } ) ;
47+ if ( ! xMbSpec [ "account-id" ] ) {
48+ throw new Error ( "Account ID is required" ) ;
49+ }
50+
51+ // Type assertion since we checked that account-id exists
52+ const agentData = formVerifyData (
53+ options ,
54+ xMbSpec as XMbSpec & { "account-id" : string } ,
55+ ) ;
5356
5457 await new PluginService ( ) . verify ( {
5558 pluginId,
@@ -60,7 +63,10 @@ export const verifyCommand = new Command()
6063 }
6164 } ) ;
6265
63- function formVerifyData ( options : unknown , spec : XMbSpec & { "account-id" : string } ) : VerifyData {
66+ function formVerifyData (
67+ options : unknown ,
68+ spec : XMbSpec & { "account-id" : string } ,
69+ ) : VerifyData {
6470 return {
6571 accountId : spec [ "account-id" ] ,
6672 email :
Original file line number Diff line number Diff line change 11import tailwindcss from "@tailwindcss/vite" ;
22import react from "@vitejs/plugin-react" ;
3- import { nodePolyfills } from 'vite-plugin-node-polyfills'
43import { defineConfig } from "vite" ;
4+ import { nodePolyfills } from "vite-plugin-node-polyfills" ;
55
66export default defineConfig ( {
77 plugins : [ react ( ) , tailwindcss ( ) , nodePolyfills ( ) ] ,
You can’t perform that action at this time.
0 commit comments