driftdetect-detectors 0.1.0
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/dist/accessibility/alt-text.d.ts +63 -0
- package/dist/accessibility/alt-text.d.ts.map +1 -0
- package/dist/accessibility/alt-text.js +100 -0
- package/dist/accessibility/alt-text.js.map +1 -0
- package/dist/accessibility/aria-roles.d.ts +65 -0
- package/dist/accessibility/aria-roles.d.ts.map +1 -0
- package/dist/accessibility/aria-roles.js +87 -0
- package/dist/accessibility/aria-roles.js.map +1 -0
- package/dist/accessibility/focus-management.d.ts +62 -0
- package/dist/accessibility/focus-management.d.ts.map +1 -0
- package/dist/accessibility/focus-management.js +88 -0
- package/dist/accessibility/focus-management.js.map +1 -0
- package/dist/accessibility/heading-hierarchy.d.ts +66 -0
- package/dist/accessibility/heading-hierarchy.d.ts.map +1 -0
- package/dist/accessibility/heading-hierarchy.js +94 -0
- package/dist/accessibility/heading-hierarchy.js.map +1 -0
- package/dist/accessibility/index.d.ts +25 -0
- package/dist/accessibility/index.d.ts.map +1 -0
- package/dist/accessibility/index.js +21 -0
- package/dist/accessibility/index.js.map +1 -0
- package/dist/accessibility/keyboard-nav.d.ts +63 -0
- package/dist/accessibility/keyboard-nav.d.ts.map +1 -0
- package/dist/accessibility/keyboard-nav.js +86 -0
- package/dist/accessibility/keyboard-nav.js.map +1 -0
- package/dist/accessibility/semantic-html.d.ts +76 -0
- package/dist/accessibility/semantic-html.d.ts.map +1 -0
- package/dist/accessibility/semantic-html.js +204 -0
- package/dist/accessibility/semantic-html.js.map +1 -0
- package/dist/api/client-patterns.d.ts +121 -0
- package/dist/api/client-patterns.d.ts.map +1 -0
- package/dist/api/client-patterns.js +478 -0
- package/dist/api/client-patterns.js.map +1 -0
- package/dist/api/error-format.d.ts +140 -0
- package/dist/api/error-format.d.ts.map +1 -0
- package/dist/api/error-format.js +614 -0
- package/dist/api/error-format.js.map +1 -0
- package/dist/api/http-methods.d.ts +255 -0
- package/dist/api/http-methods.d.ts.map +1 -0
- package/dist/api/http-methods.js +890 -0
- package/dist/api/http-methods.js.map +1 -0
- package/dist/api/index.d.ts +16 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +37 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/pagination.d.ts +133 -0
- package/dist/api/pagination.d.ts.map +1 -0
- package/dist/api/pagination.js +521 -0
- package/dist/api/pagination.js.map +1 -0
- package/dist/api/response-envelope.d.ts +261 -0
- package/dist/api/response-envelope.d.ts.map +1 -0
- package/dist/api/response-envelope.js +1050 -0
- package/dist/api/response-envelope.js.map +1 -0
- package/dist/api/retry-patterns.d.ts +117 -0
- package/dist/api/retry-patterns.d.ts.map +1 -0
- package/dist/api/retry-patterns.js +480 -0
- package/dist/api/retry-patterns.js.map +1 -0
- package/dist/api/route-structure.d.ts +128 -0
- package/dist/api/route-structure.d.ts.map +1 -0
- package/dist/api/route-structure.js +738 -0
- package/dist/api/route-structure.js.map +1 -0
- package/dist/auth/audit-logging.d.ts +80 -0
- package/dist/auth/audit-logging.d.ts.map +1 -0
- package/dist/auth/audit-logging.js +370 -0
- package/dist/auth/audit-logging.js.map +1 -0
- package/dist/auth/index.d.ts +33 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +49 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/middleware-usage.d.ts +65 -0
- package/dist/auth/middleware-usage.d.ts.map +1 -0
- package/dist/auth/middleware-usage.js +192 -0
- package/dist/auth/middleware-usage.js.map +1 -0
- package/dist/auth/permission-checks.d.ts +60 -0
- package/dist/auth/permission-checks.d.ts.map +1 -0
- package/dist/auth/permission-checks.js +159 -0
- package/dist/auth/permission-checks.js.map +1 -0
- package/dist/auth/rbac-patterns.d.ts +68 -0
- package/dist/auth/rbac-patterns.d.ts.map +1 -0
- package/dist/auth/rbac-patterns.js +143 -0
- package/dist/auth/rbac-patterns.js.map +1 -0
- package/dist/auth/resource-ownership.d.ts +77 -0
- package/dist/auth/resource-ownership.d.ts.map +1 -0
- package/dist/auth/resource-ownership.js +324 -0
- package/dist/auth/resource-ownership.js.map +1 -0
- package/dist/auth/token-handling.d.ts +64 -0
- package/dist/auth/token-handling.d.ts.map +1 -0
- package/dist/auth/token-handling.js +151 -0
- package/dist/auth/token-handling.js.map +1 -0
- package/dist/base/ast-detector.d.ts +421 -0
- package/dist/base/ast-detector.d.ts.map +1 -0
- package/dist/base/ast-detector.js +699 -0
- package/dist/base/ast-detector.js.map +1 -0
- package/dist/base/base-detector.d.ts +366 -0
- package/dist/base/base-detector.d.ts.map +1 -0
- package/dist/base/base-detector.js +170 -0
- package/dist/base/base-detector.js.map +1 -0
- package/dist/base/index.d.ts +12 -0
- package/dist/base/index.d.ts.map +1 -0
- package/dist/base/index.js +17 -0
- package/dist/base/index.js.map +1 -0
- package/dist/base/regex-detector.d.ts +421 -0
- package/dist/base/regex-detector.d.ts.map +1 -0
- package/dist/base/regex-detector.js +537 -0
- package/dist/base/regex-detector.js.map +1 -0
- package/dist/base/structural-detector.d.ts +424 -0
- package/dist/base/structural-detector.d.ts.map +1 -0
- package/dist/base/structural-detector.js +731 -0
- package/dist/base/structural-detector.js.map +1 -0
- package/dist/base/types.d.ts +53 -0
- package/dist/base/types.d.ts.map +1 -0
- package/dist/base/types.js +5 -0
- package/dist/base/types.js.map +1 -0
- package/dist/components/component-structure.d.ts +163 -0
- package/dist/components/component-structure.d.ts.map +1 -0
- package/dist/components/component-structure.js +500 -0
- package/dist/components/component-structure.js.map +1 -0
- package/dist/components/composition.d.ts +287 -0
- package/dist/components/composition.d.ts.map +1 -0
- package/dist/components/composition.js +1123 -0
- package/dist/components/composition.js.map +1 -0
- package/dist/components/duplicate-detection.d.ts +251 -0
- package/dist/components/duplicate-detection.d.ts.map +1 -0
- package/dist/components/duplicate-detection.js +804 -0
- package/dist/components/duplicate-detection.js.map +1 -0
- package/dist/components/index.d.ts +16 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +51 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/near-duplicate.d.ts +402 -0
- package/dist/components/near-duplicate.d.ts.map +1 -0
- package/dist/components/near-duplicate.js +1090 -0
- package/dist/components/near-duplicate.js.map +1 -0
- package/dist/components/props-patterns.d.ts +194 -0
- package/dist/components/props-patterns.d.ts.map +1 -0
- package/dist/components/props-patterns.js +795 -0
- package/dist/components/props-patterns.js.map +1 -0
- package/dist/components/ref-forwarding.d.ts +250 -0
- package/dist/components/ref-forwarding.d.ts.map +1 -0
- package/dist/components/ref-forwarding.js +832 -0
- package/dist/components/ref-forwarding.js.map +1 -0
- package/dist/components/state-patterns.d.ts +291 -0
- package/dist/components/state-patterns.d.ts.map +1 -0
- package/dist/components/state-patterns.js +970 -0
- package/dist/components/state-patterns.js.map +1 -0
- package/dist/config/config-validation.d.ts +74 -0
- package/dist/config/config-validation.d.ts.map +1 -0
- package/dist/config/config-validation.js +446 -0
- package/dist/config/config-validation.js.map +1 -0
- package/dist/config/default-values.d.ts +72 -0
- package/dist/config/default-values.d.ts.map +1 -0
- package/dist/config/default-values.js +386 -0
- package/dist/config/default-values.js.map +1 -0
- package/dist/config/env-naming.d.ts +73 -0
- package/dist/config/env-naming.d.ts.map +1 -0
- package/dist/config/env-naming.js +429 -0
- package/dist/config/env-naming.js.map +1 -0
- package/dist/config/environment-detection.d.ts +72 -0
- package/dist/config/environment-detection.d.ts.map +1 -0
- package/dist/config/environment-detection.js +400 -0
- package/dist/config/environment-detection.js.map +1 -0
- package/dist/config/feature-flags.d.ts +72 -0
- package/dist/config/feature-flags.d.ts.map +1 -0
- package/dist/config/feature-flags.js +384 -0
- package/dist/config/feature-flags.js.map +1 -0
- package/dist/config/index.d.ts +27 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +43 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/required-optional.d.ts +71 -0
- package/dist/config/required-optional.d.ts.map +1 -0
- package/dist/config/required-optional.js +344 -0
- package/dist/config/required-optional.js.map +1 -0
- package/dist/data-access/connection-pooling.d.ts +63 -0
- package/dist/data-access/connection-pooling.d.ts.map +1 -0
- package/dist/data-access/connection-pooling.js +297 -0
- package/dist/data-access/connection-pooling.js.map +1 -0
- package/dist/data-access/dto-patterns.d.ts +64 -0
- package/dist/data-access/dto-patterns.d.ts.map +1 -0
- package/dist/data-access/dto-patterns.js +291 -0
- package/dist/data-access/dto-patterns.js.map +1 -0
- package/dist/data-access/index.d.ts +31 -0
- package/dist/data-access/index.d.ts.map +1 -0
- package/dist/data-access/index.js +49 -0
- package/dist/data-access/index.js.map +1 -0
- package/dist/data-access/n-plus-one.d.ts +60 -0
- package/dist/data-access/n-plus-one.d.ts.map +1 -0
- package/dist/data-access/n-plus-one.js +264 -0
- package/dist/data-access/n-plus-one.js.map +1 -0
- package/dist/data-access/query-patterns.d.ts +64 -0
- package/dist/data-access/query-patterns.d.ts.map +1 -0
- package/dist/data-access/query-patterns.js +314 -0
- package/dist/data-access/query-patterns.js.map +1 -0
- package/dist/data-access/repository-pattern.d.ts +62 -0
- package/dist/data-access/repository-pattern.d.ts.map +1 -0
- package/dist/data-access/repository-pattern.js +257 -0
- package/dist/data-access/repository-pattern.js.map +1 -0
- package/dist/data-access/transaction-patterns.d.ts +61 -0
- package/dist/data-access/transaction-patterns.d.ts.map +1 -0
- package/dist/data-access/transaction-patterns.js +277 -0
- package/dist/data-access/transaction-patterns.js.map +1 -0
- package/dist/data-access/validation-patterns.d.ts +62 -0
- package/dist/data-access/validation-patterns.d.ts.map +1 -0
- package/dist/data-access/validation-patterns.js +301 -0
- package/dist/data-access/validation-patterns.js.map +1 -0
- package/dist/documentation/deprecation.d.ts +62 -0
- package/dist/documentation/deprecation.d.ts.map +1 -0
- package/dist/documentation/deprecation.js +83 -0
- package/dist/documentation/deprecation.js.map +1 -0
- package/dist/documentation/example-code.d.ts +64 -0
- package/dist/documentation/example-code.d.ts.map +1 -0
- package/dist/documentation/example-code.js +79 -0
- package/dist/documentation/example-code.js.map +1 -0
- package/dist/documentation/index.d.ts +22 -0
- package/dist/documentation/index.d.ts.map +1 -0
- package/dist/documentation/index.js +19 -0
- package/dist/documentation/index.js.map +1 -0
- package/dist/documentation/jsdoc-patterns.d.ts +72 -0
- package/dist/documentation/jsdoc-patterns.d.ts.map +1 -0
- package/dist/documentation/jsdoc-patterns.js +92 -0
- package/dist/documentation/jsdoc-patterns.js.map +1 -0
- package/dist/documentation/readme-structure.d.ts +67 -0
- package/dist/documentation/readme-structure.d.ts.map +1 -0
- package/dist/documentation/readme-structure.js +76 -0
- package/dist/documentation/readme-structure.js.map +1 -0
- package/dist/documentation/todo-patterns.d.ts +67 -0
- package/dist/documentation/todo-patterns.d.ts.map +1 -0
- package/dist/documentation/todo-patterns.js +73 -0
- package/dist/documentation/todo-patterns.js.map +1 -0
- package/dist/errors/async-errors.d.ts +72 -0
- package/dist/errors/async-errors.d.ts.map +1 -0
- package/dist/errors/async-errors.js +214 -0
- package/dist/errors/async-errors.js.map +1 -0
- package/dist/errors/circuit-breaker.d.ts +53 -0
- package/dist/errors/circuit-breaker.d.ts.map +1 -0
- package/dist/errors/circuit-breaker.js +241 -0
- package/dist/errors/circuit-breaker.js.map +1 -0
- package/dist/errors/error-codes.d.ts +73 -0
- package/dist/errors/error-codes.d.ts.map +1 -0
- package/dist/errors/error-codes.js +211 -0
- package/dist/errors/error-codes.js.map +1 -0
- package/dist/errors/error-logging.d.ts +73 -0
- package/dist/errors/error-logging.d.ts.map +1 -0
- package/dist/errors/error-logging.js +256 -0
- package/dist/errors/error-logging.js.map +1 -0
- package/dist/errors/error-propagation.d.ts +73 -0
- package/dist/errors/error-propagation.d.ts.map +1 -0
- package/dist/errors/error-propagation.js +244 -0
- package/dist/errors/error-propagation.js.map +1 -0
- package/dist/errors/exception-hierarchy.d.ts +75 -0
- package/dist/errors/exception-hierarchy.d.ts.map +1 -0
- package/dist/errors/exception-hierarchy.js +259 -0
- package/dist/errors/exception-hierarchy.js.map +1 -0
- package/dist/errors/index.d.ts +31 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +49 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/try-catch-placement.d.ts +73 -0
- package/dist/errors/try-catch-placement.d.ts.map +1 -0
- package/dist/errors/try-catch-placement.js +214 -0
- package/dist/errors/try-catch-placement.js.map +1 -0
- package/dist/index.d.ts +221 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +245 -0
- package/dist/index.js.map +1 -0
- package/dist/logging/context-fields.d.ts +48 -0
- package/dist/logging/context-fields.d.ts.map +1 -0
- package/dist/logging/context-fields.js +160 -0
- package/dist/logging/context-fields.js.map +1 -0
- package/dist/logging/correlation-ids.d.ts +44 -0
- package/dist/logging/correlation-ids.d.ts.map +1 -0
- package/dist/logging/correlation-ids.js +144 -0
- package/dist/logging/correlation-ids.js.map +1 -0
- package/dist/logging/health-checks.d.ts +45 -0
- package/dist/logging/health-checks.d.ts.map +1 -0
- package/dist/logging/health-checks.js +165 -0
- package/dist/logging/health-checks.js.map +1 -0
- package/dist/logging/index.d.ts +31 -0
- package/dist/logging/index.d.ts.map +1 -0
- package/dist/logging/index.js +49 -0
- package/dist/logging/index.js.map +1 -0
- package/dist/logging/log-levels.d.ts +46 -0
- package/dist/logging/log-levels.d.ts.map +1 -0
- package/dist/logging/log-levels.js +178 -0
- package/dist/logging/log-levels.js.map +1 -0
- package/dist/logging/metric-naming.d.ts +46 -0
- package/dist/logging/metric-naming.d.ts.map +1 -0
- package/dist/logging/metric-naming.js +157 -0
- package/dist/logging/metric-naming.js.map +1 -0
- package/dist/logging/pii-redaction.d.ts +44 -0
- package/dist/logging/pii-redaction.d.ts.map +1 -0
- package/dist/logging/pii-redaction.js +166 -0
- package/dist/logging/pii-redaction.js.map +1 -0
- package/dist/logging/structured-format.d.ts +53 -0
- package/dist/logging/structured-format.d.ts.map +1 -0
- package/dist/logging/structured-format.js +235 -0
- package/dist/logging/structured-format.js.map +1 -0
- package/dist/performance/bundle-size.d.ts +79 -0
- package/dist/performance/bundle-size.d.ts.map +1 -0
- package/dist/performance/bundle-size.js +276 -0
- package/dist/performance/bundle-size.js.map +1 -0
- package/dist/performance/caching-patterns.d.ts +78 -0
- package/dist/performance/caching-patterns.d.ts.map +1 -0
- package/dist/performance/caching-patterns.js +257 -0
- package/dist/performance/caching-patterns.js.map +1 -0
- package/dist/performance/code-splitting.d.ts +86 -0
- package/dist/performance/code-splitting.d.ts.map +1 -0
- package/dist/performance/code-splitting.js +447 -0
- package/dist/performance/code-splitting.js.map +1 -0
- package/dist/performance/debounce-throttle.d.ts +75 -0
- package/dist/performance/debounce-throttle.d.ts.map +1 -0
- package/dist/performance/debounce-throttle.js +232 -0
- package/dist/performance/debounce-throttle.js.map +1 -0
- package/dist/performance/index.d.ts +28 -0
- package/dist/performance/index.d.ts.map +1 -0
- package/dist/performance/index.js +39 -0
- package/dist/performance/index.js.map +1 -0
- package/dist/performance/lazy-loading.d.ts +75 -0
- package/dist/performance/lazy-loading.d.ts.map +1 -0
- package/dist/performance/lazy-loading.js +233 -0
- package/dist/performance/lazy-loading.js.map +1 -0
- package/dist/performance/memoization.d.ts +75 -0
- package/dist/performance/memoization.d.ts.map +1 -0
- package/dist/performance/memoization.js +251 -0
- package/dist/performance/memoization.js.map +1 -0
- package/dist/registry/detector-registry.d.ts +266 -0
- package/dist/registry/detector-registry.d.ts.map +1 -0
- package/dist/registry/detector-registry.js +526 -0
- package/dist/registry/detector-registry.js.map +1 -0
- package/dist/registry/index.d.ts +10 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +10 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/registry/loader.d.ts +232 -0
- package/dist/registry/loader.d.ts.map +1 -0
- package/dist/registry/loader.js +419 -0
- package/dist/registry/loader.js.map +1 -0
- package/dist/registry/types.d.ts +111 -0
- package/dist/registry/types.d.ts.map +1 -0
- package/dist/registry/types.js +19 -0
- package/dist/registry/types.js.map +1 -0
- package/dist/security/csp-headers.d.ts +78 -0
- package/dist/security/csp-headers.d.ts.map +1 -0
- package/dist/security/csp-headers.js +401 -0
- package/dist/security/csp-headers.js.map +1 -0
- package/dist/security/csrf-protection.d.ts +72 -0
- package/dist/security/csrf-protection.d.ts.map +1 -0
- package/dist/security/csrf-protection.js +344 -0
- package/dist/security/csrf-protection.js.map +1 -0
- package/dist/security/index.d.ts +30 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +48 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/input-sanitization.d.ts +74 -0
- package/dist/security/input-sanitization.d.ts.map +1 -0
- package/dist/security/input-sanitization.js +373 -0
- package/dist/security/input-sanitization.js.map +1 -0
- package/dist/security/rate-limiting.d.ts +81 -0
- package/dist/security/rate-limiting.d.ts.map +1 -0
- package/dist/security/rate-limiting.js +535 -0
- package/dist/security/rate-limiting.js.map +1 -0
- package/dist/security/secret-management.d.ts +83 -0
- package/dist/security/secret-management.d.ts.map +1 -0
- package/dist/security/secret-management.js +547 -0
- package/dist/security/secret-management.js.map +1 -0
- package/dist/security/sql-injection.d.ts +76 -0
- package/dist/security/sql-injection.d.ts.map +1 -0
- package/dist/security/sql-injection.js +383 -0
- package/dist/security/sql-injection.js.map +1 -0
- package/dist/security/xss-prevention.d.ts +80 -0
- package/dist/security/xss-prevention.d.ts.map +1 -0
- package/dist/security/xss-prevention.js +416 -0
- package/dist/security/xss-prevention.js.map +1 -0
- package/dist/structural/barrel-exports.d.ts +178 -0
- package/dist/structural/barrel-exports.d.ts.map +1 -0
- package/dist/structural/barrel-exports.js +553 -0
- package/dist/structural/barrel-exports.js.map +1 -0
- package/dist/structural/circular-deps.d.ts +140 -0
- package/dist/structural/circular-deps.d.ts.map +1 -0
- package/dist/structural/circular-deps.js +422 -0
- package/dist/structural/circular-deps.js.map +1 -0
- package/dist/structural/co-location.d.ts +202 -0
- package/dist/structural/co-location.d.ts.map +1 -0
- package/dist/structural/co-location.js +640 -0
- package/dist/structural/co-location.js.map +1 -0
- package/dist/structural/directory-structure.d.ts +151 -0
- package/dist/structural/directory-structure.d.ts.map +1 -0
- package/dist/structural/directory-structure.js +457 -0
- package/dist/structural/directory-structure.js.map +1 -0
- package/dist/structural/file-naming.d.ts +61 -0
- package/dist/structural/file-naming.d.ts.map +1 -0
- package/dist/structural/file-naming.js +231 -0
- package/dist/structural/file-naming.js.map +1 -0
- package/dist/structural/import-ordering.d.ts +212 -0
- package/dist/structural/import-ordering.d.ts.map +1 -0
- package/dist/structural/import-ordering.js +821 -0
- package/dist/structural/import-ordering.js.map +1 -0
- package/dist/structural/index.d.ts +23 -0
- package/dist/structural/index.d.ts.map +1 -0
- package/dist/structural/index.js +26 -0
- package/dist/structural/index.js.map +1 -0
- package/dist/structural/module-boundaries.d.ts +164 -0
- package/dist/structural/module-boundaries.d.ts.map +1 -0
- package/dist/structural/module-boundaries.js +616 -0
- package/dist/structural/module-boundaries.js.map +1 -0
- package/dist/structural/package-boundaries.d.ts +182 -0
- package/dist/structural/package-boundaries.d.ts.map +1 -0
- package/dist/structural/package-boundaries.js +602 -0
- package/dist/structural/package-boundaries.js.map +1 -0
- package/dist/styling/class-naming.d.ts +263 -0
- package/dist/styling/class-naming.d.ts.map +1 -0
- package/dist/styling/class-naming.js +892 -0
- package/dist/styling/class-naming.js.map +1 -0
- package/dist/styling/color-usage.d.ts +213 -0
- package/dist/styling/color-usage.d.ts.map +1 -0
- package/dist/styling/color-usage.js +732 -0
- package/dist/styling/color-usage.js.map +1 -0
- package/dist/styling/design-tokens.d.ts +212 -0
- package/dist/styling/design-tokens.d.ts.map +1 -0
- package/dist/styling/design-tokens.js +748 -0
- package/dist/styling/design-tokens.js.map +1 -0
- package/dist/styling/index.d.ts +16 -0
- package/dist/styling/index.d.ts.map +1 -0
- package/dist/styling/index.js +56 -0
- package/dist/styling/index.js.map +1 -0
- package/dist/styling/responsive.d.ts +304 -0
- package/dist/styling/responsive.d.ts.map +1 -0
- package/dist/styling/responsive.js +888 -0
- package/dist/styling/responsive.js.map +1 -0
- package/dist/styling/spacing-scale.d.ts +248 -0
- package/dist/styling/spacing-scale.d.ts.map +1 -0
- package/dist/styling/spacing-scale.js +865 -0
- package/dist/styling/spacing-scale.js.map +1 -0
- package/dist/styling/tailwind-patterns.d.ts +305 -0
- package/dist/styling/tailwind-patterns.d.ts.map +1 -0
- package/dist/styling/tailwind-patterns.js +1181 -0
- package/dist/styling/tailwind-patterns.js.map +1 -0
- package/dist/styling/typography.d.ts +281 -0
- package/dist/styling/typography.d.ts.map +1 -0
- package/dist/styling/typography.js +1004 -0
- package/dist/styling/typography.js.map +1 -0
- package/dist/styling/z-index-scale.d.ts +270 -0
- package/dist/styling/z-index-scale.d.ts.map +1 -0
- package/dist/styling/z-index-scale.js +714 -0
- package/dist/styling/z-index-scale.js.map +1 -0
- package/dist/testing/co-location.d.ts +42 -0
- package/dist/testing/co-location.d.ts.map +1 -0
- package/dist/testing/co-location.js +134 -0
- package/dist/testing/co-location.js.map +1 -0
- package/dist/testing/describe-naming.d.ts +47 -0
- package/dist/testing/describe-naming.d.ts.map +1 -0
- package/dist/testing/describe-naming.js +150 -0
- package/dist/testing/describe-naming.js.map +1 -0
- package/dist/testing/file-naming.d.ts +44 -0
- package/dist/testing/file-naming.d.ts.map +1 -0
- package/dist/testing/file-naming.js +131 -0
- package/dist/testing/file-naming.js.map +1 -0
- package/dist/testing/fixture-patterns.d.ts +52 -0
- package/dist/testing/fixture-patterns.d.ts.map +1 -0
- package/dist/testing/fixture-patterns.js +228 -0
- package/dist/testing/fixture-patterns.js.map +1 -0
- package/dist/testing/index.d.ts +31 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +49 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/mock-patterns.d.ts +53 -0
- package/dist/testing/mock-patterns.d.ts.map +1 -0
- package/dist/testing/mock-patterns.js +264 -0
- package/dist/testing/mock-patterns.js.map +1 -0
- package/dist/testing/setup-teardown.d.ts +55 -0
- package/dist/testing/setup-teardown.d.ts.map +1 -0
- package/dist/testing/setup-teardown.js +262 -0
- package/dist/testing/setup-teardown.js.map +1 -0
- package/dist/testing/test-structure.d.ts +51 -0
- package/dist/testing/test-structure.d.ts.map +1 -0
- package/dist/testing/test-structure.js +225 -0
- package/dist/testing/test-structure.js.map +1 -0
- package/dist/types/any-usage.d.ts +99 -0
- package/dist/types/any-usage.d.ts.map +1 -0
- package/dist/types/any-usage.js +641 -0
- package/dist/types/any-usage.js.map +1 -0
- package/dist/types/file-location.d.ts +76 -0
- package/dist/types/file-location.d.ts.map +1 -0
- package/dist/types/file-location.js +395 -0
- package/dist/types/file-location.js.map +1 -0
- package/dist/types/generic-patterns.d.ts +97 -0
- package/dist/types/generic-patterns.d.ts.map +1 -0
- package/dist/types/generic-patterns.js +615 -0
- package/dist/types/generic-patterns.js.map +1 -0
- package/dist/types/index.d.ts +31 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +43 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/interface-vs-type.d.ts +81 -0
- package/dist/types/interface-vs-type.d.ts.map +1 -0
- package/dist/types/interface-vs-type.js +440 -0
- package/dist/types/interface-vs-type.js.map +1 -0
- package/dist/types/naming-conventions.d.ts +84 -0
- package/dist/types/naming-conventions.d.ts.map +1 -0
- package/dist/types/naming-conventions.js +455 -0
- package/dist/types/naming-conventions.js.map +1 -0
- package/dist/types/type-assertions.d.ts +98 -0
- package/dist/types/type-assertions.d.ts.map +1 -0
- package/dist/types/type-assertions.js +639 -0
- package/dist/types/type-assertions.js.map +1 -0
- package/dist/types/utility-types.d.ts +110 -0
- package/dist/types/utility-types.d.ts.map +1 -0
- package/dist/types/utility-types.js +547 -0
- package/dist/types/utility-types.js.map +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-size.js","sourceRoot":"","sources":["../../src/performance/bundle-size.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,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YACvE,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAClC,CAAC;QAED,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,CAAC,UAAU,EAAE;YACpD,MAAM,EAAE;gBACN,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,UAAU,EAAE,QAAQ,CAAC,UAAU;gBAC/B,kBAAkB,EAAE,QAAQ,CAAC,kBAAkB;gBAC/C,oBAAoB,EAAE,QAAQ,CAAC,oBAAoB;gBACnD,kBAAkB,EAAE,QAAQ,CAAC,kBAAkB;aAChD;SACF,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,UAAqB;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED,MAAM,UAAU,wBAAwB;IACtC,OAAO,IAAI,kBAAkB,EAAE,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Caching Patterns Detector - Caching pattern detection
|
|
3
|
+
*
|
|
4
|
+
* Detects caching patterns including:
|
|
5
|
+
* - HTTP caching headers
|
|
6
|
+
* - Service worker caching
|
|
7
|
+
* - React Query/SWR caching
|
|
8
|
+
* - Redis/memory caching
|
|
9
|
+
* - Browser storage caching
|
|
10
|
+
*
|
|
11
|
+
* @requirements 19.4 - Caching patterns
|
|
12
|
+
*/
|
|
13
|
+
import type { Violation, QuickFix, PatternCategory, Language } from 'driftdetect-core';
|
|
14
|
+
import { RegexDetector } from '../base/regex-detector.js';
|
|
15
|
+
import type { DetectionContext, DetectionResult } from '../base/base-detector.js';
|
|
16
|
+
export type CachingPatternType = 'http-cache-control' | 'etag' | 'service-worker' | 'react-query' | 'swr' | 'redis-cache' | 'memory-cache' | 'local-storage' | 'session-storage' | 'indexed-db';
|
|
17
|
+
export type CachingViolationType = 'no-cache-strategy' | 'missing-stale-time' | 'unbounded-cache';
|
|
18
|
+
export interface CachingPatternInfo {
|
|
19
|
+
type: CachingPatternType;
|
|
20
|
+
file: string;
|
|
21
|
+
line: number;
|
|
22
|
+
column: number;
|
|
23
|
+
matchedText: string;
|
|
24
|
+
context?: string | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface CachingViolationInfo {
|
|
27
|
+
type: CachingViolationType;
|
|
28
|
+
file: string;
|
|
29
|
+
line: number;
|
|
30
|
+
column: number;
|
|
31
|
+
matchedText: string;
|
|
32
|
+
issue: string;
|
|
33
|
+
suggestedFix?: string | undefined;
|
|
34
|
+
severity: 'high' | 'medium' | 'low';
|
|
35
|
+
}
|
|
36
|
+
export interface CachingPatternsAnalysis {
|
|
37
|
+
patterns: CachingPatternInfo[];
|
|
38
|
+
violations: CachingViolationInfo[];
|
|
39
|
+
httpCacheCount: number;
|
|
40
|
+
clientCacheCount: number;
|
|
41
|
+
usesReactQuery: boolean;
|
|
42
|
+
usesSWR: boolean;
|
|
43
|
+
confidence: number;
|
|
44
|
+
}
|
|
45
|
+
export declare const HTTP_CACHE_CONTROL_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp];
|
|
46
|
+
export declare const ETAG_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
47
|
+
export declare const SERVICE_WORKER_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp];
|
|
48
|
+
export declare const REACT_QUERY_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp];
|
|
49
|
+
export declare const SWR_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp];
|
|
50
|
+
export declare const REDIS_CACHE_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp];
|
|
51
|
+
export declare const MEMORY_CACHE_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp];
|
|
52
|
+
export declare const LOCAL_STORAGE_PATTERNS: readonly [RegExp, RegExp, RegExp];
|
|
53
|
+
export declare const SESSION_STORAGE_PATTERNS: readonly [RegExp, RegExp, RegExp];
|
|
54
|
+
export declare const INDEXED_DB_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp];
|
|
55
|
+
export declare function shouldExcludeFile(filePath: string): boolean;
|
|
56
|
+
export declare function detectHttpCacheControl(content: string, filePath: string): CachingPatternInfo[];
|
|
57
|
+
export declare function detectEtag(content: string, filePath: string): CachingPatternInfo[];
|
|
58
|
+
export declare function detectServiceWorker(content: string, filePath: string): CachingPatternInfo[];
|
|
59
|
+
export declare function detectReactQuery(content: string, filePath: string): CachingPatternInfo[];
|
|
60
|
+
export declare function detectSWR(content: string, filePath: string): CachingPatternInfo[];
|
|
61
|
+
export declare function detectRedisCache(content: string, filePath: string): CachingPatternInfo[];
|
|
62
|
+
export declare function detectMemoryCache(content: string, filePath: string): CachingPatternInfo[];
|
|
63
|
+
export declare function detectLocalStorage(content: string, filePath: string): CachingPatternInfo[];
|
|
64
|
+
export declare function detectSessionStorage(content: string, filePath: string): CachingPatternInfo[];
|
|
65
|
+
export declare function detectIndexedDB(content: string, filePath: string): CachingPatternInfo[];
|
|
66
|
+
export declare function analyzeCachingPatterns(content: string, filePath: string): CachingPatternsAnalysis;
|
|
67
|
+
export declare class CachingPatternsDetector extends RegexDetector {
|
|
68
|
+
readonly id = "performance/caching-patterns";
|
|
69
|
+
readonly name = "Caching Patterns Detector";
|
|
70
|
+
readonly description = "Detects caching patterns including HTTP, client, and server caching";
|
|
71
|
+
readonly category: PatternCategory;
|
|
72
|
+
readonly subcategory = "caching-patterns";
|
|
73
|
+
readonly supportedLanguages: Language[];
|
|
74
|
+
detect(context: DetectionContext): Promise<DetectionResult>;
|
|
75
|
+
generateQuickFix(_violation: Violation): QuickFix | null;
|
|
76
|
+
}
|
|
77
|
+
export declare function createCachingPatternsDetector(): CachingPatternsDetector;
|
|
78
|
+
//# sourceMappingURL=caching-patterns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caching-patterns.d.ts","sourceRoot":"","sources":["../../src/performance/caching-patterns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAMlF,MAAM,MAAM,kBAAkB,GAC1B,oBAAoB,GACpB,MAAM,GACN,gBAAgB,GAChB,aAAa,GACb,KAAK,GACL,aAAa,GACb,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,YAAY,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAC5B,mBAAmB,GACnB,oBAAoB,GACpB,iBAAiB,CAAC;AAEtB,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,kBAAkB,EAAE,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AM,GAAG,kBAAkB,EAAE,CAExF;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAEzF;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAE1F;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAE5F;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAEvF;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,uBAAuB,CAmDzB;AAMD,qBAAa,uBAAwB,SAAQ,aAAa;IACxD,QAAQ,CAAC,EAAE,kCAAkC;IAC7C,QAAQ,CAAC,IAAI,+BAA+B;IAC5C,QAAQ,CAAC,WAAW,yEAAyE;IAC7F,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAiB;IACnD,QAAQ,CAAC,WAAW,sBAAsB;IAC1C,QAAQ,CAAC,kBAAkB,EAAE,QAAQ,EAAE,CAA0C;IAE3E,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAuBjE,gBAAgB,CAAC,UAAU,EAAE,SAAS,GAAG,QAAQ,GAAG,IAAI;CAGzD;AAED,wBAAgB,6BAA6B,IAAI,uBAAuB,CAEvE"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Caching Patterns Detector - Caching pattern detection
|
|
3
|
+
*
|
|
4
|
+
* Detects caching patterns including:
|
|
5
|
+
* - HTTP caching headers
|
|
6
|
+
* - Service worker caching
|
|
7
|
+
* - React Query/SWR caching
|
|
8
|
+
* - Redis/memory caching
|
|
9
|
+
* - Browser storage caching
|
|
10
|
+
*
|
|
11
|
+
* @requirements 19.4 - Caching patterns
|
|
12
|
+
*/
|
|
13
|
+
import { RegexDetector } from '../base/regex-detector.js';
|
|
14
|
+
// ============================================================================
|
|
15
|
+
// Constants
|
|
16
|
+
// ============================================================================
|
|
17
|
+
export const HTTP_CACHE_CONTROL_PATTERNS = [
|
|
18
|
+
/Cache-Control/gi,
|
|
19
|
+
/cache-control/g,
|
|
20
|
+
/max-age\s*=/g,
|
|
21
|
+
/s-maxage\s*=/g,
|
|
22
|
+
/stale-while-revalidate/g,
|
|
23
|
+
/no-cache/g,
|
|
24
|
+
/no-store/g,
|
|
25
|
+
];
|
|
26
|
+
export const ETAG_PATTERNS = [
|
|
27
|
+
/ETag/gi,
|
|
28
|
+
/If-None-Match/gi,
|
|
29
|
+
/If-Modified-Since/gi,
|
|
30
|
+
/Last-Modified/gi,
|
|
31
|
+
];
|
|
32
|
+
export const SERVICE_WORKER_PATTERNS = [
|
|
33
|
+
/serviceWorker/g,
|
|
34
|
+
/navigator\.serviceWorker/g,
|
|
35
|
+
/CacheStorage/g,
|
|
36
|
+
/caches\.open/g,
|
|
37
|
+
/caches\.match/g,
|
|
38
|
+
/workbox/gi,
|
|
39
|
+
];
|
|
40
|
+
export const REACT_QUERY_PATTERNS = [
|
|
41
|
+
/useQuery\s*\(/g,
|
|
42
|
+
/useMutation\s*\(/g,
|
|
43
|
+
/useInfiniteQuery\s*\(/g,
|
|
44
|
+
/QueryClient/g,
|
|
45
|
+
/QueryClientProvider/g,
|
|
46
|
+
/@tanstack\/react-query/g,
|
|
47
|
+
/staleTime/g,
|
|
48
|
+
/cacheTime/g,
|
|
49
|
+
/gcTime/g,
|
|
50
|
+
];
|
|
51
|
+
export const SWR_PATTERNS = [
|
|
52
|
+
/useSWR\s*\(/g,
|
|
53
|
+
/useSWRMutation/g,
|
|
54
|
+
/useSWRInfinite/g,
|
|
55
|
+
/SWRConfig/g,
|
|
56
|
+
/from\s+['"`]swr['"`]/g,
|
|
57
|
+
/revalidateOnFocus/g,
|
|
58
|
+
/revalidateOnReconnect/g,
|
|
59
|
+
];
|
|
60
|
+
export const REDIS_CACHE_PATTERNS = [
|
|
61
|
+
// JavaScript/TypeScript
|
|
62
|
+
/redis/gi,
|
|
63
|
+
/ioredis/g,
|
|
64
|
+
/createClient/g,
|
|
65
|
+
/\.get\s*\(/g,
|
|
66
|
+
/\.set\s*\(/g,
|
|
67
|
+
/\.setex\s*\(/g,
|
|
68
|
+
/EXPIRE/g,
|
|
69
|
+
// Python
|
|
70
|
+
/redis\.Redis/gi,
|
|
71
|
+
/redis\.StrictRedis/gi,
|
|
72
|
+
/aioredis/gi,
|
|
73
|
+
/redis_client/gi,
|
|
74
|
+
/\.get\s*\(/g,
|
|
75
|
+
/\.set\s*\(/g,
|
|
76
|
+
/\.setex\s*\(/g,
|
|
77
|
+
];
|
|
78
|
+
export const MEMORY_CACHE_PATTERNS = [
|
|
79
|
+
// JavaScript/TypeScript
|
|
80
|
+
/new\s+Map\s*\(/g,
|
|
81
|
+
/new\s+WeakMap\s*\(/g,
|
|
82
|
+
/lru-cache/g,
|
|
83
|
+
/node-cache/g,
|
|
84
|
+
/memory-cache/g,
|
|
85
|
+
// Python
|
|
86
|
+
/@lru_cache/g,
|
|
87
|
+
/@cache/g,
|
|
88
|
+
/functools\.lru_cache/g,
|
|
89
|
+
/functools\.cache/g,
|
|
90
|
+
/cachetools/gi,
|
|
91
|
+
/TTLCache/g,
|
|
92
|
+
/LRUCache/g,
|
|
93
|
+
];
|
|
94
|
+
export const LOCAL_STORAGE_PATTERNS = [
|
|
95
|
+
/localStorage\./g,
|
|
96
|
+
/localStorage\[/g,
|
|
97
|
+
/window\.localStorage/g,
|
|
98
|
+
];
|
|
99
|
+
export const SESSION_STORAGE_PATTERNS = [
|
|
100
|
+
/sessionStorage\./g,
|
|
101
|
+
/sessionStorage\[/g,
|
|
102
|
+
/window\.sessionStorage/g,
|
|
103
|
+
];
|
|
104
|
+
export const INDEXED_DB_PATTERNS = [
|
|
105
|
+
/indexedDB/g,
|
|
106
|
+
/IDBDatabase/g,
|
|
107
|
+
/openDB/g,
|
|
108
|
+
/idb/g,
|
|
109
|
+
/dexie/gi,
|
|
110
|
+
];
|
|
111
|
+
// ============================================================================
|
|
112
|
+
// Analysis Functions
|
|
113
|
+
// ============================================================================
|
|
114
|
+
export function shouldExcludeFile(filePath) {
|
|
115
|
+
const excludePatterns = [
|
|
116
|
+
/\.test\.[jt]sx?$/,
|
|
117
|
+
/\.spec\.[jt]sx?$/,
|
|
118
|
+
/__tests__\//,
|
|
119
|
+
/node_modules\//,
|
|
120
|
+
/\.min\.[jt]s$/,
|
|
121
|
+
];
|
|
122
|
+
return excludePatterns.some((p) => p.test(filePath));
|
|
123
|
+
}
|
|
124
|
+
function detectPatterns(content, filePath, patterns, type) {
|
|
125
|
+
const results = [];
|
|
126
|
+
const lines = content.split('\n');
|
|
127
|
+
for (let i = 0; i < lines.length; i++) {
|
|
128
|
+
const line = lines[i];
|
|
129
|
+
for (const pattern of patterns) {
|
|
130
|
+
const regex = new RegExp(pattern.source, pattern.flags);
|
|
131
|
+
let match;
|
|
132
|
+
while ((match = regex.exec(line)) !== null) {
|
|
133
|
+
results.push({
|
|
134
|
+
type,
|
|
135
|
+
file: filePath,
|
|
136
|
+
line: i + 1,
|
|
137
|
+
column: match.index + 1,
|
|
138
|
+
matchedText: match[0],
|
|
139
|
+
context: line.trim(),
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return results;
|
|
145
|
+
}
|
|
146
|
+
export function detectHttpCacheControl(content, filePath) {
|
|
147
|
+
return detectPatterns(content, filePath, HTTP_CACHE_CONTROL_PATTERNS, 'http-cache-control');
|
|
148
|
+
}
|
|
149
|
+
export function detectEtag(content, filePath) {
|
|
150
|
+
return detectPatterns(content, filePath, ETAG_PATTERNS, 'etag');
|
|
151
|
+
}
|
|
152
|
+
export function detectServiceWorker(content, filePath) {
|
|
153
|
+
return detectPatterns(content, filePath, SERVICE_WORKER_PATTERNS, 'service-worker');
|
|
154
|
+
}
|
|
155
|
+
export function detectReactQuery(content, filePath) {
|
|
156
|
+
return detectPatterns(content, filePath, REACT_QUERY_PATTERNS, 'react-query');
|
|
157
|
+
}
|
|
158
|
+
export function detectSWR(content, filePath) {
|
|
159
|
+
return detectPatterns(content, filePath, SWR_PATTERNS, 'swr');
|
|
160
|
+
}
|
|
161
|
+
export function detectRedisCache(content, filePath) {
|
|
162
|
+
return detectPatterns(content, filePath, REDIS_CACHE_PATTERNS, 'redis-cache');
|
|
163
|
+
}
|
|
164
|
+
export function detectMemoryCache(content, filePath) {
|
|
165
|
+
return detectPatterns(content, filePath, MEMORY_CACHE_PATTERNS, 'memory-cache');
|
|
166
|
+
}
|
|
167
|
+
export function detectLocalStorage(content, filePath) {
|
|
168
|
+
return detectPatterns(content, filePath, LOCAL_STORAGE_PATTERNS, 'local-storage');
|
|
169
|
+
}
|
|
170
|
+
export function detectSessionStorage(content, filePath) {
|
|
171
|
+
return detectPatterns(content, filePath, SESSION_STORAGE_PATTERNS, 'session-storage');
|
|
172
|
+
}
|
|
173
|
+
export function detectIndexedDB(content, filePath) {
|
|
174
|
+
return detectPatterns(content, filePath, INDEXED_DB_PATTERNS, 'indexed-db');
|
|
175
|
+
}
|
|
176
|
+
export function analyzeCachingPatterns(content, filePath) {
|
|
177
|
+
if (shouldExcludeFile(filePath)) {
|
|
178
|
+
return {
|
|
179
|
+
patterns: [],
|
|
180
|
+
violations: [],
|
|
181
|
+
httpCacheCount: 0,
|
|
182
|
+
clientCacheCount: 0,
|
|
183
|
+
usesReactQuery: false,
|
|
184
|
+
usesSWR: false,
|
|
185
|
+
confidence: 1.0,
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
const patterns = [
|
|
189
|
+
...detectHttpCacheControl(content, filePath),
|
|
190
|
+
...detectEtag(content, filePath),
|
|
191
|
+
...detectServiceWorker(content, filePath),
|
|
192
|
+
...detectReactQuery(content, filePath),
|
|
193
|
+
...detectSWR(content, filePath),
|
|
194
|
+
...detectRedisCache(content, filePath),
|
|
195
|
+
...detectMemoryCache(content, filePath),
|
|
196
|
+
...detectLocalStorage(content, filePath),
|
|
197
|
+
...detectSessionStorage(content, filePath),
|
|
198
|
+
...detectIndexedDB(content, filePath),
|
|
199
|
+
];
|
|
200
|
+
const violations = [];
|
|
201
|
+
const httpCacheCount = patterns.filter((p) => p.type === 'http-cache-control' || p.type === 'etag').length;
|
|
202
|
+
const clientCacheCount = patterns.filter((p) => p.type === 'local-storage' || p.type === 'session-storage' || p.type === 'indexed-db').length;
|
|
203
|
+
const usesReactQuery = patterns.some((p) => p.type === 'react-query');
|
|
204
|
+
const usesSWR = patterns.some((p) => p.type === 'swr');
|
|
205
|
+
let confidence = 0.7;
|
|
206
|
+
if (patterns.length > 0)
|
|
207
|
+
confidence += 0.15;
|
|
208
|
+
if (usesReactQuery || usesSWR)
|
|
209
|
+
confidence += 0.1;
|
|
210
|
+
confidence = Math.min(confidence, 0.95);
|
|
211
|
+
return {
|
|
212
|
+
patterns,
|
|
213
|
+
violations,
|
|
214
|
+
httpCacheCount,
|
|
215
|
+
clientCacheCount,
|
|
216
|
+
usesReactQuery,
|
|
217
|
+
usesSWR,
|
|
218
|
+
confidence,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
// ============================================================================
|
|
222
|
+
// Detector Class
|
|
223
|
+
// ============================================================================
|
|
224
|
+
export class CachingPatternsDetector extends RegexDetector {
|
|
225
|
+
id = 'performance/caching-patterns';
|
|
226
|
+
name = 'Caching Patterns Detector';
|
|
227
|
+
description = 'Detects caching patterns including HTTP, client, and server caching';
|
|
228
|
+
category = 'performance';
|
|
229
|
+
subcategory = 'caching-patterns';
|
|
230
|
+
supportedLanguages = ['typescript', 'javascript', 'python'];
|
|
231
|
+
async detect(context) {
|
|
232
|
+
if (!this.supportsLanguage(context.language)) {
|
|
233
|
+
return this.createEmptyResult();
|
|
234
|
+
}
|
|
235
|
+
const analysis = analyzeCachingPatterns(context.content, context.file);
|
|
236
|
+
if (analysis.patterns.length === 0 && analysis.violations.length === 0) {
|
|
237
|
+
return this.createEmptyResult();
|
|
238
|
+
}
|
|
239
|
+
return this.createResult([], [], analysis.confidence, {
|
|
240
|
+
custom: {
|
|
241
|
+
patterns: analysis.patterns,
|
|
242
|
+
violations: analysis.violations,
|
|
243
|
+
httpCacheCount: analysis.httpCacheCount,
|
|
244
|
+
clientCacheCount: analysis.clientCacheCount,
|
|
245
|
+
usesReactQuery: analysis.usesReactQuery,
|
|
246
|
+
usesSWR: analysis.usesSWR,
|
|
247
|
+
},
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
generateQuickFix(_violation) {
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
export function createCachingPatternsDetector() {
|
|
255
|
+
return new CachingPatternsDetector();
|
|
256
|
+
}
|
|
257
|
+
//# sourceMappingURL=caching-patterns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caching-patterns.js","sourceRoot":"","sources":["../../src/performance/caching-patterns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAsD1D,+EAA+E;AAC/E,YAAY;AACZ,+EAA+E;AAE/E,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,iBAAiB;IACjB,gBAAgB;IAChB,cAAc;IACd,eAAe;IACf,yBAAyB;IACzB,WAAW;IACX,WAAW;CACH,CAAC;AAEX,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,QAAQ;IACR,iBAAiB;IACjB,qBAAqB;IACrB,iBAAiB;CACT,CAAC;AAEX,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,gBAAgB;IAChB,2BAA2B;IAC3B,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,WAAW;CACH,CAAC;AAEX,MAAM,CAAC,MAAM,oBAAoB,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,CAAC,IAAI,CAAC,CAAC;QAEvE,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvE,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAClC,CAAC;QAED,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,CAAC,UAAU,EAAE;YACpD,MAAM,EAAE;gBACN,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,UAAU,EAAE,QAAQ,CAAC,UAAU;gBAC/B,cAAc,EAAE,QAAQ,CAAC,cAAc;gBACvC,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;gBAC3C,cAAc,EAAE,QAAQ,CAAC,cAAc;gBACvC,OAAO,EAAE,QAAQ,CAAC,OAAO;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,UAAqB;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED,MAAM,UAAU,6BAA6B;IAC3C,OAAO,IAAI,uBAAuB,EAAE,CAAC;AACvC,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code Splitting Detector - Code splitting pattern detection
|
|
3
|
+
*
|
|
4
|
+
* Detects code splitting patterns including:
|
|
5
|
+
* - Dynamic imports
|
|
6
|
+
* - React.lazy
|
|
7
|
+
* - Next.js dynamic imports
|
|
8
|
+
* - Route-based splitting
|
|
9
|
+
* - Component-based splitting
|
|
10
|
+
* - Vendor chunk patterns
|
|
11
|
+
* - Webpack magic comments
|
|
12
|
+
*
|
|
13
|
+
* @requirements 19.1 - Code splitting patterns
|
|
14
|
+
*/
|
|
15
|
+
import type { Violation, QuickFix, PatternCategory, Language } from 'driftdetect-core';
|
|
16
|
+
import { RegexDetector } from '../base/regex-detector.js';
|
|
17
|
+
import type { DetectionContext, DetectionResult } from '../base/base-detector.js';
|
|
18
|
+
export type CodeSplittingPatternType = 'dynamic-import' | 'react-lazy' | 'next-dynamic' | 'route-splitting' | 'component-splitting' | 'vendor-chunk' | 'webpack-magic-comment' | 'suspense-boundary' | 'loadable-component' | 'prefetch-hint';
|
|
19
|
+
export type CodeSplittingViolationType = 'missing-suspense' | 'eager-import' | 'large-bundle' | 'missing-chunk-name';
|
|
20
|
+
export interface CodeSplittingPatternInfo {
|
|
21
|
+
type: CodeSplittingPatternType;
|
|
22
|
+
file: string;
|
|
23
|
+
line: number;
|
|
24
|
+
column: number;
|
|
25
|
+
matchedText: string;
|
|
26
|
+
chunkName?: string | undefined;
|
|
27
|
+
importPath?: string | undefined;
|
|
28
|
+
context?: string | undefined;
|
|
29
|
+
}
|
|
30
|
+
export interface CodeSplittingViolationInfo {
|
|
31
|
+
type: CodeSplittingViolationType;
|
|
32
|
+
file: string;
|
|
33
|
+
line: number;
|
|
34
|
+
column: number;
|
|
35
|
+
matchedText: string;
|
|
36
|
+
issue: string;
|
|
37
|
+
suggestedFix?: string | undefined;
|
|
38
|
+
severity: 'high' | 'medium' | 'low';
|
|
39
|
+
}
|
|
40
|
+
export interface CodeSplittingAnalysis {
|
|
41
|
+
patterns: CodeSplittingPatternInfo[];
|
|
42
|
+
violations: CodeSplittingViolationInfo[];
|
|
43
|
+
dynamicImportCount: number;
|
|
44
|
+
lazyComponentCount: number;
|
|
45
|
+
hasSuspenseBoundaries: boolean;
|
|
46
|
+
usesWebpackComments: boolean;
|
|
47
|
+
confidence: number;
|
|
48
|
+
}
|
|
49
|
+
export declare const DYNAMIC_IMPORT_PATTERNS: readonly [RegExp, RegExp, RegExp];
|
|
50
|
+
export declare const REACT_LAZY_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
51
|
+
export declare const NEXT_DYNAMIC_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
52
|
+
export declare const ROUTE_SPLITTING_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
53
|
+
export declare const COMPONENT_SPLITTING_PATTERNS: readonly [RegExp, RegExp];
|
|
54
|
+
export declare const VENDOR_CHUNK_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
55
|
+
export declare const WEBPACK_MAGIC_COMMENT_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
56
|
+
export declare const SUSPENSE_BOUNDARY_PATTERNS: readonly [RegExp, RegExp, RegExp];
|
|
57
|
+
export declare const LOADABLE_COMPONENT_PATTERNS: readonly [RegExp, RegExp, RegExp];
|
|
58
|
+
export declare const PREFETCH_HINT_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp];
|
|
59
|
+
export declare const MISSING_SUSPENSE_PATTERNS: readonly [RegExp];
|
|
60
|
+
export declare const EAGER_IMPORT_PATTERNS: readonly [RegExp, RegExp];
|
|
61
|
+
export declare function shouldExcludeFile(filePath: string): boolean;
|
|
62
|
+
export declare function detectDynamicImports(content: string, filePath: string): CodeSplittingPatternInfo[];
|
|
63
|
+
export declare function detectReactLazy(content: string, filePath: string): CodeSplittingPatternInfo[];
|
|
64
|
+
export declare function detectNextDynamic(content: string, filePath: string): CodeSplittingPatternInfo[];
|
|
65
|
+
export declare function detectRouteSplitting(content: string, filePath: string): CodeSplittingPatternInfo[];
|
|
66
|
+
export declare function detectComponentSplitting(content: string, filePath: string): CodeSplittingPatternInfo[];
|
|
67
|
+
export declare function detectVendorChunk(content: string, filePath: string): CodeSplittingPatternInfo[];
|
|
68
|
+
export declare function detectWebpackMagicComment(content: string, filePath: string): CodeSplittingPatternInfo[];
|
|
69
|
+
export declare function detectSuspenseBoundary(content: string, filePath: string): CodeSplittingPatternInfo[];
|
|
70
|
+
export declare function detectLoadableComponent(content: string, filePath: string): CodeSplittingPatternInfo[];
|
|
71
|
+
export declare function detectPrefetchHint(content: string, filePath: string): CodeSplittingPatternInfo[];
|
|
72
|
+
export declare function detectMissingSuspenseViolations(content: string, filePath: string): CodeSplittingViolationInfo[];
|
|
73
|
+
export declare function detectEagerImportViolations(content: string, filePath: string): CodeSplittingViolationInfo[];
|
|
74
|
+
export declare function analyzeCodeSplitting(content: string, filePath: string): CodeSplittingAnalysis;
|
|
75
|
+
export declare class CodeSplittingDetector extends RegexDetector {
|
|
76
|
+
readonly id = "performance/code-splitting";
|
|
77
|
+
readonly name = "Code Splitting Detector";
|
|
78
|
+
readonly description = "Detects code splitting patterns including dynamic imports and lazy loading";
|
|
79
|
+
readonly category: PatternCategory;
|
|
80
|
+
readonly subcategory = "code-splitting";
|
|
81
|
+
readonly supportedLanguages: Language[];
|
|
82
|
+
detect(context: DetectionContext): Promise<DetectionResult>;
|
|
83
|
+
generateQuickFix(_violation: Violation): QuickFix | null;
|
|
84
|
+
}
|
|
85
|
+
export declare function createCodeSplittingDetector(): CodeSplittingDetector;
|
|
86
|
+
//# sourceMappingURL=code-splitting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-splitting.d.ts","sourceRoot":"","sources":["../../src/performance/code-splitting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAMlF,MAAM,MAAM,wBAAwB,GAChC,gBAAgB,GAChB,YAAY,GACZ,cAAc,GACd,iBAAiB,GACjB,qBAAqB,GACrB,cAAc,GACd,uBAAuB,GACvB,mBAAmB,GACnB,oBAAoB,GACpB,eAAe,CAAC;AAEpB,MAAM,MAAM,0BAA0B,GAClC,kBAAkB,GAClB,cAAc,GACd,cAAc,GACd,oBAAoB,CAAC;AAEzB,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,wBAAwB,CAAC;IAC/B,IAAI,EAAE,MAAM,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