immosquare-cleaner 0.1.63 → 0.1.65
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 +37 -37
- data/lib/tasks/immosquare_cleaner.rake +17 -1
- data/linters/rubocop/cop/custom_cops/style/font_awesome_normalization.rb +106 -0
- data/linters/rubocop-3.4.1.yml +3 -1
- data/linters/rubocop.yml +4 -0
- data/node_modules/@babel/compat-data/data/plugins.json +6 -7
- data/node_modules/@babel/compat-data/package.json +2 -2
- data/node_modules/@babel/core/lib/config/files/configuration.js +3 -0
- data/node_modules/@babel/core/lib/config/files/configuration.js.map +1 -1
- data/node_modules/@babel/core/lib/config/files/module-types.js +74 -63
- data/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -1
- data/node_modules/@babel/core/lib/config/files/plugins.js +1 -0
- data/node_modules/@babel/core/lib/config/files/plugins.js.map +1 -1
- data/node_modules/@babel/core/lib/config/partial.js +1 -1
- data/node_modules/@babel/core/lib/config/partial.js.map +1 -1
- data/node_modules/@babel/core/lib/index.js +1 -2
- data/node_modules/@babel/core/lib/index.js.map +1 -1
- data/node_modules/@babel/core/lib/parser/index.js.map +1 -1
- data/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +3 -1
- data/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs.map +1 -1
- data/node_modules/@babel/core/lib/transformation/file/file.js +2 -4
- data/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -1
- data/node_modules/@babel/core/lib/transformation/normalize-file.js.map +1 -1
- data/node_modules/@babel/core/lib/transformation/util/clone-deep.js +27 -7
- data/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map +1 -1
- data/node_modules/@babel/core/package.json +13 -14
- data/node_modules/@babel/generator/lib/generators/classes.js +7 -4
- data/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/deprecated.js +28 -0
- data/node_modules/@babel/generator/lib/generators/deprecated.js.map +1 -0
- data/node_modules/@babel/generator/lib/generators/expressions.js +9 -3
- data/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/jsx.js +6 -1
- data/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/template-literals.js +16 -11
- data/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/types.js +0 -9
- data/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/typescript.js +36 -18
- data/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
- data/node_modules/@babel/generator/lib/node/parentheses.js +40 -3
- data/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -1
- data/node_modules/@babel/generator/lib/printer.js +4 -3
- data/node_modules/@babel/generator/lib/printer.js.map +1 -1
- data/node_modules/@babel/generator/package.json +5 -5
- data/node_modules/@babel/helper-compilation-targets/lib/index.js +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/package.json +2 -2
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js +1 -9
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js +9 -0
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/features.js +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/features.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js +8 -8
- data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/package.json +5 -5
- data/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-plugin-utils/package.json +2 -2
- data/node_modules/@babel/helper-replace-supers/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-replace-supers/package.json +3 -3
- data/node_modules/@babel/helpers/lib/helpers/asyncIterator.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js +1 -1
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js +1 -1
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js +7 -3
- data/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers-generated.js +3 -3
- data/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -1
- data/node_modules/@babel/helpers/package.json +5 -5
- data/node_modules/@babel/parser/lib/index.js +426 -236
- data/node_modules/@babel/parser/lib/index.js.map +1 -1
- data/node_modules/@babel/parser/package.json +2 -2
- data/node_modules/@babel/parser/typings/babel-parser.d.ts +127 -164
- data/node_modules/@babel/plugin-transform-flow-strip-types/lib/index.js +6 -0
- data/node_modules/@babel/plugin-transform-flow-strip-types/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-flow-strip-types/package.json +4 -4
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js +3 -2
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json +3 -3
- data/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js +3 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/enum.js +24 -11
- data/node_modules/@babel/plugin-transform-typescript/lib/enum.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/index.js +38 -9
- data/node_modules/@babel/plugin-transform-typescript/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/namespace.js +2 -0
- data/node_modules/@babel/plugin-transform-typescript/lib/namespace.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/package.json +5 -5
- data/node_modules/@babel/template/lib/options.js.map +1 -1
- data/node_modules/@babel/template/lib/parse.js.map +1 -1
- data/node_modules/@babel/template/package.json +4 -4
- data/node_modules/@babel/traverse/lib/cache.js +4 -5
- data/node_modules/@babel/traverse/lib/cache.js.map +1 -1
- data/node_modules/@babel/traverse/lib/path/conversion.js +1 -2
- data/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
- data/node_modules/@babel/traverse/lib/path/evaluation.js +17 -0
- data/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -1
- data/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -1
- data/node_modules/@babel/traverse/lib/path/modification.js +1 -1
- data/node_modules/@babel/traverse/lib/path/modification.js.map +1 -1
- data/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -1
- data/node_modules/@babel/traverse/lib/scope/index.js +9 -2
- data/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
- data/node_modules/@babel/traverse/lib/visitors.js +1 -1
- data/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
- data/node_modules/@babel/traverse/package.json +6 -6
- data/node_modules/@babel/types/lib/asserts/generated/index.js +8 -0
- data/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -1
- data/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
- data/node_modules/@babel/types/lib/builders/generated/index.js +22 -2858
- data/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -1
- data/node_modules/@babel/types/lib/builders/generated/lowercase.js +2886 -0
- data/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
- data/node_modules/@babel/types/lib/builders/generated/uppercase.js +267 -255
- data/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -1
- data/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
- data/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
- data/node_modules/@babel/types/lib/definitions/core.js +26 -17
- data/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
- data/node_modules/@babel/types/lib/definitions/flow.js +6 -3
- data/node_modules/@babel/types/lib/definitions/flow.js.map +1 -1
- data/node_modules/@babel/types/lib/definitions/jsx.js +9 -4
- data/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -1
- data/node_modules/@babel/types/lib/definitions/typescript.js +51 -26
- data/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -1
- data/node_modules/@babel/types/lib/definitions/utils.js +2 -2
- data/node_modules/@babel/types/lib/definitions/utils.js.map +1 -1
- data/node_modules/@babel/types/lib/index-legacy.d.ts +27 -7
- data/node_modules/@babel/types/lib/index.d.ts +1178 -1156
- data/node_modules/@babel/types/lib/index.js +10 -21
- data/node_modules/@babel/types/lib/index.js.flow +26 -6
- data/node_modules/@babel/types/lib/index.js.map +1 -1
- data/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +9 -8
- data/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -1
- data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +1 -0
- data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
- data/node_modules/@babel/types/lib/validators/generated/index.js +17 -0
- data/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -1
- data/node_modules/@babel/types/package.json +12 -12
- data/node_modules/{@babel/eslint-parser/node_modules/eslint-visitor-keys → @eslint/config-helpers}/LICENSE +2 -2
- data/node_modules/@eslint/config-helpers/README.md +97 -0
- data/node_modules/@eslint/config-helpers/dist/cjs/index.cjs +546 -0
- data/node_modules/@eslint/config-helpers/dist/cjs/index.d.cts +22 -0
- data/node_modules/@eslint/config-helpers/dist/cjs/types.cts +31 -0
- data/node_modules/@eslint/config-helpers/dist/esm/index.d.ts +22 -0
- data/node_modules/@eslint/config-helpers/dist/esm/index.js +544 -0
- data/node_modules/@eslint/config-helpers/dist/esm/types.d.ts +23 -0
- data/node_modules/@eslint/config-helpers/dist/esm/types.ts +31 -0
- data/node_modules/@eslint/config-helpers/package.json +60 -0
- data/node_modules/@eslint/js/package.json +1 -1
- data/node_modules/@eslint-community/eslint-utils/index.js +21 -1
- data/node_modules/@eslint-community/eslint-utils/index.js.map +1 -1
- data/node_modules/@eslint-community/eslint-utils/index.mjs +21 -1
- data/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -1
- data/node_modules/@eslint-community/eslint-utils/package.json +1 -1
- data/node_modules/acorn/CHANGELOG.md +12 -0
- data/node_modules/acorn/dist/acorn.js +33 -24
- data/node_modules/acorn/dist/acorn.mjs +33 -24
- data/node_modules/acorn/package.json +1 -1
- data/node_modules/async-function/CHANGELOG.md +16 -0
- data/node_modules/{jscodeshift → async-function}/LICENSE +1 -1
- data/node_modules/async-function/README.md +51 -0
- data/node_modules/async-function/index.d.mts +3 -0
- data/node_modules/async-function/index.d.ts +13 -0
- data/node_modules/async-function/index.js +8 -0
- data/node_modules/async-function/index.mjs +4 -0
- data/node_modules/async-function/legacy.js +18 -0
- data/node_modules/async-function/package.json +86 -0
- data/node_modules/async-function/require.mjs +5 -0
- data/node_modules/async-function/test/index.js +40 -0
- data/node_modules/async-function/tsconfig.json +9 -0
- data/node_modules/browserslist/index.js +23 -4
- data/node_modules/browserslist/node.js +69 -60
- data/node_modules/browserslist/package.json +1 -1
- data/node_modules/call-bind-apply-helpers/CHANGELOG.md +7 -0
- data/node_modules/call-bind-apply-helpers/index.d.ts +38 -20
- data/node_modules/call-bind-apply-helpers/index.js +1 -1
- data/node_modules/call-bind-apply-helpers/package.json +8 -8
- data/node_modules/call-bind-apply-helpers/test/index.js +4 -4
- data/node_modules/call-bound/CHANGELOG.md +8 -0
- data/node_modules/call-bound/index.d.ts +91 -10
- data/node_modules/call-bound/index.js +4 -3
- data/node_modules/call-bound/package.json +10 -10
- data/node_modules/call-bound/test/index.js +11 -4
- data/node_modules/call-bound/tsconfig.json +2 -1
- data/node_modules/caniuse-lite/data/agents.js +1 -1
- data/node_modules/caniuse-lite/data/browserVersions.js +1 -1
- data/node_modules/caniuse-lite/data/features/aac.js +1 -1
- data/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
- data/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
- data/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
- data/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
- data/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
- data/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
- data/node_modules/caniuse-lite/data/features/apng.js +1 -1
- data/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
- data/node_modules/caniuse-lite/data/features/array-find.js +1 -1
- data/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
- data/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
- data/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
- data/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
- data/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
- data/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
- data/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
- data/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/audio.js +1 -1
- data/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
- data/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
- data/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
- data/node_modules/caniuse-lite/data/features/av1.js +1 -1
- data/node_modules/caniuse-lite/data/features/avif.js +1 -1
- data/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
- data/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
- data/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
- data/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
- data/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
- data/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
- data/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
- data/node_modules/caniuse-lite/data/features/beacon.js +1 -1
- data/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
- data/node_modules/caniuse-lite/data/features/bigint.js +1 -1
- data/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
- data/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
- data/node_modules/caniuse-lite/data/features/border-image.js +1 -1
- data/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
- data/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
- data/node_modules/caniuse-lite/data/features/brotli.js +1 -1
- data/node_modules/caniuse-lite/data/features/calc.js +1 -1
- data/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
- data/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
- data/node_modules/caniuse-lite/data/features/canvas.js +1 -1
- data/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
- data/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
- data/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
- data/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
- data/node_modules/caniuse-lite/data/features/classlist.js +1 -1
- data/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
- data/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
- data/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
- data/node_modules/caniuse-lite/data/features/colr.js +1 -1
- data/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
- data/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
- data/node_modules/caniuse-lite/data/features/console-time.js +1 -1
- data/node_modules/caniuse-lite/data/features/const.js +1 -1
- data/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
- data/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
- data/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
- data/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
- data/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/cors.js +1 -1
- data/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
- data/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
- data/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-all.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-has.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-table.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
- data/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
- data/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
- data/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
- data/node_modules/caniuse-lite/data/features/customevent.js +1 -1
- data/node_modules/caniuse-lite/data/features/datalist.js +1 -1
- data/node_modules/caniuse-lite/data/features/dataset.js +1 -1
- data/node_modules/caniuse-lite/data/features/datauri.js +1 -1
- data/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
- data/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
- data/node_modules/caniuse-lite/data/features/decorators.js +1 -1
- data/node_modules/caniuse-lite/data/features/details.js +1 -1
- data/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
- data/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
- data/node_modules/caniuse-lite/data/features/dialog.js +1 -1
- data/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
- data/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
- data/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
- data/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
- data/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
- data/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
- data/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
- data/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
- data/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
- data/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
- data/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
- data/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
- data/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
- data/node_modules/caniuse-lite/data/features/download.js +1 -1
- data/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
- data/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
- data/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
- data/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
- data/node_modules/caniuse-lite/data/features/eme.js +1 -1
- data/node_modules/caniuse-lite/data/features/eot.js +1 -1
- data/node_modules/caniuse-lite/data/features/es5.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6.js +1 -1
- data/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
- data/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
- data/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
- data/node_modules/caniuse-lite/data/features/fetch.js +1 -1
- data/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
- data/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
- data/node_modules/caniuse-lite/data/features/filereader.js +1 -1
- data/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
- data/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
- data/node_modules/caniuse-lite/data/features/flac.js +1 -1
- data/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
- data/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
- data/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
- data/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
- data/node_modules/caniuse-lite/data/features/fontface.js +1 -1
- data/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
- data/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
- data/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
- data/node_modules/caniuse-lite/data/features/forms.js +1 -1
- data/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
- data/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
- data/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
- data/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
- data/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
- data/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
- data/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
- data/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
- data/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
- data/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
- data/node_modules/caniuse-lite/data/features/heif.js +1 -1
- data/node_modules/caniuse-lite/data/features/hevc.js +1 -1
- data/node_modules/caniuse-lite/data/features/hidden.js +1 -1
- data/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
- data/node_modules/caniuse-lite/data/features/history.js +1 -1
- data/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
- data/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
- data/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
- data/node_modules/caniuse-lite/data/features/http2.js +1 -1
- data/node_modules/caniuse-lite/data/features/http3.js +1 -1
- data/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
- data/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
- data/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
- data/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
- data/node_modules/caniuse-lite/data/features/ime.js +1 -1
- data/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
- data/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
- data/node_modules/caniuse-lite/data/features/imports.js +1 -1
- data/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
- data/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
- data/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
- data/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
- data/node_modules/caniuse-lite/data/features/innertext.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-color.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-event.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-number.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-range.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-search.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
- data/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
- data/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
- data/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
- data/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
- data/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
- data/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
- data/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
- data/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
- data/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
- data/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
- data/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
- data/node_modules/caniuse-lite/data/features/json.js +1 -1
- data/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
- data/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
- data/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
- data/node_modules/caniuse-lite/data/features/let.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
- data/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
- data/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
- data/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
- data/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
- data/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
- data/node_modules/caniuse-lite/data/features/mathml.js +1 -1
- data/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
- data/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
- data/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
- data/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
- data/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
- data/node_modules/caniuse-lite/data/features/menu.js +1 -1
- data/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
- data/node_modules/caniuse-lite/data/features/meter.js +1 -1
- data/node_modules/caniuse-lite/data/features/midi.js +1 -1
- data/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
- data/node_modules/caniuse-lite/data/features/mp3.js +1 -1
- data/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
- data/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
- data/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
- data/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
- data/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
- data/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
- data/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
- data/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
- data/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
- data/node_modules/caniuse-lite/data/features/notifications.js +1 -1
- data/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
- data/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
- data/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
- data/node_modules/caniuse-lite/data/features/object-values.js +1 -1
- data/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
- data/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
- data/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
- data/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
- data/node_modules/caniuse-lite/data/features/ogv.js +1 -1
- data/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
- data/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
- data/node_modules/caniuse-lite/data/features/online-status.js +1 -1
- data/node_modules/caniuse-lite/data/features/opus.js +1 -1
- data/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
- data/node_modules/caniuse-lite/data/features/outline.js +1 -1
- data/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
- data/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
- data/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
- data/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
- data/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
- data/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
- data/node_modules/caniuse-lite/data/features/path2d.js +1 -1
- data/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
- data/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
- data/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
- data/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
- data/node_modules/caniuse-lite/data/features/picture.js +1 -1
- data/node_modules/caniuse-lite/data/features/ping.js +1 -1
- data/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
- data/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
- data/node_modules/caniuse-lite/data/features/pointer.js +1 -1
- data/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
- data/node_modules/caniuse-lite/data/features/portals.js +1 -1
- data/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
- data/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
- data/node_modules/caniuse-lite/data/features/progress.js +1 -1
- data/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
- data/node_modules/caniuse-lite/data/features/promises.js +1 -1
- data/node_modules/caniuse-lite/data/features/proximity.js +1 -1
- data/node_modules/caniuse-lite/data/features/proxy.js +1 -1
- data/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
- data/node_modules/caniuse-lite/data/features/push-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
- data/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
- data/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
- data/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
- data/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
- data/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
- data/node_modules/caniuse-lite/data/features/rellist.js +1 -1
- data/node_modules/caniuse-lite/data/features/rem.js +1 -1
- data/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
- data/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
- data/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
- data/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
- data/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
- data/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
- data/node_modules/caniuse-lite/data/features/ruby.js +1 -1
- data/node_modules/caniuse-lite/data/features/run-in.js +1 -1
- data/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
- data/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
- data/node_modules/caniuse-lite/data/features/script-async.js +1 -1
- data/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
- data/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
- data/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
- data/node_modules/caniuse-lite/data/features/sdch.js +1 -1
- data/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/selectlist.js +1 -1
- data/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
- data/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
- data/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
- data/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
- data/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
- data/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
- data/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
- data/node_modules/caniuse-lite/data/features/sni.js +1 -1
- data/node_modules/caniuse-lite/data/features/spdy.js +1 -1
- data/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
- data/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
- data/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
- data/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
- data/node_modules/caniuse-lite/data/features/srcset.js +1 -1
- data/node_modules/caniuse-lite/data/features/stream.js +1 -1
- data/node_modules/caniuse-lite/data/features/streams.js +1 -1
- data/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
- data/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
- data/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
- data/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg.js +1 -1
- data/node_modules/caniuse-lite/data/features/sxg.js +1 -1
- data/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
- data/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
- data/node_modules/caniuse-lite/data/features/template.js +1 -1
- data/node_modules/caniuse-lite/data/features/temporal.js +1 -1
- data/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
- data/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
- data/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
- data/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
- data/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
- data/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
- data/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
- data/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
- data/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
- data/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
- data/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
- data/node_modules/caniuse-lite/data/features/touch.js +1 -1
- data/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
- data/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
- data/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
- data/node_modules/caniuse-lite/data/features/ttf.js +1 -1
- data/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
- data/node_modules/caniuse-lite/data/features/u2f.js +1 -1
- data/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
- data/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
- data/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
- data/node_modules/caniuse-lite/data/features/url.js +1 -1
- data/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
- data/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
- data/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
- data/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
- data/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
- data/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
- data/node_modules/caniuse-lite/data/features/vibration.js +1 -1
- data/node_modules/caniuse-lite/data/features/video.js +1 -1
- data/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
- data/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
- data/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
- data/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
- data/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
- data/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm.js +1 -1
- data/node_modules/caniuse-lite/data/features/wav.js +1 -1
- data/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
- data/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
- data/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
- data/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
- data/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
- data/node_modules/caniuse-lite/data/features/web-share.js +1 -1
- data/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
- data/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
- data/node_modules/caniuse-lite/data/features/webgl.js +1 -1
- data/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
- data/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
- data/node_modules/caniuse-lite/data/features/webhid.js +1 -1
- data/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
- data/node_modules/caniuse-lite/data/features/webm.js +1 -1
- data/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
- data/node_modules/caniuse-lite/data/features/webp.js +1 -1
- data/node_modules/caniuse-lite/data/features/websockets.js +1 -1
- data/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
- data/node_modules/caniuse-lite/data/features/webusb.js +1 -1
- data/node_modules/caniuse-lite/data/features/webvr.js +1 -1
- data/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
- data/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
- data/node_modules/caniuse-lite/data/features/webxr.js +1 -1
- data/node_modules/caniuse-lite/data/features/will-change.js +1 -1
- data/node_modules/caniuse-lite/data/features/woff.js +1 -1
- data/node_modules/caniuse-lite/data/features/woff2.js +1 -1
- data/node_modules/caniuse-lite/data/features/word-break.js +1 -1
- data/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
- data/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
- data/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
- data/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
- data/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
- data/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
- data/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
- data/node_modules/caniuse-lite/data/features/zstd.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AX.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BB.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BJ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CV.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CX.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/DE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/DJ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/DK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/DM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/DO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/DZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/EC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/EE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/EG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ER.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ES.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ET.js +1 -1
- data/node_modules/caniuse-lite/data/regions/FI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/FJ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/FK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/FM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/FO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/FR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GB.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GP.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GQ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/HK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/HN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/HR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/HT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/HU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ID.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IQ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/JE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/JM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/JO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/JP.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KP.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LB.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LV.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ME.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ML.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MP.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MQ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MV.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MX.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NP.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/OM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/QA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/RE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/RO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/RS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/RU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/RW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SB.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ST.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SV.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TJ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TV.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/UA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/UG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/US.js +1 -1
- data/node_modules/caniuse-lite/data/regions/UY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/UZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/WF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/WS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/YE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/YT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ZA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ZM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ZW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-af.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-an.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-as.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-eu.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-na.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-oc.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-sa.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-ww.js +1 -1
- data/node_modules/caniuse-lite/package.json +1 -1
- data/node_modules/electron-to-chromium/chromium-versions.js +4 -1
- data/node_modules/electron-to-chromium/chromium-versions.json +1 -1
- data/node_modules/electron-to-chromium/full-chromium-versions.js +75 -3
- data/node_modules/electron-to-chromium/full-chromium-versions.json +1 -1
- data/node_modules/electron-to-chromium/full-versions.js +45 -1
- data/node_modules/electron-to-chromium/full-versions.json +1 -1
- data/node_modules/electron-to-chromium/package.json +1 -1
- data/node_modules/electron-to-chromium/versions.js +8 -1
- data/node_modules/electron-to-chromium/versions.json +1 -1
- data/node_modules/es-object-atoms/CHANGELOG.md +21 -0
- data/node_modules/es-object-atoms/README.md +7 -0
- data/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +2 -2
- data/node_modules/es-object-atoms/ToObject.d.ts +6 -2
- data/node_modules/es-object-atoms/isObject.d.ts +3 -0
- data/node_modules/es-object-atoms/isObject.js +6 -0
- data/node_modules/es-object-atoms/package.json +9 -8
- data/node_modules/es-object-atoms/test/index.js +11 -1
- data/node_modules/es-shim-unscopables/CHANGELOG.md +8 -0
- data/node_modules/es-shim-unscopables/index.d.ts +8 -0
- data/node_modules/es-shim-unscopables/index.js +2 -1
- data/node_modules/es-shim-unscopables/package.json +20 -11
- data/node_modules/es-shim-unscopables/test/index.js +4 -1
- data/node_modules/es-shim-unscopables/test/with.js +8 -0
- data/node_modules/es-shim-unscopables/tsconfig.json +10 -0
- data/node_modules/eslint/README.md +6 -4
- data/node_modules/eslint/lib/config-api.js +12 -0
- data/node_modules/eslint/lib/languages/js/source-code/source-code.js +18 -14
- data/node_modules/eslint/lib/rules/no-console.js +19 -11
- data/node_modules/eslint/lib/rules/no-native-reassign.js +1 -1
- data/node_modules/eslint/lib/rules/no-negated-in-lhs.js +1 -1
- data/node_modules/eslint/lib/types/config-api.d.ts +8 -0
- data/node_modules/eslint/lib/types/rules.d.ts +5199 -0
- data/node_modules/eslint/package.json +14 -6
- data/node_modules/eslint-scope/README.md +4 -3
- data/node_modules/eslint-scope/dist/eslint-scope.cjs +59 -2
- data/node_modules/eslint-scope/lib/index.js +1 -0
- data/node_modules/eslint-scope/lib/referencer.js +52 -0
- data/node_modules/eslint-scope/lib/scope-manager.js +4 -0
- data/node_modules/eslint-scope/lib/scope.js +1 -1
- data/node_modules/eslint-scope/lib/version.js +1 -1
- data/node_modules/eslint-scope/package.json +1 -1
- data/node_modules/flatted/index.js +3 -3
- data/node_modules/flatted/min.js +1 -1
- data/node_modules/flatted/package.json +21 -8
- data/node_modules/flatted/python/flatted.py +4 -4
- data/node_modules/flow-parser/flow_parser.js +5550 -5530
- data/node_modules/flow-parser/package.json +1 -1
- data/node_modules/for-each/CHANGELOG.md +107 -0
- data/node_modules/for-each/README.md +0 -4
- data/node_modules/for-each/index.d.ts +35 -0
- data/node_modules/for-each/index.js +11 -4
- data/node_modules/for-each/package.json +47 -36
- data/node_modules/for-each/test/test.js +54 -12
- data/node_modules/for-each/tsconfig.json +8 -0
- data/node_modules/get-intrinsic/CHANGELOG.md +8 -0
- data/node_modules/get-intrinsic/index.js +1 -0
- data/node_modules/get-intrinsic/package.json +8 -8
- data/node_modules/import-fresh/index.js +2 -1
- data/node_modules/import-fresh/package.json +6 -1
- data/node_modules/import-fresh/readme.md +14 -8
- data/node_modules/is-async-function/CHANGELOG.md +13 -0
- data/node_modules/is-async-function/index.d.ts +4 -2
- data/node_modules/is-async-function/index.js +3 -18
- data/node_modules/is-async-function/package.json +8 -3
- data/node_modules/is-boolean-object/CHANGELOG.md +11 -0
- data/node_modules/is-boolean-object/index.js +1 -1
- data/node_modules/is-boolean-object/package.json +8 -6
- data/node_modules/is-boolean-object/test/index.js +24 -1
- data/node_modules/is-weakref/CHANGELOG.md +8 -0
- data/node_modules/is-weakref/index.d.ts +1 -1
- data/node_modules/is-weakref/index.js +3 -1
- data/node_modules/is-weakref/package.json +6 -6
- data/node_modules/object-inspect/CHANGELOG.md +8 -0
- data/node_modules/object-inspect/index.js +10 -7
- data/node_modules/object-inspect/package.json +5 -4
- data/node_modules/object-inspect/test/values.js +50 -0
- data/node_modules/possible-typed-array-names/CHANGELOG.md +14 -0
- data/node_modules/possible-typed-array-names/README.md +4 -2
- data/node_modules/possible-typed-array-names/index.d.ts +1 -0
- data/node_modules/possible-typed-array-names/index.js +1 -0
- data/node_modules/possible-typed-array-names/package.json +10 -9
- data/node_modules/possible-typed-array-names/test/index.js +6 -3
- data/node_modules/possible-typed-array-names/tsconfig.json +2 -42
- data/node_modules/recast/lib/lines.d.ts +2 -2
- data/node_modules/recast/lib/printer.js +17 -5
- data/node_modules/recast/package.json +1 -1
- data/node_modules/typescript/README.md +1 -1
- data/node_modules/typescript/lib/_tsc.js +931 -500
- data/node_modules/typescript/lib/_tsserver.js +43 -7
- data/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/de/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/es/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/it/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/lib.dom.d.ts +769 -142
- data/node_modules/typescript/lib/lib.dom.iterable.d.ts +9 -7
- data/node_modules/typescript/lib/lib.es2015.iterable.d.ts +69 -54
- data/node_modules/typescript/lib/lib.es2020.bigint.d.ts +41 -7
- data/node_modules/typescript/lib/lib.es2023.array.d.ts +24 -24
- data/node_modules/typescript/lib/lib.es5.d.ts +60 -51
- data/node_modules/typescript/lib/lib.esnext.d.ts +2 -0
- data/node_modules/typescript/lib/lib.esnext.float16.d.ts +443 -0
- data/node_modules/typescript/lib/lib.esnext.iterator.d.ts +1 -1
- data/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
- data/node_modules/typescript/lib/lib.webworker.d.ts +262 -55
- data/node_modules/typescript/lib/lib.webworker.iterable.d.ts +6 -7
- data/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/typescript.d.ts +14 -3
- data/node_modules/typescript/lib/typescript.js +1035 -570
- data/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/package.json +22 -22
- data/node_modules/update-browserslist-db/index.js +5 -7
- data/node_modules/update-browserslist-db/package.json +2 -2
- data/node_modules/which-typed-array/CHANGELOG.md +10 -0
- data/node_modules/which-typed-array/index.js +21 -20
- data/node_modules/which-typed-array/package.json +9 -7
- data/node_modules/which-typed-array/tsconfig.json +1 -1
- data/package.json +2 -3
- metadata +41 -206
- data/linters/jscodeshift/arrow-function-transform.js +0 -42
- data/node_modules/.bin/jscodeshift +0 -1
- data/node_modules/@babel/eslint-parser/LICENSE +0 -22
- data/node_modules/@babel/eslint-parser/README.md +0 -142
- data/node_modules/@babel/eslint-parser/lib/analyze-scope.cjs +0 -322
- data/node_modules/@babel/eslint-parser/lib/analyze-scope.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/client.cjs +0 -106
- data/node_modules/@babel/eslint-parser/lib/client.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/configuration.cjs +0 -23
- data/node_modules/@babel/eslint-parser/lib/configuration.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/convert/convertAST.cjs +0 -134
- data/node_modules/@babel/eslint-parser/lib/convert/convertAST.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs +0 -10
- data/node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/convert/convertTokens.cjs +0 -159
- data/node_modules/@babel/eslint-parser/lib/convert/convertTokens.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/convert/index.cjs +0 -25
- data/node_modules/@babel/eslint-parser/lib/convert/index.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/experimental-worker.cjs +0 -32
- data/node_modules/@babel/eslint-parser/lib/experimental-worker.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/index.cjs +0 -32
- data/node_modules/@babel/eslint-parser/lib/index.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/parse.cjs +0 -37
- data/node_modules/@babel/eslint-parser/lib/parse.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/utils/eslint-version.cjs +0 -5
- data/node_modules/@babel/eslint-parser/lib/utils/eslint-version.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/ast-info.cjs +0 -37
- data/node_modules/@babel/eslint-parser/lib/worker/ast-info.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/babel-core.cjs +0 -21
- data/node_modules/@babel/eslint-parser/lib/worker/babel-core.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/configuration.cjs +0 -91
- data/node_modules/@babel/eslint-parser/lib/worker/configuration.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/extract-parser-options-plugin.cjs +0 -11
- data/node_modules/@babel/eslint-parser/lib/worker/extract-parser-options-plugin.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/handle-message.cjs +0 -32
- data/node_modules/@babel/eslint-parser/lib/worker/handle-message.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/index.cjs +0 -39
- data/node_modules/@babel/eslint-parser/lib/worker/index.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/maybeParse.cjs +0 -48
- data/node_modules/@babel/eslint-parser/lib/worker/maybeParse.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/CHANGELOG.md +0 -36
- data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/README.md +0 -98
- data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/lib/index.js +0 -81
- data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/lib/visitor-keys.json +0 -289
- data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/package.json +0 -39
- data/node_modules/@babel/eslint-parser/node_modules/semver/LICENSE +0 -15
- data/node_modules/@babel/eslint-parser/node_modules/semver/README.md +0 -443
- data/node_modules/@babel/eslint-parser/node_modules/semver/bin/semver.js +0 -174
- data/node_modules/@babel/eslint-parser/node_modules/semver/package.json +0 -38
- data/node_modules/@babel/eslint-parser/node_modules/semver/range.bnf +0 -16
- data/node_modules/@babel/eslint-parser/node_modules/semver/semver.js +0 -1643
- data/node_modules/@babel/eslint-parser/package.json +0 -53
- data/node_modules/@babel/eslint-parser/types.d.cts +0 -9
- data/node_modules/@babel/plugin-proposal-decorators/LICENSE +0 -22
- data/node_modules/@babel/plugin-proposal-decorators/README.md +0 -19
- data/node_modules/@babel/plugin-proposal-decorators/lib/index.js +0 -41
- data/node_modules/@babel/plugin-proposal-decorators/lib/index.js.map +0 -1
- data/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js +0 -165
- data/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js.map +0 -1
- data/node_modules/@babel/plugin-proposal-decorators/package.json +0 -42
- data/node_modules/@babel/plugin-syntax-decorators/LICENSE +0 -22
- data/node_modules/@babel/plugin-syntax-decorators/README.md +0 -19
- data/node_modules/@babel/plugin-syntax-decorators/lib/index.js +0 -81
- data/node_modules/@babel/plugin-syntax-decorators/lib/index.js.map +0 -1
- data/node_modules/@babel/plugin-syntax-decorators/package.json +0 -33
- data/node_modules/@babel/plugin-transform-react-display-name/LICENSE +0 -22
- data/node_modules/@babel/plugin-transform-react-display-name/README.md +0 -19
- data/node_modules/@babel/plugin-transform-react-display-name/lib/index.js +0 -92
- data/node_modules/@babel/plugin-transform-react-display-name/lib/index.js.map +0 -1
- data/node_modules/@babel/plugin-transform-react-display-name/package.json +0 -34
- data/node_modules/@babel/plugin-transform-react-jsx/LICENSE +0 -22
- data/node_modules/@babel/plugin-transform-react-jsx/README.md +0 -19
- data/node_modules/@babel/plugin-transform-react-jsx/lib/create-plugin.js +0 -505
- data/node_modules/@babel/plugin-transform-react-jsx/lib/create-plugin.js.map +0 -1
- data/node_modules/@babel/plugin-transform-react-jsx/lib/development.js +0 -13
- data/node_modules/@babel/plugin-transform-react-jsx/lib/development.js.map +0 -1
- data/node_modules/@babel/plugin-transform-react-jsx/lib/index.js +0 -13
- data/node_modules/@babel/plugin-transform-react-jsx/lib/index.js.map +0 -1
- data/node_modules/@babel/plugin-transform-react-jsx/package.json +0 -39
- data/node_modules/@babel/plugin-transform-react-jsx-development/LICENSE +0 -22
- data/node_modules/@babel/plugin-transform-react-jsx-development/README.md +0 -19
- data/node_modules/@babel/plugin-transform-react-jsx-development/lib/index.js +0 -10
- data/node_modules/@babel/plugin-transform-react-jsx-development/lib/index.js.map +0 -1
- data/node_modules/@babel/plugin-transform-react-jsx-development/package.json +0 -33
- data/node_modules/@babel/plugin-transform-react-pure-annotations/LICENSE +0 -22
- data/node_modules/@babel/plugin-transform-react-pure-annotations/README.md +0 -19
- data/node_modules/@babel/plugin-transform-react-pure-annotations/lib/index.js +0 -49
- data/node_modules/@babel/plugin-transform-react-pure-annotations/lib/index.js.map +0 -1
- data/node_modules/@babel/plugin-transform-react-pure-annotations/package.json +0 -34
- data/node_modules/@babel/preset-react/LICENSE +0 -22
- data/node_modules/@babel/preset-react/README.md +0 -19
- data/node_modules/@babel/preset-react/lib/index.js +0 -79
- data/node_modules/@babel/preset-react/lib/index.js.map +0 -1
- data/node_modules/@babel/preset-react/package.json +0 -37
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/LICENSE +0 -7
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/index.js +0 -8
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/CHANGELOG.md +0 -70
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/LICENSE +0 -22
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/README.md +0 -54
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/definition.js +0 -86
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/index.js +0 -165
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/pattern-visitor.js +0 -152
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/reference.js +0 -167
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/referencer.js +0 -629
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/scope-manager.js +0 -247
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/scope.js +0 -748
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/variable.js +0 -88
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/LICENSE.BSD +0 -19
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/README.md +0 -153
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/estraverse.js +0 -782
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/gulpfile.js +0 -70
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/package.json +0 -40
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/package.json +0 -48
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/package.json +0 -14
- data/node_modules/eslint/lib/types/rules/best-practices.d.ts +0 -1143
- data/node_modules/eslint/lib/types/rules/deprecated.d.ts +0 -252
- data/node_modules/eslint/lib/types/rules/ecmascript-6.d.ts +0 -647
- data/node_modules/eslint/lib/types/rules/index.d.ts +0 -50
- data/node_modules/eslint/lib/types/rules/node-commonjs.d.ts +0 -171
- data/node_modules/eslint/lib/types/rules/possible-errors.d.ts +0 -685
- data/node_modules/eslint/lib/types/rules/strict-mode.d.ts +0 -38
- data/node_modules/eslint/lib/types/rules/stylistic-issues.d.ts +0 -2043
- data/node_modules/eslint/lib/types/rules/variables.d.ts +0 -234
- data/node_modules/flatted/python/test.py +0 -63
- data/node_modules/jscodeshift/CHANGELOG.md +0 -226
- data/node_modules/jscodeshift/CODE_OF_CONDUCT.md +0 -3
- data/node_modules/jscodeshift/CONTRIBUTING.md +0 -48
- data/node_modules/jscodeshift/README.md +0 -671
- data/node_modules/jscodeshift/bin/jscodeshift.js +0 -182
- data/node_modules/jscodeshift/bin/jscodeshift.sh +0 -12
- data/node_modules/jscodeshift/dist/Collection.js +0 -472
- data/node_modules/jscodeshift/dist/Runner.js +0 -322
- data/node_modules/jscodeshift/dist/Worker.js +0 -210
- data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.input.js +0 -1
- data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.js +0 -11
- data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.output.js +0 -1
- data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.input.js +0 -1
- data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.js +0 -7
- data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.output.js +0 -1
- data/node_modules/jscodeshift/dist/argsParser.js +0 -273
- data/node_modules/jscodeshift/dist/collections/ImportDeclaration.js +0 -113
- data/node_modules/jscodeshift/dist/collections/JSXElement.js +0 -221
- data/node_modules/jscodeshift/dist/collections/Node.js +0 -187
- data/node_modules/jscodeshift/dist/collections/VariableDeclarator.js +0 -210
- data/node_modules/jscodeshift/dist/collections/index.js +0 -14
- data/node_modules/jscodeshift/dist/core.js +0 -183
- data/node_modules/jscodeshift/dist/getParser.js +0 -25
- data/node_modules/jscodeshift/dist/ignoreFiles.js +0 -68
- data/node_modules/jscodeshift/dist/matchNode.js +0 -40
- data/node_modules/jscodeshift/dist/template.js +0 -173
- data/node_modules/jscodeshift/dist/testUtils.js +0 -173
- data/node_modules/jscodeshift/dist/utils/intersection.js +0 -27
- data/node_modules/jscodeshift/dist/utils/once.js +0 -21
- data/node_modules/jscodeshift/dist/utils/union.js +0 -20
- data/node_modules/jscodeshift/index.js +0 -9
- data/node_modules/jscodeshift/package.json +0 -74
- data/node_modules/jscodeshift/parser/babel5Compat.js +0 -50
- data/node_modules/jscodeshift/parser/babylon.js +0 -57
- data/node_modules/jscodeshift/parser/flow.js +0 -34
- data/node_modules/jscodeshift/parser/ts.js +0 -24
- data/node_modules/jscodeshift/parser/tsOptions.js +0 -46
- data/node_modules/jscodeshift/parser/tsx.js +0 -27
- data/node_modules/jscodeshift/src/Collection.js +0 -472
- data/node_modules/jscodeshift/src/Runner.js +0 -322
- data/node_modules/jscodeshift/src/Worker.js +0 -210
- data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.input.js +0 -1
- data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.js +0 -11
- data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.output.js +0 -1
- data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.input.js +0 -1
- data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.js +0 -7
- data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.output.js +0 -1
- data/node_modules/jscodeshift/src/argsParser.js +0 -273
- data/node_modules/jscodeshift/src/collections/ImportDeclaration.js +0 -113
- data/node_modules/jscodeshift/src/collections/JSXElement.js +0 -221
- data/node_modules/jscodeshift/src/collections/Node.js +0 -187
- data/node_modules/jscodeshift/src/collections/VariableDeclarator.js +0 -210
- data/node_modules/jscodeshift/src/collections/index.js +0 -14
- data/node_modules/jscodeshift/src/core.js +0 -183
- data/node_modules/jscodeshift/src/getParser.js +0 -25
- data/node_modules/jscodeshift/src/ignoreFiles.js +0 -68
- data/node_modules/jscodeshift/src/matchNode.js +0 -40
- data/node_modules/jscodeshift/src/template.js +0 -173
- data/node_modules/jscodeshift/src/testUtils.js +0 -173
- data/node_modules/jscodeshift/src/utils/intersection.js +0 -27
- data/node_modules/jscodeshift/src/utils/once.js +0 -21
- data/node_modules/jscodeshift/src/utils/union.js +0 -20
- data/node_modules/jscodeshift/utils/requirePackage.js +0 -24
- data/node_modules/jscodeshift/utils/testUtils.js +0 -49
- data/node_modules/jscodeshift/website/README.md +0 -44
- data/node_modules/jscodeshift/website/astro.config.mjs +0 -36
- data/node_modules/jscodeshift/website/package.json +0 -17
- data/node_modules/jscodeshift/website/public/favicon.svg +0 -1
- data/node_modules/jscodeshift/website/src/assets/houston.webp +0 -0
- data/node_modules/jscodeshift/website/src/content/config.ts +0 -6
- data/node_modules/jscodeshift/website/src/content/docs/build/api-reference.mdx +0 -406
- data/node_modules/jscodeshift/website/src/content/docs/build/ast-grammar.mdx +0 -3086
- data/node_modules/jscodeshift/website/src/content/docs/index.mdx +0 -15
- data/node_modules/jscodeshift/website/src/content/docs/overview/introduction.mdx +0 -45
- data/node_modules/jscodeshift/website/src/content/docs/run/cli.mdx +0 -161
- data/node_modules/jscodeshift/website/src/env.d.ts +0 -2
- data/node_modules/jscodeshift/website/tsconfig.json +0 -3
- data/node_modules/typescript/lib/cancellationToken.js +0 -90
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.default = loadCodeDefault;
|
7
7
|
exports.supportsESM = void 0;
|
8
|
-
var
|
8
|
+
var _async = require("../../gensync-utils/async.js");
|
9
9
|
function _path() {
|
10
10
|
const data = require("path");
|
11
11
|
_path = function () {
|
@@ -20,6 +20,7 @@ function _url() {
|
|
20
20
|
};
|
21
21
|
return data;
|
22
22
|
}
|
23
|
+
require("module");
|
23
24
|
function _semver() {
|
24
25
|
const data = require("semver");
|
25
26
|
_semver = function () {
|
@@ -78,95 +79,105 @@ const loadMjsFromPath = (0, _rewriteStackTrace.endHiddenCallStack)(function () {
|
|
78
79
|
}
|
79
80
|
return loadMjsFromPath;
|
80
81
|
}());
|
81
|
-
const SUPPORTED_EXTENSIONS =
|
82
|
+
const SUPPORTED_EXTENSIONS = {
|
83
|
+
".js": "unknown",
|
84
|
+
".mjs": "esm",
|
85
|
+
".cjs": "cjs",
|
86
|
+
".ts": "unknown",
|
87
|
+
".mts": "esm",
|
88
|
+
".cts": "cjs"
|
89
|
+
};
|
82
90
|
const asyncModules = new Set();
|
83
91
|
function* loadCodeDefault(filepath, loader, esmError, tlaError) {
|
84
|
-
var _async2;
|
85
92
|
let async;
|
86
|
-
|
87
|
-
|
88
|
-
const
|
93
|
+
const ext = _path().extname(filepath);
|
94
|
+
const isTS = ext === ".ts" || ext === ".cts" || ext === ".mts";
|
95
|
+
const type = SUPPORTED_EXTENSIONS[hasOwnProperty.call(SUPPORTED_EXTENSIONS, ext) ? ext : ".js"];
|
96
|
+
const pattern = `${loader} ${type}`;
|
89
97
|
switch (pattern) {
|
90
|
-
case "require
|
91
|
-
case "auto
|
92
|
-
{
|
98
|
+
case "require cjs":
|
99
|
+
case "auto cjs":
|
100
|
+
if (isTS) {
|
101
|
+
return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));
|
102
|
+
} else {
|
93
103
|
return loadCjsDefault(filepath, arguments[2]);
|
94
104
|
}
|
95
|
-
case "
|
96
|
-
case "
|
97
|
-
|
98
|
-
case "auto .js":
|
99
|
-
case "require .js":
|
100
|
-
case "require .mjs":
|
105
|
+
case "auto unknown":
|
106
|
+
case "require unknown":
|
107
|
+
case "require esm":
|
101
108
|
try {
|
102
|
-
{
|
109
|
+
if (isTS) {
|
110
|
+
return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));
|
111
|
+
} else {
|
103
112
|
return loadCjsDefault(filepath, arguments[2]);
|
104
113
|
}
|
105
114
|
} catch (e) {
|
106
115
|
if (e.code === "ERR_REQUIRE_ASYNC_MODULE" || e.code === "ERR_REQUIRE_CYCLE_MODULE" && asyncModules.has(filepath)) {
|
107
|
-
var _async;
|
108
116
|
asyncModules.add(filepath);
|
109
|
-
if (!(
|
117
|
+
if (!(async != null ? async : async = yield* (0, _async.isAsync)())) {
|
110
118
|
throw new _configError.default(tlaError, filepath);
|
111
119
|
}
|
112
|
-
} else if (e.code === "ERR_REQUIRE_ESM" ||
|
120
|
+
} else if (e.code === "ERR_REQUIRE_ESM" || type === "esm") {} else {
|
113
121
|
throw e;
|
114
122
|
}
|
115
123
|
}
|
116
|
-
case "auto
|
117
|
-
if (
|
118
|
-
|
124
|
+
case "auto esm":
|
125
|
+
if (async != null ? async : async = yield* (0, _async.isAsync)()) {
|
126
|
+
const promise = isTS ? ensureTsSupport(filepath, ext, () => loadMjsFromPath(filepath)) : loadMjsFromPath(filepath);
|
127
|
+
return (yield* (0, _async.waitFor)(promise)).default;
|
119
128
|
}
|
120
129
|
throw new _configError.default(esmError, filepath);
|
121
130
|
default:
|
122
131
|
throw new Error("Internal Babel error: unreachable code.");
|
123
132
|
}
|
124
133
|
}
|
125
|
-
function
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
if (
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
134
|
+
function ensureTsSupport(filepath, ext, callback) {
|
135
|
+
if (require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]) {
|
136
|
+
return callback();
|
137
|
+
}
|
138
|
+
if (ext !== ".cts") {
|
139
|
+
throw new _configError.default(`\
|
140
|
+
You are using a ${ext} config file, but Babel only supports transpiling .cts configs. Either:
|
141
|
+
- Use a .cts config file
|
142
|
+
- Update to Node.js 23.6.0, which has native TypeScript support
|
143
|
+
- Install ts-node to transpile ${ext} files on the fly\
|
144
|
+
`, filepath);
|
145
|
+
}
|
146
|
+
const opts = {
|
147
|
+
babelrc: false,
|
148
|
+
configFile: false,
|
149
|
+
sourceType: "unambiguous",
|
150
|
+
sourceMaps: "inline",
|
151
|
+
sourceFileName: _path().basename(filepath),
|
152
|
+
presets: [[getTSPreset(filepath), Object.assign({
|
153
|
+
onlyRemoveTypeImports: true,
|
154
|
+
optimizeConstEnums: true
|
155
|
+
}, {
|
156
|
+
allowDeclareFields: true
|
157
|
+
})]]
|
158
|
+
};
|
159
|
+
let handler = function (m, filename) {
|
160
|
+
if (handler && filename.endsWith(".cts")) {
|
161
|
+
try {
|
162
|
+
return m._compile((0, _transformFile.transformFileSync)(filename, Object.assign({}, opts, {
|
163
|
+
filename
|
164
|
+
})).code, filename);
|
165
|
+
} catch (error) {
|
166
|
+
const packageJson = require("@babel/preset-typescript/package.json");
|
167
|
+
if (_semver().lt(packageJson.version, "7.21.4")) {
|
168
|
+
console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.");
|
157
169
|
}
|
170
|
+
throw error;
|
158
171
|
}
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
172
|
+
}
|
173
|
+
return require.extensions[".js"](m, filename);
|
174
|
+
};
|
175
|
+
require.extensions[ext] = handler;
|
163
176
|
try {
|
164
|
-
return
|
177
|
+
return callback();
|
165
178
|
} finally {
|
166
|
-
if (
|
167
|
-
|
168
|
-
handler = undefined;
|
169
|
-
}
|
179
|
+
if (require.extensions[ext] === handler) delete require.extensions[ext];
|
180
|
+
handler = undefined;
|
170
181
|
}
|
171
182
|
}
|
172
183
|
function getTSPreset(filepath) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_async3","require","_path","data","_url","_semver","_debug","_rewriteStackTrace","_configError","_transformFile","asyncGeneratorStep","n","t","e","r","o","a","c","i","u","value","done","Promise","resolve","then","_asyncToGenerator","arguments","apply","_next","_throw","debug","buildDebug","import_","_unused","supportsESM","exports","semver","satisfies","process","versions","node","LOADING_CJS_FILES","Set","loadCjsDefault","filepath","has","module","add","endHiddenCallStack","delete","__esModule","Symbol","toStringTag","default","undefined","loadMjsFromPath","_loadMjsFromPath","url","pathToFileURL","toString","ConfigError","_x","SUPPORTED_EXTENSIONS","asyncModules","loadCodeDefault","loader","esmError","tlaError","_async2","async","ext","path","extname","pattern","loadCtsDefault","code","_async","isAsync","waitFor","Error","hasTsSupport","extensions","handler","opts","babelrc","configFile","sourceType","sourceMaps","sourceFileName","basename","presets","getTSPreset","Object","assign","onlyRemoveTypeImports","optimizeConstEnums","allowDeclareFields","m","filename","endsWith","_compile","transformFileSync","error","packageJson","lt","version","console","message","pnp"],"sources":["../../../src/config/files/module-types.ts"],"sourcesContent":["import { isAsync, waitFor } from \"../../gensync-utils/async.ts\";\nimport type { Handler } from \"gensync\";\nimport path from \"path\";\nimport { pathToFileURL } from \"url\";\nimport { createRequire } from \"module\";\nimport semver from \"semver\";\nimport buildDebug from \"debug\";\n\nimport { endHiddenCallStack } from \"../../errors/rewrite-stack-trace.ts\";\nimport ConfigError from \"../../errors/config-error.ts\";\n\nimport type { InputOptions } from \"../index.ts\";\nimport { transformFileSync } from \"../../transform-file.ts\";\n\nconst debug = buildDebug(\"babel:config:loading:files:module-types\");\n\nconst require = createRequire(import.meta.url);\n\nif (!process.env.BABEL_8_BREAKING) {\n try {\n // Old Node.js versions don't support import() syntax.\n // eslint-disable-next-line no-var\n var import_:\n | ((specifier: string | URL) => any)\n | undefined = require(\"./import.cjs\");\n } catch {}\n}\n\nexport const supportsESM = semver.satisfies(\n process.versions.node,\n // older versions, starting from 10, support the dynamic\n // import syntax but always return a rejected promise.\n \"^12.17 || >=13.2\",\n);\n\nconst LOADING_CJS_FILES = new Set();\n\nfunction loadCjsDefault(filepath: string) {\n // The `require()` call below can make this code reentrant if a require hook\n // like @babel/register has been loaded into the system. That would cause\n // Babel to attempt to compile the `.babelrc.js` file as it loads below. To\n // cover this case, we auto-ignore re-entrant config processing. ESM loaders\n // do not have this problem, because loaders do not apply to themselves.\n if (LOADING_CJS_FILES.has(filepath)) {\n debug(\"Auto-ignoring usage of config %o.\", filepath);\n return {};\n }\n\n let module;\n try {\n LOADING_CJS_FILES.add(filepath);\n module = endHiddenCallStack(require)(filepath);\n } finally {\n LOADING_CJS_FILES.delete(filepath);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return module != null &&\n (module.__esModule || module[Symbol.toStringTag] === \"Module\")\n ? module.default\n : module;\n } else {\n return module != null &&\n (module.__esModule || module[Symbol.toStringTag] === \"Module\")\n ? module.default ||\n /* fallbackToTranspiledModule */ (arguments[1] ? module : undefined)\n : module;\n }\n}\n\nconst loadMjsFromPath = endHiddenCallStack(async function loadMjsFromPath(\n filepath: string,\n) {\n // Add ?import as a workaround for https://github.com/nodejs/node/issues/55500\n const url = pathToFileURL(filepath).toString() + \"?import\";\n\n if (process.env.BABEL_8_BREAKING) {\n return await import(url);\n } else {\n if (!import_) {\n throw new ConfigError(\n \"Internal error: Native ECMAScript modules aren't supported by this platform.\\n\",\n filepath,\n );\n }\n\n return await import_(url);\n }\n});\n\nconst SUPPORTED_EXTENSIONS = new Set([\".js\", \".mjs\", \".cjs\", \".cts\"] as const);\ntype SetValue<T extends Set<unknown>> = T extends Set<infer U> ? U : never;\n\nconst asyncModules = new Set();\n\nexport default function* loadCodeDefault(\n filepath: string,\n loader: \"require\" | \"auto\",\n esmError: string,\n tlaError: string,\n): Handler<unknown> {\n let async;\n\n let ext = path.extname(filepath);\n if (!SUPPORTED_EXTENSIONS.has(ext as any)) ext = \".js\";\n\n const pattern =\n `${loader} ${ext}` as `${typeof loader} ${SetValue<typeof SUPPORTED_EXTENSIONS>}`;\n switch (pattern) {\n case \"require .cjs\":\n case \"auto .cjs\":\n if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n case \"require .cts\":\n case \"auto .cts\":\n return loadCtsDefault(filepath);\n case \"auto .js\":\n case \"require .js\":\n case \"require .mjs\": // Some versions of Node.js support require(esm):\n try {\n if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n } catch (e) {\n if (\n e.code === \"ERR_REQUIRE_ASYNC_MODULE\" ||\n // Node.js 13.0.0 throws ERR_REQUIRE_CYCLE_MODULE instead of\n // ERR_REQUIRE_ASYNC_MODULE when requiring a module a second time\n // https://github.com/nodejs/node/issues/55516\n // This `asyncModules` won't catch all of such cases, but it will\n // at least catch those caused by Babel trying to load a module twice.\n (e.code === \"ERR_REQUIRE_CYCLE_MODULE\" && asyncModules.has(filepath))\n ) {\n asyncModules.add(filepath);\n if (!(async ??= yield* isAsync())) {\n throw new ConfigError(tlaError, filepath);\n }\n // fall through: require() failed due to TLA\n } else if (\n e.code === \"ERR_REQUIRE_ESM\" ||\n (!process.env.BABEL_8_BREAKING && ext === \".mjs\")\n ) {\n // fall through: require() failed due to ESM\n } else {\n throw e;\n }\n }\n // fall through: require() failed due to ESM or TLA, try import()\n case \"auto .mjs\":\n if ((async ??= yield* isAsync())) {\n return (yield* waitFor(loadMjsFromPath(filepath))).default;\n }\n throw new ConfigError(esmError, filepath);\n default:\n throw new Error(\"Internal Babel error: unreachable code.\");\n }\n}\n\nfunction loadCtsDefault(filepath: string) {\n const ext = \".cts\";\n const hasTsSupport = !!(\n require.extensions[\".ts\"] ||\n require.extensions[\".cts\"] ||\n require.extensions[\".mts\"]\n );\n\n let handler: NodeJS.RequireExtensions[\"\"];\n\n if (!hasTsSupport) {\n const opts: InputOptions = {\n babelrc: false,\n configFile: false,\n sourceType: \"unambiguous\",\n sourceMaps: \"inline\",\n sourceFileName: path.basename(filepath),\n presets: [\n [\n getTSPreset(filepath),\n {\n onlyRemoveTypeImports: true,\n optimizeConstEnums: true,\n ...(process.env.BABEL_8_BREAKING\n ? {}\n : { allowDeclareFields: true }),\n },\n ],\n ],\n };\n\n handler = function (m, filename) {\n // If we want to support `.ts`, `.d.ts` must be handled specially.\n if (handler && filename.endsWith(ext)) {\n try {\n // @ts-expect-error Undocumented API\n return m._compile(\n transformFileSync(filename, {\n ...opts,\n filename,\n }).code,\n filename,\n );\n } catch (error) {\n if (!hasTsSupport) {\n // TODO(Babel 8): Add this as an optional peer dependency\n // eslint-disable-next-line import/no-extraneous-dependencies\n const packageJson = require(\"@babel/preset-typescript/package.json\");\n if (semver.lt(packageJson.version, \"7.21.4\")) {\n console.error(\n \"`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.\",\n );\n }\n }\n throw error;\n }\n }\n return require.extensions[\".js\"](m, filename);\n };\n require.extensions[ext] = handler;\n }\n try {\n return loadCjsDefault(filepath);\n } finally {\n if (!hasTsSupport) {\n if (require.extensions[ext] === handler) delete require.extensions[ext];\n handler = undefined;\n }\n }\n}\n\nfunction getTSPreset(filepath: string) {\n try {\n // eslint-disable-next-line import/no-extraneous-dependencies\n return require(\"@babel/preset-typescript\");\n } catch (error) {\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n let message =\n \"You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!\";\n\n if (!process.env.BABEL_8_BREAKING) {\n if (process.versions.pnp) {\n // Using Yarn PnP, which doesn't allow requiring packages that are not\n // explicitly specified as dependencies.\n message += `\nIf you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:\n\npackageExtensions:\n\\t\"@babel/core@*\":\n\\t\\tpeerDependencies:\n\\t\\t\\t\"@babel/preset-typescript\": \"*\"\n`;\n }\n }\n\n throw new ConfigError(message, filepath);\n }\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,SAAAC,MAAA;EAAA,MAAAC,IAAA,GAAAF,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAC,KAAA;EAAA,MAAAD,IAAA,GAAAF,OAAA;EAAAG,IAAA,YAAAA,CAAA;IAAA,OAAAD,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAF,OAAA;EAAAI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AEF,OAAO3C,OAAO,CAAC,0BAA0B,CAAC;EAC5C,CAAC,CAAC,OAAOqG,KAAK,EAAE;IACd,IAAIA,KAAK,CAAC3B,IAAI,KAAK,kBAAkB,EAAE,MAAM2B,KAAK;IAElD,IAAIK,OAAO,GACT,yIAAyI;IAExG;MACjC,IAAIrE,OAAO,CAACC,QAAQ,CAACqE,GAAG,EAAE;QAGxBD,OAAO,IAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;MACK;IACF;IAEA,MAAM,IAAI/C,oBAAW,CAAC+C,OAAO,EAAE/D,QAAQ,CAAC;EAC1C;AACF;AAAC","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_async","require","_path","data","_url","_semver","_debug","_rewriteStackTrace","_configError","_transformFile","asyncGeneratorStep","n","t","e","r","o","a","c","i","u","value","done","Promise","resolve","then","_asyncToGenerator","arguments","apply","_next","_throw","debug","buildDebug","import_","_unused","supportsESM","exports","semver","satisfies","process","versions","node","LOADING_CJS_FILES","Set","loadCjsDefault","filepath","has","module","add","endHiddenCallStack","delete","__esModule","Symbol","toStringTag","default","undefined","loadMjsFromPath","_loadMjsFromPath","url","pathToFileURL","toString","ConfigError","_x","SUPPORTED_EXTENSIONS","asyncModules","loadCodeDefault","loader","esmError","tlaError","async","ext","path","extname","isTS","type","hasOwnProperty","call","pattern","ensureTsSupport","code","isAsync","promise","waitFor","Error","callback","extensions","opts","babelrc","configFile","sourceType","sourceMaps","sourceFileName","basename","presets","getTSPreset","Object","assign","onlyRemoveTypeImports","optimizeConstEnums","allowDeclareFields","handler","m","filename","endsWith","_compile","transformFileSync","error","packageJson","lt","version","console","message","pnp"],"sources":["../../../src/config/files/module-types.ts"],"sourcesContent":["import { isAsync, waitFor } from \"../../gensync-utils/async.ts\";\nimport type { Handler } from \"gensync\";\nimport path from \"path\";\nimport { pathToFileURL } from \"url\";\nimport { createRequire } from \"module\";\nimport semver from \"semver\";\nimport buildDebug from \"debug\";\n\nimport { endHiddenCallStack } from \"../../errors/rewrite-stack-trace.ts\";\nimport ConfigError from \"../../errors/config-error.ts\";\n\nimport type { InputOptions } from \"../index.ts\";\nimport { transformFileSync } from \"../../transform-file.ts\";\n\nconst debug = buildDebug(\"babel:config:loading:files:module-types\");\n\nconst require = createRequire(import.meta.url);\n\nif (!process.env.BABEL_8_BREAKING) {\n try {\n // Old Node.js versions don't support import() syntax.\n // eslint-disable-next-line no-var\n var import_:\n | ((specifier: string | URL) => any)\n | undefined = require(\"./import.cjs\");\n } catch {}\n}\n\nexport const supportsESM = semver.satisfies(\n process.versions.node,\n // older versions, starting from 10, support the dynamic\n // import syntax but always return a rejected promise.\n \"^12.17 || >=13.2\",\n);\n\nconst LOADING_CJS_FILES = new Set();\n\nfunction loadCjsDefault(filepath: string) {\n // The `require()` call below can make this code reentrant if a require hook\n // like @babel/register has been loaded into the system. That would cause\n // Babel to attempt to compile the `.babelrc.js` file as it loads below. To\n // cover this case, we auto-ignore re-entrant config processing. ESM loaders\n // do not have this problem, because loaders do not apply to themselves.\n if (LOADING_CJS_FILES.has(filepath)) {\n debug(\"Auto-ignoring usage of config %o.\", filepath);\n return {};\n }\n\n let module;\n try {\n LOADING_CJS_FILES.add(filepath);\n module = endHiddenCallStack(require)(filepath);\n } finally {\n LOADING_CJS_FILES.delete(filepath);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return module != null &&\n (module.__esModule || module[Symbol.toStringTag] === \"Module\")\n ? module.default\n : module;\n } else {\n return module != null &&\n (module.__esModule || module[Symbol.toStringTag] === \"Module\")\n ? module.default ||\n /* fallbackToTranspiledModule */ (arguments[1] ? module : undefined)\n : module;\n }\n}\n\nconst loadMjsFromPath = endHiddenCallStack(async function loadMjsFromPath(\n filepath: string,\n) {\n // Add ?import as a workaround for https://github.com/nodejs/node/issues/55500\n const url = pathToFileURL(filepath).toString() + \"?import\";\n\n if (process.env.BABEL_8_BREAKING) {\n return await import(url);\n } else {\n if (!import_) {\n throw new ConfigError(\n \"Internal error: Native ECMAScript modules aren't supported by this platform.\\n\",\n filepath,\n );\n }\n\n return await import_(url);\n }\n});\n\nconst SUPPORTED_EXTENSIONS = {\n \".js\": \"unknown\",\n \".mjs\": \"esm\",\n \".cjs\": \"cjs\",\n \".ts\": \"unknown\",\n \".mts\": \"esm\",\n \".cts\": \"cjs\",\n} as const;\n\nconst asyncModules = new Set();\n\nexport default function* loadCodeDefault(\n filepath: string,\n loader: \"require\" | \"auto\",\n esmError: string,\n tlaError: string,\n): Handler<unknown> {\n let async;\n\n const ext = path.extname(filepath);\n const isTS = ext === \".ts\" || ext === \".cts\" || ext === \".mts\";\n\n const type =\n SUPPORTED_EXTENSIONS[\n Object.hasOwn(SUPPORTED_EXTENSIONS, ext)\n ? (ext as keyof typeof SUPPORTED_EXTENSIONS)\n : (\".js\" as const)\n ];\n\n const pattern = `${loader} ${type}` as const;\n switch (pattern) {\n case \"require cjs\":\n case \"auto cjs\":\n if (isTS) {\n return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));\n } else if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n case \"auto unknown\":\n case \"require unknown\":\n case \"require esm\":\n try {\n if (isTS) {\n return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));\n } else if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n } catch (e) {\n if (\n e.code === \"ERR_REQUIRE_ASYNC_MODULE\" ||\n // Node.js 13.0.0 throws ERR_REQUIRE_CYCLE_MODULE instead of\n // ERR_REQUIRE_ASYNC_MODULE when requiring a module a second time\n // https://github.com/nodejs/node/issues/55516\n // This `asyncModules` won't catch all of such cases, but it will\n // at least catch those caused by Babel trying to load a module twice.\n (e.code === \"ERR_REQUIRE_CYCLE_MODULE\" && asyncModules.has(filepath))\n ) {\n asyncModules.add(filepath);\n if (!(async ??= yield* isAsync())) {\n throw new ConfigError(tlaError, filepath);\n }\n // fall through: require() failed due to TLA\n } else if (\n e.code === \"ERR_REQUIRE_ESM\" ||\n (!process.env.BABEL_8_BREAKING && type === \"esm\")\n ) {\n // fall through: require() failed due to ESM\n } else {\n throw e;\n }\n }\n // fall through: require() failed due to ESM or TLA, try import()\n case \"auto esm\":\n if ((async ??= yield* isAsync())) {\n const promise = isTS\n ? ensureTsSupport(filepath, ext, () => loadMjsFromPath(filepath))\n : loadMjsFromPath(filepath);\n\n return (yield* waitFor(promise)).default;\n }\n throw new ConfigError(esmError, filepath);\n default:\n throw new Error(\"Internal Babel error: unreachable code.\");\n }\n}\n\nfunction ensureTsSupport<T>(\n filepath: string,\n ext: string,\n callback: () => T,\n): T {\n if (\n require.extensions[\".ts\"] ||\n require.extensions[\".cts\"] ||\n require.extensions[\".mts\"]\n ) {\n return callback();\n }\n\n if (ext !== \".cts\") {\n throw new ConfigError(\n `\\\nYou are using a ${ext} config file, but Babel only supports transpiling .cts configs. Either:\n- Use a .cts config file\n- Update to Node.js 23.6.0, which has native TypeScript support\n- Install ts-node to transpile ${ext} files on the fly\\\n`,\n filepath,\n );\n }\n\n const opts: InputOptions = {\n babelrc: false,\n configFile: false,\n sourceType: \"unambiguous\",\n sourceMaps: \"inline\",\n sourceFileName: path.basename(filepath),\n presets: [\n [\n getTSPreset(filepath),\n {\n onlyRemoveTypeImports: true,\n optimizeConstEnums: true,\n ...(process.env.BABEL_8_BREAKING ? {} : { allowDeclareFields: true }),\n },\n ],\n ],\n };\n\n let handler: NodeJS.RequireExtensions[\"\"] = function (m, filename) {\n // If we want to support `.ts`, `.d.ts` must be handled specially.\n if (handler && filename.endsWith(\".cts\")) {\n try {\n // @ts-expect-error Undocumented API\n return m._compile(\n transformFileSync(filename, {\n ...opts,\n filename,\n }).code,\n filename,\n );\n } catch (error) {\n // TODO(Babel 8): Add this as an optional peer dependency\n // eslint-disable-next-line import/no-extraneous-dependencies\n const packageJson = require(\"@babel/preset-typescript/package.json\");\n if (semver.lt(packageJson.version, \"7.21.4\")) {\n console.error(\n \"`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.\",\n );\n }\n throw error;\n }\n }\n return require.extensions[\".js\"](m, filename);\n };\n require.extensions[ext] = handler;\n\n try {\n return callback();\n } finally {\n if (require.extensions[ext] === handler) delete require.extensions[ext];\n handler = undefined;\n }\n}\n\nfunction getTSPreset(filepath: string) {\n try {\n // eslint-disable-next-line import/no-extraneous-dependencies\n return require(\"@babel/preset-typescript\");\n } catch (error) {\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n let message =\n \"You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!\";\n\n if (!process.env.BABEL_8_BREAKING) {\n if (process.versions.pnp) {\n // Using Yarn PnP, which doesn't allow requiring packages that are not\n // explicitly specified as dependencies.\n message += `\nIf you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:\n\npackageExtensions:\n\\t\"@babel/core@*\":\n\\t\\tpeerDependencies:\n\\t\\t\\t\"@babel/preset-typescript\": \"*\"\n`;\n }\n }\n\n throw new ConfigError(message, filepath);\n }\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,SAAAC,MAAA;EAAA,MAAAC,IAAA,GAAAF,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAC,KAAA;EAAA,MAAAD,IAAA,GAAAF,OAAA;EAAAG,IAAA,YAAAA,CAAA;IAAA,OAAAD,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACAF,OAAA;AACA,SAAAI,QAAA;EAAA,MAAAF,IAAA,GAAAF,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OA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KAAK;MACb;IACF;IACA,OAAOxG,OAAO,CAACmF,UAAU,CAAC,KAAK,CAAC,CAACgB,CAAC,EAAEC,QAAQ,CAAC;EAC/C,CAAC;EACDpG,OAAO,CAACmF,UAAU,CAACf,GAAG,CAAC,GAAG8B,OAAO;EAEjC,IAAI;IACF,OAAOhB,QAAQ,CAAC,CAAC;EACnB,CAAC,SAAS;IACR,IAAIlF,OAAO,CAACmF,UAAU,CAACf,GAAG,CAAC,KAAK8B,OAAO,EAAE,OAAOlG,OAAO,CAACmF,UAAU,CAACf,GAAG,CAAC;IACvE8B,OAAO,GAAG7C,SAAS;EACrB;AACF;AAEA,SAASuC,WAAWA,CAACjD,QAAgB,EAAE;EACrC,IAAI;IAEF,OAAO3C,OAAO,CAAC,0BAA0B,CAAC;EAC5C,CAAC,CAAC,OAAOwG,KAAK,EAAE;IACd,IAAIA,KAAK,CAAC3B,IAAI,KAAK,kBAAkB,EAAE,MAAM2B,KAAK;IAElD,IAAIK,OAAO,GACT,yIAAyI;IAExG;MACjC,IAAIxE,OAAO,CAACC,QAAQ,CAACwE,GAAG,EAAE;QAGxBD,OAAO,IAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;MACK;IACF;IAEA,MAAM,IAAIlD,oBAAW,CAACkD,OAAO,EAAElE,QAAQ,CAAC;EAC1C;AACF;AAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_debug","data","require","_path","_async","_moduleTypes","_url","_importMetaResolve","_fs","debug","buildDebug","EXACT_RE","BABEL_PLUGIN_PREFIX_RE","BABEL_PRESET_PREFIX_RE","BABEL_PLUGIN_ORG_RE","BABEL_PRESET_ORG_RE","OTHER_PLUGIN_ORG_RE","OTHER_PRESET_ORG_RE","OTHER_ORG_DEFAULT_RE","resolvePlugin","exports","resolveStandardizedName","bind","resolvePreset","loadPlugin","name","dirname","filepath","loader","isAsync","value","requireModule","loadPreset","standardizeName","type","path","isAbsolute","isPreset","replace","resolveAlternativesHelper","standardizedName","error","code","message","oppositeType","transformName","tryRequireResolve","id","v","w","split","process","versions","node","resolve","r","paths","b","M","f","_findPath","_nodeModulePaths","concat","Error","tryImportMetaResolve","options","importMetaResolve","resolveStandardizedNameForRequire","it","res","next","done","resolveStandardizedNameForImport","parentUrl","pathToFileURL","join","href","fileURLToPath","allowAsync","supportsESM","resolved","existsSync","Object","assign","e","e2","LOADING_MODULES","Set","has","add","loadCodeDefault","err","delete"],"sources":["../../../src/config/files/plugins.ts"],"sourcesContent":["/**\n * This file handles all logic for converting string-based configuration references into loaded objects.\n */\n\nimport buildDebug from \"debug\";\nimport path from \"path\";\nimport type { Handler } from \"gensync\";\nimport { isAsync } from \"../../gensync-utils/async.ts\";\nimport loadCodeDefault, { supportsESM } from \"./module-types.ts\";\nimport { fileURLToPath, pathToFileURL } from \"url\";\n\nimport { resolve as importMetaResolve } from \"../../vendor/import-meta-resolve.js\";\n\nimport { createRequire } from \"module\";\nimport { existsSync } from \"fs\";\nconst require = createRequire(import.meta.url);\n\nconst debug = buildDebug(\"babel:config:loading:files:plugins\");\n\nconst EXACT_RE = /^module:/;\nconst BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-plugin-)/;\nconst BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-preset-)/;\nconst BABEL_PLUGIN_ORG_RE = /^(@babel\\/)(?!plugin-|[^/]+\\/)/;\nconst BABEL_PRESET_ORG_RE = /^(@babel\\/)(?!preset-|[^/]+\\/)/;\nconst OTHER_PLUGIN_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-plugin(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_PRESET_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-preset(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;\n\nexport const resolvePlugin = resolveStandardizedName.bind(null, \"plugin\");\nexport const resolvePreset = resolveStandardizedName.bind(null, \"preset\");\n\nexport function* loadPlugin(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePlugin(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"plugin\", loader, filepath);\n debug(\"Loaded plugin %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nexport function* loadPreset(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePreset(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"preset\", loader, filepath);\n\n debug(\"Loaded preset %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nfunction standardizeName(type: \"plugin\" | \"preset\", name: string) {\n // Let absolute and relative paths through.\n if (path.isAbsolute(name)) return name;\n\n const isPreset = type === \"preset\";\n\n return (\n name\n // foo -> babel-preset-foo\n .replace(\n isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE,\n `babel-${type}-`,\n )\n // @babel/es2015 -> @babel/preset-es2015\n .replace(\n isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE,\n `$1${type}-`,\n )\n // @foo/mypreset -> @foo/babel-preset-mypreset\n .replace(\n isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE,\n `$1babel-${type}-`,\n )\n // @foo -> @foo/babel-preset\n .replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`)\n // module:mypreset -> mypreset\n .replace(EXACT_RE, \"\")\n );\n}\n\ntype Result<T> = { error: Error; value: null } | { error: null; value: T };\n\nfunction* resolveAlternativesHelper(\n type: \"plugin\" | \"preset\",\n name: string,\n): Iterator<string, string, Result<string>> {\n const standardizedName = standardizeName(type, name);\n const { error, value } = yield standardizedName;\n if (!error) return value;\n\n // @ts-expect-error code may not index error\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n if (standardizedName !== name && !(yield name).error) {\n error.message += `\\n- If you want to resolve \"${name}\", use \"module:${name}\"`;\n }\n\n if (!(yield standardizeName(type, \"@babel/\" + name)).error) {\n error.message += `\\n- Did you mean \"@babel/${name}\"?`;\n }\n\n const oppositeType = type === \"preset\" ? \"plugin\" : \"preset\";\n if (!(yield standardizeName(oppositeType, name)).error) {\n error.message += `\\n- Did you accidentally pass a ${oppositeType} as a ${type}?`;\n }\n\n if (type === \"plugin\") {\n const transformName = standardizedName.replace(\"-proposal-\", \"-transform-\");\n if (transformName !== standardizedName && !(yield transformName).error) {\n error.message += `\\n- Did you mean \"${transformName}\"?`;\n }\n }\n\n error.message += `\\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n`;\n\n throw error;\n}\n\nfunction tryRequireResolve(\n id: string,\n dirname: string | undefined,\n): Result<string> {\n try {\n if (dirname) {\n return { error: null, value: require.resolve(id, { paths: [dirname] }) };\n } else {\n return { error: null, value: require.resolve(id) };\n }\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction tryImportMetaResolve(\n id: Parameters<typeof importMetaResolve>[0],\n options: Parameters<typeof importMetaResolve>[1],\n): Result<string> {\n try {\n return { error: null, value: importMetaResolve(id, options) };\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction resolveStandardizedNameForRequire(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryRequireResolve(res.value, dirname));\n }\n return { loader: \"require\" as const, filepath: res.value };\n}\nfunction resolveStandardizedNameForImport(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const parentUrl = pathToFileURL(\n path.join(dirname, \"./babel-virtual-resolve-base.js\"),\n ).href;\n\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryImportMetaResolve(res.value, parentUrl));\n }\n return { loader: \"auto\" as const, filepath: fileURLToPath(res.value) };\n}\n\nfunction resolveStandardizedName(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n allowAsync: boolean,\n) {\n if (!supportsESM || !allowAsync) {\n return resolveStandardizedNameForRequire(type, name, dirname);\n }\n\n try {\n const resolved = resolveStandardizedNameForImport(type, name, dirname);\n // import-meta-resolve 4.0 does not throw if the module is not found.\n if (!existsSync(resolved.filepath)) {\n throw Object.assign(\n new Error(`Could not resolve \"${name}\" in file ${dirname}.`),\n { type: \"MODULE_NOT_FOUND\" },\n );\n }\n return resolved;\n } catch (e) {\n try {\n return resolveStandardizedNameForRequire(type, name, dirname);\n } catch (e2) {\n if (e.type === \"MODULE_NOT_FOUND\") throw e;\n if (e2.type === \"MODULE_NOT_FOUND\") throw e2;\n throw e;\n }\n }\n}\n\nif (!process.env.BABEL_8_BREAKING) {\n // eslint-disable-next-line no-var\n var LOADING_MODULES = new Set();\n}\nfunction* requireModule(\n type: string,\n loader: \"require\" | \"auto\",\n name: string,\n): Handler<unknown> {\n if (!process.env.BABEL_8_BREAKING) {\n if (!(yield* isAsync()) && LOADING_MODULES.has(name)) {\n throw new Error(\n `Reentrant ${type} detected trying to load \"${name}\". This module is not ignored ` +\n \"and is trying to load itself while compiling itself, leading to a dependency cycle. \" +\n 'We recommend adding it to your \"ignore\" list in your babelrc, or to a .babelignore.',\n );\n }\n }\n\n try {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.add(name);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return yield* loadCodeDefault(\n name,\n loader,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n `You appear to be using a ${type} that contains top-level await, ` +\n \"which is only supported when running Babel asynchronously.\",\n );\n } else {\n return yield* loadCodeDefault(\n name,\n loader,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n `You appear to be using a ${type} that contains top-level await, ` +\n \"which is only supported when running Babel asynchronously.\",\n // For backward compatibility, we need to support malformed presets\n // defined as separate named exports rather than a single default\n // export.\n // See packages/babel-core/test/fixtures/option-manager/presets/es2015_named.js\n // @ts-ignore(Babel 7 vs Babel 8) This param has been removed\n true,\n );\n }\n } catch (err) {\n err.message = `[BABEL]: ${err.message} (While processing: ${name})`;\n throw err;\n } finally {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.delete(name);\n }\n }\n}\n"],"mappings":";;;;;;;;AAIA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAG,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,SAAAI,KAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,IAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAM,kBAAA,GAAAL,OAAA;AAGA,SAAAM,IAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,GAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,MAAMQ,KAAK,GAAGC,OAASA,CAAC,CAAC,oCAAoC,CAAC;AAE9D,MAAMC,QAAQ,GAAG,UAAU;AAC3B,MAAMC,sBAAsB,GAAG,sCAAsC;AACrE,MAAMC,sBAAsB,GAAG,sCAAsC;AACrE,MAAMC,mBAAmB,GAAG,gCAAgC;AAC5D,MAAMC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EjC,IAAIE,eAAe,GAAG,IAAIC,GAAG,CAAC,CAAC;AACjC;AACA,UAAUxD,aAAaA,CACrBG,IAAY,EACZN,MAA0B,EAC1BH,IAAY,EACM;EACiB;IACjC,IAAI,EAAE,OAAO,IAAAI,cAAO,EAAC,CAAC,CAAC,IAAIyD,eAAe,CAACE,GAAG,CAAC/D,IAAI,CAAC,EAAE;MACpD,MAAM,IAAIsC,KAAK,CACb,aAAa7B,IAAI,6BAA6BT,IAAI,gCAAgC,GAChF,sFAAsF,GACtF,qFACJ,CAAC;IACH;EACF;EAEA,IAAI;IACiC;MACjC6D,eAAe,CAACG,GAAG,CAAChE,IAAI,CAAC;IAC3B;IAYO;MACL,OAAO,OAAO,IAAAiE,oBAAe,EAC3BjE,IAAI,EACJG,MAAM,EACN,qDAAqDM,IAAI,IAAI,GAC3D,4DAA4D,GAC5D,iEAAiE,EACnE,4BAA4BA,IAAI,kCAAkC,GAChE,4DAA4D,EAM9D,IACF,CAAC;IACH;EACF,CAAC,CAAC,OAAOyD,GAAG,EAAE;IACZA,GAAG,CAAChD,OAAO,GAAG,YAAYgD,GAAG,CAAChD,OAAO,uBAAuBlB,IAAI,GAAG;IACnE,MAAMkE,GAAG;EACX,CAAC,SAAS;IAC2B;MACjCL,eAAe,CAACM,MAAM,CAACnE,IAAI,CAAC;IAC9B;EACF;AACF;AAAC","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_debug","data","require","_path","_async","_moduleTypes","_url","_importMetaResolve","_fs","debug","buildDebug","EXACT_RE","BABEL_PLUGIN_PREFIX_RE","BABEL_PRESET_PREFIX_RE","BABEL_PLUGIN_ORG_RE","BABEL_PRESET_ORG_RE","OTHER_PLUGIN_ORG_RE","OTHER_PRESET_ORG_RE","OTHER_ORG_DEFAULT_RE","resolvePlugin","exports","resolveStandardizedName","bind","resolvePreset","loadPlugin","name","dirname","filepath","loader","isAsync","value","requireModule","loadPreset","standardizeName","type","path","isAbsolute","isPreset","replace","resolveAlternativesHelper","standardizedName","error","code","message","oppositeType","transformName","tryRequireResolve","id","v","w","split","process","versions","node","resolve","r","paths","b","M","f","_findPath","_nodeModulePaths","concat","Error","tryImportMetaResolve","options","importMetaResolve","resolveStandardizedNameForRequire","it","res","next","done","resolveStandardizedNameForImport","parentUrl","pathToFileURL","join","href","fileURLToPath","allowAsync","supportsESM","resolved","existsSync","Object","assign","e","e2","LOADING_MODULES","Set","has","add","loadCodeDefault","err","delete"],"sources":["../../../src/config/files/plugins.ts"],"sourcesContent":["/**\n * This file handles all logic for converting string-based configuration references into loaded objects.\n */\n\nimport buildDebug from \"debug\";\nimport path from \"path\";\nimport type { Handler } from \"gensync\";\nimport { isAsync } from \"../../gensync-utils/async.ts\";\nimport loadCodeDefault, { supportsESM } from \"./module-types.ts\";\nimport { fileURLToPath, pathToFileURL } from \"url\";\n\nimport { resolve as importMetaResolve } from \"../../vendor/import-meta-resolve.js\";\n\nimport { createRequire } from \"module\";\nimport { existsSync } from \"fs\";\nconst require = createRequire(import.meta.url);\n\nconst debug = buildDebug(\"babel:config:loading:files:plugins\");\n\nconst EXACT_RE = /^module:/;\nconst BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-plugin-)/;\nconst BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-preset-)/;\nconst BABEL_PLUGIN_ORG_RE = /^(@babel\\/)(?!plugin-|[^/]+\\/)/;\nconst BABEL_PRESET_ORG_RE = /^(@babel\\/)(?!preset-|[^/]+\\/)/;\nconst OTHER_PLUGIN_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-plugin(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_PRESET_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-preset(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;\n\nexport const resolvePlugin = resolveStandardizedName.bind(null, \"plugin\");\nexport const resolvePreset = resolveStandardizedName.bind(null, \"preset\");\n\nexport function* loadPlugin(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePlugin(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"plugin\", loader, filepath);\n debug(\"Loaded plugin %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nexport function* loadPreset(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePreset(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"preset\", loader, filepath);\n\n debug(\"Loaded preset %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nfunction standardizeName(type: \"plugin\" | \"preset\", name: string) {\n // Let absolute and relative paths through.\n if (path.isAbsolute(name)) return name;\n\n const isPreset = type === \"preset\";\n\n return (\n name\n // foo -> babel-preset-foo\n .replace(\n isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE,\n `babel-${type}-`,\n )\n // @babel/es2015 -> @babel/preset-es2015\n .replace(\n isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE,\n `$1${type}-`,\n )\n // @foo/mypreset -> @foo/babel-preset-mypreset\n .replace(\n isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE,\n `$1babel-${type}-`,\n )\n // @foo -> @foo/babel-preset\n .replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`)\n // module:mypreset -> mypreset\n .replace(EXACT_RE, \"\")\n );\n}\n\ntype Result<T> = { error: Error; value: null } | { error: null; value: T };\n\nfunction* resolveAlternativesHelper(\n type: \"plugin\" | \"preset\",\n name: string,\n): Iterator<string, string, Result<string>> {\n const standardizedName = standardizeName(type, name);\n const { error, value } = yield standardizedName;\n if (!error) return value;\n\n // @ts-expect-error code may not index error\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n if (standardizedName !== name && !(yield name).error) {\n error.message += `\\n- If you want to resolve \"${name}\", use \"module:${name}\"`;\n }\n\n if (!(yield standardizeName(type, \"@babel/\" + name)).error) {\n error.message += `\\n- Did you mean \"@babel/${name}\"?`;\n }\n\n const oppositeType = type === \"preset\" ? \"plugin\" : \"preset\";\n if (!(yield standardizeName(oppositeType, name)).error) {\n error.message += `\\n- Did you accidentally pass a ${oppositeType} as a ${type}?`;\n }\n\n if (type === \"plugin\") {\n const transformName = standardizedName.replace(\"-proposal-\", \"-transform-\");\n if (transformName !== standardizedName && !(yield transformName).error) {\n error.message += `\\n- Did you mean \"${transformName}\"?`;\n }\n }\n\n error.message += `\\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n`;\n\n throw error;\n}\n\nfunction tryRequireResolve(\n id: string,\n dirname: string | undefined,\n): Result<string> {\n try {\n if (dirname) {\n return { error: null, value: require.resolve(id, { paths: [dirname] }) };\n } else {\n return { error: null, value: require.resolve(id) };\n }\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction tryImportMetaResolve(\n id: Parameters<typeof importMetaResolve>[0],\n options: Parameters<typeof importMetaResolve>[1],\n): Result<string> {\n try {\n return { error: null, value: importMetaResolve(id, options) };\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction resolveStandardizedNameForRequire(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryRequireResolve(res.value, dirname));\n }\n return { loader: \"require\" as const, filepath: res.value };\n}\nfunction resolveStandardizedNameForImport(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const parentUrl = pathToFileURL(\n path.join(dirname, \"./babel-virtual-resolve-base.js\"),\n ).href;\n\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryImportMetaResolve(res.value, parentUrl));\n }\n return { loader: \"auto\" as const, filepath: fileURLToPath(res.value) };\n}\n\nfunction resolveStandardizedName(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n allowAsync: boolean,\n) {\n if (!supportsESM || !allowAsync) {\n return resolveStandardizedNameForRequire(type, name, dirname);\n }\n\n try {\n const resolved = resolveStandardizedNameForImport(type, name, dirname);\n // import-meta-resolve 4.0 does not throw if the module is not found.\n if (!existsSync(resolved.filepath)) {\n throw Object.assign(\n new Error(`Could not resolve \"${name}\" in file ${dirname}.`),\n { type: \"MODULE_NOT_FOUND\" },\n );\n }\n return resolved;\n } catch (e) {\n try {\n return resolveStandardizedNameForRequire(type, name, dirname);\n } catch (e2) {\n if (e.type === \"MODULE_NOT_FOUND\") throw e;\n if (e2.type === \"MODULE_NOT_FOUND\") throw e2;\n throw e;\n }\n }\n}\n\nif (!process.env.BABEL_8_BREAKING) {\n // eslint-disable-next-line no-var\n var LOADING_MODULES = new Set();\n}\nfunction* requireModule(\n type: string,\n loader: \"require\" | \"auto\",\n name: string,\n): Handler<unknown> {\n if (!process.env.BABEL_8_BREAKING) {\n if (!(yield* isAsync()) && LOADING_MODULES.has(name)) {\n throw new Error(\n `Reentrant ${type} detected trying to load \"${name}\". This module is not ignored ` +\n \"and is trying to load itself while compiling itself, leading to a dependency cycle. \" +\n 'We recommend adding it to your \"ignore\" list in your babelrc, or to a .babelignore.',\n );\n }\n }\n\n try {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.add(name);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return yield* loadCodeDefault(\n name,\n loader,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n `You appear to be using a ${type} that contains top-level await, ` +\n \"which is only supported when running Babel asynchronously.\",\n );\n } else {\n return yield* loadCodeDefault(\n name,\n loader,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n `You appear to be using a ${type} that contains top-level await, ` +\n \"which is only supported when running Babel asynchronously.\",\n // For backward compatibility, we need to support malformed presets\n // defined as separate named exports rather than a single default\n // export.\n // See packages/babel-core/test/fixtures/option-manager/presets/es2015_named.js\n // @ts-ignore(Babel 7 vs Babel 8) This param has been removed\n true,\n );\n }\n } catch (err) {\n err.message = `[BABEL]: ${err.message} (While processing: ${name})`;\n throw err;\n } finally {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.delete(name);\n }\n }\n}\n"],"mappings":";;;;;;;;AAIA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAG,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,SAAAI,KAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,IAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAM,kBAAA,GAAAL,OAAA;AAEAA,OAAA;AACA,SAAAM,IAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,GAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,MAAMQ,KAAK,GAAGC,OAASA,CAAC,CAAC,oCAAoC,CAAC;AAE9D,MAAMC,QAAQ,GAAG,UAAU;AAC3B,MAAMC,sBAAsB,GAAG,sCAAsC;AACrE,MAAMC,sBAAsB,GAAG,sCAAsC;AACrE,MAAMC,mBAAmB,GAAG,gCAAgC;AAC5D,MAAMC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EjC,IAAIE,eAAe,GAAG,IAAIC,GAAG,CAAC,CAAC;AACjC;AACA,UAAUxD,aAAaA,CACrBG,IAAY,EACZN,MAA0B,EAC1BH,IAAY,EACM;EACiB;IACjC,IAAI,EAAE,OAAO,IAAAI,cAAO,EAAC,CAAC,CAAC,IAAIyD,eAAe,CAACE,GAAG,CAAC/D,IAAI,CAAC,EAAE;MACpD,MAAM,IAAIsC,KAAK,CACb,aAAa7B,IAAI,6BAA6BT,IAAI,gCAAgC,GAChF,sFAAsF,GACtF,qFACJ,CAAC;IACH;EACF;EAEA,IAAI;IACiC;MACjC6D,eAAe,CAACG,GAAG,CAAChE,IAAI,CAAC;IAC3B;IAYO;MACL,OAAO,OAAO,IAAAiE,oBAAe,EAC3BjE,IAAI,EACJG,MAAM,EACN,qDAAqDM,IAAI,IAAI,GAC3D,4DAA4D,GAC5D,iEAAiE,EACnE,4BAA4BA,IAAI,kCAAkC,GAChE,4DAA4D,EAM9D,IACF,CAAC;IACH;EACF,CAAC,CAAC,OAAOyD,GAAG,EAAE;IACZA,GAAG,CAAChD,OAAO,GAAG,YAAYgD,GAAG,CAAChD,OAAO,uBAAuBlB,IAAI,GAAG;IACnE,MAAMkE,GAAG;EACX,CAAC,SAAS;IAC2B;MACjCL,eAAe,CAACM,MAAM,CAACnE,IAAI,CAAC;IAC9B;EACF;AACF;AAAC","ignoreList":[]}
|
@@ -21,7 +21,7 @@ var _options = require("./validation/options.js");
|
|
21
21
|
var _index = require("./files/index.js");
|
22
22
|
var _resolveTargets = require("./resolve-targets.js");
|
23
23
|
const _excluded = ["showIgnoredFiles"];
|
24
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
24
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
25
25
|
function resolveRootMode(rootDir, rootMode) {
|
26
26
|
switch (rootMode) {
|
27
27
|
case "root":
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_path","data","require","_plugin","_util","_item","_configChain","_environment","_options","_index","_resolveTargets","_excluded","_objectWithoutPropertiesLoose","r","e","t","n","hasOwnProperty","call","includes","resolveRootMode","rootDir","rootMode","upwardRootDir","findConfigUpwards","Object","assign","Error","ROOT_CONFIG_FILENAMES","join","code","dirname","loadPrivatePartialConfig","inputOpts","Array","isArray","args","validate","envName","getEnv","cwd","root","caller","cloneInputAst","absoluteCwd","path","resolve","absoluteRootDir","filename","undefined","showConfigPath","resolveShowConfigPath","context","showConfig","configChain","buildRootChain","merged","assumptions","options","forEach","opts","mergeOptions","targets","resolveTargets","babelrc","configFile","browserslistConfigFile","passPerPreset","plugins","map","descriptor","createItemFromDescriptor","presets","fileHandling","ignore","config","files","loadPartialConfig","showIgnoredFiles","_opts","result","item","value","Plugin","PartialConfig","filepath","constructor","babelignore","freeze","hasFilesystemConfig","prototype"],"sources":["../../src/config/partial.ts"],"sourcesContent":["import path from \"path\";\nimport type { Handler } from \"gensync\";\nimport Plugin from \"./plugin.ts\";\nimport { mergeOptions } from \"./util.ts\";\nimport { createItemFromDescriptor } from \"./item.ts\";\nimport { buildRootChain } from \"./config-chain.ts\";\nimport type { ConfigContext, FileHandling } from \"./config-chain.ts\";\nimport { getEnv } from \"./helpers/environment.ts\";\nimport { validate } from \"./validation/options.ts\";\n\nimport type {\n ValidatedOptions,\n NormalizedOptions,\n RootMode,\n InputOptions,\n} from \"./validation/options.ts\";\n\nimport {\n findConfigUpwards,\n resolveShowConfigPath,\n ROOT_CONFIG_FILENAMES,\n} from \"./files/index.ts\";\nimport type { ConfigFile, IgnoreFile } from \"./files/index.ts\";\nimport { resolveTargets } from \"./resolve-targets.ts\";\n\nfunction resolveRootMode(rootDir: string, rootMode: RootMode): string {\n switch (rootMode) {\n case \"root\":\n return rootDir;\n\n case \"upward-optional\": {\n const upwardRootDir = findConfigUpwards(rootDir);\n return upwardRootDir === null ? rootDir : upwardRootDir;\n }\n\n case \"upward\": {\n const upwardRootDir = findConfigUpwards(rootDir);\n if (upwardRootDir !== null) return upwardRootDir;\n\n throw Object.assign(\n new Error(\n `Babel was run with rootMode:\"upward\" but a root could not ` +\n `be found when searching upward from \"${rootDir}\".\\n` +\n `One of the following config files must be in the directory tree: ` +\n `\"${ROOT_CONFIG_FILENAMES.join(\", \")}\".`,\n ) as any,\n {\n code: \"BABEL_ROOT_NOT_FOUND\",\n dirname: rootDir,\n },\n );\n }\n default:\n throw new Error(`Assertion failure - unknown rootMode value.`);\n }\n}\n\nexport type PrivPartialConfig = {\n showIgnoredFiles?: boolean;\n options: NormalizedOptions;\n context: ConfigContext;\n babelrc: ConfigFile | void;\n config: ConfigFile | void;\n ignore: IgnoreFile | void;\n fileHandling: FileHandling;\n files: Set<string>;\n};\n\nexport default function* loadPrivatePartialConfig(\n inputOpts: InputOptions,\n): Handler<PrivPartialConfig | null> {\n if (\n inputOpts != null &&\n (typeof inputOpts !== \"object\" || Array.isArray(inputOpts))\n ) {\n throw new Error(\"Babel options must be an object, null, or undefined\");\n }\n\n const args = inputOpts ? validate(\"arguments\", inputOpts) : {};\n\n const {\n envName = getEnv(),\n cwd = \".\",\n root: rootDir = \".\",\n rootMode = \"root\",\n caller,\n cloneInputAst = true,\n } = args;\n const absoluteCwd = path.resolve(cwd);\n const absoluteRootDir = resolveRootMode(\n path.resolve(absoluteCwd, rootDir),\n rootMode,\n );\n\n const filename =\n typeof args.filename === \"string\"\n ? path.resolve(cwd, args.filename)\n : undefined;\n\n const showConfigPath = yield* resolveShowConfigPath(absoluteCwd);\n\n const context: ConfigContext = {\n filename,\n cwd: absoluteCwd,\n root: absoluteRootDir,\n envName,\n caller,\n showConfig: showConfigPath === filename,\n };\n\n const configChain = yield* buildRootChain(args, context);\n if (!configChain) return null;\n\n const merged: ValidatedOptions = {\n assumptions: {},\n };\n configChain.options.forEach(opts => {\n mergeOptions(merged as any, opts);\n });\n\n const options: NormalizedOptions = {\n ...merged,\n targets: resolveTargets(merged, absoluteRootDir),\n\n // Tack the passes onto the object itself so that, if this object is\n // passed back to Babel a second time, it will be in the right structure\n // to not change behavior.\n cloneInputAst,\n babelrc: false,\n configFile: false,\n browserslistConfigFile: false,\n passPerPreset: false,\n envName: context.envName,\n cwd: context.cwd,\n root: context.root,\n rootMode: \"root\",\n filename:\n typeof context.filename === \"string\" ? context.filename : undefined,\n\n plugins: configChain.plugins.map(descriptor =>\n createItemFromDescriptor(descriptor),\n ),\n presets: configChain.presets.map(descriptor =>\n createItemFromDescriptor(descriptor),\n ),\n };\n\n return {\n options,\n context,\n fileHandling: configChain.fileHandling,\n ignore: configChain.ignore,\n babelrc: configChain.babelrc,\n config: configChain.config,\n files: configChain.files,\n };\n}\n\nexport function* loadPartialConfig(\n opts?: InputOptions,\n): Handler<PartialConfig | null> {\n let showIgnoredFiles = false;\n // We only extract showIgnoredFiles if opts is an object, so that\n // loadPrivatePartialConfig can throw the appropriate error if it's not.\n if (typeof opts === \"object\" && opts !== null && !Array.isArray(opts)) {\n ({ showIgnoredFiles, ...opts } = opts);\n }\n\n const result: PrivPartialConfig | undefined | null =\n yield* loadPrivatePartialConfig(opts);\n if (!result) return null;\n\n const { options, babelrc, ignore, config, fileHandling, files } = result;\n\n if (fileHandling === \"ignored\" && !showIgnoredFiles) {\n return null;\n }\n\n (options.plugins || []).forEach(item => {\n // @ts-expect-error todo(flow->ts): better type annotation for `item.value`\n if (item.value instanceof Plugin) {\n throw new Error(\n \"Passing cached plugin instances is not supported in \" +\n \"babel.loadPartialConfig()\",\n );\n }\n });\n\n return new PartialConfig(\n options,\n babelrc ? babelrc.filepath : undefined,\n ignore ? ignore.filepath : undefined,\n config ? config.filepath : undefined,\n fileHandling,\n files,\n );\n}\n\nexport type { PartialConfig };\n\nclass PartialConfig {\n /**\n * These properties are public, so any changes to them should be considered\n * a breaking change to Babel's API.\n */\n options: NormalizedOptions;\n babelrc: string | void;\n babelignore: string | void;\n config: string | void;\n fileHandling: FileHandling;\n files: Set<string>;\n\n constructor(\n options: NormalizedOptions,\n babelrc: string | void,\n ignore: string | void,\n config: string | void,\n fileHandling: FileHandling,\n files: Set<string>,\n ) {\n this.options = options;\n this.babelignore = ignore;\n this.babelrc = babelrc;\n this.config = config;\n this.fileHandling = fileHandling;\n this.files = files;\n\n // Freeze since this is a public API and it should be extremely obvious that\n // reassigning properties on here does nothing.\n Object.freeze(this);\n }\n\n /**\n * Returns true if there is a config file in the filesystem for this config.\n */\n hasFilesystemConfig(): boolean {\n return this.babelrc !== undefined || this.config !== undefined;\n }\n}\nObject.freeze(PartialConfig.prototype);\n"],"mappings":";;;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAE,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AASA,IAAAO,MAAA,GAAAP,OAAA;AAMA,IAAAQ,eAAA,GAAAR,OAAA;AAAsD,MAAAS,SAAA;AAAA,SAAAC,8BAAAC,CAAA,EAAAC,CAAA,gBAAAD,CAAA,iBAAAE,CAAA,gBAAAC,CAAA,IAAAH,CAAA,SAAAI,cAAA,CAAAC,IAAA,CAAAL,CAAA,EAAAG,CAAA,SAAAF,CAAA,CAAAK,QAAA,CAAAH,CAAA,aAAAD,CAAA,CAAAC,CAAA,IAAAH,CAAA,CAAAG,CAAA,YAAAD,CAAA;AAEtD,SAASK,eAAeA,CAACC,OAAe,EAAEC,QAAkB,EAAU;EACpE,QAAQA,QAAQ;IACd,KAAK,MAAM;MACT,OAAOD,OAAO;IAEhB,KAA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tC,IAAIA,IAAI,CAACC,KAAK,YAAYC,eAAM,EAAE;MAChC,MAAM,IAAIxD,KAAK,CACb,sDAAsD,GACpD,2BACJ,CAAC;IACH;EACF,CAAC,CAAC;EAEF,OAAO,IAAIyD,aAAa,CACtB1B,OAAO,EACPM,OAAO,GAAGA,OAAO,CAACqB,QAAQ,GAAGpC,SAAS,EACtCyB,MAAM,GAAGA,MAAM,CAACW,QAAQ,GAAGpC,SAAS,EACpC0B,MAAM,GAAGA,MAAM,CAACU,QAAQ,GAAGpC,SAAS,EACpCwB,YAAY,EACZG,KACF,CAAC;AACH;AAIA,MAAMQ,aAAa,CAAC;EAYlBE,WAAWA,CACT5B,OAA0B,EAC1BM,OAAsB,EACtBU,MAAqB,EACrBC,MAAqB,EACrBF,YAA0B,EAC1BG,KAAkB,EAClB;IAAA,KAdFlB,OAAO;IAAA,KACPM,OAAO;IAAA,KACPuB,WAAW;IAAA,KACXZ,MAAM;IAAA,KACNF,YAAY;IAAA,KACZG,KAAK;IAUH,IAAI,CAAClB,OAAO,GAAGA,OAAO;IACtB,IAAI,CAAC6B,WAAW,GAAGb,MAAM;IACzB,IAAI,CAACV,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACW,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACF,YAAY,GAAGA,YAAY;IAChC,IAAI,CAACG,KAAK,GAAGA,KAAK;IAIlBnD,MAAM,CAAC+D,MAAM,CAAC,IAAI,CAAC;EACrB;EAKAC,mBAAmBA,CAAA,EAAY;IAC7B,OAAO,IAAI,CAACzB,OAAO,KAAKf,SAAS,IAAI,IAAI,CAAC0B,MAAM,KAAK1B,SAAS;EAChE;AACF;AACAxB,MAAM,CAAC+D,MAAM,CAACJ,aAAa,CAACM,SAAS,CAAC;AAAC","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_path","data","require","_plugin","_util","_item","_configChain","_environment","_options","_index","_resolveTargets","_excluded","_objectWithoutPropertiesLoose","r","e","t","n","hasOwnProperty","call","indexOf","resolveRootMode","rootDir","rootMode","upwardRootDir","findConfigUpwards","Object","assign","Error","ROOT_CONFIG_FILENAMES","join","code","dirname","loadPrivatePartialConfig","inputOpts","Array","isArray","args","validate","envName","getEnv","cwd","root","caller","cloneInputAst","absoluteCwd","path","resolve","absoluteRootDir","filename","undefined","showConfigPath","resolveShowConfigPath","context","showConfig","configChain","buildRootChain","merged","assumptions","options","forEach","opts","mergeOptions","targets","resolveTargets","babelrc","configFile","browserslistConfigFile","passPerPreset","plugins","map","descriptor","createItemFromDescriptor","presets","fileHandling","ignore","config","files","loadPartialConfig","showIgnoredFiles","_opts","result","item","value","Plugin","PartialConfig","filepath","constructor","babelignore","freeze","hasFilesystemConfig","prototype"],"sources":["../../src/config/partial.ts"],"sourcesContent":["import path from \"path\";\nimport type { Handler } from \"gensync\";\nimport Plugin from \"./plugin.ts\";\nimport { mergeOptions } from \"./util.ts\";\nimport { createItemFromDescriptor } from \"./item.ts\";\nimport { buildRootChain } from \"./config-chain.ts\";\nimport type { ConfigContext, FileHandling } from \"./config-chain.ts\";\nimport { getEnv } from \"./helpers/environment.ts\";\nimport { validate } from \"./validation/options.ts\";\n\nimport type {\n ValidatedOptions,\n NormalizedOptions,\n RootMode,\n InputOptions,\n} from \"./validation/options.ts\";\n\nimport {\n findConfigUpwards,\n resolveShowConfigPath,\n ROOT_CONFIG_FILENAMES,\n} from \"./files/index.ts\";\nimport type { ConfigFile, IgnoreFile } from \"./files/index.ts\";\nimport { resolveTargets } from \"./resolve-targets.ts\";\n\nfunction resolveRootMode(rootDir: string, rootMode: RootMode): string {\n switch (rootMode) {\n case \"root\":\n return rootDir;\n\n case \"upward-optional\": {\n const upwardRootDir = findConfigUpwards(rootDir);\n return upwardRootDir === null ? rootDir : upwardRootDir;\n }\n\n case \"upward\": {\n const upwardRootDir = findConfigUpwards(rootDir);\n if (upwardRootDir !== null) return upwardRootDir;\n\n throw Object.assign(\n new Error(\n `Babel was run with rootMode:\"upward\" but a root could not ` +\n `be found when searching upward from \"${rootDir}\".\\n` +\n `One of the following config files must be in the directory tree: ` +\n `\"${ROOT_CONFIG_FILENAMES.join(\", \")}\".`,\n ) as any,\n {\n code: \"BABEL_ROOT_NOT_FOUND\",\n dirname: rootDir,\n },\n );\n }\n default:\n throw new Error(`Assertion failure - unknown rootMode value.`);\n }\n}\n\nexport type PrivPartialConfig = {\n showIgnoredFiles?: boolean;\n options: NormalizedOptions;\n context: ConfigContext;\n babelrc: ConfigFile | void;\n config: ConfigFile | void;\n ignore: IgnoreFile | void;\n fileHandling: FileHandling;\n files: Set<string>;\n};\n\nexport default function* loadPrivatePartialConfig(\n inputOpts: InputOptions,\n): Handler<PrivPartialConfig | null> {\n if (\n inputOpts != null &&\n (typeof inputOpts !== \"object\" || Array.isArray(inputOpts))\n ) {\n throw new Error(\"Babel options must be an object, null, or undefined\");\n }\n\n const args = inputOpts ? validate(\"arguments\", inputOpts) : {};\n\n const {\n envName = getEnv(),\n cwd = \".\",\n root: rootDir = \".\",\n rootMode = \"root\",\n caller,\n cloneInputAst = true,\n } = args;\n const absoluteCwd = path.resolve(cwd);\n const absoluteRootDir = resolveRootMode(\n path.resolve(absoluteCwd, rootDir),\n rootMode,\n );\n\n const filename =\n typeof args.filename === \"string\"\n ? path.resolve(cwd, args.filename)\n : undefined;\n\n const showConfigPath = yield* resolveShowConfigPath(absoluteCwd);\n\n const context: ConfigContext = {\n filename,\n cwd: absoluteCwd,\n root: absoluteRootDir,\n envName,\n caller,\n showConfig: showConfigPath === filename,\n };\n\n const configChain = yield* buildRootChain(args, context);\n if (!configChain) return null;\n\n const merged: ValidatedOptions = {\n assumptions: {},\n };\n configChain.options.forEach(opts => {\n mergeOptions(merged as any, opts);\n });\n\n const options: NormalizedOptions = {\n ...merged,\n targets: resolveTargets(merged, absoluteRootDir),\n\n // Tack the passes onto the object itself so that, if this object is\n // passed back to Babel a second time, it will be in the right structure\n // to not change behavior.\n cloneInputAst,\n babelrc: false,\n configFile: false,\n browserslistConfigFile: false,\n passPerPreset: false,\n envName: context.envName,\n cwd: context.cwd,\n root: context.root,\n rootMode: \"root\",\n filename:\n typeof context.filename === \"string\" ? context.filename : undefined,\n\n plugins: configChain.plugins.map(descriptor =>\n createItemFromDescriptor(descriptor),\n ),\n presets: configChain.presets.map(descriptor =>\n createItemFromDescriptor(descriptor),\n ),\n };\n\n return {\n options,\n context,\n fileHandling: configChain.fileHandling,\n ignore: configChain.ignore,\n babelrc: configChain.babelrc,\n config: configChain.config,\n files: configChain.files,\n };\n}\n\nexport function* loadPartialConfig(\n opts?: InputOptions,\n): Handler<PartialConfig | null> {\n let showIgnoredFiles = false;\n // We only extract showIgnoredFiles if opts is an object, so that\n // loadPrivatePartialConfig can throw the appropriate error if it's not.\n if (typeof opts === \"object\" && opts !== null && !Array.isArray(opts)) {\n ({ showIgnoredFiles, ...opts } = opts);\n }\n\n const result: PrivPartialConfig | undefined | null =\n yield* loadPrivatePartialConfig(opts);\n if (!result) return null;\n\n const { options, babelrc, ignore, config, fileHandling, files } = result;\n\n if (fileHandling === \"ignored\" && !showIgnoredFiles) {\n return null;\n }\n\n (options.plugins || []).forEach(item => {\n // @ts-expect-error todo(flow->ts): better type annotation for `item.value`\n if (item.value instanceof Plugin) {\n throw new Error(\n \"Passing cached plugin instances is not supported in \" +\n \"babel.loadPartialConfig()\",\n );\n }\n });\n\n return new PartialConfig(\n options,\n babelrc ? babelrc.filepath : undefined,\n ignore ? ignore.filepath : undefined,\n config ? config.filepath : undefined,\n fileHandling,\n files,\n );\n}\n\nexport type { PartialConfig };\n\nclass PartialConfig {\n /**\n * These properties are public, so any changes to them should be considered\n * a breaking change to Babel's API.\n */\n options: NormalizedOptions;\n babelrc: string | void;\n babelignore: string | void;\n config: string | void;\n fileHandling: FileHandling;\n files: Set<string>;\n\n constructor(\n options: NormalizedOptions,\n babelrc: string | void,\n ignore: string | void,\n config: string | void,\n fileHandling: FileHandling,\n files: Set<string>,\n ) {\n this.options = options;\n this.babelignore = ignore;\n this.babelrc = babelrc;\n this.config = config;\n this.fileHandling = fileHandling;\n this.files = files;\n\n // Freeze since this is a public API and it should be extremely obvious that\n // reassigning properties on here does nothing.\n Object.freeze(this);\n }\n\n /**\n * Returns true if there is a config file in the filesystem for this config.\n */\n hasFilesystemConfig(): boolean {\n return this.babelrc !== undefined || this.config !== undefined;\n }\n}\nObject.freeze(PartialConfig.prototype);\n"],"mappings":";;;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAE,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AASA,IAAAO,MAAA,GAAAP,OAAA;AAMA,IAAAQ,eAAA,GAAAR,OAAA;AAAsD,MAAAS,SAAA;AAAA,SAAAC,8BAAAC,CAAA,EAAAC,CAAA,gBAAAD,CAAA,iBAAAE,CAAA,gBAAAC,CAAA,IAAAH,CAAA,SAAAI,cAAA,CAAAC,IAAA,CAAAL,CAAA,EAAAG,CAAA,gBAAAF,CAAA,CAAAK,OAAA,CAAAH,CAAA,aAAAD,CAAA,CAAAC,CAAA,IAAAH,CAAA,CAAAG,CAAA,YAAAD,CAAA;AAEtD,SAASK,eAAeA,CAACC,OAAe,EAAEC,QAAkB,EAAU;EACpE,QAAQA,QAAQ;IACd,KAAK,MAAM;MACT,OAAOD,OAAO;IAEhB,KAAK,iBAAiB;MAAE;QACtB,MAAME,aAAa,GAAG,IAAAC,wBAAiB,EAACH,OAAO,CAAC;QAChD,OAAOE,aAAa,KAAK,IAAI,GAAGF,OAAO,GAAGE,aAAa;MACzD;IAEA,KAAK,QAAQ;MAAE;QACb,MAAMA,aAAa,GAAG,IAAAC,wBAAiB,E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AQ,GAAGpC,SAAS,EACtCyB,MAAM,GAAGA,MAAM,CAACW,QAAQ,GAAGpC,SAAS,EACpC0B,MAAM,GAAGA,MAAM,CAACU,QAAQ,GAAGpC,SAAS,EACpCwB,YAAY,EACZG,KACF,CAAC;AACH;AAIA,MAAMQ,aAAa,CAAC;EAYlBE,WAAWA,CACT5B,OAA0B,EAC1BM,OAAsB,EACtBU,MAAqB,EACrBC,MAAqB,EACrBF,YAA0B,EAC1BG,KAAkB,EAClB;IAAA,KAdFlB,OAAO;IAAA,KACPM,OAAO;IAAA,KACPuB,WAAW;IAAA,KACXZ,MAAM;IAAA,KACNF,YAAY;IAAA,KACZG,KAAK;IAUH,IAAI,CAAClB,OAAO,GAAGA,OAAO;IACtB,IAAI,CAAC6B,WAAW,GAAGb,MAAM;IACzB,IAAI,CAACV,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACW,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACF,YAAY,GAAGA,YAAY;IAChC,IAAI,CAACG,KAAK,GAAGA,KAAK;IAIlBnD,MAAM,CAAC+D,MAAM,CAAC,IAAI,CAAC;EACrB;EAKAC,mBAAmBA,CAAA,EAAY;IAC7B,OAAO,IAAI,CAACzB,OAAO,KAAKf,SAAS,IAAI,IAAI,CAAC0B,MAAM,KAAK1B,SAAS;EAChE;AACF;AACAxB,MAAM,CAAC+D,MAAM,CAACJ,aAAa,CAACM,SAAS,CAAC;AAAC","ignoreList":[]}
|
@@ -211,9 +211,8 @@ var _transform = require("./transform.js");
|
|
211
211
|
var _transformFile = require("./transform-file.js");
|
212
212
|
var _transformAst = require("./transform-ast.js");
|
213
213
|
var _parse = require("./parse.js");
|
214
|
-
var thisFile = require("./index.js");
|
215
214
|
;
|
216
|
-
const version = exports.version = "7.26.
|
215
|
+
const version = exports.version = "7.26.10";
|
217
216
|
const resolvePlugin = (name, dirname) => resolvers.resolvePlugin(name, dirname, false).filepath;
|
218
217
|
exports.resolvePlugin = resolvePlugin;
|
219
218
|
const resolvePreset = (name, dirname) => resolvers.resolvePreset(name, dirname, false).filepath;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_file","require","_buildExternalHelpers","resolvers","_environment","_types","data","Object","defineProperty","exports","enumerable","get","_parser","_traverse","_template","_index2","_transform","_transformFile","_transformAst","_parse","
|
1
|
+
{"version":3,"names":["_file","require","_buildExternalHelpers","resolvers","_environment","_types","data","Object","defineProperty","exports","enumerable","get","_parser","_traverse","_template","_index2","_transform","_transformFile","_transformAst","_parse","version","resolvePlugin","name","dirname","filepath","resolvePreset","DEFAULT_EXTENSIONS","freeze","OptionManager","init","opts","loadOptionsSync","Plugin","alias","Error","types","traverse","tokTypes","template"],"sources":["../src/index.ts"],"sourcesContent":["if (!process.env.IS_PUBLISH && !USE_ESM && process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"BABEL_8_BREAKING is only supported in ESM. Please run `make use-esm`.\",\n );\n}\n\nexport const version = PACKAGE_JSON.version;\n\nexport { default as File } from \"./transformation/file/file.ts\";\nexport type { default as PluginPass } from \"./transformation/plugin-pass.ts\";\nexport { default as buildExternalHelpers } from \"./tools/build-external-helpers.ts\";\n\nimport * as resolvers from \"./config/files/index.ts\";\n// For backwards-compatibility, we expose the resolvers\n// with the old API.\nexport const resolvePlugin = (name: string, dirname: string) =>\n resolvers.resolvePlugin(name, dirname, false).filepath;\nexport const resolvePreset = (name: string, dirname: string) =>\n resolvers.resolvePreset(name, dirname, false).filepath;\n\nexport { getEnv } from \"./config/helpers/environment.ts\";\n\n// NOTE: Lazy re-exports aren't detected by the Node.js CJS-ESM interop.\n// These are handled by pluginInjectNodeReexportsHints in our babel.config.js\n// so that they can work well.\nexport * as types from \"@babel/types\";\nexport { tokTypes } from \"@babel/parser\";\nexport { default as traverse } from \"@babel/traverse\";\nexport { default as template } from \"@babel/template\";\n\n// rollup-plugin-dts assumes that all re-exported types are also valid values\n// Visitor is only a type, so we need to use this workaround to prevent\n// rollup-plugin-dts from breaking it.\n// TODO: Figure out how to fix this upstream.\nexport type { NodePath, Scope } from \"@babel/traverse\";\nexport type Visitor<S = unknown> = import(\"@babel/traverse\").Visitor<S>;\n\nexport {\n createConfigItem,\n createConfigItemAsync,\n createConfigItemSync,\n} from \"./config/index.ts\";\n\nexport {\n loadOptions,\n loadOptionsAsync,\n loadPartialConfig,\n loadPartialConfigAsync,\n loadPartialConfigSync,\n} from \"./config/index.ts\";\nimport { loadOptionsSync } from \"./config/index.ts\";\nexport { loadOptionsSync };\n\nexport type {\n CallerMetadata,\n ConfigItem,\n InputOptions,\n PluginAPI,\n PluginObject,\n PresetAPI,\n PresetObject,\n} from \"./config/index.ts\";\n\nexport {\n type FileResult,\n transform,\n transformAsync,\n transformSync,\n} from \"./transform.ts\";\nexport {\n transformFile,\n transformFileAsync,\n transformFileSync,\n} from \"./transform-file.ts\";\nexport {\n transformFromAst,\n transformFromAstAsync,\n transformFromAstSync,\n} from \"./transform-ast.ts\";\nexport { parse, parseAsync, parseSync } from \"./parse.ts\";\n\n/**\n * Recommended set of compilable extensions. Not used in @babel/core directly, but meant as\n * as an easy source for tooling making use of @babel/core.\n */\nexport const DEFAULT_EXTENSIONS = Object.freeze([\n \".js\",\n \".jsx\",\n \".es6\",\n \".es\",\n \".mjs\",\n \".cjs\",\n] as const);\n\nimport Module from \"module\" with { if: \"USE_ESM && !IS_STANDALONE\" };\nimport * as thisFile from \"./index.ts\" with { if: \"USE_ESM && !IS_STANDALONE\" };\nif (USE_ESM && !IS_STANDALONE) {\n // Pass this module to the CJS proxy, so that it can be synchronously accessed.\n const cjsProxy = Module.createRequire(import.meta.url)(\"../cjs-proxy.cjs\");\n cjsProxy[\"__ initialize @babel/core cjs proxy __\"] = thisFile;\n}\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n // For easier backward-compatibility, provide an API like the one we exposed in Babel 6.\n // eslint-disable-next-line no-restricted-globals\n exports.OptionManager = class OptionManager {\n init(opts: any) {\n return loadOptionsSync(opts);\n }\n };\n\n // eslint-disable-next-line no-restricted-globals\n exports.Plugin = function Plugin(alias: string) {\n throw new Error(\n `The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`,\n );\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,qBAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AAQA,IAAAG,YAAA,GAAAH,OAAA;AAAyD,SAAAI,OAAA;EAAA,MAAAC,IAAA,GAAAL,OAAA;EAAAI,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAAC,MAAA,CAAAC,cAAA,KAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,MAAA;EAAA;AAAA;AAMzD,SAAAO,QAAA;EAAA,MAAAN,IAAA,GAAAL,OAAA;EAAAW,OAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,UAAA;EAAA,MAAAP,IAAA,GAAAL,OAAA;EAAAY,SAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,UAAA;EAAA,MAAAR,IAAA,GAAAL,OAAA;EAAAa,SAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AASA,IAAAS,OAAA,GAAAd,OAAA;AA0BA,IAAAe,UAAA,GAAAf,OAAA;AAMA,IAAAgB,cAAA,GAAAhB,OAAA;AAKA,IAAAiB,aAAA,GAAAjB,OAAA;AAKA,IAAAkB,MAAA,GAAAlB,OAAA;AAA0D;AAzEnD,MAAMmB,OAAO,GAAAX,OAAA,CAAAW,OAAA,YAAuB;AASpC,MAAMC,aAAa,GAAGA,CAACC,IAAY,EAAEC,OAAe,KACzDpB,SAAS,CAACkB,aAAa,CAACC,IAAI,EAAEC,OAAO,EAAE,KAAK,CAAC,CAACC,QAAQ;AAACf,OAAA,CAAAY,aAAA,GAAAA,aAAA;AAClD,MAAMI,aAAa,GAAGA,CAACH,IAAY,EAAEC,OAAe,KACzDpB,SAAS,CAACsB,aAAa,CAACH,IAAI,EAAEC,OAAO,EAAE,KAAK,CAAC,CAACC,QAAQ;AAACf,OAAA,CAAAgB,aAAA,GAAAA,aAAA;AAmElD,MAAMC,kBAAkB,GAAAjB,OAAA,CAAAiB,kBAAA,GAAGnB,MAAM,CAACoB,MAAM,CAAC,CAC9C,KAAK,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,CACE,CAAC;AAAC;AAUmC;EAG7ClB,OAAO,CAACmB,aAAa,GAAG,MAAMA,aAAa,CAAC;IAC1CC,IAAIA,CAACC,IAAS,EAAE;MACd,OAAO,IAAAC,uBAAe,EAACD,IAAI,CAAC;IAC9B;EACF,CAAC;EAGDrB,OAAO,CAACuB,MAAM,GAAG,SAASA,MAAMA,CAACC,KAAa,EAAE;IAC9C,MAAM,IAAIC,KAAK,CACb,QAAQD,KAAK,kEACf,CAAC;EACH,CAAC;AACH;AAAC,MAAAxB,OAAA,CAAA0B,KAAA,GAAA1B,OAAA,CAAA2B,QAAA,GAAA3B,OAAA,CAAA4B,QAAA,GAAA5B,OAAA,CAAA6B,QAAA","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_parser","data","require","_codeFrame","_missingPluginHelper","parser","pluginPasses","parserOpts","highlightCode","filename","code","results","plugins","plugin","parserOverride","ast","parse","undefined","push","length","then","Error","err","message","loc","missingPlugin","codeFrame","codeFrameColumns","start","line","column","generateMissingPluginMessage"],"sources":["../../src/parser/index.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\nimport { parse, type
|
1
|
+
{"version":3,"names":["_parser","data","require","_codeFrame","_missingPluginHelper","parser","pluginPasses","parserOpts","highlightCode","filename","code","results","plugins","plugin","parserOverride","ast","parse","undefined","push","length","then","Error","err","message","loc","missingPlugin","codeFrame","codeFrameColumns","start","line","column","generateMissingPluginMessage"],"sources":["../../src/parser/index.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\nimport { parse, type ParseResult } from \"@babel/parser\";\nimport { codeFrameColumns } from \"@babel/code-frame\";\nimport generateMissingPluginMessage from \"./util/missing-plugin-helper.ts\";\nimport type { PluginPasses } from \"../config/index.ts\";\n\nexport type { ParseResult };\n\nexport default function* parser(\n pluginPasses: PluginPasses,\n { parserOpts, highlightCode = true, filename = \"unknown\" }: any,\n code: string,\n): Handler<ParseResult> {\n try {\n const results = [];\n for (const plugins of pluginPasses) {\n for (const plugin of plugins) {\n const { parserOverride } = plugin;\n if (parserOverride) {\n const ast = parserOverride(code, parserOpts, parse);\n\n if (ast !== undefined) results.push(ast);\n }\n }\n }\n\n if (results.length === 0) {\n return parse(code, parserOpts);\n } else if (results.length === 1) {\n // If we want to allow async parsers\n yield* [];\n if (typeof results[0].then === \"function\") {\n throw new Error(\n `You appear to be using an async parser plugin, ` +\n `which your current version of Babel does not support. ` +\n `If you're using a published plugin, you may need to upgrade ` +\n `your @babel/core version.`,\n );\n }\n return results[0];\n }\n // TODO: Add an error code\n throw new Error(\"More than one plugin attempted to override parsing.\");\n } catch (err) {\n if (err.code === \"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED\") {\n err.message +=\n \"\\nConsider renaming the file to '.mjs', or setting sourceType:module \" +\n \"or sourceType:unambiguous in your Babel config for this file.\";\n // err.code will be changed to BABEL_PARSE_ERROR later.\n }\n\n const { loc, missingPlugin } = err;\n if (loc) {\n const codeFrame = codeFrameColumns(\n code,\n {\n start: {\n line: loc.line,\n column: loc.column + 1,\n },\n },\n {\n highlightCode,\n },\n );\n if (missingPlugin) {\n err.message =\n `${filename}: ` +\n generateMissingPluginMessage(\n missingPlugin[0],\n loc,\n codeFrame,\n filename,\n );\n } else {\n err.message = `${filename}: ${err.message}\\n\\n` + codeFrame;\n }\n err.code = \"BABEL_PARSE_ERROR\";\n }\n throw err;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAG,oBAAA,GAAAF,OAAA;AAKe,UAAUG,MAAMA,CAC7BC,YAA0B,EAC1B;EAAEC,UAAU;EAAEC,aAAa,GAAG,IAAI;EAAEC,QAAQ,GAAG;AAAe,CAAC,EAC/DC,IAAY,EACU;EACtB,IAAI;IACF,MAAMC,OAAO,GAAG,EAAE;IAClB,KAAK,MAAMC,OAAO,IAAIN,YAAY,EAAE;MAClC,KAAK,MAAMO,MAAM,IAAID,OAAO,EAAE;QAC5B,MAAM;UAAEE;QAAe,CAAC,GAAGD,MAAM;QACjC,IAAIC,cAAc,EAAE;UAClB,MAAMC,GAAG,GAAGD,cAAc,CAACJ,IAAI,EAAEH,UAAU,EAAES,eAAK,CAAC;UAEnD,IAAID,GAAG,KAAKE,SAAS,EAAEN,OAAO,CAACO,IAAI,CAACH,GAAG,CAAC;QAC1C;MACF;IACF;IAEA,IAAIJ,OAAO,CAACQ,MAAM,KAAK,CAAC,EAAE;MACxB,OAAO,IAAAH,eAAK,EAACN,IAAI,EAAEH,UAAU,CAAC;IAChC,CAAC,MAAM,IAAII,OAAO,CAACQ,MAAM,KAAK,CAAC,EAAE;MAE/B,OAAO,EAAE;MACT,IAAI,OAAOR,OAAO,CAAC,CAAC,CAAC,CAACS,IAAI,KAAK,UAAU,EAAE;QACzC,MAAM,IAAIC,KAAK,CACb,iDAAiD,GAC/C,wDAAwD,GACxD,8DAA8D,GAC9D,2BACJ,CAAC;MACH;MACA,OAAOV,OAAO,CAAC,CAAC,CAAC;IACnB;IAEA,MAAM,IAAIU,KAAK,CAAC,qDAAqD,CAAC;EACxE,CAAC,CAAC,OAAOC,GAAG,EAAE;IACZ,IAAIA,GAAG,CAACZ,IAAI,KAAK,yCAAyC,EAAE;MAC1DY,GAAG,CAACC,OAAO,IACT,uEAAuE,GACvE,+DAA+D;IAEnE;IAEA,MAAM;MAAEC,GAAG;MAAEC;IAAc,CAAC,GAAGH,GAAG;IAClC,IAAIE,GAAG,EAAE;MACP,MAAME,SAAS,GAAG,IAAAC,6BAAgB,EAChCjB,IAAI,EACJ;QACEkB,KAAK,EAAE;UACLC,IAAI,EAAEL,GAAG,CAACK,IAAI;UACdC,MAAM,EAAEN,GAAG,CAACM,MAAM,GAAG;QACvB;MACF,CAAC,EACD;QACEtB;MACF,CACF,CAAC;MACD,IAAIiB,aAAa,EAAE;QACjBH,GAAG,CAACC,OAAO,GACT,GAAGd,QAAQ,IAAI,GACf,IAAAsB,4BAA4B,EAC1BN,aAAa,CAAC,CAAC,CAAC,EAChBD,GAAG,EACHE,SAAS,EACTjB,QACF,CAAC;MACL,CAAC,MAAM;QACLa,GAAG,CAACC,OAAO,GAAG,GAAGd,QAAQ,KAAKa,GAAG,CAACC,OAAO,MAAM,GAAGG,SAAS;MAC7D;MACAJ,GAAG,CAACZ,IAAI,GAAG,mBAAmB;IAChC;IACA,MAAMY,GAAG;EACX;AACF;AAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["exports","getModuleName","require"],"sources":["../../../src/transformation/file/babel-7-helpers.cjs"],"sourcesContent":["// TODO(Babel 8): Remove this file\n\
|
1
|
+
{"version":3,"names":["exports","getModuleName","require"],"sources":["../../../src/transformation/file/babel-7-helpers.cjs"],"sourcesContent":["// TODO(Babel 8): Remove this file\n\nif (!process.env.BABEL_8_BREAKING) {\n exports.getModuleName = () =>\n require(\"@babel/helper-module-transforms\").getModuleName;\n} else if (process.env.IS_PUBLISH) {\n throw new Error(\n \"Internal Babel error: This file should only be loaded in Babel 7\",\n );\n}\n"],"mappings":"AAEmC;EACjCA,OAAO,CAACC,aAAa,GAAG,MACtBC,OAAO,CAAC,iCAAiC,CAAC,CAACD,aAAa;AAC5D;AAAC","ignoreList":[]}
|
@@ -39,9 +39,7 @@ function _semver() {
|
|
39
39
|
};
|
40
40
|
return data;
|
41
41
|
}
|
42
|
-
var
|
43
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
44
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
42
|
+
var _babel7Helpers = require("./babel-7-helpers.cjs");
|
45
43
|
const {
|
46
44
|
cloneNode,
|
47
45
|
interpreterDirective
|
@@ -205,7 +203,7 @@ exports.default = File;
|
|
205
203
|
};
|
206
204
|
{
|
207
205
|
File.prototype.getModuleName = function getModuleName() {
|
208
|
-
return
|
206
|
+
return _babel7Helpers.getModuleName()(this.opts, this.opts);
|
209
207
|
};
|
210
208
|
}
|
211
209
|
}
|