0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

chore: upgrade silverhand packages (#1854)

This commit is contained in:
Gao Sun 2022-09-01 17:03:49 +08:00 committed by GitHub
parent 301bd23b49
commit 8c451b4e3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 403 additions and 500 deletions

View file

@ -25,7 +25,7 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"dayjs": "^1.10.5",
"got": "^11.8.2",
"iconv-lite": "0.6.3",
@ -35,8 +35,8 @@
"devDependencies": {
"@jest/types": "^28.1.3",
"@shopify/jest-koa-mocks": "^5.0.0",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/lodash.pick": "^4.4.6",
"@types/node": "^16.3.1",

View file

@ -25,7 +25,7 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"dayjs": "^1.10.5",
"got": "^11.8.2",
"iconv-lite": "0.6.3",
@ -35,8 +35,8 @@
"devDependencies": {
"@jest/types": "^28.1.3",
"@shopify/jest-koa-mocks": "^5.0.0",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/lodash.pick": "^4.4.6",
"@types/node": "^16.3.1",

View file

@ -1,4 +1,4 @@
import { ConnectorType, ConnectorMetadata, ConnectorPlatform } from '@logto/connector-core';
import { ConnectorMetadata, ConnectorPlatform } from '@logto/connector-core';
export const authorizationEndpoint = 'https://openauth.alipay.com/oauth2/publicAppAuthorize.htm';
export const alipayEndpoint = 'https://openapi.alipay.com/gateway.do';

View file

@ -25,14 +25,14 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"got": "^11.8.2",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",

View file

@ -1,4 +1,4 @@
import { ConnectorType, ConnectorMetadata } from '@logto/connector-core';
import { ConnectorMetadata } from '@logto/connector-core';
export const endpoint = 'https://dm.aliyuncs.com/';

View file

@ -25,14 +25,14 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"got": "^11.8.2",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",

View file

@ -1,4 +1,4 @@
import { ConnectorMetadata, ConnectorType } from '@logto/connector-core';
import { ConnectorMetadata } from '@logto/connector-core';
export const endpoint = 'https://dysmsapi.aliyuncs.com/';

View file

@ -26,15 +26,15 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"got": "^11.8.2",
"jose": "^4.3.8",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",

View file

@ -1,4 +1,4 @@
import { ConnectorMetadata, ConnectorType, ConnectorPlatform } from '@logto/connector-core';
import { ConnectorMetadata, ConnectorPlatform } from '@logto/connector-core';
// https://appleid.apple.com/.well-known/openid-configuration
export const issuer = 'https://appleid.apple.com';

View file

@ -26,15 +26,15 @@
"@azure/msal-node": "^1.12.0",
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"axios": "^0.27.2",
"got": "^11.8.2",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",

View file

@ -1,4 +1,4 @@
import { ConnectorMetadata, ConnectorType, ConnectorPlatform } from '@logto/connector-core';
import { ConnectorMetadata, ConnectorPlatform } from '@logto/connector-core';
export const graphAPIEndpoint = 'https://graph.microsoft.com/v1.0/me';
export const scopes = ['User.Read'];

View file

@ -23,8 +23,8 @@
"zod": "^3.14.3"
},
"devDependencies": {
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/node": "^16.3.1",
"eslint": "^8.21.0",
"lint-staged": "^13.0.0",

View file

@ -25,14 +25,14 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"got": "^11.8.2",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",

View file

@ -1,4 +1,4 @@
import { ConnectorMetadata, ConnectorType, ConnectorPlatform } from '@logto/connector-core';
import { ConnectorMetadata, ConnectorPlatform } from '@logto/connector-core';
/**
* Note: If you do not include a version number we will default to the oldest available version, so it's recommended to include the version number in your requests.

View file

@ -1,4 +1,4 @@
import { object, z } from 'zod';
import { z } from 'zod';
export const facebookConfigGuard = z.object({
clientId: z.string(),

View file

@ -26,15 +26,15 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"got": "^11.8.2",
"query-string": "^7.0.1",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",

View file

@ -1,4 +1,4 @@
import { ConnectorMetadata, ConnectorType, ConnectorPlatform } from '@logto/connector-core';
import { ConnectorMetadata, ConnectorPlatform } from '@logto/connector-core';
export const authorizationEndpoint = 'https://github.com/login/oauth/authorize';
export const scope = 'read:user';

View file

@ -25,14 +25,14 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"got": "^11.8.2",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",

View file

@ -1,4 +1,4 @@
import { ConnectorMetadata, ConnectorType, ConnectorPlatform } from '@logto/connector-core';
import { ConnectorMetadata, ConnectorPlatform } from '@logto/connector-core';
export const authorizationEndpoint = 'https://accounts.google.com/o/oauth2/v2/auth';
export const accessTokenEndpoint = 'https://oauth2.googleapis.com/token';

View file

@ -1,4 +1,4 @@
import { object, z } from 'zod';
import { z } from 'zod';
export const googleConfigGuard = z.object({
clientId: z.string(),

View file

@ -25,14 +25,14 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"got": "^11.8.2",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",

View file

@ -26,8 +26,8 @@
"zod": "^3.14.3"
},
"devDependencies": {
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",
"eslint": "^8.21.0",

View file

@ -1,4 +1,4 @@
import { ConnectorType, ConnectorMetadata } from '@logto/connector-core';
import { ConnectorMetadata } from '@logto/connector-core';
export const defaultMetadata: ConnectorMetadata = {
id: 'mock-email-service',

View file

@ -26,8 +26,8 @@
"zod": "^3.14.3"
},
"devDependencies": {
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",
"eslint": "^8.21.0",

View file

@ -1,4 +1,4 @@
import { ConnectorType, ConnectorMetadata } from '@logto/connector-core';
import { ConnectorMetadata } from '@logto/connector-core';
export const defaultMetadata: ConnectorMetadata = {
id: 'mock-short-message-service',

View file

@ -27,8 +27,8 @@
"zod": "^3.14.3"
},
"devDependencies": {
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",
"eslint": "^8.21.0",

View file

@ -1,4 +1,4 @@
import { ConnectorMetadata, ConnectorType, ConnectorPlatform } from '@logto/connector-core';
import { ConnectorMetadata, ConnectorPlatform } from '@logto/connector-core';
export const defaultMetadata: ConnectorMetadata = {
id: 'mock-social-connector',

View file

@ -25,14 +25,14 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"got": "^11.8.2",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",

View file

@ -1,4 +1,4 @@
import { ConnectorType, ConnectorMetadata } from '@logto/connector-core';
import { ConnectorMetadata } from '@logto/connector-core';
export const endpoint = 'https://api.sendgrid.com/v3/mail/send';

View file

@ -26,14 +26,14 @@
"@logto/connector-core": "^1.0.0-beta.8",
"@logto/shared": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"nodemailer": "^6.7.5",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@types/nodemailer": "^6.4.4",

View file

@ -1,4 +1,4 @@
import { ConnectorType, ConnectorMetadata } from '@logto/connector-core';
import { ConnectorMetadata } from '@logto/connector-core';
export const defaultMetadata: ConnectorMetadata = {
id: 'simple-mail-transfer-protocol',

View file

@ -25,14 +25,14 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"got": "^11.8.2",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",

View file

@ -1,4 +1,4 @@
import { ConnectorType, ConnectorMetadata } from '@logto/connector-core';
import { ConnectorMetadata } from '@logto/connector-core';
export const endpoint = 'https://api.twilio.com/2010-04-01/Accounts/{{accountSID}}/Messages.json';

View file

@ -25,14 +25,14 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"got": "^11.8.2",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",

View file

@ -1,4 +1,4 @@
import { ConnectorMetadata, ConnectorType, ConnectorPlatform } from '@logto/connector-core';
import { ConnectorMetadata, ConnectorPlatform } from '@logto/connector-core';
export const authorizationEndpoint = 'wechat://'; // This is used to arouse the native WeChat App
export const accessTokenEndpoint = 'https://api.weixin.qq.com/sns/oauth2/access_token';

View file

@ -25,14 +25,14 @@
"dependencies": {
"@logto/connector-core": "^1.0.0-beta.8",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/jest-config": "1.0.0",
"got": "^11.8.2",
"zod": "^3.14.3"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.3.1",
"@vercel/ncc": "^0.34.0",

View file

@ -1,4 +1,4 @@
import { ConnectorMetadata, ConnectorType, ConnectorPlatform } from '@logto/connector-core';
import { ConnectorMetadata, ConnectorPlatform } from '@logto/connector-core';
export const authorizationEndpoint = 'https://open.weixin.qq.com/connect/qrconnect';
export const accessTokenEndpoint = 'https://api.weixin.qq.com/sns/oauth2/access_token';

View file

@ -28,11 +28,11 @@
"@parcel/transformer-mdx": "2.7.0",
"@parcel/transformer-sass": "2.7.0",
"@parcel/transformer-svg-react": "2.7.0",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/eslint-config-react": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/eslint-config-react": "1.0.0",
"@silverhand/essentials": "^1.2.0",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/ts-config-react": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0",
"@silverhand/ts-config-react": "1.0.0",
"@tsconfig/docusaurus": "^1.0.5",
"@types/color": "^3.0.3",
"@types/lodash.kebabcase": "^4.1.6",

View file

@ -1,7 +1,6 @@
// https://react.i18next.com/latest/typescript#create-a-declaration-file
import { Translation, Errors } from '@logto/phrases';
import { CustomTypeOptions } from 'react-i18next';
declare module 'react-i18next' {
interface CustomTypeOptions {

View file

@ -1,6 +1,6 @@
import { languageOptions } from '@logto/phrases';
import { AppearanceMode } from '@logto/schemas';
import { languageKeyGuard, languageKeys } from '@logto/shared';
import { languageKeyGuard } from '@logto/shared';
import classNames from 'classnames';
import { Controller, useForm } from 'react-hook-form';
import { toast } from 'react-hot-toast';

View file

@ -1,4 +1,3 @@
import { SignInMode } from '@logto/schemas';
import { useFormContext } from 'react-hook-form';
import { useTranslation } from 'react-i18next';

View file

@ -78,9 +78,9 @@
},
"devDependencies": {
"@shopify/jest-koa-mocks": "^5.0.0",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/jest-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/debug": "^4.1.7",
"@types/etag": "^1.8.1",
"@types/inquirer": "^8.2.1",

View file

@ -1,4 +1,4 @@
import { DefaultState, DefaultContext, ParameterizedContext, Next, BaseRequest } from 'koa';
import { DefaultState, DefaultContext, ParameterizedContext, BaseRequest } from 'koa';
declare module 'koa' {
// Have to do this patch since `compose.Middleware` returns `any`.

View file

@ -1,5 +1,4 @@
import { CustomClientMetadata } from '@logto/schemas';
import { AllClientMetadata } from 'oidc-provider';
declare module 'oidc-provider' {
export interface AllClientMetadata extends CustomClientMetadata {}

View file

@ -2,7 +2,7 @@ import { UserRole, Users } from '@logto/schemas';
import { createMockPool, createMockQueryResult, sql } from 'slonik';
import { mockUser } from '@/__mocks__';
import { convertToIdentifiers, convertToPrimitiveOrSql } from '@/database/utils';
import { convertToIdentifiers } from '@/database/utils';
import envSet from '@/env-set';
import { DeletionError } from '@/errors/SlonikError';
import { expectSqlAssert, QueryType } from '@/utils/test-utils';

View file

@ -1,7 +1,6 @@
import { User, CreateUser, Users, UserRole } from '@logto/schemas';
import { sql } from 'slonik';
import { buildInsertInto } from '@/database/insert-into';
import { buildUpdateWhere } from '@/database/update-where';
import { conditionalSql, convertToIdentifiers, OmitAutoSetFields } from '@/database/utils';
import envSet from '@/env-set';

View file

@ -1,5 +1,5 @@
import { EmailConnector, MessageTypes, SmsConnector } from '@logto/connector-core';
import { Connector, ConnectorType } from '@logto/schemas';
import { ConnectorType } from '@logto/schemas';
import { any } from 'zod';
import { mockMetadata, mockConnector, mockLogtoConnectorList } from '@/__mocks__';

View file

@ -1,4 +1,4 @@
import { ConnectorType, SignInMode } from '@logto/schemas';
import { SignInMode } from '@logto/schemas';
import { adminConsoleApplicationId, adminConsoleSignInExperience } from '@logto/schemas/lib/seeds';
import { Provider } from 'oidc-provider';
@ -12,8 +12,6 @@ import {
mockWechatConnector,
mockWechatNativeConnector,
} from '@/__mocks__';
import { getLogtoConnectorById } from '@/connectors';
import RequestError from '@/errors/RequestError';
import * as signInExperienceQueries from '@/queries/sign-in-experience';
import wellKnownRoutes from '@/routes/well-known';
import { createRequester } from '@/utils/test-utils';

View file

@ -23,10 +23,10 @@
"@logto/shared": "^1.0.0-beta.8",
"@parcel/core": "2.7.0",
"@parcel/transformer-sass": "2.7.0",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/eslint-config-react": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/ts-config-react": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/eslint-config-react": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@silverhand/ts-config-react": "1.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"cross-env": "^7.0.3",

View file

@ -1,6 +1,7 @@
// https://react.i18next.com/latest/typescript#create-a-declaration-file
import { Translation, Errors } from '@logto/phrases';
// eslint-disable-next-line unused-imports/no-unused-imports
import { CustomTypeOptions } from 'react-i18next';
declare module 'react-i18next' {

View file

@ -18,10 +18,10 @@
"@logto/node": "1.0.0-beta.2",
"@logto/schemas": "^1.0.0-beta.8",
"@peculiar/webcrypto": "^1.3.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/jest-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.1.6",
"@types/jest-environment-puppeteer": "^5.0.2",
"@types/node": "^16.0.0",

View file

@ -33,8 +33,8 @@
"@silverhand/essentials": "^1.2.0"
},
"devDependencies": {
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"eslint": "^8.21.0",
"lint-staged": "^13.0.0",
"prettier": "^2.7.1",

View file

@ -33,8 +33,8 @@
"@silverhand/essentials": "^1.2.0"
},
"devDependencies": {
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"eslint": "^8.21.0",
"lint-staged": "^13.0.0",
"prettier": "^2.7.1",

View file

@ -22,10 +22,10 @@
"node": "^16.0.0"
},
"devDependencies": {
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/jest-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@types/jest": "^28.0.0",
"@types/lodash.uniq": "^4.5.6",
"@types/node": "16",

View file

@ -5,7 +5,7 @@ import assert from 'assert';
import fs from 'fs/promises';
import path from 'path';
import { conditional, conditionalString } from '@silverhand/essentials';
import { conditionalString } from '@silverhand/essentials';
import camelcase from 'camelcase';
import uniq from 'lodash.uniq';
import pluralize from 'pluralize';

View file

@ -27,11 +27,11 @@
"zod": "^3.18.0"
},
"devDependencies": {
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/eslint-config-react": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/eslint-config-react": "1.0.0",
"@silverhand/essentials": "^1.2.0",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/ts-config-react": "1.0.0-rc.2",
"@silverhand/ts-config": "1.0.0",
"@silverhand/ts-config-react": "1.0.0",
"@types/color": "^3.0.3",
"@types/node": "^16.3.1",
"eslint": "^8.21.0",

View file

@ -23,12 +23,12 @@
"@parcel/transformer-sass": "2.7.0",
"@parcel/transformer-svg-react": "2.7.0",
"@peculiar/webcrypto": "^1.3.3",
"@silverhand/eslint-config": "1.0.0-rc.2",
"@silverhand/eslint-config-react": "1.0.0-rc.2",
"@silverhand/eslint-config": "1.0.0",
"@silverhand/eslint-config-react": "1.0.0",
"@silverhand/essentials": "^1.2.0",
"@silverhand/jest-config": "1.0.0-rc.3",
"@silverhand/ts-config": "1.0.0-rc.2",
"@silverhand/ts-config-react": "1.0.0-rc.2",
"@silverhand/jest-config": "1.0.0",
"@silverhand/ts-config": "1.0.0",
"@silverhand/ts-config-react": "1.0.0",
"@testing-library/react": "^13.3.0",
"@types/color": "^3.0.3",
"@types/jest": "^28.1.6",

View file

@ -5,7 +5,6 @@ import { useTranslation } from 'react-i18next';
import Dropdown, { DropdownItem } from '@/components/Dropdown';
import useSocial from '@/hooks/use-social';
import { ConnectorData } from '@/types';
import { isKeyOf } from '@/utils';
import * as styles from './index.module.scss';

681
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff