decidim 0.26.2 → 0.26.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Rakefile +22 -4
- data/docs/antora.yml +1 -1
- data/lib/decidim/gem_manager.rb +23 -4
- data/lib/decidim/version.rb +1 -1
- data/package-lock.json +7 -7
- data/packages/browserslist-config/package.json +1 -1
- data/packages/core/node_modules/@rails/activestorage/CHANGELOG.md +306 -0
- data/packages/core/node_modules/@rails/activestorage/README.md +194 -0
- data/packages/core/node_modules/@rails/activestorage/app/assets/javascripts/activestorage.js +942 -0
- data/packages/core/node_modules/@rails/activestorage/package.json +41 -0
- data/packages/core/node_modules/@rails/activestorage/src/blob_record.js +73 -0
- data/packages/core/node_modules/@rails/activestorage/src/blob_upload.js +35 -0
- data/packages/core/node_modules/@rails/activestorage/src/direct_upload.js +48 -0
- data/packages/core/node_modules/@rails/activestorage/src/direct_upload_controller.js +67 -0
- data/packages/core/node_modules/@rails/activestorage/src/direct_uploads_controller.js +50 -0
- data/packages/core/node_modules/@rails/activestorage/src/file_checksum.js +53 -0
- data/packages/core/node_modules/@rails/activestorage/src/helpers.js +51 -0
- data/packages/core/node_modules/@rails/activestorage/src/index.js +11 -0
- data/packages/core/node_modules/@rails/activestorage/src/ujs.js +86 -0
- data/packages/core/package.json +1 -1
- data/packages/dev/package.json +1 -1
- data/packages/elections/package.json +1 -1
- data/packages/eslint-config/package.json +1 -1
- data/packages/stylelint-config/package.json +1 -1
- data/packages/webpacker/node_modules/@eslint/eslintrc/LICENSE +21 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/README.md +61 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/conf/config-schema.js +79 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/conf/environments.js +203 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +1092 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +4295 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +533 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +523 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +115 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +145 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +238 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/index.js +19 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +225 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/config-array-factory.js +1133 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/flat-compat.js +307 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/index-universal.js +29 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/index.js +56 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/ajv.js +191 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +135 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +325 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +63 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/naming.js +96 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +42 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/lib/shared/types.js +149 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/package.json +81 -0
- data/packages/webpacker/node_modules/@eslint/eslintrc/universal.js +9 -0
- data/packages/webpacker/node_modules/@humanwhocodes/config-array/CHANGELOG.md +71 -0
- data/packages/webpacker/node_modules/@humanwhocodes/config-array/LICENSE +201 -0
- data/packages/webpacker/node_modules/@humanwhocodes/config-array/README.md +301 -0
- data/packages/webpacker/node_modules/@humanwhocodes/config-array/api.js +695 -0
- data/packages/webpacker/node_modules/@humanwhocodes/config-array/package.json +61 -0
- data/packages/webpacker/node_modules/@jest/console/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/console/build/BufferedConsole.d.ts +37 -0
- data/packages/webpacker/node_modules/@jest/console/build/BufferedConsole.js +258 -0
- data/packages/webpacker/node_modules/@jest/console/build/CustomConsole.d.ts +41 -0
- data/packages/webpacker/node_modules/@jest/console/build/CustomConsole.js +240 -0
- data/packages/webpacker/node_modules/@jest/console/build/NullConsole.d.ts +23 -0
- data/packages/webpacker/node_modules/@jest/console/build/NullConsole.js +50 -0
- data/packages/webpacker/node_modules/@jest/console/build/getConsoleOutput.d.ts +10 -0
- data/packages/webpacker/node_modules/@jest/console/build/getConsoleOutput.js +101 -0
- data/packages/webpacker/node_modules/@jest/console/build/index.d.ts +11 -0
- data/packages/webpacker/node_modules/@jest/console/build/index.js +41 -0
- data/packages/webpacker/node_modules/@jest/console/build/types.d.ts +20 -0
- data/packages/webpacker/node_modules/@jest/console/build/types.js +1 -0
- data/packages/webpacker/node_modules/@jest/console/package.json +38 -0
- data/packages/webpacker/node_modules/@jest/core/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/core/README.md +3 -0
- data/packages/webpacker/node_modules/@jest/core/build/FailedTestsCache.d.ts +12 -0
- data/packages/webpacker/node_modules/@jest/core/build/FailedTestsCache.js +59 -0
- data/packages/webpacker/node_modules/@jest/core/build/FailedTestsInteractiveMode.d.ts +31 -0
- data/packages/webpacker/node_modules/@jest/core/build/FailedTestsInteractiveMode.js +262 -0
- data/packages/webpacker/node_modules/@jest/core/build/ReporterDispatcher.d.ts +22 -0
- data/packages/webpacker/node_modules/@jest/core/build/ReporterDispatcher.js +104 -0
- data/packages/webpacker/node_modules/@jest/core/build/SearchSource.d.ts +46 -0
- data/packages/webpacker/node_modules/@jest/core/build/SearchSource.js +490 -0
- data/packages/webpacker/node_modules/@jest/core/build/SnapshotInteractiveMode.d.ts +30 -0
- data/packages/webpacker/node_modules/@jest/core/build/SnapshotInteractiveMode.js +327 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestNamePatternPrompt.d.ts +17 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestNamePatternPrompt.js +86 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestPathPatternPrompt.d.ts +24 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestPathPatternPrompt.js +81 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestScheduler.d.ts +42 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestScheduler.js +570 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestWatcher.d.ts +23 -0
- data/packages/webpacker/node_modules/@jest/core/build/TestWatcher.js +64 -0
- data/packages/webpacker/node_modules/@jest/core/build/assets/jest_logo.png +0 -0
- data/packages/webpacker/node_modules/@jest/core/build/cli/index.d.ts +12 -0
- data/packages/webpacker/node_modules/@jest/core/build/cli/index.js +399 -0
- data/packages/webpacker/node_modules/@jest/core/build/collectHandles.d.ts +10 -0
- data/packages/webpacker/node_modules/@jest/core/build/collectHandles.js +269 -0
- data/packages/webpacker/node_modules/@jest/core/build/getChangedFilesPromise.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/getChangedFilesPromise.js +77 -0
- data/packages/webpacker/node_modules/@jest/core/build/getConfigsOfProjectsToRun.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/getConfigsOfProjectsToRun.js +28 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFound.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFound.js +63 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundFailed.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundFailed.js +51 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundPassWithNoTests.d.ts +7 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundPassWithNoTests.js +30 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundRelatedToChangedFiles.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundRelatedToChangedFiles.js +57 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundVerbose.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestFoundVerbose.js +95 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestsFoundMessage.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/getNoTestsFoundMessage.js +52 -0
- data/packages/webpacker/node_modules/@jest/core/build/getProjectDisplayName.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/getProjectDisplayName.js +23 -0
- data/packages/webpacker/node_modules/@jest/core/build/getProjectNamesMissingWarning.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/getProjectNamesMissingWarning.js +49 -0
- data/packages/webpacker/node_modules/@jest/core/build/getSelectProjectsMessage.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/getSelectProjectsMessage.js +65 -0
- data/packages/webpacker/node_modules/@jest/core/build/jest.d.ts +11 -0
- data/packages/webpacker/node_modules/@jest/core/build/jest.js +49 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/activeFiltersMessage.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/activeFiltersMessage.js +54 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/createContext.d.ts +10 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/createContext.js +35 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/handleDeprecationWarnings.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/handleDeprecationWarnings.js +72 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/isValidPath.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/isValidPath.js +29 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/logDebugMessages.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/logDebugMessages.js +23 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/updateGlobalConfig.d.ts +11 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/updateGlobalConfig.js +121 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/watchPluginsHelpers.d.ts +10 -0
- data/packages/webpacker/node_modules/@jest/core/build/lib/watchPluginsHelpers.js +62 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/FailedTestsInteractive.d.ts +17 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/FailedTestsInteractive.js +135 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/Quit.d.ts +18 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/Quit.js +60 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/TestNamePattern.d.ts +21 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/TestNamePattern.js +91 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/TestPathPattern.d.ts +21 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/TestPathPattern.js +91 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/UpdateSnapshots.d.ts +21 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/UpdateSnapshots.js +70 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/UpdateSnapshotsInteractive.d.ts +20 -0
- data/packages/webpacker/node_modules/@jest/core/build/plugins/UpdateSnapshotsInteractive.js +138 -0
- data/packages/webpacker/node_modules/@jest/core/build/pluralize.d.ts +7 -0
- data/packages/webpacker/node_modules/@jest/core/build/pluralize.js +16 -0
- data/packages/webpacker/node_modules/@jest/core/build/runGlobalHook.d.ts +13 -0
- data/packages/webpacker/node_modules/@jest/core/build/runGlobalHook.js +143 -0
- data/packages/webpacker/node_modules/@jest/core/build/runJest.d.ts +27 -0
- data/packages/webpacker/node_modules/@jest/core/build/runJest.js +423 -0
- data/packages/webpacker/node_modules/@jest/core/build/testSchedulerHelper.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/core/build/testSchedulerHelper.js +51 -0
- data/packages/webpacker/node_modules/@jest/core/build/types.d.ts +39 -0
- data/packages/webpacker/node_modules/@jest/core/build/types.js +1 -0
- data/packages/webpacker/node_modules/@jest/core/build/version.d.ts +7 -0
- data/packages/webpacker/node_modules/@jest/core/build/version.js +19 -0
- data/packages/webpacker/node_modules/@jest/core/build/watch.d.ts +13 -0
- data/packages/webpacker/node_modules/@jest/core/build/watch.js +769 -0
- data/packages/webpacker/node_modules/@jest/core/package.json +103 -0
- data/packages/webpacker/node_modules/@jest/environment/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/environment/build/index.d.ts +267 -0
- data/packages/webpacker/node_modules/@jest/environment/build/index.js +1 -0
- data/packages/webpacker/node_modules/@jest/environment/package.json +32 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/build/index.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/build/index.js +25 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/build/legacyFakeTimers.d.ts +67 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/build/legacyFakeTimers.js +673 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/build/modernFakeTimers.d.ts +34 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/build/modernFakeTimers.js +181 -0
- data/packages/webpacker/node_modules/@jest/fake-timers/package.json +37 -0
- data/packages/webpacker/node_modules/@jest/globals/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/globals/build/index.d.ts +23 -0
- data/packages/webpacker/node_modules/@jest/globals/build/index.js +25 -0
- data/packages/webpacker/node_modules/@jest/globals/package.json +31 -0
- data/packages/webpacker/node_modules/@jest/reporters/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/BaseReporter.d.ts +19 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/BaseReporter.js +65 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/CoverageReporter.d.ts +24 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/CoverageReporter.js +668 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/CoverageWorker.d.ts +17 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/CoverageWorker.js +103 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/DefaultReporter.d.ts +33 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/DefaultReporter.js +254 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/NotifyReporter.d.ts +19 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/NotifyReporter.js +256 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/Status.d.ts +42 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/Status.js +272 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/SummaryReporter.d.ts +22 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/SummaryReporter.js +271 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/VerboseReporter.d.ts +27 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/VerboseReporter.js +226 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/generateEmptyCoverage.d.ts +19 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/generateEmptyCoverage.js +168 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getResultHeader.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getResultHeader.js +104 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getSnapshotStatus.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getSnapshotStatus.js +111 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getSnapshotSummary.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getSnapshotSummary.js +203 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getWatermarks.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/getWatermarks.js +47 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/index.d.ts +27 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/index.js +78 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/types.d.ts +75 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/types.js +1 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/utils.d.ts +18 -0
- data/packages/webpacker/node_modules/@jest/reporters/build/utils.js +435 -0
- data/packages/webpacker/node_modules/@jest/reporters/package.json +80 -0
- data/packages/webpacker/node_modules/@jest/source-map/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/source-map/build/getCallsite.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/source-map/build/getCallsite.js +108 -0
- data/packages/webpacker/node_modules/@jest/source-map/build/index.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/source-map/build/index.js +17 -0
- data/packages/webpacker/node_modules/@jest/source-map/build/types.d.ts +7 -0
- data/packages/webpacker/node_modules/@jest/source-map/build/types.js +1 -0
- data/packages/webpacker/node_modules/@jest/source-map/package.json +34 -0
- data/packages/webpacker/node_modules/@jest/test-result/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/formatTestResults.d.ts +8 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/formatTestResults.js +70 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/helpers.d.ts +12 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/helpers.js +188 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/index.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/index.js +43 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/types.d.ts +171 -0
- data/packages/webpacker/node_modules/@jest/test-result/build/types.js +1 -0
- data/packages/webpacker/node_modules/@jest/test-result/package.json +32 -0
- data/packages/webpacker/node_modules/@jest/test-sequencer/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/test-sequencer/build/index.d.ts +51 -0
- data/packages/webpacker/node_modules/@jest/test-sequencer/build/index.js +237 -0
- data/packages/webpacker/node_modules/@jest/test-sequencer/package.json +35 -0
- data/packages/webpacker/node_modules/@jest/transform/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/transform/build/ScriptTransformer.d.ts +40 -0
- data/packages/webpacker/node_modules/@jest/transform/build/ScriptTransformer.js +1115 -0
- data/packages/webpacker/node_modules/@jest/transform/build/enhanceUnexpectedTokenMessage.d.ts +12 -0
- data/packages/webpacker/node_modules/@jest/transform/build/enhanceUnexpectedTokenMessage.js +83 -0
- data/packages/webpacker/node_modules/@jest/transform/build/index.d.ts +11 -0
- data/packages/webpacker/node_modules/@jest/transform/build/index.js +41 -0
- data/packages/webpacker/node_modules/@jest/transform/build/runtimeErrorsAndWarnings.d.ts +10 -0
- data/packages/webpacker/node_modules/@jest/transform/build/runtimeErrorsAndWarnings.js +101 -0
- data/packages/webpacker/node_modules/@jest/transform/build/shouldInstrument.d.ts +9 -0
- data/packages/webpacker/node_modules/@jest/transform/build/shouldInstrument.js +207 -0
- data/packages/webpacker/node_modules/@jest/transform/build/types.d.ts +75 -0
- data/packages/webpacker/node_modules/@jest/transform/build/types.js +1 -0
- data/packages/webpacker/node_modules/@jest/transform/package.json +53 -0
- data/packages/webpacker/node_modules/@jest/types/LICENSE +21 -0
- data/packages/webpacker/node_modules/@jest/types/build/Circus.d.ts +193 -0
- data/packages/webpacker/node_modules/@jest/types/build/Circus.js +1 -0
- data/packages/webpacker/node_modules/@jest/types/build/Config.d.ts +462 -0
- data/packages/webpacker/node_modules/@jest/types/build/Config.js +1 -0
- data/packages/webpacker/node_modules/@jest/types/build/Global.d.ts +95 -0
- data/packages/webpacker/node_modules/@jest/types/build/Global.js +1 -0
- data/packages/webpacker/node_modules/@jest/types/build/TestResult.d.ts +31 -0
- data/packages/webpacker/node_modules/@jest/types/build/TestResult.js +1 -0
- data/packages/webpacker/node_modules/@jest/types/build/Transform.d.ts +11 -0
- data/packages/webpacker/node_modules/@jest/types/build/Transform.js +1 -0
- data/packages/webpacker/node_modules/@jest/types/build/index.d.ts +12 -0
- data/packages/webpacker/node_modules/@jest/types/build/index.js +1 -0
- data/packages/webpacker/node_modules/@jest/types/package.json +37 -0
- data/packages/webpacker/node_modules/@sinonjs/fake-timers/CHANGELOG.md +441 -0
- data/packages/webpacker/node_modules/@sinonjs/fake-timers/LICENSE +11 -0
- data/packages/webpacker/node_modules/@sinonjs/fake-timers/README.md +353 -0
- data/packages/webpacker/node_modules/@sinonjs/fake-timers/package.json +71 -0
- data/packages/webpacker/node_modules/@sinonjs/fake-timers/src/fake-timers-src.js +1728 -0
- data/packages/webpacker/node_modules/@types/yargs/LICENSE +21 -0
- data/packages/webpacker/node_modules/@types/yargs/README.md +16 -0
- data/packages/webpacker/node_modules/@types/yargs/helpers.d.ts +5 -0
- data/packages/webpacker/node_modules/@types/yargs/index.d.ts +844 -0
- data/packages/webpacker/node_modules/@types/yargs/package.json +62 -0
- data/packages/webpacker/node_modules/@types/yargs/yargs.d.ts +9 -0
- data/packages/webpacker/node_modules/acorn/CHANGELOG.md +788 -0
- data/packages/webpacker/node_modules/acorn/LICENSE +21 -0
- data/packages/webpacker/node_modules/acorn/README.md +280 -0
- data/packages/webpacker/node_modules/acorn/bin/acorn +4 -0
- data/packages/webpacker/node_modules/acorn/dist/acorn.d.ts +214 -0
- data/packages/webpacker/node_modules/acorn/dist/acorn.js +5619 -0
- data/packages/webpacker/node_modules/acorn/dist/acorn.mjs +5588 -0
- data/packages/webpacker/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
- data/packages/webpacker/node_modules/acorn/dist/bin.js +91 -0
- data/packages/webpacker/node_modules/acorn/package.json +46 -0
- data/packages/webpacker/node_modules/ansi-styles/index.d.ts +345 -0
- data/packages/webpacker/node_modules/ansi-styles/index.js +163 -0
- data/packages/webpacker/node_modules/ansi-styles/license +9 -0
- data/packages/webpacker/node_modules/ansi-styles/package.json +56 -0
- data/packages/webpacker/node_modules/ansi-styles/readme.md +152 -0
- data/packages/webpacker/node_modules/babel-jest/LICENSE +21 -0
- data/packages/webpacker/node_modules/babel-jest/README.md +25 -0
- data/packages/webpacker/node_modules/babel-jest/build/index.d.ts +10 -0
- data/packages/webpacker/node_modules/babel-jest/build/index.js +386 -0
- data/packages/webpacker/node_modules/babel-jest/build/loadBabelConfig.d.ts +7 -0
- data/packages/webpacker/node_modules/babel-jest/build/loadBabelConfig.js +27 -0
- data/packages/webpacker/node_modules/babel-jest/package.json +45 -0
- data/packages/webpacker/node_modules/babel-plugin-jest-hoist/LICENSE +21 -0
- data/packages/webpacker/node_modules/babel-plugin-jest-hoist/README.md +33 -0
- data/packages/webpacker/node_modules/babel-plugin-jest-hoist/build/index.d.ts +13 -0
- data/packages/webpacker/node_modules/babel-plugin-jest-hoist/build/index.js +389 -0
- data/packages/webpacker/node_modules/babel-plugin-jest-hoist/package.json +41 -0
- data/packages/webpacker/node_modules/babel-preset-jest/LICENSE +21 -0
- data/packages/webpacker/node_modules/babel-preset-jest/README.md +33 -0
- data/packages/webpacker/node_modules/babel-preset-jest/index.js +14 -0
- data/packages/webpacker/node_modules/babel-preset-jest/package.json +29 -0
- data/packages/webpacker/node_modules/camelcase/index.d.ts +103 -0
- data/packages/webpacker/node_modules/camelcase/index.js +113 -0
- data/packages/webpacker/node_modules/camelcase/license +9 -0
- data/packages/webpacker/node_modules/camelcase/package.json +44 -0
- data/packages/webpacker/node_modules/camelcase/readme.md +144 -0
- data/packages/webpacker/node_modules/chalk/index.d.ts +415 -0
- data/packages/webpacker/node_modules/chalk/license +9 -0
- data/packages/webpacker/node_modules/chalk/package.json +68 -0
- data/packages/webpacker/node_modules/chalk/readme.md +341 -0
- data/packages/webpacker/node_modules/chalk/source/index.js +229 -0
- data/packages/webpacker/node_modules/chalk/source/templates.js +134 -0
- data/packages/webpacker/node_modules/chalk/source/util.js +39 -0
- data/packages/webpacker/node_modules/ci-info/CHANGELOG.md +122 -0
- data/packages/webpacker/node_modules/ci-info/LICENSE +21 -0
- data/packages/webpacker/node_modules/ci-info/README.md +118 -0
- data/packages/webpacker/node_modules/ci-info/index.d.ts +62 -0
- data/packages/webpacker/node_modules/ci-info/index.js +66 -0
- data/packages/webpacker/node_modules/ci-info/package.json +36 -0
- data/packages/webpacker/node_modules/ci-info/vendors.json +210 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/CHANGELOG.md +40 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/LICENSE +10 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/README.md +453 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/dist/lexer.js +1 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/dist/lexer.mjs +2 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/lexer.d.ts +7 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/lexer.js +1438 -0
- data/packages/webpacker/node_modules/cjs-module-lexer/package.json +43 -0
- data/packages/webpacker/node_modules/cliui/CHANGELOG.md +121 -0
- data/packages/webpacker/node_modules/cliui/LICENSE.txt +14 -0
- data/packages/webpacker/node_modules/cliui/README.md +141 -0
- data/packages/webpacker/node_modules/cliui/build/index.cjs +302 -0
- data/packages/webpacker/node_modules/cliui/build/lib/index.js +287 -0
- data/packages/webpacker/node_modules/cliui/build/lib/string-utils.js +27 -0
- data/packages/webpacker/node_modules/cliui/index.mjs +13 -0
- data/packages/webpacker/node_modules/cliui/package.json +83 -0
- data/packages/webpacker/node_modules/color-convert/CHANGELOG.md +54 -0
- data/packages/webpacker/node_modules/color-convert/LICENSE +21 -0
- data/packages/webpacker/node_modules/color-convert/README.md +68 -0
- data/packages/webpacker/node_modules/color-convert/conversions.js +839 -0
- data/packages/webpacker/node_modules/color-convert/index.js +81 -0
- data/packages/webpacker/node_modules/color-convert/package.json +48 -0
- data/packages/webpacker/node_modules/color-convert/route.js +97 -0
- data/packages/webpacker/node_modules/color-name/LICENSE +8 -0
- data/packages/webpacker/node_modules/color-name/README.md +11 -0
- data/packages/webpacker/node_modules/color-name/index.js +152 -0
- data/packages/webpacker/node_modules/color-name/package.json +28 -0
- data/packages/webpacker/node_modules/diff-sequences/LICENSE +21 -0
- data/packages/webpacker/node_modules/diff-sequences/README.md +404 -0
- data/packages/webpacker/node_modules/diff-sequences/build/index.d.ts +18 -0
- data/packages/webpacker/node_modules/diff-sequences/build/index.js +816 -0
- data/packages/webpacker/node_modules/diff-sequences/package.json +42 -0
- data/packages/webpacker/node_modules/diff-sequences/perf/example.md +48 -0
- data/packages/webpacker/node_modules/diff-sequences/perf/index.js +170 -0
- data/packages/webpacker/node_modules/emittery/index.d.ts +432 -0
- data/packages/webpacker/node_modules/emittery/index.js +408 -0
- data/packages/webpacker/node_modules/emittery/license +9 -0
- data/packages/webpacker/node_modules/emittery/package.json +66 -0
- data/packages/webpacker/node_modules/emittery/readme.md +409 -0
- data/packages/webpacker/node_modules/escape-string-regexp/index.d.ts +18 -0
- data/packages/webpacker/node_modules/escape-string-regexp/index.js +13 -0
- data/packages/webpacker/node_modules/escape-string-regexp/license +9 -0
- data/packages/webpacker/node_modules/escape-string-regexp/package.json +38 -0
- data/packages/webpacker/node_modules/escape-string-regexp/readme.md +34 -0
- data/packages/webpacker/node_modules/eslint/LICENSE +19 -0
- data/packages/webpacker/node_modules/eslint/README.md +304 -0
- data/packages/webpacker/node_modules/eslint/bin/eslint.js +142 -0
- data/packages/webpacker/node_modules/eslint/conf/config-schema.js +93 -0
- data/packages/webpacker/node_modules/eslint/conf/default-cli-options.js +32 -0
- data/packages/webpacker/node_modules/eslint/conf/eslint-all.js +31 -0
- data/packages/webpacker/node_modules/eslint/conf/eslint-recommended.js +76 -0
- data/packages/webpacker/node_modules/eslint/conf/globals.js +144 -0
- data/packages/webpacker/node_modules/eslint/conf/replacements.json +22 -0
- data/packages/webpacker/node_modules/eslint/conf/rule-type-list.json +36 -0
- data/packages/webpacker/node_modules/eslint/lib/api.js +26 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/cli-engine.js +1068 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/file-enumerator.js +543 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js +60 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/compact.js +60 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/html.js +324 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js +41 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +16 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/json.js +13 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/junit.js +82 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/stylish.js +101 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/tap.js +95 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/unix.js +58 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js +63 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/hash.js +35 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/index.js +7 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/lint-result-cache.js +191 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/load-rules.js +46 -0
- data/packages/webpacker/node_modules/eslint/lib/cli-engine/xml-escape.js +34 -0
- data/packages/webpacker/node_modules/eslint/lib/cli.js +344 -0
- data/packages/webpacker/node_modules/eslint/lib/config/default-config.js +61 -0
- data/packages/webpacker/node_modules/eslint/lib/config/flat-config-array.js +134 -0
- data/packages/webpacker/node_modules/eslint/lib/config/flat-config-helpers.js +103 -0
- data/packages/webpacker/node_modules/eslint/lib/config/flat-config-schema.js +457 -0
- data/packages/webpacker/node_modules/eslint/lib/config/rule-validator.js +157 -0
- data/packages/webpacker/node_modules/eslint/lib/eslint/eslint.js +712 -0
- data/packages/webpacker/node_modules/eslint/lib/eslint/index.js +7 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/apply-disable-directives.js +341 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +844 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +235 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +1483 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +247 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +203 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +248 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js +45 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/config-comment-parser.js +145 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/index.js +13 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/interpolate.js +28 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/linter.js +2004 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/node-event-generator.js +354 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/report-translator.js +368 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/rule-fixer.js +140 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/rules.js +80 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/safe-emitter.js +52 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/source-code-fixer.js +152 -0
- data/packages/webpacker/node_modules/eslint/lib/linter/timing.js +160 -0
- data/packages/webpacker/node_modules/eslint/lib/options.js +323 -0
- data/packages/webpacker/node_modules/eslint/lib/rule-tester/flat-rule-tester.js +1039 -0
- data/packages/webpacker/node_modules/eslint/lib/rule-tester/index.js +5 -0
- data/packages/webpacker/node_modules/eslint/lib/rule-tester/rule-tester.js +1008 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/accessor-pairs.js +354 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/array-bracket-newline.js +258 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/array-bracket-spacing.js +241 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/array-callback-return.js +296 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/array-element-newline.js +301 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/arrow-body-style.js +296 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/arrow-parens.js +183 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/arrow-spacing.js +161 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/block-scoped-var.js +124 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/block-spacing.js +171 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/brace-style.js +194 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/callback-return.js +187 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/camelcase.js +398 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/capitalized-comments.js +300 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/class-methods-use-this.js +187 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/comma-dangle.js +350 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/comma-spacing.js +195 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/comma-style.js +311 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/complexity.js +165 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/computed-property-spacing.js +205 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/consistent-return.js +185 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/consistent-this.js +151 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/constructor-super.js +423 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/curly.js +486 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/default-case-last.js +44 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/default-case.js +97 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/default-param-last.js +62 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/dot-location.js +105 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/dot-notation.js +177 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/eol-last.js +112 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/eqeqeq.js +174 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/for-direction.js +126 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/func-call-spacing.js +230 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/func-name-matching.js +253 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/func-names.js +191 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/func-style.js +98 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/function-call-argument-newline.js +122 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/function-paren-newline.js +286 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/generator-star-spacing.js +206 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/getter-return.js +173 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/global-require.js +87 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +224 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/guard-for-in.js +76 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/handle-callback-err.js +100 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/id-blacklist.js +245 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/id-denylist.js +227 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/id-length.js +169 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/id-match.js +298 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +81 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/indent-legacy.js +1126 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/indent.js +1764 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/index.js +301 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/init-declarations.js +139 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/jsx-quotes.js +95 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/key-spacing.js +675 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/keyword-spacing.js +637 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/line-comment-position.js +122 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/linebreak-style.js +105 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/lines-around-comment.js +450 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/lines-around-directive.js +201 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/lines-between-class-members.js +181 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-classes-per-file.js +89 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-depth.js +156 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-len.js +433 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-lines-per-function.js +213 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-lines.js +193 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-nested-callbacks.js +117 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-params.js +102 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-statements-per-line.js +196 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/max-statements.js +184 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/multiline-comment-style.js +435 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/multiline-ternary.js +171 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/new-cap.js +276 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/new-parens.js +99 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/newline-after-var.js +255 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/newline-before-return.js +217 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/newline-per-chained-call.js +123 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-alert.js +136 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-array-constructor.js +54 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-async-promise-executor.js +39 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-await-in-loop.js +106 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-bitwise.js +119 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-buffer-constructor.js +50 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-caller.js +46 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-case-declarations.js +64 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-catch-shadow.js +80 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-class-assign.js +61 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-compare-neg-zero.js +60 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-cond-assign.js +159 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-confusing-arrow.js +89 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-console.js +134 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-const-assign.js +54 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-constant-condition.js +315 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-constructor-return.js +62 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-continue.js +39 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-control-regex.js +112 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-debugger.js +43 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-delete-var.js +42 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-div-regex.js +53 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-dupe-args.js +80 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-dupe-class-members.js +104 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-dupe-else-if.js +122 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-dupe-keys.js +142 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-duplicate-case.js +71 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-duplicate-imports.js +290 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-else-return.js +404 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-empty-character-class.js +55 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-empty-function.js +167 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-empty-pattern.js +43 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-empty.js +86 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-eq-null.js +46 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-eval.js +281 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-ex-assign.js +52 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-extend-native.js +178 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-bind.js +213 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +317 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-label.js +149 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-parens.js +1235 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-extra-semi.js +126 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-fallthrough.js +147 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-floating-decimal.js +70 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-func-assign.js +76 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-global-assign.js +94 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-implicit-coercion.js +361 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-implicit-globals.js +140 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-implied-eval.js +131 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-import-assign.js +239 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-inline-comments.js +110 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-inner-declarations.js +110 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-invalid-regexp.js +157 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-invalid-this.js +150 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-irregular-whitespace.js +259 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-iterator.js +52 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-label-var.js +79 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-labels.js +149 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-lone-blocks.js +134 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-lonely-if.js +89 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-loop-func.js +204 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-loss-of-precision.js +206 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-magic-numbers.js +226 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-misleading-character-class.js +200 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-mixed-operators.js +226 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-mixed-requires.js +238 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +113 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-multi-assign.js +67 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-multi-spaces.js +138 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-multi-str.js +65 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +151 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-native-reassign.js +97 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-negated-condition.js +95 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-negated-in-lhs.js +46 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-nested-ternary.js +44 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-new-func.js +86 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-new-object.js +57 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-new-require.js +50 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-new-symbol.js +54 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-new-wrappers.js +48 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-new.js +43 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +148 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-obj-calls.js +84 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-octal-escape.js +56 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-octal.js +45 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-param-reassign.js +229 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-path-concat.js +64 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-plusplus.js +105 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-process-env.js +51 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-process-exit.js +47 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-promise-executor-return.js +121 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-proto.js +48 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-prototype-builtins.js +71 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-redeclare.js +174 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-regex-spaces.js +180 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-exports.js +96 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-globals.js +122 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-imports.js +322 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-modules.js +216 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-properties.js +181 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-restricted-syntax.js +70 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-return-assign.js +80 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-return-await.js +103 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-script-url.js +61 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-self-assign.js +183 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-self-compare.js +60 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-sequences.js +138 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-setter-return.js +225 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +64 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-shadow.js +335 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-spaced-func.js +83 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-sparse-arrays.js +50 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-sync.js +64 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-tabs.js +78 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-template-curly-in-string.js +44 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-ternary.js +41 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-this-before-super.js +304 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-throw-literal.js +51 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-trailing-spaces.js +190 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-undef-init.js +75 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-undef.js +78 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-undefined.js +84 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-underscore-dangle.js +280 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unexpected-multiline.js +120 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +360 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unneeded-ternary.js +166 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unreachable-loop.js +150 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unreachable.js +264 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unsafe-finally.js +111 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unsafe-negation.js +128 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +205 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unused-expressions.js +189 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unused-labels.js +110 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unused-private-class-members.js +195 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-unused-vars.js +690 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-use-before-define.js +334 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-backreference.js +192 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-call.js +90 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-catch.js +57 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-computed-key.js +168 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-concat.js +115 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-constructor.js +189 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-escape.js +254 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-rename.js +172 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-useless-return.js +305 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-var.js +334 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-void.js +64 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-warning-comments.js +196 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-whitespace-before-property.js +113 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/no-with.js +39 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +124 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/object-curly-newline.js +321 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/object-curly-spacing.js +308 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/object-property-newline.js +99 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/object-shorthand.js +504 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +92 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/one-var.js +567 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/operator-assignment.js +207 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/operator-linebreak.js +250 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/padded-blocks.js +307 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/padding-line-between-statements.js +634 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-arrow-callback.js +380 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-const.js +489 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-destructuring.js +301 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +190 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-named-capture-group.js +110 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-numeric-literals.js +148 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-object-has-own.js +112 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-object-spread.js +299 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +131 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-reflect.js +127 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-regex-literals.js +396 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-rest-params.js +115 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-spread.js +87 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/prefer-template.js +275 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/quote-props.js +307 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/quotes.js +347 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/radix.js +198 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/require-atomic-updates.js +317 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/require-await.js +113 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/require-jsdoc.js +122 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/require-unicode-regexp.js +69 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/require-yield.js +78 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/rest-spread-spacing.js +120 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/semi-spacing.js +245 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/semi-style.js +155 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/semi.js +410 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/sort-imports.js +241 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/sort-keys.js +187 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/sort-vars.js +104 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/space-before-blocks.js +201 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/space-before-function-paren.js +164 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/space-in-parens.js +282 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/space-infix-ops.js +195 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/space-unary-ops.js +321 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/spaced-comment.js +382 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/strict.js +277 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/switch-colon-spacing.js +129 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/symbol-description.js +71 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/template-curly-spacing.js +141 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/template-tag-spacing.js +90 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/unicode-bom.js +73 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/use-isnan.js +141 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/ast-utils.js +1922 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/fix-tracker.js +114 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/keywords.js +67 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +115 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/patterns/letters.js +36 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/index.js +11 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js +13 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js +13 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js +13 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js +14 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/valid-jsdoc.js +516 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/valid-typeof.js +85 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/vars-on-top.js +157 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/wrap-iife.js +204 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/wrap-regex.js +59 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/yield-star-spacing.js +127 -0
- data/packages/webpacker/node_modules/eslint/lib/rules/yoda.js +362 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/ajv.js +34 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/ast-utils.js +29 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/config-validator.js +347 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/deprecation-warnings.js +65 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/logging.js +30 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/relative-module-resolver.js +50 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/runtime-info.js +167 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/string-utils.js +22 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/traverser.js +195 -0
- data/packages/webpacker/node_modules/eslint/lib/shared/types.js +175 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/index.js +5 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/source-code.js +593 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/backward-token-comment-cursor.js +57 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js +58 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/cursor.js +76 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/cursors.js +90 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/decorative-cursor.js +39 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/filter-cursor.js +43 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js +57 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js +63 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/index.js +627 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/limit-cursor.js +40 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/padded-token-cursor.js +38 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/skip-cursor.js +42 -0
- data/packages/webpacker/node_modules/eslint/lib/source-code/token-store/utils.js +92 -0
- data/packages/webpacker/node_modules/eslint/lib/unsupported-api.js +23 -0
- data/packages/webpacker/node_modules/eslint/messages/all-files-ignored.js +16 -0
- data/packages/webpacker/node_modules/eslint/messages/extend-config-missing.js +13 -0
- data/packages/webpacker/node_modules/eslint/messages/failed-to-read-json.js +11 -0
- data/packages/webpacker/node_modules/eslint/messages/file-not-found.js +10 -0
- data/packages/webpacker/node_modules/eslint/messages/no-config-found.js +15 -0
- data/packages/webpacker/node_modules/eslint/messages/plugin-conflict.js +22 -0
- data/packages/webpacker/node_modules/eslint/messages/plugin-invalid.js +16 -0
- data/packages/webpacker/node_modules/eslint/messages/plugin-missing.js +19 -0
- data/packages/webpacker/node_modules/eslint/messages/print-config-with-directory-path.js +8 -0
- data/packages/webpacker/node_modules/eslint/messages/whitespace-found.js +11 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/LICENSE +201 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/README.md +107 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +382 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/dist/index.d.ts +18 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +10 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/lib/index.js +65 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/lib/visitor-keys.js +312 -0
- data/packages/webpacker/node_modules/eslint/node_modules/eslint-visitor-keys/package.json +62 -0
- data/packages/webpacker/node_modules/eslint/node_modules/ignore/LICENSE-MIT +21 -0
- data/packages/webpacker/node_modules/eslint/node_modules/ignore/README.md +412 -0
- data/packages/webpacker/node_modules/eslint/node_modules/ignore/index.d.ts +61 -0
- data/packages/webpacker/node_modules/eslint/node_modules/ignore/index.js +603 -0
- data/packages/webpacker/node_modules/eslint/node_modules/ignore/legacy.js +498 -0
- data/packages/webpacker/node_modules/eslint/node_modules/ignore/package.json +71 -0
- data/packages/webpacker/node_modules/eslint/package.json +150 -0
- data/packages/webpacker/node_modules/eslint-scope/LICENSE +22 -0
- data/packages/webpacker/node_modules/eslint-scope/README.md +66 -0
- data/packages/webpacker/node_modules/eslint-scope/dist/eslint-scope.cjs +2240 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/definition.js +85 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/index.js +172 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/pattern-visitor.js +153 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/reference.js +166 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/referencer.js +654 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/scope-manager.js +255 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/scope.js +772 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/variable.js +87 -0
- data/packages/webpacker/node_modules/eslint-scope/lib/version.js +3 -0
- data/packages/webpacker/node_modules/eslint-scope/package.json +62 -0
- data/packages/webpacker/node_modules/eslint-utils/LICENSE +21 -0
- data/packages/webpacker/node_modules/eslint-utils/README.md +38 -0
- data/packages/webpacker/node_modules/eslint-utils/index.js +1956 -0
- data/packages/webpacker/node_modules/eslint-utils/index.js.map +1 -0
- data/packages/webpacker/node_modules/eslint-utils/index.mjs +1914 -0
- data/packages/webpacker/node_modules/eslint-utils/index.mjs.map +1 -0
- data/packages/webpacker/node_modules/eslint-utils/package.json +78 -0
- data/packages/webpacker/node_modules/espree/LICENSE +25 -0
- data/packages/webpacker/node_modules/espree/README.md +250 -0
- data/packages/webpacker/node_modules/espree/dist/espree.cjs +917 -0
- data/packages/webpacker/node_modules/espree/espree.js +173 -0
- data/packages/webpacker/node_modules/espree/lib/espree.js +328 -0
- data/packages/webpacker/node_modules/espree/lib/features.js +27 -0
- data/packages/webpacker/node_modules/espree/lib/options.js +121 -0
- data/packages/webpacker/node_modules/espree/lib/token-translator.js +265 -0
- data/packages/webpacker/node_modules/espree/lib/version.js +3 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/LICENSE +201 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/README.md +107 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +382 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/dist/index.d.ts +18 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +10 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/lib/index.js +65 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/lib/visitor-keys.js +312 -0
- data/packages/webpacker/node_modules/espree/node_modules/eslint-visitor-keys/package.json +62 -0
- data/packages/webpacker/node_modules/espree/package.json +86 -0
- data/packages/webpacker/node_modules/execa/index.d.ts +564 -0
- data/packages/webpacker/node_modules/execa/index.js +268 -0
- data/packages/webpacker/node_modules/execa/lib/command.js +52 -0
- data/packages/webpacker/node_modules/execa/lib/error.js +88 -0
- data/packages/webpacker/node_modules/execa/lib/kill.js +115 -0
- data/packages/webpacker/node_modules/execa/lib/promise.js +46 -0
- data/packages/webpacker/node_modules/execa/lib/stdio.js +52 -0
- data/packages/webpacker/node_modules/execa/lib/stream.js +97 -0
- data/packages/webpacker/node_modules/execa/license +9 -0
- data/packages/webpacker/node_modules/execa/package.json +74 -0
- data/packages/webpacker/node_modules/execa/readme.md +663 -0
- data/packages/webpacker/node_modules/expect/LICENSE +21 -0
- data/packages/webpacker/node_modules/expect/README.md +3 -0
- data/packages/webpacker/node_modules/expect/build/asymmetricMatchers.d.ts +75 -0
- data/packages/webpacker/node_modules/expect/build/asymmetricMatchers.js +432 -0
- data/packages/webpacker/node_modules/expect/build/extractExpectedAssertionsErrors.d.ts +10 -0
- data/packages/webpacker/node_modules/expect/build/extractExpectedAssertionsErrors.js +90 -0
- data/packages/webpacker/node_modules/expect/build/index.d.ts +15 -0
- data/packages/webpacker/node_modules/expect/build/index.js +485 -0
- data/packages/webpacker/node_modules/expect/build/jasmineUtils.d.ts +8 -0
- data/packages/webpacker/node_modules/expect/build/jasmineUtils.js +279 -0
- data/packages/webpacker/node_modules/expect/build/jestMatchersObject.d.ts +13 -0
- data/packages/webpacker/node_modules/expect/build/jestMatchersObject.js +120 -0
- data/packages/webpacker/node_modules/expect/build/matchers.d.ts +10 -0
- data/packages/webpacker/node_modules/expect/build/matchers.js +1370 -0
- data/packages/webpacker/node_modules/expect/build/print.d.ts +15 -0
- data/packages/webpacker/node_modules/expect/build/print.js +141 -0
- data/packages/webpacker/node_modules/expect/build/spyMatchers.d.ts +9 -0
- data/packages/webpacker/node_modules/expect/build/spyMatchers.js +1339 -0
- data/packages/webpacker/node_modules/expect/build/toThrowMatchers.d.ts +11 -0
- data/packages/webpacker/node_modules/expect/build/toThrowMatchers.js +464 -0
- data/packages/webpacker/node_modules/expect/build/types.d.ts +327 -0
- data/packages/webpacker/node_modules/expect/build/types.js +3 -0
- data/packages/webpacker/node_modules/expect/build/utils.d.ts +26 -0
- data/packages/webpacker/node_modules/expect/build/utils.js +458 -0
- data/packages/webpacker/node_modules/expect/package.json +42 -0
- data/packages/webpacker/node_modules/get-stream/buffer-stream.js +52 -0
- data/packages/webpacker/node_modules/get-stream/index.d.ts +105 -0
- data/packages/webpacker/node_modules/get-stream/index.js +61 -0
- data/packages/webpacker/node_modules/get-stream/license +9 -0
- data/packages/webpacker/node_modules/get-stream/package.json +47 -0
- data/packages/webpacker/node_modules/get-stream/readme.md +124 -0
- data/packages/webpacker/node_modules/glob-parent/LICENSE +15 -0
- data/packages/webpacker/node_modules/glob-parent/README.md +134 -0
- data/packages/webpacker/node_modules/glob-parent/index.js +75 -0
- data/packages/webpacker/node_modules/glob-parent/package.json +54 -0
- data/packages/webpacker/node_modules/globals/globals.json +1781 -0
- data/packages/webpacker/node_modules/globals/index.d.ts +6 -0
- data/packages/webpacker/node_modules/globals/index.js +2 -0
- data/packages/webpacker/node_modules/globals/license +9 -0
- data/packages/webpacker/node_modules/globals/package.json +55 -0
- data/packages/webpacker/node_modules/globals/readme.md +56 -0
- data/packages/webpacker/node_modules/has-flag/index.d.ts +39 -0
- data/packages/webpacker/node_modules/has-flag/index.js +8 -0
- data/packages/webpacker/node_modules/has-flag/license +9 -0
- data/packages/webpacker/node_modules/has-flag/package.json +46 -0
- data/packages/webpacker/node_modules/has-flag/readme.md +89 -0
- data/packages/webpacker/node_modules/human-signals/CHANGELOG.md +11 -0
- data/packages/webpacker/node_modules/human-signals/LICENSE +201 -0
- data/packages/webpacker/node_modules/human-signals/README.md +165 -0
- data/packages/webpacker/node_modules/human-signals/build/src/core.js +273 -0
- data/packages/webpacker/node_modules/human-signals/build/src/core.js.map +1 -0
- data/packages/webpacker/node_modules/human-signals/build/src/main.d.ts +52 -0
- data/packages/webpacker/node_modules/human-signals/build/src/main.js +71 -0
- data/packages/webpacker/node_modules/human-signals/build/src/main.js.map +1 -0
- data/packages/webpacker/node_modules/human-signals/build/src/realtime.js +19 -0
- data/packages/webpacker/node_modules/human-signals/build/src/realtime.js.map +1 -0
- data/packages/webpacker/node_modules/human-signals/build/src/signals.js +35 -0
- data/packages/webpacker/node_modules/human-signals/build/src/signals.js.map +1 -0
- data/packages/webpacker/node_modules/human-signals/package.json +64 -0
- data/packages/webpacker/node_modules/jest/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest/README.md +11 -0
- data/packages/webpacker/node_modules/jest/bin/jest.js +13 -0
- data/packages/webpacker/node_modules/jest/build/jest.d.ts +8 -0
- data/packages/webpacker/node_modules/jest/build/jest.js +61 -0
- data/packages/webpacker/node_modules/jest/package.json +68 -0
- data/packages/webpacker/node_modules/jest-changed-files/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-changed-files/README.md +63 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/git.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/git.js +179 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/hg.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/hg.js +133 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/index.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/index.js +86 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/types.d.ts +28 -0
- data/packages/webpacker/node_modules/jest-changed-files/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-changed-files/package.json +31 -0
- data/packages/webpacker/node_modules/jest-cli/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-cli/README.md +11 -0
- data/packages/webpacker/node_modules/jest-cli/bin/jest.js +17 -0
- data/packages/webpacker/node_modules/jest-cli/build/cli/args.d.ts +448 -0
- data/packages/webpacker/node_modules/jest-cli/build/cli/args.js +710 -0
- data/packages/webpacker/node_modules/jest-cli/build/cli/index.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-cli/build/cli/index.js +265 -0
- data/packages/webpacker/node_modules/jest-cli/build/index.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-cli/build/index.js +13 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/errors.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/errors.js +35 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/generateConfigFile.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/generateConfigFile.js +104 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/index.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/index.js +246 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/modifyPackageJson.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/modifyPackageJson.js +28 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/questions.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/questions.js +76 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/types.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-cli/build/init/types.js +1 -0
- data/packages/webpacker/node_modules/jest-cli/package.json +89 -0
- data/packages/webpacker/node_modules/jest-config/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-config/build/Defaults.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-config/build/Defaults.js +125 -0
- data/packages/webpacker/node_modules/jest-config/build/Deprecated.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-config/build/Deprecated.js +98 -0
- data/packages/webpacker/node_modules/jest-config/build/Descriptions.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-config/build/Descriptions.js +107 -0
- data/packages/webpacker/node_modules/jest-config/build/ReporterValidationErrors.d.ts +19 -0
- data/packages/webpacker/node_modules/jest-config/build/ReporterValidationErrors.js +138 -0
- data/packages/webpacker/node_modules/jest-config/build/ValidConfig.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-config/build/ValidConfig.js +199 -0
- data/packages/webpacker/node_modules/jest-config/build/color.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-config/build/color.js +37 -0
- data/packages/webpacker/node_modules/jest-config/build/constants.d.ts +17 -0
- data/packages/webpacker/node_modules/jest-config/build/constants.js +104 -0
- data/packages/webpacker/node_modules/jest-config/build/getCacheDirectory.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-config/build/getCacheDirectory.js +104 -0
- data/packages/webpacker/node_modules/jest-config/build/getMaxWorkers.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-config/build/getMaxWorkers.js +65 -0
- data/packages/webpacker/node_modules/jest-config/build/index.d.ts +28 -0
- data/packages/webpacker/node_modules/jest-config/build/index.js +495 -0
- data/packages/webpacker/node_modules/jest-config/build/normalize.d.ts +13 -0
- data/packages/webpacker/node_modules/jest-config/build/normalize.js +1372 -0
- data/packages/webpacker/node_modules/jest-config/build/readConfigFileAndSetRootDir.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-config/build/readConfigFileAndSetRootDir.js +204 -0
- data/packages/webpacker/node_modules/jest-config/build/resolveConfigPath.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-config/build/resolveConfigPath.js +247 -0
- data/packages/webpacker/node_modules/jest-config/build/setFromArgv.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-config/build/setFromArgv.js +68 -0
- data/packages/webpacker/node_modules/jest-config/build/utils.d.ts +27 -0
- data/packages/webpacker/node_modules/jest-config/build/utils.js +209 -0
- data/packages/webpacker/node_modules/jest-config/build/validatePattern.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-config/build/validatePattern.js +25 -0
- data/packages/webpacker/node_modules/jest-config/package.json +68 -0
- data/packages/webpacker/node_modules/jest-diff/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-diff/README.md +671 -0
- data/packages/webpacker/node_modules/jest-diff/build/cleanupSemantic.d.ts +57 -0
- data/packages/webpacker/node_modules/jest-diff/build/cleanupSemantic.js +655 -0
- data/packages/webpacker/node_modules/jest-diff/build/constants.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-diff/build/constants.js +19 -0
- data/packages/webpacker/node_modules/jest-diff/build/diffLines.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-diff/build/diffLines.js +220 -0
- data/packages/webpacker/node_modules/jest-diff/build/diffStrings.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-diff/build/diffStrings.js +78 -0
- data/packages/webpacker/node_modules/jest-diff/build/getAlignedDiffs.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-diff/build/getAlignedDiffs.js +244 -0
- data/packages/webpacker/node_modules/jest-diff/build/index.d.ts +15 -0
- data/packages/webpacker/node_modules/jest-diff/build/index.js +267 -0
- data/packages/webpacker/node_modules/jest-diff/build/joinAlignedDiffs.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-diff/build/joinAlignedDiffs.js +303 -0
- data/packages/webpacker/node_modules/jest-diff/build/normalizeDiffOptions.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-diff/build/normalizeDiffOptions.js +64 -0
- data/packages/webpacker/node_modules/jest-diff/build/printDiffs.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-diff/build/printDiffs.js +85 -0
- data/packages/webpacker/node_modules/jest-diff/build/types.d.ts +48 -0
- data/packages/webpacker/node_modules/jest-diff/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-diff/package.json +36 -0
- data/packages/webpacker/node_modules/jest-docblock/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-docblock/README.md +108 -0
- data/packages/webpacker/node_modules/jest-docblock/build/index.d.ts +19 -0
- data/packages/webpacker/node_modules/jest-docblock/build/index.js +153 -0
- data/packages/webpacker/node_modules/jest-docblock/package.json +32 -0
- data/packages/webpacker/node_modules/jest-each/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-each/README.md +548 -0
- data/packages/webpacker/node_modules/jest-each/build/bind.d.ts +15 -0
- data/packages/webpacker/node_modules/jest-each/build/bind.js +79 -0
- data/packages/webpacker/node_modules/jest-each/build/index.d.ts +79 -0
- data/packages/webpacker/node_modules/jest-each/build/index.js +97 -0
- data/packages/webpacker/node_modules/jest-each/build/table/array.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-each/build/table/array.js +151 -0
- data/packages/webpacker/node_modules/jest-each/build/table/interpolation.d.ts +17 -0
- data/packages/webpacker/node_modules/jest-each/build/table/interpolation.js +69 -0
- data/packages/webpacker/node_modules/jest-each/build/table/template.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-each/build/table/template.js +45 -0
- data/packages/webpacker/node_modules/jest-each/build/validation.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-each/build/validation.js +133 -0
- data/packages/webpacker/node_modules/jest-each/package.json +41 -0
- data/packages/webpacker/node_modules/jest-environment-jsdom/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-environment-jsdom/build/index.d.ts +30 -0
- data/packages/webpacker/node_modules/jest-environment-jsdom/build/index.js +195 -0
- data/packages/webpacker/node_modules/jest-environment-jsdom/package.json +39 -0
- data/packages/webpacker/node_modules/jest-environment-node/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-environment-node/build/index.d.ts +29 -0
- data/packages/webpacker/node_modules/jest-environment-node/build/index.js +184 -0
- data/packages/webpacker/node_modules/jest-environment-node/package.json +37 -0
- data/packages/webpacker/node_modules/jest-get-type/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-get-type/build/index.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-get-type/build/index.js +57 -0
- data/packages/webpacker/node_modules/jest-get-type/package.json +27 -0
- data/packages/webpacker/node_modules/jest-haste-map/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/HasteFS.d.ts +27 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/HasteFS.js +179 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/ModuleMap.d.ts +41 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/ModuleMap.js +305 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/blacklist.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/blacklist.js +59 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/constants.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/constants.js +52 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/crawlers/node.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/crawlers/node.js +309 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/crawlers/watchman.d.ts +13 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/crawlers/watchman.js +385 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/getMockName.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/getMockName.js +76 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/index.d.ts +184 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/index.js +1266 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/dependencyExtractor.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/dependencyExtractor.js +99 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/fast_path.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/fast_path.js +81 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/getPlatformExtension.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/getPlatformExtension.js +31 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/isRegExpSupported.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/isRegExpSupported.js +22 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/normalizePathSep.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/lib/normalizePathSep.js +75 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/types.d.ts +126 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/watchers/FSEventsWatcher.d.ts +44 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/watchers/FSEventsWatcher.js +294 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/watchers/NodeWatcher.js +375 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/watchers/RecrawlWarning.js +57 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/watchers/WatchmanWatcher.js +418 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/watchers/common.js +114 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/worker.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-haste-map/build/worker.js +197 -0
- data/packages/webpacker/node_modules/jest-haste-map/package.json +49 -0
- data/packages/webpacker/node_modules/jest-jasmine2/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/ExpectationFailed.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/ExpectationFailed.js +16 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/PCancelable.d.ts +17 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/PCancelable.js +139 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/assertionErrorMessage.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/assertionErrorMessage.js +156 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/each.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/each.js +44 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/errorOnPrivate.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/errorOnPrivate.js +66 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/expectationResultFactory.d.ts +16 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/expectationResultFactory.js +93 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/index.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/index.js +247 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/isError.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/isError.js +32 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/CallTracker.d.ts +25 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/CallTracker.js +121 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Env.d.ts +43 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Env.js +716 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/JsApiReporter.d.ts +31 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/JsApiReporter.js +173 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/ReportDispatcher.d.ts +22 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/ReportDispatcher.js +127 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Spec.d.ts +81 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Spec.js +298 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/SpyStrategy.d.ts +22 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/SpyStrategy.js +143 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Suite.d.ts +61 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Suite.js +235 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Timer.d.ts +14 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/Timer.js +79 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/createSpy.d.ts +13 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/createSpy.js +88 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/jasmineLight.d.ts +27 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/jasmineLight.js +171 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/spyRegistry.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmine/spyRegistry.js +222 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmineAsyncInstall.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js +259 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jestExpect.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/jestExpect.js +69 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/pTimeout.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/pTimeout.js +78 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/queueRunner.d.ts +29 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/queueRunner.js +127 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/reporter.d.ts +31 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/reporter.js +250 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/setup_jest_globals.d.ts +16 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/setup_jest_globals.js +121 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/treeProcessor.d.ts +26 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/treeProcessor.js +82 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/types.d.ts +82 -0
- data/packages/webpacker/node_modules/jest-jasmine2/build/types.js +7 -0
- data/packages/webpacker/node_modules/jest-jasmine2/package.json +48 -0
- data/packages/webpacker/node_modules/jest-leak-detector/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-leak-detector/README.md +27 -0
- data/packages/webpacker/node_modules/jest-leak-detector/build/index.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-leak-detector/build/index.js +135 -0
- data/packages/webpacker/node_modules/jest-leak-detector/package.json +34 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/README.md +24 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/build/Replaceable.d.ts +17 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/build/Replaceable.js +82 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/build/deepCyclicCopyReplaceable.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/build/deepCyclicCopyReplaceable.js +110 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/build/index.d.ts +53 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/build/index.js +590 -0
- data/packages/webpacker/node_modules/jest-matcher-utils/package.json +37 -0
- data/packages/webpacker/node_modules/jest-message-util/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-message-util/build/index.d.ts +23 -0
- data/packages/webpacker/node_modules/jest-message-util/build/index.js +501 -0
- data/packages/webpacker/node_modules/jest-message-util/build/types.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-message-util/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-message-util/package.json +42 -0
- data/packages/webpacker/node_modules/jest-mock/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-mock/README.md +92 -0
- data/packages/webpacker/node_modules/jest-mock/build/index.d.ts +185 -0
- data/packages/webpacker/node_modules/jest-mock/build/index.js +964 -0
- data/packages/webpacker/node_modules/jest-mock/package.json +30 -0
- data/packages/webpacker/node_modules/jest-regex-util/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-regex-util/build/index.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-regex-util/build/index.js +48 -0
- data/packages/webpacker/node_modules/jest-regex-util/package.json +29 -0
- data/packages/webpacker/node_modules/jest-resolve/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-resolve/build/ModuleNotFoundError.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-resolve/build/ModuleNotFoundError.js +146 -0
- data/packages/webpacker/node_modules/jest-resolve/build/defaultResolver.d.ts +29 -0
- data/packages/webpacker/node_modules/jest-resolve/build/defaultResolver.js +123 -0
- data/packages/webpacker/node_modules/jest-resolve/build/fileWalkers.d.ts +14 -0
- data/packages/webpacker/node_modules/jest-resolve/build/fileWalkers.js +214 -0
- data/packages/webpacker/node_modules/jest-resolve/build/index.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-resolve/build/index.js +36 -0
- data/packages/webpacker/node_modules/jest-resolve/build/isBuiltinModule.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-resolve/build/isBuiltinModule.js +36 -0
- data/packages/webpacker/node_modules/jest-resolve/build/nodeModulesPaths.d.ts +15 -0
- data/packages/webpacker/node_modules/jest-resolve/build/nodeModulesPaths.js +128 -0
- data/packages/webpacker/node_modules/jest-resolve/build/resolver.d.ts +58 -0
- data/packages/webpacker/node_modules/jest-resolve/build/resolver.js +595 -0
- data/packages/webpacker/node_modules/jest-resolve/build/shouldLoadAsEsm.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-resolve/build/shouldLoadAsEsm.js +112 -0
- data/packages/webpacker/node_modules/jest-resolve/build/types.d.ts +23 -0
- data/packages/webpacker/node_modules/jest-resolve/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-resolve/build/utils.d.ts +51 -0
- data/packages/webpacker/node_modules/jest-resolve/build/utils.js +269 -0
- data/packages/webpacker/node_modules/jest-resolve/package.json +42 -0
- data/packages/webpacker/node_modules/jest-resolve-dependencies/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-resolve-dependencies/build/index.d.ts +27 -0
- data/packages/webpacker/node_modules/jest-resolve-dependencies/build/index.js +238 -0
- data/packages/webpacker/node_modules/jest-resolve-dependencies/package.json +37 -0
- data/packages/webpacker/node_modules/jest-runner/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-runner/build/index.d.ts +24 -0
- data/packages/webpacker/node_modules/jest-runner/build/index.js +300 -0
- data/packages/webpacker/node_modules/jest-runner/build/runTest.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-runner/build/runTest.js +494 -0
- data/packages/webpacker/node_modules/jest-runner/build/testWorker.d.ts +26 -0
- data/packages/webpacker/node_modules/jest-runner/build/testWorker.js +150 -0
- data/packages/webpacker/node_modules/jest-runner/build/types.d.ts +41 -0
- data/packages/webpacker/node_modules/jest-runner/build/types.js +15 -0
- data/packages/webpacker/node_modules/jest-runner/package.json +55 -0
- data/packages/webpacker/node_modules/jest-runtime/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-runtime/build/helpers.d.ts +10 -0
- data/packages/webpacker/node_modules/jest-runtime/build/helpers.js +157 -0
- data/packages/webpacker/node_modules/jest-runtime/build/index.d.ts +142 -0
- data/packages/webpacker/node_modules/jest-runtime/build/index.js +2454 -0
- data/packages/webpacker/node_modules/jest-runtime/build/types.d.ts +15 -0
- data/packages/webpacker/node_modules/jest-runtime/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-runtime/package.json +57 -0
- data/packages/webpacker/node_modules/jest-serializer/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-serializer/README.md +47 -0
- data/packages/webpacker/node_modules/jest-serializer/build/index.d.ts +20 -0
- data/packages/webpacker/node_modules/jest-serializer/build/index.js +109 -0
- data/packages/webpacker/node_modules/jest-serializer/package.json +33 -0
- data/packages/webpacker/node_modules/jest-serializer/v8.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-snapshot/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/InlineSnapshots.d.ts +15 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/InlineSnapshots.js +503 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/SnapshotResolver.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/SnapshotResolver.js +179 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/State.d.ts +62 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/State.js +389 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/colors.d.ts +15 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/colors.js +38 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/dedentLines.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/dedentLines.js +149 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/index.d.ts +34 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/index.js +645 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/mockSerializer.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/mockSerializer.js +52 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/plugins.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/plugins.js +48 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/printSnapshot.d.ts +24 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/printSnapshot.js +407 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/types.d.ts +25 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/utils.d.ts +28 -0
- data/packages/webpacker/node_modules/jest-snapshot/build/utils.js +460 -0
- data/packages/webpacker/node_modules/jest-snapshot/package.json +61 -0
- data/packages/webpacker/node_modules/jest-util/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-util/build/ErrorWithStack.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-util/build/ErrorWithStack.js +33 -0
- data/packages/webpacker/node_modules/jest-util/build/clearLine.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/clearLine.js +18 -0
- data/packages/webpacker/node_modules/jest-util/build/convertDescriptorToString.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-util/build/convertDescriptorToString.js +41 -0
- data/packages/webpacker/node_modules/jest-util/build/createDirectory.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/createDirectory.js +76 -0
- data/packages/webpacker/node_modules/jest-util/build/createProcessObject.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/createProcessObject.js +126 -0
- data/packages/webpacker/node_modules/jest-util/build/deepCyclicCopy.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-util/build/deepCyclicCopy.js +84 -0
- data/packages/webpacker/node_modules/jest-util/build/formatTime.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-util/build/formatTime.js +24 -0
- data/packages/webpacker/node_modules/jest-util/build/globsToMatcher.d.ts +27 -0
- data/packages/webpacker/node_modules/jest-util/build/globsToMatcher.js +108 -0
- data/packages/webpacker/node_modules/jest-util/build/index.d.ts +25 -0
- data/packages/webpacker/node_modules/jest-util/build/index.js +209 -0
- data/packages/webpacker/node_modules/jest-util/build/installCommonGlobals.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/installCommonGlobals.js +123 -0
- data/packages/webpacker/node_modules/jest-util/build/interopRequireDefault.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-util/build/interopRequireDefault.js +22 -0
- data/packages/webpacker/node_modules/jest-util/build/isInteractive.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/isInteractive.js +27 -0
- data/packages/webpacker/node_modules/jest-util/build/isPromise.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/isPromise.js +20 -0
- data/packages/webpacker/node_modules/jest-util/build/pluralize.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-util/build/pluralize.js +16 -0
- data/packages/webpacker/node_modules/jest-util/build/preRunMessage.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-util/build/preRunMessage.js +48 -0
- data/packages/webpacker/node_modules/jest-util/build/replacePathSepForGlob.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/replacePathSepForGlob.js +16 -0
- data/packages/webpacker/node_modules/jest-util/build/requireOrImportModule.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/requireOrImportModule.js +91 -0
- data/packages/webpacker/node_modules/jest-util/build/setGlobal.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-util/build/setGlobal.js +17 -0
- data/packages/webpacker/node_modules/jest-util/build/specialChars.d.ts +14 -0
- data/packages/webpacker/node_modules/jest-util/build/specialChars.js +25 -0
- data/packages/webpacker/node_modules/jest-util/build/testPathPatternToRegExp.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/testPathPatternToRegExp.js +19 -0
- data/packages/webpacker/node_modules/jest-util/build/tryRealpath.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-util/build/tryRealpath.js +34 -0
- data/packages/webpacker/node_modules/jest-util/package.json +39 -0
- data/packages/webpacker/node_modules/jest-validate/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-validate/README.md +196 -0
- data/packages/webpacker/node_modules/jest-validate/build/condition.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-validate/build/condition.js +48 -0
- data/packages/webpacker/node_modules/jest-validate/build/defaultConfig.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-validate/build/defaultConfig.js +42 -0
- data/packages/webpacker/node_modules/jest-validate/build/deprecated.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-validate/build/deprecated.js +32 -0
- data/packages/webpacker/node_modules/jest-validate/build/errors.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-validate/build/errors.js +75 -0
- data/packages/webpacker/node_modules/jest-validate/build/exampleConfig.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-validate/build/exampleConfig.js +36 -0
- data/packages/webpacker/node_modules/jest-validate/build/index.d.ts +11 -0
- data/packages/webpacker/node_modules/jest-validate/build/index.js +61 -0
- data/packages/webpacker/node_modules/jest-validate/build/types.d.ts +26 -0
- data/packages/webpacker/node_modules/jest-validate/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-validate/build/utils.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-validate/build/utils.js +129 -0
- data/packages/webpacker/node_modules/jest-validate/build/validate.d.ts +13 -0
- data/packages/webpacker/node_modules/jest-validate/build/validate.js +131 -0
- data/packages/webpacker/node_modules/jest-validate/build/validateCLIOptions.d.ts +14 -0
- data/packages/webpacker/node_modules/jest-validate/build/validateCLIOptions.js +141 -0
- data/packages/webpacker/node_modules/jest-validate/build/warnings.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-validate/build/warnings.js +48 -0
- data/packages/webpacker/node_modules/jest-validate/package.json +37 -0
- data/packages/webpacker/node_modules/jest-watcher/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-watcher/build/BaseWatchPlugin.d.ts +22 -0
- data/packages/webpacker/node_modules/jest-watcher/build/BaseWatchPlugin.js +52 -0
- data/packages/webpacker/node_modules/jest-watcher/build/JestHooks.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-watcher/build/JestHooks.js +91 -0
- data/packages/webpacker/node_modules/jest-watcher/build/PatternPrompt.d.ts +20 -0
- data/packages/webpacker/node_modules/jest-watcher/build/PatternPrompt.js +113 -0
- data/packages/webpacker/node_modules/jest-watcher/build/constants.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-watcher/build/constants.js +27 -0
- data/packages/webpacker/node_modules/jest-watcher/build/index.d.ts +13 -0
- data/packages/webpacker/node_modules/jest-watcher/build/index.js +75 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/Prompt.d.ts +25 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/Prompt.js +158 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/colorize.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/colorize.js +34 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/formatTestNameByPattern.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/formatTestNameByPattern.js +81 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/patternModeHelpers.d.ts +9 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/patternModeHelpers.js +68 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/scroll.d.ts +12 -0
- data/packages/webpacker/node_modules/jest-watcher/build/lib/scroll.js +34 -0
- data/packages/webpacker/node_modules/jest-watcher/build/types.d.ts +60 -0
- data/packages/webpacker/node_modules/jest-watcher/build/types.js +1 -0
- data/packages/webpacker/node_modules/jest-watcher/package.json +40 -0
- data/packages/webpacker/node_modules/jest-worker/LICENSE +21 -0
- data/packages/webpacker/node_modules/jest-worker/README.md +247 -0
- data/packages/webpacker/node_modules/jest-worker/build/Farm.d.ts +29 -0
- data/packages/webpacker/node_modules/jest-worker/build/Farm.js +206 -0
- data/packages/webpacker/node_modules/jest-worker/build/FifoQueue.d.ts +18 -0
- data/packages/webpacker/node_modules/jest-worker/build/FifoQueue.js +171 -0
- data/packages/webpacker/node_modules/jest-worker/build/PriorityQueue.d.ts +41 -0
- data/packages/webpacker/node_modules/jest-worker/build/PriorityQueue.js +188 -0
- data/packages/webpacker/node_modules/jest-worker/build/WorkerPool.d.ts +13 -0
- data/packages/webpacker/node_modules/jest-worker/build/WorkerPool.js +49 -0
- data/packages/webpacker/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts +21 -0
- data/packages/webpacker/node_modules/jest-worker/build/base/BaseWorkerPool.js +201 -0
- data/packages/webpacker/node_modules/jest-worker/build/index.d.ts +49 -0
- data/packages/webpacker/node_modules/jest-worker/build/index.js +223 -0
- data/packages/webpacker/node_modules/jest-worker/build/types.d.ts +143 -0
- data/packages/webpacker/node_modules/jest-worker/build/types.js +39 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts +51 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/ChildProcessWorker.js +333 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts +34 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/NodeThreadsWorker.js +344 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/messageParent.d.ts +8 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/messageParent.js +38 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/processChild.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/processChild.js +148 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/threadChild.d.ts +7 -0
- data/packages/webpacker/node_modules/jest-worker/build/workers/threadChild.js +159 -0
- data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/browser.js +24 -0
- data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/index.js +152 -0
- data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/license +9 -0
- data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/package.json +58 -0
- data/packages/webpacker/node_modules/jest-worker/node_modules/supports-color/readme.md +77 -0
- data/packages/webpacker/node_modules/jest-worker/package.json +38 -0
- data/packages/webpacker/node_modules/pretty-format/LICENSE +21 -0
- data/packages/webpacker/node_modules/pretty-format/README.md +458 -0
- data/packages/webpacker/node_modules/pretty-format/build/collections.d.ts +32 -0
- data/packages/webpacker/node_modules/pretty-format/build/collections.js +187 -0
- data/packages/webpacker/node_modules/pretty-format/build/index.d.ts +25 -0
- data/packages/webpacker/node_modules/pretty-format/build/index.js +597 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/AsymmetricMatcher.d.ts +11 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js +117 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/ConvertAnsi.d.ts +11 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/ConvertAnsi.js +96 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/DOMCollection.d.ts +11 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/DOMCollection.js +80 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/DOMElement.d.ts +11 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/DOMElement.js +128 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/Immutable.d.ts +11 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/Immutable.js +247 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/ReactElement.d.ts +11 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/ReactElement.js +166 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/ReactTestComponent.d.ts +18 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/ReactTestComponent.js +79 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/lib/escapeHTML.d.ts +7 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/lib/escapeHTML.js +16 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/lib/markup.d.ts +13 -0
- data/packages/webpacker/node_modules/pretty-format/build/plugins/lib/markup.js +153 -0
- data/packages/webpacker/node_modules/pretty-format/build/types.d.ts +108 -0
- data/packages/webpacker/node_modules/pretty-format/build/types.js +1 -0
- data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/index.d.ts +167 -0
- data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/index.js +164 -0
- data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/license +9 -0
- data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/package.json +52 -0
- data/packages/webpacker/node_modules/pretty-format/node_modules/ansi-styles/readme.md +144 -0
- data/packages/webpacker/node_modules/pretty-format/package.json +44 -0
- data/packages/webpacker/node_modules/react-is/LICENSE +21 -0
- data/packages/webpacker/node_modules/react-is/README.md +104 -0
- data/packages/webpacker/node_modules/react-is/build-info.json +8 -0
- data/packages/webpacker/node_modules/react-is/cjs/react-is.development.js +226 -0
- data/packages/webpacker/node_modules/react-is/cjs/react-is.production.min.js +14 -0
- data/packages/webpacker/node_modules/react-is/index.js +7 -0
- data/packages/webpacker/node_modules/react-is/package.json +27 -0
- data/packages/webpacker/node_modules/react-is/umd/react-is.development.js +225 -0
- data/packages/webpacker/node_modules/react-is/umd/react-is.production.min.js +14 -0
- data/packages/webpacker/node_modules/semver/CHANGELOG.md +111 -0
- data/packages/webpacker/node_modules/semver/LICENSE +15 -0
- data/packages/webpacker/node_modules/semver/README.md +566 -0
- data/packages/webpacker/node_modules/semver/bin/semver.js +173 -0
- data/packages/webpacker/node_modules/semver/classes/comparator.js +135 -0
- data/packages/webpacker/node_modules/semver/classes/index.js +5 -0
- data/packages/webpacker/node_modules/semver/classes/range.js +510 -0
- data/packages/webpacker/node_modules/semver/classes/semver.js +287 -0
- data/packages/webpacker/node_modules/semver/functions/clean.js +6 -0
- data/packages/webpacker/node_modules/semver/functions/cmp.js +48 -0
- data/packages/webpacker/node_modules/semver/functions/coerce.js +51 -0
- data/packages/webpacker/node_modules/semver/functions/compare-build.js +7 -0
- data/packages/webpacker/node_modules/semver/functions/compare-loose.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/compare.js +5 -0
- data/packages/webpacker/node_modules/semver/functions/diff.js +23 -0
- data/packages/webpacker/node_modules/semver/functions/eq.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/gt.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/gte.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/inc.js +15 -0
- data/packages/webpacker/node_modules/semver/functions/lt.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/lte.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/major.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/minor.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/neq.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/parse.js +33 -0
- data/packages/webpacker/node_modules/semver/functions/patch.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/prerelease.js +6 -0
- data/packages/webpacker/node_modules/semver/functions/rcompare.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/rsort.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/satisfies.js +10 -0
- data/packages/webpacker/node_modules/semver/functions/sort.js +3 -0
- data/packages/webpacker/node_modules/semver/functions/valid.js +6 -0
- data/packages/webpacker/node_modules/semver/index.js +48 -0
- data/packages/webpacker/node_modules/semver/internal/constants.js +17 -0
- data/packages/webpacker/node_modules/semver/internal/debug.js +9 -0
- data/packages/webpacker/node_modules/semver/internal/identifiers.js +23 -0
- data/packages/webpacker/node_modules/semver/internal/parse-options.js +11 -0
- data/packages/webpacker/node_modules/semver/internal/re.js +182 -0
- data/packages/webpacker/node_modules/semver/package.json +41 -0
- data/packages/webpacker/node_modules/semver/preload.js +2 -0
- data/packages/webpacker/node_modules/semver/range.bnf +16 -0
- data/packages/webpacker/node_modules/semver/ranges/gtr.js +4 -0
- data/packages/webpacker/node_modules/semver/ranges/intersects.js +7 -0
- data/packages/webpacker/node_modules/semver/ranges/ltr.js +4 -0
- data/packages/webpacker/node_modules/semver/ranges/max-satisfying.js +25 -0
- data/packages/webpacker/node_modules/semver/ranges/min-satisfying.js +24 -0
- data/packages/webpacker/node_modules/semver/ranges/min-version.js +60 -0
- data/packages/webpacker/node_modules/semver/ranges/outside.js +80 -0
- data/packages/webpacker/node_modules/semver/ranges/simplify.js +44 -0
- data/packages/webpacker/node_modules/semver/ranges/subset.js +222 -0
- data/packages/webpacker/node_modules/semver/ranges/to-comparators.js +8 -0
- data/packages/webpacker/node_modules/semver/ranges/valid.js +11 -0
- data/packages/webpacker/node_modules/source-map/CHANGELOG.md +301 -0
- data/packages/webpacker/node_modules/source-map/LICENSE +28 -0
- data/packages/webpacker/node_modules/source-map/README.md +742 -0
- data/packages/webpacker/node_modules/source-map/dist/source-map.debug.js +3234 -0
- data/packages/webpacker/node_modules/source-map/dist/source-map.js +3233 -0
- data/packages/webpacker/node_modules/source-map/dist/source-map.min.js +2 -0
- data/packages/webpacker/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/packages/webpacker/node_modules/source-map/lib/array-set.js +121 -0
- data/packages/webpacker/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/packages/webpacker/node_modules/source-map/lib/base64.js +67 -0
- data/packages/webpacker/node_modules/source-map/lib/binary-search.js +111 -0
- data/packages/webpacker/node_modules/source-map/lib/mapping-list.js +79 -0
- data/packages/webpacker/node_modules/source-map/lib/quick-sort.js +114 -0
- data/packages/webpacker/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- data/packages/webpacker/node_modules/source-map/lib/source-map-generator.js +425 -0
- data/packages/webpacker/node_modules/source-map/lib/source-node.js +413 -0
- data/packages/webpacker/node_modules/source-map/lib/util.js +488 -0
- data/packages/webpacker/node_modules/source-map/package.json +73 -0
- data/packages/webpacker/node_modules/source-map/source-map.d.ts +98 -0
- data/packages/webpacker/node_modules/source-map/source-map.js +8 -0
- data/packages/webpacker/node_modules/supports-color/browser.js +5 -0
- data/packages/webpacker/node_modules/supports-color/index.js +135 -0
- data/packages/webpacker/node_modules/supports-color/license +9 -0
- data/packages/webpacker/node_modules/supports-color/package.json +53 -0
- data/packages/webpacker/node_modules/supports-color/readme.md +76 -0
- data/packages/webpacker/node_modules/throat/LICENSE +19 -0
- data/packages/webpacker/node_modules/throat/README.md +55 -0
- data/packages/webpacker/node_modules/throat/index.d.ts +32 -0
- data/packages/webpacker/node_modules/throat/index.js +145 -0
- data/packages/webpacker/node_modules/throat/index.js.flow +7 -0
- data/packages/webpacker/node_modules/throat/package.json +47 -0
- data/packages/webpacker/node_modules/type-fest/base.d.ts +38 -0
- data/packages/webpacker/node_modules/type-fest/index.d.ts +2 -0
- data/packages/webpacker/node_modules/type-fest/license +9 -0
- data/packages/webpacker/node_modules/type-fest/package.json +58 -0
- data/packages/webpacker/node_modules/type-fest/readme.md +658 -0
- data/packages/webpacker/node_modules/type-fest/source/async-return-type.d.ts +23 -0
- data/packages/webpacker/node_modules/type-fest/source/asyncify.d.ts +31 -0
- data/packages/webpacker/node_modules/type-fest/source/basic.d.ts +67 -0
- data/packages/webpacker/node_modules/type-fest/source/conditional-except.d.ts +43 -0
- data/packages/webpacker/node_modules/type-fest/source/conditional-keys.d.ts +43 -0
- data/packages/webpacker/node_modules/type-fest/source/conditional-pick.d.ts +42 -0
- data/packages/webpacker/node_modules/type-fest/source/entries.d.ts +57 -0
- data/packages/webpacker/node_modules/type-fest/source/entry.d.ts +60 -0
- data/packages/webpacker/node_modules/type-fest/source/except.d.ts +22 -0
- data/packages/webpacker/node_modules/type-fest/source/fixed-length-array.d.ts +38 -0
- data/packages/webpacker/node_modules/type-fest/source/iterable-element.d.ts +46 -0
- data/packages/webpacker/node_modules/type-fest/source/literal-union.d.ts +33 -0
- data/packages/webpacker/node_modules/type-fest/source/merge-exclusive.d.ts +39 -0
- data/packages/webpacker/node_modules/type-fest/source/merge.d.ts +22 -0
- data/packages/webpacker/node_modules/type-fest/source/mutable.d.ts +22 -0
- data/packages/webpacker/node_modules/type-fest/source/opaque.d.ts +65 -0
- data/packages/webpacker/node_modules/type-fest/source/package-json.d.ts +611 -0
- data/packages/webpacker/node_modules/type-fest/source/partial-deep.d.ts +72 -0
- data/packages/webpacker/node_modules/type-fest/source/promisable.d.ts +23 -0
- data/packages/webpacker/node_modules/type-fest/source/promise-value.d.ts +27 -0
- data/packages/webpacker/node_modules/type-fest/source/readonly-deep.d.ts +59 -0
- data/packages/webpacker/node_modules/type-fest/source/require-at-least-one.d.ts +33 -0
- data/packages/webpacker/node_modules/type-fest/source/require-exactly-one.d.ts +35 -0
- data/packages/webpacker/node_modules/type-fest/source/set-optional.d.ts +34 -0
- data/packages/webpacker/node_modules/type-fest/source/set-required.d.ts +34 -0
- data/packages/webpacker/node_modules/type-fest/source/set-return-type.d.ts +29 -0
- data/packages/webpacker/node_modules/type-fest/source/stringified.d.ts +21 -0
- data/packages/webpacker/node_modules/type-fest/source/tsconfig-json.d.ts +870 -0
- data/packages/webpacker/node_modules/type-fest/source/union-to-intersection.d.ts +58 -0
- data/packages/webpacker/node_modules/type-fest/source/utilities.d.ts +3 -0
- data/packages/webpacker/node_modules/type-fest/source/value-of.d.ts +40 -0
- data/packages/webpacker/node_modules/type-fest/ts41/camel-case.d.ts +72 -0
- data/packages/webpacker/node_modules/type-fest/ts41/delimiter-case.d.ts +85 -0
- data/packages/webpacker/node_modules/type-fest/ts41/index.d.ts +9 -0
- data/packages/webpacker/node_modules/type-fest/ts41/kebab-case.d.ts +36 -0
- data/packages/webpacker/node_modules/type-fest/ts41/pascal-case.d.ts +36 -0
- data/packages/webpacker/node_modules/type-fest/ts41/snake-case.d.ts +35 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/CHANGELOG.md +380 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/LICENSE.txt +14 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/README.md +90 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/index.d.ts +25 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/index.js +5 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/lib/branch.js +28 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/lib/function.js +29 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/lib/line.js +34 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/lib/range.js +33 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/lib/source.js +245 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/lib/v8-to-istanbul.js +318 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/CHANGELOG.md +344 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/LICENSE +28 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/README.md +822 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/dist/source-map.js +3351 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/array-set.js +100 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/base64-vlq.js +111 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/base64.js +18 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/binary-search.js +107 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/mapping-list.js +80 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/mappings.wasm +0 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/read-wasm.js +40 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-consumer.js +1254 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-generator.js +413 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-node.js +404 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/util.js +546 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/lib/wasm.js +107 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/package.json +90 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/source-map.d.ts +369 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/node_modules/source-map/source-map.js +8 -0
- data/packages/webpacker/node_modules/v8-to-istanbul/package.json +48 -0
- data/packages/webpacker/node_modules/wrap-ansi/index.js +216 -0
- data/packages/webpacker/node_modules/wrap-ansi/license +9 -0
- data/packages/webpacker/node_modules/wrap-ansi/package.json +62 -0
- data/packages/webpacker/node_modules/wrap-ansi/readme.md +91 -0
- data/packages/webpacker/node_modules/y18n/CHANGELOG.md +100 -0
- data/packages/webpacker/node_modules/y18n/LICENSE +13 -0
- data/packages/webpacker/node_modules/y18n/README.md +127 -0
- data/packages/webpacker/node_modules/y18n/build/index.cjs +203 -0
- data/packages/webpacker/node_modules/y18n/build/lib/cjs.js +6 -0
- data/packages/webpacker/node_modules/y18n/build/lib/index.js +174 -0
- data/packages/webpacker/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
- data/packages/webpacker/node_modules/y18n/index.mjs +8 -0
- data/packages/webpacker/node_modules/y18n/package.json +70 -0
- data/packages/webpacker/node_modules/yargs/CHANGELOG.md +88 -0
- data/packages/webpacker/node_modules/yargs/LICENSE +21 -0
- data/packages/webpacker/node_modules/yargs/README.md +202 -0
- data/packages/webpacker/node_modules/yargs/browser.mjs +7 -0
- data/packages/webpacker/node_modules/yargs/build/index.cjs +2920 -0
- data/packages/webpacker/node_modules/yargs/build/lib/argsert.js +62 -0
- data/packages/webpacker/node_modules/yargs/build/lib/command.js +382 -0
- data/packages/webpacker/node_modules/yargs/build/lib/completion-templates.js +47 -0
- data/packages/webpacker/node_modules/yargs/build/lib/completion.js +128 -0
- data/packages/webpacker/node_modules/yargs/build/lib/middleware.js +53 -0
- data/packages/webpacker/node_modules/yargs/build/lib/parse-command.js +32 -0
- data/packages/webpacker/node_modules/yargs/build/lib/typings/common-types.js +9 -0
- data/packages/webpacker/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
- data/packages/webpacker/node_modules/yargs/build/lib/usage.js +548 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/levenshtein.js +26 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
- data/packages/webpacker/node_modules/yargs/build/lib/utils/which-module.js +10 -0
- data/packages/webpacker/node_modules/yargs/build/lib/validation.js +308 -0
- data/packages/webpacker/node_modules/yargs/build/lib/yargs-factory.js +1143 -0
- data/packages/webpacker/node_modules/yargs/build/lib/yerror.js +7 -0
- data/packages/webpacker/node_modules/yargs/helpers/helpers.mjs +10 -0
- data/packages/webpacker/node_modules/yargs/helpers/index.js +14 -0
- data/packages/webpacker/node_modules/yargs/helpers/package.json +3 -0
- data/packages/webpacker/node_modules/yargs/index.cjs +39 -0
- data/packages/webpacker/node_modules/yargs/index.mjs +8 -0
- data/packages/webpacker/node_modules/yargs/lib/platform-shims/browser.mjs +92 -0
- data/packages/webpacker/node_modules/yargs/lib/platform-shims/esm.mjs +67 -0
- data/packages/webpacker/node_modules/yargs/locales/be.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/de.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/en.json +51 -0
- data/packages/webpacker/node_modules/yargs/locales/es.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/fi.json +49 -0
- data/packages/webpacker/node_modules/yargs/locales/fr.json +53 -0
- data/packages/webpacker/node_modules/yargs/locales/hi.json +49 -0
- data/packages/webpacker/node_modules/yargs/locales/hu.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/id.json +50 -0
- data/packages/webpacker/node_modules/yargs/locales/it.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/ja.json +51 -0
- data/packages/webpacker/node_modules/yargs/locales/ko.json +49 -0
- data/packages/webpacker/node_modules/yargs/locales/nb.json +44 -0
- data/packages/webpacker/node_modules/yargs/locales/nl.json +49 -0
- data/packages/webpacker/node_modules/yargs/locales/nn.json +44 -0
- data/packages/webpacker/node_modules/yargs/locales/pirate.json +13 -0
- data/packages/webpacker/node_modules/yargs/locales/pl.json +49 -0
- data/packages/webpacker/node_modules/yargs/locales/pt.json +45 -0
- data/packages/webpacker/node_modules/yargs/locales/pt_BR.json +48 -0
- data/packages/webpacker/node_modules/yargs/locales/ru.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/th.json +46 -0
- data/packages/webpacker/node_modules/yargs/locales/tr.json +48 -0
- data/packages/webpacker/node_modules/yargs/locales/zh_CN.json +48 -0
- data/packages/webpacker/node_modules/yargs/locales/zh_TW.json +47 -0
- data/packages/webpacker/node_modules/yargs/package.json +122 -0
- data/packages/webpacker/node_modules/yargs/yargs +9 -0
- data/packages/webpacker/node_modules/yargs-parser/CHANGELOG.md +263 -0
- data/packages/webpacker/node_modules/yargs-parser/LICENSE.txt +14 -0
- data/packages/webpacker/node_modules/yargs-parser/README.md +518 -0
- data/packages/webpacker/node_modules/yargs-parser/browser.js +29 -0
- data/packages/webpacker/node_modules/yargs-parser/build/index.cjs +1042 -0
- data/packages/webpacker/node_modules/yargs-parser/build/lib/index.js +59 -0
- data/packages/webpacker/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
- data/packages/webpacker/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
- data/packages/webpacker/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
- data/packages/webpacker/node_modules/yargs-parser/build/lib/yargs-parser.js +1037 -0
- data/packages/webpacker/node_modules/yargs-parser/package.json +87 -0
- data/packages/webpacker/package.json +1 -1
- metadata +1641 -42
@@ -0,0 +1,2240 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var assert = require('assert');
|
6
|
+
var estraverse = require('estraverse');
|
7
|
+
var esrecurse = require('esrecurse');
|
8
|
+
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
10
|
+
|
11
|
+
var assert__default = /*#__PURE__*/_interopDefaultLegacy(assert);
|
12
|
+
var estraverse__default = /*#__PURE__*/_interopDefaultLegacy(estraverse);
|
13
|
+
var esrecurse__default = /*#__PURE__*/_interopDefaultLegacy(esrecurse);
|
14
|
+
|
15
|
+
/*
|
16
|
+
Copyright (C) 2015 Yusuke Suzuki <utatane.tea@gmail.com>
|
17
|
+
|
18
|
+
Redistribution and use in source and binary forms, with or without
|
19
|
+
modification, are permitted provided that the following conditions are met:
|
20
|
+
|
21
|
+
* Redistributions of source code must retain the above copyright
|
22
|
+
notice, this list of conditions and the following disclaimer.
|
23
|
+
* Redistributions in binary form must reproduce the above copyright
|
24
|
+
notice, this list of conditions and the following disclaimer in the
|
25
|
+
documentation and/or other materials provided with the distribution.
|
26
|
+
|
27
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
28
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
29
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
30
|
+
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
31
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
32
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
33
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
34
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
35
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
36
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
37
|
+
*/
|
38
|
+
|
39
|
+
const READ = 0x1;
|
40
|
+
const WRITE = 0x2;
|
41
|
+
const RW = READ | WRITE;
|
42
|
+
|
43
|
+
/**
|
44
|
+
* A Reference represents a single occurrence of an identifier in code.
|
45
|
+
* @constructor Reference
|
46
|
+
*/
|
47
|
+
class Reference {
|
48
|
+
constructor(ident, scope, flag, writeExpr, maybeImplicitGlobal, partial, init) {
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Identifier syntax node.
|
52
|
+
* @member {espreeIdentifier} Reference#identifier
|
53
|
+
*/
|
54
|
+
this.identifier = ident;
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Reference to the enclosing Scope.
|
58
|
+
* @member {Scope} Reference#from
|
59
|
+
*/
|
60
|
+
this.from = scope;
|
61
|
+
|
62
|
+
/**
|
63
|
+
* Whether the reference comes from a dynamic scope (such as 'eval',
|
64
|
+
* 'with', etc.), and may be trapped by dynamic scopes.
|
65
|
+
* @member {boolean} Reference#tainted
|
66
|
+
*/
|
67
|
+
this.tainted = false;
|
68
|
+
|
69
|
+
/**
|
70
|
+
* The variable this reference is resolved with.
|
71
|
+
* @member {Variable} Reference#resolved
|
72
|
+
*/
|
73
|
+
this.resolved = null;
|
74
|
+
|
75
|
+
/**
|
76
|
+
* The read-write mode of the reference. (Value is one of {@link
|
77
|
+
* Reference.READ}, {@link Reference.RW}, {@link Reference.WRITE}).
|
78
|
+
* @member {number} Reference#flag
|
79
|
+
* @private
|
80
|
+
*/
|
81
|
+
this.flag = flag;
|
82
|
+
if (this.isWrite()) {
|
83
|
+
|
84
|
+
/**
|
85
|
+
* If reference is writeable, this is the tree being written to it.
|
86
|
+
* @member {espreeNode} Reference#writeExpr
|
87
|
+
*/
|
88
|
+
this.writeExpr = writeExpr;
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Whether the Reference might refer to a partial value of writeExpr.
|
92
|
+
* @member {boolean} Reference#partial
|
93
|
+
*/
|
94
|
+
this.partial = partial;
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Whether the Reference is to write of initialization.
|
98
|
+
* @member {boolean} Reference#init
|
99
|
+
*/
|
100
|
+
this.init = init;
|
101
|
+
}
|
102
|
+
this.__maybeImplicitGlobal = maybeImplicitGlobal;
|
103
|
+
}
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Whether the reference is static.
|
107
|
+
* @function Reference#isStatic
|
108
|
+
* @returns {boolean} static
|
109
|
+
*/
|
110
|
+
isStatic() {
|
111
|
+
return !this.tainted && this.resolved && this.resolved.scope.isStatic();
|
112
|
+
}
|
113
|
+
|
114
|
+
/**
|
115
|
+
* Whether the reference is writeable.
|
116
|
+
* @function Reference#isWrite
|
117
|
+
* @returns {boolean} write
|
118
|
+
*/
|
119
|
+
isWrite() {
|
120
|
+
return !!(this.flag & Reference.WRITE);
|
121
|
+
}
|
122
|
+
|
123
|
+
/**
|
124
|
+
* Whether the reference is readable.
|
125
|
+
* @function Reference#isRead
|
126
|
+
* @returns {boolean} read
|
127
|
+
*/
|
128
|
+
isRead() {
|
129
|
+
return !!(this.flag & Reference.READ);
|
130
|
+
}
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Whether the reference is read-only.
|
134
|
+
* @function Reference#isReadOnly
|
135
|
+
* @returns {boolean} read only
|
136
|
+
*/
|
137
|
+
isReadOnly() {
|
138
|
+
return this.flag === Reference.READ;
|
139
|
+
}
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Whether the reference is write-only.
|
143
|
+
* @function Reference#isWriteOnly
|
144
|
+
* @returns {boolean} write only
|
145
|
+
*/
|
146
|
+
isWriteOnly() {
|
147
|
+
return this.flag === Reference.WRITE;
|
148
|
+
}
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Whether the reference is read-write.
|
152
|
+
* @function Reference#isReadWrite
|
153
|
+
* @returns {boolean} read write
|
154
|
+
*/
|
155
|
+
isReadWrite() {
|
156
|
+
return this.flag === Reference.RW;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
/**
|
161
|
+
* @constant Reference.READ
|
162
|
+
* @private
|
163
|
+
*/
|
164
|
+
Reference.READ = READ;
|
165
|
+
|
166
|
+
/**
|
167
|
+
* @constant Reference.WRITE
|
168
|
+
* @private
|
169
|
+
*/
|
170
|
+
Reference.WRITE = WRITE;
|
171
|
+
|
172
|
+
/**
|
173
|
+
* @constant Reference.RW
|
174
|
+
* @private
|
175
|
+
*/
|
176
|
+
Reference.RW = RW;
|
177
|
+
|
178
|
+
/* vim: set sw=4 ts=4 et tw=80 : */
|
179
|
+
|
180
|
+
/*
|
181
|
+
Copyright (C) 2015 Yusuke Suzuki <utatane.tea@gmail.com>
|
182
|
+
|
183
|
+
Redistribution and use in source and binary forms, with or without
|
184
|
+
modification, are permitted provided that the following conditions are met:
|
185
|
+
|
186
|
+
* Redistributions of source code must retain the above copyright
|
187
|
+
notice, this list of conditions and the following disclaimer.
|
188
|
+
* Redistributions in binary form must reproduce the above copyright
|
189
|
+
notice, this list of conditions and the following disclaimer in the
|
190
|
+
documentation and/or other materials provided with the distribution.
|
191
|
+
|
192
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
193
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
194
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
195
|
+
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
196
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
197
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
198
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
199
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
200
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
201
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
202
|
+
*/
|
203
|
+
|
204
|
+
/**
|
205
|
+
* A Variable represents a locally scoped identifier. These include arguments to
|
206
|
+
* functions.
|
207
|
+
* @constructor Variable
|
208
|
+
*/
|
209
|
+
class Variable {
|
210
|
+
constructor(name, scope) {
|
211
|
+
|
212
|
+
/**
|
213
|
+
* The variable name, as given in the source code.
|
214
|
+
* @member {string} Variable#name
|
215
|
+
*/
|
216
|
+
this.name = name;
|
217
|
+
|
218
|
+
/**
|
219
|
+
* List of defining occurrences of this variable (like in 'var ...'
|
220
|
+
* statements or as parameter), as AST nodes.
|
221
|
+
* @member {espree.Identifier[]} Variable#identifiers
|
222
|
+
*/
|
223
|
+
this.identifiers = [];
|
224
|
+
|
225
|
+
/**
|
226
|
+
* List of {@link Reference|references} of this variable (excluding parameter entries)
|
227
|
+
* in its defining scope and all nested scopes. For defining
|
228
|
+
* occurrences only see {@link Variable#defs}.
|
229
|
+
* @member {Reference[]} Variable#references
|
230
|
+
*/
|
231
|
+
this.references = [];
|
232
|
+
|
233
|
+
/**
|
234
|
+
* List of defining occurrences of this variable (like in 'var ...'
|
235
|
+
* statements or as parameter), as custom objects.
|
236
|
+
* @member {Definition[]} Variable#defs
|
237
|
+
*/
|
238
|
+
this.defs = [];
|
239
|
+
|
240
|
+
this.tainted = false;
|
241
|
+
|
242
|
+
/**
|
243
|
+
* Whether this is a stack variable.
|
244
|
+
* @member {boolean} Variable#stack
|
245
|
+
*/
|
246
|
+
this.stack = true;
|
247
|
+
|
248
|
+
/**
|
249
|
+
* Reference to the enclosing Scope.
|
250
|
+
* @member {Scope} Variable#scope
|
251
|
+
*/
|
252
|
+
this.scope = scope;
|
253
|
+
}
|
254
|
+
}
|
255
|
+
|
256
|
+
Variable.CatchClause = "CatchClause";
|
257
|
+
Variable.Parameter = "Parameter";
|
258
|
+
Variable.FunctionName = "FunctionName";
|
259
|
+
Variable.ClassName = "ClassName";
|
260
|
+
Variable.Variable = "Variable";
|
261
|
+
Variable.ImportBinding = "ImportBinding";
|
262
|
+
Variable.ImplicitGlobalVariable = "ImplicitGlobalVariable";
|
263
|
+
|
264
|
+
/* vim: set sw=4 ts=4 et tw=80 : */
|
265
|
+
|
266
|
+
/*
|
267
|
+
Copyright (C) 2015 Yusuke Suzuki <utatane.tea@gmail.com>
|
268
|
+
|
269
|
+
Redistribution and use in source and binary forms, with or without
|
270
|
+
modification, are permitted provided that the following conditions are met:
|
271
|
+
|
272
|
+
* Redistributions of source code must retain the above copyright
|
273
|
+
notice, this list of conditions and the following disclaimer.
|
274
|
+
* Redistributions in binary form must reproduce the above copyright
|
275
|
+
notice, this list of conditions and the following disclaimer in the
|
276
|
+
documentation and/or other materials provided with the distribution.
|
277
|
+
|
278
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
279
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
280
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
281
|
+
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
282
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
283
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
284
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
285
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
286
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
287
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
288
|
+
*/
|
289
|
+
|
290
|
+
/**
|
291
|
+
* @constructor Definition
|
292
|
+
*/
|
293
|
+
class Definition {
|
294
|
+
constructor(type, name, node, parent, index, kind) {
|
295
|
+
|
296
|
+
/**
|
297
|
+
* @member {string} Definition#type - type of the occurrence (e.g. "Parameter", "Variable", ...).
|
298
|
+
*/
|
299
|
+
this.type = type;
|
300
|
+
|
301
|
+
/**
|
302
|
+
* @member {espree.Identifier} Definition#name - the identifier AST node of the occurrence.
|
303
|
+
*/
|
304
|
+
this.name = name;
|
305
|
+
|
306
|
+
/**
|
307
|
+
* @member {espree.Node} Definition#node - the enclosing node of the identifier.
|
308
|
+
*/
|
309
|
+
this.node = node;
|
310
|
+
|
311
|
+
/**
|
312
|
+
* @member {espree.Node?} Definition#parent - the enclosing statement node of the identifier.
|
313
|
+
*/
|
314
|
+
this.parent = parent;
|
315
|
+
|
316
|
+
/**
|
317
|
+
* @member {number?} Definition#index - the index in the declaration statement.
|
318
|
+
*/
|
319
|
+
this.index = index;
|
320
|
+
|
321
|
+
/**
|
322
|
+
* @member {string?} Definition#kind - the kind of the declaration statement.
|
323
|
+
*/
|
324
|
+
this.kind = kind;
|
325
|
+
}
|
326
|
+
}
|
327
|
+
|
328
|
+
/**
|
329
|
+
* @constructor ParameterDefinition
|
330
|
+
*/
|
331
|
+
class ParameterDefinition extends Definition {
|
332
|
+
constructor(name, node, index, rest) {
|
333
|
+
super(Variable.Parameter, name, node, null, index, null);
|
334
|
+
|
335
|
+
/**
|
336
|
+
* Whether the parameter definition is a part of a rest parameter.
|
337
|
+
* @member {boolean} ParameterDefinition#rest
|
338
|
+
*/
|
339
|
+
this.rest = rest;
|
340
|
+
}
|
341
|
+
}
|
342
|
+
|
343
|
+
/* vim: set sw=4 ts=4 et tw=80 : */
|
344
|
+
|
345
|
+
/*
|
346
|
+
Copyright (C) 2015 Yusuke Suzuki <utatane.tea@gmail.com>
|
347
|
+
|
348
|
+
Redistribution and use in source and binary forms, with or without
|
349
|
+
modification, are permitted provided that the following conditions are met:
|
350
|
+
|
351
|
+
* Redistributions of source code must retain the above copyright
|
352
|
+
notice, this list of conditions and the following disclaimer.
|
353
|
+
* Redistributions in binary form must reproduce the above copyright
|
354
|
+
notice, this list of conditions and the following disclaimer in the
|
355
|
+
documentation and/or other materials provided with the distribution.
|
356
|
+
|
357
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
358
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
359
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
360
|
+
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
361
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
362
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
363
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
364
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
365
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
366
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
367
|
+
*/
|
368
|
+
|
369
|
+
const { Syntax: Syntax$2 } = estraverse__default["default"];
|
370
|
+
|
371
|
+
/**
|
372
|
+
* Test if scope is struct
|
373
|
+
* @param {Scope} scope scope
|
374
|
+
* @param {Block} block block
|
375
|
+
* @param {boolean} isMethodDefinition is method definition
|
376
|
+
* @param {boolean} useDirective use directive
|
377
|
+
* @returns {boolean} is strict scope
|
378
|
+
*/
|
379
|
+
function isStrictScope(scope, block, isMethodDefinition, useDirective) {
|
380
|
+
let body;
|
381
|
+
|
382
|
+
// When upper scope is exists and strict, inner scope is also strict.
|
383
|
+
if (scope.upper && scope.upper.isStrict) {
|
384
|
+
return true;
|
385
|
+
}
|
386
|
+
|
387
|
+
if (isMethodDefinition) {
|
388
|
+
return true;
|
389
|
+
}
|
390
|
+
|
391
|
+
if (scope.type === "class" || scope.type === "module") {
|
392
|
+
return true;
|
393
|
+
}
|
394
|
+
|
395
|
+
if (scope.type === "block" || scope.type === "switch") {
|
396
|
+
return false;
|
397
|
+
}
|
398
|
+
|
399
|
+
if (scope.type === "function") {
|
400
|
+
if (block.type === Syntax$2.ArrowFunctionExpression && block.body.type !== Syntax$2.BlockStatement) {
|
401
|
+
return false;
|
402
|
+
}
|
403
|
+
|
404
|
+
if (block.type === Syntax$2.Program) {
|
405
|
+
body = block;
|
406
|
+
} else {
|
407
|
+
body = block.body;
|
408
|
+
}
|
409
|
+
|
410
|
+
if (!body) {
|
411
|
+
return false;
|
412
|
+
}
|
413
|
+
} else if (scope.type === "global") {
|
414
|
+
body = block;
|
415
|
+
} else {
|
416
|
+
return false;
|
417
|
+
}
|
418
|
+
|
419
|
+
// Search 'use strict' directive.
|
420
|
+
if (useDirective) {
|
421
|
+
for (let i = 0, iz = body.body.length; i < iz; ++i) {
|
422
|
+
const stmt = body.body[i];
|
423
|
+
|
424
|
+
if (stmt.type !== Syntax$2.DirectiveStatement) {
|
425
|
+
break;
|
426
|
+
}
|
427
|
+
if (stmt.raw === "\"use strict\"" || stmt.raw === "'use strict'") {
|
428
|
+
return true;
|
429
|
+
}
|
430
|
+
}
|
431
|
+
} else {
|
432
|
+
for (let i = 0, iz = body.body.length; i < iz; ++i) {
|
433
|
+
const stmt = body.body[i];
|
434
|
+
|
435
|
+
if (stmt.type !== Syntax$2.ExpressionStatement) {
|
436
|
+
break;
|
437
|
+
}
|
438
|
+
const expr = stmt.expression;
|
439
|
+
|
440
|
+
if (expr.type !== Syntax$2.Literal || typeof expr.value !== "string") {
|
441
|
+
break;
|
442
|
+
}
|
443
|
+
if (expr.raw !== null && expr.raw !== undefined) {
|
444
|
+
if (expr.raw === "\"use strict\"" || expr.raw === "'use strict'") {
|
445
|
+
return true;
|
446
|
+
}
|
447
|
+
} else {
|
448
|
+
if (expr.value === "use strict") {
|
449
|
+
return true;
|
450
|
+
}
|
451
|
+
}
|
452
|
+
}
|
453
|
+
}
|
454
|
+
return false;
|
455
|
+
}
|
456
|
+
|
457
|
+
/**
|
458
|
+
* Register scope
|
459
|
+
* @param {ScopeManager} scopeManager scope manager
|
460
|
+
* @param {Scope} scope scope
|
461
|
+
* @returns {void}
|
462
|
+
*/
|
463
|
+
function registerScope(scopeManager, scope) {
|
464
|
+
scopeManager.scopes.push(scope);
|
465
|
+
|
466
|
+
const scopes = scopeManager.__nodeToScope.get(scope.block);
|
467
|
+
|
468
|
+
if (scopes) {
|
469
|
+
scopes.push(scope);
|
470
|
+
} else {
|
471
|
+
scopeManager.__nodeToScope.set(scope.block, [scope]);
|
472
|
+
}
|
473
|
+
}
|
474
|
+
|
475
|
+
/**
|
476
|
+
* Should be statically
|
477
|
+
* @param {Object} def def
|
478
|
+
* @returns {boolean} should be statically
|
479
|
+
*/
|
480
|
+
function shouldBeStatically(def) {
|
481
|
+
return (
|
482
|
+
(def.type === Variable.ClassName) ||
|
483
|
+
(def.type === Variable.Variable && def.parent.kind !== "var")
|
484
|
+
);
|
485
|
+
}
|
486
|
+
|
487
|
+
/**
|
488
|
+
* @constructor Scope
|
489
|
+
*/
|
490
|
+
class Scope {
|
491
|
+
constructor(scopeManager, type, upperScope, block, isMethodDefinition) {
|
492
|
+
|
493
|
+
/**
|
494
|
+
* One of "global", "module", "function", "function-expression-name", "block", "switch", "catch", "with", "for",
|
495
|
+
* "class", "class-field-initializer", "class-static-block".
|
496
|
+
* @member {string} Scope#type
|
497
|
+
*/
|
498
|
+
this.type = type;
|
499
|
+
|
500
|
+
/**
|
501
|
+
* The scoped {@link Variable}s of this scope, as <code>{ Variable.name
|
502
|
+
* : Variable }</code>.
|
503
|
+
* @member {Map} Scope#set
|
504
|
+
*/
|
505
|
+
this.set = new Map();
|
506
|
+
|
507
|
+
/**
|
508
|
+
* The tainted variables of this scope, as <code>{ Variable.name :
|
509
|
+
* boolean }</code>.
|
510
|
+
* @member {Map} Scope#taints */
|
511
|
+
this.taints = new Map();
|
512
|
+
|
513
|
+
/**
|
514
|
+
* Generally, through the lexical scoping of JS you can always know
|
515
|
+
* which variable an identifier in the source code refers to. There are
|
516
|
+
* a few exceptions to this rule. With 'global' and 'with' scopes you
|
517
|
+
* can only decide at runtime which variable a reference refers to.
|
518
|
+
* Moreover, if 'eval()' is used in a scope, it might introduce new
|
519
|
+
* bindings in this or its parent scopes.
|
520
|
+
* All those scopes are considered 'dynamic'.
|
521
|
+
* @member {boolean} Scope#dynamic
|
522
|
+
*/
|
523
|
+
this.dynamic = this.type === "global" || this.type === "with";
|
524
|
+
|
525
|
+
/**
|
526
|
+
* A reference to the scope-defining syntax node.
|
527
|
+
* @member {espree.Node} Scope#block
|
528
|
+
*/
|
529
|
+
this.block = block;
|
530
|
+
|
531
|
+
/**
|
532
|
+
* The {@link Reference|references} that are not resolved with this scope.
|
533
|
+
* @member {Reference[]} Scope#through
|
534
|
+
*/
|
535
|
+
this.through = [];
|
536
|
+
|
537
|
+
/**
|
538
|
+
* The scoped {@link Variable}s of this scope. In the case of a
|
539
|
+
* 'function' scope this includes the automatic argument <em>arguments</em> as
|
540
|
+
* its first element, as well as all further formal arguments.
|
541
|
+
* @member {Variable[]} Scope#variables
|
542
|
+
*/
|
543
|
+
this.variables = [];
|
544
|
+
|
545
|
+
/**
|
546
|
+
* Any variable {@link Reference|reference} found in this scope. This
|
547
|
+
* includes occurrences of local variables as well as variables from
|
548
|
+
* parent scopes (including the global scope). For local variables
|
549
|
+
* this also includes defining occurrences (like in a 'var' statement).
|
550
|
+
* In a 'function' scope this does not include the occurrences of the
|
551
|
+
* formal parameter in the parameter list.
|
552
|
+
* @member {Reference[]} Scope#references
|
553
|
+
*/
|
554
|
+
this.references = [];
|
555
|
+
|
556
|
+
/**
|
557
|
+
* For 'global' and 'function' scopes, this is a self-reference. For
|
558
|
+
* other scope types this is the <em>variableScope</em> value of the
|
559
|
+
* parent scope.
|
560
|
+
* @member {Scope} Scope#variableScope
|
561
|
+
*/
|
562
|
+
this.variableScope =
|
563
|
+
this.type === "global" ||
|
564
|
+
this.type === "module" ||
|
565
|
+
this.type === "function" ||
|
566
|
+
this.type === "class-field-initializer" ||
|
567
|
+
this.type === "class-static-block"
|
568
|
+
? this
|
569
|
+
: upperScope.variableScope;
|
570
|
+
|
571
|
+
/**
|
572
|
+
* Whether this scope is created by a FunctionExpression.
|
573
|
+
* @member {boolean} Scope#functionExpressionScope
|
574
|
+
*/
|
575
|
+
this.functionExpressionScope = false;
|
576
|
+
|
577
|
+
/**
|
578
|
+
* Whether this is a scope that contains an 'eval()' invocation.
|
579
|
+
* @member {boolean} Scope#directCallToEvalScope
|
580
|
+
*/
|
581
|
+
this.directCallToEvalScope = false;
|
582
|
+
|
583
|
+
/**
|
584
|
+
* @member {boolean} Scope#thisFound
|
585
|
+
*/
|
586
|
+
this.thisFound = false;
|
587
|
+
|
588
|
+
this.__left = [];
|
589
|
+
|
590
|
+
/**
|
591
|
+
* Reference to the parent {@link Scope|scope}.
|
592
|
+
* @member {Scope} Scope#upper
|
593
|
+
*/
|
594
|
+
this.upper = upperScope;
|
595
|
+
|
596
|
+
/**
|
597
|
+
* Whether 'use strict' is in effect in this scope.
|
598
|
+
* @member {boolean} Scope#isStrict
|
599
|
+
*/
|
600
|
+
this.isStrict = scopeManager.isStrictModeSupported()
|
601
|
+
? isStrictScope(this, block, isMethodDefinition, scopeManager.__useDirective())
|
602
|
+
: false;
|
603
|
+
|
604
|
+
/**
|
605
|
+
* List of nested {@link Scope}s.
|
606
|
+
* @member {Scope[]} Scope#childScopes
|
607
|
+
*/
|
608
|
+
this.childScopes = [];
|
609
|
+
if (this.upper) {
|
610
|
+
this.upper.childScopes.push(this);
|
611
|
+
}
|
612
|
+
|
613
|
+
this.__declaredVariables = scopeManager.__declaredVariables;
|
614
|
+
|
615
|
+
registerScope(scopeManager, this);
|
616
|
+
}
|
617
|
+
|
618
|
+
__shouldStaticallyClose(scopeManager) {
|
619
|
+
return (!this.dynamic || scopeManager.__isOptimistic());
|
620
|
+
}
|
621
|
+
|
622
|
+
__shouldStaticallyCloseForGlobal(ref) {
|
623
|
+
|
624
|
+
// On global scope, let/const/class declarations should be resolved statically.
|
625
|
+
const name = ref.identifier.name;
|
626
|
+
|
627
|
+
if (!this.set.has(name)) {
|
628
|
+
return false;
|
629
|
+
}
|
630
|
+
|
631
|
+
const variable = this.set.get(name);
|
632
|
+
const defs = variable.defs;
|
633
|
+
|
634
|
+
return defs.length > 0 && defs.every(shouldBeStatically);
|
635
|
+
}
|
636
|
+
|
637
|
+
__staticCloseRef(ref) {
|
638
|
+
if (!this.__resolve(ref)) {
|
639
|
+
this.__delegateToUpperScope(ref);
|
640
|
+
}
|
641
|
+
}
|
642
|
+
|
643
|
+
__dynamicCloseRef(ref) {
|
644
|
+
|
645
|
+
// notify all names are through to global
|
646
|
+
let current = this;
|
647
|
+
|
648
|
+
do {
|
649
|
+
current.through.push(ref);
|
650
|
+
current = current.upper;
|
651
|
+
} while (current);
|
652
|
+
}
|
653
|
+
|
654
|
+
__globalCloseRef(ref) {
|
655
|
+
|
656
|
+
// let/const/class declarations should be resolved statically.
|
657
|
+
// others should be resolved dynamically.
|
658
|
+
if (this.__shouldStaticallyCloseForGlobal(ref)) {
|
659
|
+
this.__staticCloseRef(ref);
|
660
|
+
} else {
|
661
|
+
this.__dynamicCloseRef(ref);
|
662
|
+
}
|
663
|
+
}
|
664
|
+
|
665
|
+
__close(scopeManager) {
|
666
|
+
let closeRef;
|
667
|
+
|
668
|
+
if (this.__shouldStaticallyClose(scopeManager)) {
|
669
|
+
closeRef = this.__staticCloseRef;
|
670
|
+
} else if (this.type !== "global") {
|
671
|
+
closeRef = this.__dynamicCloseRef;
|
672
|
+
} else {
|
673
|
+
closeRef = this.__globalCloseRef;
|
674
|
+
}
|
675
|
+
|
676
|
+
// Try Resolving all references in this scope.
|
677
|
+
for (let i = 0, iz = this.__left.length; i < iz; ++i) {
|
678
|
+
const ref = this.__left[i];
|
679
|
+
|
680
|
+
closeRef.call(this, ref);
|
681
|
+
}
|
682
|
+
this.__left = null;
|
683
|
+
|
684
|
+
return this.upper;
|
685
|
+
}
|
686
|
+
|
687
|
+
// To override by function scopes.
|
688
|
+
// References in default parameters isn't resolved to variables which are in their function body.
|
689
|
+
__isValidResolution(ref, variable) { // eslint-disable-line class-methods-use-this, no-unused-vars
|
690
|
+
return true;
|
691
|
+
}
|
692
|
+
|
693
|
+
__resolve(ref) {
|
694
|
+
const name = ref.identifier.name;
|
695
|
+
|
696
|
+
if (!this.set.has(name)) {
|
697
|
+
return false;
|
698
|
+
}
|
699
|
+
const variable = this.set.get(name);
|
700
|
+
|
701
|
+
if (!this.__isValidResolution(ref, variable)) {
|
702
|
+
return false;
|
703
|
+
}
|
704
|
+
variable.references.push(ref);
|
705
|
+
variable.stack = variable.stack && ref.from.variableScope === this.variableScope;
|
706
|
+
if (ref.tainted) {
|
707
|
+
variable.tainted = true;
|
708
|
+
this.taints.set(variable.name, true);
|
709
|
+
}
|
710
|
+
ref.resolved = variable;
|
711
|
+
|
712
|
+
return true;
|
713
|
+
}
|
714
|
+
|
715
|
+
__delegateToUpperScope(ref) {
|
716
|
+
if (this.upper) {
|
717
|
+
this.upper.__left.push(ref);
|
718
|
+
}
|
719
|
+
this.through.push(ref);
|
720
|
+
}
|
721
|
+
|
722
|
+
__addDeclaredVariablesOfNode(variable, node) {
|
723
|
+
if (node === null || node === undefined) {
|
724
|
+
return;
|
725
|
+
}
|
726
|
+
|
727
|
+
let variables = this.__declaredVariables.get(node);
|
728
|
+
|
729
|
+
if (variables === null || variables === undefined) {
|
730
|
+
variables = [];
|
731
|
+
this.__declaredVariables.set(node, variables);
|
732
|
+
}
|
733
|
+
if (variables.indexOf(variable) === -1) {
|
734
|
+
variables.push(variable);
|
735
|
+
}
|
736
|
+
}
|
737
|
+
|
738
|
+
__defineGeneric(name, set, variables, node, def) {
|
739
|
+
let variable;
|
740
|
+
|
741
|
+
variable = set.get(name);
|
742
|
+
if (!variable) {
|
743
|
+
variable = new Variable(name, this);
|
744
|
+
set.set(name, variable);
|
745
|
+
variables.push(variable);
|
746
|
+
}
|
747
|
+
|
748
|
+
if (def) {
|
749
|
+
variable.defs.push(def);
|
750
|
+
this.__addDeclaredVariablesOfNode(variable, def.node);
|
751
|
+
this.__addDeclaredVariablesOfNode(variable, def.parent);
|
752
|
+
}
|
753
|
+
if (node) {
|
754
|
+
variable.identifiers.push(node);
|
755
|
+
}
|
756
|
+
}
|
757
|
+
|
758
|
+
__define(node, def) {
|
759
|
+
if (node && node.type === Syntax$2.Identifier) {
|
760
|
+
this.__defineGeneric(
|
761
|
+
node.name,
|
762
|
+
this.set,
|
763
|
+
this.variables,
|
764
|
+
node,
|
765
|
+
def
|
766
|
+
);
|
767
|
+
}
|
768
|
+
}
|
769
|
+
|
770
|
+
__referencing(node, assign, writeExpr, maybeImplicitGlobal, partial, init) {
|
771
|
+
|
772
|
+
// because Array element may be null
|
773
|
+
if (!node || node.type !== Syntax$2.Identifier) {
|
774
|
+
return;
|
775
|
+
}
|
776
|
+
|
777
|
+
// Specially handle like `this`.
|
778
|
+
if (node.name === "super") {
|
779
|
+
return;
|
780
|
+
}
|
781
|
+
|
782
|
+
const ref = new Reference(node, this, assign || Reference.READ, writeExpr, maybeImplicitGlobal, !!partial, !!init);
|
783
|
+
|
784
|
+
this.references.push(ref);
|
785
|
+
this.__left.push(ref);
|
786
|
+
}
|
787
|
+
|
788
|
+
__detectEval() {
|
789
|
+
let current = this;
|
790
|
+
|
791
|
+
this.directCallToEvalScope = true;
|
792
|
+
do {
|
793
|
+
current.dynamic = true;
|
794
|
+
current = current.upper;
|
795
|
+
} while (current);
|
796
|
+
}
|
797
|
+
|
798
|
+
__detectThis() {
|
799
|
+
this.thisFound = true;
|
800
|
+
}
|
801
|
+
|
802
|
+
__isClosed() {
|
803
|
+
return this.__left === null;
|
804
|
+
}
|
805
|
+
|
806
|
+
/**
|
807
|
+
* returns resolved {Reference}
|
808
|
+
* @function Scope#resolve
|
809
|
+
* @param {Espree.Identifier} ident identifier to be resolved.
|
810
|
+
* @returns {Reference} reference
|
811
|
+
*/
|
812
|
+
resolve(ident) {
|
813
|
+
let ref, i, iz;
|
814
|
+
|
815
|
+
assert__default["default"](this.__isClosed(), "Scope should be closed.");
|
816
|
+
assert__default["default"](ident.type === Syntax$2.Identifier, "Target should be identifier.");
|
817
|
+
for (i = 0, iz = this.references.length; i < iz; ++i) {
|
818
|
+
ref = this.references[i];
|
819
|
+
if (ref.identifier === ident) {
|
820
|
+
return ref;
|
821
|
+
}
|
822
|
+
}
|
823
|
+
return null;
|
824
|
+
}
|
825
|
+
|
826
|
+
/**
|
827
|
+
* returns this scope is static
|
828
|
+
* @function Scope#isStatic
|
829
|
+
* @returns {boolean} static
|
830
|
+
*/
|
831
|
+
isStatic() {
|
832
|
+
return !this.dynamic;
|
833
|
+
}
|
834
|
+
|
835
|
+
/**
|
836
|
+
* returns this scope has materialized arguments
|
837
|
+
* @function Scope#isArgumentsMaterialized
|
838
|
+
* @returns {boolean} arguemnts materialized
|
839
|
+
*/
|
840
|
+
isArgumentsMaterialized() { // eslint-disable-line class-methods-use-this
|
841
|
+
return true;
|
842
|
+
}
|
843
|
+
|
844
|
+
/**
|
845
|
+
* returns this scope has materialized `this` reference
|
846
|
+
* @function Scope#isThisMaterialized
|
847
|
+
* @returns {boolean} this materialized
|
848
|
+
*/
|
849
|
+
isThisMaterialized() { // eslint-disable-line class-methods-use-this
|
850
|
+
return true;
|
851
|
+
}
|
852
|
+
|
853
|
+
isUsedName(name) {
|
854
|
+
if (this.set.has(name)) {
|
855
|
+
return true;
|
856
|
+
}
|
857
|
+
for (let i = 0, iz = this.through.length; i < iz; ++i) {
|
858
|
+
if (this.through[i].identifier.name === name) {
|
859
|
+
return true;
|
860
|
+
}
|
861
|
+
}
|
862
|
+
return false;
|
863
|
+
}
|
864
|
+
}
|
865
|
+
|
866
|
+
class GlobalScope extends Scope {
|
867
|
+
constructor(scopeManager, block) {
|
868
|
+
super(scopeManager, "global", null, block, false);
|
869
|
+
this.implicit = {
|
870
|
+
set: new Map(),
|
871
|
+
variables: [],
|
872
|
+
|
873
|
+
/**
|
874
|
+
* List of {@link Reference}s that are left to be resolved (i.e. which
|
875
|
+
* need to be linked to the variable they refer to).
|
876
|
+
* @member {Reference[]} Scope#implicit#left
|
877
|
+
*/
|
878
|
+
left: []
|
879
|
+
};
|
880
|
+
}
|
881
|
+
|
882
|
+
__close(scopeManager) {
|
883
|
+
const implicit = [];
|
884
|
+
|
885
|
+
for (let i = 0, iz = this.__left.length; i < iz; ++i) {
|
886
|
+
const ref = this.__left[i];
|
887
|
+
|
888
|
+
if (ref.__maybeImplicitGlobal && !this.set.has(ref.identifier.name)) {
|
889
|
+
implicit.push(ref.__maybeImplicitGlobal);
|
890
|
+
}
|
891
|
+
}
|
892
|
+
|
893
|
+
// create an implicit global variable from assignment expression
|
894
|
+
for (let i = 0, iz = implicit.length; i < iz; ++i) {
|
895
|
+
const info = implicit[i];
|
896
|
+
|
897
|
+
this.__defineImplicit(info.pattern,
|
898
|
+
new Definition(
|
899
|
+
Variable.ImplicitGlobalVariable,
|
900
|
+
info.pattern,
|
901
|
+
info.node,
|
902
|
+
null,
|
903
|
+
null,
|
904
|
+
null
|
905
|
+
));
|
906
|
+
|
907
|
+
}
|
908
|
+
|
909
|
+
this.implicit.left = this.__left;
|
910
|
+
|
911
|
+
return super.__close(scopeManager);
|
912
|
+
}
|
913
|
+
|
914
|
+
__defineImplicit(node, def) {
|
915
|
+
if (node && node.type === Syntax$2.Identifier) {
|
916
|
+
this.__defineGeneric(
|
917
|
+
node.name,
|
918
|
+
this.implicit.set,
|
919
|
+
this.implicit.variables,
|
920
|
+
node,
|
921
|
+
def
|
922
|
+
);
|
923
|
+
}
|
924
|
+
}
|
925
|
+
}
|
926
|
+
|
927
|
+
class ModuleScope extends Scope {
|
928
|
+
constructor(scopeManager, upperScope, block) {
|
929
|
+
super(scopeManager, "module", upperScope, block, false);
|
930
|
+
}
|
931
|
+
}
|
932
|
+
|
933
|
+
class FunctionExpressionNameScope extends Scope {
|
934
|
+
constructor(scopeManager, upperScope, block) {
|
935
|
+
super(scopeManager, "function-expression-name", upperScope, block, false);
|
936
|
+
this.__define(block.id,
|
937
|
+
new Definition(
|
938
|
+
Variable.FunctionName,
|
939
|
+
block.id,
|
940
|
+
block,
|
941
|
+
null,
|
942
|
+
null,
|
943
|
+
null
|
944
|
+
));
|
945
|
+
this.functionExpressionScope = true;
|
946
|
+
}
|
947
|
+
}
|
948
|
+
|
949
|
+
class CatchScope extends Scope {
|
950
|
+
constructor(scopeManager, upperScope, block) {
|
951
|
+
super(scopeManager, "catch", upperScope, block, false);
|
952
|
+
}
|
953
|
+
}
|
954
|
+
|
955
|
+
class WithScope extends Scope {
|
956
|
+
constructor(scopeManager, upperScope, block) {
|
957
|
+
super(scopeManager, "with", upperScope, block, false);
|
958
|
+
}
|
959
|
+
|
960
|
+
__close(scopeManager) {
|
961
|
+
if (this.__shouldStaticallyClose(scopeManager)) {
|
962
|
+
return super.__close(scopeManager);
|
963
|
+
}
|
964
|
+
|
965
|
+
for (let i = 0, iz = this.__left.length; i < iz; ++i) {
|
966
|
+
const ref = this.__left[i];
|
967
|
+
|
968
|
+
ref.tainted = true;
|
969
|
+
this.__delegateToUpperScope(ref);
|
970
|
+
}
|
971
|
+
this.__left = null;
|
972
|
+
|
973
|
+
return this.upper;
|
974
|
+
}
|
975
|
+
}
|
976
|
+
|
977
|
+
class BlockScope extends Scope {
|
978
|
+
constructor(scopeManager, upperScope, block) {
|
979
|
+
super(scopeManager, "block", upperScope, block, false);
|
980
|
+
}
|
981
|
+
}
|
982
|
+
|
983
|
+
class SwitchScope extends Scope {
|
984
|
+
constructor(scopeManager, upperScope, block) {
|
985
|
+
super(scopeManager, "switch", upperScope, block, false);
|
986
|
+
}
|
987
|
+
}
|
988
|
+
|
989
|
+
class FunctionScope extends Scope {
|
990
|
+
constructor(scopeManager, upperScope, block, isMethodDefinition) {
|
991
|
+
super(scopeManager, "function", upperScope, block, isMethodDefinition);
|
992
|
+
|
993
|
+
// section 9.2.13, FunctionDeclarationInstantiation.
|
994
|
+
// NOTE Arrow functions never have an arguments objects.
|
995
|
+
if (this.block.type !== Syntax$2.ArrowFunctionExpression) {
|
996
|
+
this.__defineArguments();
|
997
|
+
}
|
998
|
+
}
|
999
|
+
|
1000
|
+
isArgumentsMaterialized() {
|
1001
|
+
|
1002
|
+
// TODO(Constellation)
|
1003
|
+
// We can more aggressive on this condition like this.
|
1004
|
+
//
|
1005
|
+
// function t() {
|
1006
|
+
// // arguments of t is always hidden.
|
1007
|
+
// function arguments() {
|
1008
|
+
// }
|
1009
|
+
// }
|
1010
|
+
if (this.block.type === Syntax$2.ArrowFunctionExpression) {
|
1011
|
+
return false;
|
1012
|
+
}
|
1013
|
+
|
1014
|
+
if (!this.isStatic()) {
|
1015
|
+
return true;
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
const variable = this.set.get("arguments");
|
1019
|
+
|
1020
|
+
assert__default["default"](variable, "Always have arguments variable.");
|
1021
|
+
return variable.tainted || variable.references.length !== 0;
|
1022
|
+
}
|
1023
|
+
|
1024
|
+
isThisMaterialized() {
|
1025
|
+
if (!this.isStatic()) {
|
1026
|
+
return true;
|
1027
|
+
}
|
1028
|
+
return this.thisFound;
|
1029
|
+
}
|
1030
|
+
|
1031
|
+
__defineArguments() {
|
1032
|
+
this.__defineGeneric(
|
1033
|
+
"arguments",
|
1034
|
+
this.set,
|
1035
|
+
this.variables,
|
1036
|
+
null,
|
1037
|
+
null
|
1038
|
+
);
|
1039
|
+
this.taints.set("arguments", true);
|
1040
|
+
}
|
1041
|
+
|
1042
|
+
// References in default parameters isn't resolved to variables which are in their function body.
|
1043
|
+
// const x = 1
|
1044
|
+
// function f(a = x) { // This `x` is resolved to the `x` in the outer scope.
|
1045
|
+
// const x = 2
|
1046
|
+
// console.log(a)
|
1047
|
+
// }
|
1048
|
+
__isValidResolution(ref, variable) {
|
1049
|
+
|
1050
|
+
// If `options.nodejsScope` is true, `this.block` becomes a Program node.
|
1051
|
+
if (this.block.type === "Program") {
|
1052
|
+
return true;
|
1053
|
+
}
|
1054
|
+
|
1055
|
+
const bodyStart = this.block.body.range[0];
|
1056
|
+
|
1057
|
+
// It's invalid resolution in the following case:
|
1058
|
+
return !(
|
1059
|
+
variable.scope === this &&
|
1060
|
+
ref.identifier.range[0] < bodyStart && // the reference is in the parameter part.
|
1061
|
+
variable.defs.every(d => d.name.range[0] >= bodyStart) // the variable is in the body.
|
1062
|
+
);
|
1063
|
+
}
|
1064
|
+
}
|
1065
|
+
|
1066
|
+
class ForScope extends Scope {
|
1067
|
+
constructor(scopeManager, upperScope, block) {
|
1068
|
+
super(scopeManager, "for", upperScope, block, false);
|
1069
|
+
}
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
class ClassScope extends Scope {
|
1073
|
+
constructor(scopeManager, upperScope, block) {
|
1074
|
+
super(scopeManager, "class", upperScope, block, false);
|
1075
|
+
}
|
1076
|
+
}
|
1077
|
+
|
1078
|
+
class ClassFieldInitializerScope extends Scope {
|
1079
|
+
constructor(scopeManager, upperScope, block) {
|
1080
|
+
super(scopeManager, "class-field-initializer", upperScope, block, true);
|
1081
|
+
}
|
1082
|
+
}
|
1083
|
+
|
1084
|
+
class ClassStaticBlockScope extends Scope {
|
1085
|
+
constructor(scopeManager, upperScope, block) {
|
1086
|
+
super(scopeManager, "class-static-block", upperScope, block, true);
|
1087
|
+
}
|
1088
|
+
}
|
1089
|
+
|
1090
|
+
/* vim: set sw=4 ts=4 et tw=80 : */
|
1091
|
+
|
1092
|
+
/*
|
1093
|
+
Copyright (C) 2015 Yusuke Suzuki <utatane.tea@gmail.com>
|
1094
|
+
|
1095
|
+
Redistribution and use in source and binary forms, with or without
|
1096
|
+
modification, are permitted provided that the following conditions are met:
|
1097
|
+
|
1098
|
+
* Redistributions of source code must retain the above copyright
|
1099
|
+
notice, this list of conditions and the following disclaimer.
|
1100
|
+
* Redistributions in binary form must reproduce the above copyright
|
1101
|
+
notice, this list of conditions and the following disclaimer in the
|
1102
|
+
documentation and/or other materials provided with the distribution.
|
1103
|
+
|
1104
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
1105
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
1106
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
1107
|
+
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
1108
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
1109
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
1110
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
1111
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
1112
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
1113
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
1114
|
+
*/
|
1115
|
+
|
1116
|
+
/**
|
1117
|
+
* @constructor ScopeManager
|
1118
|
+
*/
|
1119
|
+
class ScopeManager {
|
1120
|
+
constructor(options) {
|
1121
|
+
this.scopes = [];
|
1122
|
+
this.globalScope = null;
|
1123
|
+
this.__nodeToScope = new WeakMap();
|
1124
|
+
this.__currentScope = null;
|
1125
|
+
this.__options = options;
|
1126
|
+
this.__declaredVariables = new WeakMap();
|
1127
|
+
}
|
1128
|
+
|
1129
|
+
__useDirective() {
|
1130
|
+
return this.__options.directive;
|
1131
|
+
}
|
1132
|
+
|
1133
|
+
__isOptimistic() {
|
1134
|
+
return this.__options.optimistic;
|
1135
|
+
}
|
1136
|
+
|
1137
|
+
__ignoreEval() {
|
1138
|
+
return this.__options.ignoreEval;
|
1139
|
+
}
|
1140
|
+
|
1141
|
+
__isNodejsScope() {
|
1142
|
+
return this.__options.nodejsScope || this.__options.sourceType === "commonjs";
|
1143
|
+
}
|
1144
|
+
|
1145
|
+
isModule() {
|
1146
|
+
return this.__options.sourceType === "module";
|
1147
|
+
}
|
1148
|
+
|
1149
|
+
isImpliedStrict() {
|
1150
|
+
return this.__options.impliedStrict;
|
1151
|
+
}
|
1152
|
+
|
1153
|
+
isStrictModeSupported() {
|
1154
|
+
return this.__options.ecmaVersion >= 5;
|
1155
|
+
}
|
1156
|
+
|
1157
|
+
// Returns appropriate scope for this node.
|
1158
|
+
__get(node) {
|
1159
|
+
return this.__nodeToScope.get(node);
|
1160
|
+
}
|
1161
|
+
|
1162
|
+
/**
|
1163
|
+
* Get variables that are declared by the node.
|
1164
|
+
*
|
1165
|
+
* "are declared by the node" means the node is same as `Variable.defs[].node` or `Variable.defs[].parent`.
|
1166
|
+
* If the node declares nothing, this method returns an empty array.
|
1167
|
+
* CAUTION: This API is experimental. See https://github.com/estools/escope/pull/69 for more details.
|
1168
|
+
* @param {Espree.Node} node a node to get.
|
1169
|
+
* @returns {Variable[]} variables that declared by the node.
|
1170
|
+
*/
|
1171
|
+
getDeclaredVariables(node) {
|
1172
|
+
return this.__declaredVariables.get(node) || [];
|
1173
|
+
}
|
1174
|
+
|
1175
|
+
/**
|
1176
|
+
* acquire scope from node.
|
1177
|
+
* @function ScopeManager#acquire
|
1178
|
+
* @param {Espree.Node} node node for the acquired scope.
|
1179
|
+
* @param {?boolean} [inner=false] look up the most inner scope, default value is false.
|
1180
|
+
* @returns {Scope?} Scope from node
|
1181
|
+
*/
|
1182
|
+
acquire(node, inner) {
|
1183
|
+
|
1184
|
+
/**
|
1185
|
+
* predicate
|
1186
|
+
* @param {Scope} testScope scope to test
|
1187
|
+
* @returns {boolean} predicate
|
1188
|
+
*/
|
1189
|
+
function predicate(testScope) {
|
1190
|
+
if (testScope.type === "function" && testScope.functionExpressionScope) {
|
1191
|
+
return false;
|
1192
|
+
}
|
1193
|
+
return true;
|
1194
|
+
}
|
1195
|
+
|
1196
|
+
const scopes = this.__get(node);
|
1197
|
+
|
1198
|
+
if (!scopes || scopes.length === 0) {
|
1199
|
+
return null;
|
1200
|
+
}
|
1201
|
+
|
1202
|
+
// Heuristic selection from all scopes.
|
1203
|
+
// If you would like to get all scopes, please use ScopeManager#acquireAll.
|
1204
|
+
if (scopes.length === 1) {
|
1205
|
+
return scopes[0];
|
1206
|
+
}
|
1207
|
+
|
1208
|
+
if (inner) {
|
1209
|
+
for (let i = scopes.length - 1; i >= 0; --i) {
|
1210
|
+
const scope = scopes[i];
|
1211
|
+
|
1212
|
+
if (predicate(scope)) {
|
1213
|
+
return scope;
|
1214
|
+
}
|
1215
|
+
}
|
1216
|
+
} else {
|
1217
|
+
for (let i = 0, iz = scopes.length; i < iz; ++i) {
|
1218
|
+
const scope = scopes[i];
|
1219
|
+
|
1220
|
+
if (predicate(scope)) {
|
1221
|
+
return scope;
|
1222
|
+
}
|
1223
|
+
}
|
1224
|
+
}
|
1225
|
+
|
1226
|
+
return null;
|
1227
|
+
}
|
1228
|
+
|
1229
|
+
/**
|
1230
|
+
* acquire all scopes from node.
|
1231
|
+
* @function ScopeManager#acquireAll
|
1232
|
+
* @param {Espree.Node} node node for the acquired scope.
|
1233
|
+
* @returns {Scopes?} Scope array
|
1234
|
+
*/
|
1235
|
+
acquireAll(node) {
|
1236
|
+
return this.__get(node);
|
1237
|
+
}
|
1238
|
+
|
1239
|
+
/**
|
1240
|
+
* release the node.
|
1241
|
+
* @function ScopeManager#release
|
1242
|
+
* @param {Espree.Node} node releasing node.
|
1243
|
+
* @param {?boolean} [inner=false] look up the most inner scope, default value is false.
|
1244
|
+
* @returns {Scope?} upper scope for the node.
|
1245
|
+
*/
|
1246
|
+
release(node, inner) {
|
1247
|
+
const scopes = this.__get(node);
|
1248
|
+
|
1249
|
+
if (scopes && scopes.length) {
|
1250
|
+
const scope = scopes[0].upper;
|
1251
|
+
|
1252
|
+
if (!scope) {
|
1253
|
+
return null;
|
1254
|
+
}
|
1255
|
+
return this.acquire(scope.block, inner);
|
1256
|
+
}
|
1257
|
+
return null;
|
1258
|
+
}
|
1259
|
+
|
1260
|
+
attach() { } // eslint-disable-line class-methods-use-this
|
1261
|
+
|
1262
|
+
detach() { } // eslint-disable-line class-methods-use-this
|
1263
|
+
|
1264
|
+
__nestScope(scope) {
|
1265
|
+
if (scope instanceof GlobalScope) {
|
1266
|
+
assert__default["default"](this.__currentScope === null);
|
1267
|
+
this.globalScope = scope;
|
1268
|
+
}
|
1269
|
+
this.__currentScope = scope;
|
1270
|
+
return scope;
|
1271
|
+
}
|
1272
|
+
|
1273
|
+
__nestGlobalScope(node) {
|
1274
|
+
return this.__nestScope(new GlobalScope(this, node));
|
1275
|
+
}
|
1276
|
+
|
1277
|
+
__nestBlockScope(node) {
|
1278
|
+
return this.__nestScope(new BlockScope(this, this.__currentScope, node));
|
1279
|
+
}
|
1280
|
+
|
1281
|
+
__nestFunctionScope(node, isMethodDefinition) {
|
1282
|
+
return this.__nestScope(new FunctionScope(this, this.__currentScope, node, isMethodDefinition));
|
1283
|
+
}
|
1284
|
+
|
1285
|
+
__nestForScope(node) {
|
1286
|
+
return this.__nestScope(new ForScope(this, this.__currentScope, node));
|
1287
|
+
}
|
1288
|
+
|
1289
|
+
__nestCatchScope(node) {
|
1290
|
+
return this.__nestScope(new CatchScope(this, this.__currentScope, node));
|
1291
|
+
}
|
1292
|
+
|
1293
|
+
__nestWithScope(node) {
|
1294
|
+
return this.__nestScope(new WithScope(this, this.__currentScope, node));
|
1295
|
+
}
|
1296
|
+
|
1297
|
+
__nestClassScope(node) {
|
1298
|
+
return this.__nestScope(new ClassScope(this, this.__currentScope, node));
|
1299
|
+
}
|
1300
|
+
|
1301
|
+
__nestClassFieldInitializerScope(node) {
|
1302
|
+
return this.__nestScope(new ClassFieldInitializerScope(this, this.__currentScope, node));
|
1303
|
+
}
|
1304
|
+
|
1305
|
+
__nestClassStaticBlockScope(node) {
|
1306
|
+
return this.__nestScope(new ClassStaticBlockScope(this, this.__currentScope, node));
|
1307
|
+
}
|
1308
|
+
|
1309
|
+
__nestSwitchScope(node) {
|
1310
|
+
return this.__nestScope(new SwitchScope(this, this.__currentScope, node));
|
1311
|
+
}
|
1312
|
+
|
1313
|
+
__nestModuleScope(node) {
|
1314
|
+
return this.__nestScope(new ModuleScope(this, this.__currentScope, node));
|
1315
|
+
}
|
1316
|
+
|
1317
|
+
__nestFunctionExpressionNameScope(node) {
|
1318
|
+
return this.__nestScope(new FunctionExpressionNameScope(this, this.__currentScope, node));
|
1319
|
+
}
|
1320
|
+
|
1321
|
+
__isES6() {
|
1322
|
+
return this.__options.ecmaVersion >= 6;
|
1323
|
+
}
|
1324
|
+
}
|
1325
|
+
|
1326
|
+
/* vim: set sw=4 ts=4 et tw=80 : */
|
1327
|
+
|
1328
|
+
/*
|
1329
|
+
Copyright (C) 2015 Yusuke Suzuki <utatane.tea@gmail.com>
|
1330
|
+
|
1331
|
+
Redistribution and use in source and binary forms, with or without
|
1332
|
+
modification, are permitted provided that the following conditions are met:
|
1333
|
+
|
1334
|
+
* Redistributions of source code must retain the above copyright
|
1335
|
+
notice, this list of conditions and the following disclaimer.
|
1336
|
+
* Redistributions in binary form must reproduce the above copyright
|
1337
|
+
notice, this list of conditions and the following disclaimer in the
|
1338
|
+
documentation and/or other materials provided with the distribution.
|
1339
|
+
|
1340
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
1341
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
1342
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
1343
|
+
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
1344
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
1345
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
1346
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
1347
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
1348
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
1349
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
1350
|
+
*/
|
1351
|
+
|
1352
|
+
const { Syntax: Syntax$1 } = estraverse__default["default"];
|
1353
|
+
|
1354
|
+
/**
|
1355
|
+
* Get last array element
|
1356
|
+
* @param {Array} xs array
|
1357
|
+
* @returns {any} Last elment
|
1358
|
+
*/
|
1359
|
+
function getLast(xs) {
|
1360
|
+
return xs[xs.length - 1] || null;
|
1361
|
+
}
|
1362
|
+
|
1363
|
+
class PatternVisitor extends esrecurse__default["default"].Visitor {
|
1364
|
+
static isPattern(node) {
|
1365
|
+
const nodeType = node.type;
|
1366
|
+
|
1367
|
+
return (
|
1368
|
+
nodeType === Syntax$1.Identifier ||
|
1369
|
+
nodeType === Syntax$1.ObjectPattern ||
|
1370
|
+
nodeType === Syntax$1.ArrayPattern ||
|
1371
|
+
nodeType === Syntax$1.SpreadElement ||
|
1372
|
+
nodeType === Syntax$1.RestElement ||
|
1373
|
+
nodeType === Syntax$1.AssignmentPattern
|
1374
|
+
);
|
1375
|
+
}
|
1376
|
+
|
1377
|
+
constructor(options, rootPattern, callback) {
|
1378
|
+
super(null, options);
|
1379
|
+
this.rootPattern = rootPattern;
|
1380
|
+
this.callback = callback;
|
1381
|
+
this.assignments = [];
|
1382
|
+
this.rightHandNodes = [];
|
1383
|
+
this.restElements = [];
|
1384
|
+
}
|
1385
|
+
|
1386
|
+
Identifier(pattern) {
|
1387
|
+
const lastRestElement = getLast(this.restElements);
|
1388
|
+
|
1389
|
+
this.callback(pattern, {
|
1390
|
+
topLevel: pattern === this.rootPattern,
|
1391
|
+
rest: lastRestElement !== null && lastRestElement !== undefined && lastRestElement.argument === pattern,
|
1392
|
+
assignments: this.assignments
|
1393
|
+
});
|
1394
|
+
}
|
1395
|
+
|
1396
|
+
Property(property) {
|
1397
|
+
|
1398
|
+
// Computed property's key is a right hand node.
|
1399
|
+
if (property.computed) {
|
1400
|
+
this.rightHandNodes.push(property.key);
|
1401
|
+
}
|
1402
|
+
|
1403
|
+
// If it's shorthand, its key is same as its value.
|
1404
|
+
// If it's shorthand and has its default value, its key is same as its value.left (the value is AssignmentPattern).
|
1405
|
+
// If it's not shorthand, the name of new variable is its value's.
|
1406
|
+
this.visit(property.value);
|
1407
|
+
}
|
1408
|
+
|
1409
|
+
ArrayPattern(pattern) {
|
1410
|
+
for (let i = 0, iz = pattern.elements.length; i < iz; ++i) {
|
1411
|
+
const element = pattern.elements[i];
|
1412
|
+
|
1413
|
+
this.visit(element);
|
1414
|
+
}
|
1415
|
+
}
|
1416
|
+
|
1417
|
+
AssignmentPattern(pattern) {
|
1418
|
+
this.assignments.push(pattern);
|
1419
|
+
this.visit(pattern.left);
|
1420
|
+
this.rightHandNodes.push(pattern.right);
|
1421
|
+
this.assignments.pop();
|
1422
|
+
}
|
1423
|
+
|
1424
|
+
RestElement(pattern) {
|
1425
|
+
this.restElements.push(pattern);
|
1426
|
+
this.visit(pattern.argument);
|
1427
|
+
this.restElements.pop();
|
1428
|
+
}
|
1429
|
+
|
1430
|
+
MemberExpression(node) {
|
1431
|
+
|
1432
|
+
// Computed property's key is a right hand node.
|
1433
|
+
if (node.computed) {
|
1434
|
+
this.rightHandNodes.push(node.property);
|
1435
|
+
}
|
1436
|
+
|
1437
|
+
// the object is only read, write to its property.
|
1438
|
+
this.rightHandNodes.push(node.object);
|
1439
|
+
}
|
1440
|
+
|
1441
|
+
//
|
1442
|
+
// ForInStatement.left and AssignmentExpression.left are LeftHandSideExpression.
|
1443
|
+
// By spec, LeftHandSideExpression is Pattern or MemberExpression.
|
1444
|
+
// (see also: https://github.com/estree/estree/pull/20#issuecomment-74584758)
|
1445
|
+
// But espree 2.0 parses to ArrayExpression, ObjectExpression, etc...
|
1446
|
+
//
|
1447
|
+
|
1448
|
+
SpreadElement(node) {
|
1449
|
+
this.visit(node.argument);
|
1450
|
+
}
|
1451
|
+
|
1452
|
+
ArrayExpression(node) {
|
1453
|
+
node.elements.forEach(this.visit, this);
|
1454
|
+
}
|
1455
|
+
|
1456
|
+
AssignmentExpression(node) {
|
1457
|
+
this.assignments.push(node);
|
1458
|
+
this.visit(node.left);
|
1459
|
+
this.rightHandNodes.push(node.right);
|
1460
|
+
this.assignments.pop();
|
1461
|
+
}
|
1462
|
+
|
1463
|
+
CallExpression(node) {
|
1464
|
+
|
1465
|
+
// arguments are right hand nodes.
|
1466
|
+
node.arguments.forEach(a => {
|
1467
|
+
this.rightHandNodes.push(a);
|
1468
|
+
});
|
1469
|
+
this.visit(node.callee);
|
1470
|
+
}
|
1471
|
+
}
|
1472
|
+
|
1473
|
+
/* vim: set sw=4 ts=4 et tw=80 : */
|
1474
|
+
|
1475
|
+
/*
|
1476
|
+
Copyright (C) 2015 Yusuke Suzuki <utatane.tea@gmail.com>
|
1477
|
+
|
1478
|
+
Redistribution and use in source and binary forms, with or without
|
1479
|
+
modification, are permitted provided that the following conditions are met:
|
1480
|
+
|
1481
|
+
* Redistributions of source code must retain the above copyright
|
1482
|
+
notice, this list of conditions and the following disclaimer.
|
1483
|
+
* Redistributions in binary form must reproduce the above copyright
|
1484
|
+
notice, this list of conditions and the following disclaimer in the
|
1485
|
+
documentation and/or other materials provided with the distribution.
|
1486
|
+
|
1487
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
1488
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
1489
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
1490
|
+
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
1491
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
1492
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
1493
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
1494
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
1495
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
1496
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
1497
|
+
*/
|
1498
|
+
|
1499
|
+
const { Syntax } = estraverse__default["default"];
|
1500
|
+
|
1501
|
+
/**
|
1502
|
+
* Traverse identifier in pattern
|
1503
|
+
* @param {Object} options options
|
1504
|
+
* @param {pattern} rootPattern root pattern
|
1505
|
+
* @param {Refencer} referencer referencer
|
1506
|
+
* @param {callback} callback callback
|
1507
|
+
* @returns {void}
|
1508
|
+
*/
|
1509
|
+
function traverseIdentifierInPattern(options, rootPattern, referencer, callback) {
|
1510
|
+
|
1511
|
+
// Call the callback at left hand identifier nodes, and Collect right hand nodes.
|
1512
|
+
const visitor = new PatternVisitor(options, rootPattern, callback);
|
1513
|
+
|
1514
|
+
visitor.visit(rootPattern);
|
1515
|
+
|
1516
|
+
// Process the right hand nodes recursively.
|
1517
|
+
if (referencer !== null && referencer !== undefined) {
|
1518
|
+
visitor.rightHandNodes.forEach(referencer.visit, referencer);
|
1519
|
+
}
|
1520
|
+
}
|
1521
|
+
|
1522
|
+
// Importing ImportDeclaration.
|
1523
|
+
// http://people.mozilla.org/~jorendorff/es6-draft.html#sec-moduledeclarationinstantiation
|
1524
|
+
// https://github.com/estree/estree/blob/master/es6.md#importdeclaration
|
1525
|
+
// FIXME: Now, we don't create module environment, because the context is
|
1526
|
+
// implementation dependent.
|
1527
|
+
|
1528
|
+
class Importer extends esrecurse__default["default"].Visitor {
|
1529
|
+
constructor(declaration, referencer) {
|
1530
|
+
super(null, referencer.options);
|
1531
|
+
this.declaration = declaration;
|
1532
|
+
this.referencer = referencer;
|
1533
|
+
}
|
1534
|
+
|
1535
|
+
visitImport(id, specifier) {
|
1536
|
+
this.referencer.visitPattern(id, pattern => {
|
1537
|
+
this.referencer.currentScope().__define(pattern,
|
1538
|
+
new Definition(
|
1539
|
+
Variable.ImportBinding,
|
1540
|
+
pattern,
|
1541
|
+
specifier,
|
1542
|
+
this.declaration,
|
1543
|
+
null,
|
1544
|
+
null
|
1545
|
+
));
|
1546
|
+
});
|
1547
|
+
}
|
1548
|
+
|
1549
|
+
ImportNamespaceSpecifier(node) {
|
1550
|
+
const local = (node.local || node.id);
|
1551
|
+
|
1552
|
+
if (local) {
|
1553
|
+
this.visitImport(local, node);
|
1554
|
+
}
|
1555
|
+
}
|
1556
|
+
|
1557
|
+
ImportDefaultSpecifier(node) {
|
1558
|
+
const local = (node.local || node.id);
|
1559
|
+
|
1560
|
+
this.visitImport(local, node);
|
1561
|
+
}
|
1562
|
+
|
1563
|
+
ImportSpecifier(node) {
|
1564
|
+
const local = (node.local || node.id);
|
1565
|
+
|
1566
|
+
if (node.name) {
|
1567
|
+
this.visitImport(node.name, node);
|
1568
|
+
} else {
|
1569
|
+
this.visitImport(local, node);
|
1570
|
+
}
|
1571
|
+
}
|
1572
|
+
}
|
1573
|
+
|
1574
|
+
// Referencing variables and creating bindings.
|
1575
|
+
class Referencer extends esrecurse__default["default"].Visitor {
|
1576
|
+
constructor(options, scopeManager) {
|
1577
|
+
super(null, options);
|
1578
|
+
this.options = options;
|
1579
|
+
this.scopeManager = scopeManager;
|
1580
|
+
this.parent = null;
|
1581
|
+
this.isInnerMethodDefinition = false;
|
1582
|
+
}
|
1583
|
+
|
1584
|
+
currentScope() {
|
1585
|
+
return this.scopeManager.__currentScope;
|
1586
|
+
}
|
1587
|
+
|
1588
|
+
close(node) {
|
1589
|
+
while (this.currentScope() && node === this.currentScope().block) {
|
1590
|
+
this.scopeManager.__currentScope = this.currentScope().__close(this.scopeManager);
|
1591
|
+
}
|
1592
|
+
}
|
1593
|
+
|
1594
|
+
pushInnerMethodDefinition(isInnerMethodDefinition) {
|
1595
|
+
const previous = this.isInnerMethodDefinition;
|
1596
|
+
|
1597
|
+
this.isInnerMethodDefinition = isInnerMethodDefinition;
|
1598
|
+
return previous;
|
1599
|
+
}
|
1600
|
+
|
1601
|
+
popInnerMethodDefinition(isInnerMethodDefinition) {
|
1602
|
+
this.isInnerMethodDefinition = isInnerMethodDefinition;
|
1603
|
+
}
|
1604
|
+
|
1605
|
+
referencingDefaultValue(pattern, assignments, maybeImplicitGlobal, init) {
|
1606
|
+
const scope = this.currentScope();
|
1607
|
+
|
1608
|
+
assignments.forEach(assignment => {
|
1609
|
+
scope.__referencing(
|
1610
|
+
pattern,
|
1611
|
+
Reference.WRITE,
|
1612
|
+
assignment.right,
|
1613
|
+
maybeImplicitGlobal,
|
1614
|
+
pattern !== assignment.left,
|
1615
|
+
init
|
1616
|
+
);
|
1617
|
+
});
|
1618
|
+
}
|
1619
|
+
|
1620
|
+
visitPattern(node, options, callback) {
|
1621
|
+
let visitPatternOptions = options;
|
1622
|
+
let visitPatternCallback = callback;
|
1623
|
+
|
1624
|
+
if (typeof options === "function") {
|
1625
|
+
visitPatternCallback = options;
|
1626
|
+
visitPatternOptions = { processRightHandNodes: false };
|
1627
|
+
}
|
1628
|
+
|
1629
|
+
traverseIdentifierInPattern(
|
1630
|
+
this.options,
|
1631
|
+
node,
|
1632
|
+
visitPatternOptions.processRightHandNodes ? this : null,
|
1633
|
+
visitPatternCallback
|
1634
|
+
);
|
1635
|
+
}
|
1636
|
+
|
1637
|
+
visitFunction(node) {
|
1638
|
+
let i, iz;
|
1639
|
+
|
1640
|
+
// FunctionDeclaration name is defined in upper scope
|
1641
|
+
// NOTE: Not referring variableScope. It is intended.
|
1642
|
+
// Since
|
1643
|
+
// in ES5, FunctionDeclaration should be in FunctionBody.
|
1644
|
+
// in ES6, FunctionDeclaration should be block scoped.
|
1645
|
+
|
1646
|
+
if (node.type === Syntax.FunctionDeclaration) {
|
1647
|
+
|
1648
|
+
// id is defined in upper scope
|
1649
|
+
this.currentScope().__define(node.id,
|
1650
|
+
new Definition(
|
1651
|
+
Variable.FunctionName,
|
1652
|
+
node.id,
|
1653
|
+
node,
|
1654
|
+
null,
|
1655
|
+
null,
|
1656
|
+
null
|
1657
|
+
));
|
1658
|
+
}
|
1659
|
+
|
1660
|
+
// FunctionExpression with name creates its special scope;
|
1661
|
+
// FunctionExpressionNameScope.
|
1662
|
+
if (node.type === Syntax.FunctionExpression && node.id) {
|
1663
|
+
this.scopeManager.__nestFunctionExpressionNameScope(node);
|
1664
|
+
}
|
1665
|
+
|
1666
|
+
// Consider this function is in the MethodDefinition.
|
1667
|
+
this.scopeManager.__nestFunctionScope(node, this.isInnerMethodDefinition);
|
1668
|
+
|
1669
|
+
const that = this;
|
1670
|
+
|
1671
|
+
/**
|
1672
|
+
* Visit pattern callback
|
1673
|
+
* @param {pattern} pattern pattern
|
1674
|
+
* @param {Object} info info
|
1675
|
+
* @returns {void}
|
1676
|
+
*/
|
1677
|
+
function visitPatternCallback(pattern, info) {
|
1678
|
+
that.currentScope().__define(pattern,
|
1679
|
+
new ParameterDefinition(
|
1680
|
+
pattern,
|
1681
|
+
node,
|
1682
|
+
i,
|
1683
|
+
info.rest
|
1684
|
+
));
|
1685
|
+
|
1686
|
+
that.referencingDefaultValue(pattern, info.assignments, null, true);
|
1687
|
+
}
|
1688
|
+
|
1689
|
+
// Process parameter declarations.
|
1690
|
+
for (i = 0, iz = node.params.length; i < iz; ++i) {
|
1691
|
+
this.visitPattern(node.params[i], { processRightHandNodes: true }, visitPatternCallback);
|
1692
|
+
}
|
1693
|
+
|
1694
|
+
// if there's a rest argument, add that
|
1695
|
+
if (node.rest) {
|
1696
|
+
this.visitPattern({
|
1697
|
+
type: "RestElement",
|
1698
|
+
argument: node.rest
|
1699
|
+
}, pattern => {
|
1700
|
+
this.currentScope().__define(pattern,
|
1701
|
+
new ParameterDefinition(
|
1702
|
+
pattern,
|
1703
|
+
node,
|
1704
|
+
node.params.length,
|
1705
|
+
true
|
1706
|
+
));
|
1707
|
+
});
|
1708
|
+
}
|
1709
|
+
|
1710
|
+
// In TypeScript there are a number of function-like constructs which have no body,
|
1711
|
+
// so check it exists before traversing
|
1712
|
+
if (node.body) {
|
1713
|
+
|
1714
|
+
// Skip BlockStatement to prevent creating BlockStatement scope.
|
1715
|
+
if (node.body.type === Syntax.BlockStatement) {
|
1716
|
+
this.visitChildren(node.body);
|
1717
|
+
} else {
|
1718
|
+
this.visit(node.body);
|
1719
|
+
}
|
1720
|
+
}
|
1721
|
+
|
1722
|
+
this.close(node);
|
1723
|
+
}
|
1724
|
+
|
1725
|
+
visitClass(node) {
|
1726
|
+
if (node.type === Syntax.ClassDeclaration) {
|
1727
|
+
this.currentScope().__define(node.id,
|
1728
|
+
new Definition(
|
1729
|
+
Variable.ClassName,
|
1730
|
+
node.id,
|
1731
|
+
node,
|
1732
|
+
null,
|
1733
|
+
null,
|
1734
|
+
null
|
1735
|
+
));
|
1736
|
+
}
|
1737
|
+
|
1738
|
+
this.visit(node.superClass);
|
1739
|
+
|
1740
|
+
this.scopeManager.__nestClassScope(node);
|
1741
|
+
|
1742
|
+
if (node.id) {
|
1743
|
+
this.currentScope().__define(node.id,
|
1744
|
+
new Definition(
|
1745
|
+
Variable.ClassName,
|
1746
|
+
node.id,
|
1747
|
+
node
|
1748
|
+
));
|
1749
|
+
}
|
1750
|
+
this.visit(node.body);
|
1751
|
+
|
1752
|
+
this.close(node);
|
1753
|
+
}
|
1754
|
+
|
1755
|
+
visitProperty(node) {
|
1756
|
+
let previous;
|
1757
|
+
|
1758
|
+
if (node.computed) {
|
1759
|
+
this.visit(node.key);
|
1760
|
+
}
|
1761
|
+
|
1762
|
+
const isMethodDefinition = node.type === Syntax.MethodDefinition;
|
1763
|
+
|
1764
|
+
if (isMethodDefinition) {
|
1765
|
+
previous = this.pushInnerMethodDefinition(true);
|
1766
|
+
}
|
1767
|
+
this.visit(node.value);
|
1768
|
+
if (isMethodDefinition) {
|
1769
|
+
this.popInnerMethodDefinition(previous);
|
1770
|
+
}
|
1771
|
+
}
|
1772
|
+
|
1773
|
+
visitForIn(node) {
|
1774
|
+
if (node.left.type === Syntax.VariableDeclaration && node.left.kind !== "var") {
|
1775
|
+
this.scopeManager.__nestForScope(node);
|
1776
|
+
}
|
1777
|
+
|
1778
|
+
if (node.left.type === Syntax.VariableDeclaration) {
|
1779
|
+
this.visit(node.left);
|
1780
|
+
this.visitPattern(node.left.declarations[0].id, pattern => {
|
1781
|
+
this.currentScope().__referencing(pattern, Reference.WRITE, node.right, null, true, true);
|
1782
|
+
});
|
1783
|
+
} else {
|
1784
|
+
this.visitPattern(node.left, { processRightHandNodes: true }, (pattern, info) => {
|
1785
|
+
let maybeImplicitGlobal = null;
|
1786
|
+
|
1787
|
+
if (!this.currentScope().isStrict) {
|
1788
|
+
maybeImplicitGlobal = {
|
1789
|
+
pattern,
|
1790
|
+
node
|
1791
|
+
};
|
1792
|
+
}
|
1793
|
+
this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false);
|
1794
|
+
this.currentScope().__referencing(pattern, Reference.WRITE, node.right, maybeImplicitGlobal, true, false);
|
1795
|
+
});
|
1796
|
+
}
|
1797
|
+
this.visit(node.right);
|
1798
|
+
this.visit(node.body);
|
1799
|
+
|
1800
|
+
this.close(node);
|
1801
|
+
}
|
1802
|
+
|
1803
|
+
visitVariableDeclaration(variableTargetScope, type, node, index) {
|
1804
|
+
|
1805
|
+
const decl = node.declarations[index];
|
1806
|
+
const init = decl.init;
|
1807
|
+
|
1808
|
+
this.visitPattern(decl.id, { processRightHandNodes: true }, (pattern, info) => {
|
1809
|
+
variableTargetScope.__define(
|
1810
|
+
pattern,
|
1811
|
+
new Definition(
|
1812
|
+
type,
|
1813
|
+
pattern,
|
1814
|
+
decl,
|
1815
|
+
node,
|
1816
|
+
index,
|
1817
|
+
node.kind
|
1818
|
+
)
|
1819
|
+
);
|
1820
|
+
|
1821
|
+
this.referencingDefaultValue(pattern, info.assignments, null, true);
|
1822
|
+
if (init) {
|
1823
|
+
this.currentScope().__referencing(pattern, Reference.WRITE, init, null, !info.topLevel, true);
|
1824
|
+
}
|
1825
|
+
});
|
1826
|
+
}
|
1827
|
+
|
1828
|
+
AssignmentExpression(node) {
|
1829
|
+
if (PatternVisitor.isPattern(node.left)) {
|
1830
|
+
if (node.operator === "=") {
|
1831
|
+
this.visitPattern(node.left, { processRightHandNodes: true }, (pattern, info) => {
|
1832
|
+
let maybeImplicitGlobal = null;
|
1833
|
+
|
1834
|
+
if (!this.currentScope().isStrict) {
|
1835
|
+
maybeImplicitGlobal = {
|
1836
|
+
pattern,
|
1837
|
+
node
|
1838
|
+
};
|
1839
|
+
}
|
1840
|
+
this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false);
|
1841
|
+
this.currentScope().__referencing(pattern, Reference.WRITE, node.right, maybeImplicitGlobal, !info.topLevel, false);
|
1842
|
+
});
|
1843
|
+
} else {
|
1844
|
+
this.currentScope().__referencing(node.left, Reference.RW, node.right);
|
1845
|
+
}
|
1846
|
+
} else {
|
1847
|
+
this.visit(node.left);
|
1848
|
+
}
|
1849
|
+
this.visit(node.right);
|
1850
|
+
}
|
1851
|
+
|
1852
|
+
CatchClause(node) {
|
1853
|
+
this.scopeManager.__nestCatchScope(node);
|
1854
|
+
|
1855
|
+
this.visitPattern(node.param, { processRightHandNodes: true }, (pattern, info) => {
|
1856
|
+
this.currentScope().__define(pattern,
|
1857
|
+
new Definition(
|
1858
|
+
Variable.CatchClause,
|
1859
|
+
node.param,
|
1860
|
+
node,
|
1861
|
+
null,
|
1862
|
+
null,
|
1863
|
+
null
|
1864
|
+
));
|
1865
|
+
this.referencingDefaultValue(pattern, info.assignments, null, true);
|
1866
|
+
});
|
1867
|
+
this.visit(node.body);
|
1868
|
+
|
1869
|
+
this.close(node);
|
1870
|
+
}
|
1871
|
+
|
1872
|
+
Program(node) {
|
1873
|
+
this.scopeManager.__nestGlobalScope(node);
|
1874
|
+
|
1875
|
+
if (this.scopeManager.__isNodejsScope()) {
|
1876
|
+
|
1877
|
+
// Force strictness of GlobalScope to false when using node.js scope.
|
1878
|
+
this.currentScope().isStrict = false;
|
1879
|
+
this.scopeManager.__nestFunctionScope(node, false);
|
1880
|
+
}
|
1881
|
+
|
1882
|
+
if (this.scopeManager.__isES6() && this.scopeManager.isModule()) {
|
1883
|
+
this.scopeManager.__nestModuleScope(node);
|
1884
|
+
}
|
1885
|
+
|
1886
|
+
if (this.scopeManager.isStrictModeSupported() && this.scopeManager.isImpliedStrict()) {
|
1887
|
+
this.currentScope().isStrict = true;
|
1888
|
+
}
|
1889
|
+
|
1890
|
+
this.visitChildren(node);
|
1891
|
+
this.close(node);
|
1892
|
+
}
|
1893
|
+
|
1894
|
+
Identifier(node) {
|
1895
|
+
this.currentScope().__referencing(node);
|
1896
|
+
}
|
1897
|
+
|
1898
|
+
// eslint-disable-next-line class-methods-use-this
|
1899
|
+
PrivateIdentifier() {
|
1900
|
+
|
1901
|
+
// Do nothing.
|
1902
|
+
}
|
1903
|
+
|
1904
|
+
UpdateExpression(node) {
|
1905
|
+
if (PatternVisitor.isPattern(node.argument)) {
|
1906
|
+
this.currentScope().__referencing(node.argument, Reference.RW, null);
|
1907
|
+
} else {
|
1908
|
+
this.visitChildren(node);
|
1909
|
+
}
|
1910
|
+
}
|
1911
|
+
|
1912
|
+
MemberExpression(node) {
|
1913
|
+
this.visit(node.object);
|
1914
|
+
if (node.computed) {
|
1915
|
+
this.visit(node.property);
|
1916
|
+
}
|
1917
|
+
}
|
1918
|
+
|
1919
|
+
Property(node) {
|
1920
|
+
this.visitProperty(node);
|
1921
|
+
}
|
1922
|
+
|
1923
|
+
PropertyDefinition(node) {
|
1924
|
+
const { computed, key, value } = node;
|
1925
|
+
|
1926
|
+
if (computed) {
|
1927
|
+
this.visit(key);
|
1928
|
+
}
|
1929
|
+
if (value) {
|
1930
|
+
this.scopeManager.__nestClassFieldInitializerScope(value);
|
1931
|
+
this.visit(value);
|
1932
|
+
this.close(value);
|
1933
|
+
}
|
1934
|
+
}
|
1935
|
+
|
1936
|
+
StaticBlock(node) {
|
1937
|
+
this.scopeManager.__nestClassStaticBlockScope(node);
|
1938
|
+
|
1939
|
+
this.visitChildren(node);
|
1940
|
+
|
1941
|
+
this.close(node);
|
1942
|
+
}
|
1943
|
+
|
1944
|
+
MethodDefinition(node) {
|
1945
|
+
this.visitProperty(node);
|
1946
|
+
}
|
1947
|
+
|
1948
|
+
BreakStatement() {} // eslint-disable-line class-methods-use-this
|
1949
|
+
|
1950
|
+
ContinueStatement() {} // eslint-disable-line class-methods-use-this
|
1951
|
+
|
1952
|
+
LabeledStatement(node) {
|
1953
|
+
this.visit(node.body);
|
1954
|
+
}
|
1955
|
+
|
1956
|
+
ForStatement(node) {
|
1957
|
+
|
1958
|
+
// Create ForStatement declaration.
|
1959
|
+
// NOTE: In ES6, ForStatement dynamically generates
|
1960
|
+
// per iteration environment. However, escope is
|
1961
|
+
// a static analyzer, we only generate one scope for ForStatement.
|
1962
|
+
if (node.init && node.init.type === Syntax.VariableDeclaration && node.init.kind !== "var") {
|
1963
|
+
this.scopeManager.__nestForScope(node);
|
1964
|
+
}
|
1965
|
+
|
1966
|
+
this.visitChildren(node);
|
1967
|
+
|
1968
|
+
this.close(node);
|
1969
|
+
}
|
1970
|
+
|
1971
|
+
ClassExpression(node) {
|
1972
|
+
this.visitClass(node);
|
1973
|
+
}
|
1974
|
+
|
1975
|
+
ClassDeclaration(node) {
|
1976
|
+
this.visitClass(node);
|
1977
|
+
}
|
1978
|
+
|
1979
|
+
CallExpression(node) {
|
1980
|
+
|
1981
|
+
// Check this is direct call to eval
|
1982
|
+
if (!this.scopeManager.__ignoreEval() && node.callee.type === Syntax.Identifier && node.callee.name === "eval") {
|
1983
|
+
|
1984
|
+
// NOTE: This should be `variableScope`. Since direct eval call always creates Lexical environment and
|
1985
|
+
// let / const should be enclosed into it. Only VariableDeclaration affects on the caller's environment.
|
1986
|
+
this.currentScope().variableScope.__detectEval();
|
1987
|
+
}
|
1988
|
+
this.visitChildren(node);
|
1989
|
+
}
|
1990
|
+
|
1991
|
+
BlockStatement(node) {
|
1992
|
+
if (this.scopeManager.__isES6()) {
|
1993
|
+
this.scopeManager.__nestBlockScope(node);
|
1994
|
+
}
|
1995
|
+
|
1996
|
+
this.visitChildren(node);
|
1997
|
+
|
1998
|
+
this.close(node);
|
1999
|
+
}
|
2000
|
+
|
2001
|
+
ThisExpression() {
|
2002
|
+
this.currentScope().variableScope.__detectThis();
|
2003
|
+
}
|
2004
|
+
|
2005
|
+
WithStatement(node) {
|
2006
|
+
this.visit(node.object);
|
2007
|
+
|
2008
|
+
// Then nest scope for WithStatement.
|
2009
|
+
this.scopeManager.__nestWithScope(node);
|
2010
|
+
|
2011
|
+
this.visit(node.body);
|
2012
|
+
|
2013
|
+
this.close(node);
|
2014
|
+
}
|
2015
|
+
|
2016
|
+
VariableDeclaration(node) {
|
2017
|
+
const variableTargetScope = (node.kind === "var") ? this.currentScope().variableScope : this.currentScope();
|
2018
|
+
|
2019
|
+
for (let i = 0, iz = node.declarations.length; i < iz; ++i) {
|
2020
|
+
const decl = node.declarations[i];
|
2021
|
+
|
2022
|
+
this.visitVariableDeclaration(variableTargetScope, Variable.Variable, node, i);
|
2023
|
+
if (decl.init) {
|
2024
|
+
this.visit(decl.init);
|
2025
|
+
}
|
2026
|
+
}
|
2027
|
+
}
|
2028
|
+
|
2029
|
+
// sec 13.11.8
|
2030
|
+
SwitchStatement(node) {
|
2031
|
+
this.visit(node.discriminant);
|
2032
|
+
|
2033
|
+
if (this.scopeManager.__isES6()) {
|
2034
|
+
this.scopeManager.__nestSwitchScope(node);
|
2035
|
+
}
|
2036
|
+
|
2037
|
+
for (let i = 0, iz = node.cases.length; i < iz; ++i) {
|
2038
|
+
this.visit(node.cases[i]);
|
2039
|
+
}
|
2040
|
+
|
2041
|
+
this.close(node);
|
2042
|
+
}
|
2043
|
+
|
2044
|
+
FunctionDeclaration(node) {
|
2045
|
+
this.visitFunction(node);
|
2046
|
+
}
|
2047
|
+
|
2048
|
+
FunctionExpression(node) {
|
2049
|
+
this.visitFunction(node);
|
2050
|
+
}
|
2051
|
+
|
2052
|
+
ForOfStatement(node) {
|
2053
|
+
this.visitForIn(node);
|
2054
|
+
}
|
2055
|
+
|
2056
|
+
ForInStatement(node) {
|
2057
|
+
this.visitForIn(node);
|
2058
|
+
}
|
2059
|
+
|
2060
|
+
ArrowFunctionExpression(node) {
|
2061
|
+
this.visitFunction(node);
|
2062
|
+
}
|
2063
|
+
|
2064
|
+
ImportDeclaration(node) {
|
2065
|
+
assert__default["default"](this.scopeManager.__isES6() && this.scopeManager.isModule(), "ImportDeclaration should appear when the mode is ES6 and in the module context.");
|
2066
|
+
|
2067
|
+
const importer = new Importer(node, this);
|
2068
|
+
|
2069
|
+
importer.visit(node);
|
2070
|
+
}
|
2071
|
+
|
2072
|
+
visitExportDeclaration(node) {
|
2073
|
+
if (node.source) {
|
2074
|
+
return;
|
2075
|
+
}
|
2076
|
+
if (node.declaration) {
|
2077
|
+
this.visit(node.declaration);
|
2078
|
+
return;
|
2079
|
+
}
|
2080
|
+
|
2081
|
+
this.visitChildren(node);
|
2082
|
+
}
|
2083
|
+
|
2084
|
+
// TODO: ExportDeclaration doesn't exist. for bc?
|
2085
|
+
ExportDeclaration(node) {
|
2086
|
+
this.visitExportDeclaration(node);
|
2087
|
+
}
|
2088
|
+
|
2089
|
+
ExportAllDeclaration(node) {
|
2090
|
+
this.visitExportDeclaration(node);
|
2091
|
+
}
|
2092
|
+
|
2093
|
+
ExportDefaultDeclaration(node) {
|
2094
|
+
this.visitExportDeclaration(node);
|
2095
|
+
}
|
2096
|
+
|
2097
|
+
ExportNamedDeclaration(node) {
|
2098
|
+
this.visitExportDeclaration(node);
|
2099
|
+
}
|
2100
|
+
|
2101
|
+
ExportSpecifier(node) {
|
2102
|
+
|
2103
|
+
// TODO: `node.id` doesn't exist. for bc?
|
2104
|
+
const local = (node.id || node.local);
|
2105
|
+
|
2106
|
+
this.visit(local);
|
2107
|
+
}
|
2108
|
+
|
2109
|
+
MetaProperty() { // eslint-disable-line class-methods-use-this
|
2110
|
+
|
2111
|
+
// do nothing.
|
2112
|
+
}
|
2113
|
+
}
|
2114
|
+
|
2115
|
+
/* vim: set sw=4 ts=4 et tw=80 : */
|
2116
|
+
|
2117
|
+
const version = "7.1.1";
|
2118
|
+
|
2119
|
+
/*
|
2120
|
+
Copyright (C) 2012-2014 Yusuke Suzuki <utatane.tea@gmail.com>
|
2121
|
+
Copyright (C) 2013 Alex Seville <hi@alexanderseville.com>
|
2122
|
+
Copyright (C) 2014 Thiago de Arruda <tpadilha84@gmail.com>
|
2123
|
+
|
2124
|
+
Redistribution and use in source and binary forms, with or without
|
2125
|
+
modification, are permitted provided that the following conditions are met:
|
2126
|
+
|
2127
|
+
* Redistributions of source code must retain the above copyright
|
2128
|
+
notice, this list of conditions and the following disclaimer.
|
2129
|
+
* Redistributions in binary form must reproduce the above copyright
|
2130
|
+
notice, this list of conditions and the following disclaimer in the
|
2131
|
+
documentation and/or other materials provided with the distribution.
|
2132
|
+
|
2133
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
2134
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
2135
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
2136
|
+
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
2137
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
2138
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
2139
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
2140
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
2141
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
2142
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2143
|
+
*/
|
2144
|
+
|
2145
|
+
/**
|
2146
|
+
* Set the default options
|
2147
|
+
* @returns {Object} options
|
2148
|
+
*/
|
2149
|
+
function defaultOptions() {
|
2150
|
+
return {
|
2151
|
+
optimistic: false,
|
2152
|
+
directive: false,
|
2153
|
+
nodejsScope: false,
|
2154
|
+
impliedStrict: false,
|
2155
|
+
sourceType: "script", // one of ['script', 'module', 'commonjs']
|
2156
|
+
ecmaVersion: 5,
|
2157
|
+
childVisitorKeys: null,
|
2158
|
+
fallback: "iteration"
|
2159
|
+
};
|
2160
|
+
}
|
2161
|
+
|
2162
|
+
/**
|
2163
|
+
* Preform deep update on option object
|
2164
|
+
* @param {Object} target Options
|
2165
|
+
* @param {Object} override Updates
|
2166
|
+
* @returns {Object} Updated options
|
2167
|
+
*/
|
2168
|
+
function updateDeeply(target, override) {
|
2169
|
+
|
2170
|
+
/**
|
2171
|
+
* Is hash object
|
2172
|
+
* @param {Object} value Test value
|
2173
|
+
* @returns {boolean} Result
|
2174
|
+
*/
|
2175
|
+
function isHashObject(value) {
|
2176
|
+
return typeof value === "object" && value instanceof Object && !(value instanceof Array) && !(value instanceof RegExp);
|
2177
|
+
}
|
2178
|
+
|
2179
|
+
for (const key in override) {
|
2180
|
+
if (Object.prototype.hasOwnProperty.call(override, key)) {
|
2181
|
+
const val = override[key];
|
2182
|
+
|
2183
|
+
if (isHashObject(val)) {
|
2184
|
+
if (isHashObject(target[key])) {
|
2185
|
+
updateDeeply(target[key], val);
|
2186
|
+
} else {
|
2187
|
+
target[key] = updateDeeply({}, val);
|
2188
|
+
}
|
2189
|
+
} else {
|
2190
|
+
target[key] = val;
|
2191
|
+
}
|
2192
|
+
}
|
2193
|
+
}
|
2194
|
+
return target;
|
2195
|
+
}
|
2196
|
+
|
2197
|
+
/**
|
2198
|
+
* Main interface function. Takes an Espree syntax tree and returns the
|
2199
|
+
* analyzed scopes.
|
2200
|
+
* @function analyze
|
2201
|
+
* @param {espree.Tree} tree Abstract Syntax Tree
|
2202
|
+
* @param {Object} providedOptions Options that tailor the scope analysis
|
2203
|
+
* @param {boolean} [providedOptions.optimistic=false] the optimistic flag
|
2204
|
+
* @param {boolean} [providedOptions.directive=false] the directive flag
|
2205
|
+
* @param {boolean} [providedOptions.ignoreEval=false] whether to check 'eval()' calls
|
2206
|
+
* @param {boolean} [providedOptions.nodejsScope=false] whether the whole
|
2207
|
+
* script is executed under node.js environment. When enabled, escope adds
|
2208
|
+
* a function scope immediately following the global scope.
|
2209
|
+
* @param {boolean} [providedOptions.impliedStrict=false] implied strict mode
|
2210
|
+
* (if ecmaVersion >= 5).
|
2211
|
+
* @param {string} [providedOptions.sourceType='script'] the source type of the script. one of 'script', 'module', and 'commonjs'
|
2212
|
+
* @param {number} [providedOptions.ecmaVersion=5] which ECMAScript version is considered
|
2213
|
+
* @param {Object} [providedOptions.childVisitorKeys=null] Additional known visitor keys. See [esrecurse](https://github.com/estools/esrecurse)'s the `childVisitorKeys` option.
|
2214
|
+
* @param {string} [providedOptions.fallback='iteration'] A kind of the fallback in order to encounter with unknown node. See [esrecurse](https://github.com/estools/esrecurse)'s the `fallback` option.
|
2215
|
+
* @returns {ScopeManager} ScopeManager
|
2216
|
+
*/
|
2217
|
+
function analyze(tree, providedOptions) {
|
2218
|
+
const options = updateDeeply(defaultOptions(), providedOptions);
|
2219
|
+
const scopeManager = new ScopeManager(options);
|
2220
|
+
const referencer = new Referencer(options, scopeManager);
|
2221
|
+
|
2222
|
+
referencer.visit(tree);
|
2223
|
+
|
2224
|
+
assert__default["default"](scopeManager.__currentScope === null, "currentScope should be null.");
|
2225
|
+
|
2226
|
+
return scopeManager;
|
2227
|
+
}
|
2228
|
+
|
2229
|
+
/* vim: set sw=4 ts=4 et tw=80 : */
|
2230
|
+
|
2231
|
+
exports.Definition = Definition;
|
2232
|
+
exports.PatternVisitor = PatternVisitor;
|
2233
|
+
exports.Reference = Reference;
|
2234
|
+
exports.Referencer = Referencer;
|
2235
|
+
exports.Scope = Scope;
|
2236
|
+
exports.ScopeManager = ScopeManager;
|
2237
|
+
exports.Variable = Variable;
|
2238
|
+
exports.analyze = analyze;
|
2239
|
+
exports.version = version;
|
2240
|
+
//# sourceMappingURL=eslint-scope.cjs.map
|