generated from unplugin/unplugin-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #286 from ryoppippi/feature/add-taze
chore: update deps
- Loading branch information
Showing
19 changed files
with
169 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,8 @@ | |
"format": "bun run --filter '*' format", | ||
"test": "bun run --filter '*' test", | ||
"deploy": "bun run --filter '*' deploy", | ||
"prepare": "npx bunpare" | ||
"prepare": "bun x bunpare", | ||
"taze": "bun x taze -r" | ||
}, | ||
"workspaces": [ | ||
"examples/*", | ||
|
@@ -27,6 +28,6 @@ | |
"vite-vanilla", | ||
"workerd" | ||
], | ||
"packageManager": "[email protected].21", | ||
"packageManager": "[email protected].24", | ||
"private": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 35 additions & 36 deletions
71
packages/unplugin-typia/tests/fixtures/__snapshots__/random.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,39 @@ | ||
import typia from 'typia'; | ||
import type { IMember } from './type.js'; | ||
const random = (generator?: Partial<typia.IRandomGenerator>): import("typia").Resolved<IMember> => { | ||
const $generator = (typia.createRandom as any).generator; | ||
const $ro0 = (_recursive: boolean = false, _depth: number = 0): any => ({ | ||
email: (generator?.customs ?? $generator.customs)?.string?.([ | ||
{ | ||
name: "Format<\"email\">", | ||
kind: "format", | ||
value: "email" | ||
} | ||
]) ?? (generator?.email ?? $generator.email)(), | ||
id: (generator?.customs ?? $generator.customs)?.string?.([ | ||
{ | ||
name: "Format<\"uuid\">", | ||
kind: "format", | ||
value: "uuid" | ||
} | ||
]) ?? (generator?.uuid ?? $generator.uuid)(), | ||
age: (generator?.customs ?? $generator.customs)?.number?.([ | ||
{ | ||
name: "Type<\"uint32\">", | ||
kind: "type", | ||
value: "uint32" | ||
}, | ||
{ | ||
name: "ExclusiveMinimum<19>", | ||
kind: "exclusiveMinimum", | ||
value: 19 | ||
}, | ||
{ | ||
name: "Maximum<100>", | ||
kind: "maximum", | ||
value: 100 | ||
} | ||
]) ?? (generator?.integer ?? $generator.integer)(19, 100) | ||
}); | ||
const random = (() => { const $generator = (typia.createRandom as any).generator; const $ro0 = (_recursive: boolean = false, _depth: number = 0): any => ({ | ||
email: (_generator?.customs ?? $generator.customs)?.string?.([ | ||
{ | ||
name: "Format<\"email\">", | ||
kind: "format", | ||
value: "email" | ||
} | ||
]) ?? (_generator?.email ?? $generator.email)(), | ||
id: (_generator?.customs ?? $generator.customs)?.string?.([ | ||
{ | ||
name: "Format<\"uuid\">", | ||
kind: "format", | ||
value: "uuid" | ||
} | ||
]) ?? (_generator?.uuid ?? $generator.uuid)(), | ||
age: (_generator?.customs ?? $generator.customs)?.number?.([ | ||
{ | ||
name: "Type<\"uint32\">", | ||
kind: "type", | ||
value: "uint32" | ||
}, | ||
{ | ||
name: "ExclusiveMinimum<19>", | ||
kind: "exclusiveMinimum", | ||
value: 19 | ||
}, | ||
{ | ||
name: "Maximum<100>", | ||
kind: "maximum", | ||
value: 100 | ||
} | ||
]) ?? (_generator?.integer ?? $generator.integer)(19, 100) | ||
}); let _generator: any; return (generator?: Partial<typia.IRandomGenerator>): import("typia").Resolved<IMember> => { | ||
_generator = generator; | ||
return $ro0(); | ||
}; | ||
}; })(); | ||
random(); |
Oops, something went wrong.