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:
parent
3cc6d4b4f4
commit
961fd8ea99
6 changed files with 83 additions and 90 deletions
|
@ -24,7 +24,7 @@
|
|||
"dependencies": {
|
||||
"@silverhand/essentials": "^2.9.0",
|
||||
"got": "^14.0.0",
|
||||
"snakecase-keys": "^6.0.0",
|
||||
"snakecase-keys": "^7.0.0",
|
||||
"zod": "^3.22.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
"semver": "^7.3.8",
|
||||
"@silverhand/slonik": "31.0.0-beta.2",
|
||||
"snake-case": "^3.0.4",
|
||||
"snakecase-keys": "^6.0.0",
|
||||
"snakecase-keys": "^7.0.0",
|
||||
"zod": "^3.22.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -5,3 +5,13 @@ import { authedAdminTenantApi } from './lib/api/api.js';
|
|||
await authedAdminTenantApi.patch('sign-in-exp', {
|
||||
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);
|
||||
});
|
||||
|
|
|
@ -25,21 +25,10 @@ import {
|
|||
import { clearConnectorsByTypes } from '#src/helpers/connector.js';
|
||||
import { createUserByAdmin, expectRejects } from '#src/helpers/index.js';
|
||||
import { createNewSocialUserWithUsernameAndPassword } from '#src/helpers/interactions.js';
|
||||
import {
|
||||
generateUsername,
|
||||
generateEmail,
|
||||
generatePhone,
|
||||
generatePassword,
|
||||
waitFor,
|
||||
} from '#src/utils.js';
|
||||
import { generateUsername, generateEmail, generatePhone, generatePassword } from '#src/utils.js';
|
||||
|
||||
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', () => {
|
||||
beforeAll(async () => {
|
||||
await clearConnectorsByTypes([ConnectorType.Social]);
|
||||
|
|
|
@ -24,12 +24,6 @@ import {
|
|||
resetPasswordPolicy,
|
||||
} from '#src/helpers/sign-in-experience.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', () => {
|
||||
it('register with username and password', async () => {
|
||||
|
|
140
pnpm-lock.yaml
140
pnpm-lock.yaml
|
@ -249,8 +249,8 @@ importers:
|
|||
specifier: ^0.6.3
|
||||
version: 0.6.3
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -331,8 +331,8 @@ importers:
|
|||
specifier: ^0.6.3
|
||||
version: 0.6.3
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -407,8 +407,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -480,8 +480,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -559,8 +559,8 @@ importers:
|
|||
specifier: ^5.0.0
|
||||
version: 5.0.1
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -638,8 +638,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -714,8 +714,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -787,8 +787,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -860,8 +860,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -933,8 +933,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1009,8 +1009,8 @@ importers:
|
|||
specifier: ^9.0.0
|
||||
version: 9.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1082,8 +1082,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1155,8 +1155,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1228,8 +1228,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1304,8 +1304,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1377,8 +1377,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1450,8 +1450,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1523,8 +1523,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1596,8 +1596,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1669,8 +1669,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1742,8 +1742,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1815,8 +1815,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1891,8 +1891,8 @@ importers:
|
|||
specifier: ^9.0.0
|
||||
version: 9.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -1973,8 +1973,8 @@ importers:
|
|||
specifier: ^5.0.1
|
||||
version: 5.0.1
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -2052,8 +2052,8 @@ importers:
|
|||
specifier: 2.8.10
|
||||
version: 2.8.10
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -2125,8 +2125,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -2198,8 +2198,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -2274,8 +2274,8 @@ importers:
|
|||
specifier: ^6.9.9
|
||||
version: 6.9.9
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -2350,8 +2350,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -2423,8 +2423,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -2496,8 +2496,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -2569,8 +2569,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -2642,8 +2642,8 @@ importers:
|
|||
specifier: ^14.0.0
|
||||
version: 14.0.0
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -3195,8 +3195,8 @@ importers:
|
|||
specifier: ^3.0.4
|
||||
version: 3.0.4
|
||||
snakecase-keys:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
zod:
|
||||
specifier: ^3.22.4
|
||||
version: 3.22.4
|
||||
|
@ -19907,8 +19907,8 @@ packages:
|
|||
tslib: 2.4.1
|
||||
dev: false
|
||||
|
||||
/snakecase-keys@6.0.0:
|
||||
resolution: {integrity: sha512-E5a0C3rcj+Cvq+dt41mw6tV6Wx78/JpQyR71GDiyGSXdp3jEvKxv8pIP0tOHmEMiqKVZSwflXtlWwqNn5oTbbQ==}
|
||||
/snakecase-keys@7.0.0:
|
||||
resolution: {integrity: sha512-yFnXqBIFFpXlIWiGPvYhfelzQqRVchuM1XIQXVwIFrZuNWBPE6vBkuJitzbl6yMIjjpA40IYxqi88BE9RX2Yxw==}
|
||||
engines: {node: '>=18'}
|
||||
dependencies:
|
||||
map-obj: 4.3.0
|
||||
|
|
Loading…
Reference in a new issue