mirror of
https://github.com/logto-io/logto.git
synced 2025-02-03 21:48:55 -05:00
Merge pull request #3477 from logto-io/renovate/silverhand-essentials-2.x
chore(deps): update dependency @silverhand/essentials to v2.5.0
This commit is contained in:
commit
6bffd83cfc
27 changed files with 49 additions and 193 deletions
|
@ -47,7 +47,7 @@
|
||||||
"@logto/core-kit": "workspace:*",
|
"@logto/core-kit": "workspace:*",
|
||||||
"@logto/schemas": "workspace:*",
|
"@logto/schemas": "workspace:*",
|
||||||
"@logto/shared": "workspace:*",
|
"@logto/shared": "workspace:*",
|
||||||
"@silverhand/essentials": "2.4.1",
|
"@silverhand/essentials": "^2.5.0",
|
||||||
"chalk": "^5.0.0",
|
"chalk": "^5.0.0",
|
||||||
"decamelize": "^6.0.0",
|
"decamelize": "^6.0.0",
|
||||||
"dotenv": "^16.0.0",
|
"dotenv": "^16.0.0",
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
"@logto/core-kit": "workspace:*",
|
"@logto/core-kit": "workspace:*",
|
||||||
"@logto/schemas": "workspace:*",
|
"@logto/schemas": "workspace:*",
|
||||||
"@logto/shared": "workspace:*",
|
"@logto/shared": "workspace:*",
|
||||||
"@silverhand/essentials": "2.4.1",
|
"@silverhand/essentials": "^2.5.0",
|
||||||
"@withtyped/postgres": "^0.8.1",
|
"@withtyped/postgres": "^0.8.1",
|
||||||
"@withtyped/server": "^0.8.1",
|
"@withtyped/server": "^0.8.1",
|
||||||
"accepts": "^1.3.8",
|
"accepts": "^1.3.8",
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { validateConfig } from '@logto/connector-kit';
|
||||||
import { generateStandardId } from '@logto/core-kit';
|
import { generateStandardId } from '@logto/core-kit';
|
||||||
import type { ServiceLogType } from '@logto/schemas';
|
import type { ServiceLogType } from '@logto/schemas';
|
||||||
import { adminTenantId } from '@logto/schemas';
|
import { adminTenantId } from '@logto/schemas';
|
||||||
import { trySafe } from '@logto/shared';
|
import { trySafe } from '@silverhand/essentials';
|
||||||
import { RequestError } from '@withtyped/server';
|
import { RequestError } from '@withtyped/server';
|
||||||
|
|
||||||
import type { Queries } from '#src/queries/index.js';
|
import type { Queries } from '#src/queries/index.js';
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
import assert from 'node:assert';
|
import assert from 'node:assert';
|
||||||
import type { IncomingHttpHeaders } from 'node:http';
|
import type { IncomingHttpHeaders } from 'node:http';
|
||||||
|
|
||||||
import { tryThat } from '@logto/shared';
|
import { appendPath, tryThat } from '@silverhand/essentials';
|
||||||
import { appendPath } from '@silverhand/essentials';
|
|
||||||
import type { NextFunction, RequestContext } from '@withtyped/server';
|
import type { NextFunction, RequestContext } from '@withtyped/server';
|
||||||
import { RequestError } from '@withtyped/server';
|
import { RequestError } from '@withtyped/server';
|
||||||
import fetchRetry from 'fetch-retry';
|
import fetchRetry from 'fetch-retry';
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
"@parcel/transformer-svg-react": "2.8.3",
|
"@parcel/transformer-svg-react": "2.8.3",
|
||||||
"@silverhand/eslint-config": "2.0.1",
|
"@silverhand/eslint-config": "2.0.1",
|
||||||
"@silverhand/eslint-config-react": "2.0.1",
|
"@silverhand/eslint-config-react": "2.0.1",
|
||||||
"@silverhand/essentials": "2.4.1",
|
"@silverhand/essentials": "^2.5.0",
|
||||||
"@silverhand/ts-config": "2.0.3",
|
"@silverhand/ts-config": "2.0.3",
|
||||||
"@silverhand/ts-config-react": "2.0.3",
|
"@silverhand/ts-config-react": "2.0.3",
|
||||||
"@tsconfig/docusaurus": "^1.0.5",
|
"@tsconfig/docusaurus": "^1.0.5",
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
"@logto/phrases-ui": "workspace:*",
|
"@logto/phrases-ui": "workspace:*",
|
||||||
"@logto/schemas": "workspace:*",
|
"@logto/schemas": "workspace:*",
|
||||||
"@logto/shared": "workspace:*",
|
"@logto/shared": "workspace:*",
|
||||||
"@silverhand/essentials": "2.4.1",
|
"@silverhand/essentials": "^2.5.0",
|
||||||
"aws-sdk": "^2.1329.0",
|
"aws-sdk": "^2.1329.0",
|
||||||
"chalk": "^5.0.0",
|
"chalk": "^5.0.0",
|
||||||
"clean-deep": "^3.4.0",
|
"clean-deep": "^3.4.0",
|
||||||
|
|
|
@ -6,8 +6,7 @@ import {
|
||||||
LogResult,
|
LogResult,
|
||||||
userInfoSelectFields,
|
userInfoSelectFields,
|
||||||
} from '@logto/schemas';
|
} from '@logto/schemas';
|
||||||
import { trySafe } from '@logto/shared';
|
import { conditional, pick, trySafe } from '@silverhand/essentials';
|
||||||
import { conditional, pick } from '@silverhand/essentials';
|
|
||||||
import type { Response } from 'got';
|
import type { Response } from 'got';
|
||||||
import { got, HTTPError } from 'got';
|
import { got, HTTPError } from 'got';
|
||||||
import type Provider from 'oidc-provider';
|
import type Provider from 'oidc-provider';
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import type { CreateApplication } from '@logto/schemas';
|
import type { CreateApplication } from '@logto/schemas';
|
||||||
import { ApplicationType, adminConsoleApplicationId, demoAppApplicationId } from '@logto/schemas';
|
import { ApplicationType, adminConsoleApplicationId, demoAppApplicationId } from '@logto/schemas';
|
||||||
import { tryThat } from '@logto/shared';
|
import { appendPath, tryThat } from '@silverhand/essentials';
|
||||||
import { appendPath } from '@silverhand/essentials';
|
|
||||||
import { addSeconds } from 'date-fns';
|
import { addSeconds } from 'date-fns';
|
||||||
import type { AdapterFactory, AllClientMetadata } from 'oidc-provider';
|
import type { AdapterFactory, AllClientMetadata } from 'oidc-provider';
|
||||||
import { errors } from 'oidc-provider';
|
import { errors } from 'oidc-provider';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { generateStandardId } from '@logto/core-kit';
|
import { generateStandardId } from '@logto/core-kit';
|
||||||
import { tryThat } from '@logto/shared';
|
import { tryThat } from '@silverhand/essentials';
|
||||||
import { object, string } from 'zod';
|
import { object, string } from 'zod';
|
||||||
|
|
||||||
import RequestError from '#src/errors/RequestError/index.js';
|
import RequestError from '#src/errors/RequestError/index.js';
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { emailRegEx, passwordRegEx, phoneRegEx, usernameRegEx } from '@logto/core-kit';
|
import { emailRegEx, passwordRegEx, phoneRegEx, usernameRegEx } from '@logto/core-kit';
|
||||||
import { arbitraryObjectGuard, userInfoSelectFields } from '@logto/schemas';
|
import { arbitraryObjectGuard, userInfoSelectFields } from '@logto/schemas';
|
||||||
import { tryThat } from '@logto/shared';
|
import { conditional, has, pick, tryThat } from '@silverhand/essentials';
|
||||||
import { conditional, has, pick } from '@silverhand/essentials';
|
|
||||||
import { boolean, literal, object, string } from 'zod';
|
import { boolean, literal, object, string } from 'zod';
|
||||||
|
|
||||||
import RequestError from '#src/errors/RequestError/index.js';
|
import RequestError from '#src/errors/RequestError/index.js';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { trySafe } from '@logto/shared';
|
import { trySafe } from '@silverhand/essentials';
|
||||||
import type { MiddlewareType } from 'koa';
|
import type { MiddlewareType } from 'koa';
|
||||||
import type { IRouterParamContext } from 'koa-router';
|
import type { IRouterParamContext } from 'koa-router';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { buildIdGenerator } from '@logto/core-kit';
|
import { buildIdGenerator } from '@logto/core-kit';
|
||||||
import { Resources, Scopes } from '@logto/schemas';
|
import { Resources, Scopes } from '@logto/schemas';
|
||||||
import { tryThat } from '@logto/shared';
|
import { tryThat, yes } from '@silverhand/essentials';
|
||||||
import { yes } from '@silverhand/essentials';
|
|
||||||
import { object, string } from 'zod';
|
import { object, string } from 'zod';
|
||||||
|
|
||||||
import RequestError from '#src/errors/RequestError/index.js';
|
import RequestError from '#src/errors/RequestError/index.js';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { generateStandardId } from '@logto/core-kit';
|
import { generateStandardId } from '@logto/core-kit';
|
||||||
import type { ScopeResponse } from '@logto/schemas';
|
import type { ScopeResponse } from '@logto/schemas';
|
||||||
import { tryThat } from '@logto/shared';
|
import { tryThat } from '@silverhand/essentials';
|
||||||
import { object, string } from 'zod';
|
import { object, string } from 'zod';
|
||||||
|
|
||||||
import RequestError from '#src/errors/RequestError/index.js';
|
import RequestError from '#src/errors/RequestError/index.js';
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
import { generateStandardId } from '@logto/core-kit';
|
import { generateStandardId } from '@logto/core-kit';
|
||||||
import type { RoleResponse } from '@logto/schemas';
|
import type { RoleResponse } from '@logto/schemas';
|
||||||
import { userInfoSelectFields, Roles } from '@logto/schemas';
|
import { userInfoSelectFields, Roles } from '@logto/schemas';
|
||||||
import { tryThat } from '@logto/shared';
|
import { pick, tryThat } from '@silverhand/essentials';
|
||||||
import { pick } from '@silverhand/essentials';
|
|
||||||
import { object, string, z } from 'zod';
|
import { object, string, z } from 'zod';
|
||||||
|
|
||||||
import RequestError from '#src/errors/RequestError/index.js';
|
import RequestError from '#src/errors/RequestError/index.js';
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
"@logto/schemas": "workspace:*",
|
"@logto/schemas": "workspace:*",
|
||||||
"@peculiar/webcrypto": "^1.3.3",
|
"@peculiar/webcrypto": "^1.3.3",
|
||||||
"@silverhand/eslint-config": "2.0.1",
|
"@silverhand/eslint-config": "2.0.1",
|
||||||
"@silverhand/essentials": "2.4.1",
|
"@silverhand/essentials": "^2.5.0",
|
||||||
"@silverhand/ts-config": "2.0.3",
|
"@silverhand/ts-config": "2.0.3",
|
||||||
"@types/expect-puppeteer": "^5.0.3",
|
"@types/expect-puppeteer": "^5.0.3",
|
||||||
"@types/jest": "^29.4.0",
|
"@types/jest": "^29.4.0",
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@logto/language-kit": "workspace:*",
|
"@logto/language-kit": "workspace:*",
|
||||||
"@silverhand/essentials": "2.4.1",
|
"@silverhand/essentials": "^2.5.0",
|
||||||
"zod": "^3.20.2"
|
"zod": "^3.20.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@logto/language-kit": "workspace:*",
|
"@logto/language-kit": "workspace:*",
|
||||||
"@silverhand/essentials": "2.4.1",
|
"@silverhand/essentials": "^2.5.0",
|
||||||
"zod": "^3.20.2"
|
"zod": "^3.20.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@silverhand/eslint-config": "2.0.1",
|
"@silverhand/eslint-config": "2.0.1",
|
||||||
"@silverhand/essentials": "2.4.1",
|
"@silverhand/essentials": "^2.5.0",
|
||||||
"@silverhand/ts-config": "2.0.3",
|
"@silverhand/ts-config": "2.0.3",
|
||||||
"@types/inquirer": "^9.0.0",
|
"@types/inquirer": "^9.0.0",
|
||||||
"@types/jest": "^29.4.0",
|
"@types/jest": "^29.4.0",
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@logto/core-kit": "workspace:*",
|
"@logto/core-kit": "workspace:*",
|
||||||
"@logto/schemas": "workspace:*",
|
"@logto/schemas": "workspace:*",
|
||||||
"@silverhand/essentials": "2.4.1",
|
"@silverhand/essentials": "^2.5.0",
|
||||||
"chalk": "^5.0.0",
|
"chalk": "^5.0.0",
|
||||||
"find-up": "^6.3.0",
|
"find-up": "^6.3.0",
|
||||||
"nanoid": "^4.0.0",
|
"nanoid": "^4.0.0",
|
||||||
|
|
3
packages/shared/src/env/GlobalValues.ts
vendored
3
packages/shared/src/env/GlobalValues.ts
vendored
|
@ -1,6 +1,5 @@
|
||||||
import { assertEnv, getEnv, getEnvAsStringArray, yes } from '@silverhand/essentials';
|
import { assertEnv, getEnv, getEnvAsStringArray, tryThat, yes } from '@silverhand/essentials';
|
||||||
|
|
||||||
import { tryThat } from '../utils/index.js';
|
|
||||||
import UrlSet from './UrlSet.js';
|
import UrlSet from './UrlSet.js';
|
||||||
import { throwErrorWithDsnMessage } from './throw-errors.js';
|
import { throwErrorWithDsnMessage } from './throw-errors.js';
|
||||||
|
|
||||||
|
|
|
@ -1,82 +0,0 @@
|
||||||
import { trySafe, tryThat } from './function.js';
|
|
||||||
|
|
||||||
describe('tryThat()', () => {
|
|
||||||
it('should directly execute and return or throw if the function is not a Promise', () => {
|
|
||||||
expect(tryThat(() => 'foo', new Error('try'))).toStrictEqual('foo');
|
|
||||||
expect(() =>
|
|
||||||
tryThat(() => {
|
|
||||||
throw new Error('Test');
|
|
||||||
}, new Error('try'))
|
|
||||||
).toThrowError(new Error('try'));
|
|
||||||
expect(() =>
|
|
||||||
tryThat(
|
|
||||||
() => {
|
|
||||||
throw new Error('Test');
|
|
||||||
},
|
|
||||||
(error) => {
|
|
||||||
throw new Error(String(error instanceof Error && error.message) + ' try');
|
|
||||||
}
|
|
||||||
)
|
|
||||||
).toThrowError(new Error('Test try'));
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should execute or unwrap a Promise and throw the error', async () => {
|
|
||||||
expect(
|
|
||||||
await tryThat(
|
|
||||||
new Promise((resolve) => {
|
|
||||||
setTimeout(() => {
|
|
||||||
resolve('bar');
|
|
||||||
}, 0);
|
|
||||||
}),
|
|
||||||
new Error('try')
|
|
||||||
)
|
|
||||||
).toStrictEqual('bar');
|
|
||||||
|
|
||||||
await expect(
|
|
||||||
tryThat(
|
|
||||||
async () =>
|
|
||||||
new Promise((resolve, reject) => {
|
|
||||||
reject();
|
|
||||||
}),
|
|
||||||
() => {
|
|
||||||
throw new Error('try');
|
|
||||||
}
|
|
||||||
)
|
|
||||||
).rejects.toStrictEqual(new Error('try'));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('trySafe()', () => {
|
|
||||||
it('should directly execute and return if the function is not a Promise', () => {
|
|
||||||
expect(trySafe(() => 'foo')).toStrictEqual('foo');
|
|
||||||
expect(
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-confusing-void-expression
|
|
||||||
trySafe(() => {
|
|
||||||
throw new Error('Test');
|
|
||||||
})
|
|
||||||
// eslint-disable-next-line unicorn/no-useless-undefined
|
|
||||||
).toStrictEqual(undefined);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should execute or unwrap a Promise and catch the error', async () => {
|
|
||||||
expect(
|
|
||||||
await trySafe(
|
|
||||||
new Promise((resolve) => {
|
|
||||||
setTimeout(() => {
|
|
||||||
resolve('bar');
|
|
||||||
}, 0);
|
|
||||||
})
|
|
||||||
)
|
|
||||||
).toStrictEqual('bar');
|
|
||||||
|
|
||||||
expect(
|
|
||||||
await trySafe(
|
|
||||||
async () =>
|
|
||||||
new Promise((resolve, reject) => {
|
|
||||||
reject();
|
|
||||||
})
|
|
||||||
)
|
|
||||||
// eslint-disable-next-line unicorn/no-useless-undefined
|
|
||||||
).toStrictEqual(undefined);
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -1,54 +0,0 @@
|
||||||
export const isPromise = (value: unknown): value is Promise<unknown> =>
|
|
||||||
value !== null &&
|
|
||||||
(typeof value === 'object' || typeof value === 'function') &&
|
|
||||||
'then' in value &&
|
|
||||||
typeof value.then === 'function';
|
|
||||||
|
|
||||||
export type TryThat = {
|
|
||||||
<T>(exec: () => T, onError: Error | ((error: unknown) => never)): T;
|
|
||||||
<T>(
|
|
||||||
exec: Promise<T> | (() => Promise<T>),
|
|
||||||
onError: Error | ((error: unknown) => never)
|
|
||||||
): Promise<T>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export const tryThat: TryThat = (exec, onError) => {
|
|
||||||
const handleError = (error: unknown) => {
|
|
||||||
if (onError instanceof Error) {
|
|
||||||
throw onError;
|
|
||||||
}
|
|
||||||
|
|
||||||
return onError(error);
|
|
||||||
};
|
|
||||||
|
|
||||||
try {
|
|
||||||
const unwrapped = typeof exec === 'function' ? exec() : exec;
|
|
||||||
|
|
||||||
return isPromise(unwrapped)
|
|
||||||
? // eslint-disable-next-line promise/prefer-await-to-then
|
|
||||||
unwrapped.catch(handleError)
|
|
||||||
: unwrapped;
|
|
||||||
} catch (error: unknown) {
|
|
||||||
return handleError(error);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
export type TrySafe = {
|
|
||||||
<T>(exec: () => T): T | undefined;
|
|
||||||
<T>(exec: Promise<T> | (() => Promise<T>)): Promise<T | undefined>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export const trySafe: TrySafe = (exec) => {
|
|
||||||
try {
|
|
||||||
const unwrapped = typeof exec === 'function' ? exec() : exec;
|
|
||||||
|
|
||||||
return isPromise(unwrapped)
|
|
||||||
? // eslint-disable-next-line promise/prefer-await-to-then
|
|
||||||
unwrapped.catch((error: unknown) => {
|
|
||||||
console.error('trySafe() caught error', error);
|
|
||||||
})
|
|
||||||
: unwrapped;
|
|
||||||
} catch (error: unknown) {
|
|
||||||
console.error('trySafe() caught error', error);
|
|
||||||
}
|
|
||||||
};
|
|
|
@ -1,4 +1,3 @@
|
||||||
export * from './function.js';
|
|
||||||
export * from './object.js';
|
export * from './object.js';
|
||||||
export { default as findPackage } from './find-package.js';
|
export { default as findPackage } from './find-package.js';
|
||||||
export * from './ttl-cache.js';
|
export * from './ttl-cache.js';
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@logto/language-kit": "workspace:*",
|
"@logto/language-kit": "workspace:*",
|
||||||
"@silverhand/essentials": "2.4.1"
|
"@silverhand/essentials": "^2.5.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"zod": "^3.20.2"
|
"zod": "^3.20.2"
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
"@jest/types": "^29.0.3",
|
"@jest/types": "^29.0.3",
|
||||||
"@silverhand/eslint-config": "2.0.1",
|
"@silverhand/eslint-config": "2.0.1",
|
||||||
"@silverhand/eslint-config-react": "2.0.1",
|
"@silverhand/eslint-config-react": "2.0.1",
|
||||||
"@silverhand/essentials": "2.4.1",
|
"@silverhand/essentials": "^2.5.0",
|
||||||
"@silverhand/ts-config": "2.0.3",
|
"@silverhand/ts-config": "2.0.3",
|
||||||
"@types/color": "^3.0.3",
|
"@types/color": "^3.0.3",
|
||||||
"@types/jest": "^29.4.0",
|
"@types/jest": "^29.4.0",
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
"@react-spring/web": "^9.6.1",
|
"@react-spring/web": "^9.6.1",
|
||||||
"@silverhand/eslint-config": "2.0.1",
|
"@silverhand/eslint-config": "2.0.1",
|
||||||
"@silverhand/eslint-config-react": "2.0.1",
|
"@silverhand/eslint-config-react": "2.0.1",
|
||||||
"@silverhand/essentials": "2.4.1",
|
"@silverhand/essentials": "^2.5.0",
|
||||||
"@silverhand/jest-config": "1.2.2",
|
"@silverhand/jest-config": "1.2.2",
|
||||||
"@silverhand/ts-config": "2.0.3",
|
"@silverhand/ts-config": "2.0.3",
|
||||||
"@silverhand/ts-config-react": "2.0.3",
|
"@silverhand/ts-config-react": "2.0.3",
|
||||||
|
|
52
pnpm-lock.yaml
generated
52
pnpm-lock.yaml
generated
|
@ -32,7 +32,7 @@ importers:
|
||||||
'@logto/schemas': workspace:*
|
'@logto/schemas': workspace:*
|
||||||
'@logto/shared': workspace:*
|
'@logto/shared': workspace:*
|
||||||
'@silverhand/eslint-config': 2.0.1
|
'@silverhand/eslint-config': 2.0.1
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': ^2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3
|
'@silverhand/ts-config': 2.0.3
|
||||||
'@types/inquirer': ^9.0.0
|
'@types/inquirer': ^9.0.0
|
||||||
'@types/jest': ^29.4.0
|
'@types/jest': ^29.4.0
|
||||||
|
@ -71,7 +71,7 @@ importers:
|
||||||
'@logto/core-kit': link:../toolkit/core-kit
|
'@logto/core-kit': link:../toolkit/core-kit
|
||||||
'@logto/schemas': link:../schemas
|
'@logto/schemas': link:../schemas
|
||||||
'@logto/shared': link:../shared
|
'@logto/shared': link:../shared
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': 2.5.0
|
||||||
chalk: 5.1.2
|
chalk: 5.1.2
|
||||||
decamelize: 6.0.0
|
decamelize: 6.0.0
|
||||||
dotenv: 16.0.0
|
dotenv: 16.0.0
|
||||||
|
@ -116,7 +116,7 @@ importers:
|
||||||
'@logto/schemas': workspace:*
|
'@logto/schemas': workspace:*
|
||||||
'@logto/shared': workspace:*
|
'@logto/shared': workspace:*
|
||||||
'@silverhand/eslint-config': 2.0.1
|
'@silverhand/eslint-config': 2.0.1
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': ^2.5.0
|
||||||
'@silverhand/jest-config': ^2.0.1
|
'@silverhand/jest-config': ^2.0.1
|
||||||
'@silverhand/ts-config': 2.0.3
|
'@silverhand/ts-config': 2.0.3
|
||||||
'@types/accepts': ^1.3.5
|
'@types/accepts': ^1.3.5
|
||||||
|
@ -148,7 +148,7 @@ importers:
|
||||||
'@logto/core-kit': link:../toolkit/core-kit
|
'@logto/core-kit': link:../toolkit/core-kit
|
||||||
'@logto/schemas': link:../schemas
|
'@logto/schemas': link:../schemas
|
||||||
'@logto/shared': link:../shared
|
'@logto/shared': link:../shared
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': 2.5.0
|
||||||
'@withtyped/postgres': 0.8.1_@withtyped+server@0.8.1
|
'@withtyped/postgres': 0.8.1_@withtyped+server@0.8.1
|
||||||
'@withtyped/server': 0.8.1
|
'@withtyped/server': 0.8.1
|
||||||
accepts: 1.3.8
|
accepts: 1.3.8
|
||||||
|
@ -196,7 +196,7 @@ importers:
|
||||||
'@parcel/transformer-svg-react': 2.8.3
|
'@parcel/transformer-svg-react': 2.8.3
|
||||||
'@silverhand/eslint-config': 2.0.1
|
'@silverhand/eslint-config': 2.0.1
|
||||||
'@silverhand/eslint-config-react': 2.0.1
|
'@silverhand/eslint-config-react': 2.0.1
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': ^2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3
|
'@silverhand/ts-config': 2.0.3
|
||||||
'@silverhand/ts-config-react': 2.0.3
|
'@silverhand/ts-config-react': 2.0.3
|
||||||
'@tsconfig/docusaurus': ^1.0.5
|
'@tsconfig/docusaurus': ^1.0.5
|
||||||
|
@ -273,7 +273,7 @@ importers:
|
||||||
'@parcel/transformer-svg-react': 2.8.3_@parcel+core@2.8.3
|
'@parcel/transformer-svg-react': 2.8.3_@parcel+core@2.8.3
|
||||||
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
||||||
'@silverhand/eslint-config-react': 2.0.1_kz2ighe3mj4zdkvq5whtl3dq4u
|
'@silverhand/eslint-config-react': 2.0.1_kz2ighe3mj4zdkvq5whtl3dq4u
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': 2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3_typescript@4.9.4
|
'@silverhand/ts-config': 2.0.3_typescript@4.9.4
|
||||||
'@silverhand/ts-config-react': 2.0.3_typescript@4.9.4
|
'@silverhand/ts-config-react': 2.0.3_typescript@4.9.4
|
||||||
'@tsconfig/docusaurus': 1.0.5
|
'@tsconfig/docusaurus': 1.0.5
|
||||||
|
@ -346,7 +346,7 @@ importers:
|
||||||
'@logto/schemas': workspace:*
|
'@logto/schemas': workspace:*
|
||||||
'@logto/shared': workspace:*
|
'@logto/shared': workspace:*
|
||||||
'@silverhand/eslint-config': 2.0.1
|
'@silverhand/eslint-config': 2.0.1
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': ^2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3
|
'@silverhand/ts-config': 2.0.3
|
||||||
'@types/debug': ^4.1.7
|
'@types/debug': ^4.1.7
|
||||||
'@types/etag': ^1.8.1
|
'@types/etag': ^1.8.1
|
||||||
|
@ -427,7 +427,7 @@ importers:
|
||||||
'@logto/phrases-ui': link:../phrases-ui
|
'@logto/phrases-ui': link:../phrases-ui
|
||||||
'@logto/schemas': link:../schemas
|
'@logto/schemas': link:../schemas
|
||||||
'@logto/shared': link:../shared
|
'@logto/shared': link:../shared
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': 2.5.0
|
||||||
aws-sdk: 2.1329.0
|
aws-sdk: 2.1329.0
|
||||||
chalk: 5.1.2
|
chalk: 5.1.2
|
||||||
clean-deep: 3.4.0
|
clean-deep: 3.4.0
|
||||||
|
@ -575,7 +575,7 @@ importers:
|
||||||
'@logto/schemas': workspace:*
|
'@logto/schemas': workspace:*
|
||||||
'@peculiar/webcrypto': ^1.3.3
|
'@peculiar/webcrypto': ^1.3.3
|
||||||
'@silverhand/eslint-config': 2.0.1
|
'@silverhand/eslint-config': 2.0.1
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': ^2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3
|
'@silverhand/ts-config': 2.0.3
|
||||||
'@types/expect-puppeteer': ^5.0.3
|
'@types/expect-puppeteer': ^5.0.3
|
||||||
'@types/jest': ^29.4.0
|
'@types/jest': ^29.4.0
|
||||||
|
@ -604,7 +604,7 @@ importers:
|
||||||
'@logto/schemas': link:../schemas
|
'@logto/schemas': link:../schemas
|
||||||
'@peculiar/webcrypto': 1.3.3
|
'@peculiar/webcrypto': 1.3.3
|
||||||
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': 2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3_typescript@4.9.4
|
'@silverhand/ts-config': 2.0.3_typescript@4.9.4
|
||||||
'@types/expect-puppeteer': 5.0.3
|
'@types/expect-puppeteer': 5.0.3
|
||||||
'@types/jest': 29.4.0
|
'@types/jest': 29.4.0
|
||||||
|
@ -627,7 +627,7 @@ importers:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@logto/language-kit': workspace:*
|
'@logto/language-kit': workspace:*
|
||||||
'@silverhand/eslint-config': 2.0.1
|
'@silverhand/eslint-config': 2.0.1
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': ^2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3
|
'@silverhand/ts-config': 2.0.3
|
||||||
eslint: ^8.34.0
|
eslint: ^8.34.0
|
||||||
lint-staged: ^13.0.0
|
lint-staged: ^13.0.0
|
||||||
|
@ -636,7 +636,7 @@ importers:
|
||||||
zod: ^3.20.2
|
zod: ^3.20.2
|
||||||
dependencies:
|
dependencies:
|
||||||
'@logto/language-kit': link:../toolkit/language-kit
|
'@logto/language-kit': link:../toolkit/language-kit
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': 2.5.0
|
||||||
zod: 3.20.2
|
zod: 3.20.2
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
||||||
|
@ -650,7 +650,7 @@ importers:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@logto/language-kit': workspace:*
|
'@logto/language-kit': workspace:*
|
||||||
'@silverhand/eslint-config': 2.0.1
|
'@silverhand/eslint-config': 2.0.1
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': ^2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3
|
'@silverhand/ts-config': 2.0.3
|
||||||
buffer: ^5.7.1
|
buffer: ^5.7.1
|
||||||
eslint: ^8.34.0
|
eslint: ^8.34.0
|
||||||
|
@ -660,7 +660,7 @@ importers:
|
||||||
zod: ^3.20.2
|
zod: ^3.20.2
|
||||||
dependencies:
|
dependencies:
|
||||||
'@logto/language-kit': link:../toolkit/language-kit
|
'@logto/language-kit': link:../toolkit/language-kit
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': 2.5.0
|
||||||
zod: 3.20.2
|
zod: 3.20.2
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
||||||
|
@ -679,7 +679,7 @@ importers:
|
||||||
'@logto/phrases': workspace:*
|
'@logto/phrases': workspace:*
|
||||||
'@logto/phrases-ui': workspace:*
|
'@logto/phrases-ui': workspace:*
|
||||||
'@silverhand/eslint-config': 2.0.1
|
'@silverhand/eslint-config': 2.0.1
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': ^2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3
|
'@silverhand/ts-config': 2.0.3
|
||||||
'@types/inquirer': ^9.0.0
|
'@types/inquirer': ^9.0.0
|
||||||
'@types/jest': ^29.4.0
|
'@types/jest': ^29.4.0
|
||||||
|
@ -708,7 +708,7 @@ importers:
|
||||||
zod: 3.20.2
|
zod: 3.20.2
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': 2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3_typescript@4.9.4
|
'@silverhand/ts-config': 2.0.3_typescript@4.9.4
|
||||||
'@types/inquirer': 9.0.3
|
'@types/inquirer': 9.0.3
|
||||||
'@types/jest': 29.4.0
|
'@types/jest': 29.4.0
|
||||||
|
@ -732,7 +732,7 @@ importers:
|
||||||
'@logto/core-kit': workspace:*
|
'@logto/core-kit': workspace:*
|
||||||
'@logto/schemas': workspace:*
|
'@logto/schemas': workspace:*
|
||||||
'@silverhand/eslint-config': 2.0.1
|
'@silverhand/eslint-config': 2.0.1
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': ^2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3
|
'@silverhand/ts-config': 2.0.3
|
||||||
'@types/jest': ^29.4.0
|
'@types/jest': ^29.4.0
|
||||||
'@types/node': ^18.11.18
|
'@types/node': ^18.11.18
|
||||||
|
@ -748,7 +748,7 @@ importers:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@logto/core-kit': link:../toolkit/core-kit
|
'@logto/core-kit': link:../toolkit/core-kit
|
||||||
'@logto/schemas': link:../schemas
|
'@logto/schemas': link:../schemas
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': 2.5.0
|
||||||
chalk: 5.1.2
|
chalk: 5.1.2
|
||||||
find-up: 6.3.0
|
find-up: 6.3.0
|
||||||
nanoid: 4.0.0
|
nanoid: 4.0.0
|
||||||
|
@ -769,7 +769,7 @@ importers:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@logto/language-kit': workspace:*
|
'@logto/language-kit': workspace:*
|
||||||
'@silverhand/eslint-config': 2.0.1
|
'@silverhand/eslint-config': 2.0.1
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': ^2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3
|
'@silverhand/ts-config': 2.0.3
|
||||||
'@types/node': ^18.11.18
|
'@types/node': ^18.11.18
|
||||||
eslint: ^8.34.0
|
eslint: ^8.34.0
|
||||||
|
@ -780,7 +780,7 @@ importers:
|
||||||
zod: ^3.20.2
|
zod: ^3.20.2
|
||||||
dependencies:
|
dependencies:
|
||||||
'@logto/language-kit': link:../language-kit
|
'@logto/language-kit': link:../language-kit
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': 2.5.0
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
zod: 3.20.2
|
zod: 3.20.2
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
@ -799,7 +799,7 @@ importers:
|
||||||
'@logto/language-kit': workspace:*
|
'@logto/language-kit': workspace:*
|
||||||
'@silverhand/eslint-config': 2.0.1
|
'@silverhand/eslint-config': 2.0.1
|
||||||
'@silverhand/eslint-config-react': 2.0.1
|
'@silverhand/eslint-config-react': 2.0.1
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': ^2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3
|
'@silverhand/ts-config': 2.0.3
|
||||||
'@types/color': ^3.0.3
|
'@types/color': ^3.0.3
|
||||||
'@types/jest': ^29.4.0
|
'@types/jest': ^29.4.0
|
||||||
|
@ -826,7 +826,7 @@ importers:
|
||||||
'@jest/types': 29.3.1
|
'@jest/types': 29.3.1
|
||||||
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
||||||
'@silverhand/eslint-config-react': 2.0.1_wfldc7mlde5bb3fdzap5arn6me
|
'@silverhand/eslint-config-react': 2.0.1_wfldc7mlde5bb3fdzap5arn6me
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': 2.5.0
|
||||||
'@silverhand/ts-config': 2.0.3_typescript@4.9.4
|
'@silverhand/ts-config': 2.0.3_typescript@4.9.4
|
||||||
'@types/color': 3.0.3
|
'@types/color': 3.0.3
|
||||||
'@types/jest': 29.4.0
|
'@types/jest': 29.4.0
|
||||||
|
@ -888,7 +888,7 @@ importers:
|
||||||
'@react-spring/web': ^9.6.1
|
'@react-spring/web': ^9.6.1
|
||||||
'@silverhand/eslint-config': 2.0.1
|
'@silverhand/eslint-config': 2.0.1
|
||||||
'@silverhand/eslint-config-react': 2.0.1
|
'@silverhand/eslint-config-react': 2.0.1
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': ^2.5.0
|
||||||
'@silverhand/jest-config': 1.2.2
|
'@silverhand/jest-config': 1.2.2
|
||||||
'@silverhand/ts-config': 2.0.3
|
'@silverhand/ts-config': 2.0.3
|
||||||
'@silverhand/ts-config-react': 2.0.3
|
'@silverhand/ts-config-react': 2.0.3
|
||||||
|
@ -953,7 +953,7 @@ importers:
|
||||||
'@react-spring/web': 9.6.1_biqbaboplfbrettd7655fr4n2y
|
'@react-spring/web': 9.6.1_biqbaboplfbrettd7655fr4n2y
|
||||||
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
'@silverhand/eslint-config': 2.0.1_kjzxg5porcw5dx54sezsklj5cy
|
||||||
'@silverhand/eslint-config-react': 2.0.1_kz2ighe3mj4zdkvq5whtl3dq4u
|
'@silverhand/eslint-config-react': 2.0.1_kz2ighe3mj4zdkvq5whtl3dq4u
|
||||||
'@silverhand/essentials': 2.4.1
|
'@silverhand/essentials': 2.5.0
|
||||||
'@silverhand/jest-config': 1.2.2_cdjgginuefokmzmklysahvrmme
|
'@silverhand/jest-config': 1.2.2_cdjgginuefokmzmklysahvrmme
|
||||||
'@silverhand/ts-config': 2.0.3_typescript@4.9.4
|
'@silverhand/ts-config': 2.0.3_typescript@4.9.4
|
||||||
'@silverhand/ts-config-react': 2.0.3_typescript@4.9.4
|
'@silverhand/ts-config-react': 2.0.3_typescript@4.9.4
|
||||||
|
@ -3658,8 +3658,8 @@ packages:
|
||||||
lodash.pick: 4.4.0
|
lodash.pick: 4.4.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@silverhand/essentials/2.4.1:
|
/@silverhand/essentials/2.5.0:
|
||||||
resolution: {integrity: sha512-o37Nsdp65LDPbk51rjcZ7/Lsrox3ag3IaOHTFkSR/TjYwwSJiKVh26ywGdb2lKacDDKraVjBuV6kRhhA0Jm19w==}
|
resolution: {integrity: sha512-8GgVFAmbo6S0EgsjYXH4aH8a69O7SzEtPFPDpVZmJuGEt8e3ODVx0F2V4rXyC3/SzFbcb2md2gRbA+Z6aTad6g==}
|
||||||
engines: {node: ^16.13.0 || ^18.12.0 || ^19.2.0, pnpm: ^7}
|
engines: {node: ^16.13.0 || ^18.12.0 || ^19.2.0, pnpm: ^7}
|
||||||
|
|
||||||
/@silverhand/jest-config/1.2.2_cdjgginuefokmzmklysahvrmme:
|
/@silverhand/jest-config/1.2.2_cdjgginuefokmzmklysahvrmme:
|
||||||
|
|
Loading…
Add table
Reference in a new issue