@eggjs/typebox-validate 4.0.2-beta.0 → 4.0.2-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -357,7 +357,7 @@ ctx.tValidate(
357
357
  Type.Object({
358
358
  name: Type.String({ minLength: 1, maxLength: 5, transform: ['trim'] }),
359
359
  }),
360
- body
360
+ body,
361
361
  );
362
362
  ```
363
363
 
@@ -374,10 +374,10 @@ ctx.tValidate(
374
374
 
375
375
  ```ts
376
376
  config.typeboxValidate = {
377
- patchAjv: ajv => {
377
+ patchAjv: (ajv) => {
378
378
  ajv.addFormat('json-string', {
379
379
  type: 'string',
380
- validate: x => {
380
+ validate: (x) => {
381
381
  try {
382
382
  JSON.parse(x);
383
383
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/typebox-validate",
3
- "version": "4.0.2-beta.0",
3
+ "version": "4.0.2-beta.10",
4
4
  "description": "another validate for typescript egg projects",
5
5
  "keywords": [
6
6
  "ajv",
@@ -52,11 +52,11 @@
52
52
  "@types/node": "^24.10.2",
53
53
  "semver": "^7.7.3",
54
54
  "typescript": "^5.9.3",
55
- "@eggjs/mock": "7.0.2-beta.0",
56
- "egg": "4.1.2-beta.0"
55
+ "@eggjs/mock": "7.0.2-beta.10",
56
+ "egg": "4.1.2-beta.10"
57
57
  },
58
58
  "peerDependencies": {
59
- "egg": "4.1.2-beta.0"
59
+ "egg": "4.1.2-beta.10"
60
60
  },
61
61
  "engines": {
62
62
  "node": ">= 22.18.0"