mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
chore: update core dependency
This commit is contained in:
parent
ef7e8e1fda
commit
aac7a7bcf8
4 changed files with 18 additions and 16 deletions
|
@ -91,7 +91,7 @@
|
|||
"zod": "^3.22.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@logto/cloud": "0.2.5-4ef0b45",
|
||||
"@logto/cloud": "0.2.5-ceb63ed",
|
||||
"@silverhand/eslint-config": "5.0.0",
|
||||
"@silverhand/ts-config": "5.0.0",
|
||||
"@types/debug": "^4.1.7",
|
||||
|
|
|
@ -312,8 +312,9 @@ export default function logtoConfigRoutes<T extends AuthedRouter>(
|
|||
/**
|
||||
* Code 400 indicates Zod errors in cloud service (data type does not match expectation, can be either request body or response body).
|
||||
* Code 422 indicates syntax errors in cloud service.
|
||||
* Code 500 indicates internal server errors in cloud service.
|
||||
*/
|
||||
status: [200, 400, 422],
|
||||
status: [200, 400, 422, 500],
|
||||
}),
|
||||
async (ctx, next) => {
|
||||
const {
|
||||
|
|
|
@ -47,18 +47,6 @@ export const customJwtFetcherGuard = jwtCustomizerGuard
|
|||
|
||||
export type CustomJwtFetcher = z.infer<typeof customJwtFetcherGuard>;
|
||||
|
||||
/**
|
||||
* This guard is for testing use (request body guard), renamed previous `token` and `context`
|
||||
* fields (in `customJwtFetcherGuard`) to `tokenSample` and `contextSample`, which can bring
|
||||
* convenience to the testing use case.
|
||||
*/
|
||||
export const customJwtTesterGuard = customJwtFetcherGuard
|
||||
.pick({ script: true, envVars: true })
|
||||
.extend({
|
||||
tokenSample: jsonObjectGuard,
|
||||
contextSample: jsonObjectGuard.optional(),
|
||||
});
|
||||
|
||||
export enum LogtoJwtTokenPath {
|
||||
AccessToken = 'access-token',
|
||||
ClientCredentials = 'client-credentials',
|
||||
|
|
|
@ -3400,8 +3400,8 @@ importers:
|
|||
version: 3.22.4
|
||||
devDependencies:
|
||||
'@logto/cloud':
|
||||
specifier: 0.2.5-4ef0b45
|
||||
version: 0.2.5-4ef0b45(zod@3.22.4)
|
||||
specifier: 0.2.5-ceb63ed
|
||||
version: 0.2.5-ceb63ed(zod@3.22.4)
|
||||
'@silverhand/eslint-config':
|
||||
specifier: 5.0.0
|
||||
version: 5.0.0(eslint@8.44.0)(prettier@3.0.0)(typescript@5.3.3)
|
||||
|
@ -7670,6 +7670,16 @@ packages:
|
|||
- zod
|
||||
dev: true
|
||||
|
||||
/@logto/cloud@0.2.5-ceb63ed(zod@3.22.4):
|
||||
resolution: {integrity: sha512-mF4ce41qc4nnmLjlyvTxiy3i1K88xC91yjWcmyrJ66Zujr+w7AaR/Ye0g8TZ1B93qlDt5EJBFuBW/gqYDuwEEQ==}
|
||||
engines: {node: ^20.9.0}
|
||||
dependencies:
|
||||
'@silverhand/essentials': 2.9.0
|
||||
'@withtyped/server': 0.13.3(zod@3.22.4)
|
||||
transitivePeerDependencies:
|
||||
- zod
|
||||
dev: true
|
||||
|
||||
/@logto/js@4.0.0:
|
||||
resolution: {integrity: sha512-eKLS0HqFjQyf7imKTf2a7FUmMuNeebxFZ2b5A/1qUWSyO+BIxSu0XYI4JZ9qjtWNPvlGmL+jPOkIUuWQ9DZYZw==}
|
||||
dependencies:
|
||||
|
@ -17849,6 +17859,9 @@ packages:
|
|||
resolution: {integrity: sha512-2GTVocFkwblV/TIg9AmT7TI2fO4xdWkyN8aFUEVtiVNWt96GTR3FgQyHFValfCbcj1k9Xf962Ws2hYXYUr9k1Q==}
|
||||
engines: {node: '>= 12.0.0'}
|
||||
hasBin: true
|
||||
peerDependenciesMeta:
|
||||
'@parcel/core':
|
||||
optional: true
|
||||
dependencies:
|
||||
'@parcel/config-default': 2.9.3(@parcel/core@2.9.3)(postcss@8.4.31)
|
||||
'@parcel/core': 2.9.3
|
||||
|
|
Loading…
Reference in a new issue