immosquare-cleaner 0.1.62 → 0.1.63
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.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/lib/immosquare-cleaner.rb +48 -18
- data/linters/erb-lint-3.4.1.yml +14 -0
- data/linters/rubocop-3.4.1.yml +2 -0
- data/node_modules/@eslint/config-array/README.md +3 -3
- data/node_modules/@eslint/config-array/dist/cjs/index.d.cts +1 -1
- data/node_modules/@eslint/config-array/package.json +3 -3
- data/node_modules/@eslint/core/README.md +3 -3
- data/node_modules/@eslint/core/dist/cjs/types.d.cts +102 -23
- data/node_modules/@eslint/core/dist/esm/types.d.ts +102 -23
- data/node_modules/@eslint/core/package.json +1 -1
- data/node_modules/@eslint/eslintrc/conf/environments.js +1 -1
- data/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +21 -12
- data/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -1
- data/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +59 -34
- data/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -1
- data/node_modules/@eslint/eslintrc/dist/eslintrc.d.cts +76 -0
- data/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +6 -4
- data/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +2 -0
- data/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +5 -5
- data/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +2 -2
- data/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +6 -5
- data/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +7 -5
- data/node_modules/@eslint/eslintrc/lib/config-array-factory.js +13 -6
- data/node_modules/@eslint/eslintrc/lib/flat-compat.js +4 -3
- data/node_modules/@eslint/eslintrc/lib/shared/ajv.js +1 -1
- data/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +2 -2
- data/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +17 -8
- data/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +1 -1
- data/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +2 -1
- data/node_modules/@eslint/eslintrc/lib/types/index.d.ts +76 -0
- data/node_modules/@eslint/eslintrc/package.json +11 -9
- data/node_modules/@eslint/eslintrc/universal.js +2 -1
- data/node_modules/@eslint/js/package.json +1 -1
- data/node_modules/@eslint/js/src/index.js +2 -2
- data/node_modules/@eslint/object-schema/README.md +3 -3
- data/node_modules/@eslint/object-schema/dist/cjs/index.d.cts +2 -2
- data/node_modules/@eslint/object-schema/package.json +2 -2
- data/node_modules/@eslint/plugin-kit/README.md +3 -3
- data/node_modules/@eslint/plugin-kit/dist/cjs/index.d.cts +2 -2
- data/node_modules/@eslint/plugin-kit/package.json +9 -8
- data/node_modules/@humanwhocodes/retry/dist/retrier.cjs +7 -7
- data/node_modules/@humanwhocodes/retry/dist/retrier.js +7 -7
- data/node_modules/@humanwhocodes/retry/dist/retrier.min.js +1 -1
- data/node_modules/@humanwhocodes/retry/dist/retrier.mjs +7 -7
- data/node_modules/@humanwhocodes/retry/package.json +1 -1
- data/node_modules/eslint/README.md +36 -16
- data/node_modules/eslint/conf/rule-type-list.json +82 -18
- data/node_modules/eslint/lib/cli.js +34 -4
- data/node_modules/eslint/lib/config/config-loader.js +43 -26
- data/node_modules/eslint/lib/config/config.js +6 -1
- data/node_modules/eslint/lib/config/flat-config-schema.js +16 -1
- data/node_modules/eslint/lib/config/rule-validator.js +12 -2
- data/node_modules/eslint/lib/eslint/eslint.js +10 -7
- data/node_modules/eslint/lib/linter/linter.js +98 -8
- data/node_modules/eslint/lib/options.js +19 -0
- data/node_modules/eslint/lib/rules/array-bracket-newline.js +20 -2
- data/node_modules/eslint/lib/rules/array-bracket-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/array-element-newline.js +20 -2
- data/node_modules/eslint/lib/rules/arrow-body-style.js +2 -1
- data/node_modules/eslint/lib/rules/arrow-parens.js +20 -2
- data/node_modules/eslint/lib/rules/arrow-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/block-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/brace-style.js +20 -2
- data/node_modules/eslint/lib/rules/callback-return.js +19 -3
- data/node_modules/eslint/lib/rules/camelcase.js +1 -0
- data/node_modules/eslint/lib/rules/capitalized-comments.js +1 -0
- data/node_modules/eslint/lib/rules/comma-dangle.js +20 -2
- data/node_modules/eslint/lib/rules/comma-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/comma-style.js +20 -2
- data/node_modules/eslint/lib/rules/computed-property-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/consistent-this.js +10 -0
- data/node_modules/eslint/lib/rules/curly.js +1 -0
- data/node_modules/eslint/lib/rules/default-case-last.js +2 -2
- data/node_modules/eslint/lib/rules/default-param-last.js +1 -0
- data/node_modules/eslint/lib/rules/dot-location.js +20 -2
- data/node_modules/eslint/lib/rules/dot-notation.js +1 -0
- data/node_modules/eslint/lib/rules/eol-last.js +20 -2
- data/node_modules/eslint/lib/rules/func-call-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/func-name-matching.js +1 -0
- data/node_modules/eslint/lib/rules/func-style.js +1 -0
- data/node_modules/eslint/lib/rules/function-call-argument-newline.js +20 -2
- data/node_modules/eslint/lib/rules/function-paren-newline.js +20 -2
- data/node_modules/eslint/lib/rules/generator-star-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/global-require.js +19 -3
- data/node_modules/eslint/lib/rules/handle-callback-err.js +19 -3
- data/node_modules/eslint/lib/rules/id-blacklist.js +14 -2
- data/node_modules/eslint/lib/rules/id-denylist.js +1 -0
- data/node_modules/eslint/lib/rules/id-length.js +1 -0
- data/node_modules/eslint/lib/rules/id-match.js +1 -0
- data/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +20 -2
- data/node_modules/eslint/lib/rules/indent-legacy.js +19 -3
- data/node_modules/eslint/lib/rules/indent.js +20 -2
- data/node_modules/eslint/lib/rules/init-declarations.js +1 -0
- data/node_modules/eslint/lib/rules/jsx-quotes.js +20 -2
- data/node_modules/eslint/lib/rules/key-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/keyword-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/line-comment-position.js +20 -2
- data/node_modules/eslint/lib/rules/linebreak-style.js +20 -2
- data/node_modules/eslint/lib/rules/lines-around-comment.js +20 -2
- data/node_modules/eslint/lib/rules/lines-around-directive.js +20 -2
- data/node_modules/eslint/lib/rules/lines-between-class-members.js +20 -2
- data/node_modules/eslint/lib/rules/logical-assignment-operators.js +1 -0
- data/node_modules/eslint/lib/rules/max-len.js +20 -2
- data/node_modules/eslint/lib/rules/max-statements-per-line.js +20 -2
- data/node_modules/eslint/lib/rules/multiline-comment-style.js +20 -2
- data/node_modules/eslint/lib/rules/multiline-ternary.js +20 -2
- data/node_modules/eslint/lib/rules/new-parens.js +20 -2
- data/node_modules/eslint/lib/rules/newline-after-var.js +20 -3
- data/node_modules/eslint/lib/rules/newline-before-return.js +20 -2
- data/node_modules/eslint/lib/rules/newline-per-chained-call.js +20 -2
- data/node_modules/eslint/lib/rules/no-buffer-constructor.js +19 -3
- data/node_modules/eslint/lib/rules/no-catch-shadow.js +14 -3
- data/node_modules/eslint/lib/rules/no-confusing-arrow.js +20 -2
- data/node_modules/eslint/lib/rules/no-console.js +3 -1
- data/node_modules/eslint/lib/rules/no-continue.js +1 -0
- data/node_modules/eslint/lib/rules/no-div-regex.js +1 -0
- data/node_modules/eslint/lib/rules/no-else-return.js +1 -0
- data/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +1 -0
- data/node_modules/eslint/lib/rules/no-extra-label.js +1 -0
- data/node_modules/eslint/lib/rules/no-extra-parens.js +20 -2
- data/node_modules/eslint/lib/rules/no-extra-semi.js +20 -2
- data/node_modules/eslint/lib/rules/no-floating-decimal.js +20 -2
- data/node_modules/eslint/lib/rules/no-implicit-coercion.js +1 -0
- data/node_modules/eslint/lib/rules/no-inline-comments.js +1 -0
- data/node_modules/eslint/lib/rules/no-label-var.js +1 -0
- data/node_modules/eslint/lib/rules/no-labels.js +1 -0
- data/node_modules/eslint/lib/rules/no-lonely-if.js +1 -0
- data/node_modules/eslint/lib/rules/no-magic-numbers.js +1 -0
- data/node_modules/eslint/lib/rules/no-mixed-operators.js +20 -2
- data/node_modules/eslint/lib/rules/no-mixed-requires.js +19 -3
- data/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +20 -2
- data/node_modules/eslint/lib/rules/no-multi-spaces.js +20 -2
- data/node_modules/eslint/lib/rules/no-multi-str.js +1 -0
- data/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +20 -2
- data/node_modules/eslint/lib/rules/no-native-reassign.js +14 -3
- data/node_modules/eslint/lib/rules/no-negated-condition.js +1 -0
- data/node_modules/eslint/lib/rules/no-negated-in-lhs.js +14 -3
- data/node_modules/eslint/lib/rules/no-nested-ternary.js +1 -0
- data/node_modules/eslint/lib/rules/no-new-object.js +14 -5
- data/node_modules/eslint/lib/rules/no-new-require.js +19 -3
- data/node_modules/eslint/lib/rules/no-new-symbol.js +14 -5
- data/node_modules/eslint/lib/rules/no-path-concat.js +19 -3
- data/node_modules/eslint/lib/rules/no-plusplus.js +1 -0
- data/node_modules/eslint/lib/rules/no-process-env.js +19 -3
- data/node_modules/eslint/lib/rules/no-process-exit.js +19 -3
- data/node_modules/eslint/lib/rules/no-restricted-modules.js +19 -3
- data/node_modules/eslint/lib/rules/no-return-await.js +7 -3
- data/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +17 -7
- data/node_modules/eslint/lib/rules/no-spaced-func.js +20 -3
- data/node_modules/eslint/lib/rules/no-sync.js +19 -3
- data/node_modules/eslint/lib/rules/no-tabs.js +20 -2
- data/node_modules/eslint/lib/rules/no-ternary.js +1 -0
- data/node_modules/eslint/lib/rules/no-trailing-spaces.js +20 -2
- data/node_modules/eslint/lib/rules/no-undef-init.js +1 -0
- data/node_modules/eslint/lib/rules/no-undefined.js +1 -0
- data/node_modules/eslint/lib/rules/no-underscore-dangle.js +1 -0
- data/node_modules/eslint/lib/rules/no-unneeded-ternary.js +1 -0
- data/node_modules/eslint/lib/rules/no-useless-computed-key.js +1 -0
- data/node_modules/eslint/lib/rules/no-useless-concat.js +1 -0
- data/node_modules/eslint/lib/rules/no-void.js +1 -0
- data/node_modules/eslint/lib/rules/no-warning-comments.js +1 -0
- data/node_modules/eslint/lib/rules/no-whitespace-before-property.js +20 -2
- data/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +20 -2
- data/node_modules/eslint/lib/rules/object-curly-newline.js +20 -2
- data/node_modules/eslint/lib/rules/object-curly-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/object-property-newline.js +20 -2
- data/node_modules/eslint/lib/rules/object-shorthand.js +1 -0
- data/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +20 -2
- data/node_modules/eslint/lib/rules/one-var.js +1 -0
- data/node_modules/eslint/lib/rules/operator-assignment.js +1 -0
- data/node_modules/eslint/lib/rules/operator-linebreak.js +20 -2
- data/node_modules/eslint/lib/rules/padded-blocks.js +20 -2
- data/node_modules/eslint/lib/rules/padding-line-between-statements.js +20 -2
- data/node_modules/eslint/lib/rules/prefer-arrow-callback.js +1 -0
- data/node_modules/eslint/lib/rules/prefer-destructuring.js +1 -0
- data/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +1 -0
- data/node_modules/eslint/lib/rules/prefer-numeric-literals.js +1 -0
- data/node_modules/eslint/lib/rules/prefer-object-spread.js +1 -0
- data/node_modules/eslint/lib/rules/prefer-reflect.js +7 -3
- data/node_modules/eslint/lib/rules/prefer-spread.js +1 -0
- data/node_modules/eslint/lib/rules/prefer-template.js +1 -0
- data/node_modules/eslint/lib/rules/quote-props.js +20 -2
- data/node_modules/eslint/lib/rules/quotes.js +20 -2
- data/node_modules/eslint/lib/rules/rest-spread-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/semi-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/semi-style.js +20 -2
- data/node_modules/eslint/lib/rules/semi.js +20 -2
- data/node_modules/eslint/lib/rules/sort-imports.js +3 -2
- data/node_modules/eslint/lib/rules/sort-keys.js +1 -0
- data/node_modules/eslint/lib/rules/sort-vars.js +1 -0
- data/node_modules/eslint/lib/rules/space-before-blocks.js +20 -2
- data/node_modules/eslint/lib/rules/space-before-function-paren.js +20 -2
- data/node_modules/eslint/lib/rules/space-in-parens.js +20 -2
- data/node_modules/eslint/lib/rules/space-infix-ops.js +20 -2
- data/node_modules/eslint/lib/rules/space-unary-ops.js +20 -2
- data/node_modules/eslint/lib/rules/spaced-comment.js +20 -2
- data/node_modules/eslint/lib/rules/switch-colon-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/template-curly-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/template-tag-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/vars-on-top.js +1 -0
- data/node_modules/eslint/lib/rules/wrap-iife.js +20 -2
- data/node_modules/eslint/lib/rules/wrap-regex.js +20 -2
- data/node_modules/eslint/lib/rules/yield-star-spacing.js +20 -2
- data/node_modules/eslint/lib/rules/yoda.js +1 -0
- data/node_modules/eslint/lib/shared/flags.js +44 -6
- data/node_modules/eslint/lib/shared/option-utils.js +56 -0
- data/node_modules/eslint/lib/shared/types.js +19 -1
- data/node_modules/eslint/lib/types/index.d.ts +82 -64
- data/node_modules/eslint/lib/types/rules/best-practices.d.ts +109 -95
- data/node_modules/eslint/lib/types/rules/deprecated.d.ts +32 -15
- data/node_modules/eslint/lib/types/rules/ecmascript-6.d.ts +39 -39
- data/node_modules/eslint/lib/types/rules/node-commonjs.d.ts +23 -12
- data/node_modules/eslint/lib/types/rules/possible-errors.d.ts +86 -54
- data/node_modules/eslint/lib/types/rules/strict-mode.d.ts +1 -1
- data/node_modules/eslint/lib/types/rules/stylistic-issues.d.ts +105 -99
- data/node_modules/eslint/lib/types/rules/variables.d.ts +12 -12
- data/node_modules/eslint/messages/config-plugin-missing.js +14 -0
- data/node_modules/eslint/messages/config-serialize-function.js +28 -0
- data/node_modules/eslint/messages/eslintrc-plugins.js +6 -2
- data/node_modules/eslint/package.json +11 -9
- data/node_modules/eslint-plugin-sonarjs/README.md +2 -2
- data/node_modules/eslint-plugin-sonarjs/cjs/S100/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S100/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S100/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S100/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S101/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S101/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S101/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S101/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S104/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S104/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S104/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S104/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S105/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S105/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S105/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S105/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1066/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1066/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1066/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1066/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1067/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1067/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1067/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1067/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1110/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1110/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1110/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1110/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1119/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1119/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1119/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1119/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1121/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1121/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1121/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1121/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1125/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1125/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1125/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1125/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1126/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1126/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1126/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1128/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1128/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1128/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1128/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1134/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1134/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1134/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1134/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1135/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1135/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1135/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1135/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1154/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1154/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1154/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1154/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S117/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S117/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S117/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S117/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1172/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1172/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1172/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1172/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1192/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1192/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1192/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1192/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1219/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1219/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1219/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1219/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1226/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1226/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1226/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1226/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S124/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S124/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S124/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S124/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S125/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S125/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S125/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S125/rule.js +15 -35
- data/node_modules/eslint-plugin-sonarjs/cjs/S126/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S126/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S126/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S126/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1264/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1264/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1264/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1264/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S128/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S128/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S128/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S128/rule.js +2 -5
- data/node_modules/eslint-plugin-sonarjs/cjs/S1291/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1291/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1291/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1291/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1301/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1301/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1301/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1301/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1313/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1313/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1313/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1313/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S134/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S134/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S134/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S134/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S135/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S135/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S135/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S135/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S138/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S138/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S138/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S138/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1439/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1439/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1439/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1439/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1444/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1444/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1444/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1444/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1451/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1451/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1451/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1451/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1472/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1472/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1472/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1472/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1479/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1479/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1479/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1479/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1481/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1481/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1481/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1481/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1488/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1488/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1488/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1488/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1515/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1515/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1515/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1515/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1523/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1523/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1523/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1523/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1526/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1526/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1526/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1526/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1527/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1527/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1527/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1527/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1528/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1528/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1528/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1529/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1529/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1529/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1529/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1530/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1530/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1530/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1530/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1533/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1533/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1533/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1533/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1535/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1535/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1535/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1535/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1541/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1541/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1541/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1541/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1607/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1607/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1607/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1607/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1751/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1751/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1751/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1751/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1764/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1764/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1764/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1764/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1821/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1821/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1821/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1821/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1848/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1848/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1848/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1848/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1854/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1854/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1854/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1854/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1862/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1862/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1862/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1862/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1871/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1871/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1871/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1871/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1874/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1874/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1874/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1874/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1940/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1940/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1940/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1940/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1994/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1994/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1994/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S1994/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2004/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2004/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2004/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2004/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2068/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2068/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2068/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2068/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2077/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2077/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2077/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2077/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2092/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2092/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2092/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2092/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2123/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2123/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2123/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2123/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2137/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2137/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2137/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2137/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2138/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2138/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2138/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2138/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2187/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2187/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2187/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2187/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2201/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2201/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2201/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2201/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2208/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2208/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2208/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2208/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2234/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2234/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2234/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2234/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2245/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2245/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2245/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2245/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2251/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2251/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2251/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2251/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2255/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2255/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2255/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2255/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2259/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2259/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2259/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2259/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2301/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2301/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2301/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2301/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2310/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2310/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2310/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2310/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2392/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2392/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2392/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2392/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2424/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2424/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2424/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2424/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2428/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2428/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2428/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2428/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2486/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2486/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2486/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2486/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2589/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2589/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2589/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2589/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2598/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2598/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2598/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2598/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2612/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2612/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2612/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2612/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2639/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2639/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2639/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2639/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2681/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2681/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2681/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2681/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2692/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2692/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2692/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2692/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2699/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2699/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2699/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2703/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2703/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2703/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2703/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2737/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2737/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2737/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2737/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2755/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2755/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2755/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2755/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2757/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2757/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2757/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2757/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2817/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2817/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2817/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2817/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2819/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2819/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2819/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2819/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2870/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2870/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2870/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2870/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2871/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2871/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2871/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2871/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2970/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2970/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2970/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2970/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2990/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2990/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2990/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2990/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2999/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2999/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2999/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S2999/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3001/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3001/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3001/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3001/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3003/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3003/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3003/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3003/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3317/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3317/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3317/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3317/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3330/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3330/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3330/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3330/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3358/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3358/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3358/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3358/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3402/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3402/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3402/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3402/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3403/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3403/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3403/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3403/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3415/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3415/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3415/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3415/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3499/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3499/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3499/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3499/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3500/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3500/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3500/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3500/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3513/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3513/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3513/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3513/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3514/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3514/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3514/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3514/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3516/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3516/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3516/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3516/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3524/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3524/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3524/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3524/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3525/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3525/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3525/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3525/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3531/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3531/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3531/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3531/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3533/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3533/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3533/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3533/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3579/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3579/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3579/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3579/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3616/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3616/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3616/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3616/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3626/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3626/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3626/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3626/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3686/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3686/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3686/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3686/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3699/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3699/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3699/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3699/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3723/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3723/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3723/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3723/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3735/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3735/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3735/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3735/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3757/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3757/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3757/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3757/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3758/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3758/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3758/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3758/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3760/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3760/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3760/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3760/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3776/generated-meta.js +2 -2
- data/node_modules/eslint-plugin-sonarjs/cjs/S3776/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3776/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3776/rule.js +3 -2
- data/node_modules/eslint-plugin-sonarjs/cjs/S3782/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3782/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3782/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3782/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3785/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3785/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3785/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3785/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3796/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3796/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3796/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3796/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3798/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3798/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3798/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3800/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3800/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3800/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3800/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3801/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3801/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3801/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3801/rule.js +21 -2
- data/node_modules/eslint-plugin-sonarjs/cjs/S3827/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3827/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3827/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3854/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3854/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3854/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3854/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3923/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3923/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3923/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3923/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3972/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3972/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3972/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3972/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3973/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3973/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3973/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3973/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3981/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3981/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3981/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3981/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3984/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3984/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3984/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S3984/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4030/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4030/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4030/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4030/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4036/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4036/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4036/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4036/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4043/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4043/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4043/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4043/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4123/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4123/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4123/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4123/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4139/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4139/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4139/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4139/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4143/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4143/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4143/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4143/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4144/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4144/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4144/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4144/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4158/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4158/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4158/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4158/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4165/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4165/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4165/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4165/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4322/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4322/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4322/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4322/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4323/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4323/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4323/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4323/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4324/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4324/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4324/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4324/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4328/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4328/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4328/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4328/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4335/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4335/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4335/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4335/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4423/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4423/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4423/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4423/rule.aws.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4423/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4423/rule.lib.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4426/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4426/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4426/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4426/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4502/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4502/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4502/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4502/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4507/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4507/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4507/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4507/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4524/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4524/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4524/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4524/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4619/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4619/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4619/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4619/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4621/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4621/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4621/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4621/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4622/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4622/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4622/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4622/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4623/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4623/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4623/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4623/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4624/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4624/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4624/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4624/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4634/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4634/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4634/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4634/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4721/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4721/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4721/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4721/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4782/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4782/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4782/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4782/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4784/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4784/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4784/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4784/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4787/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4787/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4787/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4787/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4790/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4790/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4790/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4790/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4798/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4798/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4798/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4798/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4817/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4817/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4817/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4817/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4818/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4818/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4818/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4818/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4822/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4822/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4822/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4822/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4823/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4823/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4823/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4823/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4829/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4829/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4829/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4829/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4830/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4830/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4830/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S4830/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5042/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5042/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5042/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5042/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5122/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5122/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5122/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5122/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5148/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5148/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5148/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5148/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5247/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5247/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5247/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5247/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5256/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5256/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5256/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5256/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5257/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5257/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5257/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5257/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5260/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5260/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5260/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5260/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5264/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5264/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5264/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5264/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5332/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5332/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5332/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5332/rule.aws.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5332/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5332/rule.lib.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5443/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5443/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5443/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5443/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5527/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5527/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5527/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5527/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5542/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5542/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5542/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5542/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5547/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5547/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5547/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5547/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5604/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5604/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5604/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5604/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5659/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5659/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5659/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5659/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5689/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5689/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5689/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5689/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5691/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5691/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5691/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5691/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5693/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5693/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5693/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5693/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5725/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5725/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5725/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5725/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5728/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5728/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5728/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5728/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5730/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5730/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5730/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5730/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5732/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5732/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5732/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5732/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5734/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5734/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5734/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5734/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5736/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5736/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5736/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5736/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5739/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5739/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5739/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5739/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5742/generated-meta.js +3 -3
- data/node_modules/eslint-plugin-sonarjs/cjs/S5742/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5742/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5742/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5743/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5743/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5743/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5743/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5757/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5757/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5757/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5757/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5759/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5759/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5759/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5759/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5842/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5842/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5842/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5842/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5843/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5843/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5843/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5843/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5850/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5850/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5850/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5850/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5852/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5852/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5852/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5852/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5856/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5856/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5856/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5856/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5860/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5860/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5860/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5860/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5863/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5863/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5863/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5863/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5867/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5867/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5867/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5867/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5868/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5868/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5868/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5868/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5869/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5869/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5869/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5869/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5876/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5876/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5876/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5876/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5958/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5958/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5958/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5958/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5973/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5973/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5973/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S5973/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6019/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6019/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6019/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6019/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6035/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6035/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6035/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6035/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6079/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6079/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6079/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6079/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6080/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6080/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6080/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6080/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6092/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6092/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6092/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6092/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6245/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6245/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6245/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6245/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6249/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6249/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6249/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6249/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6252/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6252/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6252/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6252/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6265/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6265/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6265/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6265/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6268/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6268/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6268/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6268/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6270/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6270/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6270/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6270/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6275/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6275/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6275/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6275/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6281/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6281/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6281/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6281/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6299/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6299/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6299/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6299/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6302/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6302/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6302/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6302/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6303/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6303/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6303/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6303/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6304/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6304/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6304/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6304/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6308/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6308/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6308/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6308/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6317/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6317/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6317/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6317/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6319/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6319/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6319/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6319/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6321/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6321/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6321/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6321/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6323/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6323/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6323/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6323/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6324/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6324/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6324/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6324/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6326/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6326/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6326/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6326/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6327/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6327/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6327/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6327/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6328/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6328/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6328/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6328/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6329/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6329/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6329/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6329/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6330/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6330/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6330/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6330/rule.js +2 -2
- data/node_modules/eslint-plugin-sonarjs/cjs/S6331/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6331/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6331/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6331/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6332/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6332/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6332/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6332/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6333/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6333/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6333/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6333/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6351/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6351/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6351/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6351/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6353/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6353/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6353/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6353/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6397/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6397/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6397/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6397/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6418/generated-meta.js +21 -2
- data/node_modules/eslint-plugin-sonarjs/cjs/S6418/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6418/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6418/rule.js +2 -21
- data/node_modules/eslint-plugin-sonarjs/cjs/S6426/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6426/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6426/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6426/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6439/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6439/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6439/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6439/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6442/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6442/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6442/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6442/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6443/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6443/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6443/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6443/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6486/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6486/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6486/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6486/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6564/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6564/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6564/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6564/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6594/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6594/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6594/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6594/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6627/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6627/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6627/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6627/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6759/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6759/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6759/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6759/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6958/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6958/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6958/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6959/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6959/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6959/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S6959/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S7059/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S7059/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S7059/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S7059/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S881/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S881/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S881/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S881/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S888/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S888/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S888/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S888/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S930/generated-meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S930/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S930/meta.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/S930/rule.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/external/core.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/accessibility.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/aws/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/collection.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/decorators/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/decorators/interceptor.js +0 -4
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/files.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/find-files.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/find-up.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/globals.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/package-json.js +30 -9
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/recognizers/Detector.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/recognizers/detectors/CamelCaseDetector.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/recognizers/detectors/ContainsDetector.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/recognizers/detectors/EndWithDetector.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/recognizers/detectors/KeywordsDetector.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/recognizers/index.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/helpers/validate-version.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/cjs/plugin-rules.js +1 -1
- data/node_modules/eslint-plugin-sonarjs/package.json +2 -8
- data/node_modules/eslint-plugin-sonarjs/types/S3723/rule.d.ts +0 -1
- data/node_modules/eslint-plugin-sonarjs/types/S3776/generated-meta.d.ts +8 -2
- data/node_modules/eslint-plugin-sonarjs/types/S6418/generated-meta.d.ts +17 -0
- data/node_modules/eslint-plugin-sonarjs/types/helpers/package-json.d.ts +17 -1
- data/node_modules/eslint-plugin-sonarjs/types/plugin-rules.d.ts +0 -1
- data/node_modules/eslint-plugin-sonarjs/types/plugin.d.ts +4 -9
- data/node_modules/jscodeshift/CHANGELOG.md +63 -29
- data/node_modules/jscodeshift/README.md +1 -0
- data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.input.js +1 -0
- data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.js +11 -0
- data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.output.js +1 -0
- data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.input.js +1 -0
- data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.js +7 -0
- data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.output.js +1 -0
- data/node_modules/jscodeshift/dist/testUtils.js +30 -6
- data/node_modules/jscodeshift/package.json +4 -2
- data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.input.js +1 -0
- data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.js +11 -0
- data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.output.js +1 -0
- data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.input.js +1 -0
- data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.js +7 -0
- data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.output.js +1 -0
- data/node_modules/jscodeshift/src/testUtils.js +30 -6
- data/node_modules/jscodeshift/website/package.json +1 -1
- data/node_modules/prettier/LICENSE +0 -4373
- data/node_modules/prettier/README.md +7 -8
- data/node_modules/prettier/THIRD-PARTY-NOTICES.md +4416 -0
- data/node_modules/prettier/doc.js +237 -213
- data/node_modules/prettier/doc.mjs +237 -213
- data/node_modules/prettier/index.cjs +9 -1
- data/node_modules/prettier/index.d.ts +13 -3
- data/node_modules/prettier/index.mjs +619 -439
- data/node_modules/prettier/internal/cli.mjs +1923 -945
- data/node_modules/prettier/package.json +2 -1
- data/node_modules/prettier/plugins/acorn.js +1 -1
- data/node_modules/prettier/plugins/acorn.mjs +1 -1
- data/node_modules/prettier/plugins/angular.js +2 -2
- data/node_modules/prettier/plugins/angular.mjs +2 -2
- data/node_modules/prettier/plugins/babel.js +8 -8
- data/node_modules/prettier/plugins/babel.mjs +8 -8
- data/node_modules/prettier/plugins/estree.js +27 -27
- data/node_modules/prettier/plugins/estree.mjs +27 -27
- data/node_modules/prettier/plugins/flow.js +15 -15
- data/node_modules/prettier/plugins/flow.mjs +15 -15
- data/node_modules/prettier/plugins/glimmer.js +21 -21
- data/node_modules/prettier/plugins/glimmer.mjs +22 -22
- data/node_modules/prettier/plugins/graphql.js +16 -16
- data/node_modules/prettier/plugins/graphql.mjs +16 -16
- data/node_modules/prettier/plugins/html.js +17 -17
- data/node_modules/prettier/plugins/html.mjs +17 -17
- data/node_modules/prettier/plugins/markdown.js +42 -42
- data/node_modules/prettier/plugins/markdown.mjs +42 -42
- data/node_modules/prettier/plugins/meriyah.js +2 -2
- data/node_modules/prettier/plugins/meriyah.mjs +2 -2
- data/node_modules/prettier/plugins/postcss.js +26 -26
- data/node_modules/prettier/plugins/postcss.mjs +26 -26
- data/node_modules/prettier/plugins/typescript.js +10 -10
- data/node_modules/prettier/plugins/typescript.mjs +11 -11
- data/node_modules/prettier/plugins/yaml.js +65 -65
- data/node_modules/prettier/plugins/yaml.mjs +65 -65
- data/node_modules/prettier/standalone.d.ts +1 -1
- data/node_modules/prettier/standalone.js +24 -24
- data/node_modules/prettier/standalone.mjs +24 -24
- data/node_modules/semver/README.md +14 -4
- data/node_modules/semver/bin/semver.js +2 -1
- data/node_modules/semver/classes/semver.js +22 -6
- data/node_modules/semver/functions/diff.js +5 -12
- data/node_modules/semver/internal/re.js +2 -0
- data/node_modules/semver/package.json +8 -7
- data/package.json +8 -9
- metadata +44 -26
- data/node_modules/.bin/ncu +0 -1
- data/node_modules/.bin/npm-check-updates +0 -1
- data/node_modules/npm-check-updates/LICENSE +0 -13
- data/node_modules/npm-check-updates/README.md +0 -839
- data/node_modules/npm-check-updates/build/cli.d.ts +0 -1
- data/node_modules/npm-check-updates/build/cli.js +0 -29
- data/node_modules/npm-check-updates/build/cli.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-B5lQw6vg.js +0 -6
- data/node_modules/npm-check-updates/build/index-B5lQw6vg.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-BnIU43YD.js +0 -2
- data/node_modules/npm-check-updates/build/index-BnIU43YD.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-CUgqEqMa.js +0 -2
- data/node_modules/npm-check-updates/build/index-CUgqEqMa.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-D3Mtu-Hr.js +0 -58
- data/node_modules/npm-check-updates/build/index-D3Mtu-Hr.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-_DliZFxU.js +0 -5
- data/node_modules/npm-check-updates/build/index-_DliZFxU.js.map +0 -1
- data/node_modules/npm-check-updates/build/index.d.ts +0 -211
- data/node_modules/npm-check-updates/build/index.js +0 -551
- data/node_modules/npm-check-updates/build/index.js.map +0 -1
- data/node_modules/npm-check-updates/package.json +0 -179
- /data/node_modules/@eslint/plugin-kit/dist/cjs/{types.ts → types.cts} +0 -0
@@ -59,12 +59,12 @@ var require_dashify = __commonJS({
|
|
59
59
|
var require_minimist = __commonJS({
|
60
60
|
"node_modules/minimist/index.js"(exports, module) {
|
61
61
|
"use strict";
|
62
|
-
function hasKey(obj,
|
62
|
+
function hasKey(obj, keys2) {
|
63
63
|
var o = obj;
|
64
|
-
|
64
|
+
keys2.slice(0, -1).forEach(function(key2) {
|
65
65
|
o = o[key2] || {};
|
66
66
|
});
|
67
|
-
var key =
|
67
|
+
var key = keys2[keys2.length - 1];
|
68
68
|
return key in o;
|
69
69
|
}
|
70
70
|
function isNumber(x) {
|
@@ -125,10 +125,10 @@ var require_minimist = __commonJS({
|
|
125
125
|
function argDefined(key2, arg2) {
|
126
126
|
return flags.allBools && /^--[^=]+$/.test(arg2) || flags.strings[key2] || flags.bools[key2] || aliases[key2];
|
127
127
|
}
|
128
|
-
function setKey(obj,
|
128
|
+
function setKey(obj, keys2, value2) {
|
129
129
|
var o = obj;
|
130
|
-
for (var i2 = 0; i2 <
|
131
|
-
var key2 =
|
130
|
+
for (var i2 = 0; i2 < keys2.length - 1; i2++) {
|
131
|
+
var key2 = keys2[i2];
|
132
132
|
if (isConstructorOrProto(o, key2)) {
|
133
133
|
return;
|
134
134
|
}
|
@@ -143,7 +143,7 @@ var require_minimist = __commonJS({
|
|
143
143
|
}
|
144
144
|
o = o[key2];
|
145
145
|
}
|
146
|
-
var lastKey =
|
146
|
+
var lastKey = keys2[keys2.length - 1];
|
147
147
|
if (isConstructorOrProto(o, lastKey)) {
|
148
148
|
return;
|
149
149
|
}
|
@@ -295,7 +295,7 @@ var require_fast_json_stable_stringify = __commonJS({
|
|
295
295
|
};
|
296
296
|
}(opts.cmp);
|
297
297
|
var seen = [];
|
298
|
-
return function
|
298
|
+
return function stringify5(node) {
|
299
299
|
if (node && node.toJSON && typeof node.toJSON === "function") {
|
300
300
|
node = node.toJSON();
|
301
301
|
}
|
@@ -307,7 +307,7 @@ var require_fast_json_stable_stringify = __commonJS({
|
|
307
307
|
out = "[";
|
308
308
|
for (i = 0; i < node.length; i++) {
|
309
309
|
if (i) out += ",";
|
310
|
-
out +=
|
310
|
+
out += stringify5(node[i]) || "null";
|
311
311
|
}
|
312
312
|
return out + "]";
|
313
313
|
}
|
@@ -317,11 +317,11 @@ var require_fast_json_stable_stringify = __commonJS({
|
|
317
317
|
throw new TypeError("Converting circular structure to JSON");
|
318
318
|
}
|
319
319
|
var seenIndex = seen.push(node) - 1;
|
320
|
-
var
|
320
|
+
var keys2 = Object.keys(node).sort(cmp && cmp(node));
|
321
321
|
out = "";
|
322
|
-
for (i = 0; i <
|
323
|
-
var key =
|
324
|
-
var value =
|
322
|
+
for (i = 0; i < keys2.length; i++) {
|
323
|
+
var key = keys2[i];
|
324
|
+
var value = stringify5(node[key]);
|
325
325
|
if (!value) continue;
|
326
326
|
if (out) out += ",";
|
327
327
|
out += JSON.stringify(key) + ":" + value;
|
@@ -339,8 +339,8 @@ var require_common_path_prefix = __commonJS({
|
|
339
339
|
"use strict";
|
340
340
|
var { sep: DEFAULT_SEPARATOR } = __require("path");
|
341
341
|
var determineSeparator = (paths) => {
|
342
|
-
for (const
|
343
|
-
const match = /(\/|\\)/.exec(
|
342
|
+
for (const path12 of paths) {
|
343
|
+
const match = /(\/|\\)/.exec(path12);
|
344
344
|
if (match !== null) return match[0];
|
345
345
|
}
|
346
346
|
return DEFAULT_SEPARATOR;
|
@@ -350,8 +350,8 @@ var require_common_path_prefix = __commonJS({
|
|
350
350
|
if (first === "" || remaining.length === 0) return "";
|
351
351
|
const parts = first.split(sep);
|
352
352
|
let endOfPrefix = parts.length;
|
353
|
-
for (const
|
354
|
-
const compare =
|
353
|
+
for (const path12 of remaining) {
|
354
|
+
const compare = path12.split(sep);
|
355
355
|
for (let i = 0; i < endOfPrefix; i++) {
|
356
356
|
if (compare[i] !== parts[i]) {
|
357
357
|
endOfPrefix = i;
|
@@ -365,873 +365,18 @@ var require_common_path_prefix = __commonJS({
|
|
365
365
|
}
|
366
366
|
});
|
367
367
|
|
368
|
-
// node_modules/json-buffer/index.js
|
369
|
-
var require_json_buffer = __commonJS({
|
370
|
-
"node_modules/json-buffer/index.js"(exports) {
|
371
|
-
exports.stringify = function stringify4(o) {
|
372
|
-
if ("undefined" == typeof o) return o;
|
373
|
-
if (o && Buffer.isBuffer(o))
|
374
|
-
return JSON.stringify(":base64:" + o.toString("base64"));
|
375
|
-
if (o && o.toJSON)
|
376
|
-
o = o.toJSON();
|
377
|
-
if (o && "object" === typeof o) {
|
378
|
-
var s = "";
|
379
|
-
var array2 = Array.isArray(o);
|
380
|
-
s = array2 ? "[" : "{";
|
381
|
-
var first = true;
|
382
|
-
for (var k in o) {
|
383
|
-
var ignore = "function" == typeof o[k] || !array2 && "undefined" === typeof o[k];
|
384
|
-
if (Object.hasOwnProperty.call(o, k) && !ignore) {
|
385
|
-
if (!first)
|
386
|
-
s += ",";
|
387
|
-
first = false;
|
388
|
-
if (array2) {
|
389
|
-
if (o[k] == void 0)
|
390
|
-
s += "null";
|
391
|
-
else
|
392
|
-
s += stringify4(o[k]);
|
393
|
-
} else if (o[k] !== void 0) {
|
394
|
-
s += stringify4(k) + ":" + stringify4(o[k]);
|
395
|
-
}
|
396
|
-
}
|
397
|
-
}
|
398
|
-
s += array2 ? "]" : "}";
|
399
|
-
return s;
|
400
|
-
} else if ("string" === typeof o) {
|
401
|
-
return JSON.stringify(/^:/.test(o) ? ":" + o : o);
|
402
|
-
} else if ("undefined" === typeof o) {
|
403
|
-
return "null";
|
404
|
-
} else
|
405
|
-
return JSON.stringify(o);
|
406
|
-
};
|
407
|
-
exports.parse = function(s) {
|
408
|
-
return JSON.parse(s, function(key, value) {
|
409
|
-
if ("string" === typeof value) {
|
410
|
-
if (/^:base64:/.test(value))
|
411
|
-
return Buffer.from(value.substring(8), "base64");
|
412
|
-
else
|
413
|
-
return /^:/.test(value) ? value.substring(1) : value;
|
414
|
-
}
|
415
|
-
return value;
|
416
|
-
});
|
417
|
-
};
|
418
|
-
}
|
419
|
-
});
|
420
|
-
|
421
|
-
// node_modules/keyv/src/index.js
|
422
|
-
var require_src = __commonJS({
|
423
|
-
"node_modules/keyv/src/index.js"(exports, module) {
|
424
|
-
"use strict";
|
425
|
-
var EventEmitter = __require("events");
|
426
|
-
var JSONB = require_json_buffer();
|
427
|
-
var loadStore = (options) => {
|
428
|
-
const adapters = {
|
429
|
-
redis: "@keyv/redis",
|
430
|
-
rediss: "@keyv/redis",
|
431
|
-
mongodb: "@keyv/mongo",
|
432
|
-
mongo: "@keyv/mongo",
|
433
|
-
sqlite: "@keyv/sqlite",
|
434
|
-
postgresql: "@keyv/postgres",
|
435
|
-
postgres: "@keyv/postgres",
|
436
|
-
mysql: "@keyv/mysql",
|
437
|
-
etcd: "@keyv/etcd",
|
438
|
-
offline: "@keyv/offline",
|
439
|
-
tiered: "@keyv/tiered"
|
440
|
-
};
|
441
|
-
if (options.adapter || options.uri) {
|
442
|
-
const adapter = options.adapter || /^[^:+]*/.exec(options.uri)[0];
|
443
|
-
return new (__require(adapters[adapter]))(options);
|
444
|
-
}
|
445
|
-
return /* @__PURE__ */ new Map();
|
446
|
-
};
|
447
|
-
var iterableAdapters = [
|
448
|
-
"sqlite",
|
449
|
-
"postgres",
|
450
|
-
"mysql",
|
451
|
-
"mongo",
|
452
|
-
"redis",
|
453
|
-
"tiered"
|
454
|
-
];
|
455
|
-
var Keyv = class extends EventEmitter {
|
456
|
-
constructor(uri, { emitErrors = true, ...options } = {}) {
|
457
|
-
super();
|
458
|
-
this.opts = {
|
459
|
-
namespace: "keyv",
|
460
|
-
serialize: JSONB.stringify,
|
461
|
-
deserialize: JSONB.parse,
|
462
|
-
...typeof uri === "string" ? { uri } : uri,
|
463
|
-
...options
|
464
|
-
};
|
465
|
-
if (!this.opts.store) {
|
466
|
-
const adapterOptions = { ...this.opts };
|
467
|
-
this.opts.store = loadStore(adapterOptions);
|
468
|
-
}
|
469
|
-
if (this.opts.compression) {
|
470
|
-
const compression = this.opts.compression;
|
471
|
-
this.opts.serialize = compression.serialize.bind(compression);
|
472
|
-
this.opts.deserialize = compression.deserialize.bind(compression);
|
473
|
-
}
|
474
|
-
if (typeof this.opts.store.on === "function" && emitErrors) {
|
475
|
-
this.opts.store.on("error", (error) => this.emit("error", error));
|
476
|
-
}
|
477
|
-
this.opts.store.namespace = this.opts.namespace;
|
478
|
-
const generateIterator = (iterator) => async function* () {
|
479
|
-
for await (const [key, raw] of typeof iterator === "function" ? iterator(this.opts.store.namespace) : iterator) {
|
480
|
-
const data = await this.opts.deserialize(raw);
|
481
|
-
if (this.opts.store.namespace && !key.includes(this.opts.store.namespace)) {
|
482
|
-
continue;
|
483
|
-
}
|
484
|
-
if (typeof data.expires === "number" && Date.now() > data.expires) {
|
485
|
-
this.delete(key);
|
486
|
-
continue;
|
487
|
-
}
|
488
|
-
yield [this._getKeyUnprefix(key), data.value];
|
489
|
-
}
|
490
|
-
};
|
491
|
-
if (typeof this.opts.store[Symbol.iterator] === "function" && this.opts.store instanceof Map) {
|
492
|
-
this.iterator = generateIterator(this.opts.store);
|
493
|
-
} else if (typeof this.opts.store.iterator === "function" && this.opts.store.opts && this._checkIterableAdaptar()) {
|
494
|
-
this.iterator = generateIterator(this.opts.store.iterator.bind(this.opts.store));
|
495
|
-
}
|
496
|
-
}
|
497
|
-
_checkIterableAdaptar() {
|
498
|
-
return iterableAdapters.includes(this.opts.store.opts.dialect) || iterableAdapters.findIndex((element) => this.opts.store.opts.url.includes(element)) >= 0;
|
499
|
-
}
|
500
|
-
_getKeyPrefix(key) {
|
501
|
-
return `${this.opts.namespace}:${key}`;
|
502
|
-
}
|
503
|
-
_getKeyPrefixArray(keys) {
|
504
|
-
return keys.map((key) => `${this.opts.namespace}:${key}`);
|
505
|
-
}
|
506
|
-
_getKeyUnprefix(key) {
|
507
|
-
return key.split(":").splice(1).join(":");
|
508
|
-
}
|
509
|
-
get(key, options) {
|
510
|
-
const { store } = this.opts;
|
511
|
-
const isArray = Array.isArray(key);
|
512
|
-
const keyPrefixed = isArray ? this._getKeyPrefixArray(key) : this._getKeyPrefix(key);
|
513
|
-
if (isArray && store.getMany === void 0) {
|
514
|
-
const promises = [];
|
515
|
-
for (const key2 of keyPrefixed) {
|
516
|
-
promises.push(
|
517
|
-
Promise.resolve().then(() => store.get(key2)).then((data) => typeof data === "string" ? this.opts.deserialize(data) : this.opts.compression ? this.opts.deserialize(data) : data).then((data) => {
|
518
|
-
if (data === void 0 || data === null) {
|
519
|
-
return void 0;
|
520
|
-
}
|
521
|
-
if (typeof data.expires === "number" && Date.now() > data.expires) {
|
522
|
-
return this.delete(key2).then(() => void 0);
|
523
|
-
}
|
524
|
-
return options && options.raw ? data : data.value;
|
525
|
-
})
|
526
|
-
);
|
527
|
-
}
|
528
|
-
return Promise.allSettled(promises).then((values) => {
|
529
|
-
const data = [];
|
530
|
-
for (const value of values) {
|
531
|
-
data.push(value.value);
|
532
|
-
}
|
533
|
-
return data;
|
534
|
-
});
|
535
|
-
}
|
536
|
-
return Promise.resolve().then(() => isArray ? store.getMany(keyPrefixed) : store.get(keyPrefixed)).then((data) => typeof data === "string" ? this.opts.deserialize(data) : this.opts.compression ? this.opts.deserialize(data) : data).then((data) => {
|
537
|
-
if (data === void 0 || data === null) {
|
538
|
-
return void 0;
|
539
|
-
}
|
540
|
-
if (isArray) {
|
541
|
-
return data.map((row, index) => {
|
542
|
-
if (typeof row === "string") {
|
543
|
-
row = this.opts.deserialize(row);
|
544
|
-
}
|
545
|
-
if (row === void 0 || row === null) {
|
546
|
-
return void 0;
|
547
|
-
}
|
548
|
-
if (typeof row.expires === "number" && Date.now() > row.expires) {
|
549
|
-
this.delete(key[index]).then(() => void 0);
|
550
|
-
return void 0;
|
551
|
-
}
|
552
|
-
return options && options.raw ? row : row.value;
|
553
|
-
});
|
554
|
-
}
|
555
|
-
if (typeof data.expires === "number" && Date.now() > data.expires) {
|
556
|
-
return this.delete(key).then(() => void 0);
|
557
|
-
}
|
558
|
-
return options && options.raw ? data : data.value;
|
559
|
-
});
|
560
|
-
}
|
561
|
-
set(key, value, ttl) {
|
562
|
-
const keyPrefixed = this._getKeyPrefix(key);
|
563
|
-
if (typeof ttl === "undefined") {
|
564
|
-
ttl = this.opts.ttl;
|
565
|
-
}
|
566
|
-
if (ttl === 0) {
|
567
|
-
ttl = void 0;
|
568
|
-
}
|
569
|
-
const { store } = this.opts;
|
570
|
-
return Promise.resolve().then(() => {
|
571
|
-
const expires = typeof ttl === "number" ? Date.now() + ttl : null;
|
572
|
-
if (typeof value === "symbol") {
|
573
|
-
this.emit("error", "symbol cannot be serialized");
|
574
|
-
}
|
575
|
-
value = { value, expires };
|
576
|
-
return this.opts.serialize(value);
|
577
|
-
}).then((value2) => store.set(keyPrefixed, value2, ttl)).then(() => true);
|
578
|
-
}
|
579
|
-
delete(key) {
|
580
|
-
const { store } = this.opts;
|
581
|
-
if (Array.isArray(key)) {
|
582
|
-
const keyPrefixed2 = this._getKeyPrefixArray(key);
|
583
|
-
if (store.deleteMany === void 0) {
|
584
|
-
const promises = [];
|
585
|
-
for (const key2 of keyPrefixed2) {
|
586
|
-
promises.push(store.delete(key2));
|
587
|
-
}
|
588
|
-
return Promise.allSettled(promises).then((values) => values.every((x) => x.value === true));
|
589
|
-
}
|
590
|
-
return Promise.resolve().then(() => store.deleteMany(keyPrefixed2));
|
591
|
-
}
|
592
|
-
const keyPrefixed = this._getKeyPrefix(key);
|
593
|
-
return Promise.resolve().then(() => store.delete(keyPrefixed));
|
594
|
-
}
|
595
|
-
clear() {
|
596
|
-
const { store } = this.opts;
|
597
|
-
return Promise.resolve().then(() => store.clear());
|
598
|
-
}
|
599
|
-
has(key) {
|
600
|
-
const keyPrefixed = this._getKeyPrefix(key);
|
601
|
-
const { store } = this.opts;
|
602
|
-
return Promise.resolve().then(async () => {
|
603
|
-
if (typeof store.has === "function") {
|
604
|
-
return store.has(keyPrefixed);
|
605
|
-
}
|
606
|
-
const value = await store.get(keyPrefixed);
|
607
|
-
return value !== void 0;
|
608
|
-
});
|
609
|
-
}
|
610
|
-
disconnect() {
|
611
|
-
const { store } = this.opts;
|
612
|
-
if (typeof store.disconnect === "function") {
|
613
|
-
return store.disconnect();
|
614
|
-
}
|
615
|
-
}
|
616
|
-
};
|
617
|
-
module.exports = Keyv;
|
618
|
-
}
|
619
|
-
});
|
620
|
-
|
621
|
-
// node_modules/flatted/cjs/index.js
|
622
|
-
var require_cjs = __commonJS({
|
623
|
-
"node_modules/flatted/cjs/index.js"(exports) {
|
624
|
-
"use strict";
|
625
|
-
var { parse: $parse, stringify: $stringify } = JSON;
|
626
|
-
var { keys } = Object;
|
627
|
-
var Primitive = String;
|
628
|
-
var primitive = "string";
|
629
|
-
var ignore = {};
|
630
|
-
var object = "object";
|
631
|
-
var noop = (_2, value) => value;
|
632
|
-
var primitives = (value) => value instanceof Primitive ? Primitive(value) : value;
|
633
|
-
var Primitives = (_2, value) => typeof value === primitive ? new Primitive(value) : value;
|
634
|
-
var revive = (input, parsed, output, $) => {
|
635
|
-
const lazy = [];
|
636
|
-
for (let ke = keys(output), { length } = ke, y = 0; y < length; y++) {
|
637
|
-
const k = ke[y];
|
638
|
-
const value = output[k];
|
639
|
-
if (value instanceof Primitive) {
|
640
|
-
const tmp = input[value];
|
641
|
-
if (typeof tmp === object && !parsed.has(tmp)) {
|
642
|
-
parsed.add(tmp);
|
643
|
-
output[k] = ignore;
|
644
|
-
lazy.push({ k, a: [input, parsed, tmp, $] });
|
645
|
-
} else
|
646
|
-
output[k] = $.call(output, k, tmp);
|
647
|
-
} else if (output[k] !== ignore)
|
648
|
-
output[k] = $.call(output, k, value);
|
649
|
-
}
|
650
|
-
for (let { length } = lazy, i = 0; i < length; i++) {
|
651
|
-
const { k, a } = lazy[i];
|
652
|
-
output[k] = $.call(output, k, revive.apply(null, a));
|
653
|
-
}
|
654
|
-
return output;
|
655
|
-
};
|
656
|
-
var set = (known, input, value) => {
|
657
|
-
const index = Primitive(input.push(value) - 1);
|
658
|
-
known.set(value, index);
|
659
|
-
return index;
|
660
|
-
};
|
661
|
-
var parse = (text, reviver) => {
|
662
|
-
const input = $parse(text, Primitives).map(primitives);
|
663
|
-
const value = input[0];
|
664
|
-
const $ = reviver || noop;
|
665
|
-
const tmp = typeof value === object && value ? revive(input, /* @__PURE__ */ new Set(), value, $) : value;
|
666
|
-
return $.call({ "": tmp }, "", tmp);
|
667
|
-
};
|
668
|
-
exports.parse = parse;
|
669
|
-
var stringify4 = (value, replacer, space) => {
|
670
|
-
const $ = replacer && typeof replacer === object ? (k, v) => k === "" || -1 < replacer.indexOf(k) ? v : void 0 : replacer || noop;
|
671
|
-
const known = /* @__PURE__ */ new Map();
|
672
|
-
const input = [];
|
673
|
-
const output = [];
|
674
|
-
let i = +set(known, input, $.call({ "": value }, "", value));
|
675
|
-
let firstRun = !i;
|
676
|
-
while (i < input.length) {
|
677
|
-
firstRun = true;
|
678
|
-
output[i] = $stringify(input[i++], replace, space);
|
679
|
-
}
|
680
|
-
return "[" + output.join(",") + "]";
|
681
|
-
function replace(key, value2) {
|
682
|
-
if (firstRun) {
|
683
|
-
firstRun = !firstRun;
|
684
|
-
return value2;
|
685
|
-
}
|
686
|
-
const after = $.call(this, key, value2);
|
687
|
-
switch (typeof after) {
|
688
|
-
case object:
|
689
|
-
if (after === null) return after;
|
690
|
-
case primitive:
|
691
|
-
return known.get(after) || set(known, input, after);
|
692
|
-
}
|
693
|
-
return after;
|
694
|
-
}
|
695
|
-
};
|
696
|
-
exports.stringify = stringify4;
|
697
|
-
var toJSON = (value) => $parse(stringify4(value));
|
698
|
-
exports.toJSON = toJSON;
|
699
|
-
var fromJSON = (value) => parse($stringify(value));
|
700
|
-
exports.fromJSON = fromJSON;
|
701
|
-
}
|
702
|
-
});
|
703
|
-
|
704
|
-
// node_modules/flat-cache/src/utils.js
|
705
|
-
var require_utils = __commonJS({
|
706
|
-
"node_modules/flat-cache/src/utils.js"(exports, module) {
|
707
|
-
var fs6 = __require("fs");
|
708
|
-
var path10 = __require("path");
|
709
|
-
var flatted = require_cjs();
|
710
|
-
function tryParse(filePath, defaultValue) {
|
711
|
-
let result;
|
712
|
-
try {
|
713
|
-
result = readJSON(filePath);
|
714
|
-
} catch {
|
715
|
-
result = defaultValue;
|
716
|
-
}
|
717
|
-
return result;
|
718
|
-
}
|
719
|
-
function readJSON(filePath) {
|
720
|
-
return flatted.parse(
|
721
|
-
fs6.readFileSync(filePath, {
|
722
|
-
encoding: "utf8"
|
723
|
-
})
|
724
|
-
);
|
725
|
-
}
|
726
|
-
function writeJSON(filePath, data) {
|
727
|
-
fs6.mkdirSync(path10.dirname(filePath), {
|
728
|
-
recursive: true
|
729
|
-
});
|
730
|
-
fs6.writeFileSync(filePath, flatted.stringify(data));
|
731
|
-
}
|
732
|
-
module.exports = { tryParse, readJSON, writeJSON };
|
733
|
-
}
|
734
|
-
});
|
735
|
-
|
736
|
-
// node_modules/flat-cache/src/del.js
|
737
|
-
var require_del = __commonJS({
|
738
|
-
"node_modules/flat-cache/src/del.js"(exports, module) {
|
739
|
-
var fs6 = __require("fs");
|
740
|
-
var path10 = __require("path");
|
741
|
-
function del(targetPath) {
|
742
|
-
if (!fs6.existsSync(targetPath)) {
|
743
|
-
return false;
|
744
|
-
}
|
745
|
-
try {
|
746
|
-
if (fs6.statSync(targetPath).isDirectory()) {
|
747
|
-
for (const file of fs6.readdirSync(targetPath)) {
|
748
|
-
const currentPath = path10.join(targetPath, file);
|
749
|
-
if (fs6.statSync(currentPath).isFile()) {
|
750
|
-
fs6.unlinkSync(currentPath);
|
751
|
-
}
|
752
|
-
}
|
753
|
-
fs6.rmdirSync(targetPath);
|
754
|
-
} else {
|
755
|
-
fs6.unlinkSync(targetPath);
|
756
|
-
}
|
757
|
-
return true;
|
758
|
-
} catch (error) {
|
759
|
-
console.error(`Error while deleting ${targetPath}: ${error.message}`);
|
760
|
-
}
|
761
|
-
}
|
762
|
-
module.exports = { del };
|
763
|
-
}
|
764
|
-
});
|
765
|
-
|
766
|
-
// node_modules/flat-cache/src/cache.js
|
767
|
-
var require_cache = __commonJS({
|
768
|
-
"node_modules/flat-cache/src/cache.js"(exports, module) {
|
769
|
-
var path10 = __require("path");
|
770
|
-
var fs6 = __require("fs");
|
771
|
-
var Keyv = require_src();
|
772
|
-
var { writeJSON, tryParse } = require_utils();
|
773
|
-
var { del } = require_del();
|
774
|
-
var cache = {
|
775
|
-
/**
|
776
|
-
* Load a cache identified by the given Id. If the element does not exists, then initialize an empty
|
777
|
-
* cache storage. If specified `cacheDir` will be used as the directory to persist the data to. If omitted
|
778
|
-
* then the cache module directory `./cache` will be used instead
|
779
|
-
*
|
780
|
-
* @method load
|
781
|
-
* @param docId {String} the id of the cache, would also be used as the name of the file cache
|
782
|
-
* @param [cacheDir] {String} directory for the cache entry
|
783
|
-
*/
|
784
|
-
load(documentId, cacheDir) {
|
785
|
-
const me = this;
|
786
|
-
me.keyv = new Keyv();
|
787
|
-
me.__visited = {};
|
788
|
-
me.__persisted = {};
|
789
|
-
me._pathToFile = cacheDir ? path10.resolve(cacheDir, documentId) : path10.resolve(__dirname, "../.cache/", documentId);
|
790
|
-
if (fs6.existsSync(me._pathToFile)) {
|
791
|
-
me._persisted = tryParse(me._pathToFile, {});
|
792
|
-
}
|
793
|
-
},
|
794
|
-
get _persisted() {
|
795
|
-
return this.__persisted;
|
796
|
-
},
|
797
|
-
set _persisted(value) {
|
798
|
-
this.__persisted = value;
|
799
|
-
},
|
800
|
-
get _visited() {
|
801
|
-
return this.__visited;
|
802
|
-
},
|
803
|
-
set _visited(value) {
|
804
|
-
this.__visited = value;
|
805
|
-
},
|
806
|
-
/**
|
807
|
-
* Load the cache from the provided file
|
808
|
-
* @method loadFile
|
809
|
-
* @param {String} pathToFile the path to the file containing the info for the cache
|
810
|
-
*/
|
811
|
-
loadFile(pathToFile) {
|
812
|
-
const me = this;
|
813
|
-
const dir = path10.dirname(pathToFile);
|
814
|
-
const fName = path10.basename(pathToFile);
|
815
|
-
me.load(fName, dir);
|
816
|
-
},
|
817
|
-
/**
|
818
|
-
* Returns the entire persisted object
|
819
|
-
* @method all
|
820
|
-
* @returns {*}
|
821
|
-
*/
|
822
|
-
all() {
|
823
|
-
return this._persisted;
|
824
|
-
},
|
825
|
-
keys() {
|
826
|
-
return Object.keys(this._persisted);
|
827
|
-
},
|
828
|
-
/**
|
829
|
-
* Sets a key to a given value
|
830
|
-
* @method setKey
|
831
|
-
* @param key {string} the key to set
|
832
|
-
* @param value {object} the value of the key. Could be any object that can be serialized with JSON.stringify
|
833
|
-
*/
|
834
|
-
setKey(key, value) {
|
835
|
-
this._visited[key] = true;
|
836
|
-
this._persisted[key] = value;
|
837
|
-
},
|
838
|
-
/**
|
839
|
-
* Remove a given key from the cache
|
840
|
-
* @method removeKey
|
841
|
-
* @param key {String} the key to remove from the object
|
842
|
-
*/
|
843
|
-
removeKey(key) {
|
844
|
-
delete this._visited[key];
|
845
|
-
delete this._persisted[key];
|
846
|
-
},
|
847
|
-
/**
|
848
|
-
* Return the value of the provided key
|
849
|
-
* @method getKey
|
850
|
-
* @param key {String} the name of the key to retrieve
|
851
|
-
* @returns {*} the value from the key
|
852
|
-
*/
|
853
|
-
getKey(key) {
|
854
|
-
this._visited[key] = true;
|
855
|
-
return this._persisted[key];
|
856
|
-
},
|
857
|
-
/**
|
858
|
-
* Remove keys that were not accessed/set since the
|
859
|
-
* last time the `prune` method was called.
|
860
|
-
* @method _prune
|
861
|
-
* @private
|
862
|
-
*/
|
863
|
-
_prune() {
|
864
|
-
const me = this;
|
865
|
-
const object = {};
|
866
|
-
const keys = Object.keys(me._visited);
|
867
|
-
if (keys.length === 0) {
|
868
|
-
return;
|
869
|
-
}
|
870
|
-
for (const key of keys) {
|
871
|
-
object[key] = me._persisted[key];
|
872
|
-
}
|
873
|
-
me._visited = {};
|
874
|
-
me._persisted = object;
|
875
|
-
},
|
876
|
-
/**
|
877
|
-
* Save the state of the cache identified by the docId to disk
|
878
|
-
* as a JSON structure
|
879
|
-
* @param [noPrune=false] {Boolean} whether to remove from cache the non visited files
|
880
|
-
* @method save
|
881
|
-
*/
|
882
|
-
save(noPrune) {
|
883
|
-
const me = this;
|
884
|
-
!noPrune && me._prune();
|
885
|
-
writeJSON(me._pathToFile, me._persisted);
|
886
|
-
},
|
887
|
-
/**
|
888
|
-
* Remove the file where the cache is persisted
|
889
|
-
* @method removeCacheFile
|
890
|
-
* @return {Boolean} true or false if the file was successfully deleted
|
891
|
-
*/
|
892
|
-
removeCacheFile() {
|
893
|
-
return del(this._pathToFile);
|
894
|
-
},
|
895
|
-
/**
|
896
|
-
* Destroy the file cache and cache content.
|
897
|
-
* @method destroy
|
898
|
-
*/
|
899
|
-
destroy() {
|
900
|
-
const me = this;
|
901
|
-
me._visited = {};
|
902
|
-
me._persisted = {};
|
903
|
-
me.removeCacheFile();
|
904
|
-
}
|
905
|
-
};
|
906
|
-
module.exports = {
|
907
|
-
/**
|
908
|
-
* Alias for create. Should be considered depreacted. Will be removed in next releases
|
909
|
-
*
|
910
|
-
* @method load
|
911
|
-
* @param docId {String} the id of the cache, would also be used as the name of the file cache
|
912
|
-
* @param [cacheDir] {String} directory for the cache entry
|
913
|
-
* @returns {cache} cache instance
|
914
|
-
*/
|
915
|
-
load(documentId, cacheDir) {
|
916
|
-
return this.create(documentId, cacheDir);
|
917
|
-
},
|
918
|
-
/**
|
919
|
-
* Load a cache identified by the given Id. If the element does not exists, then initialize an empty
|
920
|
-
* cache storage.
|
921
|
-
*
|
922
|
-
* @method create
|
923
|
-
* @param docId {String} the id of the cache, would also be used as the name of the file cache
|
924
|
-
* @param [cacheDir] {String} directory for the cache entry
|
925
|
-
* @returns {cache} cache instance
|
926
|
-
*/
|
927
|
-
create(documentId, cacheDir) {
|
928
|
-
const object = Object.create(cache);
|
929
|
-
object.load(documentId, cacheDir);
|
930
|
-
return object;
|
931
|
-
},
|
932
|
-
createFromFile(filePath) {
|
933
|
-
const object = Object.create(cache);
|
934
|
-
object.loadFile(filePath);
|
935
|
-
return object;
|
936
|
-
},
|
937
|
-
/**
|
938
|
-
* Clear the cache identified by the given id. Caches stored in a different cache directory can be deleted directly
|
939
|
-
*
|
940
|
-
* @method clearCache
|
941
|
-
* @param docId {String} the id of the cache, would also be used as the name of the file cache
|
942
|
-
* @param cacheDir {String} the directory where the cache file was written
|
943
|
-
* @returns {Boolean} true if the cache folder was deleted. False otherwise
|
944
|
-
*/
|
945
|
-
clearCacheById(documentId, cacheDir) {
|
946
|
-
const filePath = cacheDir ? path10.resolve(cacheDir, documentId) : path10.resolve(__dirname, "../.cache/", documentId);
|
947
|
-
return del(filePath);
|
948
|
-
},
|
949
|
-
/**
|
950
|
-
* Remove all cache stored in the cache directory
|
951
|
-
* @method clearAll
|
952
|
-
* @returns {Boolean} true if the cache folder was deleted. False otherwise
|
953
|
-
*/
|
954
|
-
clearAll(cacheDir) {
|
955
|
-
const filePath = cacheDir ? path10.resolve(cacheDir) : path10.resolve(__dirname, "../.cache/");
|
956
|
-
return del(filePath);
|
957
|
-
}
|
958
|
-
};
|
959
|
-
}
|
960
|
-
});
|
961
|
-
|
962
|
-
// node_modules/file-entry-cache/cache.js
|
963
|
-
var require_cache2 = __commonJS({
|
964
|
-
"node_modules/file-entry-cache/cache.js"(exports, module) {
|
965
|
-
var path10 = __require("path");
|
966
|
-
var crypto = __require("crypto");
|
967
|
-
module.exports = {
|
968
|
-
createFromFile(filePath, useChecksum, currentWorkingDir) {
|
969
|
-
const fname = path10.basename(filePath);
|
970
|
-
const dir = path10.dirname(filePath);
|
971
|
-
return this.create(fname, dir, useChecksum, currentWorkingDir);
|
972
|
-
},
|
973
|
-
create(cacheId, _path, useChecksum, currentWorkingDir) {
|
974
|
-
const fs6 = __require("fs");
|
975
|
-
const flatCache = require_cache();
|
976
|
-
const cache = flatCache.load(cacheId, _path);
|
977
|
-
let normalizedEntries = {};
|
978
|
-
const removeNotFoundFiles = function removeNotFoundFiles2() {
|
979
|
-
const cachedEntries = cache.keys();
|
980
|
-
for (const fPath of cachedEntries) {
|
981
|
-
try {
|
982
|
-
let filePath = fPath;
|
983
|
-
if (currentWorkingDir) {
|
984
|
-
filePath = path10.join(currentWorkingDir, fPath);
|
985
|
-
}
|
986
|
-
fs6.statSync(filePath);
|
987
|
-
} catch (error) {
|
988
|
-
if (error.code === "ENOENT") {
|
989
|
-
cache.removeKey(fPath);
|
990
|
-
}
|
991
|
-
}
|
992
|
-
}
|
993
|
-
};
|
994
|
-
removeNotFoundFiles();
|
995
|
-
return {
|
996
|
-
/**
|
997
|
-
* The flat cache storage used to persist the metadata of the `files
|
998
|
-
* @type {Object}
|
999
|
-
*/
|
1000
|
-
cache,
|
1001
|
-
/**
|
1002
|
-
* To enable relative paths as the key with current working directory
|
1003
|
-
* @type {string}
|
1004
|
-
*/
|
1005
|
-
currentWorkingDir: currentWorkingDir ?? void 0,
|
1006
|
-
/**
|
1007
|
-
* Given a buffer, calculate md5 hash of its content.
|
1008
|
-
* @method getHash
|
1009
|
-
* @param {Buffer} buffer buffer to calculate hash on
|
1010
|
-
* @return {String} content hash digest
|
1011
|
-
*/
|
1012
|
-
getHash(buffer) {
|
1013
|
-
return crypto.createHash("md5").update(buffer).digest("hex");
|
1014
|
-
},
|
1015
|
-
/**
|
1016
|
-
* Return whether or not a file has changed since last time reconcile was called.
|
1017
|
-
* @method hasFileChanged
|
1018
|
-
* @param {String} file the filepath to check
|
1019
|
-
* @return {Boolean} wheter or not the file has changed
|
1020
|
-
*/
|
1021
|
-
hasFileChanged(file) {
|
1022
|
-
return this.getFileDescriptor(file).changed;
|
1023
|
-
},
|
1024
|
-
/**
|
1025
|
-
* Given an array of file paths it return and object with three arrays:
|
1026
|
-
* - changedFiles: Files that changed since previous run
|
1027
|
-
* - notChangedFiles: Files that haven't change
|
1028
|
-
* - notFoundFiles: Files that were not found, probably deleted
|
1029
|
-
*
|
1030
|
-
* @param {Array} files the files to analyze and compare to the previous seen files
|
1031
|
-
* @return {[type]} [description]
|
1032
|
-
*/
|
1033
|
-
analyzeFiles(files) {
|
1034
|
-
const me = this;
|
1035
|
-
files || (files = []);
|
1036
|
-
const res = {
|
1037
|
-
changedFiles: [],
|
1038
|
-
notFoundFiles: [],
|
1039
|
-
notChangedFiles: []
|
1040
|
-
};
|
1041
|
-
for (const entry of me.normalizeEntries(files)) {
|
1042
|
-
if (entry.changed) {
|
1043
|
-
res.changedFiles.push(entry.key);
|
1044
|
-
continue;
|
1045
|
-
}
|
1046
|
-
if (entry.notFound) {
|
1047
|
-
res.notFoundFiles.push(entry.key);
|
1048
|
-
continue;
|
1049
|
-
}
|
1050
|
-
res.notChangedFiles.push(entry.key);
|
1051
|
-
}
|
1052
|
-
return res;
|
1053
|
-
},
|
1054
|
-
getFileDescriptor(file) {
|
1055
|
-
let fstat;
|
1056
|
-
try {
|
1057
|
-
fstat = fs6.statSync(file);
|
1058
|
-
} catch (error) {
|
1059
|
-
this.removeEntry(file);
|
1060
|
-
return { key: file, notFound: true, err: error };
|
1061
|
-
}
|
1062
|
-
if (useChecksum) {
|
1063
|
-
return this._getFileDescriptorUsingChecksum(file);
|
1064
|
-
}
|
1065
|
-
return this._getFileDescriptorUsingMtimeAndSize(file, fstat);
|
1066
|
-
},
|
1067
|
-
_getFileKey(file) {
|
1068
|
-
if (this.currentWorkingDir) {
|
1069
|
-
return file.split(this.currentWorkingDir).pop();
|
1070
|
-
}
|
1071
|
-
return file;
|
1072
|
-
},
|
1073
|
-
_getFileDescriptorUsingMtimeAndSize(file, fstat) {
|
1074
|
-
let meta = cache.getKey(this._getFileKey(file));
|
1075
|
-
const cacheExists = Boolean(meta);
|
1076
|
-
const cSize = fstat.size;
|
1077
|
-
const cTime = fstat.mtime.getTime();
|
1078
|
-
let isDifferentDate;
|
1079
|
-
let isDifferentSize;
|
1080
|
-
if (meta) {
|
1081
|
-
isDifferentDate = cTime !== meta.mtime;
|
1082
|
-
isDifferentSize = cSize !== meta.size;
|
1083
|
-
} else {
|
1084
|
-
meta = { size: cSize, mtime: cTime };
|
1085
|
-
}
|
1086
|
-
const nEntry = normalizedEntries[this._getFileKey(file)] = {
|
1087
|
-
key: this._getFileKey(file),
|
1088
|
-
changed: !cacheExists || isDifferentDate || isDifferentSize,
|
1089
|
-
meta
|
1090
|
-
};
|
1091
|
-
return nEntry;
|
1092
|
-
},
|
1093
|
-
_getFileDescriptorUsingChecksum(file) {
|
1094
|
-
let meta = cache.getKey(this._getFileKey(file));
|
1095
|
-
const cacheExists = Boolean(meta);
|
1096
|
-
let contentBuffer;
|
1097
|
-
try {
|
1098
|
-
contentBuffer = fs6.readFileSync(file);
|
1099
|
-
} catch {
|
1100
|
-
contentBuffer = "";
|
1101
|
-
}
|
1102
|
-
let isDifferent = true;
|
1103
|
-
const hash = this.getHash(contentBuffer);
|
1104
|
-
if (meta) {
|
1105
|
-
isDifferent = hash !== meta.hash;
|
1106
|
-
} else {
|
1107
|
-
meta = { hash };
|
1108
|
-
}
|
1109
|
-
const nEntry = normalizedEntries[this._getFileKey(file)] = {
|
1110
|
-
key: this._getFileKey(file),
|
1111
|
-
changed: !cacheExists || isDifferent,
|
1112
|
-
meta
|
1113
|
-
};
|
1114
|
-
return nEntry;
|
1115
|
-
},
|
1116
|
-
/**
|
1117
|
-
* Return the list o the files that changed compared
|
1118
|
-
* against the ones stored in the cache
|
1119
|
-
*
|
1120
|
-
* @method getUpdated
|
1121
|
-
* @param files {Array} the array of files to compare against the ones in the cache
|
1122
|
-
* @returns {Array}
|
1123
|
-
*/
|
1124
|
-
getUpdatedFiles(files) {
|
1125
|
-
const me = this;
|
1126
|
-
files || (files = []);
|
1127
|
-
return me.normalizeEntries(files).filter((entry) => entry.changed).map((entry) => entry.key);
|
1128
|
-
},
|
1129
|
-
/**
|
1130
|
-
* Return the list of files
|
1131
|
-
* @method normalizeEntries
|
1132
|
-
* @param files
|
1133
|
-
* @returns {*}
|
1134
|
-
*/
|
1135
|
-
normalizeEntries(files) {
|
1136
|
-
files || (files = []);
|
1137
|
-
const me = this;
|
1138
|
-
const nEntries = files.map((file) => me.getFileDescriptor(file));
|
1139
|
-
return nEntries;
|
1140
|
-
},
|
1141
|
-
/**
|
1142
|
-
* Remove an entry from the file-entry-cache. Useful to force the file to still be considered
|
1143
|
-
* modified the next time the process is run
|
1144
|
-
*
|
1145
|
-
* @method removeEntry
|
1146
|
-
* @param entryName
|
1147
|
-
*/
|
1148
|
-
removeEntry(entryName) {
|
1149
|
-
delete normalizedEntries[this._getFileKey(entryName)];
|
1150
|
-
cache.removeKey(this._getFileKey(entryName));
|
1151
|
-
},
|
1152
|
-
/**
|
1153
|
-
* Delete the cache file from the disk
|
1154
|
-
* @method deleteCacheFile
|
1155
|
-
*/
|
1156
|
-
deleteCacheFile() {
|
1157
|
-
cache.removeCacheFile();
|
1158
|
-
},
|
1159
|
-
/**
|
1160
|
-
* Remove the cache from the file and clear the memory cache
|
1161
|
-
*/
|
1162
|
-
destroy() {
|
1163
|
-
normalizedEntries = {};
|
1164
|
-
cache.destroy();
|
1165
|
-
},
|
1166
|
-
_getMetaForFileUsingCheckSum(cacheEntry) {
|
1167
|
-
let filePath = cacheEntry.key;
|
1168
|
-
if (this.currentWorkingDir) {
|
1169
|
-
filePath = path10.join(this.currentWorkingDir, filePath);
|
1170
|
-
}
|
1171
|
-
const contentBuffer = fs6.readFileSync(filePath);
|
1172
|
-
const hash = this.getHash(contentBuffer);
|
1173
|
-
const meta = Object.assign(cacheEntry.meta, { hash });
|
1174
|
-
delete meta.size;
|
1175
|
-
delete meta.mtime;
|
1176
|
-
return meta;
|
1177
|
-
},
|
1178
|
-
_getMetaForFileUsingMtimeAndSize(cacheEntry) {
|
1179
|
-
let filePath = cacheEntry.key;
|
1180
|
-
if (currentWorkingDir) {
|
1181
|
-
filePath = path10.join(currentWorkingDir, filePath);
|
1182
|
-
}
|
1183
|
-
const stat = fs6.statSync(filePath);
|
1184
|
-
const meta = Object.assign(cacheEntry.meta, {
|
1185
|
-
size: stat.size,
|
1186
|
-
mtime: stat.mtime.getTime()
|
1187
|
-
});
|
1188
|
-
delete meta.hash;
|
1189
|
-
return meta;
|
1190
|
-
},
|
1191
|
-
/**
|
1192
|
-
* Sync the files and persist them to the cache
|
1193
|
-
* @method reconcile
|
1194
|
-
*/
|
1195
|
-
reconcile(noPrune) {
|
1196
|
-
removeNotFoundFiles();
|
1197
|
-
noPrune = noPrune === void 0 ? true : noPrune;
|
1198
|
-
const entries = normalizedEntries;
|
1199
|
-
const keys = Object.keys(entries);
|
1200
|
-
if (keys.length === 0) {
|
1201
|
-
return;
|
1202
|
-
}
|
1203
|
-
const me = this;
|
1204
|
-
for (const entryName of keys) {
|
1205
|
-
const cacheEntry = entries[entryName];
|
1206
|
-
try {
|
1207
|
-
const meta = useChecksum ? me._getMetaForFileUsingCheckSum(cacheEntry) : me._getMetaForFileUsingMtimeAndSize(cacheEntry);
|
1208
|
-
cache.setKey(this._getFileKey(entryName), meta);
|
1209
|
-
} catch (error) {
|
1210
|
-
if (error.code !== "ENOENT") {
|
1211
|
-
throw error;
|
1212
|
-
}
|
1213
|
-
}
|
1214
|
-
}
|
1215
|
-
cache.save(noPrune);
|
1216
|
-
}
|
1217
|
-
};
|
1218
|
-
}
|
1219
|
-
};
|
1220
|
-
}
|
1221
|
-
});
|
1222
|
-
|
1223
368
|
// src/cli/index.js
|
1224
369
|
import * as prettier2 from "../index.mjs";
|
1225
370
|
|
1226
371
|
// scripts/build/shims/at.js
|
1227
|
-
var at = (isOptionalObject,
|
1228
|
-
if (isOptionalObject && (
|
372
|
+
var at = (isOptionalObject, object2, index) => {
|
373
|
+
if (isOptionalObject && (object2 === void 0 || object2 === null)) {
|
1229
374
|
return;
|
1230
375
|
}
|
1231
|
-
if (Array.isArray(
|
1232
|
-
return
|
376
|
+
if (Array.isArray(object2) || typeof object2 === "string") {
|
377
|
+
return object2[index < 0 ? object2.length + index : index];
|
1233
378
|
}
|
1234
|
-
return
|
379
|
+
return object2.at(index);
|
1235
380
|
};
|
1236
381
|
var at_default = at;
|
1237
382
|
|
@@ -1605,11 +750,11 @@ import path from "path";
|
|
1605
750
|
|
1606
751
|
// node_modules/sdbm/index.js
|
1607
752
|
function sdbm(string) {
|
1608
|
-
let
|
753
|
+
let hash2 = 0;
|
1609
754
|
for (let i = 0; i < string.length; i++) {
|
1610
|
-
|
755
|
+
hash2 = string.charCodeAt(i) + (hash2 << 6) + (hash2 << 16) - hash2;
|
1611
756
|
}
|
1612
|
-
return
|
757
|
+
return hash2 >>> 0;
|
1613
758
|
}
|
1614
759
|
|
1615
760
|
// src/cli/utils.js
|
@@ -1627,8 +772,8 @@ function groupBy(array2, iteratee) {
|
|
1627
772
|
}
|
1628
773
|
return result;
|
1629
774
|
}
|
1630
|
-
function pick(
|
1631
|
-
const entries =
|
775
|
+
function pick(object2, keys2) {
|
776
|
+
const entries = keys2.map((key) => [key, object2[key]]);
|
1632
777
|
return Object.fromEntries(entries);
|
1633
778
|
}
|
1634
779
|
function createHash(source) {
|
@@ -1973,10 +1118,10 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
1973
1118
|
return 1;
|
1974
1119
|
}
|
1975
1120
|
if ("CI" in env) {
|
1976
|
-
if ("GITHUB_ACTIONS"
|
1121
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
|
1977
1122
|
return 3;
|
1978
1123
|
}
|
1979
|
-
if (["TRAVIS", "
|
1124
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
1980
1125
|
return 1;
|
1981
1126
|
}
|
1982
1127
|
return min;
|
@@ -2067,12 +1212,12 @@ var levelMapping = [
|
|
2067
1212
|
"ansi16m"
|
2068
1213
|
];
|
2069
1214
|
var styles2 = /* @__PURE__ */ Object.create(null);
|
2070
|
-
var applyOptions = (
|
1215
|
+
var applyOptions = (object2, options = {}) => {
|
2071
1216
|
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
2072
1217
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
2073
1218
|
}
|
2074
1219
|
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
2075
|
-
|
1220
|
+
object2.level = options.level === void 0 ? colorLevel : options.level;
|
2076
1221
|
};
|
2077
1222
|
var chalkFactory = (options) => {
|
2078
1223
|
const chalk2 = (...strings) => strings.join(" ");
|
@@ -2296,15 +1441,15 @@ function normalizeCliOptions(options, optionInfos, opts) {
|
|
2296
1441
|
var normalize_cli_options_default = normalizeCliOptions;
|
2297
1442
|
|
2298
1443
|
// src/cli/options/parse-cli-arguments.js
|
2299
|
-
function parseArgv(rawArguments, detailedOptions, logger,
|
1444
|
+
function parseArgv(rawArguments, detailedOptions, logger, keys2) {
|
2300
1445
|
var _a;
|
2301
1446
|
const minimistOptions = createMinimistOptions(detailedOptions);
|
2302
1447
|
let argv = minimistParse(rawArguments, minimistOptions);
|
2303
|
-
if (
|
1448
|
+
if (keys2) {
|
2304
1449
|
detailedOptions = detailedOptions.filter(
|
2305
|
-
(option) =>
|
1450
|
+
(option) => keys2.includes(option.name)
|
2306
1451
|
);
|
2307
|
-
argv = pick(argv,
|
1452
|
+
argv = pick(argv, keys2);
|
2308
1453
|
}
|
2309
1454
|
const normalized = normalize_cli_options_default(argv, detailedOptions, { logger });
|
2310
1455
|
return {
|
@@ -2321,12 +1466,12 @@ function parseArgv(rawArguments, detailedOptions, logger, keys) {
|
|
2321
1466
|
};
|
2322
1467
|
}
|
2323
1468
|
var { detailedOptions: detailedOptionsWithoutPlugins } = getContextOptionsWithoutPlugins();
|
2324
|
-
function parseArgvWithoutPlugins(rawArguments, logger,
|
1469
|
+
function parseArgvWithoutPlugins(rawArguments, logger, keys2) {
|
2325
1470
|
return parseArgv(
|
2326
1471
|
rawArguments,
|
2327
1472
|
detailedOptionsWithoutPlugins,
|
2328
1473
|
logger,
|
2329
|
-
typeof
|
1474
|
+
typeof keys2 === "string" ? [keys2] : keys2
|
2330
1475
|
);
|
2331
1476
|
}
|
2332
1477
|
|
@@ -2428,8 +1573,8 @@ async function logResolvedConfigPathOrDie(context) {
|
|
2428
1573
|
var find_config_path_default = logResolvedConfigPathOrDie;
|
2429
1574
|
|
2430
1575
|
// src/cli/format.js
|
2431
|
-
import
|
2432
|
-
import
|
1576
|
+
import fs8 from "fs/promises";
|
1577
|
+
import path11 from "path";
|
2433
1578
|
import * as prettier from "../index.mjs";
|
2434
1579
|
|
2435
1580
|
// src/cli/expand-patterns.js
|
@@ -2551,7 +1696,7 @@ function containsIgnoredPathSegment(absolutePath, cwd2, ignoredDirectories) {
|
|
2551
1696
|
function sortPaths(paths) {
|
2552
1697
|
return paths.sort((a, b) => a.localeCompare(b));
|
2553
1698
|
}
|
2554
|
-
function escapePathForGlob(
|
1699
|
+
function escapePathForGlob(path12) {
|
2555
1700
|
return string_replace_all_default(
|
2556
1701
|
/* isOptionalObject */
|
2557
1702
|
false,
|
@@ -2562,7 +1707,7 @@ function escapePathForGlob(path10) {
|
|
2562
1707
|
string_replace_all_default(
|
2563
1708
|
/* isOptionalObject */
|
2564
1709
|
false,
|
2565
|
-
|
1710
|
+
path12,
|
2566
1711
|
"\\",
|
2567
1712
|
"\0"
|
2568
1713
|
)
|
@@ -2684,9 +1829,9 @@ function packageDirectorySync({ cwd: cwd2 } = {}) {
|
|
2684
1829
|
|
2685
1830
|
// node_modules/find-cache-dir/index.js
|
2686
1831
|
var { env: env2, cwd } = process4;
|
2687
|
-
var isWritable = (
|
1832
|
+
var isWritable = (path12) => {
|
2688
1833
|
try {
|
2689
|
-
fs3.accessSync(
|
1834
|
+
fs3.accessSync(path12, fs3.constants.W_OK);
|
2690
1835
|
return true;
|
2691
1836
|
} catch {
|
2692
1837
|
return false;
|
@@ -2760,53 +1905,1886 @@ var find_cache_file_default = findCacheFile;
|
|
2760
1905
|
|
2761
1906
|
// src/cli/format-results-cache.js
|
2762
1907
|
var import_fast_json_stable_stringify2 = __toESM(require_fast_json_stable_stringify(), 1);
|
2763
|
-
|
2764
|
-
|
2765
|
-
|
2766
|
-
|
2767
|
-
|
2768
|
-
|
2769
|
-
|
1908
|
+
import fs7 from "fs";
|
1909
|
+
|
1910
|
+
// node_modules/file-entry-cache/dist/index.js
|
1911
|
+
import crypto2 from "crypto";
|
1912
|
+
import fs6 from "fs";
|
1913
|
+
import path10 from "path";
|
1914
|
+
|
1915
|
+
// node_modules/file-entry-cache/node_modules/flat-cache/dist/index.js
|
1916
|
+
import path9 from "path";
|
1917
|
+
import fs5 from "fs";
|
1918
|
+
|
1919
|
+
// node_modules/hookified/dist/node/index.js
|
1920
|
+
var Eventified = class {
|
1921
|
+
_eventListeners;
|
1922
|
+
_maxListeners;
|
1923
|
+
constructor() {
|
1924
|
+
this._eventListeners = /* @__PURE__ */ new Map();
|
1925
|
+
this._maxListeners = 100;
|
2770
1926
|
}
|
2771
|
-
const hash = createHash(
|
2772
|
-
`${prettierVersion}_${nodeVersion}_${(0, import_fast_json_stable_stringify2.default)(options)}`
|
2773
|
-
);
|
2774
|
-
optionsHashCache.set(options, hash);
|
2775
|
-
return hash;
|
2776
|
-
}
|
2777
|
-
function getMetadataFromFileDescriptor(fileDescriptor) {
|
2778
|
-
return fileDescriptor.meta;
|
2779
|
-
}
|
2780
|
-
var _fileEntryCache;
|
2781
|
-
var FormatResultsCache = class {
|
2782
1927
|
/**
|
2783
|
-
*
|
2784
|
-
* @param {string}
|
1928
|
+
* Adds a handler function for a specific event that will run only once
|
1929
|
+
* @param {string | symbol} eventName
|
1930
|
+
* @param {EventListener} listener
|
1931
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
2785
1932
|
*/
|
2786
|
-
|
2787
|
-
|
2788
|
-
|
2789
|
-
|
2790
|
-
|
2791
|
-
|
2792
|
-
|
2793
|
-
|
2794
|
-
|
2795
|
-
|
1933
|
+
once(eventName, listener) {
|
1934
|
+
const onceListener = (...arguments_) => {
|
1935
|
+
this.off(eventName, onceListener);
|
1936
|
+
listener(...arguments_);
|
1937
|
+
};
|
1938
|
+
this.on(eventName, onceListener);
|
1939
|
+
return this;
|
1940
|
+
}
|
1941
|
+
/**
|
1942
|
+
* Gets the number of listeners for a specific event. If no event is provided, it returns the total number of listeners
|
1943
|
+
* @param {string} eventName The event name. Not required
|
1944
|
+
* @returns {number} The number of listeners
|
1945
|
+
*/
|
1946
|
+
listenerCount(eventName) {
|
1947
|
+
if (!eventName) {
|
1948
|
+
return this.getAllListeners().length;
|
1949
|
+
}
|
1950
|
+
const listeners = this._eventListeners.get(eventName);
|
1951
|
+
return listeners ? listeners.length : 0;
|
1952
|
+
}
|
1953
|
+
/**
|
1954
|
+
* Gets an array of event names
|
1955
|
+
* @returns {Array<string | symbol>} An array of event names
|
1956
|
+
*/
|
1957
|
+
eventNames() {
|
1958
|
+
return Array.from(this._eventListeners.keys());
|
1959
|
+
}
|
1960
|
+
/**
|
1961
|
+
* Gets an array of listeners for a specific event. If no event is provided, it returns all listeners
|
1962
|
+
* @param {string} [event] (Optional) The event name
|
1963
|
+
* @returns {EventListener[]} An array of listeners
|
1964
|
+
*/
|
1965
|
+
rawListeners(event) {
|
1966
|
+
if (!event) {
|
1967
|
+
return this.getAllListeners();
|
1968
|
+
}
|
1969
|
+
return this._eventListeners.get(event) ?? [];
|
1970
|
+
}
|
1971
|
+
/**
|
1972
|
+
* Prepends a listener to the beginning of the listeners array for the specified event
|
1973
|
+
* @param {string | symbol} eventName
|
1974
|
+
* @param {EventListener} listener
|
1975
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
1976
|
+
*/
|
1977
|
+
prependListener(eventName, listener) {
|
1978
|
+
const listeners = this._eventListeners.get(eventName) ?? [];
|
1979
|
+
listeners.unshift(listener);
|
1980
|
+
this._eventListeners.set(eventName, listeners);
|
1981
|
+
return this;
|
1982
|
+
}
|
1983
|
+
/**
|
1984
|
+
* Prepends a one-time listener to the beginning of the listeners array for the specified event
|
1985
|
+
* @param {string | symbol} eventName
|
1986
|
+
* @param {EventListener} listener
|
1987
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
1988
|
+
*/
|
1989
|
+
prependOnceListener(eventName, listener) {
|
1990
|
+
const onceListener = (...arguments_) => {
|
1991
|
+
this.off(eventName, onceListener);
|
1992
|
+
listener(...arguments_);
|
1993
|
+
};
|
1994
|
+
this.prependListener(eventName, onceListener);
|
1995
|
+
return this;
|
1996
|
+
}
|
1997
|
+
/**
|
1998
|
+
* Gets the maximum number of listeners that can be added for a single event
|
1999
|
+
* @returns {number} The maximum number of listeners
|
2000
|
+
*/
|
2001
|
+
maxListeners() {
|
2002
|
+
return this._maxListeners;
|
2003
|
+
}
|
2004
|
+
/**
|
2005
|
+
* Adds a listener for a specific event. It is an alias for the on() method
|
2006
|
+
* @param {string | symbol} event
|
2007
|
+
* @param {EventListener} listener
|
2008
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
2009
|
+
*/
|
2010
|
+
addListener(event, listener) {
|
2011
|
+
this.on(event, listener);
|
2012
|
+
return this;
|
2013
|
+
}
|
2014
|
+
/**
|
2015
|
+
* Adds a listener for a specific event
|
2016
|
+
* @param {string | symbol} event
|
2017
|
+
* @param {EventListener} listener
|
2018
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
2019
|
+
*/
|
2020
|
+
on(event, listener) {
|
2021
|
+
if (!this._eventListeners.has(event)) {
|
2022
|
+
this._eventListeners.set(event, []);
|
2023
|
+
}
|
2024
|
+
const listeners = this._eventListeners.get(event);
|
2025
|
+
if (listeners) {
|
2026
|
+
if (listeners.length >= this._maxListeners) {
|
2027
|
+
console.warn(`MaxListenersExceededWarning: Possible event memory leak detected. ${listeners.length + 1} ${event} listeners added. Use setMaxListeners() to increase limit.`);
|
2028
|
+
}
|
2029
|
+
listeners.push(listener);
|
2030
|
+
}
|
2031
|
+
return this;
|
2032
|
+
}
|
2033
|
+
/**
|
2034
|
+
* Removes a listener for a specific event. It is an alias for the off() method
|
2035
|
+
* @param {string | symbol} event
|
2036
|
+
* @param {EventListener} listener
|
2037
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
2038
|
+
*/
|
2039
|
+
removeListener(event, listener) {
|
2040
|
+
this.off(event, listener);
|
2041
|
+
return this;
|
2042
|
+
}
|
2043
|
+
/**
|
2044
|
+
* Removes a listener for a specific event
|
2045
|
+
* @param {string | symbol} event
|
2046
|
+
* @param {EventListener} listener
|
2047
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
2048
|
+
*/
|
2049
|
+
off(event, listener) {
|
2050
|
+
const listeners = this._eventListeners.get(event) ?? [];
|
2051
|
+
const index = listeners.indexOf(listener);
|
2052
|
+
if (index !== -1) {
|
2053
|
+
listeners.splice(index, 1);
|
2054
|
+
}
|
2055
|
+
if (listeners.length === 0) {
|
2056
|
+
this._eventListeners.delete(event);
|
2057
|
+
}
|
2058
|
+
return this;
|
2059
|
+
}
|
2060
|
+
/**
|
2061
|
+
* Calls all listeners for a specific event
|
2062
|
+
* @param {string | symbol} event
|
2063
|
+
* @param arguments_ The arguments to pass to the listeners
|
2064
|
+
* @returns {boolean} Returns true if the event had listeners, false otherwise
|
2065
|
+
*/
|
2066
|
+
emit(event, ...arguments_) {
|
2067
|
+
let result = false;
|
2068
|
+
const listeners = this._eventListeners.get(event);
|
2069
|
+
if (listeners && listeners.length > 0) {
|
2070
|
+
for (const listener of listeners) {
|
2071
|
+
listener(...arguments_);
|
2072
|
+
result = true;
|
2073
|
+
}
|
2074
|
+
}
|
2075
|
+
return result;
|
2076
|
+
}
|
2077
|
+
/**
|
2078
|
+
* Gets all listeners for a specific event. If no event is provided, it returns all listeners
|
2079
|
+
* @param {string} [event] (Optional) The event name
|
2080
|
+
* @returns {EventListener[]} An array of listeners
|
2081
|
+
*/
|
2082
|
+
listeners(event) {
|
2083
|
+
return this._eventListeners.get(event) ?? [];
|
2084
|
+
}
|
2085
|
+
/**
|
2086
|
+
* Removes all listeners for a specific event. If no event is provided, it removes all listeners
|
2087
|
+
* @param {string} [event] (Optional) The event name
|
2088
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
2089
|
+
*/
|
2090
|
+
removeAllListeners(event) {
|
2091
|
+
if (event) {
|
2092
|
+
this._eventListeners.delete(event);
|
2093
|
+
} else {
|
2094
|
+
this._eventListeners.clear();
|
2095
|
+
}
|
2096
|
+
return this;
|
2097
|
+
}
|
2098
|
+
/**
|
2099
|
+
* Sets the maximum number of listeners that can be added for a single event
|
2100
|
+
* @param {number} n The maximum number of listeners
|
2101
|
+
* @returns {void}
|
2102
|
+
*/
|
2103
|
+
setMaxListeners(n) {
|
2104
|
+
this._maxListeners = n;
|
2105
|
+
for (const listeners of this._eventListeners.values()) {
|
2106
|
+
if (listeners.length > n) {
|
2107
|
+
listeners.splice(n);
|
2108
|
+
}
|
2109
|
+
}
|
2110
|
+
}
|
2111
|
+
/**
|
2112
|
+
* Gets all listeners
|
2113
|
+
* @returns {EventListener[]} An array of listeners
|
2114
|
+
*/
|
2115
|
+
getAllListeners() {
|
2116
|
+
let result = new Array();
|
2117
|
+
for (const listeners of this._eventListeners.values()) {
|
2118
|
+
result = result.concat(listeners);
|
2119
|
+
}
|
2120
|
+
return result;
|
2121
|
+
}
|
2122
|
+
};
|
2123
|
+
var Hookified = class extends Eventified {
|
2124
|
+
_hooks;
|
2125
|
+
_throwHookErrors = false;
|
2126
|
+
constructor(options) {
|
2127
|
+
super();
|
2128
|
+
this._hooks = /* @__PURE__ */ new Map();
|
2129
|
+
if ((options == null ? void 0 : options.throwHookErrors) !== void 0) {
|
2130
|
+
this._throwHookErrors = options.throwHookErrors;
|
2131
|
+
}
|
2132
|
+
}
|
2133
|
+
/**
|
2134
|
+
* Gets all hooks
|
2135
|
+
* @returns {Map<string, Hook[]>}
|
2136
|
+
*/
|
2137
|
+
get hooks() {
|
2138
|
+
return this._hooks;
|
2139
|
+
}
|
2140
|
+
/**
|
2141
|
+
* Gets whether an error should be thrown when a hook throws an error. Default is false and only emits an error event.
|
2142
|
+
* @returns {boolean}
|
2143
|
+
*/
|
2144
|
+
get throwHookErrors() {
|
2145
|
+
return this._throwHookErrors;
|
2146
|
+
}
|
2147
|
+
/**
|
2148
|
+
* Sets whether an error should be thrown when a hook throws an error. Default is false and only emits an error event.
|
2149
|
+
* @param {boolean} value
|
2150
|
+
*/
|
2151
|
+
set throwHookErrors(value) {
|
2152
|
+
this._throwHookErrors = value;
|
2153
|
+
}
|
2154
|
+
/**
|
2155
|
+
* Adds a handler function for a specific event
|
2156
|
+
* @param {string} event
|
2157
|
+
* @param {Hook} handler - this can be async or sync
|
2158
|
+
* @returns {void}
|
2159
|
+
*/
|
2160
|
+
onHook(event, handler) {
|
2161
|
+
const eventHandlers = this._hooks.get(event);
|
2162
|
+
if (eventHandlers) {
|
2163
|
+
eventHandlers.push(handler);
|
2164
|
+
} else {
|
2165
|
+
this._hooks.set(event, [handler]);
|
2166
|
+
}
|
2167
|
+
}
|
2168
|
+
/**
|
2169
|
+
* Adds a handler function for a specific event that runs before all other handlers
|
2170
|
+
* @param {string} event
|
2171
|
+
* @param {Hook} handler - this can be async or sync
|
2172
|
+
* @returns {void}
|
2173
|
+
*/
|
2174
|
+
prependHook(event, handler) {
|
2175
|
+
const eventHandlers = this._hooks.get(event);
|
2176
|
+
if (eventHandlers) {
|
2177
|
+
eventHandlers.unshift(handler);
|
2178
|
+
} else {
|
2179
|
+
this._hooks.set(event, [handler]);
|
2180
|
+
}
|
2181
|
+
}
|
2182
|
+
/**
|
2183
|
+
* Adds a handler that only executes once for a specific event before all other handlers
|
2184
|
+
* @param event
|
2185
|
+
* @param handler
|
2186
|
+
*/
|
2187
|
+
prependOnceHook(event, handler) {
|
2188
|
+
const hook = async (...arguments_) => {
|
2189
|
+
this.removeHook(event, hook);
|
2190
|
+
return handler(...arguments_);
|
2191
|
+
};
|
2192
|
+
this.prependHook(event, hook);
|
2193
|
+
}
|
2194
|
+
/**
|
2195
|
+
* Adds a handler that only executes once for a specific event
|
2196
|
+
* @param event
|
2197
|
+
* @param handler
|
2198
|
+
*/
|
2199
|
+
onceHook(event, handler) {
|
2200
|
+
const hook = async (...arguments_) => {
|
2201
|
+
this.removeHook(event, hook);
|
2202
|
+
return handler(...arguments_);
|
2203
|
+
};
|
2204
|
+
this.onHook(event, hook);
|
2205
|
+
}
|
2206
|
+
/**
|
2207
|
+
* Removes a handler function for a specific event
|
2208
|
+
* @param {string} event
|
2209
|
+
* @param {Hook} handler
|
2210
|
+
* @returns {void}
|
2211
|
+
*/
|
2212
|
+
removeHook(event, handler) {
|
2213
|
+
const eventHandlers = this._hooks.get(event);
|
2214
|
+
if (eventHandlers) {
|
2215
|
+
const index = eventHandlers.indexOf(handler);
|
2216
|
+
if (index !== -1) {
|
2217
|
+
eventHandlers.splice(index, 1);
|
2218
|
+
}
|
2219
|
+
}
|
2220
|
+
}
|
2221
|
+
/**
|
2222
|
+
* Calls all handlers for a specific event
|
2223
|
+
* @param {string} event
|
2224
|
+
* @param {T[]} arguments_
|
2225
|
+
* @returns {Promise<void>}
|
2226
|
+
*/
|
2227
|
+
async hook(event, ...arguments_) {
|
2228
|
+
const eventHandlers = this._hooks.get(event);
|
2229
|
+
if (eventHandlers) {
|
2230
|
+
for (const handler of eventHandlers) {
|
2231
|
+
try {
|
2232
|
+
await handler(...arguments_);
|
2233
|
+
} catch (error) {
|
2234
|
+
const message = `${event}: ${error.message}`;
|
2235
|
+
this.emit("error", new Error(message));
|
2236
|
+
if (this._throwHookErrors) {
|
2237
|
+
throw new Error(message);
|
2238
|
+
}
|
2239
|
+
}
|
2240
|
+
}
|
2241
|
+
}
|
2242
|
+
}
|
2243
|
+
/**
|
2244
|
+
* Gets all hooks for a specific event
|
2245
|
+
* @param {string} event
|
2246
|
+
* @returns {Hook[]}
|
2247
|
+
*/
|
2248
|
+
getHooks(event) {
|
2249
|
+
return this._hooks.get(event);
|
2250
|
+
}
|
2251
|
+
/**
|
2252
|
+
* Removes all hooks
|
2253
|
+
* @returns {void}
|
2254
|
+
*/
|
2255
|
+
clearHooks() {
|
2256
|
+
this._hooks.clear();
|
2257
|
+
}
|
2258
|
+
};
|
2259
|
+
|
2260
|
+
// node_modules/cacheable/dist/index.js
|
2261
|
+
import * as crypto from "crypto";
|
2262
|
+
var structuredClone = globalThis.structuredClone ?? ((value) => JSON.parse(JSON.stringify(value)));
|
2263
|
+
var shorthandToMilliseconds = (shorthand) => {
|
2264
|
+
let milliseconds;
|
2265
|
+
if (shorthand === void 0) {
|
2266
|
+
return void 0;
|
2267
|
+
}
|
2268
|
+
if (typeof shorthand === "number") {
|
2269
|
+
milliseconds = shorthand;
|
2270
|
+
} else if (typeof shorthand === "string") {
|
2271
|
+
shorthand = shorthand.trim();
|
2272
|
+
if (Number.isNaN(Number(shorthand))) {
|
2273
|
+
const match = /^([\d.]+)\s*(ms|s|m|h|hr|d)$/i.exec(shorthand);
|
2274
|
+
if (!match) {
|
2275
|
+
throw new Error(
|
2276
|
+
`Unsupported time format: "${shorthand}". Use 'ms', 's', 'm', 'h', 'hr', or 'd'.`
|
2277
|
+
);
|
2278
|
+
}
|
2279
|
+
const [, value, unit] = match;
|
2280
|
+
const numericValue = Number.parseFloat(value);
|
2281
|
+
const unitLower = unit.toLowerCase();
|
2282
|
+
switch (unitLower) {
|
2283
|
+
case "ms": {
|
2284
|
+
milliseconds = numericValue;
|
2285
|
+
break;
|
2286
|
+
}
|
2287
|
+
case "s": {
|
2288
|
+
milliseconds = numericValue * 1e3;
|
2289
|
+
break;
|
2290
|
+
}
|
2291
|
+
case "m": {
|
2292
|
+
milliseconds = numericValue * 1e3 * 60;
|
2293
|
+
break;
|
2294
|
+
}
|
2295
|
+
case "h": {
|
2296
|
+
milliseconds = numericValue * 1e3 * 60 * 60;
|
2297
|
+
break;
|
2298
|
+
}
|
2299
|
+
case "hr": {
|
2300
|
+
milliseconds = numericValue * 1e3 * 60 * 60;
|
2301
|
+
break;
|
2302
|
+
}
|
2303
|
+
case "d": {
|
2304
|
+
milliseconds = numericValue * 1e3 * 60 * 60 * 24;
|
2305
|
+
break;
|
2306
|
+
}
|
2307
|
+
/* c8 ignore next 3 */
|
2308
|
+
default: {
|
2309
|
+
milliseconds = Number(shorthand);
|
2310
|
+
}
|
2311
|
+
}
|
2312
|
+
} else {
|
2313
|
+
milliseconds = Number(shorthand);
|
2314
|
+
}
|
2315
|
+
} else {
|
2316
|
+
throw new TypeError("Time must be a string or a number.");
|
2317
|
+
}
|
2318
|
+
return milliseconds;
|
2319
|
+
};
|
2320
|
+
var shorthandToTime = (shorthand, fromDate) => {
|
2321
|
+
fromDate || (fromDate = /* @__PURE__ */ new Date());
|
2322
|
+
const milliseconds = shorthandToMilliseconds(shorthand);
|
2323
|
+
if (milliseconds === void 0) {
|
2324
|
+
return fromDate.getTime();
|
2325
|
+
}
|
2326
|
+
return fromDate.getTime() + milliseconds;
|
2327
|
+
};
|
2328
|
+
function hash(object2, algorithm = "sha256") {
|
2329
|
+
const objectString = JSON.stringify(object2);
|
2330
|
+
if (!crypto.getHashes().includes(algorithm)) {
|
2331
|
+
throw new Error(`Unsupported hash algorithm: '${algorithm}'`);
|
2332
|
+
}
|
2333
|
+
const hasher = crypto.createHash(algorithm);
|
2334
|
+
hasher.update(objectString);
|
2335
|
+
return hasher.digest("hex");
|
2336
|
+
}
|
2337
|
+
function wrapSync(function_, options) {
|
2338
|
+
const { ttl, keyPrefix, cache } = options;
|
2339
|
+
return function(...arguments_) {
|
2340
|
+
const cacheKey = createWrapKey(function_, arguments_, keyPrefix);
|
2341
|
+
let value = cache.get(cacheKey);
|
2342
|
+
if (value === void 0) {
|
2343
|
+
try {
|
2344
|
+
value = function_(...arguments_);
|
2345
|
+
cache.set(cacheKey, value, ttl);
|
2346
|
+
} catch (error) {
|
2347
|
+
cache.emit("error", error);
|
2348
|
+
if (options.cacheErrors) {
|
2349
|
+
cache.set(cacheKey, error, ttl);
|
2350
|
+
}
|
2351
|
+
}
|
2352
|
+
}
|
2353
|
+
return value;
|
2354
|
+
};
|
2355
|
+
}
|
2356
|
+
function createWrapKey(function_, arguments_, keyPrefix) {
|
2357
|
+
if (!keyPrefix) {
|
2358
|
+
return `${function_.name}::${hash(arguments_)}`;
|
2359
|
+
}
|
2360
|
+
return `${keyPrefix}::${function_.name}::${hash(arguments_)}`;
|
2361
|
+
}
|
2362
|
+
var ListNode = class {
|
2363
|
+
// eslint-disable-next-line @typescript-eslint/parameter-properties
|
2364
|
+
value;
|
2365
|
+
prev = void 0;
|
2366
|
+
next = void 0;
|
2367
|
+
constructor(value) {
|
2368
|
+
this.value = value;
|
2369
|
+
}
|
2370
|
+
};
|
2371
|
+
var DoublyLinkedList = class {
|
2372
|
+
head = void 0;
|
2373
|
+
tail = void 0;
|
2374
|
+
nodesMap = /* @__PURE__ */ new Map();
|
2375
|
+
// Add a new node to the front (most recently used)
|
2376
|
+
addToFront(value) {
|
2377
|
+
const newNode = new ListNode(value);
|
2378
|
+
if (this.head) {
|
2379
|
+
newNode.next = this.head;
|
2380
|
+
this.head.prev = newNode;
|
2381
|
+
this.head = newNode;
|
2382
|
+
} else {
|
2383
|
+
this.head = this.tail = newNode;
|
2384
|
+
}
|
2385
|
+
this.nodesMap.set(value, newNode);
|
2386
|
+
}
|
2387
|
+
// Move an existing node to the front (most recently used)
|
2388
|
+
moveToFront(value) {
|
2389
|
+
const node = this.nodesMap.get(value);
|
2390
|
+
if (!node || this.head === node) {
|
2391
|
+
return;
|
2392
|
+
}
|
2393
|
+
if (node.prev) {
|
2394
|
+
node.prev.next = node.next;
|
2395
|
+
}
|
2396
|
+
if (node.next) {
|
2397
|
+
node.next.prev = node.prev;
|
2398
|
+
}
|
2399
|
+
if (node === this.tail) {
|
2400
|
+
this.tail = node.prev;
|
2401
|
+
}
|
2402
|
+
node.prev = void 0;
|
2403
|
+
node.next = this.head;
|
2404
|
+
if (this.head) {
|
2405
|
+
this.head.prev = node;
|
2406
|
+
}
|
2407
|
+
this.head = node;
|
2408
|
+
this.tail || (this.tail = node);
|
2409
|
+
}
|
2410
|
+
// Get the oldest node (tail)
|
2411
|
+
getOldest() {
|
2412
|
+
return this.tail ? this.tail.value : void 0;
|
2413
|
+
}
|
2414
|
+
// Remove the oldest node (tail)
|
2415
|
+
removeOldest() {
|
2416
|
+
if (!this.tail) {
|
2417
|
+
return void 0;
|
2418
|
+
}
|
2419
|
+
const oldValue = this.tail.value;
|
2420
|
+
if (this.tail.prev) {
|
2421
|
+
this.tail = this.tail.prev;
|
2422
|
+
this.tail.next = void 0;
|
2423
|
+
} else {
|
2424
|
+
this.head = this.tail = void 0;
|
2425
|
+
}
|
2426
|
+
this.nodesMap.delete(oldValue);
|
2427
|
+
return oldValue;
|
2428
|
+
}
|
2429
|
+
get size() {
|
2430
|
+
return this.nodesMap.size;
|
2431
|
+
}
|
2432
|
+
};
|
2433
|
+
var CacheableMemory = class extends Hookified {
|
2434
|
+
_lru = new DoublyLinkedList();
|
2435
|
+
_hashCache = /* @__PURE__ */ new Map();
|
2436
|
+
_hash0 = /* @__PURE__ */ new Map();
|
2437
|
+
_hash1 = /* @__PURE__ */ new Map();
|
2438
|
+
_hash2 = /* @__PURE__ */ new Map();
|
2439
|
+
_hash3 = /* @__PURE__ */ new Map();
|
2440
|
+
_hash4 = /* @__PURE__ */ new Map();
|
2441
|
+
_hash5 = /* @__PURE__ */ new Map();
|
2442
|
+
_hash6 = /* @__PURE__ */ new Map();
|
2443
|
+
_hash7 = /* @__PURE__ */ new Map();
|
2444
|
+
_hash8 = /* @__PURE__ */ new Map();
|
2445
|
+
_hash9 = /* @__PURE__ */ new Map();
|
2446
|
+
_ttl;
|
2447
|
+
// Turned off by default
|
2448
|
+
_useClone = true;
|
2449
|
+
// Turned on by default
|
2450
|
+
_lruSize = 0;
|
2451
|
+
// Turned off by default
|
2452
|
+
_checkInterval = 0;
|
2453
|
+
// Turned off by default
|
2454
|
+
_interval = 0;
|
2455
|
+
// Turned off by default
|
2456
|
+
/**
|
2457
|
+
* @constructor
|
2458
|
+
* @param {CacheableMemoryOptions} [options] - The options for the CacheableMemory
|
2459
|
+
*/
|
2460
|
+
constructor(options) {
|
2461
|
+
super();
|
2462
|
+
if (options == null ? void 0 : options.ttl) {
|
2463
|
+
this.setTtl(options.ttl);
|
2464
|
+
}
|
2465
|
+
if ((options == null ? void 0 : options.useClone) !== void 0) {
|
2466
|
+
this._useClone = options.useClone;
|
2467
|
+
}
|
2468
|
+
if (options == null ? void 0 : options.lruSize) {
|
2469
|
+
this._lruSize = options.lruSize;
|
2470
|
+
}
|
2471
|
+
if (options == null ? void 0 : options.checkInterval) {
|
2472
|
+
this._checkInterval = options.checkInterval;
|
2473
|
+
}
|
2474
|
+
this.startIntervalCheck();
|
2475
|
+
}
|
2476
|
+
/**
|
2477
|
+
* Gets the time-to-live
|
2478
|
+
* @returns {number|string|undefined} - The time-to-live in miliseconds or a human-readable format. If undefined, it will not have a time-to-live.
|
2479
|
+
*/
|
2480
|
+
get ttl() {
|
2481
|
+
return this._ttl;
|
2482
|
+
}
|
2483
|
+
/**
|
2484
|
+
* Sets the time-to-live
|
2485
|
+
* @param {number|string|undefined} value - The time-to-live in miliseconds or a human-readable format (example '1s' = 1 second, '1h' = 1 hour). If undefined, it will not have a time-to-live.
|
2486
|
+
*/
|
2487
|
+
set ttl(value) {
|
2488
|
+
this.setTtl(value);
|
2489
|
+
}
|
2490
|
+
/**
|
2491
|
+
* Gets whether to use clone
|
2492
|
+
* @returns {boolean} - If true, it will clone the value before returning it. If false, it will return the value directly. Default is true.
|
2493
|
+
*/
|
2494
|
+
get useClone() {
|
2495
|
+
return this._useClone;
|
2496
|
+
}
|
2497
|
+
/**
|
2498
|
+
* Sets whether to use clone
|
2499
|
+
* @param {boolean} value - If true, it will clone the value before returning it. If false, it will return the value directly. Default is true.
|
2500
|
+
*/
|
2501
|
+
set useClone(value) {
|
2502
|
+
this._useClone = value;
|
2503
|
+
}
|
2504
|
+
/**
|
2505
|
+
* Gets the size of the LRU cache
|
2506
|
+
* @returns {number} - The size of the LRU cache. If set to 0, it will not use LRU cache. Default is 0.
|
2507
|
+
*/
|
2508
|
+
get lruSize() {
|
2509
|
+
return this._lruSize;
|
2510
|
+
}
|
2511
|
+
/**
|
2512
|
+
* Sets the size of the LRU cache
|
2513
|
+
* @param {number} value - The size of the LRU cache. If set to 0, it will not use LRU cache. Default is 0.
|
2514
|
+
*/
|
2515
|
+
set lruSize(value) {
|
2516
|
+
this._lruSize = value;
|
2517
|
+
this.lruResize();
|
2518
|
+
}
|
2519
|
+
/**
|
2520
|
+
* Gets the check interval
|
2521
|
+
* @returns {number} - The interval to check for expired items. If set to 0, it will not check for expired items. Default is 0.
|
2522
|
+
*/
|
2523
|
+
get checkInterval() {
|
2524
|
+
return this._checkInterval;
|
2525
|
+
}
|
2526
|
+
/**
|
2527
|
+
* Sets the check interval
|
2528
|
+
* @param {number} value - The interval to check for expired items. If set to 0, it will not check for expired items. Default is 0.
|
2529
|
+
*/
|
2530
|
+
set checkInterval(value) {
|
2531
|
+
this._checkInterval = value;
|
2532
|
+
}
|
2533
|
+
/**
|
2534
|
+
* Gets the size of the cache
|
2535
|
+
* @returns {number} - The size of the cache
|
2536
|
+
*/
|
2537
|
+
get size() {
|
2538
|
+
return this._hash0.size + this._hash1.size + this._hash2.size + this._hash3.size + this._hash4.size + this._hash5.size + this._hash6.size + this._hash7.size + this._hash8.size + this._hash9.size;
|
2539
|
+
}
|
2540
|
+
/**
|
2541
|
+
* Gets the keys
|
2542
|
+
* @returns {IterableIterator<string>} - The keys
|
2543
|
+
*/
|
2544
|
+
get keys() {
|
2545
|
+
return this.concatStores().keys();
|
2546
|
+
}
|
2547
|
+
/**
|
2548
|
+
* Gets the items
|
2549
|
+
* @returns {IterableIterator<CacheableStoreItem>} - The items
|
2550
|
+
*/
|
2551
|
+
get items() {
|
2552
|
+
return this.concatStores().values();
|
2553
|
+
}
|
2554
|
+
/**
|
2555
|
+
* Gets the value of the key
|
2556
|
+
* @param {string} key - The key to get the value
|
2557
|
+
* @returns {T | undefined} - The value of the key
|
2558
|
+
*/
|
2559
|
+
get(key) {
|
2560
|
+
const store = this.getStore(key);
|
2561
|
+
const item = store.get(key);
|
2562
|
+
if (!item) {
|
2563
|
+
return void 0;
|
2564
|
+
}
|
2565
|
+
if (item.expires && item.expires && Date.now() > item.expires) {
|
2566
|
+
store.delete(key);
|
2567
|
+
return void 0;
|
2568
|
+
}
|
2569
|
+
this.lruMoveToFront(key);
|
2570
|
+
if (!this._useClone) {
|
2571
|
+
return item.value;
|
2572
|
+
}
|
2573
|
+
return this.clone(item.value);
|
2574
|
+
}
|
2575
|
+
/**
|
2576
|
+
* Gets the values of the keys
|
2577
|
+
* @param {string[]} keys - The keys to get the values
|
2578
|
+
* @returns {T[]} - The values of the keys
|
2579
|
+
*/
|
2580
|
+
getMany(keys2) {
|
2581
|
+
const result = new Array();
|
2582
|
+
for (const key of keys2) {
|
2583
|
+
result.push(this.get(key));
|
2584
|
+
}
|
2585
|
+
return result;
|
2586
|
+
}
|
2587
|
+
/**
|
2588
|
+
* Gets the raw value of the key
|
2589
|
+
* @param {string} key - The key to get the value
|
2590
|
+
* @returns {CacheableStoreItem | undefined} - The raw value of the key
|
2591
|
+
*/
|
2592
|
+
getRaw(key) {
|
2593
|
+
const store = this.getStore(key);
|
2594
|
+
const item = store.get(key);
|
2595
|
+
if (!item) {
|
2596
|
+
return void 0;
|
2597
|
+
}
|
2598
|
+
if (item.expires && item.expires && Date.now() > item.expires) {
|
2599
|
+
store.delete(key);
|
2600
|
+
return void 0;
|
2601
|
+
}
|
2602
|
+
this.lruMoveToFront(key);
|
2603
|
+
return item;
|
2604
|
+
}
|
2605
|
+
/**
|
2606
|
+
* Gets the raw values of the keys
|
2607
|
+
* @param {string[]} keys - The keys to get the values
|
2608
|
+
* @returns {CacheableStoreItem[]} - The raw values of the keys
|
2609
|
+
*/
|
2610
|
+
getManyRaw(keys2) {
|
2611
|
+
const result = new Array();
|
2612
|
+
for (const key of keys2) {
|
2613
|
+
result.push(this.getRaw(key));
|
2614
|
+
}
|
2615
|
+
return result;
|
2616
|
+
}
|
2617
|
+
/**
|
2618
|
+
* Sets the value of the key
|
2619
|
+
* @param {string} key - The key to set the value
|
2620
|
+
* @param {any} value - The value to set
|
2621
|
+
* @param {number|string|SetOptions} [ttl] - Time to Live - If you set a number it is miliseconds, if you set a string it is a human-readable.
|
2622
|
+
* If you want to set expire directly you can do that by setting the expire property in the SetOptions.
|
2623
|
+
* If you set undefined, it will use the default time-to-live. If both are undefined then it will not have a time-to-live.
|
2624
|
+
* @returns {void}
|
2625
|
+
*/
|
2626
|
+
set(key, value, ttl) {
|
2627
|
+
const store = this.getStore(key);
|
2628
|
+
let expires;
|
2629
|
+
if (ttl !== void 0 || this._ttl !== void 0) {
|
2630
|
+
if (typeof ttl === "object") {
|
2631
|
+
if (ttl.expire) {
|
2632
|
+
expires = typeof ttl.expire === "number" ? ttl.expire : ttl.expire.getTime();
|
2633
|
+
}
|
2634
|
+
if (ttl.ttl) {
|
2635
|
+
const finalTtl = shorthandToTime(ttl.ttl);
|
2636
|
+
if (finalTtl !== void 0) {
|
2637
|
+
expires = finalTtl;
|
2638
|
+
}
|
2639
|
+
}
|
2640
|
+
} else {
|
2641
|
+
const finalTtl = shorthandToTime(ttl ?? this._ttl);
|
2642
|
+
if (finalTtl !== void 0) {
|
2643
|
+
expires = finalTtl;
|
2644
|
+
}
|
2645
|
+
}
|
2646
|
+
}
|
2647
|
+
if (this._lruSize > 0) {
|
2648
|
+
if (store.has(key)) {
|
2649
|
+
this.lruMoveToFront(key);
|
2650
|
+
} else {
|
2651
|
+
this.lruAddToFront(key);
|
2652
|
+
if (this._lru.size > this._lruSize) {
|
2653
|
+
const oldestKey = this._lru.getOldest();
|
2654
|
+
if (oldestKey) {
|
2655
|
+
this._lru.removeOldest();
|
2656
|
+
this.delete(oldestKey);
|
2657
|
+
}
|
2658
|
+
}
|
2659
|
+
}
|
2660
|
+
}
|
2661
|
+
const item = { key, value, expires };
|
2662
|
+
store.set(
|
2663
|
+
key,
|
2664
|
+
item
|
2665
|
+
);
|
2666
|
+
}
|
2667
|
+
/**
|
2668
|
+
* Sets the values of the keys
|
2669
|
+
* @param {CacheableItem[]} items - The items to set
|
2670
|
+
* @returns {void}
|
2671
|
+
*/
|
2672
|
+
setMany(items) {
|
2673
|
+
for (const item of items) {
|
2674
|
+
this.set(item.key, item.value, item.ttl);
|
2675
|
+
}
|
2676
|
+
}
|
2677
|
+
/**
|
2678
|
+
* Checks if the key exists
|
2679
|
+
* @param {string} key - The key to check
|
2680
|
+
* @returns {boolean} - If true, the key exists. If false, the key does not exist.
|
2681
|
+
*/
|
2682
|
+
has(key) {
|
2683
|
+
const item = this.get(key);
|
2684
|
+
return Boolean(item);
|
2685
|
+
}
|
2686
|
+
/**
|
2687
|
+
* @function hasMany
|
2688
|
+
* @param {string[]} keys - The keys to check
|
2689
|
+
* @returns {boolean[]} - If true, the key exists. If false, the key does not exist.
|
2690
|
+
*/
|
2691
|
+
hasMany(keys2) {
|
2692
|
+
const result = new Array();
|
2693
|
+
for (const key of keys2) {
|
2694
|
+
const item = this.get(key);
|
2695
|
+
result.push(Boolean(item));
|
2696
|
+
}
|
2697
|
+
return result;
|
2698
|
+
}
|
2699
|
+
/**
|
2700
|
+
* Take will get the key and delete the entry from cache
|
2701
|
+
* @param {string} key - The key to take
|
2702
|
+
* @returns {T | undefined} - The value of the key
|
2703
|
+
*/
|
2704
|
+
take(key) {
|
2705
|
+
const item = this.get(key);
|
2706
|
+
if (!item) {
|
2707
|
+
return void 0;
|
2708
|
+
}
|
2709
|
+
this.delete(key);
|
2710
|
+
return item;
|
2711
|
+
}
|
2712
|
+
/**
|
2713
|
+
* TakeMany will get the keys and delete the entries from cache
|
2714
|
+
* @param {string[]} keys - The keys to take
|
2715
|
+
* @returns {T[]} - The values of the keys
|
2716
|
+
*/
|
2717
|
+
takeMany(keys2) {
|
2718
|
+
const result = new Array();
|
2719
|
+
for (const key of keys2) {
|
2720
|
+
result.push(this.take(key));
|
2721
|
+
}
|
2722
|
+
return result;
|
2723
|
+
}
|
2724
|
+
/**
|
2725
|
+
* Delete the key
|
2726
|
+
* @param {string} key - The key to delete
|
2727
|
+
* @returns {void}
|
2728
|
+
*/
|
2729
|
+
delete(key) {
|
2730
|
+
const store = this.getStore(key);
|
2731
|
+
store.delete(key);
|
2732
|
+
}
|
2733
|
+
/**
|
2734
|
+
* Delete the keys
|
2735
|
+
* @param {string[]} keys - The keys to delete
|
2736
|
+
* @returns {void}
|
2737
|
+
*/
|
2738
|
+
deleteMany(keys2) {
|
2739
|
+
for (const key of keys2) {
|
2740
|
+
this.delete(key);
|
2741
|
+
}
|
2742
|
+
}
|
2743
|
+
/**
|
2744
|
+
* Clear the cache
|
2745
|
+
* @returns {void}
|
2746
|
+
*/
|
2747
|
+
clear() {
|
2748
|
+
this._hash0.clear();
|
2749
|
+
this._hash1.clear();
|
2750
|
+
this._hash2.clear();
|
2751
|
+
this._hash3.clear();
|
2752
|
+
this._hash4.clear();
|
2753
|
+
this._hash5.clear();
|
2754
|
+
this._hash6.clear();
|
2755
|
+
this._hash7.clear();
|
2756
|
+
this._hash8.clear();
|
2757
|
+
this._hash9.clear();
|
2758
|
+
this._hashCache.clear();
|
2759
|
+
this._lru = new DoublyLinkedList();
|
2760
|
+
}
|
2761
|
+
/**
|
2762
|
+
* Get the store based on the key (internal use)
|
2763
|
+
* @param {string} key - The key to get the store
|
2764
|
+
* @returns {CacheableHashStore} - The store
|
2765
|
+
*/
|
2766
|
+
getStore(key) {
|
2767
|
+
const hash2 = this.hashKey(key);
|
2768
|
+
return this.getStoreFromHash(hash2);
|
2769
|
+
}
|
2770
|
+
/**
|
2771
|
+
* Get the store based on the hash (internal use)
|
2772
|
+
* @param {number} hash
|
2773
|
+
* @returns {Map<string, CacheableStoreItem>}
|
2774
|
+
*/
|
2775
|
+
getStoreFromHash(hash2) {
|
2776
|
+
switch (hash2) {
|
2777
|
+
case 1: {
|
2778
|
+
return this._hash1;
|
2779
|
+
}
|
2780
|
+
case 2: {
|
2781
|
+
return this._hash2;
|
2782
|
+
}
|
2783
|
+
case 3: {
|
2784
|
+
return this._hash3;
|
2785
|
+
}
|
2786
|
+
case 4: {
|
2787
|
+
return this._hash4;
|
2788
|
+
}
|
2789
|
+
case 5: {
|
2790
|
+
return this._hash5;
|
2791
|
+
}
|
2792
|
+
case 6: {
|
2793
|
+
return this._hash6;
|
2794
|
+
}
|
2795
|
+
case 7: {
|
2796
|
+
return this._hash7;
|
2797
|
+
}
|
2798
|
+
case 8: {
|
2799
|
+
return this._hash8;
|
2800
|
+
}
|
2801
|
+
case 9: {
|
2802
|
+
return this._hash9;
|
2803
|
+
}
|
2804
|
+
default: {
|
2805
|
+
return this._hash0;
|
2806
|
+
}
|
2807
|
+
}
|
2808
|
+
}
|
2809
|
+
/**
|
2810
|
+
* Hash the key (internal use)
|
2811
|
+
* @param key
|
2812
|
+
* @returns {number} from 0 to 9
|
2813
|
+
*/
|
2814
|
+
hashKey(key) {
|
2815
|
+
const cacheHashNumber = this._hashCache.get(key);
|
2816
|
+
if (cacheHashNumber) {
|
2817
|
+
return cacheHashNumber;
|
2818
|
+
}
|
2819
|
+
let hash2 = 0;
|
2820
|
+
const primeMultiplier = 31;
|
2821
|
+
for (let i = 0; i < key.length; i++) {
|
2822
|
+
hash2 = hash2 * primeMultiplier + key.charCodeAt(i);
|
2823
|
+
}
|
2824
|
+
const result = Math.abs(hash2) % 10;
|
2825
|
+
this._hashCache.set(key, result);
|
2826
|
+
return result;
|
2827
|
+
}
|
2828
|
+
/**
|
2829
|
+
* Clone the value. This is for internal use
|
2830
|
+
* @param {any} value - The value to clone
|
2831
|
+
* @returns {any} - The cloned value
|
2832
|
+
*/
|
2833
|
+
clone(value) {
|
2834
|
+
if (this.isPrimitive(value)) {
|
2835
|
+
return value;
|
2836
|
+
}
|
2837
|
+
return structuredClone(value);
|
2838
|
+
}
|
2839
|
+
/**
|
2840
|
+
* Add to the front of the LRU cache. This is for internal use
|
2841
|
+
* @param {string} key - The key to add to the front
|
2842
|
+
* @returns {void}
|
2843
|
+
*/
|
2844
|
+
lruAddToFront(key) {
|
2845
|
+
if (this._lruSize === 0) {
|
2846
|
+
return;
|
2847
|
+
}
|
2848
|
+
this._lru.addToFront(key);
|
2849
|
+
}
|
2850
|
+
/**
|
2851
|
+
* Move to the front of the LRU cache. This is for internal use
|
2852
|
+
* @param {string} key - The key to move to the front
|
2853
|
+
* @returns {void}
|
2854
|
+
*/
|
2855
|
+
lruMoveToFront(key) {
|
2856
|
+
if (this._lruSize === 0) {
|
2857
|
+
return;
|
2858
|
+
}
|
2859
|
+
this._lru.moveToFront(key);
|
2860
|
+
}
|
2861
|
+
/**
|
2862
|
+
* Resize the LRU cache. This is for internal use
|
2863
|
+
* @returns {void}
|
2864
|
+
*/
|
2865
|
+
lruResize() {
|
2866
|
+
if (this._lruSize === 0) {
|
2867
|
+
return;
|
2868
|
+
}
|
2869
|
+
while (this._lru.size > this._lruSize) {
|
2870
|
+
const oldestKey = this._lru.getOldest();
|
2871
|
+
if (oldestKey) {
|
2872
|
+
this._lru.removeOldest();
|
2873
|
+
this.delete(oldestKey);
|
2874
|
+
}
|
2875
|
+
}
|
2876
|
+
}
|
2877
|
+
/**
|
2878
|
+
* Check for expiration. This is for internal use
|
2879
|
+
* @returns {void}
|
2880
|
+
*/
|
2881
|
+
checkExpiration() {
|
2882
|
+
const stores = this.concatStores();
|
2883
|
+
for (const item of stores.values()) {
|
2884
|
+
if (item.expires && Date.now() > item.expires) {
|
2885
|
+
this.delete(item.key);
|
2886
|
+
}
|
2887
|
+
}
|
2888
|
+
}
|
2889
|
+
/**
|
2890
|
+
* Start the interval check. This is for internal use
|
2891
|
+
* @returns {void}
|
2892
|
+
*/
|
2893
|
+
startIntervalCheck() {
|
2894
|
+
if (this._checkInterval > 0) {
|
2895
|
+
if (this._interval) {
|
2896
|
+
clearInterval(this._interval);
|
2897
|
+
}
|
2898
|
+
this._interval = setInterval(() => {
|
2899
|
+
this.checkExpiration();
|
2900
|
+
}, this._checkInterval).unref();
|
2901
|
+
}
|
2902
|
+
}
|
2903
|
+
/**
|
2904
|
+
* Stop the interval check. This is for internal use
|
2905
|
+
* @returns {void}
|
2906
|
+
*/
|
2907
|
+
stopIntervalCheck() {
|
2908
|
+
if (this._interval) {
|
2909
|
+
clearInterval(this._interval);
|
2910
|
+
}
|
2911
|
+
this._interval = 0;
|
2912
|
+
this._checkInterval = 0;
|
2913
|
+
}
|
2914
|
+
/**
|
2915
|
+
* Hash the object. This is for internal use
|
2916
|
+
* @param {any} object - The object to hash
|
2917
|
+
* @param {string} [algorithm='sha256'] - The algorithm to hash
|
2918
|
+
* @returns {string} - The hashed string
|
2919
|
+
*/
|
2920
|
+
hash(object2, algorithm = "sha256") {
|
2921
|
+
return hash(object2, algorithm);
|
2922
|
+
}
|
2923
|
+
/**
|
2924
|
+
* Wrap the function for caching
|
2925
|
+
* @param {Function} function_ - The function to wrap
|
2926
|
+
* @param {Object} [options] - The options to wrap
|
2927
|
+
* @returns {Function} - The wrapped function
|
2928
|
+
*/
|
2929
|
+
wrap(function_, options) {
|
2930
|
+
const wrapOptions = {
|
2931
|
+
ttl: (options == null ? void 0 : options.ttl) ?? this._ttl,
|
2932
|
+
keyPrefix: options == null ? void 0 : options.keyPrefix,
|
2933
|
+
cache: this
|
2934
|
+
};
|
2935
|
+
return wrapSync(function_, wrapOptions);
|
2936
|
+
}
|
2937
|
+
isPrimitive(value) {
|
2938
|
+
const result = false;
|
2939
|
+
if (value === null || value === void 0) {
|
2940
|
+
return true;
|
2941
|
+
}
|
2942
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
2943
|
+
return true;
|
2944
|
+
}
|
2945
|
+
return result;
|
2946
|
+
}
|
2947
|
+
concatStores() {
|
2948
|
+
return new Map([...this._hash0, ...this._hash1, ...this._hash2, ...this._hash3, ...this._hash4, ...this._hash5, ...this._hash6, ...this._hash7, ...this._hash8, ...this._hash9]);
|
2949
|
+
}
|
2950
|
+
setTtl(ttl) {
|
2951
|
+
if (typeof ttl === "string" || ttl === void 0) {
|
2952
|
+
this._ttl = ttl;
|
2953
|
+
} else if (ttl > 0) {
|
2954
|
+
this._ttl = ttl;
|
2955
|
+
} else {
|
2956
|
+
this._ttl = void 0;
|
2957
|
+
}
|
2958
|
+
}
|
2959
|
+
};
|
2960
|
+
|
2961
|
+
// node_modules/flatted/esm/index.js
|
2962
|
+
var { parse: $parse, stringify: $stringify } = JSON;
|
2963
|
+
var { keys } = Object;
|
2964
|
+
var Primitive = String;
|
2965
|
+
var primitive = "string";
|
2966
|
+
var ignore = {};
|
2967
|
+
var object = "object";
|
2968
|
+
var noop = (_2, value) => value;
|
2969
|
+
var primitives = (value) => value instanceof Primitive ? Primitive(value) : value;
|
2970
|
+
var Primitives = (_2, value) => typeof value === primitive ? new Primitive(value) : value;
|
2971
|
+
var revive = (input, parsed, output, $) => {
|
2972
|
+
const lazy = [];
|
2973
|
+
for (let ke = keys(output), { length } = ke, y = 0; y < length; y++) {
|
2974
|
+
const k = ke[y];
|
2975
|
+
const value = output[k];
|
2976
|
+
if (value instanceof Primitive) {
|
2977
|
+
const tmp = input[value];
|
2978
|
+
if (typeof tmp === object && !parsed.has(tmp)) {
|
2979
|
+
parsed.add(tmp);
|
2980
|
+
output[k] = ignore;
|
2981
|
+
lazy.push({ k, a: [input, parsed, tmp, $] });
|
2982
|
+
} else
|
2983
|
+
output[k] = $.call(output, k, tmp);
|
2984
|
+
} else if (output[k] !== ignore)
|
2985
|
+
output[k] = $.call(output, k, value);
|
2986
|
+
}
|
2987
|
+
for (let { length } = lazy, i = 0; i < length; i++) {
|
2988
|
+
const { k, a } = lazy[i];
|
2989
|
+
output[k] = $.call(output, k, revive.apply(null, a));
|
2990
|
+
}
|
2991
|
+
return output;
|
2992
|
+
};
|
2993
|
+
var set = (known, input, value) => {
|
2994
|
+
const index = Primitive(input.push(value) - 1);
|
2995
|
+
known.set(value, index);
|
2996
|
+
return index;
|
2997
|
+
};
|
2998
|
+
var parse = (text, reviver) => {
|
2999
|
+
const input = $parse(text, Primitives).map(primitives);
|
3000
|
+
const value = input[0];
|
3001
|
+
const $ = reviver || noop;
|
3002
|
+
const tmp = typeof value === object && value ? revive(input, /* @__PURE__ */ new Set(), value, $) : value;
|
3003
|
+
return $.call({ "": tmp }, "", tmp);
|
3004
|
+
};
|
3005
|
+
var stringify2 = (value, replacer, space) => {
|
3006
|
+
const $ = replacer && typeof replacer === object ? (k, v) => k === "" || -1 < replacer.indexOf(k) ? v : void 0 : replacer || noop;
|
3007
|
+
const known = /* @__PURE__ */ new Map();
|
3008
|
+
const input = [];
|
3009
|
+
const output = [];
|
3010
|
+
let i = +set(known, input, $.call({ "": value }, "", value));
|
3011
|
+
let firstRun = !i;
|
3012
|
+
while (i < input.length) {
|
3013
|
+
firstRun = true;
|
3014
|
+
output[i] = $stringify(input[i++], replace, space);
|
3015
|
+
}
|
3016
|
+
return "[" + output.join(",") + "]";
|
3017
|
+
function replace(key, value2) {
|
3018
|
+
if (firstRun) {
|
3019
|
+
firstRun = !firstRun;
|
3020
|
+
return value2;
|
3021
|
+
}
|
3022
|
+
const after = $.call(this, key, value2);
|
3023
|
+
switch (typeof after) {
|
3024
|
+
case object:
|
3025
|
+
if (after === null) return after;
|
3026
|
+
case primitive:
|
3027
|
+
return known.get(after) || set(known, input, after);
|
3028
|
+
}
|
3029
|
+
return after;
|
3030
|
+
}
|
3031
|
+
};
|
3032
|
+
|
3033
|
+
// node_modules/file-entry-cache/node_modules/flat-cache/dist/index.js
|
3034
|
+
var FlatCache = class extends Hookified {
|
3035
|
+
_cache = new CacheableMemory();
|
3036
|
+
_cacheDir = ".cache";
|
3037
|
+
_cacheId = "cache1";
|
3038
|
+
_persistInterval = 0;
|
3039
|
+
_persistTimer;
|
3040
|
+
_changesSinceLastSave = false;
|
3041
|
+
_parse = parse;
|
3042
|
+
_stringify = stringify2;
|
3043
|
+
constructor(options) {
|
3044
|
+
super();
|
3045
|
+
if (options) {
|
3046
|
+
this._cache = new CacheableMemory({
|
3047
|
+
ttl: options.ttl,
|
3048
|
+
useClone: options.useClone,
|
3049
|
+
lruSize: options.lruSize,
|
3050
|
+
checkInterval: options.expirationInterval
|
3051
|
+
});
|
3052
|
+
}
|
3053
|
+
if (options == null ? void 0 : options.cacheDir) {
|
3054
|
+
this._cacheDir = options.cacheDir;
|
3055
|
+
}
|
3056
|
+
if (options == null ? void 0 : options.cacheId) {
|
3057
|
+
this._cacheId = options.cacheId;
|
3058
|
+
}
|
3059
|
+
if (options == null ? void 0 : options.persistInterval) {
|
3060
|
+
this._persistInterval = options.persistInterval;
|
3061
|
+
this.startAutoPersist();
|
3062
|
+
}
|
3063
|
+
if (options == null ? void 0 : options.deserialize) {
|
3064
|
+
this._parse = options.deserialize;
|
3065
|
+
}
|
3066
|
+
if (options == null ? void 0 : options.serialize) {
|
3067
|
+
this._stringify = options.serialize;
|
3068
|
+
}
|
3069
|
+
}
|
3070
|
+
/**
|
3071
|
+
* The cache object
|
3072
|
+
* @property cache
|
3073
|
+
* @type {CacheableMemory}
|
3074
|
+
*/
|
3075
|
+
get cache() {
|
3076
|
+
return this._cache;
|
3077
|
+
}
|
3078
|
+
/**
|
3079
|
+
* The cache directory
|
3080
|
+
* @property cacheDir
|
3081
|
+
* @type {String}
|
3082
|
+
* @default '.cache'
|
3083
|
+
*/
|
3084
|
+
get cacheDir() {
|
3085
|
+
return this._cacheDir;
|
3086
|
+
}
|
3087
|
+
/**
|
3088
|
+
* Set the cache directory
|
3089
|
+
* @property cacheDir
|
3090
|
+
* @type {String}
|
3091
|
+
* @default '.cache'
|
3092
|
+
*/
|
3093
|
+
set cacheDir(value) {
|
3094
|
+
this._cacheDir = value;
|
3095
|
+
}
|
3096
|
+
/**
|
3097
|
+
* The cache id
|
3098
|
+
* @property cacheId
|
3099
|
+
* @type {String}
|
3100
|
+
* @default 'cache1'
|
3101
|
+
*/
|
3102
|
+
get cacheId() {
|
3103
|
+
return this._cacheId;
|
3104
|
+
}
|
3105
|
+
/**
|
3106
|
+
* Set the cache id
|
3107
|
+
* @property cacheId
|
3108
|
+
* @type {String}
|
3109
|
+
* @default 'cache1'
|
3110
|
+
*/
|
3111
|
+
set cacheId(value) {
|
3112
|
+
this._cacheId = value;
|
3113
|
+
}
|
3114
|
+
/**
|
3115
|
+
* The flag to indicate if there are changes since the last save
|
3116
|
+
* @property changesSinceLastSave
|
3117
|
+
* @type {Boolean}
|
3118
|
+
* @default false
|
3119
|
+
*/
|
3120
|
+
get changesSinceLastSave() {
|
3121
|
+
return this._changesSinceLastSave;
|
3122
|
+
}
|
3123
|
+
/**
|
3124
|
+
* The interval to persist the cache to disk. 0 means no timed persistence
|
3125
|
+
* @property persistInterval
|
3126
|
+
* @type {Number}
|
3127
|
+
* @default 0
|
3128
|
+
*/
|
3129
|
+
get persistInterval() {
|
3130
|
+
return this._persistInterval;
|
3131
|
+
}
|
3132
|
+
/**
|
3133
|
+
* Set the interval to persist the cache to disk. 0 means no timed persistence
|
3134
|
+
* @property persistInterval
|
3135
|
+
* @type {Number}
|
3136
|
+
* @default 0
|
3137
|
+
*/
|
3138
|
+
set persistInterval(value) {
|
3139
|
+
this._persistInterval = value;
|
3140
|
+
}
|
3141
|
+
/**
|
3142
|
+
* Load a cache identified by the given Id. If the element does not exists, then initialize an empty
|
3143
|
+
* cache storage. If specified `cacheDir` will be used as the directory to persist the data to. If omitted
|
3144
|
+
* then the cache module directory `.cacheDir` will be used instead
|
3145
|
+
*
|
3146
|
+
* @method load
|
3147
|
+
* @param cacheId {String} the id of the cache, would also be used as the name of the file cache
|
3148
|
+
* @param cacheDir {String} directory for the cache entry
|
3149
|
+
*/
|
3150
|
+
// eslint-disable-next-line unicorn/prevent-abbreviations
|
3151
|
+
load(cacheId, cacheDir) {
|
3152
|
+
try {
|
3153
|
+
const filePath = path9.resolve(`${cacheDir ?? this._cacheDir}/${cacheId ?? this._cacheId}`);
|
3154
|
+
this.loadFile(filePath);
|
3155
|
+
this.emit(
|
3156
|
+
"load"
|
3157
|
+
/* LOAD */
|
3158
|
+
);
|
3159
|
+
} catch (error) {
|
3160
|
+
this.emit("error", error);
|
3161
|
+
}
|
3162
|
+
}
|
3163
|
+
/**
|
3164
|
+
* Load the cache from the provided file
|
3165
|
+
* @method loadFile
|
3166
|
+
* @param {String} pathToFile the path to the file containing the info for the cache
|
3167
|
+
*/
|
3168
|
+
loadFile(pathToFile) {
|
3169
|
+
if (fs5.existsSync(pathToFile)) {
|
3170
|
+
const data = fs5.readFileSync(pathToFile, "utf8");
|
3171
|
+
const items = this._parse(data);
|
3172
|
+
for (const key of Object.keys(items)) {
|
3173
|
+
this._cache.set(items[key].key, items[key].value, { expire: items[key].expires });
|
3174
|
+
}
|
3175
|
+
this._changesSinceLastSave = true;
|
3176
|
+
}
|
3177
|
+
}
|
3178
|
+
/**
|
3179
|
+
* Returns the entire persisted object
|
3180
|
+
* @method all
|
3181
|
+
* @returns {*}
|
3182
|
+
*/
|
3183
|
+
all() {
|
3184
|
+
const result = {};
|
3185
|
+
const items = Array.from(this._cache.items);
|
3186
|
+
for (const item of items) {
|
3187
|
+
result[item.key] = item.value;
|
3188
|
+
}
|
3189
|
+
return result;
|
3190
|
+
}
|
3191
|
+
/**
|
3192
|
+
* Returns an array with all the items in the cache { key, value, ttl }
|
3193
|
+
* @method items
|
3194
|
+
* @returns {Array}
|
3195
|
+
*/
|
3196
|
+
get items() {
|
3197
|
+
return Array.from(this._cache.items);
|
3198
|
+
}
|
3199
|
+
/**
|
3200
|
+
* Returns the path to the file where the cache is persisted
|
3201
|
+
* @method cacheFilePath
|
3202
|
+
* @returns {String}
|
3203
|
+
*/
|
3204
|
+
get cacheFilePath() {
|
3205
|
+
return path9.resolve(`${this._cacheDir}/${this._cacheId}`);
|
3206
|
+
}
|
3207
|
+
/**
|
3208
|
+
* Returns the path to the cache directory
|
3209
|
+
* @method cacheDirPath
|
3210
|
+
* @returns {String}
|
3211
|
+
*/
|
3212
|
+
get cacheDirPath() {
|
3213
|
+
return path9.resolve(this._cacheDir);
|
3214
|
+
}
|
3215
|
+
/**
|
3216
|
+
* Returns an array with all the keys in the cache
|
3217
|
+
* @method keys
|
3218
|
+
* @returns {Array}
|
3219
|
+
*/
|
3220
|
+
keys() {
|
3221
|
+
return Array.from(this._cache.keys);
|
3222
|
+
}
|
3223
|
+
/**
|
3224
|
+
* (Legacy) set key method. This method will be deprecated in the future
|
3225
|
+
* @method setKey
|
3226
|
+
* @param key {string} the key to set
|
3227
|
+
* @param value {object} the value of the key. Could be any object that can be serialized with JSON.stringify
|
3228
|
+
*/
|
3229
|
+
setKey(key, value, ttl) {
|
3230
|
+
this.set(key, value, ttl);
|
3231
|
+
}
|
3232
|
+
/**
|
3233
|
+
* Sets a key to a given value
|
3234
|
+
* @method set
|
3235
|
+
* @param key {string} the key to set
|
3236
|
+
* @param value {object} the value of the key. Could be any object that can be serialized with JSON.stringify
|
3237
|
+
* @param [ttl] {number} the time to live in milliseconds
|
3238
|
+
*/
|
3239
|
+
set(key, value, ttl) {
|
3240
|
+
this._cache.set(key, value, ttl);
|
3241
|
+
this._changesSinceLastSave = true;
|
3242
|
+
}
|
3243
|
+
/**
|
3244
|
+
* (Legacy) Remove a given key from the cache. This method will be deprecated in the future
|
3245
|
+
* @method removeKey
|
3246
|
+
* @param key {String} the key to remove from the object
|
3247
|
+
*/
|
3248
|
+
removeKey(key) {
|
3249
|
+
this.delete(key);
|
3250
|
+
}
|
3251
|
+
/**
|
3252
|
+
* Remove a given key from the cache
|
3253
|
+
* @method delete
|
3254
|
+
* @param key {String} the key to remove from the object
|
3255
|
+
*/
|
3256
|
+
delete(key) {
|
3257
|
+
this._cache.delete(key);
|
3258
|
+
this._changesSinceLastSave = true;
|
3259
|
+
this.emit("delete", key);
|
3260
|
+
}
|
3261
|
+
/**
|
3262
|
+
* (Legacy) Return the value of the provided key. This method will be deprecated in the future
|
3263
|
+
* @method getKey<T>
|
3264
|
+
* @param key {String} the name of the key to retrieve
|
3265
|
+
* @returns {*} at T the value from the key
|
3266
|
+
*/
|
3267
|
+
getKey(key) {
|
3268
|
+
return this.get(key);
|
3269
|
+
}
|
3270
|
+
/**
|
3271
|
+
* Return the value of the provided key
|
3272
|
+
* @method get<T>
|
3273
|
+
* @param key {String} the name of the key to retrieve
|
3274
|
+
* @returns {*} at T the value from the key
|
3275
|
+
*/
|
3276
|
+
get(key) {
|
3277
|
+
return this._cache.get(key);
|
3278
|
+
}
|
3279
|
+
/**
|
3280
|
+
* Clear the cache and save the state to disk
|
3281
|
+
* @method clear
|
3282
|
+
*/
|
3283
|
+
clear() {
|
3284
|
+
try {
|
3285
|
+
this._cache.clear();
|
3286
|
+
this._changesSinceLastSave = true;
|
3287
|
+
this.save();
|
3288
|
+
this.emit(
|
3289
|
+
"clear"
|
3290
|
+
/* CLEAR */
|
3291
|
+
);
|
3292
|
+
} catch (error) {
|
3293
|
+
this.emit("error", error);
|
3294
|
+
}
|
3295
|
+
}
|
3296
|
+
/**
|
3297
|
+
* Save the state of the cache identified by the docId to disk
|
3298
|
+
* as a JSON structure
|
3299
|
+
* @method save
|
3300
|
+
*/
|
3301
|
+
save(force = false) {
|
3302
|
+
try {
|
3303
|
+
if (this._changesSinceLastSave || force) {
|
3304
|
+
const filePath = this.cacheFilePath;
|
3305
|
+
const items = Array.from(this._cache.items);
|
3306
|
+
const data = this._stringify(items);
|
3307
|
+
if (!fs5.existsSync(this._cacheDir)) {
|
3308
|
+
fs5.mkdirSync(this._cacheDir, { recursive: true });
|
3309
|
+
}
|
3310
|
+
fs5.writeFileSync(filePath, data);
|
3311
|
+
this._changesSinceLastSave = false;
|
3312
|
+
this.emit(
|
3313
|
+
"save"
|
3314
|
+
/* SAVE */
|
3315
|
+
);
|
3316
|
+
}
|
3317
|
+
} catch (error) {
|
3318
|
+
this.emit("error", error);
|
3319
|
+
}
|
3320
|
+
}
|
3321
|
+
/**
|
3322
|
+
* Remove the file where the cache is persisted
|
3323
|
+
* @method removeCacheFile
|
3324
|
+
* @return {Boolean} true or false if the file was successfully deleted
|
3325
|
+
*/
|
3326
|
+
removeCacheFile() {
|
3327
|
+
try {
|
3328
|
+
if (fs5.existsSync(this.cacheFilePath)) {
|
3329
|
+
fs5.rmSync(this.cacheFilePath);
|
3330
|
+
return true;
|
3331
|
+
}
|
3332
|
+
} catch (error) {
|
3333
|
+
this.emit("error", error);
|
3334
|
+
}
|
3335
|
+
return false;
|
3336
|
+
}
|
3337
|
+
/**
|
3338
|
+
* Destroy the cache. This will remove the directory, file, and memory cache
|
3339
|
+
* @method destroy
|
3340
|
+
* @param [includeCacheDir=false] {Boolean} if true, the cache directory will be removed
|
3341
|
+
* @return {undefined}
|
3342
|
+
*/
|
3343
|
+
destroy(includeCacheDirectory = false) {
|
3344
|
+
try {
|
3345
|
+
this._cache.clear();
|
3346
|
+
this.stopAutoPersist();
|
3347
|
+
if (includeCacheDirectory) {
|
3348
|
+
fs5.rmSync(this.cacheDirPath, { recursive: true, force: true });
|
3349
|
+
} else {
|
3350
|
+
fs5.rmSync(this.cacheFilePath, { recursive: true, force: true });
|
3351
|
+
}
|
3352
|
+
this._changesSinceLastSave = false;
|
3353
|
+
this.emit(
|
3354
|
+
"destroy"
|
3355
|
+
/* DESTROY */
|
3356
|
+
);
|
3357
|
+
} catch (error) {
|
3358
|
+
this.emit("error", error);
|
3359
|
+
}
|
3360
|
+
}
|
3361
|
+
/**
|
3362
|
+
* Start the auto persist interval
|
3363
|
+
* @method startAutoPersist
|
3364
|
+
*/
|
3365
|
+
startAutoPersist() {
|
3366
|
+
if (this._persistInterval > 0) {
|
3367
|
+
if (this._persistTimer) {
|
3368
|
+
clearInterval(this._persistTimer);
|
3369
|
+
this._persistTimer = void 0;
|
3370
|
+
}
|
3371
|
+
this._persistTimer = setInterval(() => {
|
3372
|
+
this.save();
|
3373
|
+
}, this._persistInterval);
|
3374
|
+
}
|
3375
|
+
}
|
3376
|
+
/**
|
3377
|
+
* Stop the auto persist interval
|
3378
|
+
* @method stopAutoPersist
|
3379
|
+
*/
|
3380
|
+
stopAutoPersist() {
|
3381
|
+
if (this._persistTimer) {
|
3382
|
+
clearInterval(this._persistTimer);
|
3383
|
+
this._persistTimer = void 0;
|
3384
|
+
}
|
3385
|
+
}
|
3386
|
+
};
|
3387
|
+
function createFromFile(filePath, options) {
|
3388
|
+
const cache = new FlatCache(options);
|
3389
|
+
cache.loadFile(filePath);
|
3390
|
+
return cache;
|
3391
|
+
}
|
3392
|
+
|
3393
|
+
// node_modules/file-entry-cache/dist/index.js
|
3394
|
+
function createFromFile2(filePath, useCheckSum, currentWorkingDirectory) {
|
3395
|
+
const fname = path10.basename(filePath);
|
3396
|
+
const directory = path10.dirname(filePath);
|
3397
|
+
return create(fname, directory, useCheckSum, currentWorkingDirectory);
|
3398
|
+
}
|
3399
|
+
function create(cacheId, cacheDirectory, useCheckSum, currentWorkingDirectory) {
|
3400
|
+
const options = {
|
3401
|
+
currentWorkingDirectory,
|
3402
|
+
useCheckSum,
|
3403
|
+
cache: {
|
3404
|
+
cacheId,
|
3405
|
+
cacheDir: cacheDirectory
|
3406
|
+
}
|
3407
|
+
};
|
3408
|
+
const fileEntryCache = new FileEntryCache(options);
|
3409
|
+
if (cacheDirectory) {
|
3410
|
+
const cachePath = `${cacheDirectory}/${cacheId}`;
|
3411
|
+
if (fs6.existsSync(cachePath)) {
|
3412
|
+
fileEntryCache.cache = createFromFile(cachePath, options.cache);
|
3413
|
+
}
|
3414
|
+
}
|
3415
|
+
return fileEntryCache;
|
3416
|
+
}
|
3417
|
+
var FileEntryDefault = class {
|
3418
|
+
static create = create;
|
3419
|
+
static createFromFile = createFromFile2;
|
3420
|
+
};
|
3421
|
+
var FileEntryCache = class {
|
3422
|
+
_cache = new FlatCache({ useClone: false });
|
3423
|
+
_useCheckSum = false;
|
3424
|
+
_currentWorkingDirectory;
|
3425
|
+
_hashAlgorithm = "md5";
|
3426
|
+
constructor(options) {
|
3427
|
+
if (options == null ? void 0 : options.cache) {
|
3428
|
+
this._cache = new FlatCache(options.cache);
|
3429
|
+
}
|
3430
|
+
if (options == null ? void 0 : options.useCheckSum) {
|
3431
|
+
this._useCheckSum = options.useCheckSum;
|
3432
|
+
}
|
3433
|
+
if (options == null ? void 0 : options.currentWorkingDirectory) {
|
3434
|
+
this._currentWorkingDirectory = options.currentWorkingDirectory;
|
3435
|
+
}
|
3436
|
+
if (options == null ? void 0 : options.hashAlgorithm) {
|
3437
|
+
this._hashAlgorithm = options.hashAlgorithm;
|
3438
|
+
}
|
3439
|
+
}
|
3440
|
+
get cache() {
|
3441
|
+
return this._cache;
|
3442
|
+
}
|
3443
|
+
set cache(cache) {
|
3444
|
+
this._cache = cache;
|
3445
|
+
}
|
3446
|
+
get useCheckSum() {
|
3447
|
+
return this._useCheckSum;
|
3448
|
+
}
|
3449
|
+
set useCheckSum(value) {
|
3450
|
+
this._useCheckSum = value;
|
3451
|
+
}
|
3452
|
+
get hashAlgorithm() {
|
3453
|
+
return this._hashAlgorithm;
|
3454
|
+
}
|
3455
|
+
set hashAlgorithm(value) {
|
3456
|
+
this._hashAlgorithm = value;
|
3457
|
+
}
|
3458
|
+
get currentWorkingDirectory() {
|
3459
|
+
return this._currentWorkingDirectory;
|
3460
|
+
}
|
3461
|
+
set currentWorkingDirectory(value) {
|
3462
|
+
this._currentWorkingDirectory = value;
|
3463
|
+
}
|
3464
|
+
/**
|
3465
|
+
* Given a buffer, calculate md5 hash of its content.
|
3466
|
+
* @method getHash
|
3467
|
+
* @param {Buffer} buffer buffer to calculate hash on
|
3468
|
+
* @return {String} content hash digest
|
3469
|
+
*/
|
3470
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
3471
|
+
getHash(buffer) {
|
3472
|
+
return crypto2.createHash(this._hashAlgorithm).update(buffer).digest("hex");
|
3473
|
+
}
|
3474
|
+
/**
|
3475
|
+
* Create the key for the file path used for caching.
|
3476
|
+
* @method createFileKey
|
3477
|
+
* @param {String} filePath
|
3478
|
+
* @return {String}
|
3479
|
+
*/
|
3480
|
+
createFileKey(filePath, options) {
|
3481
|
+
let result = filePath;
|
3482
|
+
const currentWorkingDirectory = (options == null ? void 0 : options.currentWorkingDirectory) ?? this._currentWorkingDirectory;
|
3483
|
+
if (currentWorkingDirectory && filePath.startsWith(currentWorkingDirectory)) {
|
3484
|
+
const splitPath = filePath.split(currentWorkingDirectory).pop();
|
3485
|
+
if (splitPath) {
|
3486
|
+
result = splitPath;
|
3487
|
+
if (result.startsWith("/")) {
|
3488
|
+
result = result.slice(1);
|
3489
|
+
}
|
3490
|
+
}
|
3491
|
+
}
|
3492
|
+
return result;
|
3493
|
+
}
|
3494
|
+
/**
|
3495
|
+
* Check if the file path is a relative path
|
3496
|
+
* @method isRelativePath
|
3497
|
+
* @param filePath - The file path to check
|
3498
|
+
* @returns {boolean} if the file path is a relative path, false otherwise
|
3499
|
+
*/
|
3500
|
+
isRelativePath(filePath) {
|
3501
|
+
return !path10.isAbsolute(filePath);
|
3502
|
+
}
|
3503
|
+
/**
|
3504
|
+
* Delete the cache file from the disk
|
3505
|
+
* @method deleteCacheFile
|
3506
|
+
* @return {boolean} true if the file was deleted, false otherwise
|
3507
|
+
*/
|
3508
|
+
deleteCacheFile() {
|
3509
|
+
return this._cache.removeCacheFile();
|
3510
|
+
}
|
3511
|
+
/**
|
3512
|
+
* Remove the cache from the file and clear the memory cache
|
3513
|
+
* @method destroy
|
3514
|
+
*/
|
3515
|
+
destroy() {
|
3516
|
+
this._cache.destroy();
|
3517
|
+
}
|
3518
|
+
/**
|
3519
|
+
* Remove and Entry From the Cache
|
3520
|
+
* @method removeEntry
|
3521
|
+
* @param filePath - The file path to remove from the cache
|
3522
|
+
*/
|
3523
|
+
removeEntry(filePath, options) {
|
3524
|
+
if (this.isRelativePath(filePath)) {
|
3525
|
+
filePath = this.getAbsolutePath(filePath, { currentWorkingDirectory: options == null ? void 0 : options.currentWorkingDirectory });
|
3526
|
+
this._cache.removeKey(this.createFileKey(filePath));
|
3527
|
+
}
|
3528
|
+
const key = this.createFileKey(filePath, { currentWorkingDirectory: options == null ? void 0 : options.currentWorkingDirectory });
|
3529
|
+
this._cache.removeKey(key);
|
3530
|
+
}
|
3531
|
+
/**
|
3532
|
+
* Reconcile the cache
|
3533
|
+
* @method reconcile
|
3534
|
+
*/
|
3535
|
+
reconcile() {
|
3536
|
+
const items = this._cache.items;
|
3537
|
+
for (const item of items) {
|
3538
|
+
const fileDescriptor = this.getFileDescriptor(item.key);
|
3539
|
+
if (fileDescriptor.notFound) {
|
3540
|
+
this._cache.removeKey(item.key);
|
3541
|
+
}
|
3542
|
+
}
|
3543
|
+
this._cache.save();
|
3544
|
+
}
|
3545
|
+
/**
|
3546
|
+
* Check if the file has changed
|
3547
|
+
* @method hasFileChanged
|
3548
|
+
* @param filePath - The file path to check
|
3549
|
+
* @returns {boolean} if the file has changed, false otherwise
|
3550
|
+
*/
|
3551
|
+
hasFileChanged(filePath) {
|
3552
|
+
let result = false;
|
3553
|
+
const fileDescriptor = this.getFileDescriptor(filePath);
|
3554
|
+
if ((!fileDescriptor.err || !fileDescriptor.notFound) && fileDescriptor.changed) {
|
3555
|
+
result = true;
|
3556
|
+
}
|
3557
|
+
return result;
|
3558
|
+
}
|
3559
|
+
/**
|
3560
|
+
* Get the file descriptor for the file path
|
3561
|
+
* @method getFileDescriptor
|
3562
|
+
* @param filePath - The file path to get the file descriptor for
|
3563
|
+
* @param options - The options for getting the file descriptor
|
3564
|
+
* @returns The file descriptor
|
3565
|
+
*/
|
3566
|
+
getFileDescriptor(filePath, options) {
|
3567
|
+
var _a, _b, _c;
|
3568
|
+
let fstat;
|
3569
|
+
const result = {
|
3570
|
+
key: this.createFileKey(filePath),
|
3571
|
+
changed: false,
|
3572
|
+
meta: {}
|
3573
|
+
};
|
3574
|
+
result.meta = this._cache.getKey(result.key) ?? {};
|
3575
|
+
filePath = this.getAbsolutePath(filePath, { currentWorkingDirectory: options == null ? void 0 : options.currentWorkingDirectory });
|
3576
|
+
const useCheckSumValue = (options == null ? void 0 : options.useCheckSum) ?? this._useCheckSum;
|
3577
|
+
try {
|
3578
|
+
fstat = fs6.statSync(filePath);
|
3579
|
+
result.meta = {
|
3580
|
+
size: fstat.size
|
3581
|
+
};
|
3582
|
+
result.meta.mtime = fstat.mtime.getTime();
|
3583
|
+
if (useCheckSumValue) {
|
3584
|
+
const buffer = fs6.readFileSync(filePath);
|
3585
|
+
result.meta.hash = this.getHash(buffer);
|
3586
|
+
}
|
3587
|
+
} catch (error) {
|
3588
|
+
this.removeEntry(filePath);
|
3589
|
+
let notFound = false;
|
3590
|
+
if (error.message.includes("ENOENT")) {
|
3591
|
+
notFound = true;
|
3592
|
+
}
|
3593
|
+
return {
|
3594
|
+
key: result.key,
|
3595
|
+
err: error,
|
3596
|
+
notFound,
|
3597
|
+
meta: {}
|
3598
|
+
};
|
3599
|
+
}
|
3600
|
+
const metaCache = this._cache.getKey(result.key);
|
3601
|
+
if (!metaCache) {
|
3602
|
+
result.changed = true;
|
3603
|
+
this._cache.setKey(result.key, result.meta);
|
3604
|
+
return result;
|
3605
|
+
}
|
3606
|
+
if (result.meta.data === void 0) {
|
3607
|
+
result.meta.data = metaCache.data;
|
3608
|
+
}
|
3609
|
+
if ((metaCache == null ? void 0 : metaCache.mtime) !== ((_a = result.meta) == null ? void 0 : _a.mtime) || (metaCache == null ? void 0 : metaCache.size) !== ((_b = result.meta) == null ? void 0 : _b.size)) {
|
3610
|
+
result.changed = true;
|
3611
|
+
}
|
3612
|
+
if (useCheckSumValue && (metaCache == null ? void 0 : metaCache.hash) !== ((_c = result.meta) == null ? void 0 : _c.hash)) {
|
3613
|
+
result.changed = true;
|
3614
|
+
}
|
3615
|
+
this._cache.setKey(result.key, result.meta);
|
3616
|
+
return result;
|
3617
|
+
}
|
3618
|
+
/**
|
3619
|
+
* Get the file descriptors for the files
|
3620
|
+
* @method normalizeEntries
|
3621
|
+
* @param files?: string[] - The files to get the file descriptors for
|
3622
|
+
* @returns The file descriptors
|
3623
|
+
*/
|
3624
|
+
normalizeEntries(files) {
|
3625
|
+
const result = new Array();
|
3626
|
+
if (files) {
|
3627
|
+
for (const file of files) {
|
3628
|
+
const fileDescriptor = this.getFileDescriptor(file);
|
3629
|
+
result.push(fileDescriptor);
|
3630
|
+
}
|
3631
|
+
return result;
|
3632
|
+
}
|
3633
|
+
const keys2 = this.cache.keys();
|
3634
|
+
for (const key of keys2) {
|
3635
|
+
const fileDescriptor = this.getFileDescriptor(key);
|
3636
|
+
if (!fileDescriptor.notFound && !fileDescriptor.err) {
|
3637
|
+
result.push(fileDescriptor);
|
3638
|
+
}
|
3639
|
+
}
|
3640
|
+
return result;
|
3641
|
+
}
|
3642
|
+
/**
|
3643
|
+
* Analyze the files
|
3644
|
+
* @method analyzeFiles
|
3645
|
+
* @param files - The files to analyze
|
3646
|
+
* @returns {AnalyzedFiles} The analysis of the files
|
3647
|
+
*/
|
3648
|
+
analyzeFiles(files) {
|
3649
|
+
const result = {
|
3650
|
+
changedFiles: [],
|
3651
|
+
notFoundFiles: [],
|
3652
|
+
notChangedFiles: []
|
3653
|
+
};
|
3654
|
+
const fileDescriptors = this.normalizeEntries(files);
|
3655
|
+
for (const fileDescriptor of fileDescriptors) {
|
3656
|
+
if (fileDescriptor.notFound) {
|
3657
|
+
result.notFoundFiles.push(fileDescriptor.key);
|
3658
|
+
} else if (fileDescriptor.changed) {
|
3659
|
+
result.changedFiles.push(fileDescriptor.key);
|
3660
|
+
} else {
|
3661
|
+
result.notChangedFiles.push(fileDescriptor.key);
|
3662
|
+
}
|
3663
|
+
}
|
3664
|
+
return result;
|
3665
|
+
}
|
3666
|
+
/**
|
3667
|
+
* Get the updated files
|
3668
|
+
* @method getUpdatedFiles
|
3669
|
+
* @param files - The files to get the updated files for
|
3670
|
+
* @returns {string[]} The updated files
|
3671
|
+
*/
|
3672
|
+
getUpdatedFiles(files) {
|
3673
|
+
const result = new Array();
|
3674
|
+
const fileDescriptors = this.normalizeEntries(files);
|
3675
|
+
for (const fileDescriptor of fileDescriptors) {
|
3676
|
+
if (fileDescriptor.changed) {
|
3677
|
+
result.push(fileDescriptor.key);
|
3678
|
+
}
|
3679
|
+
}
|
3680
|
+
return result;
|
3681
|
+
}
|
3682
|
+
/**
|
3683
|
+
* Get the not found files
|
3684
|
+
* @method getFileDescriptorsByPath
|
3685
|
+
* @param filePath - the files that you want to get from a path
|
3686
|
+
* @returns {FileDescriptor[]} The not found files
|
3687
|
+
*/
|
3688
|
+
getFileDescriptorsByPath(filePath) {
|
3689
|
+
const result = new Array();
|
3690
|
+
const keys2 = this._cache.keys();
|
3691
|
+
for (const key of keys2) {
|
3692
|
+
const absolutePath = this.getAbsolutePath(filePath);
|
3693
|
+
if (absolutePath.startsWith(filePath)) {
|
3694
|
+
const fileDescriptor = this.getFileDescriptor(key);
|
3695
|
+
result.push(fileDescriptor);
|
3696
|
+
}
|
3697
|
+
}
|
3698
|
+
return result;
|
3699
|
+
}
|
3700
|
+
/**
|
3701
|
+
* Get the Absolute Path. If it is already absolute it will return the path as is.
|
3702
|
+
* @method getAbsolutePath
|
3703
|
+
* @param filePath - The file path to get the absolute path for
|
3704
|
+
* @param options - The options for getting the absolute path. The current working directory is used if not provided.
|
3705
|
+
* @returns {string}
|
3706
|
+
*/
|
3707
|
+
getAbsolutePath(filePath, options) {
|
3708
|
+
if (this.isRelativePath(filePath)) {
|
3709
|
+
const currentWorkingDirectory = (options == null ? void 0 : options.currentWorkingDirectory) ?? this._currentWorkingDirectory ?? process.cwd();
|
3710
|
+
filePath = path10.resolve(currentWorkingDirectory, filePath);
|
3711
|
+
}
|
3712
|
+
return filePath;
|
3713
|
+
}
|
3714
|
+
/**
|
3715
|
+
* Rename the absolute path keys. This is used when a directory is changed or renamed.
|
3716
|
+
* @method renameAbsolutePathKeys
|
3717
|
+
* @param oldPath - The old path to rename
|
3718
|
+
* @param newPath - The new path to rename to
|
3719
|
+
*/
|
3720
|
+
renameAbsolutePathKeys(oldPath, newPath) {
|
3721
|
+
const keys2 = this._cache.keys();
|
3722
|
+
for (const key of keys2) {
|
3723
|
+
if (key.startsWith(oldPath)) {
|
3724
|
+
const newKey = key.replace(oldPath, newPath);
|
3725
|
+
const meta = this._cache.getKey(key);
|
3726
|
+
this._cache.removeKey(key);
|
3727
|
+
this._cache.setKey(newKey, meta);
|
3728
|
+
}
|
3729
|
+
}
|
3730
|
+
}
|
3731
|
+
};
|
3732
|
+
|
3733
|
+
// src/cli/format-results-cache.js
|
3734
|
+
import { version as prettierVersion } from "../index.mjs";
|
3735
|
+
var optionsHashCache = /* @__PURE__ */ new WeakMap();
|
3736
|
+
var nodeVersion = process.version;
|
3737
|
+
function getHashOfOptions(options) {
|
3738
|
+
if (optionsHashCache.has(options)) {
|
3739
|
+
return optionsHashCache.get(options);
|
3740
|
+
}
|
3741
|
+
const hash2 = createHash(
|
3742
|
+
`${prettierVersion}_${nodeVersion}_${(0, import_fast_json_stable_stringify2.default)(options)}`
|
3743
|
+
);
|
3744
|
+
optionsHashCache.set(options, hash2);
|
3745
|
+
return hash2;
|
3746
|
+
}
|
3747
|
+
function getMetadataFromFileDescriptor(fileDescriptor) {
|
3748
|
+
return fileDescriptor.meta;
|
3749
|
+
}
|
3750
|
+
var _fileEntryCache;
|
3751
|
+
var FormatResultsCache = class {
|
3752
|
+
/**
|
3753
|
+
* @param {string} cacheFileLocation The path of cache file location. (default: `node_modules/.cache/prettier/.prettier-cache`)
|
3754
|
+
* @param {string} cacheStrategy
|
3755
|
+
*/
|
3756
|
+
constructor(cacheFileLocation, cacheStrategy) {
|
3757
|
+
__privateAdd(this, _fileEntryCache);
|
3758
|
+
const useChecksum = cacheStrategy === "content";
|
3759
|
+
try {
|
3760
|
+
__privateSet(this, _fileEntryCache, FileEntryDefault.createFromFile(
|
3761
|
+
/* filePath */
|
3762
|
+
cacheFileLocation,
|
3763
|
+
useChecksum
|
3764
|
+
));
|
3765
|
+
} catch {
|
3766
|
+
if (fs7.existsSync(cacheFileLocation)) {
|
3767
|
+
fs7.unlinkSync(cacheFileLocation);
|
3768
|
+
__privateSet(this, _fileEntryCache, FileEntryDefault.createFromFile(
|
3769
|
+
/* filePath */
|
3770
|
+
cacheFileLocation,
|
3771
|
+
useChecksum
|
3772
|
+
));
|
3773
|
+
}
|
3774
|
+
}
|
2796
3775
|
}
|
2797
3776
|
/**
|
2798
3777
|
* @param {string} filePath
|
2799
3778
|
* @param {any} options
|
2800
3779
|
*/
|
2801
3780
|
existsAvailableFormatResultsCache(filePath, options) {
|
3781
|
+
var _a;
|
2802
3782
|
const fileDescriptor = __privateGet(this, _fileEntryCache).getFileDescriptor(filePath);
|
2803
|
-
if (fileDescriptor.notFound) {
|
3783
|
+
if (fileDescriptor.notFound || fileDescriptor.changed) {
|
2804
3784
|
return false;
|
2805
3785
|
}
|
2806
|
-
const hashOfOptions =
|
2807
|
-
|
2808
|
-
const changed = fileDescriptor.changed || meta.hashOfOptions !== hashOfOptions;
|
2809
|
-
return !changed;
|
3786
|
+
const hashOfOptions = (_a = getMetadataFromFileDescriptor(fileDescriptor).data) == null ? void 0 : _a.hashOfOptions;
|
3787
|
+
return hashOfOptions && hashOfOptions === getHashOfOptions(options);
|
2810
3788
|
}
|
2811
3789
|
/**
|
2812
3790
|
* @param {string} filePath
|
@@ -2814,9 +3792,9 @@ var FormatResultsCache = class {
|
|
2814
3792
|
*/
|
2815
3793
|
setFormatResultsCache(filePath, options) {
|
2816
3794
|
const fileDescriptor = __privateGet(this, _fileEntryCache).getFileDescriptor(filePath);
|
2817
|
-
|
2818
|
-
|
2819
|
-
meta.
|
3795
|
+
if (!fileDescriptor.notFound) {
|
3796
|
+
const meta = getMetadataFromFileDescriptor(fileDescriptor);
|
3797
|
+
meta.data = { ...meta.data, hashOfOptions: getHashOfOptions(options) };
|
2820
3798
|
}
|
2821
3799
|
}
|
2822
3800
|
/**
|
@@ -2845,9 +3823,9 @@ function getOptions(argv, detailedOptions) {
|
|
2845
3823
|
detailedOptions.filter(({ forwardToApi }) => forwardToApi).map(({ forwardToApi, name }) => [forwardToApi, argv[name]])
|
2846
3824
|
);
|
2847
3825
|
}
|
2848
|
-
function cliifyOptions(
|
3826
|
+
function cliifyOptions(object2, apiDetailedOptionMap) {
|
2849
3827
|
return Object.fromEntries(
|
2850
|
-
Object.entries(
|
3828
|
+
Object.entries(object2 || {}).map(([key, value]) => {
|
2851
3829
|
const apiOption = apiDetailedOptionMap[key];
|
2852
3830
|
const cliKey = apiOption ? apiOption.name : key;
|
2853
3831
|
return [(0, import_dashify2.default)(cliKey), value];
|
@@ -3037,11 +4015,11 @@ async function format3(context, input, opt) {
|
|
3037
4015
|
"prettier(input) !== prettier(prettier(input))\n" + diff(pp, pppp)
|
3038
4016
|
);
|
3039
4017
|
} else {
|
3040
|
-
const
|
3041
|
-
const ast =
|
4018
|
+
const stringify5 = (obj) => JSON.stringify(obj, null, 2);
|
4019
|
+
const ast = stringify5(
|
3042
4020
|
(await prettier.__debug.parse(input, opt, { massage: true })).ast
|
3043
4021
|
);
|
3044
|
-
const past =
|
4022
|
+
const past = stringify5(
|
3045
4023
|
(await prettier.__debug.parse(pp, opt, { massage: true })).ast
|
3046
4024
|
);
|
3047
4025
|
if (ast !== past) {
|
@@ -3141,7 +4119,7 @@ async function formatStdin(context) {
|
|
3141
4119
|
}
|
3142
4120
|
const options = await get_options_for_file_default(
|
3143
4121
|
context,
|
3144
|
-
filepath ?
|
4122
|
+
filepath ? path11.resolve(filepath) : void 0
|
3145
4123
|
);
|
3146
4124
|
if (await listDifferent(context, input, options, "(stdin)")) {
|
3147
4125
|
return;
|
@@ -3177,7 +4155,7 @@ async function formatFiles(context) {
|
|
3177
4155
|
} else if (!context.argv.cacheLocation) {
|
3178
4156
|
const stat = await statSafe(cacheFilePath);
|
3179
4157
|
if (stat) {
|
3180
|
-
await
|
4158
|
+
await fs8.unlink(cacheFilePath);
|
3181
4159
|
}
|
3182
4160
|
}
|
3183
4161
|
for await (const { error, filename, ignoreUnknown } of expandPatterns(
|
@@ -3196,7 +4174,7 @@ async function formatFiles(context) {
|
|
3196
4174
|
...await get_options_for_file_default(context, filename),
|
3197
4175
|
filepath: filename
|
3198
4176
|
};
|
3199
|
-
const fileNameToDisplay = normalizeToPosix(
|
4177
|
+
const fileNameToDisplay = normalizeToPosix(path11.relative(cwd2, filename));
|
3200
4178
|
let printedFilename;
|
3201
4179
|
if (isTTY()) {
|
3202
4180
|
printedFilename = context.logger.log(fileNameToDisplay, {
|
@@ -3206,7 +4184,7 @@ async function formatFiles(context) {
|
|
3206
4184
|
}
|
3207
4185
|
let input;
|
3208
4186
|
try {
|
3209
|
-
input = await
|
4187
|
+
input = await fs8.readFile(filename, "utf8");
|
3210
4188
|
} catch (error2) {
|
3211
4189
|
context.logger.log("");
|
3212
4190
|
context.logger.error(
|