Skip to content

Commit 853694c

Browse files
authored
fix(core): use non-secure nanoid for friendly-browser support (#296)
1 parent aee670b commit 853694c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/bridge/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DevToolsType, parse } from '@vue/devtools-kit'
2-
import { nanoid } from 'nanoid'
2+
import { nanoid } from 'nanoid/non-secure'
33
import { BRIDGE_DEVTOOLS_ACTION_KEY, BRIDGE_DEVTOOLS_LISTENER_KEY, devtoolsActionEvents, devtoolsListenerEvents, getBridgeInstance, getBridgeTarget } from './shared'
44

55
export function defineDevToolsAction<T>(name: string, action: (devtools: DevToolsType, ...args: any[]) => T | Promise<T>) {

packages/core/src/vite-bridge/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getViteClient } from 'vite-hot-client'
2-
import { nanoid } from 'nanoid'
2+
import { nanoid } from 'nanoid/non-secure'
33
import { getViteClientHotContext, setViteClientHotContext } from './shared'
44

55
async function getViteHotContext() {

0 commit comments

Comments
 (0)