Skip to content

Commit 294bfe2

Browse files
authored
fix: use simple inlined noop instead of unenv (#420)
1 parent 5701ffd commit 294bfe2

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
"sirv": "^3.0.1",
103103
"std-env": "^3.8.1",
104104
"ufo": "^1.5.4",
105-
"unenv": "^2.0.0-rc.12",
106105
"unplugin": "^2.2.0",
107106
"unstorage": "^1.15.0",
108107
"valibot": "^1.0.0-rc.3"

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/runtime/validation/mock.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import noop from 'unenv/mock/noop'
1+
const noop = Object.freeze(
2+
Object.assign(
3+
() => {
4+
/** noop */
5+
},
6+
{ __mock__: true },
7+
),
8+
)
29

310
export const parse = noop
411
export const object = noop

0 commit comments

Comments
 (0)