repoburg 1.3.87 → 1.3.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/.env +20 -0
- package/backend/.repoburg/hooks/README.md +53 -0
- package/backend/.repoburg/hooks/eslint-hook.ts +46 -0
- package/backend/.repoburg/hooks/example-hook.ts +62 -0
- package/backend/dist/src/ai-actions/ai-actions.controller.js +67 -0
- package/backend/dist/src/ai-actions/ai-actions.controller.js.map +1 -1
- package/backend/dist/src/app.module.d.ts +3 -1
- package/backend/dist/src/app.module.js +17 -1
- package/backend/dist/src/app.module.js.map +1 -1
- package/backend/dist/src/application-state/application-state.controller.js +123 -0
- package/backend/dist/src/application-state/application-state.controller.js.map +1 -1
- package/backend/dist/src/application-state/application-state.service.d.ts +3 -0
- package/backend/dist/src/application-state/application-state.service.js +18 -1
- package/backend/dist/src/application-state/application-state.service.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-alibaba-config.dto.js +2 -0
- package/backend/dist/src/application-state/dto/set-alibaba-config.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-auto-context-fetch-enabled.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-auto-context-fetch-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-auto-send-to-ai-studio-enabled.dto.js +2 -0
- package/backend/dist/src/application-state/dto/set-auto-send-to-ai-studio-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-context-token-limit.dto.js +6 -0
- package/backend/dist/src/application-state/dto/set-context-token-limit.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-execution-strategy.dto.js +6 -0
- package/backend/dist/src/application-state/dto/set-execution-strategy.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-followup-token-limit.dto.js +5 -0
- package/backend/dist/src/application-state/dto/set-followup-token-limit.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-history-compression-enabled.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-history-compression-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-llm-retry-enabled.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-llm-retry-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-llm-retry-max-attempts.dto.js +6 -0
- package/backend/dist/src/application-state/dto/set-llm-retry-max-attempts.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-manual-llm-enabled.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-manual-llm-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-openrouter-config.dto.js +2 -0
- package/backend/dist/src/application-state/dto/set-openrouter-config.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-streaming-enabled.dto.js +2 -0
- package/backend/dist/src/application-state/dto/set-streaming-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-syntax-validation-enabled.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-syntax-validation-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-theme.dto.js +6 -0
- package/backend/dist/src/application-state/dto/set-theme.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-tools-enabled.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-tools-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-websocket-enabled.dto.js +2 -0
- package/backend/dist/src/application-state/dto/set-websocket-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-yolo-mode-message.dto.js +5 -0
- package/backend/dist/src/application-state/dto/set-yolo-mode-message.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-yolo-mode.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-yolo-mode.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-zai-config.dto.js +2 -0
- package/backend/dist/src/application-state/dto/set-zai-config.dto.js.map +1 -1
- package/backend/dist/src/common/cache/etag-cache.service.d.ts +18 -0
- package/backend/dist/src/common/cache/etag-cache.service.js +98 -0
- package/backend/dist/src/common/cache/etag-cache.service.js.map +1 -0
- package/backend/dist/src/common/common.module.d.ts +2 -0
- package/backend/dist/src/common/common.module.js +22 -0
- package/backend/dist/src/common/common.module.js.map +1 -0
- package/backend/dist/src/common/interceptors/etag-cache.interceptor.d.ts +14 -0
- package/backend/dist/src/common/interceptors/etag-cache.interceptor.js +69 -0
- package/backend/dist/src/common/interceptors/etag-cache.interceptor.js.map +1 -0
- package/backend/dist/src/common/middleware/cache.middleware.d.ts +8 -0
- package/backend/dist/src/common/middleware/cache.middleware.js +44 -0
- package/backend/dist/src/common/middleware/cache.middleware.js.map +1 -0
- package/backend/dist/src/context-snippets/context-snippets.controller.js +38 -0
- package/backend/dist/src/context-snippets/context-snippets.controller.js.map +1 -1
- package/backend/dist/src/context-templates/context-templates.controller.js +104 -0
- package/backend/dist/src/context-templates/context-templates.controller.js.map +1 -1
- package/backend/dist/src/context-templates/dto/context-template.dto.d.ts +1 -1
- package/backend/dist/src/context-templates/dto/context-template.dto.js +44 -1
- package/backend/dist/src/context-templates/dto/context-template.dto.js.map +1 -1
- package/backend/dist/src/core-entities/ai-action.entity.js +73 -0
- package/backend/dist/src/core-entities/ai-action.entity.js.map +1 -1
- package/backend/dist/src/core-entities/base.entity.js +18 -0
- package/backend/dist/src/core-entities/base.entity.js.map +1 -1
- package/backend/dist/src/core-entities/context-snippet.entity.js +12 -0
- package/backend/dist/src/core-entities/context-snippet.entity.js.map +1 -1
- package/backend/dist/src/core-entities/context-template.entity.d.ts +2 -4
- package/backend/dist/src/core-entities/context-template.entity.js +50 -7
- package/backend/dist/src/core-entities/context-template.entity.js.map +1 -1
- package/backend/dist/src/core-entities/custom-snippet.entity.js +16 -0
- package/backend/dist/src/core-entities/custom-snippet.entity.js.map +1 -1
- package/backend/dist/src/core-entities/custom-variable.entity.js +24 -0
- package/backend/dist/src/core-entities/custom-variable.entity.js.map +1 -1
- package/backend/dist/src/core-entities/enums.d.ts +64 -0
- package/backend/dist/src/core-entities/enums.js +77 -0
- package/backend/dist/src/core-entities/enums.js.map +1 -0
- package/backend/dist/src/core-entities/execution-log.entity.js +15 -0
- package/backend/dist/src/core-entities/execution-log.entity.js.map +1 -1
- package/backend/dist/src/core-entities/index.d.ts +1 -2
- package/backend/dist/src/core-entities/index.js +1 -2
- package/backend/dist/src/core-entities/index.js.map +1 -1
- package/backend/dist/src/core-entities/llm-call-log.entity.js +43 -0
- package/backend/dist/src/core-entities/llm-call-log.entity.js.map +1 -1
- package/backend/dist/src/core-entities/mcp-config.entity.js +27 -0
- package/backend/dist/src/core-entities/mcp-config.entity.js.map +1 -1
- package/backend/dist/src/core-entities/mcp-tool.entity.js +26 -0
- package/backend/dist/src/core-entities/mcp-tool.entity.js.map +1 -1
- package/backend/dist/src/core-entities/project.entity.js +13 -0
- package/backend/dist/src/core-entities/project.entity.js.map +1 -1
- package/backend/dist/src/core-entities/session-input.entity.js +95 -0
- package/backend/dist/src/core-entities/session-input.entity.js.map +1 -1
- package/backend/dist/src/core-entities/session.entity.d.ts +1 -1
- package/backend/dist/src/core-entities/session.entity.js +96 -1
- package/backend/dist/src/core-entities/session.entity.js.map +1 -1
- package/backend/dist/src/core-entities/system-prompt.entity.js +29 -0
- package/backend/dist/src/core-entities/system-prompt.entity.js.map +1 -1
- package/backend/dist/src/core-entities/tool-hook.entity.js +21 -0
- package/backend/dist/src/core-entities/tool-hook.entity.js.map +1 -1
- package/backend/dist/src/custom-snippets/custom-snippets.controller.js +48 -0
- package/backend/dist/src/custom-snippets/custom-snippets.controller.js.map +1 -1
- package/backend/dist/src/custom-variables/custom-variables.controller.js +46 -0
- package/backend/dist/src/custom-variables/custom-variables.controller.js.map +1 -1
- package/backend/dist/src/global-config/global-config.controller.js +12 -0
- package/backend/dist/src/global-config/global-config.controller.js.map +1 -1
- package/backend/dist/src/global-config/global-config.service.d.ts +1 -0
- package/backend/dist/src/global-config/global-config.service.js.map +1 -1
- package/backend/dist/src/interactive-chat/streaming.controller.js +38 -0
- package/backend/dist/src/interactive-chat/streaming.controller.js.map +1 -1
- package/backend/dist/src/llm-call-logs/llm-call-logs.controller.js +96 -0
- package/backend/dist/src/llm-call-logs/llm-call-logs.controller.js.map +1 -1
- package/backend/dist/src/llm-provider/llm-provider.controller.js +18 -0
- package/backend/dist/src/llm-provider/llm-provider.controller.js.map +1 -1
- package/backend/dist/src/llm-provider/zai-llm.provider.js +1 -1
- package/backend/dist/src/llm-provider/zai-llm.provider.js.map +1 -1
- package/backend/dist/src/llm-responses/dto/submit-llm-response.dto.js +45 -0
- package/backend/dist/src/llm-responses/dto/submit-llm-response.dto.js.map +1 -1
- package/backend/dist/src/llm-responses/dto/sync-conversation.dto.js +24 -0
- package/backend/dist/src/llm-responses/dto/sync-conversation.dto.js.map +1 -1
- package/backend/dist/src/llm-responses/llm-responses.controller.js +32 -0
- package/backend/dist/src/llm-responses/llm-responses.controller.js.map +1 -1
- package/backend/dist/src/main.js +9 -0
- package/backend/dist/src/main.js.map +1 -1
- package/backend/dist/src/mcp/dto/batch-update-mcp-tools.dto.js +8 -0
- package/backend/dist/src/mcp/dto/batch-update-mcp-tools.dto.js.map +1 -1
- package/backend/dist/src/mcp/dto/create-mcp-config.dto.js +5 -0
- package/backend/dist/src/mcp/dto/create-mcp-config.dto.js.map +1 -1
- package/backend/dist/src/mcp/dto/update-mcp-config.dto.js +2 -0
- package/backend/dist/src/mcp/dto/update-mcp-config.dto.js.map +1 -1
- package/backend/dist/src/mcp/mcp.controller.js +21 -0
- package/backend/dist/src/mcp/mcp.controller.js.map +1 -1
- package/backend/dist/src/projects/dto/project.dto.js +14 -0
- package/backend/dist/src/projects/dto/project.dto.js.map +1 -1
- package/backend/dist/src/projects/projects.controller.js +31 -0
- package/backend/dist/src/projects/projects.controller.js.map +1 -1
- package/backend/dist/src/session-inputs/dto/session-input.dto.d.ts +12 -1
- package/backend/dist/src/session-inputs/dto/session-input.dto.js +103 -1
- package/backend/dist/src/session-inputs/dto/session-input.dto.js.map +1 -1
- package/backend/dist/src/session-inputs/session-input.subscriber.js.map +1 -1
- package/backend/dist/src/session-inputs/session-inputs.controller.d.ts +2 -1
- package/backend/dist/src/session-inputs/session-inputs.controller.js +84 -0
- package/backend/dist/src/session-inputs/session-inputs.controller.js.map +1 -1
- package/backend/dist/src/session-inputs/session-inputs.module.js +1 -0
- package/backend/dist/src/session-inputs/session-inputs.module.js.map +1 -1
- package/backend/dist/src/session-inputs/session-inputs.service.d.ts +7 -3
- package/backend/dist/src/session-inputs/session-inputs.service.js +51 -4
- package/backend/dist/src/session-inputs/session-inputs.service.js.map +1 -1
- package/backend/dist/src/sessions/dto/session.dto.js +91 -0
- package/backend/dist/src/sessions/dto/session.dto.js.map +1 -1
- package/backend/dist/src/sessions/sessions.controller.d.ts +1 -1
- package/backend/dist/src/sessions/sessions.controller.js +123 -3
- package/backend/dist/src/sessions/sessions.controller.js.map +1 -1
- package/backend/dist/src/sessions/sessions.service.d.ts +2 -1
- package/backend/dist/src/sessions/sessions.service.js +47 -18
- package/backend/dist/src/sessions/sessions.service.js.map +1 -1
- package/backend/dist/src/sub-agents/dto/create-sub-agent.dto.js +26 -0
- package/backend/dist/src/sub-agents/dto/create-sub-agent.dto.js.map +1 -1
- package/backend/dist/src/sub-agents/dto/update-sub-agent.dto.js +22 -0
- package/backend/dist/src/sub-agents/dto/update-sub-agent.dto.js.map +1 -1
- package/backend/dist/src/sub-agents/sub-agent-run.entity.d.ts +2 -7
- package/backend/dist/src/sub-agents/sub-agent-run.entity.js +63 -9
- package/backend/dist/src/sub-agents/sub-agent-run.entity.js.map +1 -1
- package/backend/dist/src/sub-agents/sub-agent-runs.controller.js +63 -0
- package/backend/dist/src/sub-agents/sub-agent-runs.controller.js.map +1 -1
- package/backend/dist/src/sub-agents/sub-agent.entity.js +47 -0
- package/backend/dist/src/sub-agents/sub-agent.entity.js.map +1 -1
- package/backend/dist/src/sub-agents/sub-agents.controller.js +25 -0
- package/backend/dist/src/sub-agents/sub-agents.controller.js.map +1 -1
- package/backend/dist/src/system-prompts/dto/set-enabled-tools.dto.js +9 -0
- package/backend/dist/src/system-prompts/dto/set-enabled-tools.dto.js.map +1 -1
- package/backend/dist/src/system-prompts/dto/system-prompt.dto.js +43 -0
- package/backend/dist/src/system-prompts/dto/system-prompt.dto.js.map +1 -1
- package/backend/dist/src/system-prompts/dto/toggle-tool.dto.js +5 -0
- package/backend/dist/src/system-prompts/dto/toggle-tool.dto.js.map +1 -1
- package/backend/dist/src/system-prompts/system-prompts.controller.js +80 -0
- package/backend/dist/src/system-prompts/system-prompts.controller.js.map +1 -1
- package/backend/dist/src/tool-hooks/dto/create-tool-hook.dto.js +14 -0
- package/backend/dist/src/tool-hooks/dto/create-tool-hook.dto.js.map +1 -1
- package/backend/dist/src/tool-hooks/dto/update-tool-hook.dto.js +11 -0
- package/backend/dist/src/tool-hooks/dto/update-tool-hook.dto.js.map +1 -1
- package/backend/dist/src/tool-hooks/tool-hooks.controller.js +52 -0
- package/backend/dist/src/tool-hooks/tool-hooks.controller.js.map +1 -1
- package/backend/dist/src/visual-editor/visual-editor.controller.js +15 -0
- package/backend/dist/src/visual-editor/visual-editor.controller.js.map +1 -1
- package/backend/dist/src/workspace/workspace.controller.js +41 -0
- package/backend/dist/src/workspace/workspace.controller.js.map +1 -1
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/{daemon/node_modules/undici-types → backend/node_modules/@eslint/eslintrc}/LICENSE +5 -7
- package/backend/node_modules/@eslint/eslintrc/README.md +115 -0
- package/backend/node_modules/@eslint/eslintrc/conf/config-schema.js +79 -0
- package/backend/node_modules/@eslint/eslintrc/conf/environments.js +215 -0
- package/backend/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +1104 -0
- package/backend/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -0
- package/backend/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +4344 -0
- package/backend/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -0
- package/backend/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +532 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +523 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +124 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +145 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +238 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/index.js +19 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +225 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array-factory.js +1151 -0
- package/backend/node_modules/@eslint/eslintrc/lib/flat-compat.js +318 -0
- package/backend/node_modules/@eslint/eslintrc/lib/index-universal.js +29 -0
- package/backend/node_modules/@eslint/eslintrc/lib/index.js +56 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/ajv.js +191 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +135 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +325 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +63 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/naming.js +96 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +42 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/types.js +149 -0
- package/backend/node_modules/@eslint/eslintrc/package.json +82 -0
- package/backend/node_modules/@eslint/eslintrc/universal.js +9 -0
- package/backend/package.json +2 -4
- package/daemon/dist/api/system.js +25 -0
- package/daemon/dist/daemon.blob +0 -0
- package/daemon/dist/index.js +0 -0
- package/package.json +3 -1
- package/visual-editor-proxy/.repoburg/data.sqlite +0 -0
- package/visual-editor-proxy/dist/tsconfig.tsbuildinfo +1 -1
- package/backend/node_modules/@types/node/LICENSE +0 -21
- package/backend/node_modules/@types/node/README.md +0 -15
- package/backend/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/backend/node_modules/@types/node/assert.d.ts +0 -1044
- package/backend/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/backend/node_modules/@types/node/buffer.buffer.d.ts +0 -462
- package/backend/node_modules/@types/node/buffer.d.ts +0 -1932
- package/backend/node_modules/@types/node/child_process.d.ts +0 -1452
- package/backend/node_modules/@types/node/cluster.d.ts +0 -578
- package/backend/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/backend/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/backend/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/backend/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/backend/node_modules/@types/node/console.d.ts +0 -452
- package/backend/node_modules/@types/node/constants.d.ts +0 -21
- package/backend/node_modules/@types/node/crypto.d.ts +0 -4570
- package/backend/node_modules/@types/node/dgram.d.ts +0 -596
- package/backend/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/backend/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/backend/node_modules/@types/node/dns.d.ts +0 -871
- package/backend/node_modules/@types/node/domain.d.ts +0 -170
- package/backend/node_modules/@types/node/events.d.ts +0 -931
- package/backend/node_modules/@types/node/fs/promises.d.ts +0 -1248
- package/backend/node_modules/@types/node/fs.d.ts +0 -4362
- package/backend/node_modules/@types/node/globals.d.ts +0 -170
- package/backend/node_modules/@types/node/globals.typedarray.d.ts +0 -21
- package/backend/node_modules/@types/node/http.d.ts +0 -2031
- package/backend/node_modules/@types/node/http2.d.ts +0 -2623
- package/backend/node_modules/@types/node/https.d.ts +0 -549
- package/backend/node_modules/@types/node/index.d.ts +0 -93
- package/backend/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/backend/node_modules/@types/node/module.d.ts +0 -539
- package/backend/node_modules/@types/node/net.d.ts +0 -1011
- package/backend/node_modules/@types/node/os.d.ts +0 -495
- package/backend/node_modules/@types/node/package.json +0 -140
- package/backend/node_modules/@types/node/path.d.ts +0 -200
- package/backend/node_modules/@types/node/perf_hooks.d.ts +0 -963
- package/backend/node_modules/@types/node/process.d.ts +0 -1956
- package/backend/node_modules/@types/node/punycode.d.ts +0 -117
- package/backend/node_modules/@types/node/querystring.d.ts +0 -152
- package/backend/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/backend/node_modules/@types/node/readline.d.ts +0 -589
- package/backend/node_modules/@types/node/repl.d.ts +0 -430
- package/backend/node_modules/@types/node/sea.d.ts +0 -153
- package/backend/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/backend/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/backend/node_modules/@types/node/stream/web.d.ts +0 -533
- package/backend/node_modules/@types/node/stream.d.ts +0 -1668
- package/backend/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/backend/node_modules/@types/node/test.d.ts +0 -1807
- package/backend/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/backend/node_modules/@types/node/timers.d.ts +0 -286
- package/backend/node_modules/@types/node/tls.d.ts +0 -1231
- package/backend/node_modules/@types/node/trace_events.d.ts +0 -197
- package/backend/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -460
- package/backend/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
- package/backend/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/backend/node_modules/@types/node/tty.d.ts +0 -208
- package/backend/node_modules/@types/node/url.d.ts +0 -964
- package/backend/node_modules/@types/node/util.d.ts +0 -2331
- package/backend/node_modules/@types/node/v8.d.ts +0 -808
- package/backend/node_modules/@types/node/vm.d.ts +0 -1030
- package/backend/node_modules/@types/node/wasi.d.ts +0 -181
- package/backend/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/backend/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/backend/node_modules/@types/node/web-globals/events.d.ts +0 -94
- package/backend/node_modules/@types/node/web-globals/fetch.d.ts +0 -46
- package/backend/node_modules/@types/node/worker_threads.d.ts +0 -743
- package/backend/node_modules/@types/node/zlib.d.ts +0 -539
- package/backend/node_modules/debug/LICENSE +0 -20
- package/backend/node_modules/debug/README.md +0 -481
- package/backend/node_modules/debug/package.json +0 -64
- package/backend/node_modules/debug/src/browser.js +0 -272
- package/backend/node_modules/debug/src/common.js +0 -292
- package/backend/node_modules/debug/src/index.js +0 -10
- package/backend/node_modules/debug/src/node.js +0 -263
- package/backend/node_modules/undici-types/LICENSE +0 -21
- package/backend/node_modules/undici-types/README.md +0 -6
- package/backend/node_modules/undici-types/agent.d.ts +0 -31
- package/backend/node_modules/undici-types/api.d.ts +0 -43
- package/backend/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/backend/node_modules/undici-types/cache.d.ts +0 -36
- package/backend/node_modules/undici-types/client.d.ts +0 -108
- package/backend/node_modules/undici-types/connector.d.ts +0 -34
- package/backend/node_modules/undici-types/content-type.d.ts +0 -21
- package/backend/node_modules/undici-types/cookies.d.ts +0 -28
- package/backend/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/backend/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/backend/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/backend/node_modules/undici-types/errors.d.ts +0 -149
- package/backend/node_modules/undici-types/eventsource.d.ts +0 -61
- package/backend/node_modules/undici-types/fetch.d.ts +0 -209
- package/backend/node_modules/undici-types/file.d.ts +0 -39
- package/backend/node_modules/undici-types/filereader.d.ts +0 -54
- package/backend/node_modules/undici-types/formdata.d.ts +0 -108
- package/backend/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/backend/node_modules/undici-types/global-origin.d.ts +0 -7
- package/backend/node_modules/undici-types/handlers.d.ts +0 -15
- package/backend/node_modules/undici-types/header.d.ts +0 -4
- package/backend/node_modules/undici-types/index.d.ts +0 -71
- package/backend/node_modules/undici-types/interceptors.d.ts +0 -17
- package/backend/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/backend/node_modules/undici-types/mock-client.d.ts +0 -25
- package/backend/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/backend/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/backend/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/backend/node_modules/undici-types/package.json +0 -55
- package/backend/node_modules/undici-types/patch.d.ts +0 -33
- package/backend/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/backend/node_modules/undici-types/pool.d.ts +0 -39
- package/backend/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/backend/node_modules/undici-types/readable.d.ts +0 -65
- package/backend/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/backend/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/backend/node_modules/undici-types/util.d.ts +0 -18
- package/backend/node_modules/undici-types/webidl.d.ts +0 -228
- package/backend/node_modules/undici-types/websocket.d.ts +0 -150
- package/daemon/node_modules/@types/node/LICENSE +0 -21
- package/daemon/node_modules/@types/node/README.md +0 -15
- package/daemon/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/daemon/node_modules/@types/node/assert.d.ts +0 -1044
- package/daemon/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/daemon/node_modules/@types/node/buffer.buffer.d.ts +0 -462
- package/daemon/node_modules/@types/node/buffer.d.ts +0 -1932
- package/daemon/node_modules/@types/node/child_process.d.ts +0 -1452
- package/daemon/node_modules/@types/node/cluster.d.ts +0 -578
- package/daemon/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/daemon/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/daemon/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/daemon/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/daemon/node_modules/@types/node/console.d.ts +0 -452
- package/daemon/node_modules/@types/node/constants.d.ts +0 -21
- package/daemon/node_modules/@types/node/crypto.d.ts +0 -4570
- package/daemon/node_modules/@types/node/dgram.d.ts +0 -596
- package/daemon/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/daemon/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/daemon/node_modules/@types/node/dns.d.ts +0 -871
- package/daemon/node_modules/@types/node/domain.d.ts +0 -170
- package/daemon/node_modules/@types/node/events.d.ts +0 -931
- package/daemon/node_modules/@types/node/fs/promises.d.ts +0 -1248
- package/daemon/node_modules/@types/node/fs.d.ts +0 -4362
- package/daemon/node_modules/@types/node/globals.d.ts +0 -170
- package/daemon/node_modules/@types/node/globals.typedarray.d.ts +0 -21
- package/daemon/node_modules/@types/node/http.d.ts +0 -2031
- package/daemon/node_modules/@types/node/http2.d.ts +0 -2623
- package/daemon/node_modules/@types/node/https.d.ts +0 -549
- package/daemon/node_modules/@types/node/index.d.ts +0 -93
- package/daemon/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/daemon/node_modules/@types/node/module.d.ts +0 -539
- package/daemon/node_modules/@types/node/net.d.ts +0 -1011
- package/daemon/node_modules/@types/node/os.d.ts +0 -495
- package/daemon/node_modules/@types/node/package.json +0 -140
- package/daemon/node_modules/@types/node/path.d.ts +0 -200
- package/daemon/node_modules/@types/node/perf_hooks.d.ts +0 -963
- package/daemon/node_modules/@types/node/process.d.ts +0 -1956
- package/daemon/node_modules/@types/node/punycode.d.ts +0 -117
- package/daemon/node_modules/@types/node/querystring.d.ts +0 -152
- package/daemon/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/daemon/node_modules/@types/node/readline.d.ts +0 -589
- package/daemon/node_modules/@types/node/repl.d.ts +0 -430
- package/daemon/node_modules/@types/node/sea.d.ts +0 -153
- package/daemon/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/daemon/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/daemon/node_modules/@types/node/stream/web.d.ts +0 -533
- package/daemon/node_modules/@types/node/stream.d.ts +0 -1668
- package/daemon/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/daemon/node_modules/@types/node/test.d.ts +0 -1807
- package/daemon/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/daemon/node_modules/@types/node/timers.d.ts +0 -286
- package/daemon/node_modules/@types/node/tls.d.ts +0 -1231
- package/daemon/node_modules/@types/node/trace_events.d.ts +0 -197
- package/daemon/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -460
- package/daemon/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
- package/daemon/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/daemon/node_modules/@types/node/tty.d.ts +0 -208
- package/daemon/node_modules/@types/node/url.d.ts +0 -964
- package/daemon/node_modules/@types/node/util.d.ts +0 -2331
- package/daemon/node_modules/@types/node/v8.d.ts +0 -808
- package/daemon/node_modules/@types/node/vm.d.ts +0 -1030
- package/daemon/node_modules/@types/node/wasi.d.ts +0 -181
- package/daemon/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/daemon/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/daemon/node_modules/@types/node/web-globals/events.d.ts +0 -94
- package/daemon/node_modules/@types/node/web-globals/fetch.d.ts +0 -46
- package/daemon/node_modules/@types/node/worker_threads.d.ts +0 -743
- package/daemon/node_modules/@types/node/zlib.d.ts +0 -539
- package/daemon/node_modules/undici-types/README.md +0 -6
- package/daemon/node_modules/undici-types/agent.d.ts +0 -31
- package/daemon/node_modules/undici-types/api.d.ts +0 -43
- package/daemon/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/daemon/node_modules/undici-types/cache.d.ts +0 -36
- package/daemon/node_modules/undici-types/client.d.ts +0 -108
- package/daemon/node_modules/undici-types/connector.d.ts +0 -34
- package/daemon/node_modules/undici-types/content-type.d.ts +0 -21
- package/daemon/node_modules/undici-types/cookies.d.ts +0 -28
- package/daemon/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/daemon/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/daemon/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/daemon/node_modules/undici-types/errors.d.ts +0 -149
- package/daemon/node_modules/undici-types/eventsource.d.ts +0 -61
- package/daemon/node_modules/undici-types/fetch.d.ts +0 -209
- package/daemon/node_modules/undici-types/file.d.ts +0 -39
- package/daemon/node_modules/undici-types/filereader.d.ts +0 -54
- package/daemon/node_modules/undici-types/formdata.d.ts +0 -108
- package/daemon/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/daemon/node_modules/undici-types/global-origin.d.ts +0 -7
- package/daemon/node_modules/undici-types/handlers.d.ts +0 -15
- package/daemon/node_modules/undici-types/header.d.ts +0 -4
- package/daemon/node_modules/undici-types/index.d.ts +0 -71
- package/daemon/node_modules/undici-types/interceptors.d.ts +0 -17
- package/daemon/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/daemon/node_modules/undici-types/mock-client.d.ts +0 -25
- package/daemon/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/daemon/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/daemon/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/daemon/node_modules/undici-types/package.json +0 -55
- package/daemon/node_modules/undici-types/patch.d.ts +0 -33
- package/daemon/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/daemon/node_modules/undici-types/pool.d.ts +0 -39
- package/daemon/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/daemon/node_modules/undici-types/readable.d.ts +0 -65
- package/daemon/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/daemon/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/daemon/node_modules/undici-types/util.d.ts +0 -18
- package/daemon/node_modules/undici-types/webidl.d.ts +0 -228
- package/daemon/node_modules/undici-types/websocket.d.ts +0 -150
- package/visual-editor-proxy/node_modules/@types/node/LICENSE +0 -21
- package/visual-editor-proxy/node_modules/@types/node/README.md +0 -15
- package/visual-editor-proxy/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/visual-editor-proxy/node_modules/@types/node/assert.d.ts +0 -1062
- package/visual-editor-proxy/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/visual-editor-proxy/node_modules/@types/node/buffer.buffer.d.ts +0 -462
- package/visual-editor-proxy/node_modules/@types/node/buffer.d.ts +0 -1932
- package/visual-editor-proxy/node_modules/@types/node/child_process.d.ts +0 -1458
- package/visual-editor-proxy/node_modules/@types/node/cluster.d.ts +0 -577
- package/visual-editor-proxy/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/visual-editor-proxy/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/visual-editor-proxy/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/visual-editor-proxy/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/visual-editor-proxy/node_modules/@types/node/console.d.ts +0 -452
- package/visual-editor-proxy/node_modules/@types/node/constants.d.ts +0 -21
- package/visual-editor-proxy/node_modules/@types/node/crypto.d.ts +0 -4570
- package/visual-editor-proxy/node_modules/@types/node/dgram.d.ts +0 -596
- package/visual-editor-proxy/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/visual-editor-proxy/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/visual-editor-proxy/node_modules/@types/node/dns.d.ts +0 -871
- package/visual-editor-proxy/node_modules/@types/node/domain.d.ts +0 -170
- package/visual-editor-proxy/node_modules/@types/node/events.d.ts +0 -977
- package/visual-editor-proxy/node_modules/@types/node/fs/promises.d.ts +0 -1248
- package/visual-editor-proxy/node_modules/@types/node/fs.d.ts +0 -4362
- package/visual-editor-proxy/node_modules/@types/node/globals.d.ts +0 -172
- package/visual-editor-proxy/node_modules/@types/node/globals.typedarray.d.ts +0 -21
- package/visual-editor-proxy/node_modules/@types/node/http.d.ts +0 -2030
- package/visual-editor-proxy/node_modules/@types/node/http2.d.ts +0 -2624
- package/visual-editor-proxy/node_modules/@types/node/https.d.ts +0 -546
- package/visual-editor-proxy/node_modules/@types/node/index.d.ts +0 -93
- package/visual-editor-proxy/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/visual-editor-proxy/node_modules/@types/node/module.d.ts +0 -539
- package/visual-editor-proxy/node_modules/@types/node/net.d.ts +0 -1011
- package/visual-editor-proxy/node_modules/@types/node/os.d.ts +0 -505
- package/visual-editor-proxy/node_modules/@types/node/package.json +0 -140
- package/visual-editor-proxy/node_modules/@types/node/path.d.ts +0 -200
- package/visual-editor-proxy/node_modules/@types/node/perf_hooks.d.ts +0 -961
- package/visual-editor-proxy/node_modules/@types/node/process.d.ts +0 -1944
- package/visual-editor-proxy/node_modules/@types/node/punycode.d.ts +0 -117
- package/visual-editor-proxy/node_modules/@types/node/querystring.d.ts +0 -152
- package/visual-editor-proxy/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/visual-editor-proxy/node_modules/@types/node/readline.d.ts +0 -589
- package/visual-editor-proxy/node_modules/@types/node/repl.d.ts +0 -430
- package/visual-editor-proxy/node_modules/@types/node/sea.d.ts +0 -153
- package/visual-editor-proxy/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/visual-editor-proxy/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/visual-editor-proxy/node_modules/@types/node/stream/web.d.ts +0 -533
- package/visual-editor-proxy/node_modules/@types/node/stream.d.ts +0 -1675
- package/visual-editor-proxy/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/visual-editor-proxy/node_modules/@types/node/test.d.ts +0 -1787
- package/visual-editor-proxy/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/visual-editor-proxy/node_modules/@types/node/timers.d.ts +0 -286
- package/visual-editor-proxy/node_modules/@types/node/tls.d.ts +0 -1231
- package/visual-editor-proxy/node_modules/@types/node/trace_events.d.ts +0 -197
- package/visual-editor-proxy/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -460
- package/visual-editor-proxy/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
- package/visual-editor-proxy/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/visual-editor-proxy/node_modules/@types/node/tty.d.ts +0 -208
- package/visual-editor-proxy/node_modules/@types/node/url.d.ts +0 -964
- package/visual-editor-proxy/node_modules/@types/node/util.d.ts +0 -2331
- package/visual-editor-proxy/node_modules/@types/node/v8.d.ts +0 -808
- package/visual-editor-proxy/node_modules/@types/node/vm.d.ts +0 -1000
- package/visual-editor-proxy/node_modules/@types/node/wasi.d.ts +0 -181
- package/visual-editor-proxy/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/visual-editor-proxy/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/visual-editor-proxy/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/visual-editor-proxy/node_modules/@types/node/web-globals/fetch.d.ts +0 -46
- package/visual-editor-proxy/node_modules/@types/node/worker_threads.d.ts +0 -715
- package/visual-editor-proxy/node_modules/@types/node/zlib.d.ts +0 -539
- package/visual-editor-proxy/node_modules/undici-types/LICENSE +0 -21
- package/visual-editor-proxy/node_modules/undici-types/README.md +0 -6
- package/visual-editor-proxy/node_modules/undici-types/agent.d.ts +0 -31
- package/visual-editor-proxy/node_modules/undici-types/api.d.ts +0 -43
- package/visual-editor-proxy/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/visual-editor-proxy/node_modules/undici-types/cache.d.ts +0 -36
- package/visual-editor-proxy/node_modules/undici-types/client.d.ts +0 -108
- package/visual-editor-proxy/node_modules/undici-types/connector.d.ts +0 -34
- package/visual-editor-proxy/node_modules/undici-types/content-type.d.ts +0 -21
- package/visual-editor-proxy/node_modules/undici-types/cookies.d.ts +0 -28
- package/visual-editor-proxy/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/visual-editor-proxy/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/visual-editor-proxy/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/visual-editor-proxy/node_modules/undici-types/errors.d.ts +0 -149
- package/visual-editor-proxy/node_modules/undici-types/eventsource.d.ts +0 -61
- package/visual-editor-proxy/node_modules/undici-types/fetch.d.ts +0 -209
- package/visual-editor-proxy/node_modules/undici-types/file.d.ts +0 -39
- package/visual-editor-proxy/node_modules/undici-types/filereader.d.ts +0 -54
- package/visual-editor-proxy/node_modules/undici-types/formdata.d.ts +0 -108
- package/visual-editor-proxy/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/visual-editor-proxy/node_modules/undici-types/global-origin.d.ts +0 -7
- package/visual-editor-proxy/node_modules/undici-types/handlers.d.ts +0 -15
- package/visual-editor-proxy/node_modules/undici-types/header.d.ts +0 -4
- package/visual-editor-proxy/node_modules/undici-types/index.d.ts +0 -71
- package/visual-editor-proxy/node_modules/undici-types/interceptors.d.ts +0 -17
- package/visual-editor-proxy/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/visual-editor-proxy/node_modules/undici-types/mock-client.d.ts +0 -25
- package/visual-editor-proxy/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/visual-editor-proxy/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/visual-editor-proxy/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/visual-editor-proxy/node_modules/undici-types/package.json +0 -55
- package/visual-editor-proxy/node_modules/undici-types/patch.d.ts +0 -33
- package/visual-editor-proxy/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/visual-editor-proxy/node_modules/undici-types/pool.d.ts +0 -39
- package/visual-editor-proxy/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/visual-editor-proxy/node_modules/undici-types/readable.d.ts +0 -65
- package/visual-editor-proxy/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/visual-editor-proxy/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/visual-editor-proxy/node_modules/undici-types/util.d.ts +0 -18
- package/visual-editor-proxy/node_modules/undici-types/webidl.d.ts +0 -228
- package/visual-editor-proxy/node_modules/undici-types/websocket.d.ts +0 -150
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview `CascadingConfigArrayFactory` class.
|
|
3
|
+
*
|
|
4
|
+
* `CascadingConfigArrayFactory` class has a responsibility:
|
|
5
|
+
*
|
|
6
|
+
* 1. Handles cascading of config files.
|
|
7
|
+
*
|
|
8
|
+
* It provides two methods:
|
|
9
|
+
*
|
|
10
|
+
* - `getConfigArrayForFile(filePath)`
|
|
11
|
+
* Get the corresponded configuration of a given file. This method doesn't
|
|
12
|
+
* throw even if the given file didn't exist.
|
|
13
|
+
* - `clearCache()`
|
|
14
|
+
* Clear the internal cache. You have to call this method when
|
|
15
|
+
* `additionalPluginPool` was updated if `baseConfig` or `cliConfig` depends
|
|
16
|
+
* on the additional plugins. (`CLIEngine#addPlugin()` method calls this.)
|
|
17
|
+
*
|
|
18
|
+
* @author Toru Nagashima <https://github.com/mysticatea>
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
//------------------------------------------------------------------------------
|
|
22
|
+
// Requirements
|
|
23
|
+
//------------------------------------------------------------------------------
|
|
24
|
+
|
|
25
|
+
import debugOrig from "debug";
|
|
26
|
+
import os from "os";
|
|
27
|
+
import path from "path";
|
|
28
|
+
|
|
29
|
+
import { ConfigArrayFactory } from "./config-array-factory.js";
|
|
30
|
+
import {
|
|
31
|
+
ConfigArray,
|
|
32
|
+
ConfigDependency,
|
|
33
|
+
IgnorePattern
|
|
34
|
+
} from "./config-array/index.js";
|
|
35
|
+
import ConfigValidator from "./shared/config-validator.js";
|
|
36
|
+
import { emitDeprecationWarning } from "./shared/deprecation-warnings.js";
|
|
37
|
+
|
|
38
|
+
const debug = debugOrig("eslintrc:cascading-config-array-factory");
|
|
39
|
+
|
|
40
|
+
//------------------------------------------------------------------------------
|
|
41
|
+
// Helpers
|
|
42
|
+
//------------------------------------------------------------------------------
|
|
43
|
+
|
|
44
|
+
// Define types for VSCode IntelliSense.
|
|
45
|
+
/** @typedef {import("./shared/types").ConfigData} ConfigData */
|
|
46
|
+
/** @typedef {import("./shared/types").Parser} Parser */
|
|
47
|
+
/** @typedef {import("./shared/types").Plugin} Plugin */
|
|
48
|
+
/** @typedef {import("./shared/types").Rule} Rule */
|
|
49
|
+
/** @typedef {ReturnType<ConfigArrayFactory["create"]>} ConfigArray */
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @typedef {Object} CascadingConfigArrayFactoryOptions
|
|
53
|
+
* @property {Map<string,Plugin>} [additionalPluginPool] The map for additional plugins.
|
|
54
|
+
* @property {ConfigData} [baseConfig] The config by `baseConfig` option.
|
|
55
|
+
* @property {ConfigData} [cliConfig] The config by CLI options (`--env`, `--global`, `--ignore-pattern`, `--parser`, `--parser-options`, `--plugin`, and `--rule`). CLI options overwrite the setting in config files.
|
|
56
|
+
* @property {string} [cwd] The base directory to start lookup.
|
|
57
|
+
* @property {string} [ignorePath] The path to the alternative file of `.eslintignore`.
|
|
58
|
+
* @property {string[]} [rulePaths] The value of `--rulesdir` option.
|
|
59
|
+
* @property {string} [specificConfigPath] The value of `--config` option.
|
|
60
|
+
* @property {boolean} [useEslintrc] if `false` then it doesn't load config files.
|
|
61
|
+
* @property {Function} loadRules The function to use to load rules.
|
|
62
|
+
* @property {Map<string,Rule>} builtInRules The rules that are built in to ESLint.
|
|
63
|
+
* @property {Object} [resolver=ModuleResolver] The module resolver object.
|
|
64
|
+
* @property {string} eslintAllPath The path to the definitions for eslint:all.
|
|
65
|
+
* @property {Function} getEslintAllConfig Returns the config data for eslint:all.
|
|
66
|
+
* @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.
|
|
67
|
+
* @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @typedef {Object} CascadingConfigArrayFactoryInternalSlots
|
|
72
|
+
* @property {ConfigArray} baseConfigArray The config array of `baseConfig` option.
|
|
73
|
+
* @property {ConfigData} baseConfigData The config data of `baseConfig` option. This is used to reset `baseConfigArray`.
|
|
74
|
+
* @property {ConfigArray} cliConfigArray The config array of CLI options.
|
|
75
|
+
* @property {ConfigData} cliConfigData The config data of CLI options. This is used to reset `cliConfigArray`.
|
|
76
|
+
* @property {ConfigArrayFactory} configArrayFactory The factory for config arrays.
|
|
77
|
+
* @property {Map<string, ConfigArray>} configCache The cache from directory paths to config arrays.
|
|
78
|
+
* @property {string} cwd The base directory to start lookup.
|
|
79
|
+
* @property {WeakMap<ConfigArray, ConfigArray>} finalizeCache The cache from config arrays to finalized config arrays.
|
|
80
|
+
* @property {string} [ignorePath] The path to the alternative file of `.eslintignore`.
|
|
81
|
+
* @property {string[]|null} rulePaths The value of `--rulesdir` option. This is used to reset `baseConfigArray`.
|
|
82
|
+
* @property {string|null} specificConfigPath The value of `--config` option. This is used to reset `cliConfigArray`.
|
|
83
|
+
* @property {boolean} useEslintrc if `false` then it doesn't load config files.
|
|
84
|
+
* @property {Function} loadRules The function to use to load rules.
|
|
85
|
+
* @property {Map<string,Rule>} builtInRules The rules that are built in to ESLint.
|
|
86
|
+
* @property {Object} [resolver=ModuleResolver] The module resolver object.
|
|
87
|
+
* @property {string} eslintAllPath The path to the definitions for eslint:all.
|
|
88
|
+
* @property {Function} getEslintAllConfig Returns the config data for eslint:all.
|
|
89
|
+
* @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.
|
|
90
|
+
* @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
/** @type {WeakMap<CascadingConfigArrayFactory, CascadingConfigArrayFactoryInternalSlots>} */
|
|
94
|
+
const internalSlotsMap = new WeakMap();
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Create the config array from `baseConfig` and `rulePaths`.
|
|
98
|
+
* @param {CascadingConfigArrayFactoryInternalSlots} slots The slots.
|
|
99
|
+
* @returns {ConfigArray} The config array of the base configs.
|
|
100
|
+
*/
|
|
101
|
+
function createBaseConfigArray({
|
|
102
|
+
configArrayFactory,
|
|
103
|
+
baseConfigData,
|
|
104
|
+
rulePaths,
|
|
105
|
+
cwd,
|
|
106
|
+
loadRules
|
|
107
|
+
}) {
|
|
108
|
+
const baseConfigArray = configArrayFactory.create(
|
|
109
|
+
baseConfigData,
|
|
110
|
+
{ name: "BaseConfig" }
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
/*
|
|
114
|
+
* Create the config array element for the default ignore patterns.
|
|
115
|
+
* This element has `ignorePattern` property that ignores the default
|
|
116
|
+
* patterns in the current working directory.
|
|
117
|
+
*/
|
|
118
|
+
baseConfigArray.unshift(configArrayFactory.create(
|
|
119
|
+
{ ignorePatterns: IgnorePattern.DefaultPatterns },
|
|
120
|
+
{ name: "DefaultIgnorePattern" }
|
|
121
|
+
)[0]);
|
|
122
|
+
|
|
123
|
+
/*
|
|
124
|
+
* Load rules `--rulesdir` option as a pseudo plugin.
|
|
125
|
+
* Use a pseudo plugin to define rules of `--rulesdir`, so we can validate
|
|
126
|
+
* the rule's options with only information in the config array.
|
|
127
|
+
*/
|
|
128
|
+
if (rulePaths && rulePaths.length > 0) {
|
|
129
|
+
baseConfigArray.push({
|
|
130
|
+
type: "config",
|
|
131
|
+
name: "--rulesdir",
|
|
132
|
+
filePath: "",
|
|
133
|
+
plugins: {
|
|
134
|
+
"": new ConfigDependency({
|
|
135
|
+
definition: {
|
|
136
|
+
rules: rulePaths.reduce(
|
|
137
|
+
(map, rulesPath) => Object.assign(
|
|
138
|
+
map,
|
|
139
|
+
loadRules(rulesPath, cwd)
|
|
140
|
+
),
|
|
141
|
+
{}
|
|
142
|
+
)
|
|
143
|
+
},
|
|
144
|
+
filePath: "",
|
|
145
|
+
id: "",
|
|
146
|
+
importerName: "--rulesdir",
|
|
147
|
+
importerPath: ""
|
|
148
|
+
})
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return baseConfigArray;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Create the config array from CLI options.
|
|
158
|
+
* @param {CascadingConfigArrayFactoryInternalSlots} slots The slots.
|
|
159
|
+
* @returns {ConfigArray} The config array of the base configs.
|
|
160
|
+
*/
|
|
161
|
+
function createCLIConfigArray({
|
|
162
|
+
cliConfigData,
|
|
163
|
+
configArrayFactory,
|
|
164
|
+
cwd,
|
|
165
|
+
ignorePath,
|
|
166
|
+
specificConfigPath
|
|
167
|
+
}) {
|
|
168
|
+
const cliConfigArray = configArrayFactory.create(
|
|
169
|
+
cliConfigData,
|
|
170
|
+
{ name: "CLIOptions" }
|
|
171
|
+
);
|
|
172
|
+
|
|
173
|
+
cliConfigArray.unshift(
|
|
174
|
+
...(ignorePath
|
|
175
|
+
? configArrayFactory.loadESLintIgnore(ignorePath)
|
|
176
|
+
: configArrayFactory.loadDefaultESLintIgnore())
|
|
177
|
+
);
|
|
178
|
+
|
|
179
|
+
if (specificConfigPath) {
|
|
180
|
+
cliConfigArray.unshift(
|
|
181
|
+
...configArrayFactory.loadFile(
|
|
182
|
+
specificConfigPath,
|
|
183
|
+
{ name: "--config", basePath: cwd }
|
|
184
|
+
)
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return cliConfigArray;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The error type when there are files matched by a glob, but all of them have been ignored.
|
|
193
|
+
*/
|
|
194
|
+
class ConfigurationNotFoundError extends Error {
|
|
195
|
+
|
|
196
|
+
// eslint-disable-next-line jsdoc/require-description
|
|
197
|
+
/**
|
|
198
|
+
* @param {string} directoryPath The directory path.
|
|
199
|
+
*/
|
|
200
|
+
constructor(directoryPath) {
|
|
201
|
+
super(`No ESLint configuration found in ${directoryPath}.`);
|
|
202
|
+
this.messageTemplate = "no-config-found";
|
|
203
|
+
this.messageData = { directoryPath };
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* This class provides the functionality that enumerates every file which is
|
|
209
|
+
* matched by given glob patterns and that configuration.
|
|
210
|
+
*/
|
|
211
|
+
class CascadingConfigArrayFactory {
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Initialize this enumerator.
|
|
215
|
+
* @param {CascadingConfigArrayFactoryOptions} options The options.
|
|
216
|
+
*/
|
|
217
|
+
constructor({
|
|
218
|
+
additionalPluginPool = new Map(),
|
|
219
|
+
baseConfig: baseConfigData = null,
|
|
220
|
+
cliConfig: cliConfigData = null,
|
|
221
|
+
cwd = process.cwd(),
|
|
222
|
+
ignorePath,
|
|
223
|
+
resolvePluginsRelativeTo,
|
|
224
|
+
rulePaths = [],
|
|
225
|
+
specificConfigPath = null,
|
|
226
|
+
useEslintrc = true,
|
|
227
|
+
builtInRules = new Map(),
|
|
228
|
+
loadRules,
|
|
229
|
+
resolver,
|
|
230
|
+
eslintRecommendedPath,
|
|
231
|
+
getEslintRecommendedConfig,
|
|
232
|
+
eslintAllPath,
|
|
233
|
+
getEslintAllConfig
|
|
234
|
+
} = {}) {
|
|
235
|
+
const configArrayFactory = new ConfigArrayFactory({
|
|
236
|
+
additionalPluginPool,
|
|
237
|
+
cwd,
|
|
238
|
+
resolvePluginsRelativeTo,
|
|
239
|
+
builtInRules,
|
|
240
|
+
resolver,
|
|
241
|
+
eslintRecommendedPath,
|
|
242
|
+
getEslintRecommendedConfig,
|
|
243
|
+
eslintAllPath,
|
|
244
|
+
getEslintAllConfig
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
internalSlotsMap.set(this, {
|
|
248
|
+
baseConfigArray: createBaseConfigArray({
|
|
249
|
+
baseConfigData,
|
|
250
|
+
configArrayFactory,
|
|
251
|
+
cwd,
|
|
252
|
+
rulePaths,
|
|
253
|
+
loadRules
|
|
254
|
+
}),
|
|
255
|
+
baseConfigData,
|
|
256
|
+
cliConfigArray: createCLIConfigArray({
|
|
257
|
+
cliConfigData,
|
|
258
|
+
configArrayFactory,
|
|
259
|
+
cwd,
|
|
260
|
+
ignorePath,
|
|
261
|
+
specificConfigPath
|
|
262
|
+
}),
|
|
263
|
+
cliConfigData,
|
|
264
|
+
configArrayFactory,
|
|
265
|
+
configCache: new Map(),
|
|
266
|
+
cwd,
|
|
267
|
+
finalizeCache: new WeakMap(),
|
|
268
|
+
ignorePath,
|
|
269
|
+
rulePaths,
|
|
270
|
+
specificConfigPath,
|
|
271
|
+
useEslintrc,
|
|
272
|
+
builtInRules,
|
|
273
|
+
loadRules
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* The path to the current working directory.
|
|
279
|
+
* This is used by tests.
|
|
280
|
+
* @type {string}
|
|
281
|
+
*/
|
|
282
|
+
get cwd() {
|
|
283
|
+
const { cwd } = internalSlotsMap.get(this);
|
|
284
|
+
|
|
285
|
+
return cwd;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Get the config array of a given file.
|
|
290
|
+
* If `filePath` was not given, it returns the config which contains only
|
|
291
|
+
* `baseConfigData` and `cliConfigData`.
|
|
292
|
+
* @param {string} [filePath] The file path to a file.
|
|
293
|
+
* @param {Object} [options] The options.
|
|
294
|
+
* @param {boolean} [options.ignoreNotFoundError] If `true` then it doesn't throw `ConfigurationNotFoundError`.
|
|
295
|
+
* @returns {ConfigArray} The config array of the file.
|
|
296
|
+
*/
|
|
297
|
+
getConfigArrayForFile(filePath, { ignoreNotFoundError = false } = {}) {
|
|
298
|
+
const {
|
|
299
|
+
baseConfigArray,
|
|
300
|
+
cliConfigArray,
|
|
301
|
+
cwd
|
|
302
|
+
} = internalSlotsMap.get(this);
|
|
303
|
+
|
|
304
|
+
if (!filePath) {
|
|
305
|
+
return new ConfigArray(...baseConfigArray, ...cliConfigArray);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
const directoryPath = path.dirname(path.resolve(cwd, filePath));
|
|
309
|
+
|
|
310
|
+
debug(`Load config files for ${directoryPath}.`);
|
|
311
|
+
|
|
312
|
+
return this._finalizeConfigArray(
|
|
313
|
+
this._loadConfigInAncestors(directoryPath),
|
|
314
|
+
directoryPath,
|
|
315
|
+
ignoreNotFoundError
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Set the config data to override all configs.
|
|
321
|
+
* Require to call `clearCache()` method after this method is called.
|
|
322
|
+
* @param {ConfigData} configData The config data to override all configs.
|
|
323
|
+
* @returns {void}
|
|
324
|
+
*/
|
|
325
|
+
setOverrideConfig(configData) {
|
|
326
|
+
const slots = internalSlotsMap.get(this);
|
|
327
|
+
|
|
328
|
+
slots.cliConfigData = configData;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Clear config cache.
|
|
333
|
+
* @returns {void}
|
|
334
|
+
*/
|
|
335
|
+
clearCache() {
|
|
336
|
+
const slots = internalSlotsMap.get(this);
|
|
337
|
+
|
|
338
|
+
slots.baseConfigArray = createBaseConfigArray(slots);
|
|
339
|
+
slots.cliConfigArray = createCLIConfigArray(slots);
|
|
340
|
+
slots.configCache.clear();
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Load and normalize config files from the ancestor directories.
|
|
345
|
+
* @param {string} directoryPath The path to a leaf directory.
|
|
346
|
+
* @param {boolean} configsExistInSubdirs `true` if configurations exist in subdirectories.
|
|
347
|
+
* @returns {ConfigArray} The loaded config.
|
|
348
|
+
* @private
|
|
349
|
+
*/
|
|
350
|
+
_loadConfigInAncestors(directoryPath, configsExistInSubdirs = false) {
|
|
351
|
+
const {
|
|
352
|
+
baseConfigArray,
|
|
353
|
+
configArrayFactory,
|
|
354
|
+
configCache,
|
|
355
|
+
cwd,
|
|
356
|
+
useEslintrc
|
|
357
|
+
} = internalSlotsMap.get(this);
|
|
358
|
+
|
|
359
|
+
if (!useEslintrc) {
|
|
360
|
+
return baseConfigArray;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
let configArray = configCache.get(directoryPath);
|
|
364
|
+
|
|
365
|
+
// Hit cache.
|
|
366
|
+
if (configArray) {
|
|
367
|
+
debug(`Cache hit: ${directoryPath}.`);
|
|
368
|
+
return configArray;
|
|
369
|
+
}
|
|
370
|
+
debug(`No cache found: ${directoryPath}.`);
|
|
371
|
+
|
|
372
|
+
const homePath = os.homedir();
|
|
373
|
+
|
|
374
|
+
// Consider this is root.
|
|
375
|
+
if (directoryPath === homePath && cwd !== homePath) {
|
|
376
|
+
debug("Stop traversing because of considered root.");
|
|
377
|
+
if (configsExistInSubdirs) {
|
|
378
|
+
const filePath = ConfigArrayFactory.getPathToConfigFileInDirectory(directoryPath);
|
|
379
|
+
|
|
380
|
+
if (filePath) {
|
|
381
|
+
emitDeprecationWarning(
|
|
382
|
+
filePath,
|
|
383
|
+
"ESLINT_PERSONAL_CONFIG_SUPPRESS"
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
return this._cacheConfig(directoryPath, baseConfigArray);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// Load the config on this directory.
|
|
391
|
+
try {
|
|
392
|
+
configArray = configArrayFactory.loadInDirectory(directoryPath);
|
|
393
|
+
} catch (error) {
|
|
394
|
+
/* istanbul ignore next */
|
|
395
|
+
if (error.code === "EACCES") {
|
|
396
|
+
debug("Stop traversing because of 'EACCES' error.");
|
|
397
|
+
return this._cacheConfig(directoryPath, baseConfigArray);
|
|
398
|
+
}
|
|
399
|
+
throw error;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
if (configArray.length > 0 && configArray.isRoot()) {
|
|
403
|
+
debug("Stop traversing because of 'root:true'.");
|
|
404
|
+
configArray.unshift(...baseConfigArray);
|
|
405
|
+
return this._cacheConfig(directoryPath, configArray);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// Load from the ancestors and merge it.
|
|
409
|
+
const parentPath = path.dirname(directoryPath);
|
|
410
|
+
const parentConfigArray = parentPath && parentPath !== directoryPath
|
|
411
|
+
? this._loadConfigInAncestors(
|
|
412
|
+
parentPath,
|
|
413
|
+
configsExistInSubdirs || configArray.length > 0
|
|
414
|
+
)
|
|
415
|
+
: baseConfigArray;
|
|
416
|
+
|
|
417
|
+
if (configArray.length > 0) {
|
|
418
|
+
configArray.unshift(...parentConfigArray);
|
|
419
|
+
} else {
|
|
420
|
+
configArray = parentConfigArray;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// Cache and return.
|
|
424
|
+
return this._cacheConfig(directoryPath, configArray);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Freeze and cache a given config.
|
|
429
|
+
* @param {string} directoryPath The path to a directory as a cache key.
|
|
430
|
+
* @param {ConfigArray} configArray The config array as a cache value.
|
|
431
|
+
* @returns {ConfigArray} The `configArray` (frozen).
|
|
432
|
+
*/
|
|
433
|
+
_cacheConfig(directoryPath, configArray) {
|
|
434
|
+
const { configCache } = internalSlotsMap.get(this);
|
|
435
|
+
|
|
436
|
+
Object.freeze(configArray);
|
|
437
|
+
configCache.set(directoryPath, configArray);
|
|
438
|
+
|
|
439
|
+
return configArray;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Finalize a given config array.
|
|
444
|
+
* Concatenate `--config` and other CLI options.
|
|
445
|
+
* @param {ConfigArray} configArray The parent config array.
|
|
446
|
+
* @param {string} directoryPath The path to the leaf directory to find config files.
|
|
447
|
+
* @param {boolean} ignoreNotFoundError If `true` then it doesn't throw `ConfigurationNotFoundError`.
|
|
448
|
+
* @returns {ConfigArray} The loaded config.
|
|
449
|
+
* @private
|
|
450
|
+
*/
|
|
451
|
+
_finalizeConfigArray(configArray, directoryPath, ignoreNotFoundError) {
|
|
452
|
+
const {
|
|
453
|
+
cliConfigArray,
|
|
454
|
+
configArrayFactory,
|
|
455
|
+
finalizeCache,
|
|
456
|
+
useEslintrc,
|
|
457
|
+
builtInRules
|
|
458
|
+
} = internalSlotsMap.get(this);
|
|
459
|
+
|
|
460
|
+
let finalConfigArray = finalizeCache.get(configArray);
|
|
461
|
+
|
|
462
|
+
if (!finalConfigArray) {
|
|
463
|
+
finalConfigArray = configArray;
|
|
464
|
+
|
|
465
|
+
// Load the personal config if there are no regular config files.
|
|
466
|
+
if (
|
|
467
|
+
useEslintrc &&
|
|
468
|
+
configArray.every(c => !c.filePath) &&
|
|
469
|
+
cliConfigArray.every(c => !c.filePath) // `--config` option can be a file.
|
|
470
|
+
) {
|
|
471
|
+
const homePath = os.homedir();
|
|
472
|
+
|
|
473
|
+
debug("Loading the config file of the home directory:", homePath);
|
|
474
|
+
|
|
475
|
+
const personalConfigArray = configArrayFactory.loadInDirectory(
|
|
476
|
+
homePath,
|
|
477
|
+
{ name: "PersonalConfig" }
|
|
478
|
+
);
|
|
479
|
+
|
|
480
|
+
if (
|
|
481
|
+
personalConfigArray.length > 0 &&
|
|
482
|
+
!directoryPath.startsWith(homePath)
|
|
483
|
+
) {
|
|
484
|
+
const lastElement =
|
|
485
|
+
personalConfigArray[personalConfigArray.length - 1];
|
|
486
|
+
|
|
487
|
+
emitDeprecationWarning(
|
|
488
|
+
lastElement.filePath,
|
|
489
|
+
"ESLINT_PERSONAL_CONFIG_LOAD"
|
|
490
|
+
);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
finalConfigArray = finalConfigArray.concat(personalConfigArray);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
// Apply CLI options.
|
|
497
|
+
if (cliConfigArray.length > 0) {
|
|
498
|
+
finalConfigArray = finalConfigArray.concat(cliConfigArray);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
// Validate rule settings and environments.
|
|
502
|
+
const validator = new ConfigValidator({
|
|
503
|
+
builtInRules
|
|
504
|
+
});
|
|
505
|
+
|
|
506
|
+
validator.validateConfigArray(finalConfigArray);
|
|
507
|
+
|
|
508
|
+
// Cache it.
|
|
509
|
+
Object.freeze(finalConfigArray);
|
|
510
|
+
finalizeCache.set(configArray, finalConfigArray);
|
|
511
|
+
|
|
512
|
+
debug(
|
|
513
|
+
"Configuration was determined: %o on %s",
|
|
514
|
+
finalConfigArray,
|
|
515
|
+
directoryPath
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
// At least one element (the default ignore patterns) exists.
|
|
520
|
+
if (!ignoreNotFoundError && useEslintrc && finalConfigArray.length <= 1) {
|
|
521
|
+
throw new ConfigurationNotFoundError(directoryPath);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
return finalConfigArray;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
//------------------------------------------------------------------------------
|
|
529
|
+
// Public Interface
|
|
530
|
+
//------------------------------------------------------------------------------
|
|
531
|
+
|
|
532
|
+
export { CascadingConfigArrayFactory };
|