condenser 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +49 -21
- data/lib/condenser.rb +9 -3
- data/lib/condenser/build_cache.rb +3 -1
- data/lib/condenser/environment.rb +6 -0
- data/lib/condenser/minifiers/uglify_minifier.rb +0 -2
- data/lib/condenser/processors/babel_processor.rb +12 -8
- data/lib/condenser/processors/node_modules/@babel/code-frame/lib/index.js +7 -13
- data/lib/condenser/processors/node_modules/@babel/code-frame/package.json +12 -12
- data/lib/condenser/processors/node_modules/@babel/{helper-call-delegate → compat-data}/LICENSE +0 -0
- data/lib/condenser/processors/node_modules/@babel/compat-data/corejs2-built-ins.js +4 -0
- data/lib/condenser/processors/node_modules/@babel/compat-data/corejs3-shipped-proposals.js +4 -0
- data/lib/condenser/processors/node_modules/@babel/{preset-env → compat-data}/data/corejs2-built-ins.json +93 -63
- data/lib/condenser/processors/node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json +5 -0
- data/lib/condenser/processors/node_modules/@babel/{preset-env/data/built-in-modules.json → compat-data/data/native-modules.json} +5 -2
- data/lib/condenser/processors/node_modules/@babel/compat-data/data/overlapping-plugins.json +18 -0
- data/lib/condenser/processors/node_modules/@babel/compat-data/data/plugin-bugfixes.json +125 -0
- data/lib/condenser/processors/node_modules/@babel/{preset-env → compat-data}/data/plugins.json +137 -103
- data/lib/condenser/processors/node_modules/@babel/compat-data/native-modules.js +4 -0
- data/lib/condenser/processors/node_modules/@babel/compat-data/overlapping-plugins.js +4 -0
- data/lib/condenser/processors/node_modules/@babel/compat-data/package.json +72 -0
- data/lib/condenser/processors/node_modules/@babel/compat-data/plugin-bugfixes.js +4 -0
- data/lib/condenser/processors/node_modules/@babel/compat-data/plugins.js +4 -0
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/caching.js +190 -64
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/config-chain.js +26 -26
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/config-descriptors.js +4 -4
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/files/configuration.js +41 -41
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/files/import.js +10 -0
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/files/index-browser.js +5 -5
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/files/module-types.js +96 -0
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/files/package.js +2 -2
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/files/utils.js +16 -8
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/full.js +69 -33
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/index.js +36 -10
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/partial.js +21 -10
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/util.js +5 -0
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/validation/options.js +11 -3
- data/lib/condenser/processors/node_modules/@babel/core/lib/config/validation/plugins.js +5 -1
- data/lib/condenser/processors/node_modules/@babel/core/lib/gensync-utils/async.js +89 -0
- data/lib/condenser/processors/node_modules/@babel/core/lib/gensync-utils/fs.js +48 -0
- data/lib/condenser/processors/node_modules/@babel/core/lib/gensync-utils/resolve.js +35 -0
- data/lib/condenser/processors/node_modules/@babel/core/lib/index.js +24 -0
- data/lib/condenser/processors/node_modules/@babel/core/lib/parse.js +27 -42
- data/lib/condenser/processors/node_modules/@babel/core/lib/parser/index.js +97 -0
- data/lib/condenser/processors/node_modules/@babel/core/lib/{transformation → parser}/util/missing-plugin-helper.js +16 -10
- data/lib/condenser/processors/node_modules/@babel/core/lib/tools/build-external-helpers.js +4 -1
- data/lib/condenser/processors/node_modules/@babel/core/lib/transform-ast.js +27 -33
- data/lib/condenser/processors/node_modules/@babel/core/lib/transform-file.js +20 -57
- data/lib/condenser/processors/node_modules/@babel/core/lib/transform.js +23 -31
- data/lib/condenser/processors/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js +2 -1
- data/lib/condenser/processors/node_modules/@babel/core/lib/transformation/file/file.js +12 -31
- data/lib/condenser/processors/node_modules/@babel/core/lib/transformation/index.js +7 -18
- data/lib/condenser/processors/node_modules/@babel/core/lib/transformation/normalize-file.js +3 -88
- data/lib/condenser/processors/node_modules/@babel/core/package.json +17 -15
- data/lib/condenser/processors/node_modules/@babel/generator/lib/generators/flow.js +5 -0
- data/lib/condenser/processors/node_modules/@babel/generator/lib/generators/modules.js +2 -2
- data/lib/condenser/processors/node_modules/@babel/generator/lib/generators/types.js +68 -1
- data/lib/condenser/processors/node_modules/@babel/generator/lib/index.js +2 -1
- data/lib/condenser/processors/node_modules/@babel/generator/lib/node/index.js +1 -6
- data/lib/condenser/processors/node_modules/@babel/generator/lib/node/parentheses.js +50 -23
- data/lib/condenser/processors/node_modules/@babel/generator/lib/node/whitespace.js +11 -2
- data/lib/condenser/processors/node_modules/@babel/generator/lib/printer.js +31 -12
- data/lib/condenser/processors/node_modules/@babel/generator/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/helper-annotate-as-pure/package.json +13 -12
- data/lib/condenser/processors/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/package.json +13 -13
- data/lib/condenser/processors/node_modules/@babel/helper-compilation-targets/LICENSE +22 -0
- data/lib/condenser/processors/node_modules/@babel/helper-compilation-targets/lib/debug.js +35 -0
- data/lib/condenser/processors/node_modules/@babel/helper-compilation-targets/lib/filter-items.js +90 -0
- data/lib/condenser/processors/node_modules/@babel/helper-compilation-targets/lib/index.js +237 -0
- data/lib/condenser/processors/node_modules/@babel/helper-compilation-targets/lib/options.js +23 -0
- data/lib/condenser/processors/node_modules/@babel/helper-compilation-targets/lib/pretty.js +49 -0
- data/lib/condenser/processors/node_modules/@babel/helper-compilation-targets/lib/targets.js +27 -0
- data/lib/condenser/processors/node_modules/@babel/{parser → helper-compilation-targets}/lib/types.js +0 -0
- data/lib/condenser/processors/node_modules/@babel/helper-compilation-targets/lib/utils.js +65 -0
- data/lib/condenser/processors/node_modules/@babel/helper-compilation-targets/package.json +66 -0
- data/lib/condenser/processors/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js +23 -14
- data/lib/condenser/processors/node_modules/@babel/helper-create-class-features-plugin/package.json +19 -19
- data/lib/condenser/processors/node_modules/@babel/helper-create-regexp-features-plugin/lib/index.js +6 -1
- data/lib/condenser/processors/node_modules/@babel/helper-create-regexp-features-plugin/package.json +16 -15
- data/lib/condenser/processors/node_modules/@babel/helper-define-map/package.json +13 -13
- data/lib/condenser/processors/node_modules/@babel/helper-explode-assignable-expression/package.json +13 -13
- data/lib/condenser/processors/node_modules/@babel/helper-function-name/lib/index.js +3 -1
- data/lib/condenser/processors/node_modules/@babel/helper-function-name/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/helper-get-function-arity/package.json +12 -12
- data/lib/condenser/processors/node_modules/@babel/helper-hoist-variables/package.json +12 -13
- data/lib/condenser/processors/node_modules/@babel/helper-member-expression-to-functions/package.json +13 -13
- data/lib/condenser/processors/node_modules/@babel/helper-module-imports/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/helper-module-transforms/lib/get-module-name.js +42 -0
- data/lib/condenser/processors/node_modules/@babel/helper-module-transforms/lib/index.js +16 -2
- data/lib/condenser/processors/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js +46 -2
- data/lib/condenser/processors/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js +4 -2
- data/lib/condenser/processors/node_modules/@babel/helper-module-transforms/package.json +20 -17
- data/lib/condenser/processors/node_modules/@babel/helper-optimise-call-expression/package.json +13 -13
- data/lib/condenser/processors/node_modules/@babel/helper-plugin-utils/LICENSE +1 -1
- data/lib/condenser/processors/node_modules/@babel/helper-plugin-utils/lib/index.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/helper-plugin-utils/package.json +22 -11
- data/lib/condenser/processors/node_modules/@babel/helper-regex/lib/index.js +2 -10
- data/lib/condenser/processors/node_modules/@babel/helper-regex/package.json +11 -11
- data/lib/condenser/processors/node_modules/@babel/helper-remap-async-to-generator/package.json +16 -16
- data/lib/condenser/processors/node_modules/@babel/helper-replace-supers/lib/index.js +1 -0
- data/lib/condenser/processors/node_modules/@babel/helper-replace-supers/package.json +17 -16
- data/lib/condenser/processors/node_modules/@babel/helper-simple-access/package.json +13 -13
- data/lib/condenser/processors/node_modules/@babel/helper-split-export-declaration/package.json +13 -13
- data/lib/condenser/processors/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- data/lib/condenser/processors/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- data/lib/condenser/processors/node_modules/@babel/{parser/lib/util → helper-validator-identifier/lib}/identifier.js +26 -48
- data/lib/condenser/processors/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- data/lib/condenser/processors/node_modules/@babel/helper-validator-identifier/lib/keyword.js +38 -0
- data/lib/condenser/processors/node_modules/@babel/helper-validator-identifier/package.json +47 -0
- data/lib/condenser/processors/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +75 -0
- data/lib/condenser/processors/node_modules/@babel/helper-wrap-function/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/helpers/lib/helpers.js +166 -26
- data/lib/condenser/processors/node_modules/@babel/helpers/lib/index.js +28 -9
- data/lib/condenser/processors/node_modules/@babel/helpers/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/highlight/lib/index.js +12 -34
- data/lib/condenser/processors/node_modules/@babel/highlight/package.json +12 -12
- data/lib/condenser/processors/node_modules/@babel/parser/bin/babel-parser.js +5 -6
- data/lib/condenser/processors/node_modules/@babel/parser/lib/index.js +6137 -5631
- data/lib/condenser/processors/node_modules/@babel/parser/lib/index.js.map +1 -1
- data/lib/condenser/processors/node_modules/@babel/parser/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-async-generator-functions/package.json +16 -16
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-class-properties/package.json +10 -10
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-dynamic-import/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-json-strings/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-nullish-coalescing-operator/LICENSE +22 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-nullish-coalescing-operator/README.md +19 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-nullish-coalescing-operator/lib/index.js +51 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-nullish-coalescing-operator/package.json +55 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-numeric-separator/LICENSE +22 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-numeric-separator/README.md +19 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-numeric-separator/lib/index.js +36 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-numeric-separator/package.json +55 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-object-rest-spread/lib/index.js +67 -8
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-object-rest-spread/package.json +16 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-optional-catch-binding/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-optional-chaining/LICENSE +22 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-optional-chaining/README.md +19 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-optional-chaining/lib/index.js +120 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-optional-chaining/package.json +56 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-proposal-unicode-property-regex/package.json +17 -16
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-async-generators/package.json +12 -13
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-dynamic-import/package.json +12 -13
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-json-strings/package.json +12 -13
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/LICENSE +22 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/README.md +19 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib/index.js +22 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/package.json +53 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-numeric-separator/LICENSE +22 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-numeric-separator/README.md +19 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-numeric-separator/lib/index.js +22 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-numeric-separator/package.json +54 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-object-rest-spread/package.json +12 -13
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-optional-catch-binding/package.json +12 -13
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-optional-chaining/LICENSE +22 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-optional-chaining/README.md +19 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js +22 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-optional-chaining/package.json +53 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-syntax-top-level-await/package.json +13 -13
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-arrow-functions/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-async-to-generator/package.json +16 -16
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-block-scoped-functions/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-block-scoping/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-classes/lib/inline-createSuper-helpers.js +72 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-classes/lib/transformClass.js +22 -5
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-classes/package.json +20 -20
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-computed-properties/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-destructuring/lib/index.js +2 -1
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-destructuring/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-dotall-regex/package.json +17 -16
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-duplicate-keys/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-exponentiation-operator/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-for-of/lib/index.js +79 -167
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-for-of/lib/no-helper-implementation.js +174 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-for-of/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-function-name/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-literals/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-member-expression-literals/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-modules-amd/lib/index.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-modules-amd/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-modules-commonjs/package.json +17 -17
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-modules-systemjs/lib/index.js +9 -2
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-modules-systemjs/package.json +17 -16
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-modules-umd/lib/index.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-modules-umd/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-new-target/package.json +16 -16
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-object-super/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-parameters/lib/index.js +6 -0
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-parameters/lib/params.js +93 -39
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-parameters/lib/rest.js +16 -3
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-parameters/package.json +16 -16
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-property-literals/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-regenerator/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-reserved-words/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-runtime/package.json +16 -16
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-shorthand-properties/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-spread/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-sticky-regex/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-template-literals/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js +9 -1
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-typeof-symbol/package.json +18 -14
- data/lib/condenser/processors/node_modules/@babel/plugin-transform-unicode-regex/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/preset-env/data/built-in-modules.js +3 -0
- data/lib/condenser/processors/node_modules/@babel/preset-env/data/built-in-modules.json.js +3 -0
- data/lib/condenser/processors/node_modules/@babel/preset-env/data/built-ins.js +4 -0
- data/lib/condenser/processors/node_modules/@babel/preset-env/data/corejs2-built-ins.js +3 -0
- data/lib/condenser/processors/node_modules/@babel/preset-env/data/corejs2-built-ins.json.js +3 -0
- data/lib/condenser/processors/node_modules/@babel/preset-env/data/plugins.js +3 -0
- data/lib/condenser/processors/node_modules/@babel/preset-env/data/plugins.json.js +3 -0
- data/lib/condenser/processors/node_modules/@babel/preset-env/data/shipped-proposals.js +22 -9
- data/lib/condenser/processors/node_modules/@babel/preset-env/data/unreleased-labels.js +3 -3
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/available-plugins.js +47 -11
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/debug.js +2 -23
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/filter-items.js +3 -68
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/index.js +37 -16
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/normalize-options.js +11 -12
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/options.js +3 -19
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/plugins-compat-data.js +31 -0
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/polyfills/corejs2/entry-plugin.js +4 -4
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/polyfills/corejs2/usage-plugin.js +4 -4
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/polyfills/corejs3/built-in-definitions.js +4 -4
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/polyfills/corejs3/entry-plugin.js +2 -2
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js +4 -4
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/targets-parser.js +18 -206
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/utils.js +0 -101
- data/lib/condenser/processors/node_modules/@babel/preset-env/package.json +69 -65
- data/lib/condenser/processors/node_modules/@babel/preset-modules/README.md +168 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/lib/index.js +27 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/lib/plugins/transform-async-arrows-in-class/index.js +45 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/lib/plugins/transform-edge-default-parameters/index.js +36 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/lib/plugins/transform-edge-function-name/index.js +42 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/lib/plugins/transform-jsx-spread/index.js +115 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/lib/plugins/transform-safari-block-shadowing/index.js +47 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/lib/plugins/transform-safari-for-shadowing/index.js +42 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/lib/plugins/transform-tagged-template-caching/index.js +75 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/package.json +128 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/src/index.js +30 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/src/plugins/transform-async-arrows-in-class/index.js +35 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/src/plugins/transform-edge-default-parameters/index.js +29 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/src/plugins/transform-edge-function-name/index.js +31 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/src/plugins/transform-jsx-spread/index.js +111 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/src/plugins/transform-safari-block-shadowing/index.js +39 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/src/plugins/transform-safari-for-shadowing/index.js +38 -0
- data/lib/condenser/processors/node_modules/@babel/preset-modules/src/plugins/transform-tagged-template-caching/index.js +88 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js +11 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/arrayWithoutHoles.js +3 -7
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/construct.js +1 -12
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/createForOfIteratorHelper.js +66 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/createForOfIteratorHelperLoose.js +35 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/createSuper.js +25 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/arrayLikeToArray.js +9 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithoutHoles.js +2 -7
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/construct.js +1 -14
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/createForOfIteratorHelper.js +59 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/createForOfIteratorHelperLoose.js +27 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/createSuper.js +19 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/isNativeReflectConstruct.js +13 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArray.js +2 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArrayLimit.js +2 -4
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArrayLimitLoose.js +2 -4
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableRest.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableSpread.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/objectSpread.js +2 -2
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js +2 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArrayLoose.js +2 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/toArray.js +2 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/toConsumableArray.js +2 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js +2 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/unsupportedIterableToArray.js +15 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/isNativeReflectConstruct.js +16 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/iterableToArray.js +3 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js +3 -4
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimitLoose.js +3 -4
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/maybeArrayLike.js +14 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/nonIterableSpread.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/objectSpread.js +2 -2
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js +3 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/slicedToArrayLoose.js +3 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/toArray.js +3 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js +3 -1
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/typeof.js +2 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/unsupportedIterableToArray.js +20 -0
- data/lib/condenser/processors/node_modules/@babel/runtime-corejs3/package.json +7 -7
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +11 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +3 -7
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/construct.js +1 -12
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +58 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +23 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/createSuper.js +23 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +9 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +2 -7
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/construct.js +1 -14
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +55 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +20 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/createSuper.js +18 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +12 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -4
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +1 -4
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/objectSpread.js +2 -2
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +2 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js +2 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/toArray.js +2 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +2 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/typeof.js +2 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +14 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/iterableToArray.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +1 -4
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +1 -4
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/maybeArrayLike.js +12 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/nonIterableRest.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/nonIterableSpread.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/objectSpread.js +2 -2
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/slicedToArray.js +3 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js +3 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/toArray.js +3 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/toConsumableArray.js +3 -1
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/typeof.js +2 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +12 -0
- data/lib/condenser/processors/node_modules/@babel/runtime/package.json +16 -15
- data/lib/condenser/processors/node_modules/@babel/template/lib/options.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/template/package.json +14 -14
- data/lib/condenser/processors/node_modules/@babel/traverse/lib/path/comments.js +2 -2
- data/lib/condenser/processors/node_modules/@babel/traverse/lib/path/lib/virtual-types.js +1 -1
- data/lib/condenser/processors/node_modules/@babel/traverse/lib/path/removal.js +3 -1
- data/lib/condenser/processors/node_modules/@babel/traverse/lib/scope/index.js +190 -87
- data/lib/condenser/processors/node_modules/@babel/traverse/lib/visitors.js +4 -0
- data/lib/condenser/processors/node_modules/@babel/traverse/package.json +18 -19
- data/lib/condenser/processors/node_modules/@babel/types/lib/asserts/generated/index.js +20 -5
- data/lib/condenser/processors/node_modules/@babel/types/lib/builders/generated/index.js +20 -5
- data/lib/condenser/processors/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +14 -0
- data/lib/condenser/processors/node_modules/@babel/types/lib/clone/cloneNode.js +36 -13
- data/lib/condenser/processors/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +2 -4
- data/lib/condenser/processors/node_modules/@babel/types/lib/constants/index.js +3 -1
- data/lib/condenser/processors/node_modules/@babel/types/lib/definitions/core.js +171 -40
- data/lib/condenser/processors/node_modules/@babel/types/lib/definitions/es2015.js +124 -64
- data/lib/condenser/processors/node_modules/@babel/types/lib/definitions/experimental.js +29 -3
- data/lib/condenser/processors/node_modules/@babel/types/lib/definitions/flow.js +4 -1
- data/lib/condenser/processors/node_modules/@babel/types/lib/definitions/index.js +6 -0
- data/lib/condenser/processors/node_modules/@babel/types/lib/definitions/jsx.js +1 -2
- data/lib/condenser/processors/node_modules/@babel/types/lib/definitions/utils.js +87 -21
- data/lib/condenser/processors/node_modules/@babel/types/lib/index.d.ts +143 -119
- data/lib/condenser/processors/node_modules/@babel/types/lib/index.js +9 -0
- data/lib/condenser/processors/node_modules/@babel/types/lib/index.js.flow +137 -116
- data/lib/condenser/processors/node_modules/@babel/types/lib/validators/generated/index.js +62 -14
- data/lib/condenser/processors/node_modules/@babel/types/lib/validators/isReferenced.js +7 -3
- data/lib/condenser/processors/node_modules/@babel/types/lib/validators/isScope.js +4 -0
- data/lib/condenser/processors/node_modules/@babel/types/lib/validators/isValidIdentifier.js +11 -9
- data/lib/condenser/processors/node_modules/@babel/types/lib/validators/validate.js +9 -0
- data/lib/condenser/processors/node_modules/@babel/types/package.json +15 -15
- data/lib/condenser/processors/node_modules/@babel/types/scripts/generators/docs.js +5 -1
- data/lib/condenser/processors/node_modules/@babel/types/scripts/generators/flow.js +6 -3
- data/lib/condenser/processors/node_modules/@babel/types/scripts/generators/typescript.js +17 -13
- data/lib/condenser/processors/node_modules/@types/estree/README.md +16 -16
- data/lib/condenser/processors/node_modules/@types/estree/index.d.ts +1 -7
- data/lib/condenser/processors/node_modules/@types/estree/package.json +16 -18
- data/lib/condenser/processors/node_modules/@types/node/LICENSE +21 -21
- data/lib/condenser/processors/node_modules/@types/node/README.md +16 -16
- data/lib/condenser/processors/node_modules/@types/node/assert.d.ts +3 -0
- data/lib/condenser/processors/node_modules/@types/node/async_hooks.d.ts +115 -0
- data/lib/condenser/processors/node_modules/@types/node/child_process.d.ts +2 -2
- data/lib/condenser/processors/node_modules/@types/node/cluster.d.ts +2 -6
- data/lib/condenser/processors/node_modules/@types/node/crypto.d.ts +6 -6
- data/lib/condenser/processors/node_modules/@types/node/dns.d.ts +5 -0
- data/lib/condenser/processors/node_modules/@types/node/events.d.ts +31 -21
- data/lib/condenser/processors/node_modules/@types/node/fs.d.ts +238 -52
- data/lib/condenser/processors/node_modules/@types/node/globals.d.ts +63 -53
- data/lib/condenser/processors/node_modules/@types/node/http.d.ts +36 -18
- data/lib/condenser/processors/node_modules/@types/node/http2.d.ts +1 -0
- data/lib/condenser/processors/node_modules/@types/node/https.d.ts +1 -17
- data/lib/condenser/processors/node_modules/@types/node/index.d.ts +9 -7
- data/lib/condenser/processors/node_modules/@types/node/module.d.ts +41 -3
- data/lib/condenser/processors/node_modules/@types/node/os.d.ts +9 -1
- data/lib/condenser/processors/node_modules/@types/node/package.json +25 -13
- data/lib/condenser/processors/node_modules/@types/node/perf_hooks.d.ts +27 -10
- data/lib/condenser/processors/node_modules/@types/node/querystring.d.ts +2 -3
- data/lib/condenser/processors/node_modules/@types/node/readline.d.ts +14 -0
- data/lib/condenser/processors/node_modules/@types/node/repl.d.ts +6 -1
- data/lib/condenser/processors/node_modules/@types/node/stream.d.ts +35 -11
- data/lib/condenser/processors/node_modules/@types/node/tls.d.ts +67 -1
- data/lib/condenser/processors/node_modules/@types/node/ts3.2/fs.d.ts +5 -5
- data/lib/condenser/processors/node_modules/@types/node/ts3.5/index.d.ts +14 -0
- data/lib/condenser/processors/node_modules/@types/node/ts3.5/wasi.d.ts +52 -0
- data/lib/condenser/processors/node_modules/@types/node/tty.d.ts +1 -1
- data/lib/condenser/processors/node_modules/@types/node/url.d.ts +1 -1
- data/lib/condenser/processors/node_modules/@types/node/util.d.ts +20 -12
- data/lib/condenser/processors/node_modules/@types/node/vm.d.ts +36 -4
- data/lib/condenser/processors/node_modules/@types/node/worker_threads.d.ts +30 -1
- data/lib/condenser/processors/node_modules/browserslist/CHANGELOG.md +28 -0
- data/lib/condenser/processors/node_modules/browserslist/LICENSE +1 -1
- data/lib/condenser/processors/node_modules/browserslist/README.md +7 -5
- data/lib/condenser/processors/node_modules/browserslist/cli.js +21 -11
- data/lib/condenser/processors/node_modules/browserslist/index.js +90 -5
- data/lib/condenser/processors/node_modules/browserslist/node.js +22 -15
- data/lib/condenser/processors/node_modules/browserslist/package.json +16 -17
- data/lib/condenser/processors/node_modules/browserslist/update-db.js +134 -0
- data/lib/condenser/processors/node_modules/caniuse-lite/CHANGELOG.md +24 -0
- data/lib/condenser/processors/node_modules/caniuse-lite/data/agents.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/browserVersions.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/aac.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/apng.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/array-find.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/async-iterations-and-generators.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/audio.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/av1.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/avif.js +1 -0
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/beacon.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/bigint.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/border-image.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/brotli.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/calc.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/canvas.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/classlist.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/clear-site-data-header.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/console-time.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/const.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/cors.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-all.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-apply-rule.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-has.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-hyphenate.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-table.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-touch-action-2.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/customevent.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/datalist.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/dataset.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/datauri.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/details.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/dialog.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/domfocusin-domfocusout-events.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/download.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/eme.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/eot.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/es5.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/es6.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/fetch.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/filereader.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/flac.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/focusoptions-preventscroll.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/font-variant-east-asian.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/fontface.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/forms.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/heif.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/hevc.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/hidden.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/history.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/http2.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/http3.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/ime.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/imports.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/innertext.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-color.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-event.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-number.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-range.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-search.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -0
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/json.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/let.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/mathml.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/media-attribute.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/media-session-api.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/menu.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/meter.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/midi.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/mp3.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/navigator-language.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/node-contains.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/node-parentelement.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/notifications.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/object-values.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/ogv.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/online-status.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/opus.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/outline.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/path2d.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/picture.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/ping.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/pointer.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/private-class-fields.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/private-methods-and-accessors.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/progress.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/promises.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/proximity.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/proxy.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/public-class-fields.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/push-api.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/rellist.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/rem.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/replace-all.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/ruby.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/run-in.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/script-async.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/sdch.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/sha-2.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/sni.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/spdy.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/srcset.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/stopimmediatepropagation.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/stream.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/streams.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/svg.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/sxg.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/symbols.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/template.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/text-underline-offset.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/token-binding.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/touch.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/ttf.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/u2f.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -0
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/url.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/vibration.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/video.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/wasm.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/wav.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/web-share.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/webgl.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/webgpu.js +1 -0
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/webhid.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/webm.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/webp.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/websockets.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/webusb.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/webvr.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/webxr.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/will-change.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/woff.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/woff2.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/word-break.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AD.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AF.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AI.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AL.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AO.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AS.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AT.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AU.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AW.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AX.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/AZ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BA.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BB.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BD.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BF.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BH.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BI.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BJ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BN.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BO.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BS.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BT.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BW.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BY.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/BZ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CA.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CD.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CF.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CH.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CI.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CK.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CL.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CN.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CO.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CU.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CV.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CX.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CY.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/CZ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/DE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/DJ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/DK.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/DM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/DO.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/DZ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/EC.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/EE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/EG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/ER.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/ES.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/ET.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/FI.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/FJ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/FK.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/FM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/FO.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/FR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GA.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GB.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GD.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GF.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GH.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GI.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GL.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GN.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GP.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GQ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GT.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GU.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GW.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/GY.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/HK.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/HN.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/HR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/HT.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/HU.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/ID.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/IE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/IL.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/IM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/IN.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/IQ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/IR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/IS.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/IT.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/JE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/JM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/JO.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/JP.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/KE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/KG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/KH.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/KI.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/KM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/KN.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/KP.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/KR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/KW.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/KY.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/KZ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/LA.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/LB.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/LC.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/LI.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/LK.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/LR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/LS.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/LT.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/LU.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/LV.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/LY.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MA.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MC.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MD.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/ME.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MH.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MK.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/ML.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MN.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MO.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MP.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MQ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MS.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MT.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MU.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MV.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MW.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MX.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MY.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/MZ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/NA.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/NC.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/NE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/NF.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/NG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/NI.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/NL.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/NO.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/NP.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/NR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/NU.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/NZ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/OM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PA.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PF.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PH.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PK.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PL.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PN.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PS.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PT.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PW.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/PY.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/QA.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/RE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/RO.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/RS.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/RU.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/RW.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SA.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SB.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SC.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SD.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SH.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SI.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SK.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SL.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SN.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SO.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/ST.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SV.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SY.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/SZ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TC.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TD.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TH.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TJ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TK.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TL.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TN.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TO.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TR.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TT.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TV.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TW.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/TZ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/UA.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/UG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/US.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/UY.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/UZ.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/VA.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/VC.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/VE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/VG.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/VI.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/VN.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/VU.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/WF.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/WS.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/YE.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/YT.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/ZA.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/ZM.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/ZW.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/alt-af.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/alt-an.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/alt-as.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/alt-eu.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/alt-na.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/alt-oc.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/alt-sa.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/data/regions/alt-ww.js +1 -1
- data/lib/condenser/processors/node_modules/caniuse-lite/package.json +10 -10
- data/lib/condenser/processors/node_modules/core-js-compat/data.json +217 -200
- data/lib/condenser/processors/node_modules/core-js-compat/package.json +12 -12
- data/lib/condenser/processors/node_modules/core-js-pure/internals/array-last-index-of.js +2 -1
- data/lib/condenser/processors/node_modules/core-js-pure/internals/array-method-uses-to-length.js +5 -8
- data/lib/condenser/processors/node_modules/core-js-pure/internals/shared.js +1 -1
- data/lib/condenser/processors/node_modules/core-js-pure/internals/task.js +7 -1
- data/lib/condenser/processors/node_modules/core-js-pure/modules/es.array.reduce-right.js +2 -1
- data/lib/condenser/processors/node_modules/core-js-pure/modules/web.url.js +1 -1
- data/lib/condenser/processors/node_modules/core-js-pure/package.json +5 -5
- data/lib/condenser/processors/node_modules/core-js-pure/postinstall.js +3 -1
- data/lib/condenser/processors/node_modules/electron-to-chromium/chromium-versions.js +3 -1
- data/lib/condenser/processors/node_modules/electron-to-chromium/full-chromium-versions.js +142 -0
- data/lib/condenser/processors/node_modules/electron-to-chromium/full-versions.js +92 -0
- data/lib/condenser/processors/node_modules/electron-to-chromium/package.json +11 -11
- data/lib/condenser/processors/node_modules/electron-to-chromium/versions.js +4 -0
- data/lib/condenser/processors/node_modules/esutils/package.json +2 -3
- data/lib/condenser/processors/node_modules/find-up/index.js +48 -0
- data/lib/condenser/processors/node_modules/{acorn/LICENSE → find-up/license} +3 -1
- data/lib/condenser/processors/node_modules/find-up/package.json +85 -0
- data/lib/condenser/processors/node_modules/find-up/readme.md +85 -0
- data/lib/condenser/processors/node_modules/fsevents/LICENSE +22 -0
- data/lib/condenser/processors/node_modules/fsevents/README.md +77 -0
- data/lib/condenser/processors/node_modules/fsevents/fsevents.d.ts +55 -0
- data/lib/condenser/processors/node_modules/fsevents/fsevents.js +77 -0
- data/lib/condenser/processors/node_modules/fsevents/fsevents.node +0 -0
- data/lib/condenser/processors/node_modules/fsevents/package.json +84 -0
- data/lib/condenser/processors/node_modules/gensync/LICENSE +7 -0
- data/lib/condenser/processors/node_modules/gensync/README.md +196 -0
- data/lib/condenser/processors/node_modules/gensync/index.js +366 -0
- data/lib/condenser/processors/node_modules/gensync/index.js.flow +32 -0
- data/lib/condenser/processors/node_modules/gensync/package.json +60 -0
- data/lib/condenser/processors/node_modules/gensync/test/.babelrc +5 -0
- data/lib/condenser/processors/node_modules/gensync/test/index.test.js +475 -0
- data/lib/condenser/processors/node_modules/invariant/package.json +2 -0
- data/lib/condenser/processors/node_modules/json5/CHANGELOG.md +15 -0
- data/lib/condenser/processors/node_modules/json5/README.md +1 -1
- data/lib/condenser/processors/node_modules/json5/dist/index.js +5 -5
- data/lib/condenser/processors/node_modules/json5/dist/index.min.js +1 -1
- data/lib/condenser/processors/node_modules/json5/dist/index.min.mjs +1 -1
- data/lib/condenser/processors/node_modules/json5/dist/index.mjs +5 -5
- data/lib/condenser/processors/node_modules/json5/lib/util.js +5 -5
- data/lib/condenser/processors/node_modules/json5/package.json +11 -11
- data/lib/condenser/processors/node_modules/leven/index.d.ts +21 -0
- data/lib/condenser/processors/node_modules/leven/index.js +77 -0
- data/lib/condenser/processors/node_modules/leven/license +9 -0
- data/lib/condenser/processors/node_modules/leven/package.json +89 -0
- data/lib/condenser/processors/node_modules/leven/readme.md +50 -0
- data/lib/condenser/processors/node_modules/{js-levenshtein → levenary}/LICENSE +3 -2
- data/lib/condenser/processors/node_modules/levenary/README.md +40 -0
- data/lib/condenser/processors/node_modules/levenary/index.d.ts +15 -0
- data/lib/condenser/processors/node_modules/levenary/index.flow.js +15 -0
- data/lib/condenser/processors/node_modules/levenary/index.js +27 -0
- data/lib/condenser/processors/node_modules/levenary/index.mjs +14 -0
- data/lib/condenser/processors/node_modules/levenary/package.json +98 -0
- data/lib/condenser/processors/node_modules/locate-path/index.js +24 -0
- data/lib/condenser/processors/node_modules/locate-path/license +21 -0
- data/lib/condenser/processors/node_modules/locate-path/package.json +79 -0
- data/lib/condenser/processors/node_modules/locate-path/readme.md +99 -0
- data/lib/condenser/processors/node_modules/magic-string/CHANGELOG.md +8 -0
- data/lib/condenser/processors/node_modules/magic-string/dist/magic-string.cjs.js +3 -7
- data/lib/condenser/processors/node_modules/magic-string/dist/magic-string.cjs.js.map +1 -1
- data/lib/condenser/processors/node_modules/magic-string/dist/magic-string.es.js +3 -7
- data/lib/condenser/processors/node_modules/magic-string/dist/magic-string.es.js.map +1 -1
- data/lib/condenser/processors/node_modules/magic-string/dist/magic-string.umd.js +3 -7
- data/lib/condenser/processors/node_modules/magic-string/dist/magic-string.umd.js.map +1 -1
- data/lib/condenser/processors/node_modules/magic-string/package.json +6 -5
- data/lib/condenser/processors/node_modules/minimist/example/parse.js +1 -1
- data/lib/condenser/processors/node_modules/minimist/index.js +12 -3
- data/lib/condenser/processors/node_modules/minimist/package.json +10 -10
- data/lib/condenser/processors/node_modules/minimist/readme.markdown +18 -14
- data/lib/condenser/processors/node_modules/minimist/test/bool.js +12 -0
- data/lib/condenser/processors/node_modules/minimist/test/proto.js +44 -0
- data/lib/condenser/processors/node_modules/node-releases/data/processed/envs.json +70 -0
- data/lib/condenser/processors/node_modules/node-releases/data/raw/nodejs.json +14 -0
- data/lib/condenser/processors/node_modules/node-releases/data/release-schedule/release-schedule.json +3 -3
- data/lib/condenser/processors/node_modules/node-releases/package.json +14 -13
- data/lib/condenser/processors/node_modules/p-limit/index.js +42 -0
- data/lib/condenser/processors/node_modules/p-limit/license +9 -0
- data/lib/condenser/processors/node_modules/p-limit/package.json +81 -0
- data/lib/condenser/processors/node_modules/p-limit/readme.md +69 -0
- data/lib/condenser/processors/node_modules/p-locate/index.js +31 -0
- data/lib/condenser/processors/node_modules/p-locate/license +21 -0
- data/lib/condenser/processors/node_modules/p-locate/package.json +86 -0
- data/lib/condenser/processors/node_modules/p-locate/readme.md +86 -0
- data/lib/condenser/processors/node_modules/p-try/index.js +4 -0
- data/lib/condenser/processors/node_modules/p-try/license +21 -0
- data/lib/condenser/processors/node_modules/p-try/package.json +75 -0
- data/lib/condenser/processors/node_modules/p-try/readme.md +38 -0
- data/lib/condenser/processors/node_modules/path-exists/index.js +17 -0
- data/lib/condenser/processors/node_modules/path-exists/license +21 -0
- data/lib/condenser/processors/node_modules/path-exists/package.json +72 -0
- data/lib/condenser/processors/node_modules/path-exists/readme.md +50 -0
- data/lib/condenser/processors/node_modules/pkg-up/index.js +5 -0
- data/lib/condenser/processors/node_modules/pkg-up/license +21 -0
- data/lib/condenser/processors/node_modules/pkg-up/package.json +82 -0
- data/lib/condenser/processors/node_modules/pkg-up/readme.md +64 -0
- data/lib/condenser/processors/node_modules/private/package.json +5 -5
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Alphabetic.js +12 -12
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Assigned.js +14 -13
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Case_Ignorable.js +6 -6
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Cased.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Changes_When_Casefolded.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Changes_When_Casemapped.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Changes_When_Lowercased.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Changes_When_NFKC_Casefolded.js +3 -3
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Changes_When_Titlecased.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Changes_When_Uppercased.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Dash.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Diacritic.js +3 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Emoji.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Emoji_Modifier_Base.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Emoji_Presentation.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Extended_Pictographic.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Extender.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Grapheme_Base.js +14 -14
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Grapheme_Extend.js +6 -6
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/ID_Continue.js +13 -12
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/ID_Start.js +9 -9
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Ideographic.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Lowercase.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Sentence_Terminal.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Terminal_Punctuation.js +3 -3
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Unified_Ideograph.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/Uppercase.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/XID_Continue.js +13 -12
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Binary_Property/XID_Start.js +9 -9
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Cased_Letter.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Dash_Punctuation.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Decimal_Number.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Letter.js +9 -9
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Lowercase_Letter.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Mark.js +6 -6
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Modifier_Letter.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Modifier_Symbol.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Nonspacing_Mark.js +6 -6
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Number.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Other.js +10 -10
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Other_Letter.js +7 -7
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Other_Number.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Other_Punctuation.js +3 -3
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Other_Symbol.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Punctuation.js +3 -3
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Spacing_Mark.js +3 -3
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Symbol.js +3 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Unassigned.js +10 -10
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/General_Category/Uppercase_Letter.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Arabic.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Armenian.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Bopomofo.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Chakma.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Chorasmian.js +3 -0
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Common.js +4 -4
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Dives_Akuru.js +3 -0
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Han.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Inherited.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Khitan_Small_Script.js +3 -0
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Latin.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Lisu.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Malayalam.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Newa.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Oriya.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Sharada.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Sinhala.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Syloti_Nagri.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Tangut.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script/Yezidi.js +3 -0
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Arabic.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Bopomofo.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Chakma.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Chorasmian.js +3 -0
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Common.js +3 -3
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Cyrillic.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Dives_Akuru.js +3 -0
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Georgian.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Han.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Inherited.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Khitan_Small_Script.js +3 -0
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Latin.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Lisu.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Malayalam.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Newa.js +2 -2
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Oriya.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Sharada.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Sinhala.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Syloti_Nagri.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Syriac.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Tangut.js +1 -1
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/Script_Extensions/Yezidi.js +3 -0
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/index.js +8 -0
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/package.json +14 -14
- data/lib/condenser/processors/node_modules/regenerate-unicode-properties/unicode-version.js +1 -1
- data/lib/condenser/processors/node_modules/regenerator-runtime/README.md +1 -1
- data/lib/condenser/processors/node_modules/regenerator-runtime/package.json +11 -11
- data/lib/condenser/processors/node_modules/regenerator-runtime/runtime.js +9 -6
- data/lib/condenser/processors/node_modules/regenerator-transform/lib/emit.js +27 -16
- data/lib/condenser/processors/node_modules/regenerator-transform/lib/hoist.js +2 -2
- data/lib/condenser/processors/node_modules/regenerator-transform/lib/leap.js +2 -2
- data/lib/condenser/processors/node_modules/regenerator-transform/lib/meta.js +2 -2
- data/lib/condenser/processors/node_modules/regenerator-transform/lib/replaceShorthandObjectMethod.js +2 -2
- data/lib/condenser/processors/node_modules/regenerator-transform/lib/visit.js +21 -10
- data/lib/condenser/processors/node_modules/regenerator-transform/package.json +20 -15
- data/lib/condenser/processors/node_modules/regenerator-transform/src/emit.js +23 -15
- data/lib/condenser/processors/node_modules/regenerator-transform/src/visit.js +17 -6
- data/lib/condenser/processors/node_modules/regexpu-core/README.md +4 -4
- data/lib/condenser/processors/node_modules/regexpu-core/package.json +17 -17
- data/lib/condenser/processors/node_modules/regexpu-core/rewrite-pattern.js +16 -10
- data/lib/condenser/processors/node_modules/regjsgen/package.json +5 -5
- data/lib/condenser/processors/node_modules/regjsparser/package.json +10 -10
- data/lib/condenser/processors/node_modules/regjsparser/parser.js +16 -4
- data/lib/condenser/processors/node_modules/resolve/.editorconfig +20 -0
- data/lib/condenser/processors/node_modules/resolve/appveyor.yml +1 -0
- data/lib/condenser/processors/node_modules/resolve/index.js +0 -1
- data/lib/condenser/processors/node_modules/resolve/lib/async.js +21 -7
- data/lib/condenser/processors/node_modules/resolve/lib/core.json +1 -1
- data/lib/condenser/processors/node_modules/resolve/lib/sync.js +20 -7
- data/lib/condenser/processors/node_modules/resolve/package.json +8 -8
- data/lib/condenser/processors/node_modules/resolve/readme.markdown +18 -0
- data/lib/condenser/processors/node_modules/resolve/test/resolver.js +32 -0
- data/lib/condenser/processors/node_modules/resolve/test/resolver/baz/package.json +1 -0
- data/lib/condenser/processors/node_modules/resolve/test/resolver_sync.js +29 -0
- data/lib/condenser/processors/node_modules/rollup-plugin-node-resolve/package.json +1 -1
- data/lib/condenser/processors/node_modules/rollup/CHANGELOG.md +344 -0
- data/lib/condenser/processors/node_modules/rollup/LICENSE.md +350 -102
- data/lib/condenser/processors/node_modules/rollup/dist/bin/rollup +1774 -1098
- data/lib/condenser/processors/node_modules/rollup/dist/es/package.json +1 -0
- data/lib/condenser/processors/node_modules/rollup/dist/es/rollup.browser.js +11 -0
- data/lib/condenser/processors/node_modules/rollup/dist/es/rollup.js +15 -0
- data/lib/condenser/processors/node_modules/rollup/dist/{rollup.es.js → es/shared/rollup.js} +16330 -14991
- data/lib/condenser/processors/node_modules/rollup/dist/es/shared/watch.js +7139 -0
- data/lib/condenser/processors/node_modules/rollup/dist/loadConfigFile.js +25 -0
- data/lib/condenser/processors/node_modules/rollup/dist/rollup.browser.js +3 -17
- data/lib/condenser/processors/node_modules/rollup/dist/rollup.d.ts +154 -93
- data/lib/condenser/processors/node_modules/rollup/dist/rollup.js +10 -17115
- data/lib/condenser/processors/node_modules/rollup/dist/shared/_events_commonjs-external.js +22 -0
- data/lib/condenser/processors/node_modules/rollup/dist/shared/loadConfigFile.js +560 -0
- data/lib/condenser/processors/node_modules/rollup/dist/shared/mergeOptions.js +67 -0
- data/lib/condenser/processors/node_modules/rollup/dist/shared/rollup.js +18787 -0
- data/lib/condenser/processors/node_modules/rollup/dist/shared/watch.js +7095 -0
- data/lib/condenser/processors/node_modules/rollup/package.json +71 -62
- data/lib/condenser/processors/node_modules/semver/package.json +2 -0
- data/lib/condenser/processors/node_modules/sourcemap-codec/CHANGELOG.md +4 -0
- data/lib/condenser/processors/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js +30 -39
- data/lib/condenser/processors/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js.map +1 -1
- data/lib/condenser/processors/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js +30 -39
- data/lib/condenser/processors/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -1
- data/lib/condenser/processors/node_modules/sourcemap-codec/package.json +5 -5
- data/lib/condenser/processors/node_modules/unicode-match-property-value-ecmascript/data/mappings.js +16 -0
- data/lib/condenser/processors/node_modules/unicode-match-property-value-ecmascript/package.json +12 -12
- data/lib/condenser/processors/node_modules/unicode-property-aliases-ecmascript/index.js +6 -0
- data/lib/condenser/processors/node_modules/unicode-property-aliases-ecmascript/package.json +7 -7
- data/lib/condenser/processors/node_processor.rb +8 -0
- data/lib/condenser/processors/package-lock.json +683 -541
- data/lib/condenser/processors/rollup_processor.rb +0 -1
- data/lib/condenser/templating_engine/ejs.rb +19 -0
- data/lib/condenser/transformers/jst_transformer.rb +87 -0
- data/lib/condenser/version.rb +1 -1
- data/test/preprocessor/babel_test.rb +2 -4
- data/test/templates/ejs_test.rb +3 -8
- metadata +204 -85
- data/lib/condenser/processors/node_modules/.bin/acorn +0 -1
- data/lib/condenser/processors/node_modules/@babel/helper-call-delegate/README.md +0 -19
- data/lib/condenser/processors/node_modules/@babel/helper-call-delegate/lib/index.js +0 -70
- data/lib/condenser/processors/node_modules/@babel/helper-call-delegate/package.json +0 -46
- data/lib/condenser/processors/node_modules/@babel/parser/lib/options.js +0 -35
- data/lib/condenser/processors/node_modules/@babel/parser/lib/parser/base.js +0 -24
- data/lib/condenser/processors/node_modules/@babel/parser/lib/parser/comments.js +0 -198
- data/lib/condenser/processors/node_modules/@babel/parser/lib/parser/expression.js +0 -1703
- data/lib/condenser/processors/node_modules/@babel/parser/lib/parser/index.js +0 -59
- data/lib/condenser/processors/node_modules/@babel/parser/lib/parser/location.js +0 -49
- data/lib/condenser/processors/node_modules/@babel/parser/lib/parser/lval.js +0 -364
- data/lib/condenser/processors/node_modules/@babel/parser/lib/parser/node.js +0 -89
- data/lib/condenser/processors/node_modules/@babel/parser/lib/parser/statement.js +0 -1529
- data/lib/condenser/processors/node_modules/@babel/parser/lib/parser/util.js +0 -228
- data/lib/condenser/processors/node_modules/@babel/parser/lib/plugin-utils.js +0 -91
- data/lib/condenser/processors/node_modules/@babel/parser/lib/plugins/estree.js +0 -283
- data/lib/condenser/processors/node_modules/@babel/parser/lib/plugins/flow.js +0 -2690
- data/lib/condenser/processors/node_modules/@babel/parser/lib/plugins/jsx/index.js +0 -516
- data/lib/condenser/processors/node_modules/@babel/parser/lib/plugins/jsx/xhtml.js +0 -263
- data/lib/condenser/processors/node_modules/@babel/parser/lib/plugins/placeholders.js +0 -204
- data/lib/condenser/processors/node_modules/@babel/parser/lib/plugins/typescript/index.js +0 -2076
- data/lib/condenser/processors/node_modules/@babel/parser/lib/plugins/typescript/scope.js +0 -94
- data/lib/condenser/processors/node_modules/@babel/parser/lib/plugins/v8intrinsic.js +0 -43
- data/lib/condenser/processors/node_modules/@babel/parser/lib/tokenizer/context.js +0 -102
- data/lib/condenser/processors/node_modules/@babel/parser/lib/tokenizer/index.js +0 -1225
- data/lib/condenser/processors/node_modules/@babel/parser/lib/tokenizer/state.js +0 -101
- data/lib/condenser/processors/node_modules/@babel/parser/lib/tokenizer/types.js +0 -267
- data/lib/condenser/processors/node_modules/@babel/parser/lib/util/location.js +0 -43
- data/lib/condenser/processors/node_modules/@babel/parser/lib/util/scope.js +0 -172
- data/lib/condenser/processors/node_modules/@babel/parser/lib/util/scopeflags.js +0 -82
- data/lib/condenser/processors/node_modules/@babel/parser/lib/util/whitespace.js +0 -58
- data/lib/condenser/processors/node_modules/@babel/preset-env/CONTRIBUTING.md +0 -103
- data/lib/condenser/processors/node_modules/@babel/preset-env/data/corejs2-built-in-features.js +0 -359
- data/lib/condenser/processors/node_modules/@babel/preset-env/data/overlapping-plugins.js +0 -16
- data/lib/condenser/processors/node_modules/@babel/preset-env/data/plugin-features.js +0 -108
- data/lib/condenser/processors/node_modules/@babel/preset-env/lib/polyfills/corejs3/shipped-proposals.js +0 -8
- data/lib/condenser/processors/node_modules/@types/estree/flow.d.ts +0 -174
- data/lib/condenser/processors/node_modules/acorn/CHANGELOG.md +0 -562
- data/lib/condenser/processors/node_modules/acorn/README.md +0 -270
- data/lib/condenser/processors/node_modules/acorn/bin/acorn +0 -4
- data/lib/condenser/processors/node_modules/acorn/dist/acorn.d.ts +0 -209
- data/lib/condenser/processors/node_modules/acorn/dist/acorn.js +0 -5001
- data/lib/condenser/processors/node_modules/acorn/dist/acorn.js.map +0 -1
- data/lib/condenser/processors/node_modules/acorn/dist/acorn.mjs +0 -4970
- data/lib/condenser/processors/node_modules/acorn/dist/acorn.mjs.map +0 -1
- data/lib/condenser/processors/node_modules/acorn/dist/bin.js +0 -64
- data/lib/condenser/processors/node_modules/acorn/package.json +0 -66
- data/lib/condenser/processors/node_modules/is-reference/node_modules/@types/estree/LICENSE +0 -21
- data/lib/condenser/processors/node_modules/is-reference/node_modules/@types/estree/README.md +0 -16
- data/lib/condenser/processors/node_modules/is-reference/node_modules/@types/estree/index.d.ts +0 -548
- data/lib/condenser/processors/node_modules/is-reference/node_modules/@types/estree/package.json +0 -51
- data/lib/condenser/processors/node_modules/js-levenshtein/README.md +0 -59
- data/lib/condenser/processors/node_modules/js-levenshtein/index.js +0 -105
- data/lib/condenser/processors/node_modules/js-levenshtein/package.json +0 -81
- data/lib/condenser/processors/node_modules/node-releases/.idea/encodings.xml +0 -4
- data/lib/condenser/processors/node_modules/node-releases/.idea/inspectionProfiles/Project_Default.xml +0 -8
- data/lib/condenser/processors/node_modules/node-releases/.idea/misc.xml +0 -9
- data/lib/condenser/processors/node_modules/node-releases/.idea/modules.xml +0 -8
- data/lib/condenser/processors/node_modules/node-releases/.idea/node-releases.iml +0 -12
- data/lib/condenser/processors/node_modules/node-releases/.idea/vcs.xml +0 -6
- data/lib/condenser/processors/node_modules/node-releases/.idea/workspace.xml +0 -121
- data/lib/condenser/processors/node_modules/node-releases/node_modules/.bin/semver +0 -1
- data/lib/condenser/processors/node_modules/node-releases/node_modules/semver/CHANGELOG.md +0 -70
- data/lib/condenser/processors/node_modules/node-releases/node_modules/semver/LICENSE +0 -15
- data/lib/condenser/processors/node_modules/node-releases/node_modules/semver/README.md +0 -443
- data/lib/condenser/processors/node_modules/node-releases/node_modules/semver/bin/semver.js +0 -174
- data/lib/condenser/processors/node_modules/node-releases/node_modules/semver/package.json +0 -60
- data/lib/condenser/processors/node_modules/node-releases/node_modules/semver/range.bnf +0 -16
- data/lib/condenser/processors/node_modules/node-releases/node_modules/semver/semver.js +0 -1596
- data/lib/condenser/processors/node_modules/rollup/dist/rollup.browser.es.js +0 -25
- data/lib/condenser/processors/node_modules/rollup/dist/shared/index.js +0 -320
- data/lib/condenser/transformers/ejs.rb +0 -100
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
/*
|
4
4
|
@license
|
5
|
-
Rollup.js
|
6
|
-
|
5
|
+
Rollup.js v2.6.1
|
6
|
+
Sun, 12 Apr 2020 21:37:03 GMT - commit e440b709a2861726183d57b4b1f25d049ed1ed6c
|
7
7
|
|
8
8
|
|
9
9
|
https://github.com/rollup/rollup
|
@@ -12,651 +12,1331 @@
|
|
12
12
|
*/
|
13
13
|
'use strict';
|
14
14
|
|
15
|
-
var
|
16
|
-
var rollup_js = require('../rollup.js');
|
17
|
-
require('util');
|
15
|
+
var rollup_js = require('../shared/rollup.js');
|
18
16
|
var path = require('path');
|
19
|
-
var fs = require('fs');
|
20
|
-
require('acorn');
|
21
17
|
require('crypto');
|
22
|
-
var
|
23
|
-
require('
|
18
|
+
var fs = require('fs');
|
19
|
+
require('events');
|
20
|
+
require('util');
|
21
|
+
var _events_commonjsExternal = require('../shared/_events_commonjs-external.js');
|
22
|
+
var mergeOptions = require('../shared/mergeOptions.js');
|
23
|
+
var loadConfigFile_js = require('../shared/loadConfigFile.js');
|
24
|
+
var module$1 = require('module');
|
25
|
+
require('url');
|
24
26
|
var assert = require('assert');
|
25
27
|
|
26
|
-
var help = "rollup version __VERSION__\n=====================================\n\nUsage: rollup [options] <entry file>\n\nBasic options:\n\n-c, --config <filename> Use this config file (if argument is used but value\n is unspecified, defaults to rollup.config.js)\n-d, --dir <dirname> Directory for chunks (if absent, prints to stdout)\n-e, --external <ids> Comma-separate list of module IDs to exclude\n-f, --format <format> Type of output (amd, cjs,
|
28
|
+
var help = "rollup version __VERSION__\n=====================================\n\nUsage: rollup [options] <entry file>\n\nBasic options:\n\n-c, --config <filename> Use this config file (if argument is used but value\n is unspecified, defaults to rollup.config.js)\n-d, --dir <dirname> Directory for chunks (if absent, prints to stdout)\n-e, --external <ids> Comma-separate list of module IDs to exclude\n-f, --format <format> Type of output (amd, cjs, es, iife, umd, system)\n-g, --globals <pairs> Comma-separate list of `moduleID:Global` pairs\n-h, --help Show this help message\n-i, --input <filename> Input (alternative to <entry file>)\n-m, --sourcemap Generate sourcemap (`-m inline` for inline map)\n-n, --name <name> Name for UMD export\n-o, --file <output> Single output file (if absent, prints to stdout)\n-p, --plugin <plugin> Use the plugin specified (may be repeated)\n-v, --version Show version number\n-w, --watch Watch files in bundle and rebuild on changes\n--amd.id <id> ID for AMD module (default is anonymous)\n--amd.define <name> Function to use in place of `define`\n--assetFileNames <pattern> Name pattern for emitted assets\n--banner <text> Code to insert at top of bundle (outside wrapper)\n--chunkFileNames <pattern> Name pattern for emitted secondary chunks\n--compact Minify wrapper code\n--context <variable> Specify top-level `this` value\n--entryFileNames <pattern> Name pattern for emitted entry chunks\n--environment <values> Settings passed to config file (see example)\n--no-esModule Do not add __esModule property\n--exports <mode> Specify export mode (auto, default, named, none)\n--extend Extend global variable defined by --name\n--no-externalLiveBindings Do not generate code to support live bindings\n--footer <text> Code to insert at end of bundle (outside wrapper)\n--no-freeze Do not freeze namespace objects\n--no-hoistTransitiveImports Do not hoist transitive imports into entry chunks\n--no-indent Don't indent result\n--no-interop Do not include interop block\n--inlineDynamicImports Create single bundle when using dynamic imports\n--intro <text> Code to insert at top of bundle (inside wrapper)\n--namespaceToStringTag Create proper `.toString` methods for namespaces\n--noConflict Generate a noConflict method for UMD globals\n--no-strict Don't emit `\"use strict\";` in the generated modules\n--outro <text> Code to insert at end of bundle (inside wrapper)\n--preferConst Use `const` instead of `var` for exports\n--preserveModules Preserve module structure\n--preserveSymlinks Do not follow symlinks when resolving files\n--shimMissingExports Create shim variables for missing exports\n--silent Don't print warnings\n--sourcemapExcludeSources Do not include source code in source maps\n--sourcemapFile <file> Specify bundle position for source maps\n--no-stdin do not read \"-\" from stdin\n--strictDeprecations Throw errors for deprecated features\n--no-treeshake Disable tree-shaking optimisations\n--no-treeshake.annotations Ignore pure call annotations\n--no-treeshake.propertyReadSideEffects Ignore property access side-effects\n\nExamples:\n\n# use settings in config file\nrollup -c\n\n# in config file, process.env.INCLUDE_DEPS === 'true'\n# and process.env.BUILD === 'production'\nrollup -c --environment INCLUDE_DEPS,BUILD:production\n\n# create CommonJS bundle.js from src/main.js\nrollup --format=cjs --file=bundle.js -- src/main.js\n\n# create self-executing IIFE using `window.jQuery`\n# and `window._` as external globals\nrollup -f iife --globals jquery:jQuery,lodash:_ \\\n -i src/app.js -o build/app.js -m build/app.js.map\n\nNotes:\n\n* When piping to stdout, only inline sourcemaps are permitted\n\nFor more information visit https://rollupjs.org\n";
|
29
|
+
|
30
|
+
const preserveCamelCase = string => {
|
31
|
+
let isLastCharLower = false;
|
32
|
+
let isLastCharUpper = false;
|
33
|
+
let isLastLastCharUpper = false;
|
34
|
+
|
35
|
+
for (let i = 0; i < string.length; i++) {
|
36
|
+
const character = string[i];
|
37
|
+
|
38
|
+
if (isLastCharLower && /[a-zA-Z]/.test(character) && character.toUpperCase() === character) {
|
39
|
+
string = string.slice(0, i) + '-' + string.slice(i);
|
40
|
+
isLastCharLower = false;
|
41
|
+
isLastLastCharUpper = isLastCharUpper;
|
42
|
+
isLastCharUpper = true;
|
43
|
+
i++;
|
44
|
+
} else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(character) && character.toLowerCase() === character) {
|
45
|
+
string = string.slice(0, i - 1) + '-' + string.slice(i - 1);
|
46
|
+
isLastLastCharUpper = isLastCharUpper;
|
47
|
+
isLastCharUpper = false;
|
48
|
+
isLastCharLower = true;
|
49
|
+
} else {
|
50
|
+
isLastCharLower = character.toLowerCase() === character && character.toUpperCase() !== character;
|
51
|
+
isLastLastCharUpper = isLastCharUpper;
|
52
|
+
isLastCharUpper = character.toUpperCase() === character && character.toLowerCase() !== character;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
return string;
|
57
|
+
};
|
58
|
+
|
59
|
+
const camelCase = (input, options) => {
|
60
|
+
if (!(typeof input === 'string' || Array.isArray(input))) {
|
61
|
+
throw new TypeError('Expected the input to be `string | string[]`');
|
62
|
+
}
|
63
|
+
|
64
|
+
options = Object.assign({
|
65
|
+
pascalCase: false
|
66
|
+
}, options);
|
67
|
+
|
68
|
+
const postProcess = x => options.pascalCase ? x.charAt(0).toUpperCase() + x.slice(1) : x;
|
69
|
+
|
70
|
+
if (Array.isArray(input)) {
|
71
|
+
input = input.map(x => x.trim())
|
72
|
+
.filter(x => x.length)
|
73
|
+
.join('-');
|
74
|
+
} else {
|
75
|
+
input = input.trim();
|
76
|
+
}
|
77
|
+
|
78
|
+
if (input.length === 0) {
|
79
|
+
return '';
|
80
|
+
}
|
81
|
+
|
82
|
+
if (input.length === 1) {
|
83
|
+
return options.pascalCase ? input.toUpperCase() : input.toLowerCase();
|
84
|
+
}
|
85
|
+
|
86
|
+
const hasUpperCase = input !== input.toLowerCase();
|
87
|
+
|
88
|
+
if (hasUpperCase) {
|
89
|
+
input = preserveCamelCase(input);
|
90
|
+
}
|
91
|
+
|
92
|
+
input = input
|
93
|
+
.replace(/^[_.\- ]+/, '')
|
94
|
+
.toLowerCase()
|
95
|
+
.replace(/[_.\- ]+(\w|$)/g, (_, p1) => p1.toUpperCase())
|
96
|
+
.replace(/\d+(\w|$)/g, m => m.toUpperCase());
|
27
97
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
98
|
+
return postProcess(input);
|
99
|
+
};
|
100
|
+
|
101
|
+
var camelcase = camelCase;
|
102
|
+
// TODO: Remove this for the next major release
|
103
|
+
var default_1 = camelCase;
|
104
|
+
camelcase.default = default_1;
|
105
|
+
|
106
|
+
var decamelize = function (str, sep) {
|
107
|
+
if (typeof str !== 'string') {
|
108
|
+
throw new TypeError('Expected a string');
|
109
|
+
}
|
110
|
+
|
111
|
+
sep = typeof sep === 'undefined' ? '_' : sep;
|
112
|
+
|
113
|
+
return str
|
114
|
+
.replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2')
|
115
|
+
.replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + sep + '$2')
|
116
|
+
.toLowerCase();
|
117
|
+
};
|
118
|
+
|
119
|
+
// take an un-split argv string and tokenize it.
|
120
|
+
var tokenizeArgString = function (argString) {
|
121
|
+
if (Array.isArray(argString)) {
|
122
|
+
return argString.map(e => typeof e !== 'string' ? e + '' : e)
|
123
|
+
}
|
124
|
+
|
125
|
+
argString = argString.trim();
|
126
|
+
|
127
|
+
let i = 0;
|
128
|
+
let prevC = null;
|
129
|
+
let c = null;
|
130
|
+
let opening = null;
|
131
|
+
const args = [];
|
132
|
+
|
133
|
+
for (let ii = 0; ii < argString.length; ii++) {
|
134
|
+
prevC = c;
|
135
|
+
c = argString.charAt(ii);
|
136
|
+
|
137
|
+
// split on spaces unless we're in quotes.
|
138
|
+
if (c === ' ' && !opening) {
|
139
|
+
if (!(prevC === ' ')) {
|
140
|
+
i++;
|
141
|
+
}
|
142
|
+
continue
|
34
143
|
}
|
35
|
-
|
36
|
-
|
144
|
+
|
145
|
+
// don't split the string if we're in matching
|
146
|
+
// opening or closing single and double quotes.
|
147
|
+
if (c === opening) {
|
148
|
+
opening = null;
|
149
|
+
} else if ((c === "'" || c === '"') && !opening) {
|
150
|
+
opening = c;
|
37
151
|
}
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
152
|
+
|
153
|
+
if (!args[i]) args[i] = '';
|
154
|
+
args[i] += c;
|
155
|
+
}
|
156
|
+
|
157
|
+
return args
|
158
|
+
};
|
159
|
+
|
160
|
+
function parse (args, opts) {
|
161
|
+
opts = Object.assign(Object.create(null), opts);
|
162
|
+
// allow a string argument to be passed in rather
|
163
|
+
// than an argv array.
|
164
|
+
args = tokenizeArgString(args);
|
165
|
+
|
166
|
+
// aliases might have transitive relationships, normalize this.
|
167
|
+
const aliases = combineAliases(Object.assign(Object.create(null), opts.alias));
|
168
|
+
const configuration = Object.assign({
|
169
|
+
'boolean-negation': true,
|
170
|
+
'camel-case-expansion': true,
|
171
|
+
'combine-arrays': false,
|
172
|
+
'dot-notation': true,
|
173
|
+
'duplicate-arguments-array': true,
|
174
|
+
'flatten-duplicate-arrays': true,
|
175
|
+
'greedy-arrays': true,
|
176
|
+
'halt-at-non-option': false,
|
177
|
+
'nargs-eats-options': false,
|
178
|
+
'negation-prefix': 'no-',
|
179
|
+
'parse-numbers': true,
|
180
|
+
'populate--': false,
|
181
|
+
'set-placeholder-key': false,
|
182
|
+
'short-option-groups': true,
|
183
|
+
'strip-aliased': false,
|
184
|
+
'strip-dashed': false,
|
185
|
+
'unknown-options-as-args': false
|
186
|
+
}, opts.configuration);
|
187
|
+
const defaults = Object.assign(Object.create(null), opts.default);
|
188
|
+
const configObjects = opts.configObjects || [];
|
189
|
+
const envPrefix = opts.envPrefix;
|
190
|
+
const notFlagsOption = configuration['populate--'];
|
191
|
+
const notFlagsArgv = notFlagsOption ? '--' : '_';
|
192
|
+
const newAliases = Object.create(null);
|
193
|
+
const defaulted = Object.create(null);
|
194
|
+
// allow a i18n handler to be passed in, default to a fake one (util.format).
|
195
|
+
const __ = opts.__ || _events_commonjsExternal.require$$1.format;
|
196
|
+
const flags = {
|
197
|
+
aliases: Object.create(null),
|
198
|
+
arrays: Object.create(null),
|
199
|
+
bools: Object.create(null),
|
200
|
+
strings: Object.create(null),
|
201
|
+
numbers: Object.create(null),
|
202
|
+
counts: Object.create(null),
|
203
|
+
normalize: Object.create(null),
|
204
|
+
configs: Object.create(null),
|
205
|
+
nargs: Object.create(null),
|
206
|
+
coercions: Object.create(null),
|
207
|
+
keys: []
|
208
|
+
};
|
209
|
+
const negative = /^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/;
|
210
|
+
const negatedBoolean = new RegExp('^--' + configuration['negation-prefix'] + '(.+)')
|
211
|
+
|
212
|
+
;[].concat(opts.array).filter(Boolean).forEach(function (opt) {
|
213
|
+
const key = opt.key || opt;
|
214
|
+
|
215
|
+
// assign to flags[bools|strings|numbers]
|
216
|
+
const assignment = Object.keys(opt).map(function (key) {
|
217
|
+
return ({
|
218
|
+
boolean: 'bools',
|
219
|
+
string: 'strings',
|
220
|
+
number: 'numbers'
|
221
|
+
})[key]
|
222
|
+
}).filter(Boolean).pop();
|
223
|
+
|
224
|
+
// assign key to be coerced
|
225
|
+
if (assignment) {
|
226
|
+
flags[assignment][key] = true;
|
42
227
|
}
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
228
|
+
|
229
|
+
flags.arrays[key] = true;
|
230
|
+
flags.keys.push(key);
|
231
|
+
})
|
232
|
+
|
233
|
+
;[].concat(opts.boolean).filter(Boolean).forEach(function (key) {
|
234
|
+
flags.bools[key] = true;
|
235
|
+
flags.keys.push(key);
|
236
|
+
})
|
237
|
+
|
238
|
+
;[].concat(opts.string).filter(Boolean).forEach(function (key) {
|
239
|
+
flags.strings[key] = true;
|
240
|
+
flags.keys.push(key);
|
241
|
+
})
|
242
|
+
|
243
|
+
;[].concat(opts.number).filter(Boolean).forEach(function (key) {
|
244
|
+
flags.numbers[key] = true;
|
245
|
+
flags.keys.push(key);
|
246
|
+
})
|
247
|
+
|
248
|
+
;[].concat(opts.count).filter(Boolean).forEach(function (key) {
|
249
|
+
flags.counts[key] = true;
|
250
|
+
flags.keys.push(key);
|
251
|
+
})
|
252
|
+
|
253
|
+
;[].concat(opts.normalize).filter(Boolean).forEach(function (key) {
|
254
|
+
flags.normalize[key] = true;
|
255
|
+
flags.keys.push(key);
|
256
|
+
});
|
257
|
+
|
258
|
+
Object.keys(opts.narg || {}).forEach(function (k) {
|
259
|
+
flags.nargs[k] = opts.narg[k];
|
260
|
+
flags.keys.push(k);
|
261
|
+
});
|
262
|
+
|
263
|
+
Object.keys(opts.coerce || {}).forEach(function (k) {
|
264
|
+
flags.coercions[k] = opts.coerce[k];
|
265
|
+
flags.keys.push(k);
|
266
|
+
});
|
267
|
+
|
268
|
+
if (Array.isArray(opts.config) || typeof opts.config === 'string') {
|
269
|
+
[].concat(opts.config).filter(Boolean).forEach(function (key) {
|
270
|
+
flags.configs[key] = true;
|
51
271
|
});
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
flags.strings[aliases[key]] = true;
|
56
|
-
}
|
272
|
+
} else {
|
273
|
+
Object.keys(opts.config || {}).forEach(function (k) {
|
274
|
+
flags.configs[k] = opts.config[k];
|
57
275
|
});
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
276
|
+
}
|
277
|
+
|
278
|
+
// create a lookup table that takes into account all
|
279
|
+
// combinations of aliases: {f: ['foo'], foo: ['f']}
|
280
|
+
extendAliases(opts.key, aliases, opts.default, flags.arrays);
|
281
|
+
|
282
|
+
// apply default values to all aliases.
|
283
|
+
Object.keys(defaults).forEach(function (key) {
|
284
|
+
(flags.aliases[key] || []).forEach(function (alias) {
|
285
|
+
defaults[alias] = defaults[key];
|
62
286
|
});
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
287
|
+
});
|
288
|
+
|
289
|
+
let error = null;
|
290
|
+
checkConfiguration();
|
291
|
+
|
292
|
+
let notFlags = [];
|
293
|
+
|
294
|
+
const argv = Object.assign(Object.create(null), { _: [] });
|
295
|
+
// TODO(bcoe): for the first pass at removing object prototype we didn't
|
296
|
+
// remove all prototypes from objects returned by this API, we might want
|
297
|
+
// to gradually move towards doing so.
|
298
|
+
const argvReturn = {};
|
299
|
+
|
300
|
+
for (let i = 0; i < args.length; i++) {
|
301
|
+
const arg = args[i];
|
302
|
+
let broken;
|
303
|
+
let key;
|
304
|
+
let letters;
|
305
|
+
let m;
|
306
|
+
let next;
|
307
|
+
let value;
|
308
|
+
|
309
|
+
// any unknown option (except for end-of-options, "--")
|
310
|
+
if (arg !== '--' && isUnknownOptionAsArg(arg)) {
|
311
|
+
argv._.push(arg);
|
312
|
+
// -- separated by =
|
313
|
+
} else if (arg.match(/^--.+=/) || (
|
314
|
+
!configuration['short-option-groups'] && arg.match(/^-.+=/)
|
315
|
+
)) {
|
316
|
+
// Using [\s\S] instead of . because js doesn't support the
|
317
|
+
// 'dotall' regex modifier. See:
|
318
|
+
// http://stackoverflow.com/a/1068308/13216
|
319
|
+
m = arg.match(/^--?([^=]+)=([\s\S]*)$/);
|
320
|
+
|
321
|
+
// arrays format = '--f=a b c'
|
322
|
+
if (checkAllAliases(m[1], flags.arrays)) {
|
323
|
+
i = eatArray(i, m[1], args, m[2]);
|
324
|
+
} else if (checkAllAliases(m[1], flags.nargs) !== false) {
|
325
|
+
// nargs format = '--f=monkey washing cat'
|
326
|
+
i = eatNargs(i, m[1], args, m[2]);
|
327
|
+
} else {
|
328
|
+
setArg(m[1], m[2]);
|
329
|
+
}
|
330
|
+
} else if (arg.match(negatedBoolean) && configuration['boolean-negation']) {
|
331
|
+
key = arg.match(negatedBoolean)[1];
|
332
|
+
setArg(key, checkAllAliases(key, flags.arrays) ? [false] : false);
|
333
|
+
|
334
|
+
// -- separated by space.
|
335
|
+
} else if (arg.match(/^--.+/) || (
|
336
|
+
!configuration['short-option-groups'] && arg.match(/^-[^-]+/)
|
337
|
+
)) {
|
338
|
+
key = arg.match(/^--?(.+)/)[1];
|
339
|
+
|
340
|
+
if (checkAllAliases(key, flags.arrays)) {
|
341
|
+
// array format = '--foo a b c'
|
342
|
+
i = eatArray(i, key, args);
|
343
|
+
} else if (checkAllAliases(key, flags.nargs) !== false) {
|
344
|
+
// nargs format = '--foo a b c'
|
345
|
+
// should be truthy even if: flags.nargs[key] === 0
|
346
|
+
i = eatNargs(i, key, args);
|
347
|
+
} else {
|
348
|
+
next = args[i + 1];
|
349
|
+
|
350
|
+
if (next !== undefined && (!next.match(/^-/) ||
|
351
|
+
next.match(negative)) &&
|
352
|
+
!checkAllAliases(key, flags.bools) &&
|
353
|
+
!checkAllAliases(key, flags.counts)) {
|
354
|
+
setArg(key, next);
|
355
|
+
i++;
|
356
|
+
} else if (/^(true|false)$/.test(next)) {
|
357
|
+
setArg(key, next);
|
358
|
+
i++;
|
359
|
+
} else {
|
360
|
+
setArg(key, defaultValue(key));
|
76
361
|
}
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
362
|
+
}
|
363
|
+
|
364
|
+
// dot-notation flag separated by '='.
|
365
|
+
} else if (arg.match(/^-.\..+=/)) {
|
366
|
+
m = arg.match(/^-([^=]+)=([\s\S]*)$/);
|
367
|
+
setArg(m[1], m[2]);
|
368
|
+
|
369
|
+
// dot-notation flag separated by space.
|
370
|
+
} else if (arg.match(/^-.\..+/) && !arg.match(negative)) {
|
371
|
+
next = args[i + 1];
|
372
|
+
key = arg.match(/^-(.\..+)/)[1];
|
373
|
+
|
374
|
+
if (next !== undefined && !next.match(/^-/) &&
|
375
|
+
!checkAllAliases(key, flags.bools) &&
|
376
|
+
!checkAllAliases(key, flags.counts)) {
|
377
|
+
setArg(key, next);
|
378
|
+
i++;
|
379
|
+
} else {
|
380
|
+
setArg(key, defaultValue(key));
|
381
|
+
}
|
382
|
+
} else if (arg.match(/^-[^-]+/) && !arg.match(negative)) {
|
383
|
+
letters = arg.slice(1, -1).split('');
|
384
|
+
broken = false;
|
385
|
+
|
386
|
+
for (let j = 0; j < letters.length; j++) {
|
387
|
+
next = arg.slice(j + 2);
|
388
|
+
|
389
|
+
if (letters[j + 1] && letters[j + 1] === '=') {
|
390
|
+
value = arg.slice(j + 3);
|
391
|
+
key = letters[j];
|
392
|
+
|
393
|
+
if (checkAllAliases(key, flags.arrays)) {
|
394
|
+
// array format = '-f=a b c'
|
395
|
+
i = eatArray(i, key, args, value);
|
396
|
+
} else if (checkAllAliases(key, flags.nargs) !== false) {
|
397
|
+
// nargs format = '-f=monkey washing cat'
|
398
|
+
i = eatNargs(i, key, args, value);
|
399
|
+
} else {
|
400
|
+
setArg(key, value);
|
401
|
+
}
|
402
|
+
|
403
|
+
broken = true;
|
404
|
+
break
|
94
405
|
}
|
95
|
-
|
96
|
-
|
406
|
+
|
407
|
+
if (next === '-') {
|
408
|
+
setArg(letters[j], next);
|
409
|
+
continue
|
97
410
|
}
|
98
|
-
|
99
|
-
|
411
|
+
|
412
|
+
// current letter is an alphabetic character and next value is a number
|
413
|
+
if (/[A-Za-z]/.test(letters[j]) &&
|
414
|
+
/^-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
|
415
|
+
setArg(letters[j], next);
|
416
|
+
broken = true;
|
417
|
+
break
|
100
418
|
}
|
419
|
+
|
420
|
+
if (letters[j + 1] && letters[j + 1].match(/\W/)) {
|
421
|
+
setArg(letters[j], next);
|
422
|
+
broken = true;
|
423
|
+
break
|
424
|
+
} else {
|
425
|
+
setArg(letters[j], defaultValue(letters[j]));
|
426
|
+
}
|
427
|
+
}
|
428
|
+
|
429
|
+
key = arg.slice(-1)[0];
|
430
|
+
|
431
|
+
if (!broken && key !== '-') {
|
432
|
+
if (checkAllAliases(key, flags.arrays)) {
|
433
|
+
// array format = '-f a b c'
|
434
|
+
i = eatArray(i, key, args);
|
435
|
+
} else if (checkAllAliases(key, flags.nargs) !== false) {
|
436
|
+
// nargs format = '-f a b c'
|
437
|
+
// should be truthy even if: flags.nargs[key] === 0
|
438
|
+
i = eatNargs(i, key, args);
|
439
|
+
} else {
|
440
|
+
next = args[i + 1];
|
441
|
+
|
442
|
+
if (next !== undefined && (!/^(-|--)[^-]/.test(next) ||
|
443
|
+
next.match(negative)) &&
|
444
|
+
!checkAllAliases(key, flags.bools) &&
|
445
|
+
!checkAllAliases(key, flags.counts)) {
|
446
|
+
setArg(key, next);
|
447
|
+
i++;
|
448
|
+
} else if (/^(true|false)$/.test(next)) {
|
449
|
+
setArg(key, next);
|
450
|
+
i++;
|
451
|
+
} else {
|
452
|
+
setArg(key, defaultValue(key));
|
453
|
+
}
|
454
|
+
}
|
455
|
+
}
|
456
|
+
} else if (arg.match(/^-[0-9]$/) &&
|
457
|
+
arg.match(negative) &&
|
458
|
+
checkAllAliases(arg.slice(1), flags.bools)) {
|
459
|
+
// single-digit boolean alias, e.g: xargs -0
|
460
|
+
key = arg.slice(1);
|
461
|
+
setArg(key, defaultValue(key));
|
462
|
+
} else if (arg === '--') {
|
463
|
+
notFlags = args.slice(i + 1);
|
464
|
+
break
|
465
|
+
} else if (configuration['halt-at-non-option']) {
|
466
|
+
notFlags = args.slice(i);
|
467
|
+
break
|
468
|
+
} else {
|
469
|
+
argv._.push(maybeCoerceNumber('_', arg));
|
470
|
+
}
|
471
|
+
}
|
472
|
+
|
473
|
+
// order of precedence:
|
474
|
+
// 1. command line arg
|
475
|
+
// 2. value from env var
|
476
|
+
// 3. value from config file
|
477
|
+
// 4. value from config objects
|
478
|
+
// 5. configured default value
|
479
|
+
applyEnvVars(argv, true); // special case: check env vars that point to config file
|
480
|
+
applyEnvVars(argv, false);
|
481
|
+
setConfig(argv);
|
482
|
+
setConfigObjects();
|
483
|
+
applyDefaultsAndAliases(argv, flags.aliases, defaults, true);
|
484
|
+
applyCoercions(argv);
|
485
|
+
if (configuration['set-placeholder-key']) setPlaceholderKeys(argv);
|
486
|
+
|
487
|
+
// for any counts either not in args or without an explicit default, set to 0
|
488
|
+
Object.keys(flags.counts).forEach(function (key) {
|
489
|
+
if (!hasKey(argv, key.split('.'))) setArg(key, 0);
|
490
|
+
});
|
491
|
+
|
492
|
+
// '--' defaults to undefined.
|
493
|
+
if (notFlagsOption && notFlags.length) argv[notFlagsArgv] = [];
|
494
|
+
notFlags.forEach(function (key) {
|
495
|
+
argv[notFlagsArgv].push(key);
|
496
|
+
});
|
497
|
+
|
498
|
+
if (configuration['camel-case-expansion'] && configuration['strip-dashed']) {
|
499
|
+
Object.keys(argv).filter(key => key !== '--' && key.includes('-')).forEach(key => {
|
500
|
+
delete argv[key];
|
501
|
+
});
|
502
|
+
}
|
503
|
+
|
504
|
+
if (configuration['strip-aliased']) {
|
505
|
+
[].concat(...Object.keys(aliases).map(k => aliases[k])).forEach(alias => {
|
506
|
+
if (configuration['camel-case-expansion']) {
|
507
|
+
delete argv[alias.split('.').map(prop => camelcase(prop)).join('.')];
|
508
|
+
}
|
509
|
+
|
510
|
+
delete argv[alias];
|
511
|
+
});
|
512
|
+
}
|
513
|
+
|
514
|
+
// how many arguments should we consume, based
|
515
|
+
// on the nargs option?
|
516
|
+
function eatNargs (i, key, args, argAfterEqualSign) {
|
517
|
+
let ii;
|
518
|
+
let toEat = checkAllAliases(key, flags.nargs);
|
519
|
+
// NaN has a special meaning for the array type, indicating that one or
|
520
|
+
// more values are expected.
|
521
|
+
toEat = isNaN(toEat) ? 1 : toEat;
|
522
|
+
|
523
|
+
if (toEat === 0) {
|
524
|
+
if (!isUndefined(argAfterEqualSign)) {
|
525
|
+
error = Error(__('Argument unexpected for: %s', key));
|
526
|
+
}
|
527
|
+
setArg(key, defaultValue(key));
|
528
|
+
return i
|
529
|
+
}
|
530
|
+
|
531
|
+
let available = isUndefined(argAfterEqualSign) ? 0 : 1;
|
532
|
+
if (configuration['nargs-eats-options']) {
|
533
|
+
// classic behavior, yargs eats positional and dash arguments.
|
534
|
+
if (args.length - (i + 1) + available < toEat) {
|
535
|
+
error = Error(__('Not enough arguments following: %s', key));
|
536
|
+
}
|
537
|
+
available = toEat;
|
538
|
+
} else {
|
539
|
+
// nargs will not consume flag arguments, e.g., -abc, --foo,
|
540
|
+
// and terminates when one is observed.
|
541
|
+
for (ii = i + 1; ii < args.length; ii++) {
|
542
|
+
if (!args[ii].match(/^-[^0-9]/) || args[ii].match(negative) || isUnknownOptionAsArg(args[ii])) available++;
|
543
|
+
else break
|
544
|
+
}
|
545
|
+
if (available < toEat) error = Error(__('Not enough arguments following: %s', key));
|
546
|
+
}
|
547
|
+
|
548
|
+
let consumed = Math.min(available, toEat);
|
549
|
+
if (!isUndefined(argAfterEqualSign) && consumed > 0) {
|
550
|
+
setArg(key, argAfterEqualSign);
|
551
|
+
consumed--;
|
552
|
+
}
|
553
|
+
for (ii = i + 1; ii < (consumed + i + 1); ii++) {
|
554
|
+
setArg(key, args[ii]);
|
555
|
+
}
|
556
|
+
|
557
|
+
return (i + consumed)
|
558
|
+
}
|
559
|
+
|
560
|
+
// if an option is an array, eat all non-hyphenated arguments
|
561
|
+
// following it... YUM!
|
562
|
+
// e.g., --foo apple banana cat becomes ["apple", "banana", "cat"]
|
563
|
+
function eatArray (i, key, args, argAfterEqualSign) {
|
564
|
+
let argsToSet = [];
|
565
|
+
let next = argAfterEqualSign || args[i + 1];
|
566
|
+
// If both array and nargs are configured, enforce the nargs count:
|
567
|
+
const nargsCount = checkAllAliases(key, flags.nargs);
|
568
|
+
|
569
|
+
if (checkAllAliases(key, flags.bools) && !(/^(true|false)$/.test(next))) {
|
570
|
+
argsToSet.push(true);
|
571
|
+
} else if (isUndefined(next) ||
|
572
|
+
(isUndefined(argAfterEqualSign) && /^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next))) {
|
573
|
+
// for keys without value ==> argsToSet remains an empty []
|
574
|
+
// set user default value, if available
|
575
|
+
if (defaults[key] !== undefined) {
|
576
|
+
const defVal = defaults[key];
|
577
|
+
argsToSet = Array.isArray(defVal) ? defVal : [defVal];
|
578
|
+
}
|
579
|
+
} else {
|
580
|
+
// value in --option=value is eaten as is
|
581
|
+
if (!isUndefined(argAfterEqualSign)) {
|
582
|
+
argsToSet.push(processValue(key, argAfterEqualSign));
|
583
|
+
}
|
584
|
+
for (let ii = i + 1; ii < args.length; ii++) {
|
585
|
+
if ((!configuration['greedy-arrays'] && argsToSet.length > 0) ||
|
586
|
+
(nargsCount && argsToSet.length >= nargsCount)) break
|
587
|
+
next = args[ii];
|
588
|
+
if (/^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next)) break
|
589
|
+
i = ii;
|
590
|
+
argsToSet.push(processValue(key, next));
|
591
|
+
}
|
101
592
|
}
|
102
|
-
|
103
|
-
|
104
|
-
|
593
|
+
|
594
|
+
// If both array and nargs are configured, create an error if less than
|
595
|
+
// nargs positionals were found. NaN has special meaning, indicating
|
596
|
+
// that at least one value is required (more are okay).
|
597
|
+
if ((nargsCount && argsToSet.length < nargsCount) ||
|
598
|
+
(isNaN(nargsCount) && argsToSet.length === 0)) {
|
599
|
+
error = Error(__('Not enough arguments following: %s', key));
|
600
|
+
}
|
601
|
+
|
602
|
+
setArg(key, argsToSet);
|
603
|
+
return i
|
604
|
+
}
|
605
|
+
|
606
|
+
function setArg (key, val) {
|
607
|
+
if (/-/.test(key) && configuration['camel-case-expansion']) {
|
608
|
+
const alias = key.split('.').map(function (prop) {
|
609
|
+
return camelcase(prop)
|
610
|
+
}).join('.');
|
611
|
+
addNewAlias(key, alias);
|
612
|
+
}
|
613
|
+
|
614
|
+
const value = processValue(key, val);
|
615
|
+
const splitKey = key.split('.');
|
616
|
+
setKey(argv, splitKey, value);
|
617
|
+
|
618
|
+
// handle populating aliases of the full key
|
619
|
+
if (flags.aliases[key]) {
|
620
|
+
flags.aliases[key].forEach(function (x) {
|
621
|
+
x = x.split('.');
|
622
|
+
setKey(argv, x, value);
|
623
|
+
});
|
624
|
+
}
|
625
|
+
|
626
|
+
// handle populating aliases of the first element of the dot-notation key
|
627
|
+
if (splitKey.length > 1 && configuration['dot-notation']) {
|
628
|
+
(flags.aliases[splitKey[0]] || []).forEach(function (x) {
|
629
|
+
x = x.split('.');
|
630
|
+
|
631
|
+
// expand alias with nested objects in key
|
632
|
+
const a = [].concat(splitKey);
|
633
|
+
a.shift(); // nuke the old key.
|
634
|
+
x = x.concat(a);
|
635
|
+
|
636
|
+
setKey(argv, x, value);
|
637
|
+
});
|
638
|
+
}
|
639
|
+
|
640
|
+
// Set normalize getter and setter when key is in 'normalize' but isn't an array
|
641
|
+
if (checkAllAliases(key, flags.normalize) && !checkAllAliases(key, flags.arrays)) {
|
642
|
+
const keys = [key].concat(flags.aliases[key] || []);
|
643
|
+
keys.forEach(function (key) {
|
644
|
+
Object.defineProperty(argvReturn, key, {
|
645
|
+
enumerable: true,
|
646
|
+
get () {
|
647
|
+
return val
|
648
|
+
},
|
649
|
+
set (value) {
|
650
|
+
val = typeof value === 'string' ? _events_commonjsExternal.sysPath.normalize(value) : value;
|
651
|
+
}
|
105
652
|
});
|
653
|
+
});
|
106
654
|
}
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
655
|
+
}
|
656
|
+
|
657
|
+
function addNewAlias (key, alias) {
|
658
|
+
if (!(flags.aliases[key] && flags.aliases[key].length)) {
|
659
|
+
flags.aliases[key] = [alias];
|
660
|
+
newAliases[alias] = true;
|
661
|
+
}
|
662
|
+
if (!(flags.aliases[alias] && flags.aliases[alias].length)) {
|
663
|
+
addNewAlias(alias, key);
|
664
|
+
}
|
665
|
+
}
|
666
|
+
|
667
|
+
function processValue (key, val) {
|
668
|
+
// strings may be quoted, clean this up as we assign values.
|
669
|
+
if (typeof val === 'string' &&
|
670
|
+
(val[0] === "'" || val[0] === '"') &&
|
671
|
+
val[val.length - 1] === val[0]
|
672
|
+
) {
|
673
|
+
val = val.substring(1, val.length - 1);
|
674
|
+
}
|
675
|
+
|
676
|
+
// handle parsing boolean arguments --foo=true --bar false.
|
677
|
+
if (checkAllAliases(key, flags.bools) || checkAllAliases(key, flags.counts)) {
|
678
|
+
if (typeof val === 'string') val = val === 'true';
|
679
|
+
}
|
680
|
+
|
681
|
+
let value = Array.isArray(val)
|
682
|
+
? val.map(function (v) { return maybeCoerceNumber(key, v) })
|
683
|
+
: maybeCoerceNumber(key, val);
|
684
|
+
|
685
|
+
// increment a count given as arg (either no value or value parsed as boolean)
|
686
|
+
if (checkAllAliases(key, flags.counts) && (isUndefined(value) || typeof value === 'boolean')) {
|
687
|
+
value = increment;
|
688
|
+
}
|
689
|
+
|
690
|
+
// Set normalized value when key is in 'normalize' and in 'arrays'
|
691
|
+
if (checkAllAliases(key, flags.normalize) && checkAllAliases(key, flags.arrays)) {
|
692
|
+
if (Array.isArray(val)) value = val.map(_events_commonjsExternal.sysPath.normalize);
|
693
|
+
else value = _events_commonjsExternal.sysPath.normalize(val);
|
694
|
+
}
|
695
|
+
return value
|
696
|
+
}
|
697
|
+
|
698
|
+
function maybeCoerceNumber (key, value) {
|
699
|
+
if (!checkAllAliases(key, flags.strings) && !checkAllAliases(key, flags.bools) && !Array.isArray(value)) {
|
700
|
+
const shouldCoerceNumber = isNumber(value) && configuration['parse-numbers'] && (
|
701
|
+
Number.isSafeInteger(Math.floor(value))
|
702
|
+
);
|
703
|
+
if (shouldCoerceNumber || (!isUndefined(value) && checkAllAliases(key, flags.numbers))) value = Number(value);
|
704
|
+
}
|
705
|
+
return value
|
706
|
+
}
|
707
|
+
|
708
|
+
// set args from config.json file, this should be
|
709
|
+
// applied last so that defaults can be applied.
|
710
|
+
function setConfig (argv) {
|
711
|
+
const configLookup = Object.create(null);
|
712
|
+
|
713
|
+
// expand defaults/aliases, in-case any happen to reference
|
714
|
+
// the config.json file.
|
715
|
+
applyDefaultsAndAliases(configLookup, flags.aliases, defaults);
|
716
|
+
|
717
|
+
Object.keys(flags.configs).forEach(function (configKey) {
|
718
|
+
const configPath = argv[configKey] || configLookup[configKey];
|
719
|
+
if (configPath) {
|
720
|
+
try {
|
721
|
+
let config = null;
|
722
|
+
const resolvedConfigPath = _events_commonjsExternal.sysPath.resolve(process.cwd(), configPath);
|
723
|
+
|
724
|
+
if (typeof flags.configs[configKey] === 'function') {
|
725
|
+
try {
|
726
|
+
config = flags.configs[configKey](resolvedConfigPath);
|
727
|
+
} catch (e) {
|
728
|
+
config = e;
|
138
729
|
}
|
139
|
-
|
140
|
-
|
730
|
+
if (config instanceof Error) {
|
731
|
+
error = config;
|
732
|
+
return
|
141
733
|
}
|
734
|
+
} else {
|
735
|
+
config = rollup_js.commonjsRequire();
|
736
|
+
}
|
737
|
+
|
738
|
+
setConfigObject(config);
|
739
|
+
} catch (ex) {
|
740
|
+
if (argv[configKey]) error = Error(__('Invalid JSON config file: %s', configPath));
|
142
741
|
}
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
broken = true;
|
166
|
-
break;
|
167
|
-
}
|
168
|
-
else {
|
169
|
-
setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
|
170
|
-
}
|
171
|
-
}
|
172
|
-
var key = arg.slice(-1)[0];
|
173
|
-
if (!broken && key !== '-') {
|
174
|
-
if (args[i + 1] && !/^(-|--)[^-]/.test(args[i + 1])
|
175
|
-
&& !flags.bools[key]
|
176
|
-
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
177
|
-
setArg(key, args[i + 1], arg);
|
178
|
-
i++;
|
179
|
-
}
|
180
|
-
else if (args[i + 1] && /true|false/.test(args[i + 1])) {
|
181
|
-
setArg(key, args[i + 1] === 'true', arg);
|
182
|
-
i++;
|
183
|
-
}
|
184
|
-
else {
|
185
|
-
setArg(key, flags.strings[key] ? '' : true, arg);
|
186
|
-
}
|
187
|
-
}
|
742
|
+
}
|
743
|
+
});
|
744
|
+
}
|
745
|
+
|
746
|
+
// set args from config object.
|
747
|
+
// it recursively checks nested objects.
|
748
|
+
function setConfigObject (config, prev) {
|
749
|
+
Object.keys(config).forEach(function (key) {
|
750
|
+
const value = config[key];
|
751
|
+
const fullKey = prev ? prev + '.' + key : key;
|
752
|
+
|
753
|
+
// if the value is an inner object and we have dot-notation
|
754
|
+
// enabled, treat inner objects in config the same as
|
755
|
+
// heavily nested dot notations (foo.bar.apple).
|
756
|
+
if (typeof value === 'object' && value !== null && !Array.isArray(value) && configuration['dot-notation']) {
|
757
|
+
// if the value is an object but not an array, check nested object
|
758
|
+
setConfigObject(value, fullKey);
|
759
|
+
} else {
|
760
|
+
// setting arguments via CLI takes precedence over
|
761
|
+
// values within the config file.
|
762
|
+
if (!hasKey(argv, fullKey.split('.')) || (checkAllAliases(fullKey, flags.arrays) && configuration['combine-arrays'])) {
|
763
|
+
setArg(fullKey, value);
|
188
764
|
}
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
765
|
+
}
|
766
|
+
});
|
767
|
+
}
|
768
|
+
|
769
|
+
// set all config objects passed in opts
|
770
|
+
function setConfigObjects () {
|
771
|
+
if (typeof configObjects === 'undefined') return
|
772
|
+
configObjects.forEach(function (configObject) {
|
773
|
+
setConfigObject(configObject);
|
774
|
+
});
|
775
|
+
}
|
776
|
+
|
777
|
+
function applyEnvVars (argv, configOnly) {
|
778
|
+
if (typeof envPrefix === 'undefined') return
|
779
|
+
|
780
|
+
const prefix = typeof envPrefix === 'string' ? envPrefix : '';
|
781
|
+
Object.keys(process.env).forEach(function (envVar) {
|
782
|
+
if (prefix === '' || envVar.lastIndexOf(prefix, 0) === 0) {
|
783
|
+
// get array of nested keys and convert them to camel case
|
784
|
+
const keys = envVar.split('__').map(function (key, i) {
|
785
|
+
if (i === 0) {
|
786
|
+
key = key.substring(prefix.length);
|
787
|
+
}
|
788
|
+
return camelcase(key)
|
789
|
+
});
|
790
|
+
|
791
|
+
if (((configOnly && flags.configs[keys.join('.')]) || !configOnly) && !hasKey(argv, keys)) {
|
792
|
+
setArg(keys.join('.'), process.env[envVar]);
|
197
793
|
}
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
794
|
+
}
|
795
|
+
});
|
796
|
+
}
|
797
|
+
|
798
|
+
function applyCoercions (argv) {
|
799
|
+
let coerce;
|
800
|
+
const applied = new Set();
|
801
|
+
Object.keys(argv).forEach(function (key) {
|
802
|
+
if (!applied.has(key)) { // If we haven't already coerced this option via one of its aliases
|
803
|
+
coerce = checkAllAliases(key, flags.coercions);
|
804
|
+
if (typeof coerce === 'function') {
|
805
|
+
try {
|
806
|
+
const value = maybeCoerceNumber(key, coerce(argv[key]))
|
807
|
+
;([].concat(flags.aliases[key] || [], key)).forEach(ali => {
|
808
|
+
applied.add(ali);
|
809
|
+
argv[ali] = value;
|
204
810
|
});
|
811
|
+
} catch (err) {
|
812
|
+
error = err;
|
813
|
+
}
|
205
814
|
}
|
815
|
+
}
|
206
816
|
});
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
817
|
+
}
|
818
|
+
|
819
|
+
function setPlaceholderKeys (argv) {
|
820
|
+
flags.keys.forEach((key) => {
|
821
|
+
// don't set placeholder keys for dot notation options 'foo.bar'.
|
822
|
+
if (~key.indexOf('.')) return
|
823
|
+
if (typeof argv[key] === 'undefined') argv[key] = undefined;
|
824
|
+
});
|
825
|
+
return argv
|
826
|
+
}
|
827
|
+
|
828
|
+
function applyDefaultsAndAliases (obj, aliases, defaults, canLog = false) {
|
829
|
+
Object.keys(defaults).forEach(function (key) {
|
830
|
+
if (!hasKey(obj, key.split('.'))) {
|
831
|
+
setKey(obj, key.split('.'), defaults[key]);
|
832
|
+
if (canLog) defaulted[key] = true
|
833
|
+
|
834
|
+
;(aliases[key] || []).forEach(function (x) {
|
835
|
+
if (hasKey(obj, x.split('.'))) return
|
836
|
+
setKey(obj, x.split('.'), defaults[key]);
|
216
837
|
});
|
217
|
-
|
218
|
-
|
219
|
-
}
|
220
|
-
|
221
|
-
|
838
|
+
}
|
839
|
+
});
|
840
|
+
}
|
841
|
+
|
842
|
+
function hasKey (obj, keys) {
|
843
|
+
let o = obj;
|
844
|
+
|
845
|
+
if (!configuration['dot-notation']) keys = [keys.join('.')];
|
846
|
+
|
222
847
|
keys.slice(0, -1).forEach(function (key) {
|
223
|
-
|
848
|
+
o = (o[key] || {});
|
224
849
|
});
|
225
|
-
var key = keys[keys.length - 1];
|
226
|
-
return key in o;
|
227
|
-
}
|
228
|
-
function isNumber(x) {
|
229
|
-
if (typeof x === 'number')
|
230
|
-
return true;
|
231
|
-
if (/^0x[0-9a-f]+$/i.test(x))
|
232
|
-
return true;
|
233
|
-
return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
|
234
|
-
}
|
235
850
|
|
236
|
-
const
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
}
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
851
|
+
const key = keys[keys.length - 1];
|
852
|
+
|
853
|
+
if (typeof o !== 'object') return false
|
854
|
+
else return key in o
|
855
|
+
}
|
856
|
+
|
857
|
+
function setKey (obj, keys, value) {
|
858
|
+
let o = obj;
|
859
|
+
|
860
|
+
if (!configuration['dot-notation']) keys = [keys.join('.')];
|
861
|
+
|
862
|
+
keys.slice(0, -1).forEach(function (key, index) {
|
863
|
+
// TODO(bcoe): in the next major version of yargs, switch to
|
864
|
+
// Object.create(null) for dot notation:
|
865
|
+
key = sanitizeKey(key);
|
866
|
+
|
867
|
+
if (typeof o === 'object' && o[key] === undefined) {
|
868
|
+
o[key] = {};
|
869
|
+
}
|
870
|
+
|
871
|
+
if (typeof o[key] !== 'object' || Array.isArray(o[key])) {
|
872
|
+
// ensure that o[key] is an array, and that the last item is an empty object.
|
873
|
+
if (Array.isArray(o[key])) {
|
874
|
+
o[key].push({});
|
875
|
+
} else {
|
876
|
+
o[key] = [o[key], {}];
|
257
877
|
}
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
get: () => ((seq[len++] = Styles[k]), fn)
|
265
|
-
});
|
266
|
-
delete tc[style];
|
267
|
-
return (tc[style] = fn);
|
268
|
-
},
|
269
|
-
configurable: true
|
878
|
+
|
879
|
+
// we want to update the empty object at the end of the o[key] array, so set o to that object
|
880
|
+
o = o[key][o[key].length - 1];
|
881
|
+
} else {
|
882
|
+
o = o[key];
|
883
|
+
}
|
270
884
|
});
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
init("cyan", "\x1b[36m", "\x1b[39m", /\x1b\[39m/g);
|
287
|
-
init("white", "\x1b[37m", "\x1b[39m", /\x1b\[39m/g);
|
288
|
-
init("gray", "\x1b[90m", "\x1b[39m", /\x1b\[39m/g);
|
289
|
-
init("bgBlack", "\x1b[40m", "\x1b[49m", /\x1b\[49m/g);
|
290
|
-
init("bgRed", "\x1b[41m", "\x1b[49m", /\x1b\[49m/g);
|
291
|
-
init("bgGreen", "\x1b[42m", "\x1b[49m", /\x1b\[49m/g);
|
292
|
-
init("bgYellow", "\x1b[43m", "\x1b[49m", /\x1b\[49m/g);
|
293
|
-
init("bgBlue", "\x1b[44m", "\x1b[49m", /\x1b\[49m/g);
|
294
|
-
init("bgMagenta", "\x1b[45m", "\x1b[49m", /\x1b\[49m/g);
|
295
|
-
init("bgCyan", "\x1b[46m", "\x1b[49m", /\x1b\[49m/g);
|
296
|
-
init("bgWhite", "\x1b[47m", "\x1b[49m", /\x1b\[49m/g);
|
297
|
-
var turbocolor = tc;
|
298
|
-
|
299
|
-
// @see https://no-color.org
|
300
|
-
// @see https://www.npmjs.com/package/chalk
|
301
|
-
if (process.env.FORCE_COLOR === '0' || process.env.NO_COLOR) {
|
302
|
-
turbocolor.enabled = false;
|
303
|
-
}
|
304
|
-
// log to stderr to keep `rollup main.js > bundle.js` from breaking
|
305
|
-
const stderr = console.error.bind(console);
|
306
|
-
function handleError(err, recover = false) {
|
307
|
-
let description = err.message || err;
|
308
|
-
if (err.name)
|
309
|
-
description = `${err.name}: ${description}`;
|
310
|
-
const message = (err.plugin
|
311
|
-
? `(plugin ${(err).plugin}) ${description}`
|
312
|
-
: description) || err;
|
313
|
-
stderr(turbocolor.bold.red(`[!] ${turbocolor.bold(message.toString())}`));
|
314
|
-
if (err.url) {
|
315
|
-
stderr(turbocolor.cyan(err.url));
|
316
|
-
}
|
317
|
-
if (err.loc) {
|
318
|
-
stderr(`${index.relativeId((err.loc.file || err.id))} (${err.loc.line}:${err.loc.column})`);
|
319
|
-
}
|
320
|
-
else if (err.id) {
|
321
|
-
stderr(index.relativeId(err.id));
|
322
|
-
}
|
323
|
-
if (err.frame) {
|
324
|
-
stderr(turbocolor.dim(err.frame));
|
325
|
-
}
|
326
|
-
if (err.stack) {
|
327
|
-
stderr(turbocolor.dim(err.stack));
|
885
|
+
|
886
|
+
// TODO(bcoe): in the next major version of yargs, switch to
|
887
|
+
// Object.create(null) for dot notation:
|
888
|
+
const key = sanitizeKey(keys[keys.length - 1]);
|
889
|
+
|
890
|
+
const isTypeArray = checkAllAliases(keys.join('.'), flags.arrays);
|
891
|
+
const isValueArray = Array.isArray(value);
|
892
|
+
let duplicate = configuration['duplicate-arguments-array'];
|
893
|
+
|
894
|
+
// nargs has higher priority than duplicate
|
895
|
+
if (!duplicate && checkAllAliases(key, flags.nargs)) {
|
896
|
+
duplicate = true;
|
897
|
+
if ((!isUndefined(o[key]) && flags.nargs[key] === 1) || (Array.isArray(o[key]) && o[key].length === flags.nargs[key])) {
|
898
|
+
o[key] = undefined;
|
899
|
+
}
|
328
900
|
}
|
329
|
-
stderr('');
|
330
|
-
if (!recover)
|
331
|
-
process.exit(1);
|
332
|
-
}
|
333
901
|
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
902
|
+
if (value === increment) {
|
903
|
+
o[key] = increment(o[key]);
|
904
|
+
} else if (Array.isArray(o[key])) {
|
905
|
+
if (duplicate && isTypeArray && isValueArray) {
|
906
|
+
o[key] = configuration['flatten-duplicate-arrays'] ? o[key].concat(value) : (Array.isArray(o[key][0]) ? o[key] : [o[key]]).concat([value]);
|
907
|
+
} else if (!duplicate && Boolean(isTypeArray) === Boolean(isValueArray)) {
|
908
|
+
o[key] = value;
|
909
|
+
} else {
|
910
|
+
o[key] = o[key].concat([value]);
|
911
|
+
}
|
912
|
+
} else if (o[key] === undefined && isTypeArray) {
|
913
|
+
o[key] = isValueArray ? value : [value];
|
914
|
+
} else if (duplicate && !(
|
915
|
+
o[key] === undefined ||
|
916
|
+
checkAllAliases(key, flags.counts) ||
|
917
|
+
checkAllAliases(key, flags.bools)
|
918
|
+
)) {
|
919
|
+
o[key] = [o[key], value];
|
920
|
+
} else {
|
921
|
+
o[key] = value;
|
922
|
+
}
|
923
|
+
}
|
924
|
+
|
925
|
+
// extend the aliases list with inferred aliases.
|
926
|
+
function extendAliases (...args) {
|
927
|
+
args.forEach(function (obj) {
|
928
|
+
Object.keys(obj || {}).forEach(function (key) {
|
929
|
+
// short-circuit if we've already added a key
|
930
|
+
// to the aliases array, for example it might
|
931
|
+
// exist in both 'opts.default' and 'opts.key'.
|
932
|
+
if (flags.aliases[key]) return
|
933
|
+
|
934
|
+
flags.aliases[key] = [].concat(aliases[key] || []);
|
935
|
+
// For "--option-name", also set argv.optionName
|
936
|
+
flags.aliases[key].concat(key).forEach(function (x) {
|
937
|
+
if (/-/.test(x) && configuration['camel-case-expansion']) {
|
938
|
+
const c = camelcase(x);
|
939
|
+
if (c !== key && flags.aliases[key].indexOf(c) === -1) {
|
940
|
+
flags.aliases[key].push(c);
|
941
|
+
newAliases[c] = true;
|
364
942
|
}
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
943
|
+
}
|
944
|
+
});
|
945
|
+
// For "--optionName", also set argv['option-name']
|
946
|
+
flags.aliases[key].concat(key).forEach(function (x) {
|
947
|
+
if (x.length > 1 && /[A-Z]/.test(x) && configuration['camel-case-expansion']) {
|
948
|
+
const c = decamelize(x, '-');
|
949
|
+
if (c !== key && flags.aliases[key].indexOf(c) === -1) {
|
950
|
+
flags.aliases[key].push(c);
|
951
|
+
newAliases[c] = true;
|
372
952
|
}
|
373
|
-
|
374
|
-
|
375
|
-
|
953
|
+
}
|
954
|
+
});
|
955
|
+
flags.aliases[key].forEach(function (x) {
|
956
|
+
flags.aliases[x] = [key].concat(flags.aliases[key].filter(function (y) {
|
957
|
+
return x !== y
|
958
|
+
}));
|
959
|
+
});
|
960
|
+
});
|
961
|
+
});
|
962
|
+
}
|
963
|
+
|
964
|
+
// return the 1st set flag for any of a key's aliases (or false if no flag set)
|
965
|
+
function checkAllAliases (key, flag) {
|
966
|
+
const toCheck = [].concat(flags.aliases[key] || [], key);
|
967
|
+
const keys = Object.keys(flag);
|
968
|
+
const setAlias = toCheck.find(key => keys.includes(key));
|
969
|
+
return setAlias ? flag[setAlias] : false
|
970
|
+
}
|
971
|
+
|
972
|
+
function hasAnyFlag (key) {
|
973
|
+
const toCheck = [].concat(Object.keys(flags).map(k => flags[k]));
|
974
|
+
return toCheck.some(function (flag) {
|
975
|
+
return Array.isArray(flag) ? flag.includes(key) : flag[key]
|
976
|
+
})
|
977
|
+
}
|
978
|
+
|
979
|
+
function hasFlagsMatching (arg, ...patterns) {
|
980
|
+
const toCheck = [].concat(...patterns);
|
981
|
+
return toCheck.some(function (pattern) {
|
982
|
+
const match = arg.match(pattern);
|
983
|
+
return match && hasAnyFlag(match[1])
|
984
|
+
})
|
985
|
+
}
|
986
|
+
|
987
|
+
// based on a simplified version of the short flag group parsing logic
|
988
|
+
function hasAllShortFlags (arg) {
|
989
|
+
// if this is a negative number, or doesn't start with a single hyphen, it's not a short flag group
|
990
|
+
if (arg.match(negative) || !arg.match(/^-[^-]+/)) { return false }
|
991
|
+
let hasAllFlags = true;
|
992
|
+
let next;
|
993
|
+
const letters = arg.slice(1).split('');
|
994
|
+
for (let j = 0; j < letters.length; j++) {
|
995
|
+
next = arg.slice(j + 2);
|
996
|
+
|
997
|
+
if (!hasAnyFlag(letters[j])) {
|
998
|
+
hasAllFlags = false;
|
999
|
+
break
|
1000
|
+
}
|
1001
|
+
|
1002
|
+
if ((letters[j + 1] && letters[j + 1] === '=') ||
|
1003
|
+
next === '-' ||
|
1004
|
+
(/[A-Za-z]/.test(letters[j]) && /^-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) ||
|
1005
|
+
(letters[j + 1] && letters[j + 1].match(/\W/))) {
|
1006
|
+
break
|
1007
|
+
}
|
1008
|
+
}
|
1009
|
+
return hasAllFlags
|
1010
|
+
}
|
1011
|
+
|
1012
|
+
function isUnknownOptionAsArg (arg) {
|
1013
|
+
return configuration['unknown-options-as-args'] && isUnknownOption(arg)
|
1014
|
+
}
|
1015
|
+
|
1016
|
+
function isUnknownOption (arg) {
|
1017
|
+
// ignore negative numbers
|
1018
|
+
if (arg.match(negative)) { return false }
|
1019
|
+
// if this is a short option group and all of them are configured, it isn't unknown
|
1020
|
+
if (hasAllShortFlags(arg)) { return false }
|
1021
|
+
// e.g. '--count=2'
|
1022
|
+
const flagWithEquals = /^-+([^=]+?)=[\s\S]*$/;
|
1023
|
+
// e.g. '-a' or '--arg'
|
1024
|
+
const normalFlag = /^-+([^=]+?)$/;
|
1025
|
+
// e.g. '-a-'
|
1026
|
+
const flagEndingInHyphen = /^-+([^=]+?)-$/;
|
1027
|
+
// e.g. '-abc123'
|
1028
|
+
const flagEndingInDigits = /^-+([^=]+?\d+)$/;
|
1029
|
+
// e.g. '-a/usr/local'
|
1030
|
+
const flagEndingInNonWordCharacters = /^-+([^=]+?)\W+.*$/;
|
1031
|
+
// check the different types of flag styles, including negatedBoolean, a pattern defined near the start of the parse method
|
1032
|
+
return !hasFlagsMatching(arg, flagWithEquals, negatedBoolean, normalFlag, flagEndingInHyphen, flagEndingInDigits, flagEndingInNonWordCharacters)
|
1033
|
+
}
|
1034
|
+
|
1035
|
+
// make a best effor to pick a default value
|
1036
|
+
// for an option based on name and type.
|
1037
|
+
function defaultValue (key) {
|
1038
|
+
if (!checkAllAliases(key, flags.bools) &&
|
1039
|
+
!checkAllAliases(key, flags.counts) &&
|
1040
|
+
`${key}` in defaults) {
|
1041
|
+
return defaults[key]
|
1042
|
+
} else {
|
1043
|
+
return defaultForType(guessType(key))
|
1044
|
+
}
|
1045
|
+
}
|
1046
|
+
|
1047
|
+
// return a default value, given the type of a flag.,
|
1048
|
+
// e.g., key of type 'string' will default to '', rather than 'true'.
|
1049
|
+
function defaultForType (type) {
|
1050
|
+
const def = {
|
1051
|
+
boolean: true,
|
1052
|
+
string: '',
|
1053
|
+
number: undefined,
|
1054
|
+
array: []
|
376
1055
|
};
|
1056
|
+
|
1057
|
+
return def[type]
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
// given a flag, enforce a default type.
|
1061
|
+
function guessType (key) {
|
1062
|
+
let type = 'boolean';
|
1063
|
+
if (checkAllAliases(key, flags.strings)) type = 'string';
|
1064
|
+
else if (checkAllAliases(key, flags.numbers)) type = 'number';
|
1065
|
+
else if (checkAllAliases(key, flags.bools)) type = 'boolean';
|
1066
|
+
else if (checkAllAliases(key, flags.arrays)) type = 'array';
|
1067
|
+
return type
|
1068
|
+
}
|
1069
|
+
|
1070
|
+
function isNumber (x) {
|
1071
|
+
if (x === null || x === undefined) return false
|
1072
|
+
// if loaded from config, may already be a number.
|
1073
|
+
if (typeof x === 'number') return true
|
1074
|
+
// hexadecimal.
|
1075
|
+
if (/^0x[0-9a-f]+$/i.test(x)) return true
|
1076
|
+
// don't treat 0123 as a number; as it drops the leading '0'.
|
1077
|
+
if (x.length > 1 && x[0] === '0') return false
|
1078
|
+
return /^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x)
|
1079
|
+
}
|
1080
|
+
|
1081
|
+
function isUndefined (num) {
|
1082
|
+
return num === undefined
|
1083
|
+
}
|
1084
|
+
|
1085
|
+
// check user configuration settings for inconsistencies
|
1086
|
+
function checkConfiguration () {
|
1087
|
+
// count keys should not be set as array/narg
|
1088
|
+
Object.keys(flags.counts).find(key => {
|
1089
|
+
if (checkAllAliases(key, flags.arrays)) {
|
1090
|
+
error = Error(__('Invalid configuration: %s, opts.count excludes opts.array.', key));
|
1091
|
+
return true
|
1092
|
+
} else if (checkAllAliases(key, flags.nargs)) {
|
1093
|
+
error = Error(__('Invalid configuration: %s, opts.count excludes opts.narg.', key));
|
1094
|
+
return true
|
1095
|
+
}
|
1096
|
+
});
|
1097
|
+
}
|
1098
|
+
|
1099
|
+
return {
|
1100
|
+
argv: Object.assign(argvReturn, argv),
|
1101
|
+
error: error,
|
1102
|
+
aliases: Object.assign({}, flags.aliases),
|
1103
|
+
newAliases: Object.assign({}, newAliases),
|
1104
|
+
defaulted: Object.assign({}, defaulted),
|
1105
|
+
configuration: configuration
|
1106
|
+
}
|
377
1107
|
}
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
EVAL(warnings) {
|
410
|
-
title('Use of eval is strongly discouraged');
|
411
|
-
info('https://rollupjs.org/guide/en/#avoiding-eval');
|
412
|
-
showTruncatedWarnings(warnings);
|
413
|
-
},
|
414
|
-
MISSING_EXPORT(warnings) {
|
415
|
-
title('Missing exports');
|
416
|
-
info('https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module');
|
417
|
-
for (const warning of warnings) {
|
418
|
-
stderr(turbocolor.bold(warning.importer));
|
419
|
-
stderr(`${warning.missing} is not exported by ${warning.exporter}`);
|
420
|
-
stderr(turbocolor.gray(warning.frame));
|
421
|
-
}
|
422
|
-
},
|
423
|
-
MISSING_GLOBAL_NAME(warnings) {
|
424
|
-
title(`Missing global variable ${warnings.length > 1 ? 'names' : 'name'}`);
|
425
|
-
stderr(`Use output.globals to specify browser global variable names corresponding to external modules`);
|
426
|
-
for (const warning of warnings) {
|
427
|
-
stderr(`${turbocolor.bold(warning.source)} (guessing '${warning.guess}')`);
|
428
|
-
}
|
429
|
-
},
|
430
|
-
MIXED_EXPORTS: (warnings) => {
|
431
|
-
title('Mixing named and default exports');
|
432
|
-
info(`https://rollupjs.org/guide/en/#output-exports`);
|
433
|
-
stderr(turbocolor.bold('The following entry modules are using named and default exports together:'));
|
434
|
-
const displayedWarnings = warnings.length > 5 ? warnings.slice(0, 3) : warnings;
|
435
|
-
for (const warning of displayedWarnings) {
|
436
|
-
stderr(index.relativeId(warning.id));
|
437
|
-
}
|
438
|
-
if (displayedWarnings.length < warnings.length) {
|
439
|
-
stderr(`...and ${warnings.length - displayedWarnings.length} other entry modules`);
|
440
|
-
}
|
441
|
-
stderr(`\nConsumers of your bundle will have to use chunk['default'] to access their default export, which may not be what you want. Use \`output.exports: 'named'\` to disable this warning`);
|
442
|
-
},
|
443
|
-
NAMESPACE_CONFLICT(warnings) {
|
444
|
-
title(`Conflicting re-exports`);
|
445
|
-
for (const warning of warnings) {
|
446
|
-
stderr(`${turbocolor.bold(index.relativeId(warning.reexporter))} re-exports '${warning.name}' from both ${index.relativeId(warning.sources[0])} and ${index.relativeId(warning.sources[1])} (will be ignored)`);
|
447
|
-
}
|
448
|
-
},
|
449
|
-
NON_EXISTENT_EXPORT(warnings) {
|
450
|
-
title(`Import of non-existent ${warnings.length > 1 ? 'exports' : 'export'}`);
|
451
|
-
showTruncatedWarnings(warnings);
|
452
|
-
},
|
453
|
-
PLUGIN_WARNING(warnings) {
|
454
|
-
const nestedByPlugin = nest(warnings, 'plugin');
|
455
|
-
for (const { key: plugin, items } of nestedByPlugin) {
|
456
|
-
const nestedByMessage = nest(items, 'message');
|
457
|
-
let lastUrl = '';
|
458
|
-
for (const { key: message, items } of nestedByMessage) {
|
459
|
-
title(`Plugin ${plugin}: ${message}`);
|
460
|
-
for (const warning of items) {
|
461
|
-
if (warning.url && warning.url !== lastUrl)
|
462
|
-
info((lastUrl = warning.url));
|
463
|
-
if (warning.id) {
|
464
|
-
let loc = index.relativeId(warning.id);
|
465
|
-
if (warning.loc) {
|
466
|
-
loc += `: (${warning.loc.line}:${warning.loc.column})`;
|
467
|
-
}
|
468
|
-
stderr(turbocolor.bold(loc));
|
469
|
-
}
|
470
|
-
if (warning.frame)
|
471
|
-
info(warning.frame);
|
472
|
-
}
|
473
|
-
}
|
474
|
-
}
|
475
|
-
},
|
476
|
-
SOURCEMAP_BROKEN(warnings) {
|
477
|
-
title(`Broken sourcemap`);
|
478
|
-
info('https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect');
|
479
|
-
const plugins = Array.from(new Set(warnings.map(w => w.plugin).filter(Boolean)));
|
480
|
-
const detail = plugins.length > 1
|
481
|
-
? ` (such as ${plugins
|
482
|
-
.slice(0, -1)
|
483
|
-
.map(p => `'${p}'`)
|
484
|
-
.join(', ')} and '${plugins.slice(-1)}')`
|
485
|
-
: ` (such as '${plugins[0]}')`;
|
486
|
-
stderr(`Plugins that transform code${detail} should generate accompanying sourcemaps`);
|
487
|
-
},
|
488
|
-
THIS_IS_UNDEFINED(warnings) {
|
489
|
-
title('`this` has been rewritten to `undefined`');
|
490
|
-
info('https://rollupjs.org/guide/en/#error-this-is-undefined');
|
491
|
-
showTruncatedWarnings(warnings);
|
492
|
-
},
|
493
|
-
UNRESOLVED_IMPORT(warnings) {
|
494
|
-
title('Unresolved dependencies');
|
495
|
-
info('https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency');
|
496
|
-
const dependencies = new Map();
|
497
|
-
for (const warning of warnings) {
|
498
|
-
if (!dependencies.has(warning.source))
|
499
|
-
dependencies.set(warning.source, []);
|
500
|
-
dependencies.get(warning.source).push(warning.importer);
|
501
|
-
}
|
502
|
-
for (const dependency of dependencies.keys()) {
|
503
|
-
const importers = dependencies.get(dependency);
|
504
|
-
stderr(`${turbocolor.bold(dependency)} (imported by ${importers.join(', ')})`);
|
505
|
-
}
|
506
|
-
},
|
507
|
-
UNUSED_EXTERNAL_IMPORT(warnings) {
|
508
|
-
title('Unused external imports');
|
509
|
-
for (const warning of warnings) {
|
510
|
-
stderr(`${warning.names} imported from external module '${warning.source}' but never used`);
|
1108
|
+
|
1109
|
+
// if any aliases reference each other, we should
|
1110
|
+
// merge them together.
|
1111
|
+
function combineAliases (aliases) {
|
1112
|
+
const aliasArrays = [];
|
1113
|
+
const combined = Object.create(null);
|
1114
|
+
let change = true;
|
1115
|
+
|
1116
|
+
// turn alias lookup hash {key: ['alias1', 'alias2']} into
|
1117
|
+
// a simple array ['key', 'alias1', 'alias2']
|
1118
|
+
Object.keys(aliases).forEach(function (key) {
|
1119
|
+
aliasArrays.push(
|
1120
|
+
[].concat(aliases[key], key)
|
1121
|
+
);
|
1122
|
+
});
|
1123
|
+
|
1124
|
+
// combine arrays until zero changes are
|
1125
|
+
// made in an iteration.
|
1126
|
+
while (change) {
|
1127
|
+
change = false;
|
1128
|
+
for (let i = 0; i < aliasArrays.length; i++) {
|
1129
|
+
for (let ii = i + 1; ii < aliasArrays.length; ii++) {
|
1130
|
+
const intersect = aliasArrays[i].filter(function (v) {
|
1131
|
+
return aliasArrays[ii].indexOf(v) !== -1
|
1132
|
+
});
|
1133
|
+
|
1134
|
+
if (intersect.length) {
|
1135
|
+
aliasArrays[i] = aliasArrays[i].concat(aliasArrays[ii]);
|
1136
|
+
aliasArrays.splice(ii, 1);
|
1137
|
+
change = true;
|
1138
|
+
break
|
511
1139
|
}
|
1140
|
+
}
|
512
1141
|
}
|
513
|
-
}
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
function
|
518
|
-
|
1142
|
+
}
|
1143
|
+
|
1144
|
+
// map arrays back to the hash-lookup (de-dupe while
|
1145
|
+
// we're at it).
|
1146
|
+
aliasArrays.forEach(function (aliasArray) {
|
1147
|
+
aliasArray = aliasArray.filter(function (v, i, self) {
|
1148
|
+
return self.indexOf(v) === i
|
1149
|
+
});
|
1150
|
+
combined[aliasArray.pop()] = aliasArray;
|
1151
|
+
});
|
1152
|
+
|
1153
|
+
return combined
|
519
1154
|
}
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
lookup.set(key, {
|
527
|
-
items: [],
|
528
|
-
key
|
529
|
-
});
|
530
|
-
nested.push(lookup.get(key));
|
531
|
-
}
|
532
|
-
lookup.get(key).items.push(item);
|
533
|
-
}
|
534
|
-
return nested;
|
1155
|
+
|
1156
|
+
// this function should only be called when a count is given as an arg
|
1157
|
+
// it is NOT called to set a default value
|
1158
|
+
// thus we can start the count at 1 instead of 0
|
1159
|
+
function increment (orig) {
|
1160
|
+
return orig !== undefined ? orig + 1 : 1
|
535
1161
|
}
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
stderr(turbocolor.bold(index.relativeId(id)));
|
541
|
-
stderr(turbocolor.gray(items[0].frame));
|
542
|
-
if (items.length > 1) {
|
543
|
-
stderr(`...and ${items.length - 1} other ${items.length > 2 ? 'occurrences' : 'occurrence'}`);
|
544
|
-
}
|
545
|
-
}
|
546
|
-
if (nestedByModule.length > displayedByModule.length) {
|
547
|
-
stderr(`\n...and ${nestedByModule.length - displayedByModule.length} other files`);
|
548
|
-
}
|
1162
|
+
|
1163
|
+
function Parser (args, opts) {
|
1164
|
+
const result = parse(args.slice(), opts);
|
1165
|
+
return result.argv
|
549
1166
|
}
|
550
1167
|
|
1168
|
+
// parse arguments and return detailed
|
1169
|
+
// meta information, aliases, etc.
|
1170
|
+
Parser.detailed = function (args, opts) {
|
1171
|
+
return parse(args.slice(), opts)
|
1172
|
+
};
|
1173
|
+
|
1174
|
+
// TODO(bcoe): in the next major version of yargs, switch to
|
1175
|
+
// Object.create(null) for dot notation:
|
1176
|
+
function sanitizeKey (key) {
|
1177
|
+
if (key === '__proto__') return '___proto___'
|
1178
|
+
return key
|
1179
|
+
}
|
1180
|
+
|
1181
|
+
var yargsParser = Parser;
|
1182
|
+
|
551
1183
|
var parseMs = milliseconds => {
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
1184
|
+
if (typeof milliseconds !== 'number') {
|
1185
|
+
throw new TypeError('Expected a number');
|
1186
|
+
}
|
1187
|
+
|
1188
|
+
const roundTowardsZero = milliseconds > 0 ? Math.floor : Math.ceil;
|
1189
|
+
|
1190
|
+
return {
|
1191
|
+
days: roundTowardsZero(milliseconds / 86400000),
|
1192
|
+
hours: roundTowardsZero(milliseconds / 3600000) % 24,
|
1193
|
+
minutes: roundTowardsZero(milliseconds / 60000) % 60,
|
1194
|
+
seconds: roundTowardsZero(milliseconds / 1000) % 60,
|
1195
|
+
milliseconds: roundTowardsZero(milliseconds) % 1000,
|
1196
|
+
microseconds: roundTowardsZero(milliseconds * 1000) % 1000,
|
1197
|
+
nanoseconds: roundTowardsZero(milliseconds * 1e6) % 1000
|
1198
|
+
};
|
565
1199
|
};
|
566
1200
|
|
567
|
-
const pluralize = (word, count) => count === 1 ? word : word
|
1201
|
+
const pluralize = (word, count) => count === 1 ? word : `${word}s`;
|
1202
|
+
|
568
1203
|
var prettyMs = (milliseconds, options = {}) => {
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
1204
|
+
if (!Number.isFinite(milliseconds)) {
|
1205
|
+
throw new TypeError('Expected a finite number');
|
1206
|
+
}
|
1207
|
+
|
1208
|
+
if (options.colonNotation) {
|
1209
|
+
options.compact = false;
|
1210
|
+
options.formatSubMilliseconds = false;
|
1211
|
+
options.separateMilliseconds = false;
|
1212
|
+
options.verbose = false;
|
1213
|
+
}
|
1214
|
+
|
1215
|
+
if (options.compact) {
|
1216
|
+
options.secondsDecimalDigits = 0;
|
1217
|
+
options.millisecondsDecimalDigits = 0;
|
1218
|
+
}
|
1219
|
+
|
1220
|
+
const result = [];
|
1221
|
+
|
1222
|
+
const add = (value, long, short, valueString) => {
|
1223
|
+
if ((result.length === 0 || !options.colonNotation) && value === 0 && !(options.colonNotation && short === 'm')) {
|
1224
|
+
return;
|
1225
|
+
}
|
1226
|
+
|
1227
|
+
valueString = (valueString || value || '0').toString();
|
1228
|
+
let prefix;
|
1229
|
+
let suffix;
|
1230
|
+
if (options.colonNotation) {
|
1231
|
+
prefix = result.length > 0 ? ':' : '';
|
1232
|
+
suffix = '';
|
1233
|
+
const wholeDigits = valueString.includes('.') ? valueString.split('.')[0].length : valueString.length;
|
1234
|
+
const minLength = result.length > 0 ? 2 : 1;
|
1235
|
+
valueString = '0'.repeat(Math.max(0, minLength - wholeDigits)) + valueString;
|
1236
|
+
} else {
|
1237
|
+
prefix = '';
|
1238
|
+
suffix = options.verbose ? ' ' + pluralize(long, value) : short;
|
1239
|
+
}
|
1240
|
+
|
1241
|
+
result.push(prefix + valueString + suffix);
|
1242
|
+
};
|
1243
|
+
|
1244
|
+
const secondsDecimalDigits =
|
1245
|
+
typeof options.secondsDecimalDigits === 'number' ?
|
1246
|
+
options.secondsDecimalDigits :
|
1247
|
+
1;
|
1248
|
+
|
1249
|
+
if (secondsDecimalDigits < 1) {
|
1250
|
+
const difference = 1000 - (milliseconds % 1000);
|
1251
|
+
if (difference < 500) {
|
1252
|
+
milliseconds += difference;
|
1253
|
+
}
|
1254
|
+
}
|
1255
|
+
|
1256
|
+
// Round up milliseconds for values lager than 1 minute - 50ms since these
|
1257
|
+
// always need to be round up. This fixes issues when rounding seconds
|
1258
|
+
// independently of minutes later on.
|
1259
|
+
if (
|
1260
|
+
milliseconds >= (1000 * 60) - 50 &&
|
1261
|
+
!options.separateMilliseconds &&
|
1262
|
+
!options.formatSubMilliseconds
|
1263
|
+
) {
|
1264
|
+
const difference = 60 - (milliseconds % 60);
|
1265
|
+
if (difference <= 50) {
|
1266
|
+
milliseconds += difference;
|
1267
|
+
}
|
1268
|
+
}
|
1269
|
+
|
1270
|
+
const parsed = parseMs(milliseconds);
|
1271
|
+
|
1272
|
+
add(Math.trunc(parsed.days / 365), 'year', 'y');
|
1273
|
+
add(parsed.days % 365, 'day', 'd');
|
1274
|
+
add(parsed.hours, 'hour', 'h');
|
1275
|
+
add(parsed.minutes, 'minute', 'm');
|
1276
|
+
|
1277
|
+
if (
|
1278
|
+
options.separateMilliseconds ||
|
1279
|
+
options.formatSubMilliseconds ||
|
1280
|
+
milliseconds < 1000
|
1281
|
+
) {
|
1282
|
+
add(parsed.seconds, 'second', 's');
|
1283
|
+
if (options.formatSubMilliseconds) {
|
1284
|
+
add(parsed.milliseconds, 'millisecond', 'ms');
|
1285
|
+
add(parsed.microseconds, 'microsecond', 'µs');
|
1286
|
+
add(parsed.nanoseconds, 'nanosecond', 'ns');
|
1287
|
+
} else {
|
1288
|
+
const millisecondsAndBelow =
|
1289
|
+
parsed.milliseconds +
|
1290
|
+
(parsed.microseconds / 1000) +
|
1291
|
+
(parsed.nanoseconds / 1e6);
|
1292
|
+
|
1293
|
+
const millisecondsDecimalDigits =
|
1294
|
+
typeof options.millisecondsDecimalDigits === 'number' ?
|
1295
|
+
options.millisecondsDecimalDigits :
|
1296
|
+
0;
|
1297
|
+
|
1298
|
+
const roundedMiliseconds = millisecondsAndBelow >= 1 ?
|
1299
|
+
Math.round(millisecondsAndBelow) :
|
1300
|
+
Math.ceil(millisecondsAndBelow);
|
1301
|
+
|
1302
|
+
const millisecondsString = millisecondsDecimalDigits ?
|
1303
|
+
millisecondsAndBelow.toFixed(millisecondsDecimalDigits) :
|
1304
|
+
roundedMiliseconds;
|
1305
|
+
|
1306
|
+
add(
|
1307
|
+
parseFloat(millisecondsString, 10),
|
1308
|
+
'millisecond',
|
1309
|
+
'ms',
|
1310
|
+
millisecondsString
|
1311
|
+
);
|
1312
|
+
}
|
1313
|
+
} else {
|
1314
|
+
const seconds = (milliseconds / 1000) % 60;
|
1315
|
+
const secondsDecimalDigits =
|
1316
|
+
typeof options.secondsDecimalDigits === 'number' ?
|
1317
|
+
options.secondsDecimalDigits :
|
1318
|
+
1;
|
1319
|
+
const secondsFixed = seconds.toFixed(secondsDecimalDigits);
|
1320
|
+
const secondsString = options.keepDecimalsOnWholeSeconds ?
|
1321
|
+
secondsFixed :
|
1322
|
+
secondsFixed.replace(/\.0+$/, '');
|
1323
|
+
add(parseFloat(secondsString, 10), 'second', 's', secondsString);
|
1324
|
+
}
|
1325
|
+
|
1326
|
+
if (result.length === 0) {
|
1327
|
+
return '0' + (options.verbose ? ' milliseconds' : 'ms');
|
1328
|
+
}
|
1329
|
+
|
1330
|
+
if (options.compact) {
|
1331
|
+
return result[0];
|
1332
|
+
}
|
1333
|
+
|
1334
|
+
if (typeof options.unitCount === 'number') {
|
1335
|
+
const separator = options.colonNotation ? '' : ' ';
|
1336
|
+
return result.slice(0, Math.max(options.unitCount, 1)).join(separator);
|
1337
|
+
}
|
1338
|
+
|
1339
|
+
return options.colonNotation ? result.join('') : result.join(' ');
|
660
1340
|
};
|
661
1341
|
|
662
1342
|
let SOURCEMAPPING_URL = 'sourceMa';
|
@@ -664,27 +1344,29 @@ SOURCEMAPPING_URL += 'ppingURL';
|
|
664
1344
|
var SOURCEMAPPING_URL$1 = SOURCEMAPPING_URL;
|
665
1345
|
|
666
1346
|
const BYTE_UNITS = [
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
1347
|
+
'B',
|
1348
|
+
'kB',
|
1349
|
+
'MB',
|
1350
|
+
'GB',
|
1351
|
+
'TB',
|
1352
|
+
'PB',
|
1353
|
+
'EB',
|
1354
|
+
'ZB',
|
1355
|
+
'YB'
|
676
1356
|
];
|
1357
|
+
|
677
1358
|
const BIT_UNITS = [
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
1359
|
+
'b',
|
1360
|
+
'kbit',
|
1361
|
+
'Mbit',
|
1362
|
+
'Gbit',
|
1363
|
+
'Tbit',
|
1364
|
+
'Pbit',
|
1365
|
+
'Ebit',
|
1366
|
+
'Zbit',
|
1367
|
+
'Ybit'
|
687
1368
|
];
|
1369
|
+
|
688
1370
|
/*
|
689
1371
|
Formats the given number using `Number#toLocaleString`.
|
690
1372
|
- If locale is a string, the value is expected to be a locale-key (for example: `de`).
|
@@ -692,56 +1374,64 @@ Formats the given number using `Number#toLocaleString`.
|
|
692
1374
|
- If no value for locale is specified, the number is returned unmodified.
|
693
1375
|
*/
|
694
1376
|
const toLocaleString = (number, locale) => {
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
1377
|
+
let result = number;
|
1378
|
+
if (typeof locale === 'string') {
|
1379
|
+
result = number.toLocaleString(locale);
|
1380
|
+
} else if (locale === true) {
|
1381
|
+
result = number.toLocaleString();
|
1382
|
+
}
|
1383
|
+
|
1384
|
+
return result;
|
703
1385
|
};
|
1386
|
+
|
704
1387
|
var prettyBytes = (number, options) => {
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
1388
|
+
if (!Number.isFinite(number)) {
|
1389
|
+
throw new TypeError(`Expected a finite number, got ${typeof number}: ${number}`);
|
1390
|
+
}
|
1391
|
+
|
1392
|
+
options = Object.assign({bits: false}, options);
|
1393
|
+
const UNITS = options.bits ? BIT_UNITS : BYTE_UNITS;
|
1394
|
+
|
1395
|
+
if (options.signed && number === 0) {
|
1396
|
+
return ' 0 ' + UNITS[0];
|
1397
|
+
}
|
1398
|
+
|
1399
|
+
const isNegative = number < 0;
|
1400
|
+
const prefix = isNegative ? '-' : (options.signed ? '+' : '');
|
1401
|
+
|
1402
|
+
if (isNegative) {
|
1403
|
+
number = -number;
|
1404
|
+
}
|
1405
|
+
|
1406
|
+
if (number < 1) {
|
1407
|
+
const numberString = toLocaleString(number, options.locale);
|
1408
|
+
return prefix + numberString + ' ' + UNITS[0];
|
1409
|
+
}
|
1410
|
+
|
1411
|
+
const exponent = Math.min(Math.floor(Math.log10(number) / 3), UNITS.length - 1);
|
1412
|
+
// eslint-disable-next-line unicorn/prefer-exponentiation-operator
|
1413
|
+
number = Number((number / Math.pow(1000, exponent)).toPrecision(3));
|
1414
|
+
const numberString = toLocaleString(number, options.locale);
|
1415
|
+
|
1416
|
+
const unit = UNITS[exponent];
|
1417
|
+
|
1418
|
+
return prefix + numberString + ' ' + unit;
|
728
1419
|
};
|
729
1420
|
|
730
1421
|
function printTimings(timings) {
|
731
1422
|
Object.keys(timings).forEach(label => {
|
732
|
-
const
|
1423
|
+
const appliedColor = label[0] === '#' ? (label[1] !== '#' ? loadConfigFile_js.color.underline : loadConfigFile_js.color.bold) : (text) => text;
|
733
1424
|
const [time, memory, total] = timings[label];
|
734
1425
|
const row = `${label}: ${time.toFixed(0)}ms, ${prettyBytes(memory)} / ${prettyBytes(total)}`;
|
735
|
-
console.info(
|
1426
|
+
console.info(appliedColor(row));
|
736
1427
|
});
|
737
1428
|
}
|
738
1429
|
|
739
|
-
function build(inputOptions,
|
1430
|
+
async function build(inputOptions, warnings, silent = false) {
|
1431
|
+
const outputOptions = inputOptions.output;
|
740
1432
|
const useStdout = !outputOptions[0].file && !outputOptions[0].dir;
|
741
1433
|
const start = Date.now();
|
742
|
-
const files = useStdout
|
743
|
-
? ['stdout']
|
744
|
-
: outputOptions.map(t => index.relativeId(t.file || t.dir));
|
1434
|
+
const files = useStdout ? ['stdout'] : outputOptions.map((t) => rollup_js.relativeId(t.file || t.dir));
|
745
1435
|
if (!silent) {
|
746
1436
|
let inputFiles;
|
747
1437
|
if (typeof inputOptions.input === 'string') {
|
@@ -752,421 +1442,491 @@ function build(inputOptions, outputOptions, warnings, silent = false) {
|
|
752
1442
|
}
|
753
1443
|
else if (typeof inputOptions.input === 'object' && inputOptions.input !== null) {
|
754
1444
|
inputFiles = Object.keys(inputOptions.input)
|
755
|
-
.map(name => inputOptions.input[name])
|
1445
|
+
.map((name) => inputOptions.input[name])
|
756
1446
|
.join(', ');
|
757
1447
|
}
|
758
|
-
stderr(
|
759
|
-
}
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
1448
|
+
loadConfigFile_js.stderr(loadConfigFile_js.color.cyan(`\n${loadConfigFile_js.color.bold(inputFiles)} → ${loadConfigFile_js.color.bold(files.join(', '))}...`));
|
1449
|
+
}
|
1450
|
+
const bundle = await rollup_js.rollup(inputOptions);
|
1451
|
+
if (useStdout) {
|
1452
|
+
const output = outputOptions[0];
|
1453
|
+
if (output.sourcemap && output.sourcemap !== 'inline') {
|
1454
|
+
loadConfigFile_js.handleError({
|
1455
|
+
code: 'ONLY_INLINE_SOURCEMAPS',
|
1456
|
+
message: 'Only inline sourcemaps are supported when bundling to stdout.',
|
1457
|
+
});
|
1458
|
+
}
|
1459
|
+
const { output: outputs } = await bundle.generate(output);
|
1460
|
+
for (const file of outputs) {
|
1461
|
+
let source;
|
1462
|
+
if (file.type === 'asset') {
|
1463
|
+
source = file.source;
|
769
1464
|
}
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
source = file.source;
|
775
|
-
}
|
776
|
-
else {
|
777
|
-
source = file.code;
|
778
|
-
if (output.sourcemap === 'inline') {
|
779
|
-
source += `\n//# ${SOURCEMAPPING_URL$1}=${file.map.toUrl()}\n`;
|
780
|
-
}
|
781
|
-
}
|
782
|
-
if (outputs.length > 1)
|
783
|
-
process.stdout.write('\n' + turbocolor.cyan(turbocolor.bold('//→ ' + file.fileName + ':')) + '\n');
|
784
|
-
process.stdout.write(source);
|
1465
|
+
else {
|
1466
|
+
source = file.code;
|
1467
|
+
if (output.sourcemap === 'inline') {
|
1468
|
+
source += `\n//# ${SOURCEMAPPING_URL$1}=${file.map.toUrl()}\n`;
|
785
1469
|
}
|
786
|
-
|
787
|
-
|
1470
|
+
}
|
1471
|
+
if (outputs.length > 1)
|
1472
|
+
process.stdout.write(`\n${loadConfigFile_js.color.cyan(loadConfigFile_js.color.bold(`//→ ${file.fileName}:`))}\n`);
|
1473
|
+
process.stdout.write(source);
|
788
1474
|
}
|
789
|
-
return Promise.all(outputOptions.map(output => bundle.write(output))).then(() => bundle);
|
790
|
-
})
|
791
|
-
.then((bundle) => {
|
792
1475
|
if (!silent) {
|
793
1476
|
warnings.flush();
|
794
|
-
stderr(turbocolor.green(`created ${turbocolor.bold(files.join(', '))} in ${turbocolor.bold(prettyMs(Date.now() - start))}`));
|
795
|
-
if (bundle && bundle.getTimings) {
|
796
|
-
printTimings(bundle.getTimings());
|
797
|
-
}
|
798
1477
|
}
|
799
|
-
|
800
|
-
|
1478
|
+
return;
|
1479
|
+
}
|
1480
|
+
await Promise.all(outputOptions.map(bundle.write));
|
1481
|
+
if (!silent) {
|
801
1482
|
warnings.flush();
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
function loadConfigFile(configFile, commandOptions = {}) {
|
807
|
-
const silent = commandOptions.silent || false;
|
808
|
-
const warnings = batchWarnings();
|
809
|
-
return rollup_js.rollup({
|
810
|
-
external: (id) => (id[0] !== '.' && !path.isAbsolute(id)) || id.slice(-5, id.length) === '.json',
|
811
|
-
input: configFile,
|
812
|
-
onwarn: warnings.add,
|
813
|
-
treeshake: false
|
814
|
-
})
|
815
|
-
.then((bundle) => {
|
816
|
-
if (!silent && warnings.count > 0) {
|
817
|
-
stderr(turbocolor.bold(`loaded ${index.relativeId(configFile)} with warnings`));
|
818
|
-
warnings.flush();
|
1483
|
+
loadConfigFile_js.stderr(loadConfigFile_js.color.green(`created ${loadConfigFile_js.color.bold(files.join(', '))} in ${loadConfigFile_js.color.bold(prettyMs(Date.now() - start))}`));
|
1484
|
+
if (bundle && bundle.getTimings) {
|
1485
|
+
printTimings(bundle.getTimings());
|
819
1486
|
}
|
820
|
-
|
821
|
-
exports: 'named',
|
822
|
-
format: 'cjs'
|
823
|
-
});
|
824
|
-
})
|
825
|
-
.then(({ output: [{ code }] }) => {
|
826
|
-
// temporarily override require
|
827
|
-
const extension = path.extname(configFile);
|
828
|
-
const defaultLoader = require.extensions[extension];
|
829
|
-
require.extensions[extension] = (module, filename) => {
|
830
|
-
if (filename === configFile) {
|
831
|
-
module._compile(code, filename);
|
832
|
-
}
|
833
|
-
else {
|
834
|
-
defaultLoader(module, filename);
|
835
|
-
}
|
836
|
-
};
|
837
|
-
delete require.cache[configFile];
|
838
|
-
return Promise.resolve(require(configFile))
|
839
|
-
.then(configFileContent => {
|
840
|
-
if (configFileContent.default)
|
841
|
-
configFileContent = configFileContent.default;
|
842
|
-
if (typeof configFileContent === 'function') {
|
843
|
-
return configFileContent(commandOptions);
|
844
|
-
}
|
845
|
-
return configFileContent;
|
846
|
-
})
|
847
|
-
.then(configs => {
|
848
|
-
if (Object.keys(configs).length === 0) {
|
849
|
-
handleError({
|
850
|
-
code: 'MISSING_CONFIG',
|
851
|
-
message: 'Config file must export an options object, or an array of options objects',
|
852
|
-
url: 'https://rollupjs.org/guide/en/#configuration-files'
|
853
|
-
});
|
854
|
-
}
|
855
|
-
require.extensions[extension] = defaultLoader;
|
856
|
-
return Array.isArray(configs) ? configs : [configs];
|
857
|
-
});
|
858
|
-
});
|
1487
|
+
}
|
859
1488
|
}
|
860
1489
|
|
861
|
-
|
862
|
-
|
863
|
-
function
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
1490
|
+
var modules = {};
|
1491
|
+
|
1492
|
+
var getModule = function(dir) {
|
1493
|
+
var rootPath = dir ? _events_commonjsExternal.sysPath.resolve(dir) : process.cwd();
|
1494
|
+
var rootName = _events_commonjsExternal.sysPath.join(rootPath, '@root');
|
1495
|
+
var root = modules[rootName];
|
1496
|
+
if (!root) {
|
1497
|
+
root = new module$1(rootName);
|
1498
|
+
root.filename = rootName;
|
1499
|
+
root.paths = module$1._nodeModulePaths(rootPath);
|
1500
|
+
modules[rootName] = root;
|
1501
|
+
}
|
1502
|
+
return root;
|
1503
|
+
};
|
1504
|
+
|
1505
|
+
var requireRelative = function(requested, relativeTo) {
|
1506
|
+
var root = getModule(relativeTo);
|
1507
|
+
return root.require(requested);
|
1508
|
+
};
|
1509
|
+
|
1510
|
+
requireRelative.resolve = function(requested, relativeTo) {
|
1511
|
+
var root = getModule(relativeTo);
|
1512
|
+
return module$1._resolveFilename(requested, root);
|
1513
|
+
};
|
1514
|
+
|
1515
|
+
var requireRelative_1 = requireRelative;
|
1516
|
+
|
1517
|
+
const DEFAULT_CONFIG_BASE = 'rollup.config';
|
1518
|
+
function getConfigPath(commandConfig) {
|
1519
|
+
const cwd = process.cwd();
|
1520
|
+
if (commandConfig === true) {
|
1521
|
+
return path.join(cwd, findConfigFileNameInCwd());
|
1522
|
+
}
|
1523
|
+
if (commandConfig.slice(0, 5) === 'node:') {
|
1524
|
+
const pkgName = commandConfig.slice(5);
|
1525
|
+
try {
|
1526
|
+
return requireRelative_1.resolve(`rollup-config-${pkgName}`, cwd);
|
1527
|
+
}
|
1528
|
+
catch (err) {
|
1529
|
+
try {
|
1530
|
+
return requireRelative_1.resolve(pkgName, cwd);
|
869
1531
|
}
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
1532
|
+
catch (err) {
|
1533
|
+
if (err.code === 'MODULE_NOT_FOUND') {
|
1534
|
+
loadConfigFile_js.handleError({
|
1535
|
+
code: 'MISSING_EXTERNAL_CONFIG',
|
1536
|
+
message: `Could not resolve config file "${commandConfig}"`
|
1537
|
+
});
|
1538
|
+
}
|
1539
|
+
throw err;
|
874
1540
|
}
|
875
1541
|
}
|
876
|
-
}
|
1542
|
+
}
|
1543
|
+
return fs.realpathSync(commandConfig);
|
877
1544
|
}
|
878
|
-
function
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
1545
|
+
function findConfigFileNameInCwd() {
|
1546
|
+
const filesInWorkingDir = new Set(fs.readdirSync(process.cwd()));
|
1547
|
+
for (const extension of ['mjs', 'cjs']) {
|
1548
|
+
const fileName = `${DEFAULT_CONFIG_BASE}.${extension}`;
|
1549
|
+
if (filesInWorkingDir.has(fileName))
|
1550
|
+
return fileName;
|
1551
|
+
}
|
1552
|
+
return `${DEFAULT_CONFIG_BASE}.js`;
|
1553
|
+
}
|
1554
|
+
|
1555
|
+
function loadConfigFromCommand(command) {
|
1556
|
+
const warnings = loadConfigFile_js.batchWarnings();
|
1557
|
+
if (!command.input && (command.stdin || !process.stdin.isTTY)) {
|
1558
|
+
command.input = loadConfigFile_js.stdinName;
|
1559
|
+
}
|
1560
|
+
const options = mergeOptions.mergeOptions({ input: [] }, command, warnings.add);
|
1561
|
+
loadConfigFile_js.addCommandPluginsToInputOptions(options, command);
|
1562
|
+
return { options: [options], warnings };
|
892
1563
|
}
|
893
1564
|
|
894
1565
|
var timeZone = date => {
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
1566
|
+
const offset = (date || new Date()).getTimezoneOffset();
|
1567
|
+
const absOffset = Math.abs(offset);
|
1568
|
+
const hours = Math.floor(absOffset / 60);
|
1569
|
+
const minutes = absOffset % 60;
|
1570
|
+
const minutesOut = minutes > 0 ? ':' + ('0' + minutes).slice(-2) : '';
|
1571
|
+
|
1572
|
+
return (offset < 0 ? '+' : '-') + hours + minutesOut;
|
901
1573
|
};
|
902
1574
|
|
903
1575
|
const dateTime = options => {
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
1576
|
+
options = Object.assign({
|
1577
|
+
date: new Date(),
|
1578
|
+
local: true,
|
1579
|
+
showTimeZone: false,
|
1580
|
+
showMilliseconds: false
|
1581
|
+
}, options);
|
1582
|
+
|
1583
|
+
let {date} = options;
|
1584
|
+
|
1585
|
+
if (options.local) {
|
1586
|
+
// Offset the date so it will return the correct value when getting the ISO string
|
1587
|
+
date = new Date(date.getTime() - (date.getTimezoneOffset() * 60000));
|
1588
|
+
}
|
1589
|
+
|
1590
|
+
let end = '';
|
1591
|
+
|
1592
|
+
if (options.showTimeZone) {
|
1593
|
+
end = ' UTC' + (options.local ? timeZone(date) : '');
|
1594
|
+
}
|
1595
|
+
|
1596
|
+
if (options.showMilliseconds && date.getUTCMilliseconds() > 0) {
|
1597
|
+
end = ` ${date.getUTCMilliseconds()}ms${end}`;
|
1598
|
+
}
|
1599
|
+
|
1600
|
+
return date
|
1601
|
+
.toISOString()
|
1602
|
+
.replace(/T/, ' ')
|
1603
|
+
.replace(/\..+/, end);
|
926
1604
|
};
|
1605
|
+
|
927
1606
|
var dateTime_1 = dateTime;
|
928
1607
|
// TODO: Remove this for the next major release
|
929
|
-
var default_1 = dateTime;
|
930
|
-
dateTime_1.default = default_1;
|
931
|
-
|
932
|
-
var signals =
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
1608
|
+
var default_1$1 = dateTime;
|
1609
|
+
dateTime_1.default = default_1$1;
|
1610
|
+
|
1611
|
+
var signals = rollup_js.createCommonjsModule(function (module) {
|
1612
|
+
// This is not the set of all possible signals.
|
1613
|
+
//
|
1614
|
+
// It IS, however, the set of all signals that trigger
|
1615
|
+
// an exit on either Linux or BSD systems. Linux is a
|
1616
|
+
// superset of the signal names supported on BSD, and
|
1617
|
+
// the unknown signals just fail to register, so we can
|
1618
|
+
// catch that easily enough.
|
1619
|
+
//
|
1620
|
+
// Don't bother with SIGKILL. It's uncatchable, which
|
1621
|
+
// means that we can't fire any callbacks anyway.
|
1622
|
+
//
|
1623
|
+
// If a user does happen to register a handler on a non-
|
1624
|
+
// fatal signal like SIGWINCH or something, and then
|
1625
|
+
// exit, it'll end up firing `process.emit('exit')`, so
|
1626
|
+
// the handler will be fired anyway.
|
1627
|
+
//
|
1628
|
+
// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
|
1629
|
+
// artificially, inherently leave the process in a
|
1630
|
+
// state from which it is not safe to try and enter JS
|
1631
|
+
// listeners.
|
1632
|
+
module.exports = [
|
1633
|
+
'SIGABRT',
|
1634
|
+
'SIGALRM',
|
1635
|
+
'SIGHUP',
|
1636
|
+
'SIGINT',
|
1637
|
+
'SIGTERM'
|
1638
|
+
];
|
1639
|
+
|
1640
|
+
if (process.platform !== 'win32') {
|
1641
|
+
module.exports.push(
|
1642
|
+
'SIGVTALRM',
|
1643
|
+
'SIGXCPU',
|
1644
|
+
'SIGXFSZ',
|
1645
|
+
'SIGUSR2',
|
1646
|
+
'SIGTRAP',
|
1647
|
+
'SIGSYS',
|
1648
|
+
'SIGQUIT',
|
1649
|
+
'SIGIOT'
|
1650
|
+
// should detect profiler and enable/disable accordingly.
|
1651
|
+
// see #21
|
1652
|
+
// 'SIGPROF'
|
1653
|
+
);
|
1654
|
+
}
|
1655
|
+
|
1656
|
+
if (process.platform === 'linux') {
|
1657
|
+
module.exports.push(
|
1658
|
+
'SIGIO',
|
1659
|
+
'SIGPOLL',
|
1660
|
+
'SIGPWR',
|
1661
|
+
'SIGSTKFLT',
|
1662
|
+
'SIGUNUSED'
|
1663
|
+
);
|
1664
|
+
}
|
970
1665
|
});
|
971
1666
|
|
972
1667
|
// Note: since nyc uses this module to output coverage, any lines
|
973
1668
|
// that are in the direct sync flow of nyc's outputCoverage are
|
974
1669
|
// ignored, since we can never get coverage for them.
|
1670
|
+
|
975
1671
|
var signals$1 = signals;
|
976
|
-
var
|
1672
|
+
var isWin = /^win/i.test(process.platform);
|
1673
|
+
|
1674
|
+
var EE = _events_commonjsExternal.require$$0;
|
977
1675
|
/* istanbul ignore if */
|
978
1676
|
if (typeof EE !== 'function') {
|
979
|
-
|
1677
|
+
EE = EE.EventEmitter;
|
980
1678
|
}
|
1679
|
+
|
981
1680
|
var emitter;
|
982
1681
|
if (process.__signal_exit_emitter__) {
|
983
|
-
|
984
|
-
}
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
emitter.emitted = {};
|
1682
|
+
emitter = process.__signal_exit_emitter__;
|
1683
|
+
} else {
|
1684
|
+
emitter = process.__signal_exit_emitter__ = new EE();
|
1685
|
+
emitter.count = 0;
|
1686
|
+
emitter.emitted = {};
|
989
1687
|
}
|
1688
|
+
|
990
1689
|
// Because this emitter is a global, we have to check to see if a
|
991
1690
|
// previous version of this library failed to enable infinite listeners.
|
992
1691
|
// I know what you're about to say. But literally everything about
|
993
1692
|
// signal-exit is a compromise with evil. Get used to it.
|
994
1693
|
if (!emitter.infinite) {
|
995
|
-
|
996
|
-
|
1694
|
+
emitter.setMaxListeners(Infinity);
|
1695
|
+
emitter.infinite = true;
|
997
1696
|
}
|
1697
|
+
|
998
1698
|
var signalExit = function (cb, opts) {
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1699
|
+
assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler');
|
1700
|
+
|
1701
|
+
if (loaded === false) {
|
1702
|
+
load();
|
1703
|
+
}
|
1704
|
+
|
1705
|
+
var ev = 'exit';
|
1706
|
+
if (opts && opts.alwaysLast) {
|
1707
|
+
ev = 'afterexit';
|
1708
|
+
}
|
1709
|
+
|
1710
|
+
var remove = function () {
|
1711
|
+
emitter.removeListener(ev, cb);
|
1712
|
+
if (emitter.listeners('exit').length === 0 &&
|
1713
|
+
emitter.listeners('afterexit').length === 0) {
|
1714
|
+
unload();
|
1715
|
+
}
|
1716
|
+
};
|
1717
|
+
emitter.on(ev, cb);
|
1718
|
+
|
1719
|
+
return remove
|
1016
1720
|
};
|
1721
|
+
|
1017
1722
|
var unload_1 = unload;
|
1018
|
-
function unload() {
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1723
|
+
function unload () {
|
1724
|
+
if (!loaded) {
|
1725
|
+
return
|
1726
|
+
}
|
1727
|
+
loaded = false;
|
1728
|
+
|
1729
|
+
signals$1.forEach(function (sig) {
|
1730
|
+
try {
|
1731
|
+
process.removeListener(sig, sigListeners[sig]);
|
1732
|
+
} catch (er) {}
|
1733
|
+
});
|
1734
|
+
process.emit = originalProcessEmit;
|
1735
|
+
process.reallyExit = originalProcessReallyExit;
|
1736
|
+
emitter.count -= 1;
|
1032
1737
|
}
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1738
|
+
|
1739
|
+
function emit (event, code, signal) {
|
1740
|
+
if (emitter.emitted[event]) {
|
1741
|
+
return
|
1742
|
+
}
|
1743
|
+
emitter.emitted[event] = true;
|
1744
|
+
emitter.emit(event, code, signal);
|
1039
1745
|
}
|
1746
|
+
|
1040
1747
|
// { <signal>: <listener fn>, ... }
|
1041
1748
|
var sigListeners = {};
|
1042
1749
|
signals$1.forEach(function (sig) {
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1750
|
+
sigListeners[sig] = function listener () {
|
1751
|
+
// If there are no other listeners, an exit is coming!
|
1752
|
+
// Simplest way: remove us and then re-send the signal.
|
1753
|
+
// We know that this will kill the process, so we can
|
1754
|
+
// safely emit now.
|
1755
|
+
var listeners = process.listeners(sig);
|
1756
|
+
if (listeners.length === emitter.count) {
|
1757
|
+
unload();
|
1758
|
+
emit('exit', null, sig);
|
1759
|
+
/* istanbul ignore next */
|
1760
|
+
emit('afterexit', null, sig);
|
1761
|
+
/* istanbul ignore next */
|
1762
|
+
if (isWin && sig === 'SIGHUP') {
|
1763
|
+
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
1764
|
+
// so use a supported signal instead
|
1765
|
+
sig = 'SIGINT';
|
1766
|
+
}
|
1767
|
+
process.kill(process.pid, sig);
|
1768
|
+
}
|
1769
|
+
};
|
1058
1770
|
});
|
1771
|
+
|
1059
1772
|
var signals_1 = function () {
|
1060
|
-
|
1773
|
+
return signals$1
|
1061
1774
|
};
|
1775
|
+
|
1062
1776
|
var load_1 = load;
|
1777
|
+
|
1063
1778
|
var loaded = false;
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1779
|
+
|
1780
|
+
function load () {
|
1781
|
+
if (loaded) {
|
1782
|
+
return
|
1783
|
+
}
|
1784
|
+
loaded = true;
|
1785
|
+
|
1786
|
+
// This is the number of onSignalExit's that are in play.
|
1787
|
+
// It's important so that we can count the correct number of
|
1788
|
+
// listeners on signals, and don't wait for the other one to
|
1789
|
+
// handle it instead of us.
|
1790
|
+
emitter.count += 1;
|
1791
|
+
|
1792
|
+
signals$1 = signals$1.filter(function (sig) {
|
1793
|
+
try {
|
1794
|
+
process.on(sig, sigListeners[sig]);
|
1795
|
+
return true
|
1796
|
+
} catch (er) {
|
1797
|
+
return false
|
1067
1798
|
}
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
// handle it instead of us.
|
1073
|
-
emitter.count += 1;
|
1074
|
-
signals$1 = signals$1.filter(function (sig) {
|
1075
|
-
try {
|
1076
|
-
process.on(sig, sigListeners[sig]);
|
1077
|
-
return true;
|
1078
|
-
}
|
1079
|
-
catch (er) {
|
1080
|
-
return false;
|
1081
|
-
}
|
1082
|
-
});
|
1083
|
-
process.emit = processEmit;
|
1084
|
-
process.reallyExit = processReallyExit;
|
1799
|
+
});
|
1800
|
+
|
1801
|
+
process.emit = processEmit;
|
1802
|
+
process.reallyExit = processReallyExit;
|
1085
1803
|
}
|
1804
|
+
|
1086
1805
|
var originalProcessReallyExit = process.reallyExit;
|
1087
|
-
function processReallyExit(code) {
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1806
|
+
function processReallyExit (code) {
|
1807
|
+
process.exitCode = code || 0;
|
1808
|
+
emit('exit', process.exitCode, null);
|
1809
|
+
/* istanbul ignore next */
|
1810
|
+
emit('afterexit', process.exitCode, null);
|
1811
|
+
/* istanbul ignore next */
|
1812
|
+
originalProcessReallyExit.call(process, process.exitCode);
|
1094
1813
|
}
|
1814
|
+
|
1095
1815
|
var originalProcessEmit = process.emit;
|
1096
|
-
function processEmit(ev, arg) {
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
}
|
1101
|
-
var ret = originalProcessEmit.apply(this, arguments);
|
1102
|
-
emit('exit', process.exitCode, null);
|
1103
|
-
/* istanbul ignore next */
|
1104
|
-
emit('afterexit', process.exitCode, null);
|
1105
|
-
return ret;
|
1106
|
-
}
|
1107
|
-
else {
|
1108
|
-
return originalProcessEmit.apply(this, arguments);
|
1816
|
+
function processEmit (ev, arg) {
|
1817
|
+
if (ev === 'exit') {
|
1818
|
+
if (arg !== undefined) {
|
1819
|
+
process.exitCode = arg;
|
1109
1820
|
}
|
1821
|
+
var ret = originalProcessEmit.apply(this, arguments);
|
1822
|
+
emit('exit', process.exitCode, null);
|
1823
|
+
/* istanbul ignore next */
|
1824
|
+
emit('afterexit', process.exitCode, null);
|
1825
|
+
return ret
|
1826
|
+
} else {
|
1827
|
+
return originalProcessEmit.apply(this, arguments)
|
1828
|
+
}
|
1110
1829
|
}
|
1111
1830
|
signalExit.unload = unload_1;
|
1112
1831
|
signalExit.signals = signals_1;
|
1113
1832
|
signalExit.load = load_1;
|
1114
1833
|
|
1115
1834
|
const CLEAR_SCREEN = '\u001Bc';
|
1116
|
-
function getResetScreen(
|
1835
|
+
function getResetScreen(configs, allowClearScreen) {
|
1836
|
+
let clearScreen = allowClearScreen;
|
1837
|
+
for (const config of configs) {
|
1838
|
+
if (config.watch && config.watch.clearScreen === false) {
|
1839
|
+
clearScreen = false;
|
1840
|
+
}
|
1841
|
+
}
|
1117
1842
|
if (clearScreen) {
|
1118
|
-
return (heading) => stderr(CLEAR_SCREEN + heading);
|
1843
|
+
return (heading) => loadConfigFile_js.stderr(CLEAR_SCREEN + heading);
|
1119
1844
|
}
|
1120
1845
|
let firstRun = true;
|
1121
1846
|
return (heading) => {
|
1122
1847
|
if (firstRun) {
|
1123
|
-
stderr(heading);
|
1848
|
+
loadConfigFile_js.stderr(heading);
|
1124
1849
|
firstRun = false;
|
1125
1850
|
}
|
1126
1851
|
};
|
1127
1852
|
}
|
1128
1853
|
|
1129
|
-
function watch(
|
1130
|
-
|
1131
|
-
const
|
1132
|
-
const
|
1133
|
-
|
1134
|
-
|
1854
|
+
async function watch(command) {
|
1855
|
+
process.env.ROLLUP_WATCH = 'true';
|
1856
|
+
const isTTY = process.stderr.isTTY;
|
1857
|
+
const silent = command.silent;
|
1858
|
+
let configs;
|
1859
|
+
let warnings;
|
1135
1860
|
let watcher;
|
1136
1861
|
let configWatcher;
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
});
|
1152
|
-
return result;
|
1862
|
+
const configFile = command.config ? getConfigPath(command.config) : null;
|
1863
|
+
signalExit(close);
|
1864
|
+
process.on('uncaughtException', close);
|
1865
|
+
if (!process.stdin.isTTY) {
|
1866
|
+
process.stdin.on('end', close);
|
1867
|
+
process.stdin.resume();
|
1868
|
+
}
|
1869
|
+
if (configFile) {
|
1870
|
+
let reloadingConfig = false;
|
1871
|
+
let aborted = false;
|
1872
|
+
let configFileData = null;
|
1873
|
+
configWatcher = fs.watch(configFile, (event) => {
|
1874
|
+
if (event === 'change')
|
1875
|
+
reloadConfigFile();
|
1153
1876
|
});
|
1877
|
+
await reloadConfigFile();
|
1878
|
+
async function reloadConfigFile() {
|
1879
|
+
try {
|
1880
|
+
const newConfigFileData = fs.readFileSync(configFile, 'utf-8');
|
1881
|
+
if (newConfigFileData === configFileData) {
|
1882
|
+
return;
|
1883
|
+
}
|
1884
|
+
if (reloadingConfig) {
|
1885
|
+
aborted = true;
|
1886
|
+
return;
|
1887
|
+
}
|
1888
|
+
if (configFileData) {
|
1889
|
+
loadConfigFile_js.stderr(`\nReloading updated config...`);
|
1890
|
+
}
|
1891
|
+
configFileData = newConfigFileData;
|
1892
|
+
reloadingConfig = true;
|
1893
|
+
({ options: configs, warnings } = await loadConfigFile_js.loadAndParseConfigFile(configFile, command));
|
1894
|
+
reloadingConfig = false;
|
1895
|
+
if (aborted) {
|
1896
|
+
aborted = false;
|
1897
|
+
reloadConfigFile();
|
1898
|
+
}
|
1899
|
+
else {
|
1900
|
+
if (watcher) {
|
1901
|
+
watcher.close();
|
1902
|
+
}
|
1903
|
+
start(configs);
|
1904
|
+
}
|
1905
|
+
}
|
1906
|
+
catch (err) {
|
1907
|
+
configs = [];
|
1908
|
+
reloadingConfig = false;
|
1909
|
+
loadConfigFile_js.handleError(err, true);
|
1910
|
+
}
|
1911
|
+
}
|
1912
|
+
}
|
1913
|
+
else {
|
1914
|
+
({ options: configs, warnings } = await loadConfigFromCommand(command));
|
1915
|
+
start(configs);
|
1154
1916
|
}
|
1917
|
+
// tslint:disable-next-line:no-unnecessary-type-assertion
|
1918
|
+
const resetScreen = getResetScreen(configs, isTTY);
|
1155
1919
|
function start(configs) {
|
1156
1920
|
watcher = rollup_js.watch(configs);
|
1157
1921
|
watcher.on('event', (event) => {
|
1158
1922
|
switch (event.code) {
|
1159
|
-
case 'FATAL':
|
1160
|
-
handleError(event.error, true);
|
1161
|
-
process.exit(1);
|
1162
|
-
break;
|
1163
1923
|
case 'ERROR':
|
1164
1924
|
warnings.flush();
|
1165
|
-
handleError(event.error, true);
|
1925
|
+
loadConfigFile_js.handleError(event.error, true);
|
1166
1926
|
break;
|
1167
1927
|
case 'START':
|
1168
1928
|
if (!silent) {
|
1169
|
-
resetScreen(
|
1929
|
+
resetScreen(loadConfigFile_js.color.underline(`rollup v${rollup_js.version}`));
|
1170
1930
|
}
|
1171
1931
|
break;
|
1172
1932
|
case 'BUNDLE_START':
|
@@ -1176,36 +1936,28 @@ function watch(configFile, configs, command, silent = false) {
|
|
1176
1936
|
input = Array.isArray(input)
|
1177
1937
|
? input.join(', ')
|
1178
1938
|
: Object.keys(input)
|
1179
|
-
.map(key => input[key])
|
1939
|
+
.map((key) => input[key])
|
1180
1940
|
.join(', ');
|
1181
1941
|
}
|
1182
|
-
stderr(
|
1942
|
+
loadConfigFile_js.stderr(loadConfigFile_js.color.cyan(`bundles ${loadConfigFile_js.color.bold(input)} → ${loadConfigFile_js.color.bold(event.output.map(rollup_js.relativeId).join(', '))}...`));
|
1183
1943
|
}
|
1184
1944
|
break;
|
1185
1945
|
case 'BUNDLE_END':
|
1186
1946
|
warnings.flush();
|
1187
1947
|
if (!silent)
|
1188
|
-
stderr(
|
1948
|
+
loadConfigFile_js.stderr(loadConfigFile_js.color.green(`created ${loadConfigFile_js.color.bold(event.output.map(rollup_js.relativeId).join(', '))} in ${loadConfigFile_js.color.bold(prettyMs(event.duration))}`));
|
1189
1949
|
if (event.result && event.result.getTimings) {
|
1190
1950
|
printTimings(event.result.getTimings());
|
1191
1951
|
}
|
1192
1952
|
break;
|
1193
1953
|
case 'END':
|
1194
1954
|
if (!silent && isTTY) {
|
1195
|
-
stderr(`\n[${dateTime_1()}] waiting for changes...`);
|
1955
|
+
loadConfigFile_js.stderr(`\n[${dateTime_1()}] waiting for changes...`);
|
1196
1956
|
}
|
1197
1957
|
}
|
1198
1958
|
});
|
1199
1959
|
}
|
1200
|
-
|
1201
|
-
const removeOnExit = signalExit(close);
|
1202
|
-
process.on('uncaughtException', close);
|
1203
|
-
// only listen to stdin if it is a pipe
|
1204
|
-
if (!process.stdin.isTTY) {
|
1205
|
-
process.stdin.on('end', close); // in case we ever support stdin!
|
1206
|
-
}
|
1207
|
-
function close(err) {
|
1208
|
-
removeOnExit();
|
1960
|
+
function close(code) {
|
1209
1961
|
process.removeListener('uncaughtException', close);
|
1210
1962
|
// removing a non-existent listener is a no-op
|
1211
1963
|
process.stdin.removeListener('end', close);
|
@@ -1213,62 +1965,19 @@ function watch(configFile, configs, command, silent = false) {
|
|
1213
1965
|
watcher.close();
|
1214
1966
|
if (configWatcher)
|
1215
1967
|
configWatcher.close();
|
1216
|
-
if (
|
1217
|
-
|
1218
|
-
process.exit(1);
|
1968
|
+
if (code) {
|
1969
|
+
process.exit(code);
|
1219
1970
|
}
|
1220
1971
|
}
|
1221
|
-
try {
|
1222
|
-
start(initialConfigs);
|
1223
|
-
}
|
1224
|
-
catch (err) {
|
1225
|
-
close(err);
|
1226
|
-
return;
|
1227
|
-
}
|
1228
|
-
if (configFile && !configFile.startsWith('node:')) {
|
1229
|
-
let restarting = false;
|
1230
|
-
let aborted = false;
|
1231
|
-
let configFileData = fs.readFileSync(configFile, 'utf-8');
|
1232
|
-
const restart = () => {
|
1233
|
-
const newConfigFileData = fs.readFileSync(configFile, 'utf-8');
|
1234
|
-
if (newConfigFileData === configFileData)
|
1235
|
-
return;
|
1236
|
-
configFileData = newConfigFileData;
|
1237
|
-
if (restarting) {
|
1238
|
-
aborted = true;
|
1239
|
-
return;
|
1240
|
-
}
|
1241
|
-
restarting = true;
|
1242
|
-
loadConfigFile(configFile, command)
|
1243
|
-
.then(() => {
|
1244
|
-
restarting = false;
|
1245
|
-
if (aborted) {
|
1246
|
-
aborted = false;
|
1247
|
-
restart();
|
1248
|
-
}
|
1249
|
-
else {
|
1250
|
-
watcher.close();
|
1251
|
-
start(initialConfigs);
|
1252
|
-
}
|
1253
|
-
})
|
1254
|
-
.catch((err) => {
|
1255
|
-
handleError(err, true);
|
1256
|
-
});
|
1257
|
-
};
|
1258
|
-
configWatcher = fs.watch(configFile, (event) => {
|
1259
|
-
if (event === 'change')
|
1260
|
-
restart();
|
1261
|
-
});
|
1262
|
-
}
|
1263
1972
|
}
|
1264
1973
|
|
1265
|
-
function runRollup(command) {
|
1974
|
+
async function runRollup(command) {
|
1266
1975
|
let inputSource;
|
1267
1976
|
if (command._.length > 0) {
|
1268
1977
|
if (command.input) {
|
1269
|
-
handleError({
|
1978
|
+
loadConfigFile_js.handleError({
|
1270
1979
|
code: 'DUPLICATE_IMPORT_OPTIONS',
|
1271
|
-
message: 'use --input, or pass input path as argument'
|
1980
|
+
message: 'Either use --input, or pass input path as argument',
|
1272
1981
|
});
|
1273
1982
|
}
|
1274
1983
|
inputSource = command._;
|
@@ -1287,7 +1996,7 @@ function runRollup(command) {
|
|
1287
1996
|
const value = input.substr(equalsIndex + 1);
|
1288
1997
|
let key = input.substr(0, equalsIndex);
|
1289
1998
|
if (!key)
|
1290
|
-
key =
|
1999
|
+
key = rollup_js.getAliasName(input);
|
1291
2000
|
command.input[key] = value;
|
1292
2001
|
});
|
1293
2002
|
}
|
@@ -1311,78 +2020,45 @@ function runRollup(command) {
|
|
1311
2020
|
});
|
1312
2021
|
});
|
1313
2022
|
}
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
2023
|
+
if (command.watch) {
|
2024
|
+
watch(command);
|
2025
|
+
}
|
2026
|
+
else {
|
2027
|
+
try {
|
2028
|
+
const { options, warnings } = await getConfigs(command);
|
1318
2029
|
try {
|
1319
|
-
|
2030
|
+
for (const inputOptions of options) {
|
2031
|
+
await build(inputOptions, warnings, command.silent);
|
2032
|
+
}
|
1320
2033
|
}
|
1321
2034
|
catch (err) {
|
1322
|
-
|
1323
|
-
|
1324
|
-
}
|
1325
|
-
catch (err) {
|
1326
|
-
if (err.code === 'MODULE_NOT_FOUND') {
|
1327
|
-
handleError({
|
1328
|
-
code: 'MISSING_EXTERNAL_CONFIG',
|
1329
|
-
message: `Could not resolve config file ${configFile}`
|
1330
|
-
});
|
1331
|
-
}
|
1332
|
-
throw err;
|
1333
|
-
}
|
2035
|
+
warnings.flush();
|
2036
|
+
loadConfigFile_js.handleError(err);
|
1334
2037
|
}
|
1335
2038
|
}
|
1336
|
-
|
1337
|
-
|
1338
|
-
configFile = fs.realpathSync(configFile);
|
1339
|
-
}
|
1340
|
-
if (command.watch)
|
1341
|
-
process.env.ROLLUP_WATCH = 'true';
|
1342
|
-
return loadConfigFile(configFile, command)
|
1343
|
-
.then(configs => execute(configFile, configs, command))
|
1344
|
-
.catch(handleError);
|
1345
|
-
}
|
1346
|
-
else {
|
1347
|
-
if (!command.input && (command.stdin || !process.stdin.isTTY)) {
|
1348
|
-
command.input = stdinName;
|
2039
|
+
catch (err) {
|
2040
|
+
loadConfigFile_js.handleError(err);
|
1349
2041
|
}
|
1350
|
-
return execute(configFile, [{ input: [] }], command);
|
1351
2042
|
}
|
1352
2043
|
}
|
1353
|
-
function
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
}
|
1358
|
-
|
1359
|
-
|
1360
|
-
const warnings = batchWarnings();
|
1361
|
-
const { inputOptions, outputOptions, optionError } = index.mergeOptions({
|
1362
|
-
command,
|
1363
|
-
config,
|
1364
|
-
defaultOnWarnHandler: warnings.add
|
1365
|
-
});
|
1366
|
-
if (optionError) {
|
1367
|
-
inputOptions.onwarn({ code: 'UNKNOWN_OPTION', message: optionError });
|
1368
|
-
}
|
1369
|
-
if (command.stdin !== false) {
|
1370
|
-
inputOptions.plugins.push(stdinPlugin());
|
1371
|
-
}
|
1372
|
-
yield build(inputOptions, outputOptions, warnings, command.silent);
|
1373
|
-
}
|
1374
|
-
}
|
1375
|
-
});
|
2044
|
+
async function getConfigs(command) {
|
2045
|
+
if (command.config) {
|
2046
|
+
const configFile = getConfigPath(command.config);
|
2047
|
+
const { options, warnings } = await loadConfigFile_js.loadAndParseConfigFile(configFile, command);
|
2048
|
+
return { options, warnings };
|
2049
|
+
}
|
2050
|
+
return loadConfigFromCommand(command);
|
1376
2051
|
}
|
1377
2052
|
|
1378
|
-
const command =
|
1379
|
-
alias:
|
2053
|
+
const command = yargsParser(process.argv.slice(2), {
|
2054
|
+
alias: mergeOptions.commandAliases,
|
2055
|
+
configuration: { 'camel-case-expansion': false }
|
1380
2056
|
});
|
1381
2057
|
if (command.help || (process.argv.length <= 2 && process.stdin.isTTY)) {
|
1382
|
-
console.log(`\n${help.replace('__VERSION__',
|
2058
|
+
console.log(`\n${help.replace('__VERSION__', rollup_js.version)}\n`);
|
1383
2059
|
}
|
1384
2060
|
else if (command.version) {
|
1385
|
-
console.log(`rollup v${
|
2061
|
+
console.log(`rollup v${rollup_js.version}`);
|
1386
2062
|
}
|
1387
2063
|
else {
|
1388
2064
|
try {
|