🥚🥚🥚🥚 Born to build better enterprise frameworks and apps with Node.js & Koa. https://307.run/eggcode
114 matches across 9 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | vitest.config.ts | 41 | // FIXME: TypeError: Cannot read properties of undefined (reading 'mode') |
| LOW | tools/egg-bundler/test/no-filesystem-scan.test.ts | 1 | import fs from 'node:fs/promises'; |
| LOW | tools/egg-bundler/test/deterministic.test.ts | 21 | // |
| LOW | plugins/watcher/src/lib/event-sources/development.ts | 81 | // path: '/Users/mk2/git/changing/test/fixtures/foo.js', |
| LOW | plugins/security/test/benchmark/set_header.js | 61 | console.log('\n setHeader() Benchmark\n node version: %s, date: %s\n Starting...', process.version, Date()); |
| LOW | plugins/security/test/benchmark/cidr_subnet.js | 41 | benchmarks.log(); |
| LOW | plugins/redis/src/config/config.default.ts | 81 | export default { |
| LOW | plugins/redis/src/config/config.default.ts | 101 | // port: 'port', |
| LOW | plugins/redis/src/config/config.default.ts | 121 | // db: 'db', |
| LOW | plugins/development/test/development-ts.test.ts | 21 | // for debounce |
| LOW | plugins/mock/test/inject_ctx.test.ts | 81 | .expect('stdout', /"before each" hook for "should not print"/) |
| LOW | plugins/mock/test/index.test-skip.ts | 1 | // import mm from '../index'; |
| LOW | plugins/mock/test/index.test-skip.ts | 21 | |
| LOW | plugins/mock/test/index.test-skip.ts | 41 | |
| LOW | plugins/mock/test/index.test-skip.ts | 61 | // process.exit(1); |
| LOW | plugins/mock/test/mock_agent_httpclient.test.ts | 21 | agent = (app as any).agent; |
| LOW | plugins/mock/test/mock_agent_httpclient.test.ts | 41 | // agent.httpclient.once('response', function (result: any) { |
| LOW | plugins/mock/test/mock_agent_httpclient.test.ts | 61 | // // assert.deepEqual(result.req.options, { |
| LOW | plugins/mock/test/mock_agent_httpclient.test.ts | 81 | |
| LOW | plugins/mock/test/mock_agent_httpclient.test.ts | 101 | // done(); |
| LOW | plugins/mock/test/mock_agent_httpclient.test.ts | 121 | // agent.httpclient.once('response', function (result: any) { |
| LOW | plugins/mock/src/typings/index.d.ts | 1 | // make sure to import egg typings and let typescript know about it |
| LOW | plugins/mock/src/lib/utils.ts | 41 | return options; |
| LOW | plugins/mock/src/lib/utils.ts | 61 | // if (!src) { |
| LOW | plugins/mock/src/lib/utils.ts | 81 | // return dest; |
| LOW | plugins/mock/src/lib/prerequire.ts | 1 | // const debug = require('util').debuglog('egg-mock/prerequire'); |
| LOW | plugins/mock/src/lib/prerequire.ts | 21 | // require(filepath); |
| LOW | tegg/README.md | 461 | |
| LOW | tegg/standalone/standalone/src/ModuleConfig.ts | 1 | // import 'egg'; |
| LOW | tegg/plugin/tegg/test/app/extend/context.test.ts | 101 | }); |
| LOW | tegg/plugin/orm/src/lib/DataSourceManager.ts | 1 | // exports.orm = { |
| LOW | packages/cluster/test/options.test.ts | 261 | // baseDir, |
| LOW | packages/cluster/test/master/messenger.test.ts | 61 | await app.ready(); |
| LOW | packages/cluster/test/master/messenger.test.ts | 81 | // 'ignore', |
| LOW | packages/egg/test/typescript.test.ts | 21 | // .expect('code', 0) |
| LOW | packages/egg/test/typescript.test.ts | 61 | describe('type check', () => { |
| LOW | packages/egg/test/typescript.test.ts | 81 | // await coffee.fork( |
| LOW | packages/egg/test/app/extend/application.test.ts | 181 | }); |
| LOW | packages/egg/test/app/extend/context.test.ts | 301 | // await scheduler.wait(1200); |
| LOW | packages/egg/test/app/extend/context.test.ts | 321 | it('should use custom task name first', async () => { |
| LOW | packages/egg/src/lib/application.ts | 121 | // |
| LOW | packages/core/test/egg.test.ts | 241 | // app.once('ready_timeout', id => { |
| LOW | packages/core/test/egg.test.ts | 281 | // done = pending(2, done); |
| LOW | packages/core/test/egg.test.ts | 301 | // done, |
| LOW | packages/core/test/egg.test.ts | 321 | await promise; |
| LOW | packages/core/test/egg.test.ts | 341 | // }); |
| LOW | packages/core/test/egg.test.ts | 441 | |
| LOW | packages/core/test/egg.test.ts | 461 | // return wrapped(true).then(res => assert(res === true)); |
| LOW | packages/core/test/egg.test.ts | 481 | // const arr = [ fn(1), fn(2) ]; |
| LOW | packages/core/src/loader/egg_loader.ts | 861 | // ".": "./src/index.ts", |
| LOW | packages/supertest/test/supertest.test.ts | 1221 | }); |
| LOW | packages/supertest/test/supertest.test.ts | 1241 | // expect(res).toBeUndefined(); |
| LOW | packages/utils/test/import.test.ts | 201 | const obj = await importModule(getFilepath('ts-module/extend'), { |
| LOW | packages/utils/test/import.test.ts | 221 | assert.equal(obj.one, 1); |
| LOW | packages/utils/test/import.test.ts | 241 | assert.equal(obj.one, 1); |
| LOW | packages/utils/test/import.test.ts | 261 | obj = await importModule(getFilepath('cjs/exports.cjs')); |
| LOW | packages/utils/src/import.ts | 481 | } |
| LOW | packages/utils/src/import.ts | 501 | // [Symbol(Symbol.toStringTag)]: 'Module' |
| LOW | packages/koa/test/request/href.test.ts | 21 | }; |
| LOW | packages/koa/test/request/href.test.ts | 41 | // }, |
| 3 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/egg-bin/src/commands/bundle.ts | 38 | async function getBundleFrameworkSpecifier(baseDir: string, framework?: string): Promise<string> { |
| LOW | tools/egg-bundler/test/ManifestLoader.test.ts | 129 | async function createInstalledFrameworkFixture( |
| LOW | tools/egg-bundler/test/deterministic.test.ts | 93 | function makeDeterministicMockBuild(outputDir: string): BuildFunc { |
| LOW | tools/egg-bundler/test/deterministic.test.ts | 127 | function normalizeWorkerAppBaseDir(source: string, baseDir: string): string { |
| LOW | tools/egg-bundler/src/lib/frameworkSpecifier.ts | 6 | function isPathLikeFrameworkSpecifier(framework: string): boolean { |
| LOW | tools/egg-bundler/src/lib/frameworkSpecifier.ts | 23 | export function assertFrameworkPackageSpecifier(framework: string): void { |
| LOW | tools/egg-bundler/src/lib/Bundler.ts | 89 | function validateModulePackAliasSpecifier(filepath: string, specifier: string): void { |
| LOW | tools/egg-bundler/src/lib/Bundler.ts | 114 | function normalizeRuntimeAssetRoot(filepath: string, root: string): string { |
| LOW | tools/egg-bundler/src/lib/Bundler.ts | 118 | function normalizeRuntimeAssetRoots(filepath: string, roots: readonly string[]): readonly string[] { |
| LOW | tools/egg-bundler/src/lib/Bundler.ts | 122 | function normalizeRuntimeAssetForceCopyDir(filepath: string, dir: string): string { |
| LOW | tools/egg-bundler/src/lib/Bundler.ts | 126 | function normalizeRuntimeAssetForceCopyDirs(filepath: string, dirs: readonly string[]): readonly string[] { |
| LOW | tools/egg-bundler/src/lib/Bundler.ts | 152 | function parseModuleBundlePackConfig( |
| LOW | tools/egg-bundler/src/lib/Bundler.ts | 189 | function parseModuleBundleRuntimeAssetsConfig( |
| LOW | tools/egg-bundler/src/lib/Bundler.ts | 296 | export function sanitizeBundleOutputRelativePath(relativeName: string): string { |
| LOW | …ins/development/src/app/middleware/egg_loader_trace.ts | 10 | export default function createEggLoaderTraceMiddleware(_options: unknown, app: Application): MiddlewareFunc { |
| LOW | …/core/controller-decorator/src/decorator/Middleware.ts | 19 | function isAopTypeOrMiddlewareType( |
| LOW | …/core/controller-decorator/src/decorator/Middleware.ts | 33 | function functionTypeClassMiddleware(constructor: EggProtoImplClass) { |
| LOW | …/core/controller-decorator/src/decorator/Middleware.ts | 45 | function functionTypeMethodMiddleware(target: any, propertyKey: PropertyKey) { |
| LOW | …ecorator/src/qualifier/ChatCheckpointSaverQualifier.ts | 6 | export function ChatCheckpointSaverQualifier( |
| LOW | tegg/plugin/schedule/src/lib/EggScheduleAdapter.ts | 9 | export function eggScheduleAdapterFactory( |
| LOW | scripts/ci-test-benchmark/cli.js | 90 | function normalizePackageManagerArgv(argv) { |
| LOW | packages/core/src/loader/egg_loader.ts | 1952 | function controllerMethodToMiddleware(Controller: typeof BaseContextClass, key: string) { |
| LOW | packages/core/src/loader/egg_loader.ts | 1953 | return function classControllerMiddleware(this: Context, ...args: unknown[]) { |
| LOW | packages/core/src/loader/egg_loader.ts | 1991 | function objectFunctionToMiddleware(func: Fun) { |
| LOW | packages/core/src/loader/egg_loader.ts | 1992 | async function objectControllerMiddleware(this: Context, ...args: unknown[]) { |
| LOW | packages/core/src/loader/loader_fs.ts | 292 | function normalizeAlternationGroups(pattern: string): string { |
| LOW | packages/core/src/loader/file_loader.ts | 66 | function getDefaultFileLoaderMatch(): string[] { |
| LOW | packages/logger/src/utils.ts | 97 | export function defaultContextPaddingMessage(ctx: Record<string, unknown>): string { |
| LOW | packages/supertest/test/supertest.test.ts | 20 | function shouldIncludeStackWithThisFile(err: Error) { |
| LOW | packages/utils/src/import.ts | 150 | function tryToResolveByDirnameFromPackage(dirname: string, pkg: any): string | undefined { |
| LOW | packages/utils/src/import.ts | 275 | function tryToResolveFromAbsoluteFile(filepath: string): string | undefined { |
| LOW | packages/utils/src/import.ts | 426 | function normalizeBundleModulePath(filepath: string): string { |
| LOW | packages/skills/egg-core/references/proto.md | 85 | export class RequestHandler { |
| LOW | packages/cookies/src/cookies.ts | 287 | function parseChromiumAndMajorVersion(userAgent: string): ParseChromiumResult { |
| LOW | packages/cookies/src/cookies.ts | 327 | function ignoreCookiesByNameAndPath(cookies: string[], name: string, path: string | null | undefined) { |
| LOW | packages/koa/src/request.ts | 643 | function splitCommaSeparatedValues(value: string, limit?: number): string[] { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | packages/egg/test/lib/core/logger.test.ts | 120 | // app.config.logger.buffer.should.equal(false); |
| CRITICAL | packages/egg/test/lib/core/logger.test.ts | 144 | // app.config.logger.buffer.should.equal(true); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tegg/core/agent-runtime/src/OSSAgentStore.ts | 68 | // ── Key helpers ────────────────────────────────────────────────────── |
| MEDIUM | tegg/core/agent-runtime/src/OSSAgentStore.ts | 85 | // ── Lifecycle ──────────────────────────────────────────────────────── |
| MEDIUM | tegg/core/agent-runtime/src/OSSAgentStore.ts | 95 | // ── Thread operations ──────────────────────────────────────────────── |
| MEDIUM | tegg/core/agent-runtime/src/OSSAgentStore.ts | 162 | // ── Run operations ─────────────────────────────────────────────────── |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …evelopment/src/app/middleware/loader_trace_template.ts | 20 | // Step 2: 载入数据源 |
| LOW | tegg/core/loader/test/LoaderFactoryManifest.test.ts | 65 | // Step 1: normal load |
| LOW | tegg/core/loader/test/LoaderFactoryManifest.test.ts | 68 | // Step 2: build manifest |
| LOW | tegg/core/loader/test/LoaderFactoryManifest.test.ts | 77 | // Step 3: reload with manifest |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | site/docs/zh-CN/core/deployment.md | 170 | secret: '<YOUR_SECRET>', |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/scripts/src/commands/start.ts | 151 | // it makes env big but more robust |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .github/workflows/release.yml | 105 | # Create the tag locally if it doesn't exist |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/supertest/README.md | 158 | expect(response.body.email).toEqual('foo@bar.com'); |
| LOW | packages/supertest/README.md | 172 | expect(response.body.email).toEqual('foo@bar.com'); |