@decs/typeschema
Advanced tools
Comparing version 0.8.3 to 0.9.0
{ | ||
"name": "@decs/typeschema", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"description": "Universal adapter for schema validation", | ||
@@ -23,5 +23,5 @@ "keywords": [ | ||
"deepkit", | ||
"valibot", | ||
"runtypes", | ||
"arktype", | ||
"valibot" | ||
"arktype" | ||
], | ||
@@ -52,4 +52,4 @@ "homepage": "https://typeschema.com", | ||
"./vite": { | ||
"types": "./dist/vite/index.d.ts", | ||
"default": "./dist/vite/index.js" | ||
"types": "./vite/index.d.ts", | ||
"default": "./vite/index.js" | ||
} | ||
@@ -63,3 +63,3 @@ }, | ||
"scripts": { | ||
"build": "tsup && sed -i '' 's/import/require/g' dist/index.js", | ||
"build": "tsup", | ||
"lint": "eslint src --fix", | ||
@@ -74,13 +74,13 @@ "format": "prettier --write src", | ||
"@deepkit/type-compiler": "^1.0.1-alpha.97", | ||
"@sinclair/typebox": "^0.29.6", | ||
"@types/node": "^20.4.5", | ||
"@typescript-eslint/eslint-plugin": "^6.2.0", | ||
"@typescript-eslint/parser": "^6.2.0", | ||
"@sinclair/typebox": "^0.31.0", | ||
"@types/node": "^20.4.10", | ||
"@typescript-eslint/eslint-plugin": "^6.3.0", | ||
"@typescript-eslint/parser": "^6.3.0", | ||
"ajv": "^8.12.0", | ||
"arktype": "^1.0.18-alpha", | ||
"arktype": "^1.0.19-alpha", | ||
"benny": "^3.7.1", | ||
"eslint": "^8.46.0", | ||
"eslint": "^8.47.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-airbnb-typescript": "^17.1.0", | ||
"eslint-config-prettier": "^8.9.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-import": "^2.28.0", | ||
@@ -100,3 +100,3 @@ "eslint-plugin-jest": "^27.2.3", | ||
"ow": "^0.28.2", | ||
"prettier": "^3.0.0", | ||
"prettier": "^3.0.1", | ||
"runtypes": "^6.7.0", | ||
@@ -109,4 +109,4 @@ "superstruct": "^1.0.3", | ||
"typescript": "^5.1.6", | ||
"typia": "^4.1.8", | ||
"valibot": "^0.8.0", | ||
"typia": "^4.2.1", | ||
"valibot": "^0.12.0", | ||
"vite": "^4.4.9", | ||
@@ -119,5 +119,5 @@ "webpack": "^5.88.2", | ||
"@deepkit/type": "^1.0.1-alpha.97", | ||
"@sinclair/typebox": "^0.29.6", | ||
"@sinclair/typebox": "^0.31.0", | ||
"ajv": "^8.12.0", | ||
"arktype": "^1.0.18-alpha", | ||
"arktype": "^1.0.19-alpha", | ||
"fp-ts": "^2.16.0", | ||
@@ -129,3 +129,3 @@ "io-ts": "^2.2.20", | ||
"superstruct": "^1.0.3", | ||
"valibot": "^0.8.0", | ||
"valibot": "^0.12.0", | ||
"vite": "^4.4.9", | ||
@@ -132,0 +132,0 @@ "yup": "^1.2.0", |
@@ -47,2 +47,16 @@ <div id="header"> | ||
### Vite | ||
If using [Vite](https://vitejs.dev/), you'll also need to update your `vite.config.ts` file: | ||
```ts | ||
import { typeschemaPlugin } from "@decs/typeschema/vite"; | ||
export default defineConfig({ | ||
plugins: [ | ||
typeschemaPlugin(), // add this plugin | ||
], | ||
}); | ||
``` | ||
## Usage | ||
@@ -49,0 +63,0 @@ |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
189
0
50418
14
905