immosquare-cleaner 0.1.32 → 0.1.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/node_modules/@eslint/eslintrc/README.md +15 -4
- data/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +57 -18
- data/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -1
- data/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +60 -34
- data/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -1
- data/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +3 -16
- data/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +63 -18
- data/node_modules/@eslint/eslintrc/package.json +4 -4
- data/node_modules/@eslint/js/package.json +2 -2
- data/node_modules/@eslint/js/src/configs/eslint-all.js +9 -1
- data/node_modules/@eslint/js/src/configs/eslint-recommended.js +12 -5
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/LICENSE +201 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/README.md +105 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +384 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts +27 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/index.d.ts +16 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +12 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js +65 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js +315 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/package.json +74 -0
- data/node_modules/@humanwhocodes/config-array/api.js +114 -16
- data/node_modules/@humanwhocodes/config-array/package.json +5 -3
- data/node_modules/@humanwhocodes/object-schema/CHANGELOG.md +7 -0
- data/node_modules/@humanwhocodes/object-schema/package.json +6 -1
- data/node_modules/@humanwhocodes/retry/LICENSE +201 -0
- data/node_modules/@humanwhocodes/retry/README.md +122 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.cjs +267 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.d.ts +24 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.js +265 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.min.js +1 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.mjs +265 -0
- data/node_modules/@humanwhocodes/retry/package.json +74 -0
- data/node_modules/@types/semver-utils/LICENSE +21 -0
- data/node_modules/@types/semver-utils/README.md +34 -0
- data/node_modules/@types/semver-utils/index.d.ts +15 -0
- data/node_modules/@types/semver-utils/package.json +25 -0
- data/node_modules/acorn/CHANGELOG.md +36 -0
- data/node_modules/acorn/README.md +8 -3
- data/node_modules/acorn/dist/acorn.d.mts +857 -26
- data/node_modules/acorn/dist/acorn.d.ts +833 -268
- data/node_modules/acorn/dist/acorn.js +33 -21
- data/node_modules/acorn/dist/acorn.mjs +33 -21
- data/node_modules/acorn/package.json +1 -1
- data/node_modules/cacheable-request/node_modules/keyv/README.md +429 -0
- data/node_modules/cacheable-request/node_modules/keyv/package.json +57 -0
- data/node_modules/cacheable-request/node_modules/keyv/src/index.d.ts +112 -0
- data/node_modules/cacheable-request/node_modules/keyv/src/index.js +264 -0
- data/node_modules/doctrine/CHANGELOG.md +0 -7
- data/node_modules/doctrine/lib/doctrine.js +1 -0
- data/node_modules/doctrine/package.json +8 -9
- data/node_modules/eslint/README.md +31 -28
- data/node_modules/eslint/bin/eslint.js +4 -3
- data/node_modules/eslint/conf/ecma-version.js +16 -0
- data/node_modules/eslint/conf/globals.js +1 -0
- data/node_modules/eslint/conf/rule-type-list.json +3 -1
- data/node_modules/eslint/lib/api.js +7 -11
- data/node_modules/eslint/lib/cli-engine/cli-engine.js +14 -3
- data/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +1 -29
- data/node_modules/eslint/lib/cli-engine/lint-result-cache.js +2 -2
- data/node_modules/eslint/lib/cli.js +115 -36
- data/node_modules/eslint/lib/config/default-config.js +3 -0
- data/node_modules/eslint/lib/config/flat-config-array.js +110 -24
- data/node_modules/eslint/lib/config/flat-config-helpers.js +41 -20
- data/node_modules/eslint/lib/config/flat-config-schema.js +1 -7
- data/node_modules/eslint/lib/config/rule-validator.js +42 -6
- data/node_modules/eslint/lib/eslint/eslint-helpers.js +116 -58
- data/node_modules/eslint/lib/eslint/eslint.js +892 -377
- data/node_modules/eslint/lib/eslint/index.js +2 -2
- data/node_modules/eslint/lib/eslint/legacy-eslint.js +728 -0
- data/node_modules/eslint/lib/linter/apply-disable-directives.js +59 -31
- data/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +0 -1
- data/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +32 -30
- data/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +1 -1
- data/node_modules/eslint/lib/linter/config-comment-parser.js +8 -11
- data/node_modules/eslint/lib/linter/index.js +1 -3
- data/node_modules/eslint/lib/linter/interpolate.js +24 -2
- data/node_modules/eslint/lib/linter/linter.js +428 -207
- data/node_modules/eslint/lib/linter/report-translator.js +3 -3
- data/node_modules/eslint/lib/linter/rules.js +6 -15
- data/node_modules/eslint/lib/linter/source-code-fixer.js +1 -1
- data/node_modules/eslint/lib/linter/timing.js +16 -8
- data/node_modules/eslint/lib/options.js +35 -3
- data/node_modules/eslint/lib/rule-tester/index.js +3 -1
- data/node_modules/eslint/lib/rule-tester/rule-tester.js +424 -347
- data/node_modules/eslint/lib/rules/array-bracket-newline.js +1 -1
- data/node_modules/eslint/lib/rules/array-bracket-spacing.js +1 -1
- data/node_modules/eslint/lib/rules/block-scoped-var.js +1 -1
- data/node_modules/eslint/lib/rules/callback-return.js +2 -2
- data/node_modules/eslint/lib/rules/camelcase.js +3 -5
- data/node_modules/eslint/lib/rules/capitalized-comments.js +10 -7
- data/node_modules/eslint/lib/rules/comma-dangle.js +1 -1
- data/node_modules/eslint/lib/rules/comma-style.js +2 -2
- data/node_modules/eslint/lib/rules/complexity.js +14 -1
- data/node_modules/eslint/lib/rules/constructor-super.js +99 -100
- data/node_modules/eslint/lib/rules/default-case.js +1 -1
- data/node_modules/eslint/lib/rules/eol-last.js +2 -2
- data/node_modules/eslint/lib/rules/function-paren-newline.js +2 -2
- data/node_modules/eslint/lib/rules/indent-legacy.js +5 -5
- data/node_modules/eslint/lib/rules/indent.js +5 -5
- data/node_modules/eslint/lib/rules/index.js +1 -2
- data/node_modules/eslint/lib/rules/key-spacing.js +2 -2
- data/node_modules/eslint/lib/rules/line-comment-position.js +1 -1
- data/node_modules/eslint/lib/rules/lines-around-directive.js +2 -2
- data/node_modules/eslint/lib/rules/max-depth.js +1 -1
- data/node_modules/eslint/lib/rules/max-len.js +3 -3
- data/node_modules/eslint/lib/rules/max-lines.js +3 -3
- data/node_modules/eslint/lib/rules/max-nested-callbacks.js +1 -1
- data/node_modules/eslint/lib/rules/max-params.js +1 -1
- data/node_modules/eslint/lib/rules/max-statements.js +1 -1
- data/node_modules/eslint/lib/rules/multiline-comment-style.js +7 -7
- data/node_modules/eslint/lib/rules/new-cap.js +1 -1
- data/node_modules/eslint/lib/rules/newline-after-var.js +1 -1
- data/node_modules/eslint/lib/rules/newline-before-return.js +1 -1
- data/node_modules/eslint/lib/rules/no-case-declarations.js +13 -1
- data/node_modules/eslint/lib/rules/no-constant-binary-expression.js +7 -8
- data/node_modules/eslint/lib/rules/no-constant-condition.js +18 -7
- data/node_modules/eslint/lib/rules/no-constructor-return.js +2 -2
- data/node_modules/eslint/lib/rules/no-dupe-class-members.js +2 -2
- data/node_modules/eslint/lib/rules/no-else-return.js +1 -1
- data/node_modules/eslint/lib/rules/no-empty-function.js +2 -2
- data/node_modules/eslint/lib/rules/no-empty-static-block.js +1 -1
- data/node_modules/eslint/lib/rules/no-extend-native.js +1 -2
- data/node_modules/eslint/lib/rules/no-extra-semi.js +1 -1
- data/node_modules/eslint/lib/rules/no-fallthrough.js +41 -16
- data/node_modules/eslint/lib/rules/no-implicit-coercion.js +66 -24
- data/node_modules/eslint/lib/rules/no-inner-declarations.js +23 -2
- data/node_modules/eslint/lib/rules/no-invalid-regexp.js +1 -1
- data/node_modules/eslint/lib/rules/no-invalid-this.js +1 -1
- data/node_modules/eslint/lib/rules/no-lone-blocks.js +3 -3
- data/node_modules/eslint/lib/rules/no-loss-of-precision.js +1 -1
- data/node_modules/eslint/lib/rules/no-misleading-character-class.js +225 -69
- data/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +1 -1
- data/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +1 -1
- data/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +1 -1
- data/node_modules/eslint/lib/rules/no-new-symbol.js +8 -1
- data/node_modules/eslint/lib/rules/no-restricted-globals.js +1 -1
- data/node_modules/eslint/lib/rules/no-restricted-imports.js +186 -40
- data/node_modules/eslint/lib/rules/no-restricted-modules.js +2 -2
- data/node_modules/eslint/lib/rules/no-return-await.js +1 -1
- data/node_modules/eslint/lib/rules/no-sequences.js +1 -0
- data/node_modules/eslint/lib/rules/no-this-before-super.js +45 -13
- data/node_modules/eslint/lib/rules/no-trailing-spaces.js +2 -3
- data/node_modules/eslint/lib/rules/no-unneeded-ternary.js +1 -1
- data/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +1 -1
- data/node_modules/eslint/lib/rules/no-unused-private-class-members.js +1 -1
- data/node_modules/eslint/lib/rules/no-unused-vars.js +197 -36
- data/node_modules/eslint/lib/rules/no-useless-assignment.js +566 -0
- data/node_modules/eslint/lib/rules/no-useless-backreference.js +1 -1
- data/node_modules/eslint/lib/rules/no-useless-computed-key.js +2 -2
- data/node_modules/eslint/lib/rules/no-useless-return.js +7 -2
- data/node_modules/eslint/lib/rules/object-curly-spacing.js +3 -3
- data/node_modules/eslint/lib/rules/object-property-newline.js +1 -1
- data/node_modules/eslint/lib/rules/one-var.js +5 -5
- data/node_modules/eslint/lib/rules/padded-blocks.js +7 -7
- data/node_modules/eslint/lib/rules/prefer-arrow-callback.js +3 -3
- data/node_modules/eslint/lib/rules/prefer-reflect.js +1 -1
- data/node_modules/eslint/lib/rules/prefer-regex-literals.js +1 -1
- data/node_modules/eslint/lib/rules/prefer-template.js +1 -1
- data/node_modules/eslint/lib/rules/radix.js +2 -2
- data/node_modules/eslint/lib/rules/semi-style.js +1 -1
- data/node_modules/eslint/lib/rules/sort-imports.js +1 -1
- data/node_modules/eslint/lib/rules/sort-keys.js +1 -1
- data/node_modules/eslint/lib/rules/sort-vars.js +1 -1
- data/node_modules/eslint/lib/rules/space-unary-ops.js +1 -1
- data/node_modules/eslint/lib/rules/strict.js +1 -1
- data/node_modules/eslint/lib/rules/use-isnan.js +101 -7
- data/node_modules/eslint/lib/rules/utils/ast-utils.js +16 -7
- data/node_modules/eslint/lib/rules/utils/char-source.js +240 -0
- data/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +1 -1
- data/node_modules/eslint/lib/rules/utils/unicode/index.js +9 -4
- data/node_modules/eslint/lib/rules/yield-star-spacing.js +1 -1
- data/node_modules/eslint/lib/shared/runtime-info.js +1 -0
- data/node_modules/eslint/lib/shared/serialization.js +55 -0
- data/node_modules/eslint/lib/shared/stats.js +30 -0
- data/node_modules/eslint/lib/shared/string-utils.js +9 -11
- data/node_modules/eslint/lib/shared/types.js +35 -1
- data/node_modules/eslint/lib/source-code/index.js +3 -1
- data/node_modules/eslint/lib/source-code/source-code.js +299 -85
- data/node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js +3 -3
- data/node_modules/eslint/lib/source-code/token-store/cursors.js +4 -2
- data/node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js +3 -3
- data/node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js +3 -3
- data/node_modules/eslint/lib/source-code/token-store/index.js +2 -2
- data/node_modules/eslint/lib/unsupported-api.js +3 -5
- data/node_modules/eslint/messages/no-config-found.js +1 -1
- data/node_modules/eslint/messages/plugin-conflict.js +1 -1
- data/node_modules/eslint/messages/plugin-invalid.js +1 -1
- data/node_modules/eslint/messages/plugin-missing.js +1 -1
- data/node_modules/eslint/package.json +32 -29
- data/node_modules/eslint-scope/README.md +23 -2
- data/node_modules/eslint-scope/dist/eslint-scope.cjs +84 -58
- data/node_modules/eslint-scope/lib/index.js +0 -3
- data/node_modules/eslint-scope/lib/pattern-visitor.js +4 -3
- data/node_modules/eslint-scope/lib/referencer.js +13 -11
- data/node_modules/eslint-scope/lib/scope-manager.js +2 -8
- data/node_modules/eslint-scope/lib/scope.js +64 -43
- data/node_modules/eslint-scope/lib/version.js +1 -1
- data/node_modules/eslint-scope/package.json +21 -19
- data/node_modules/eslint-visitor-keys/README.md +1 -1
- data/node_modules/eslint-visitor-keys/package.json +2 -2
- data/node_modules/espree/README.md +1 -1
- data/node_modules/espree/dist/espree.cjs +1 -1
- data/node_modules/espree/lib/version.js +1 -1
- data/node_modules/espree/package.json +18 -20
- data/node_modules/file-entry-cache/LICENSE +1 -1
- data/node_modules/file-entry-cache/README.md +6 -3
- data/node_modules/file-entry-cache/package.json +19 -43
- data/node_modules/flat-cache/README.md +8 -6
- data/node_modules/flat-cache/changelog.md +155 -205
- data/node_modules/flat-cache/package.json +16 -39
- data/node_modules/flat-cache/src/cache.js +22 -26
- data/node_modules/flat-cache/src/del.js +28 -11
- data/node_modules/flat-cache/src/utils.js +39 -41
- data/node_modules/globals/globals.json +25 -0
- data/node_modules/globals/index.d.ts +2074 -3
- data/node_modules/globals/package.json +10 -7
- data/node_modules/globals/readme.md +2 -14
- data/node_modules/keyv/package.json +4 -4
- data/node_modules/keyv/src/index.js +6 -11
- data/node_modules/npm-check-updates/build/cli.js +22 -21
- data/node_modules/npm-check-updates/build/cli.js.map +1 -1
- data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js +66 -0
- data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js.map +1 -0
- data/node_modules/npm-check-updates/build/index-BmUFwMVL.js +6 -0
- data/node_modules/npm-check-updates/build/index-BmUFwMVL.js.map +1 -0
- data/node_modules/npm-check-updates/build/index.d.ts +5 -2
- data/node_modules/npm-check-updates/build/index.js +560 -1
- data/node_modules/npm-check-updates/build/index.js.map +1 -1
- data/node_modules/npm-check-updates/build/package.json +4 -3
- data/node_modules/npm-check-updates/build/src/index.js +1 -1
- data/node_modules/npm-check-updates/build/src/index.js.map +1 -1
- data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js +2 -2
- data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js.map +1 -1
- data/node_modules/npm-check-updates/build/src/package-managers/bun.js +0 -6
- data/node_modules/npm-check-updates/build/src/package-managers/bun.js.map +1 -1
- data/node_modules/npm-check-updates/package.json +4 -3
- data/node_modules/type-fest/index.d.ts +95 -2
- data/node_modules/type-fest/package.json +12 -18
- data/node_modules/type-fest/readme.md +299 -52
- data/node_modules/type-fest/source/async-return-type.d.ts +4 -2
- data/node_modules/type-fest/source/asyncify.d.ts +5 -3
- data/node_modules/type-fest/source/basic.d.ts +21 -43
- data/node_modules/type-fest/{ts41 → source}/camel-case.d.ts +18 -17
- data/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +54 -0
- data/node_modules/type-fest/source/camel-cased-properties.d.ts +36 -0
- data/node_modules/type-fest/source/conditional-except.d.ts +6 -4
- data/node_modules/type-fest/source/conditional-keys.d.ts +5 -1
- data/node_modules/type-fest/source/conditional-pick.d.ts +5 -3
- data/node_modules/type-fest/{ts41 → source}/delimiter-case.d.ts +16 -8
- data/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +60 -0
- data/node_modules/type-fest/source/delimiter-cased-properties.d.ts +37 -0
- data/node_modules/type-fest/source/entries.d.ts +8 -3
- data/node_modules/type-fest/source/entry.d.ts +8 -3
- data/node_modules/type-fest/source/exact.d.ts +73 -0
- data/node_modules/type-fest/source/except.d.ts +38 -3
- data/node_modules/type-fest/source/fixed-length-array.d.ts +6 -1
- data/node_modules/type-fest/source/get.d.ts +184 -0
- data/node_modules/type-fest/source/has-optional-keys.d.ts +21 -0
- data/node_modules/type-fest/source/has-required-keys.d.ts +59 -0
- data/node_modules/type-fest/source/includes.d.ts +22 -0
- data/node_modules/type-fest/source/internal.d.ts +59 -0
- data/node_modules/type-fest/source/invariant-of.d.ts +76 -0
- data/node_modules/type-fest/source/iterable-element.d.ts +8 -0
- data/node_modules/type-fest/source/join.d.ts +30 -0
- data/node_modules/type-fest/source/jsonify.d.ts +90 -0
- data/node_modules/type-fest/{ts41 → source}/kebab-case.d.ts +7 -5
- data/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +47 -0
- data/node_modules/type-fest/source/kebab-cased-properties.d.ts +30 -0
- data/node_modules/type-fest/source/last-array-element.d.ts +28 -0
- data/node_modules/type-fest/source/literal-to-primitive.d.ts +36 -0
- data/node_modules/type-fest/source/literal-union.d.ts +7 -5
- data/node_modules/type-fest/source/merge-exclusive.d.ts +3 -1
- data/node_modules/type-fest/source/merge.d.ts +8 -3
- data/node_modules/type-fest/source/multidimensional-array.d.ts +43 -0
- data/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +47 -0
- data/node_modules/type-fest/source/mutable.d.ts +4 -21
- data/node_modules/type-fest/source/numeric.d.ts +170 -0
- data/node_modules/type-fest/source/observable-like.d.ts +62 -0
- data/node_modules/type-fest/source/opaque.d.ts +45 -3
- data/node_modules/type-fest/source/optional-keys-of.d.ts +38 -0
- data/node_modules/type-fest/source/package-json.d.ts +64 -12
- data/node_modules/type-fest/source/partial-deep.d.ts +57 -16
- data/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +70 -0
- data/node_modules/type-fest/{ts41 → source}/pascal-case.d.ts +6 -4
- data/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +54 -0
- data/node_modules/type-fest/source/pascal-cased-properties.d.ts +34 -0
- data/node_modules/type-fest/source/primitive.d.ts +13 -0
- data/node_modules/type-fest/source/promisable.d.ts +5 -3
- data/node_modules/type-fest/source/promise-value.d.ts +9 -7
- data/node_modules/type-fest/source/readonly-deep.d.ts +33 -7
- data/node_modules/type-fest/source/readonly-tuple.d.ts +41 -0
- data/node_modules/type-fest/source/remove-index-signature.d.ts +104 -0
- data/node_modules/type-fest/source/replace.d.ts +67 -0
- data/node_modules/type-fest/source/require-all-or-none.d.ts +36 -0
- data/node_modules/type-fest/source/require-at-least-one.d.ts +5 -3
- data/node_modules/type-fest/source/require-exactly-one.d.ts +4 -5
- data/node_modules/type-fest/source/required-keys-of.d.ts +29 -0
- data/node_modules/type-fest/source/schema.d.ts +72 -0
- data/node_modules/type-fest/source/screaming-snake-case.d.ts +33 -0
- data/node_modules/type-fest/source/set-non-nullable.d.ts +35 -0
- data/node_modules/type-fest/source/set-optional.d.ts +12 -11
- data/node_modules/type-fest/source/set-required.d.ts +12 -11
- data/node_modules/type-fest/source/set-return-type.d.ts +3 -1
- data/node_modules/type-fest/source/simplify.d.ts +83 -0
- data/node_modules/type-fest/{ts41 → source}/snake-case.d.ts +7 -4
- data/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +47 -0
- data/node_modules/type-fest/source/snake-cased-properties.d.ts +30 -0
- data/node_modules/type-fest/source/split.d.ts +29 -0
- data/node_modules/type-fest/source/spread.d.ts +85 -0
- data/node_modules/type-fest/source/string-key-of.d.ts +25 -0
- data/node_modules/type-fest/source/stringified.d.ts +3 -1
- data/node_modules/type-fest/source/trim.d.ts +25 -0
- data/node_modules/type-fest/source/tsconfig-json.d.ts +316 -14
- data/node_modules/type-fest/source/typed-array.d.ts +17 -0
- data/node_modules/type-fest/source/union-to-intersection.d.ts +4 -2
- data/node_modules/type-fest/source/value-of.d.ts +3 -1
- data/node_modules/type-fest/source/writable.d.ts +40 -0
- data/package.json +2 -2
- metadata +86 -63
- data/linters/rubocop-2.7.6.yml +0 -86
- data/node_modules/@humanwhocodes/object-schema/tests/merge-strategy.js +0 -66
- data/node_modules/@humanwhocodes/object-schema/tests/object-schema.js +0 -659
- data/node_modules/@humanwhocodes/object-schema/tests/validation-strategy.js +0 -186
- data/node_modules/eslint/conf/config-schema.js +0 -93
- data/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js +0 -60
- data/node_modules/eslint/lib/cli-engine/formatters/compact.js +0 -60
- data/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js +0 -41
- data/node_modules/eslint/lib/cli-engine/formatters/junit.js +0 -82
- data/node_modules/eslint/lib/cli-engine/formatters/tap.js +0 -95
- data/node_modules/eslint/lib/cli-engine/formatters/unix.js +0 -58
- data/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js +0 -63
- data/node_modules/eslint/lib/cli-engine/xml-escape.js +0 -34
- data/node_modules/eslint/lib/eslint/flat-eslint.js +0 -1155
- data/node_modules/eslint/lib/rule-tester/flat-rule-tester.js +0 -1131
- data/node_modules/eslint/lib/rules/require-jsdoc.js +0 -122
- data/node_modules/eslint/lib/rules/utils/patterns/letters.js +0 -36
- data/node_modules/eslint/lib/rules/valid-jsdoc.js +0 -516
- data/node_modules/eslint/lib/shared/config-validator.js +0 -347
- data/node_modules/eslint/lib/shared/deprecation-warnings.js +0 -58
- data/node_modules/eslint/lib/shared/relative-module-resolver.js +0 -50
- data/node_modules/file-entry-cache/changelog.md +0 -163
- data/node_modules/flat-cache/node_modules/rimraf/CHANGELOG.md +0 -65
- data/node_modules/flat-cache/node_modules/rimraf/LICENSE +0 -15
- data/node_modules/flat-cache/node_modules/rimraf/README.md +0 -101
- data/node_modules/flat-cache/node_modules/rimraf/bin.js +0 -68
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/LICENSE +0 -21
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/README.md +0 -378
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/common.js +0 -238
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/glob.js +0 -790
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -230
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -947
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +0 -33
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/package.json +0 -55
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/sync.js +0 -486
- data/node_modules/flat-cache/node_modules/rimraf/package.json +0 -32
- data/node_modules/flat-cache/node_modules/rimraf/rimraf.js +0 -360
- data/node_modules/npm-check-updates/build/index-CI_x-D21.js +0 -593
- data/node_modules/npm-check-updates/build/index-CI_x-D21.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-Ci8A2QXv.js +0 -6
- data/node_modules/npm-check-updates/build/index-Ci8A2QXv.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-DgVn3Gax.js +0 -36
- data/node_modules/npm-check-updates/build/index-DgVn3Gax.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/SpawnPleaseOptions.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/types/SpawnPleaseOptions.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/SpawnPleaseOptions.js.map +0 -1
- data/node_modules/type-fest/base.d.ts +0 -38
- data/node_modules/type-fest/license +0 -9
- data/node_modules/type-fest/source/utilities.d.ts +0 -3
- data/node_modules/type-fest/ts41/index.d.ts +0 -9
@@ -1,486 +0,0 @@
|
|
1
|
-
module.exports = globSync
|
2
|
-
globSync.GlobSync = GlobSync
|
3
|
-
|
4
|
-
var rp = require('fs.realpath')
|
5
|
-
var minimatch = require('minimatch')
|
6
|
-
var Minimatch = minimatch.Minimatch
|
7
|
-
var Glob = require('./glob.js').Glob
|
8
|
-
var util = require('util')
|
9
|
-
var path = require('path')
|
10
|
-
var assert = require('assert')
|
11
|
-
var isAbsolute = require('path-is-absolute')
|
12
|
-
var common = require('./common.js')
|
13
|
-
var setopts = common.setopts
|
14
|
-
var ownProp = common.ownProp
|
15
|
-
var childrenIgnored = common.childrenIgnored
|
16
|
-
var isIgnored = common.isIgnored
|
17
|
-
|
18
|
-
function globSync (pattern, options) {
|
19
|
-
if (typeof options === 'function' || arguments.length === 3)
|
20
|
-
throw new TypeError('callback provided to sync glob\n'+
|
21
|
-
'See: https://github.com/isaacs/node-glob/issues/167')
|
22
|
-
|
23
|
-
return new GlobSync(pattern, options).found
|
24
|
-
}
|
25
|
-
|
26
|
-
function GlobSync (pattern, options) {
|
27
|
-
if (!pattern)
|
28
|
-
throw new Error('must provide pattern')
|
29
|
-
|
30
|
-
if (typeof options === 'function' || arguments.length === 3)
|
31
|
-
throw new TypeError('callback provided to sync glob\n'+
|
32
|
-
'See: https://github.com/isaacs/node-glob/issues/167')
|
33
|
-
|
34
|
-
if (!(this instanceof GlobSync))
|
35
|
-
return new GlobSync(pattern, options)
|
36
|
-
|
37
|
-
setopts(this, pattern, options)
|
38
|
-
|
39
|
-
if (this.noprocess)
|
40
|
-
return this
|
41
|
-
|
42
|
-
var n = this.minimatch.set.length
|
43
|
-
this.matches = new Array(n)
|
44
|
-
for (var i = 0; i < n; i ++) {
|
45
|
-
this._process(this.minimatch.set[i], i, false)
|
46
|
-
}
|
47
|
-
this._finish()
|
48
|
-
}
|
49
|
-
|
50
|
-
GlobSync.prototype._finish = function () {
|
51
|
-
assert.ok(this instanceof GlobSync)
|
52
|
-
if (this.realpath) {
|
53
|
-
var self = this
|
54
|
-
this.matches.forEach(function (matchset, index) {
|
55
|
-
var set = self.matches[index] = Object.create(null)
|
56
|
-
for (var p in matchset) {
|
57
|
-
try {
|
58
|
-
p = self._makeAbs(p)
|
59
|
-
var real = rp.realpathSync(p, self.realpathCache)
|
60
|
-
set[real] = true
|
61
|
-
} catch (er) {
|
62
|
-
if (er.syscall === 'stat')
|
63
|
-
set[self._makeAbs(p)] = true
|
64
|
-
else
|
65
|
-
throw er
|
66
|
-
}
|
67
|
-
}
|
68
|
-
})
|
69
|
-
}
|
70
|
-
common.finish(this)
|
71
|
-
}
|
72
|
-
|
73
|
-
|
74
|
-
GlobSync.prototype._process = function (pattern, index, inGlobStar) {
|
75
|
-
assert.ok(this instanceof GlobSync)
|
76
|
-
|
77
|
-
// Get the first [n] parts of pattern that are all strings.
|
78
|
-
var n = 0
|
79
|
-
while (typeof pattern[n] === 'string') {
|
80
|
-
n ++
|
81
|
-
}
|
82
|
-
// now n is the index of the first one that is *not* a string.
|
83
|
-
|
84
|
-
// See if there's anything else
|
85
|
-
var prefix
|
86
|
-
switch (n) {
|
87
|
-
// if not, then this is rather simple
|
88
|
-
case pattern.length:
|
89
|
-
this._processSimple(pattern.join('/'), index)
|
90
|
-
return
|
91
|
-
|
92
|
-
case 0:
|
93
|
-
// pattern *starts* with some non-trivial item.
|
94
|
-
// going to readdir(cwd), but not include the prefix in matches.
|
95
|
-
prefix = null
|
96
|
-
break
|
97
|
-
|
98
|
-
default:
|
99
|
-
// pattern has some string bits in the front.
|
100
|
-
// whatever it starts with, whether that's 'absolute' like /foo/bar,
|
101
|
-
// or 'relative' like '../baz'
|
102
|
-
prefix = pattern.slice(0, n).join('/')
|
103
|
-
break
|
104
|
-
}
|
105
|
-
|
106
|
-
var remain = pattern.slice(n)
|
107
|
-
|
108
|
-
// get the list of entries.
|
109
|
-
var read
|
110
|
-
if (prefix === null)
|
111
|
-
read = '.'
|
112
|
-
else if (isAbsolute(prefix) ||
|
113
|
-
isAbsolute(pattern.map(function (p) {
|
114
|
-
return typeof p === 'string' ? p : '[*]'
|
115
|
-
}).join('/'))) {
|
116
|
-
if (!prefix || !isAbsolute(prefix))
|
117
|
-
prefix = '/' + prefix
|
118
|
-
read = prefix
|
119
|
-
} else
|
120
|
-
read = prefix
|
121
|
-
|
122
|
-
var abs = this._makeAbs(read)
|
123
|
-
|
124
|
-
//if ignored, skip processing
|
125
|
-
if (childrenIgnored(this, read))
|
126
|
-
return
|
127
|
-
|
128
|
-
var isGlobStar = remain[0] === minimatch.GLOBSTAR
|
129
|
-
if (isGlobStar)
|
130
|
-
this._processGlobStar(prefix, read, abs, remain, index, inGlobStar)
|
131
|
-
else
|
132
|
-
this._processReaddir(prefix, read, abs, remain, index, inGlobStar)
|
133
|
-
}
|
134
|
-
|
135
|
-
|
136
|
-
GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {
|
137
|
-
var entries = this._readdir(abs, inGlobStar)
|
138
|
-
|
139
|
-
// if the abs isn't a dir, then nothing can match!
|
140
|
-
if (!entries)
|
141
|
-
return
|
142
|
-
|
143
|
-
// It will only match dot entries if it starts with a dot, or if
|
144
|
-
// dot is set. Stuff like @(.foo|.bar) isn't allowed.
|
145
|
-
var pn = remain[0]
|
146
|
-
var negate = !!this.minimatch.negate
|
147
|
-
var rawGlob = pn._glob
|
148
|
-
var dotOk = this.dot || rawGlob.charAt(0) === '.'
|
149
|
-
|
150
|
-
var matchedEntries = []
|
151
|
-
for (var i = 0; i < entries.length; i++) {
|
152
|
-
var e = entries[i]
|
153
|
-
if (e.charAt(0) !== '.' || dotOk) {
|
154
|
-
var m
|
155
|
-
if (negate && !prefix) {
|
156
|
-
m = !e.match(pn)
|
157
|
-
} else {
|
158
|
-
m = e.match(pn)
|
159
|
-
}
|
160
|
-
if (m)
|
161
|
-
matchedEntries.push(e)
|
162
|
-
}
|
163
|
-
}
|
164
|
-
|
165
|
-
var len = matchedEntries.length
|
166
|
-
// If there are no matched entries, then nothing matches.
|
167
|
-
if (len === 0)
|
168
|
-
return
|
169
|
-
|
170
|
-
// if this is the last remaining pattern bit, then no need for
|
171
|
-
// an additional stat *unless* the user has specified mark or
|
172
|
-
// stat explicitly. We know they exist, since readdir returned
|
173
|
-
// them.
|
174
|
-
|
175
|
-
if (remain.length === 1 && !this.mark && !this.stat) {
|
176
|
-
if (!this.matches[index])
|
177
|
-
this.matches[index] = Object.create(null)
|
178
|
-
|
179
|
-
for (var i = 0; i < len; i ++) {
|
180
|
-
var e = matchedEntries[i]
|
181
|
-
if (prefix) {
|
182
|
-
if (prefix.slice(-1) !== '/')
|
183
|
-
e = prefix + '/' + e
|
184
|
-
else
|
185
|
-
e = prefix + e
|
186
|
-
}
|
187
|
-
|
188
|
-
if (e.charAt(0) === '/' && !this.nomount) {
|
189
|
-
e = path.join(this.root, e)
|
190
|
-
}
|
191
|
-
this._emitMatch(index, e)
|
192
|
-
}
|
193
|
-
// This was the last one, and no stats were needed
|
194
|
-
return
|
195
|
-
}
|
196
|
-
|
197
|
-
// now test all matched entries as stand-ins for that part
|
198
|
-
// of the pattern.
|
199
|
-
remain.shift()
|
200
|
-
for (var i = 0; i < len; i ++) {
|
201
|
-
var e = matchedEntries[i]
|
202
|
-
var newPattern
|
203
|
-
if (prefix)
|
204
|
-
newPattern = [prefix, e]
|
205
|
-
else
|
206
|
-
newPattern = [e]
|
207
|
-
this._process(newPattern.concat(remain), index, inGlobStar)
|
208
|
-
}
|
209
|
-
}
|
210
|
-
|
211
|
-
|
212
|
-
GlobSync.prototype._emitMatch = function (index, e) {
|
213
|
-
if (isIgnored(this, e))
|
214
|
-
return
|
215
|
-
|
216
|
-
var abs = this._makeAbs(e)
|
217
|
-
|
218
|
-
if (this.mark)
|
219
|
-
e = this._mark(e)
|
220
|
-
|
221
|
-
if (this.absolute) {
|
222
|
-
e = abs
|
223
|
-
}
|
224
|
-
|
225
|
-
if (this.matches[index][e])
|
226
|
-
return
|
227
|
-
|
228
|
-
if (this.nodir) {
|
229
|
-
var c = this.cache[abs]
|
230
|
-
if (c === 'DIR' || Array.isArray(c))
|
231
|
-
return
|
232
|
-
}
|
233
|
-
|
234
|
-
this.matches[index][e] = true
|
235
|
-
|
236
|
-
if (this.stat)
|
237
|
-
this._stat(e)
|
238
|
-
}
|
239
|
-
|
240
|
-
|
241
|
-
GlobSync.prototype._readdirInGlobStar = function (abs) {
|
242
|
-
// follow all symlinked directories forever
|
243
|
-
// just proceed as if this is a non-globstar situation
|
244
|
-
if (this.follow)
|
245
|
-
return this._readdir(abs, false)
|
246
|
-
|
247
|
-
var entries
|
248
|
-
var lstat
|
249
|
-
var stat
|
250
|
-
try {
|
251
|
-
lstat = this.fs.lstatSync(abs)
|
252
|
-
} catch (er) {
|
253
|
-
if (er.code === 'ENOENT') {
|
254
|
-
// lstat failed, doesn't exist
|
255
|
-
return null
|
256
|
-
}
|
257
|
-
}
|
258
|
-
|
259
|
-
var isSym = lstat && lstat.isSymbolicLink()
|
260
|
-
this.symlinks[abs] = isSym
|
261
|
-
|
262
|
-
// If it's not a symlink or a dir, then it's definitely a regular file.
|
263
|
-
// don't bother doing a readdir in that case.
|
264
|
-
if (!isSym && lstat && !lstat.isDirectory())
|
265
|
-
this.cache[abs] = 'FILE'
|
266
|
-
else
|
267
|
-
entries = this._readdir(abs, false)
|
268
|
-
|
269
|
-
return entries
|
270
|
-
}
|
271
|
-
|
272
|
-
GlobSync.prototype._readdir = function (abs, inGlobStar) {
|
273
|
-
var entries
|
274
|
-
|
275
|
-
if (inGlobStar && !ownProp(this.symlinks, abs))
|
276
|
-
return this._readdirInGlobStar(abs)
|
277
|
-
|
278
|
-
if (ownProp(this.cache, abs)) {
|
279
|
-
var c = this.cache[abs]
|
280
|
-
if (!c || c === 'FILE')
|
281
|
-
return null
|
282
|
-
|
283
|
-
if (Array.isArray(c))
|
284
|
-
return c
|
285
|
-
}
|
286
|
-
|
287
|
-
try {
|
288
|
-
return this._readdirEntries(abs, this.fs.readdirSync(abs))
|
289
|
-
} catch (er) {
|
290
|
-
this._readdirError(abs, er)
|
291
|
-
return null
|
292
|
-
}
|
293
|
-
}
|
294
|
-
|
295
|
-
GlobSync.prototype._readdirEntries = function (abs, entries) {
|
296
|
-
// if we haven't asked to stat everything, then just
|
297
|
-
// assume that everything in there exists, so we can avoid
|
298
|
-
// having to stat it a second time.
|
299
|
-
if (!this.mark && !this.stat) {
|
300
|
-
for (var i = 0; i < entries.length; i ++) {
|
301
|
-
var e = entries[i]
|
302
|
-
if (abs === '/')
|
303
|
-
e = abs + e
|
304
|
-
else
|
305
|
-
e = abs + '/' + e
|
306
|
-
this.cache[e] = true
|
307
|
-
}
|
308
|
-
}
|
309
|
-
|
310
|
-
this.cache[abs] = entries
|
311
|
-
|
312
|
-
// mark and cache dir-ness
|
313
|
-
return entries
|
314
|
-
}
|
315
|
-
|
316
|
-
GlobSync.prototype._readdirError = function (f, er) {
|
317
|
-
// handle errors, and cache the information
|
318
|
-
switch (er.code) {
|
319
|
-
case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
|
320
|
-
case 'ENOTDIR': // totally normal. means it *does* exist.
|
321
|
-
var abs = this._makeAbs(f)
|
322
|
-
this.cache[abs] = 'FILE'
|
323
|
-
if (abs === this.cwdAbs) {
|
324
|
-
var error = new Error(er.code + ' invalid cwd ' + this.cwd)
|
325
|
-
error.path = this.cwd
|
326
|
-
error.code = er.code
|
327
|
-
throw error
|
328
|
-
}
|
329
|
-
break
|
330
|
-
|
331
|
-
case 'ENOENT': // not terribly unusual
|
332
|
-
case 'ELOOP':
|
333
|
-
case 'ENAMETOOLONG':
|
334
|
-
case 'UNKNOWN':
|
335
|
-
this.cache[this._makeAbs(f)] = false
|
336
|
-
break
|
337
|
-
|
338
|
-
default: // some unusual error. Treat as failure.
|
339
|
-
this.cache[this._makeAbs(f)] = false
|
340
|
-
if (this.strict)
|
341
|
-
throw er
|
342
|
-
if (!this.silent)
|
343
|
-
console.error('glob error', er)
|
344
|
-
break
|
345
|
-
}
|
346
|
-
}
|
347
|
-
|
348
|
-
GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {
|
349
|
-
|
350
|
-
var entries = this._readdir(abs, inGlobStar)
|
351
|
-
|
352
|
-
// no entries means not a dir, so it can never have matches
|
353
|
-
// foo.txt/** doesn't match foo.txt
|
354
|
-
if (!entries)
|
355
|
-
return
|
356
|
-
|
357
|
-
// test without the globstar, and with every child both below
|
358
|
-
// and replacing the globstar.
|
359
|
-
var remainWithoutGlobStar = remain.slice(1)
|
360
|
-
var gspref = prefix ? [ prefix ] : []
|
361
|
-
var noGlobStar = gspref.concat(remainWithoutGlobStar)
|
362
|
-
|
363
|
-
// the noGlobStar pattern exits the inGlobStar state
|
364
|
-
this._process(noGlobStar, index, false)
|
365
|
-
|
366
|
-
var len = entries.length
|
367
|
-
var isSym = this.symlinks[abs]
|
368
|
-
|
369
|
-
// If it's a symlink, and we're in a globstar, then stop
|
370
|
-
if (isSym && inGlobStar)
|
371
|
-
return
|
372
|
-
|
373
|
-
for (var i = 0; i < len; i++) {
|
374
|
-
var e = entries[i]
|
375
|
-
if (e.charAt(0) === '.' && !this.dot)
|
376
|
-
continue
|
377
|
-
|
378
|
-
// these two cases enter the inGlobStar state
|
379
|
-
var instead = gspref.concat(entries[i], remainWithoutGlobStar)
|
380
|
-
this._process(instead, index, true)
|
381
|
-
|
382
|
-
var below = gspref.concat(entries[i], remain)
|
383
|
-
this._process(below, index, true)
|
384
|
-
}
|
385
|
-
}
|
386
|
-
|
387
|
-
GlobSync.prototype._processSimple = function (prefix, index) {
|
388
|
-
// XXX review this. Shouldn't it be doing the mounting etc
|
389
|
-
// before doing stat? kinda weird?
|
390
|
-
var exists = this._stat(prefix)
|
391
|
-
|
392
|
-
if (!this.matches[index])
|
393
|
-
this.matches[index] = Object.create(null)
|
394
|
-
|
395
|
-
// If it doesn't exist, then just mark the lack of results
|
396
|
-
if (!exists)
|
397
|
-
return
|
398
|
-
|
399
|
-
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
400
|
-
var trail = /[\/\\]$/.test(prefix)
|
401
|
-
if (prefix.charAt(0) === '/') {
|
402
|
-
prefix = path.join(this.root, prefix)
|
403
|
-
} else {
|
404
|
-
prefix = path.resolve(this.root, prefix)
|
405
|
-
if (trail)
|
406
|
-
prefix += '/'
|
407
|
-
}
|
408
|
-
}
|
409
|
-
|
410
|
-
if (process.platform === 'win32')
|
411
|
-
prefix = prefix.replace(/\\/g, '/')
|
412
|
-
|
413
|
-
// Mark this as a match
|
414
|
-
this._emitMatch(index, prefix)
|
415
|
-
}
|
416
|
-
|
417
|
-
// Returns either 'DIR', 'FILE', or false
|
418
|
-
GlobSync.prototype._stat = function (f) {
|
419
|
-
var abs = this._makeAbs(f)
|
420
|
-
var needDir = f.slice(-1) === '/'
|
421
|
-
|
422
|
-
if (f.length > this.maxLength)
|
423
|
-
return false
|
424
|
-
|
425
|
-
if (!this.stat && ownProp(this.cache, abs)) {
|
426
|
-
var c = this.cache[abs]
|
427
|
-
|
428
|
-
if (Array.isArray(c))
|
429
|
-
c = 'DIR'
|
430
|
-
|
431
|
-
// It exists, but maybe not how we need it
|
432
|
-
if (!needDir || c === 'DIR')
|
433
|
-
return c
|
434
|
-
|
435
|
-
if (needDir && c === 'FILE')
|
436
|
-
return false
|
437
|
-
|
438
|
-
// otherwise we have to stat, because maybe c=true
|
439
|
-
// if we know it exists, but not what it is.
|
440
|
-
}
|
441
|
-
|
442
|
-
var exists
|
443
|
-
var stat = this.statCache[abs]
|
444
|
-
if (!stat) {
|
445
|
-
var lstat
|
446
|
-
try {
|
447
|
-
lstat = this.fs.lstatSync(abs)
|
448
|
-
} catch (er) {
|
449
|
-
if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
|
450
|
-
this.statCache[abs] = false
|
451
|
-
return false
|
452
|
-
}
|
453
|
-
}
|
454
|
-
|
455
|
-
if (lstat && lstat.isSymbolicLink()) {
|
456
|
-
try {
|
457
|
-
stat = this.fs.statSync(abs)
|
458
|
-
} catch (er) {
|
459
|
-
stat = lstat
|
460
|
-
}
|
461
|
-
} else {
|
462
|
-
stat = lstat
|
463
|
-
}
|
464
|
-
}
|
465
|
-
|
466
|
-
this.statCache[abs] = stat
|
467
|
-
|
468
|
-
var c = true
|
469
|
-
if (stat)
|
470
|
-
c = stat.isDirectory() ? 'DIR' : 'FILE'
|
471
|
-
|
472
|
-
this.cache[abs] = this.cache[abs] || c
|
473
|
-
|
474
|
-
if (needDir && c === 'FILE')
|
475
|
-
return false
|
476
|
-
|
477
|
-
return c
|
478
|
-
}
|
479
|
-
|
480
|
-
GlobSync.prototype._mark = function (p) {
|
481
|
-
return common.mark(this, p)
|
482
|
-
}
|
483
|
-
|
484
|
-
GlobSync.prototype._makeAbs = function (f) {
|
485
|
-
return common.makeAbs(this, f)
|
486
|
-
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "rimraf",
|
3
|
-
"version": "3.0.2",
|
4
|
-
"main": "rimraf.js",
|
5
|
-
"description": "A deep deletion module for node (like `rm -rf`)",
|
6
|
-
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
7
|
-
"license": "ISC",
|
8
|
-
"repository": "git://github.com/isaacs/rimraf.git",
|
9
|
-
"scripts": {
|
10
|
-
"preversion": "npm test",
|
11
|
-
"postversion": "npm publish",
|
12
|
-
"postpublish": "git push origin --follow-tags",
|
13
|
-
"test": "tap test/*.js"
|
14
|
-
},
|
15
|
-
"bin": "./bin.js",
|
16
|
-
"dependencies": {
|
17
|
-
"glob": "^7.1.3"
|
18
|
-
},
|
19
|
-
"files": [
|
20
|
-
"LICENSE",
|
21
|
-
"README.md",
|
22
|
-
"bin.js",
|
23
|
-
"rimraf.js"
|
24
|
-
],
|
25
|
-
"devDependencies": {
|
26
|
-
"mkdirp": "^0.5.1",
|
27
|
-
"tap": "^12.1.1"
|
28
|
-
},
|
29
|
-
"funding": {
|
30
|
-
"url": "https://github.com/sponsors/isaacs"
|
31
|
-
}
|
32
|
-
}
|