feat: use @affine/debug (#1244)

This commit is contained in:
Himself65 2023-03-01 20:13:45 -06:00 committed by GitHub
parent 1abab690af
commit a099ed5f29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 40 additions and 252 deletions

View File

@ -1,3 +1,4 @@
// @ts-check
import path from 'node:path'; import path from 'node:path';
import debugLocal from 'next-debug-local'; import debugLocal from 'next-debug-local';
import preset from './preset.config.mjs'; import preset from './preset.config.mjs';
@ -61,6 +62,7 @@ const nextConfig = {
'@affine/component', '@affine/component',
'@affine/datacenter', '@affine/datacenter',
'@affine/i18n', '@affine/i18n',
'@affine/debug',
'@affine/env', '@affine/env',
], ],
publicRuntimeConfig: { publicRuntimeConfig: {

View File

@ -11,6 +11,7 @@
"dependencies": { "dependencies": {
"@affine/component": "workspace:*", "@affine/component": "workspace:*",
"@affine/datacenter": "workspace:*", "@affine/datacenter": "workspace:*",
"@affine/debug": "workspace:*",
"@affine/env": "workspace:*", "@affine/env": "workspace:*",
"@affine/i18n": "workspace:*", "@affine/i18n": "workspace:*",
"@blocksuite/blocks": "0.4.1-20230220214107-0a354de", "@blocksuite/blocks": "0.4.1-20230220214107-0a354de",

View File

@ -1,5 +1,5 @@
import { Workspace } from '@affine/datacenter'; import { Workspace } from '@affine/datacenter';
import { config } from '@affine/env'; import { config, getEnvironment } from '@affine/env';
import { nanoid } from '@blocksuite/store'; import { nanoid } from '@blocksuite/store';
import { useCallback, useMemo, useSyncExternalStore } from 'react'; import { useCallback, useMemo, useSyncExternalStore } from 'react';
import useSWR from 'swr'; import useSWR from 'swr';
@ -88,6 +88,9 @@ const emptyWorkspaces: RemWorkspace[] = [];
export async function refreshDataCenter(signal?: AbortSignal) { export async function refreshDataCenter(signal?: AbortSignal) {
dataCenter.isLoaded = false; dataCenter.isLoaded = false;
dataCenter.callbacks.forEach(cb => cb()); dataCenter.callbacks.forEach(cb => cb());
if (getEnvironment().isServer) {
return;
}
// fixme(himself65): `prefetchWorkspace` is not used // fixme(himself65): `prefetchWorkspace` is not used
// use `config.enablePlugin = ['affine', 'local']` instead // use `config.enablePlugin = ['affine', 'local']` instead
// if (!config.prefetchWorkspace) { // if (!config.prefetchWorkspace) {

View File

@ -1,3 +1,4 @@
import { DebugLogger } from '@affine/debug';
import { config } from '@affine/env'; import { config } from '@affine/env';
import { assertEquals, nanoid } from '@blocksuite/store'; import { assertEquals, nanoid } from '@blocksuite/store';
import React from 'react'; import React from 'react';
@ -16,6 +17,8 @@ import {
import { createEmptyBlockSuiteWorkspace } from '../../utils'; import { createEmptyBlockSuiteWorkspace } from '../../utils';
import { WorkspacePlugin } from '..'; import { WorkspacePlugin } from '..';
const logger = new DebugLogger('local-plugin');
export const kStoreKey = 'affine-local-workspace'; export const kStoreKey = 'affine-local-workspace';
export const LocalPlugin: WorkspacePlugin<RemWorkspaceFlavour.LOCAL> = { export const LocalPlugin: WorkspacePlugin<RemWorkspaceFlavour.LOCAL> = {
@ -134,7 +137,7 @@ export const LocalPlugin: WorkspacePlugin<RemWorkspaceFlavour.LOCAL> = {
if (signal?.aborted) { if (signal?.aborted) {
return; return;
} }
console.info('no local workspace found, create a new one'); logger.info('no local workspace found, create a new one');
const workspaceId = nanoid(); const workspaceId = nanoid();
const blockSuiteWorkspace = createEmptyBlockSuiteWorkspace(workspaceId); const blockSuiteWorkspace = createEmptyBlockSuiteWorkspace(workspaceId);
blockSuiteWorkspace.meta.setName('Untitled Workspace'); blockSuiteWorkspace.meta.setName('Untitled Workspace');

View File

@ -2,13 +2,11 @@
"name": "@affine/debug", "name": "@affine/debug",
"private": true, "private": true,
"main": "./src/index.ts", "main": "./src/index.ts",
"keywords": [],
"repository": {
"type": "git",
"url": "git+https://github.com/toeverything/AFFiNE.git"
},
"dependencies": { "dependencies": {
"@types/debug": "^4.1.7", "@affine/env": "workspace:*",
"debug": "^4.3.4" "debug": "^4.3.4"
},
"devDependencies": {
"@types/debug": "^4.1.7"
} }
} }

View File

@ -1,11 +1,13 @@
import { getEnvironment } from '@affine/env';
import debug from 'debug'; import debug from 'debug';
type LogLevel = 'debug' | 'info' | 'warn' | 'error'; type LogLevel = 'debug' | 'info' | 'warn' | 'error';
const SESSION_KEY = 'affine:debug'; const env = getEnvironment();
const development = process.env.NODE_ENV === 'development';
if (typeof window !== 'undefined') { const SESSION_KEY = 'affine:debug';
const development = env.isDebug;
if (env.isBrowser) {
// enable debug logs if the URL search string contains `debug` // enable debug logs if the URL search string contains `debug`
// e.g. http://localhost:3000/?debug // e.g. http://localhost:3000/?debug
if (window.location.search.includes('debug')) { if (window.location.search.includes('debug')) {

View File

@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"target": "ESNext",
"sourceMap": true
},
"include": ["./src"],
"exclude": ["node_modules"]
}

View File

@ -1,5 +0,0 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View File

@ -1,24 +0,0 @@
{
"name": "@affine/logger",
"version": "0.3.0",
"description": "",
"main": "./src/index.ts",
"scripts": {
"dev": "next dev",
"build": "tsc --project ./tsconfig.json"
},
"keywords": [],
"repository": {
"type": "git",
"url": "git+https://github.com/toeverything/AFFiNE.git"
},
"dependencies": {
"next": "^13.1.6",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.28",
"typescript": "^4.9.5"
}
}

View File

@ -1,11 +0,0 @@
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
import { Logger } from '../src';
const Page = () => {
return (
<div>
<h1>Track Example</h1>
<Logger />
</div>
);
};

View File

@ -1,9 +0,0 @@
import { useEffect } from 'react';
export const Logger = () => {
useEffect(() => {
console.log('@affine/logger: Render Track');
}, []);
return null;
};

View File

@ -1 +0,0 @@
export { Logger } from './Logger';

View File

@ -1,4 +0,0 @@
{
"extends": "../../tsconfig.json",
"include": ["./src"]
}

View File

@ -144,6 +144,7 @@ importers:
specifiers: specifiers:
'@affine/component': workspace:* '@affine/component': workspace:*
'@affine/datacenter': workspace:* '@affine/datacenter': workspace:*
'@affine/debug': workspace:*
'@affine/env': workspace:* '@affine/env': workspace:*
'@affine/i18n': workspace:* '@affine/i18n': workspace:*
'@blocksuite/blocks': 0.4.1-20230220214107-0a354de '@blocksuite/blocks': 0.4.1-20230220214107-0a354de
@ -186,6 +187,7 @@ importers:
dependencies: dependencies:
'@affine/component': link:../../packages/component '@affine/component': link:../../packages/component
'@affine/datacenter': link:../../packages/data-center '@affine/datacenter': link:../../packages/data-center
'@affine/debug': link:../../packages/debug
'@affine/env': link:../../packages/env '@affine/env': link:../../packages/env
'@affine/i18n': link:../../packages/i18n '@affine/i18n': link:../../packages/i18n
'@blocksuite/blocks': 0.4.1-20230220214107-0a354de_txcevohh7lsyxi5mbohonudlma '@blocksuite/blocks': 0.4.1-20230220214107-0a354de_txcevohh7lsyxi5mbohonudlma
@ -337,11 +339,14 @@ importers:
packages/debug: packages/debug:
specifiers: specifiers:
'@affine/env': workspace:*
'@types/debug': ^4.1.7 '@types/debug': ^4.1.7
debug: ^4.3.4 debug: ^4.3.4
dependencies: dependencies:
'@types/debug': 4.1.7 '@affine/env': link:../env
debug: 4.3.4 debug: 4.3.4
devDependencies:
'@types/debug': 4.1.7
packages/env: packages/env:
specifiers: specifiers:
@ -379,21 +384,6 @@ importers:
ts-node: 10.9.1_ellgaeuoqnti3hful2ny2iugba ts-node: 10.9.1_ellgaeuoqnti3hful2ny2iugba
typescript: 4.9.5 typescript: 4.9.5
packages/logger:
specifiers:
'@types/react': ^18.0.28
next: ^13.1.6
react: ^18.2.0
react-dom: ^18.2.0
typescript: ^4.9.5
dependencies:
next: 13.1.6_biqbaboplfbrettd7655fr4n2y
react: 18.2.0
react-dom: 18.2.0_react@18.2.0
devDependencies:
'@types/react': 18.0.28
typescript: 4.9.5
packages: packages:
/@ampproject/remapping/2.2.0: /@ampproject/remapping/2.2.0:
@ -3537,10 +3527,6 @@ packages:
resolution: {integrity: sha512-6iNixFzCndH+Bl4FetQzOMjxCJqg8fs0LAlZviig1K6mIjOWH2m2oPcHcOg1Ta5VCe7Bx5KG1Hs+NrWDUkBt9A==} resolution: {integrity: sha512-6iNixFzCndH+Bl4FetQzOMjxCJqg8fs0LAlZviig1K6mIjOWH2m2oPcHcOg1Ta5VCe7Bx5KG1Hs+NrWDUkBt9A==}
dev: false dev: false
/@next/env/13.1.6:
resolution: {integrity: sha512-s+W9Fdqh5MFk6ECrbnVmmAOwxKQuhGMT7xXHrkYIBMBcTiOqNWhv5KbJIboKR5STXxNXl32hllnvKaffzFaWQg==}
dev: false
/@next/env/13.2.2: /@next/env/13.2.2:
resolution: {integrity: sha512-sBcFEJS8j2cNQemYy07TKUd8lSWj3/mzFA4GCTr/4T4LfYiw5Ep+PZ06AuFdR3z+jIZt9YqaXwUYi1J4p4yABQ==} resolution: {integrity: sha512-sBcFEJS8j2cNQemYy07TKUd8lSWj3/mzFA4GCTr/4T4LfYiw5Ep+PZ06AuFdR3z+jIZt9YqaXwUYi1J4p4yABQ==}
dev: true dev: true
@ -3564,15 +3550,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-android-arm-eabi/13.1.6:
resolution: {integrity: sha512-F3/6Z8LH/pGlPzR1AcjPFxx35mPqjE5xZcf+IL+KgbW9tMkp7CYi1y7qKrEWU7W4AumxX/8OINnDQWLiwLasLQ==}
engines: {node: '>= 10'}
cpu: [arm]
os: [android]
requiresBuild: true
dev: false
optional: true
/@next/swc-android-arm-eabi/13.2.2: /@next/swc-android-arm-eabi/13.2.2:
resolution: {integrity: sha512-JHTnsNTl9gDQkWqggJFj6rQHK2+9lIMGolOPihfZBQAE48amVsGkYyFHbiuWnhwnYX99fCFWomARDwOtLAhzdQ==} resolution: {integrity: sha512-JHTnsNTl9gDQkWqggJFj6rQHK2+9lIMGolOPihfZBQAE48amVsGkYyFHbiuWnhwnYX99fCFWomARDwOtLAhzdQ==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -3600,15 +3577,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-android-arm64/13.1.6:
resolution: {integrity: sha512-cMwQjnB8vrYkWyK/H0Rf2c2pKIH4RGjpKUDvbjVAit6SbwPDpmaijLio0LWFV3/tOnY6kvzbL62lndVA0mkYpw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [android]
requiresBuild: true
dev: false
optional: true
/@next/swc-android-arm64/13.2.2: /@next/swc-android-arm64/13.2.2:
resolution: {integrity: sha512-j3zfjrojWuejU7bjucwBFviN9hQkQ1HqRVYMp8PDX82LXMc2pV4uZ3e9jQ8qk3OWsA1m+luaBK8o46NvS/Tetg==} resolution: {integrity: sha512-j3zfjrojWuejU7bjucwBFviN9hQkQ1HqRVYMp8PDX82LXMc2pV4uZ3e9jQ8qk3OWsA1m+luaBK8o46NvS/Tetg==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -3636,15 +3604,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-darwin-arm64/13.1.6:
resolution: {integrity: sha512-KKRQH4DDE4kONXCvFMNBZGDb499Hs+xcFAwvj+rfSUssIDrZOlyfJNy55rH5t2Qxed1e4K80KEJgsxKQN1/fyw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
requiresBuild: true
dev: false
optional: true
/@next/swc-darwin-arm64/13.2.2: /@next/swc-darwin-arm64/13.2.2:
resolution: {integrity: sha512-X66dKAq6IBmkirnsWyvncJ9i3kWkE2WrRbXGoFoEPNoyjgtV2qyLyk4ET9JIS0TJ2u01qODML6j4pKeqK8rNLA==} resolution: {integrity: sha512-X66dKAq6IBmkirnsWyvncJ9i3kWkE2WrRbXGoFoEPNoyjgtV2qyLyk4ET9JIS0TJ2u01qODML6j4pKeqK8rNLA==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -3672,15 +3631,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-darwin-x64/13.1.6:
resolution: {integrity: sha512-/uOky5PaZDoaU99ohjtNcDTJ6ks/gZ5ykTQDvNZDjIoCxFe3+t06bxsTPY6tAO6uEAw5f6vVFX5H5KLwhrkZCA==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
requiresBuild: true
dev: false
optional: true
/@next/swc-darwin-x64/13.2.2: /@next/swc-darwin-x64/13.2.2:
resolution: {integrity: sha512-jsJKzVLlCNrG/Ot9Owv8QWUymAyS+Hcf/KQsXOYtL6PgvGqBMJ931SdaBpLOuyRD+sozTIRiAPCDwVgF/62PBQ==} resolution: {integrity: sha512-jsJKzVLlCNrG/Ot9Owv8QWUymAyS+Hcf/KQsXOYtL6PgvGqBMJ931SdaBpLOuyRD+sozTIRiAPCDwVgF/62PBQ==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -3708,15 +3658,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-freebsd-x64/13.1.6:
resolution: {integrity: sha512-qaEALZeV7to6weSXk3Br80wtFQ7cFTpos/q+m9XVRFggu+8Ib895XhMWdJBzew6aaOcMvYR6KQ6JmHA2/eMzWw==}
engines: {node: '>= 10'}
cpu: [x64]
os: [freebsd]
requiresBuild: true
dev: false
optional: true
/@next/swc-freebsd-x64/13.2.2: /@next/swc-freebsd-x64/13.2.2:
resolution: {integrity: sha512-oToMAjhdGWSgSOimKJ9GwPxOqoBIbbVUKoFGP5Imy5UGbbsnyV2jSLGhoi2/dH1Ko5X5d1R1la/X05xNB/p6ag==} resolution: {integrity: sha512-oToMAjhdGWSgSOimKJ9GwPxOqoBIbbVUKoFGP5Imy5UGbbsnyV2jSLGhoi2/dH1Ko5X5d1R1la/X05xNB/p6ag==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -3744,15 +3685,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-linux-arm-gnueabihf/13.1.6:
resolution: {integrity: sha512-OybkbC58A1wJ+JrJSOjGDvZzrVEQA4sprJejGqMwiZyLqhr9Eo8FXF0y6HL+m1CPCpPhXEHz/2xKoYsl16kNqw==}
engines: {node: '>= 10'}
cpu: [arm]
os: [linux]
requiresBuild: true
dev: false
optional: true
/@next/swc-linux-arm-gnueabihf/13.2.2: /@next/swc-linux-arm-gnueabihf/13.2.2:
resolution: {integrity: sha512-DSgXP2kkLt+oM3fRWaa2xPAUmtTnoa+GBfV5Czbgv4htY1BKClobp7Bj909TZUswvxXJtXiW8GrJp2To5lQfmw==} resolution: {integrity: sha512-DSgXP2kkLt+oM3fRWaa2xPAUmtTnoa+GBfV5Czbgv4htY1BKClobp7Bj909TZUswvxXJtXiW8GrJp2To5lQfmw==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -3780,15 +3712,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-linux-arm64-gnu/13.1.6:
resolution: {integrity: sha512-yCH+yDr7/4FDuWv6+GiYrPI9kcTAO3y48UmaIbrKy8ZJpi7RehJe3vIBRUmLrLaNDH3rY1rwoHi471NvR5J5NQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
requiresBuild: true
dev: false
optional: true
/@next/swc-linux-arm64-gnu/13.2.2: /@next/swc-linux-arm64-gnu/13.2.2:
resolution: {integrity: sha512-HR1Nf7kz5NmijCiArJTz4bjJlbWyPA3JQ3SbxnPXDMPUkECBG1p0z6y2N2+oqNouMyOriNR6TSEgh7F2tASdZg==} resolution: {integrity: sha512-HR1Nf7kz5NmijCiArJTz4bjJlbWyPA3JQ3SbxnPXDMPUkECBG1p0z6y2N2+oqNouMyOriNR6TSEgh7F2tASdZg==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -3816,15 +3739,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-linux-arm64-musl/13.1.6:
resolution: {integrity: sha512-ECagB8LGX25P9Mrmlc7Q/TQBb9rGScxHbv/kLqqIWs2fIXy6Y/EiBBiM72NTwuXUFCNrWR4sjUPSooVBJJ3ESQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
requiresBuild: true
dev: false
optional: true
/@next/swc-linux-arm64-musl/13.2.2: /@next/swc-linux-arm64-musl/13.2.2:
resolution: {integrity: sha512-hDf08/yPZisKQ19lMHkVuQUmipmSq9QPzFmNDcV7e4QazTbIRwCC8J605EHedg+RGHS78CUwVhGQoQ2mbQ5y3w==} resolution: {integrity: sha512-hDf08/yPZisKQ19lMHkVuQUmipmSq9QPzFmNDcV7e4QazTbIRwCC8J605EHedg+RGHS78CUwVhGQoQ2mbQ5y3w==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -3852,15 +3766,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-linux-x64-gnu/13.1.6:
resolution: {integrity: sha512-GT5w2mruk90V/I5g6ScuueE7fqj/d8Bui2qxdw6lFxmuTgMeol5rnzAv4uAoVQgClOUO/MULilzlODg9Ib3Y4Q==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
requiresBuild: true
dev: false
optional: true
/@next/swc-linux-x64-gnu/13.2.2: /@next/swc-linux-x64-gnu/13.2.2:
resolution: {integrity: sha512-9QeTU1YVhQXoVUOBXErJoExZR3XTovplMCTwB+RAtHu3oUGGs4KQFY8MoFUOmMA7CAJnKS+h1MD1T9/HDpS9PQ==} resolution: {integrity: sha512-9QeTU1YVhQXoVUOBXErJoExZR3XTovplMCTwB+RAtHu3oUGGs4KQFY8MoFUOmMA7CAJnKS+h1MD1T9/HDpS9PQ==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -3888,15 +3793,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-linux-x64-musl/13.1.6:
resolution: {integrity: sha512-keFD6KvwOPzmat4TCnlnuxJCQepPN+8j3Nw876FtULxo8005Y9Ghcl7ACcR8GoiKoddAq8gxNBrpjoxjQRHeAQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
requiresBuild: true
dev: false
optional: true
/@next/swc-linux-x64-musl/13.2.2: /@next/swc-linux-x64-musl/13.2.2:
resolution: {integrity: sha512-SvyejahQLY79YJFXU27AcoDbmRqdK08t7HAf5LmocLdR5fxIneg7Oim/pwcuS/w8pYqDSAiCiMO0AAxSfO5jZQ==} resolution: {integrity: sha512-SvyejahQLY79YJFXU27AcoDbmRqdK08t7HAf5LmocLdR5fxIneg7Oim/pwcuS/w8pYqDSAiCiMO0AAxSfO5jZQ==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -3924,15 +3820,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-win32-arm64-msvc/13.1.6:
resolution: {integrity: sha512-OwertslIiGQluFvHyRDzBCIB07qJjqabAmINlXUYt7/sY7Q7QPE8xVi5beBxX/rxTGPIbtyIe3faBE6Z2KywhQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
requiresBuild: true
dev: false
optional: true
/@next/swc-win32-arm64-msvc/13.2.2: /@next/swc-win32-arm64-msvc/13.2.2:
resolution: {integrity: sha512-Av46kUBp1qtJdk/HrIHZMIARE+jcMSJLHcrs/MkbHR1p4iEXf3JkZRrdQDUKZaz/VHDYc7Qw+vUv7zmgPZJbmw==} resolution: {integrity: sha512-Av46kUBp1qtJdk/HrIHZMIARE+jcMSJLHcrs/MkbHR1p4iEXf3JkZRrdQDUKZaz/VHDYc7Qw+vUv7zmgPZJbmw==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -3960,15 +3847,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-win32-ia32-msvc/13.1.6:
resolution: {integrity: sha512-g8zowiuP8FxUR9zslPmlju7qYbs2XBtTLVSxVikPtUDQedhcls39uKYLvOOd1JZg0ehyhopobRoH1q+MHlIN/w==}
engines: {node: '>= 10'}
cpu: [ia32]
os: [win32]
requiresBuild: true
dev: false
optional: true
/@next/swc-win32-ia32-msvc/13.2.2: /@next/swc-win32-ia32-msvc/13.2.2:
resolution: {integrity: sha512-6HvAJY7yYfU+Ast3GPM8O+BsLGAdhZV0qUwHerJo5+Yzzx0VXW+OZTJ9O6RU01HBiMiqdz7SF3Or4Vca6WZKkQ==} resolution: {integrity: sha512-6HvAJY7yYfU+Ast3GPM8O+BsLGAdhZV0qUwHerJo5+Yzzx0VXW+OZTJ9O6RU01HBiMiqdz7SF3Or4Vca6WZKkQ==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -3996,15 +3874,6 @@ packages:
dev: false dev: false
optional: true optional: true
/@next/swc-win32-x64-msvc/13.1.6:
resolution: {integrity: sha512-Ls2OL9hi3YlJKGNdKv8k3X/lLgc3VmLG3a/DeTkAd+lAituJp8ZHmRmm9f9SL84fT3CotlzcgbdaCDfFwFA6bA==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
requiresBuild: true
dev: false
optional: true
/@next/swc-win32-x64-msvc/13.2.2: /@next/swc-win32-x64-msvc/13.2.2:
resolution: {integrity: sha512-7oNoiepUMf43+/4kUdpeGGkEBd3bOQwzo4O+bq/jslHb1IrQ7b8ZF1ODQyrDd661um6q5D+0sOtyRZJpo8e1jQ==} resolution: {integrity: sha512-7oNoiepUMf43+/4kUdpeGGkEBd3bOQwzo4O+bq/jslHb1IrQ7b8ZF1ODQyrDd661um6q5D+0sOtyRZJpo8e1jQ==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@ -5555,7 +5424,7 @@ packages:
resolution: {integrity: sha512-9AonUzyTjXXhEOa0DnqpzZi6VHlqKMswga9EXjpXnnqxwLtdvPPtlO8evrI5D9S6asFRCQ6v+wpiUKbw+vKqyg==} resolution: {integrity: sha512-9AonUzyTjXXhEOa0DnqpzZi6VHlqKMswga9EXjpXnnqxwLtdvPPtlO8evrI5D9S6asFRCQ6v+wpiUKbw+vKqyg==}
dependencies: dependencies:
'@types/ms': 0.7.31 '@types/ms': 0.7.31
dev: false dev: true
/@types/detect-port/1.3.2: /@types/detect-port/1.3.2:
resolution: {integrity: sha512-xxgAGA2SAU4111QefXPSp5eGbDm/hW6zhvYl9IeEPZEry9F4d66QAHm5qpUXjb6IsevZV/7emAEx5MhP6O192g==} resolution: {integrity: sha512-xxgAGA2SAU4111QefXPSp5eGbDm/hW6zhvYl9IeEPZEry9F4d66QAHm5qpUXjb6IsevZV/7emAEx5MhP6O192g==}
@ -5708,7 +5577,7 @@ packages:
/@types/ms/0.7.31: /@types/ms/0.7.31:
resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==} resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==}
dev: false dev: true
/@types/node-fetch/2.6.2: /@types/node-fetch/2.6.2:
resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==} resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==}
@ -10914,50 +10783,6 @@ packages:
- babel-plugin-macros - babel-plugin-macros
dev: false dev: false
/next/13.1.6_biqbaboplfbrettd7655fr4n2y:
resolution: {integrity: sha512-hHlbhKPj9pW+Cymvfzc15lvhaOZ54l+8sXDXJWm3OBNBzgrVj6hwGPmqqsXg40xO1Leq+kXpllzRPuncpC0Phw==}
engines: {node: '>=14.6.0'}
hasBin: true
peerDependencies:
fibers: '>= 3.1.0'
node-sass: ^6.0.0 || ^7.0.0
react: ^18.2.0
react-dom: ^18.2.0
sass: ^1.3.0
peerDependenciesMeta:
fibers:
optional: true
node-sass:
optional: true
sass:
optional: true
dependencies:
'@next/env': 13.1.6
'@swc/helpers': 0.4.14
caniuse-lite: 1.0.30001419
postcss: 8.4.14
react: 18.2.0
react-dom: 18.2.0_react@18.2.0
styled-jsx: 5.1.1_react@18.2.0
optionalDependencies:
'@next/swc-android-arm-eabi': 13.1.6
'@next/swc-android-arm64': 13.1.6
'@next/swc-darwin-arm64': 13.1.6
'@next/swc-darwin-x64': 13.1.6
'@next/swc-freebsd-x64': 13.1.6
'@next/swc-linux-arm-gnueabihf': 13.1.6
'@next/swc-linux-arm64-gnu': 13.1.6
'@next/swc-linux-arm64-musl': 13.1.6
'@next/swc-linux-x64-gnu': 13.1.6
'@next/swc-linux-x64-musl': 13.1.6
'@next/swc-win32-arm64-msvc': 13.1.6
'@next/swc-win32-ia32-msvc': 13.1.6
'@next/swc-win32-x64-msvc': 13.1.6
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
dev: false
/next/13.2.2_biqbaboplfbrettd7655fr4n2y: /next/13.2.2_biqbaboplfbrettd7655fr4n2y:
resolution: {integrity: sha512-dDKfGBqSxqmqx5WN9tDFg0uGUkD/LGUxR29tpe8AEmo2SwfbPWf04qyvDcKmpjt2fCzP4132BvFRZFlg+11kGw==} resolution: {integrity: sha512-dDKfGBqSxqmqx5WN9tDFg0uGUkD/LGUxR29tpe8AEmo2SwfbPWf04qyvDcKmpjt2fCzP4132BvFRZFlg+11kGw==}
engines: {node: '>=14.6.0'} engines: {node: '>=14.6.0'}

View File

@ -20,10 +20,8 @@
"@affine/component": ["./packages/component/src/index"], "@affine/component": ["./packages/component/src/index"],
"@affine/datacenter": ["./packages/datacenter/src"], "@affine/datacenter": ["./packages/datacenter/src"],
"@affine/i18n": ["./packages/i18n/src"], "@affine/i18n": ["./packages/i18n/src"],
"@affine/logger": ["./packages/logger/src"],
"@affine/debug": ["./packages/debug"], "@affine/debug": ["./packages/debug"],
"@affine/env": ["./packages/env"], "@affine/env": ["./packages/env"]
"@toeverything/pathfinder-logger": ["./packages/logger"]
} }
}, },
"references": [ "references": [