0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(deps): update dependency snakecase-keys to v7 (#5556)

* fix(deps): update dependency snakecase-keys to v7

* test: wait for 1ms for every api test

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
This commit is contained in:
renovate[bot] 2024-03-28 18:16:00 +08:00 committed by GitHub
parent 3cc6d4b4f4
commit 961fd8ea99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 83 additions and 90 deletions

View file

@ -24,7 +24,7 @@
"dependencies": { "dependencies": {
"@silverhand/essentials": "^2.9.0", "@silverhand/essentials": "^2.9.0",
"got": "^14.0.0", "got": "^14.0.0",
"snakecase-keys": "^6.0.0", "snakecase-keys": "^7.0.0",
"zod": "^3.22.4" "zod": "^3.22.4"
}, },
"devDependencies": { "devDependencies": {

View file

@ -87,7 +87,7 @@
"semver": "^7.3.8", "semver": "^7.3.8",
"@silverhand/slonik": "31.0.0-beta.2", "@silverhand/slonik": "31.0.0-beta.2",
"snake-case": "^3.0.4", "snake-case": "^3.0.4",
"snakecase-keys": "^6.0.0", "snakecase-keys": "^7.0.0",
"zod": "^3.22.4" "zod": "^3.22.4"
}, },
"devDependencies": { "devDependencies": {

View file

@ -5,3 +5,13 @@ import { authedAdminTenantApi } from './lib/api/api.js';
await authedAdminTenantApi.patch('sign-in-exp', { await authedAdminTenantApi.patch('sign-in-exp', {
json: { signInMode: 'SignInAndRegister' }, json: { signInMode: 'SignInAndRegister' },
}); });
const waitFor = async (ms) =>
new Promise((resolve) => {
setTimeout(resolve, ms);
});
global.afterEach(async () => {
// Try to mitigate the issue of "Socket hang up". See https://github.com/nodejs/node/issues/47130
await waitFor(1);
});

View file

@ -25,21 +25,10 @@ import {
import { clearConnectorsByTypes } from '#src/helpers/connector.js'; import { clearConnectorsByTypes } from '#src/helpers/connector.js';
import { createUserByAdmin, expectRejects } from '#src/helpers/index.js'; import { createUserByAdmin, expectRejects } from '#src/helpers/index.js';
import { createNewSocialUserWithUsernameAndPassword } from '#src/helpers/interactions.js'; import { createNewSocialUserWithUsernameAndPassword } from '#src/helpers/interactions.js';
import { import { generateUsername, generateEmail, generatePhone, generatePassword } from '#src/utils.js';
generateUsername,
generateEmail,
generatePhone,
generatePassword,
waitFor,
} from '#src/utils.js';
const randomString = () => crypto.randomBytes(8).toString('hex'); const randomString = () => crypto.randomBytes(8).toString('hex');
afterEach(async () => {
// Try to mitigate the issue of "Socket hang up". See https://github.com/nodejs/node/issues/47130
await waitFor(0);
});
describe('admin console user management', () => { describe('admin console user management', () => {
beforeAll(async () => { beforeAll(async () => {
await clearConnectorsByTypes([ConnectorType.Social]); await clearConnectorsByTypes([ConnectorType.Social]);

View file

@ -24,12 +24,6 @@ import {
resetPasswordPolicy, resetPasswordPolicy,
} from '#src/helpers/sign-in-experience.js'; } from '#src/helpers/sign-in-experience.js';
import { generateNewUserProfile, generateNewUser } from '#src/helpers/user.js'; import { generateNewUserProfile, generateNewUser } from '#src/helpers/user.js';
import { waitFor } from '#src/utils.js';
afterEach(async () => {
// Try to mitigate the issue of "Socket hang up". See https://github.com/nodejs/node/issues/47130
await waitFor(0);
});
describe('register with username and password', () => { describe('register with username and password', () => {
it('register with username and password', async () => { it('register with username and password', async () => {

View file

@ -249,8 +249,8 @@ importers:
specifier: ^0.6.3 specifier: ^0.6.3
version: 0.6.3 version: 0.6.3
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -331,8 +331,8 @@ importers:
specifier: ^0.6.3 specifier: ^0.6.3
version: 0.6.3 version: 0.6.3
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -407,8 +407,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -480,8 +480,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -559,8 +559,8 @@ importers:
specifier: ^5.0.0 specifier: ^5.0.0
version: 5.0.1 version: 5.0.1
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -638,8 +638,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -714,8 +714,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -787,8 +787,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -860,8 +860,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -933,8 +933,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1009,8 +1009,8 @@ importers:
specifier: ^9.0.0 specifier: ^9.0.0
version: 9.0.0 version: 9.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1082,8 +1082,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1155,8 +1155,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1228,8 +1228,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1304,8 +1304,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1377,8 +1377,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1450,8 +1450,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1523,8 +1523,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1596,8 +1596,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1669,8 +1669,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1742,8 +1742,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1815,8 +1815,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1891,8 +1891,8 @@ importers:
specifier: ^9.0.0 specifier: ^9.0.0
version: 9.0.0 version: 9.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -1973,8 +1973,8 @@ importers:
specifier: ^5.0.1 specifier: ^5.0.1
version: 5.0.1 version: 5.0.1
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -2052,8 +2052,8 @@ importers:
specifier: 2.8.10 specifier: 2.8.10
version: 2.8.10 version: 2.8.10
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -2125,8 +2125,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -2198,8 +2198,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -2274,8 +2274,8 @@ importers:
specifier: ^6.9.9 specifier: ^6.9.9
version: 6.9.9 version: 6.9.9
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -2350,8 +2350,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -2423,8 +2423,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -2496,8 +2496,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -2569,8 +2569,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -2642,8 +2642,8 @@ importers:
specifier: ^14.0.0 specifier: ^14.0.0
version: 14.0.0 version: 14.0.0
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -3195,8 +3195,8 @@ importers:
specifier: ^3.0.4 specifier: ^3.0.4
version: 3.0.4 version: 3.0.4
snakecase-keys: snakecase-keys:
specifier: ^6.0.0 specifier: ^7.0.0
version: 6.0.0 version: 7.0.0
zod: zod:
specifier: ^3.22.4 specifier: ^3.22.4
version: 3.22.4 version: 3.22.4
@ -19907,8 +19907,8 @@ packages:
tslib: 2.4.1 tslib: 2.4.1
dev: false dev: false
/snakecase-keys@6.0.0: /snakecase-keys@7.0.0:
resolution: {integrity: sha512-E5a0C3rcj+Cvq+dt41mw6tV6Wx78/JpQyR71GDiyGSXdp3jEvKxv8pIP0tOHmEMiqKVZSwflXtlWwqNn5oTbbQ==} resolution: {integrity: sha512-yFnXqBIFFpXlIWiGPvYhfelzQqRVchuM1XIQXVwIFrZuNWBPE6vBkuJitzbl6yMIjjpA40IYxqi88BE9RX2Yxw==}
engines: {node: '>=18'} engines: {node: '>=18'}
dependencies: dependencies:
map-obj: 4.3.0 map-obj: 4.3.0