Skip to content

Commit

Permalink
fix(core): use non-secure nanoid for friendly-browser support (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz authored Mar 27, 2024
1 parent aee670b commit 853694c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/bridge/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DevToolsType, parse } from '@vue/devtools-kit'
import { nanoid } from 'nanoid'
import { nanoid } from 'nanoid/non-secure'
import { BRIDGE_DEVTOOLS_ACTION_KEY, BRIDGE_DEVTOOLS_LISTENER_KEY, devtoolsActionEvents, devtoolsListenerEvents, getBridgeInstance, getBridgeTarget } from './shared'

export function defineDevToolsAction<T>(name: string, action: (devtools: DevToolsType, ...args: any[]) => T | Promise<T>) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/vite-bridge/client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getViteClient } from 'vite-hot-client'
import { nanoid } from 'nanoid'
import { nanoid } from 'nanoid/non-secure'
import { getViteClientHotContext, setViteClientHotContext } from './shared'

async function getViteHotContext() {
Expand Down

0 comments on commit 853694c

Please sign in to comment.