immosquare-cleaner 0.1.38 → 0.1.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/linters/rubocop-3.3.3.yml +88 -0
- data/node_modules/.bin/babylon +1 -0
- data/node_modules/.bin/loose-envify +1 -0
- data/node_modules/@babel/code-frame/lib/index.js +1 -1
- data/node_modules/@babel/code-frame/lib/index.js.map +1 -1
- data/node_modules/@babel/code-frame/package.json +3 -3
- data/node_modules/@babel/compat-data/data/corejs2-built-ins.json +9 -0
- data/node_modules/@babel/compat-data/data/plugins.json +6 -1
- data/node_modules/@babel/compat-data/package.json +1 -1
- data/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -1
- data/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js.map +1 -1
- data/node_modules/@babel/core/lib/index.js +1 -1
- data/node_modules/@babel/core/lib/index.js.map +1 -1
- data/node_modules/@babel/core/lib/parser/index.js.map +1 -1
- data/node_modules/@babel/core/lib/tools/build-external-helpers.js +4 -3
- data/node_modules/@babel/core/lib/tools/build-external-helpers.js.map +1 -1
- data/node_modules/@babel/core/lib/transformation/file/file.js +2 -2
- data/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -1
- data/node_modules/@babel/core/lib/vendor/import-meta-resolve.js +82 -72
- data/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map +1 -1
- data/node_modules/@babel/core/package.json +16 -16
- data/node_modules/@babel/generator/lib/buffer.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/methods.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/statements.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/template-literals.js +7 -6
- data/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/types.js +20 -16
- data/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
- data/node_modules/@babel/generator/lib/index.js +2 -2
- data/node_modules/@babel/generator/lib/index.js.map +1 -1
- data/node_modules/@babel/generator/lib/node/whitespace.js.map +1 -1
- data/node_modules/@babel/generator/lib/printer.js.map +1 -1
- data/node_modules/@babel/generator/package.json +4 -4
- data/node_modules/@babel/helper-annotate-as-pure/README.md +1 -1
- data/node_modules/@babel/helper-annotate-as-pure/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-annotate-as-pure/package.json +5 -2
- data/node_modules/@babel/helper-annotate-as-pure/tsconfig.json +17 -0
- data/node_modules/@babel/helper-annotate-as-pure/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/helper-compilation-targets/lib/debug.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/filter-items.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/options.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/pretty.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/targets.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/utils.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/package.json +8 -5
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js +32 -18
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/features.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js +51 -34
- data/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js +5 -5
- data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/package.json +12 -12
- data/node_modules/@babel/helper-create-class-features-plugin/tsconfig.tsbuildinfo +1 -1
- data/node_modules/@babel/helper-environment-visitor/lib/index.js +1 -2
- data/node_modules/@babel/helper-environment-visitor/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-environment-visitor/package.json +9 -4
- data/node_modules/@babel/helper-function-name/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-function-name/package.json +6 -3
- data/node_modules/@babel/helper-hoist-variables/README.md +1 -1
- data/node_modules/@babel/helper-hoist-variables/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-hoist-variables/package.json +3 -4
- data/node_modules/@babel/helper-member-expression-to-functions/package.json +3 -5
- data/node_modules/@babel/helper-member-expression-to-functions/tsconfig.tsbuildinfo +1 -1
- data/node_modules/@babel/helper-module-imports/lib/import-builder.js.map +1 -1
- data/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +1 -1
- data/node_modules/@babel/helper-module-imports/package.json +4 -4
- data/node_modules/@babel/helper-module-transforms/lib/get-module-name.js.map +1 -1
- data/node_modules/@babel/helper-module-transforms/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js.map +1 -1
- data/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js.map +1 -1
- data/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js.map +1 -1
- data/node_modules/@babel/helper-module-transforms/package.json +7 -8
- data/node_modules/@babel/helper-optimise-call-expression/README.md +1 -1
- data/node_modules/@babel/helper-optimise-call-expression/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-optimise-call-expression/package.json +4 -4
- data/node_modules/@babel/helper-optimise-call-expression/tsconfig.json +17 -0
- data/node_modules/@babel/helper-optimise-call-expression/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/helper-plugin-utils/package.json +2 -2
- data/node_modules/@babel/helper-plugin-utils/tsconfig.tsbuildinfo +1 -1
- data/node_modules/@babel/helper-replace-supers/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-replace-supers/package.json +5 -5
- data/node_modules/@babel/helper-replace-supers/tsconfig.json +23 -0
- data/node_modules/@babel/helper-replace-supers/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/helper-simple-access/package.json +4 -4
- data/node_modules/@babel/helper-skip-transparent-expression-wrappers/README.md +1 -1
- data/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-skip-transparent-expression-wrappers/package.json +7 -6
- data/node_modules/@babel/helper-skip-transparent-expression-wrappers/tsconfig.json +17 -0
- data/node_modules/@babel/helper-skip-transparent-expression-wrappers/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/helper-split-export-declaration/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-split-export-declaration/package.json +5 -2
- data/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-string-parser/package.json +5 -2
- data/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -1
- data/node_modules/@babel/helper-validator-identifier/package.json +5 -2
- data/node_modules/@babel/helper-validator-option/lib/find-suggestion.js.map +1 -1
- data/node_modules/@babel/helper-validator-option/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-validator-option/lib/validator.js.map +1 -1
- data/node_modules/@babel/helper-validator-option/package.json +5 -2
- data/node_modules/@babel/helpers/lib/helpers/AwaitValue.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/AwaitValue.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/OverloadYield.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js +31 -0
- data/node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2311.js +1 -1
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2311.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/arrayLikeToArray.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/arrayLikeToArray.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/arrayWithHoles.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/arrayWithHoles.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/arrayWithoutHoles.js +12 -0
- data/node_modules/@babel/helpers/lib/helpers/arrayWithoutHoles.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/assertThisInitialized.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/assertThisInitialized.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/asyncGeneratorDelegate.js +2 -2
- data/node_modules/@babel/helpers/lib/helpers/asyncGeneratorDelegate.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/asyncIterator.js +2 -2
- data/node_modules/@babel/helpers/lib/helpers/asyncIterator.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/asyncToGenerator.js +38 -0
- data/node_modules/@babel/helpers/lib/helpers/asyncToGenerator.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/awaitAsyncGenerator.js +2 -2
- data/node_modules/@babel/helpers/lib/helpers/awaitAsyncGenerator.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/checkPrivateRedeclaration.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/checkPrivateRedeclaration.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorDestructureSet.js +25 -0
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorDestructureSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorGet.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorGet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorSet.js +18 -0
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classCallCheck.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/classCallCheck.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticAccess.js +12 -0
- data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticAccess.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticFieldDescriptor.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticFieldDescriptor.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classExtractFieldDescriptor.js +12 -0
- data/node_modules/@babel/helpers/lib/helpers/classExtractFieldDescriptor.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classNameTDZError.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/classNameTDZError.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldDestructureSet.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldDestructureSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldInitSpec.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldInitSpec.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseBase.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseBase.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseKey.js +12 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseKey.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodGet.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodGet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodInitSpec.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodInitSpec.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodSet.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldDestructureSet.js +16 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldDestructureSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecGet.js +16 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecGet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecSet.js +17 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodGet.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodGet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodSet.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/construct.js +2 -2
- data/node_modules/@babel/helpers/lib/helpers/construct.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/createClass.js +26 -0
- data/node_modules/@babel/helpers/lib/helpers/createClass.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js +60 -0
- data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelperLoose.js +27 -0
- data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelperLoose.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/createSuper.js +25 -0
- data/node_modules/@babel/helpers/lib/helpers/createSuper.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/decorate.js +350 -0
- data/node_modules/@babel/helpers/lib/helpers/decorate.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/defaults.js +18 -0
- data/node_modules/@babel/helpers/lib/helpers/defaults.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/defineEnumerableProperties.js +27 -0
- data/node_modules/@babel/helpers/lib/helpers/defineEnumerableProperties.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/defineProperty.js +23 -0
- data/node_modules/@babel/helpers/lib/helpers/defineProperty.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/extends.js +22 -0
- data/node_modules/@babel/helpers/lib/helpers/extends.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/get.js +25 -0
- data/node_modules/@babel/helpers/lib/helpers/get.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/getPrototypeOf.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/getPrototypeOf.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/identity.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/identity.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/importDeferProxy.js +2 -2
- data/node_modules/@babel/helpers/lib/helpers/importDeferProxy.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/inherits.js +25 -0
- data/node_modules/@babel/helpers/lib/helpers/inherits.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/inheritsLoose.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/inheritsLoose.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/initializerDefineProperty.js +17 -0
- data/node_modules/@babel/helpers/lib/helpers/initializerDefineProperty.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/initializerWarningHelper.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/initializerWarningHelper.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/instanceof.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/instanceof.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/interopRequireDefault.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/interopRequireDefault.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/interopRequireWildcard.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/iterableToArray.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/iterableToArray.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimit.js +16 -16
- data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimit.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/maybeArrayLike.js +16 -0
- data/node_modules/@babel/helpers/lib/helpers/maybeArrayLike.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/newArrowCheck.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/newArrowCheck.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/nonIterableRest.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/nonIterableRest.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/nonIterableSpread.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/nonIterableSpread.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/nullishReceiverError.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/nullishReceiverError.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/objectDestructuringEmpty.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/objectDestructuringEmpty.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/objectSpread.js +24 -0
- data/node_modules/@babel/helpers/lib/helpers/objectSpread.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/objectSpread2.js +2 -2
- data/node_modules/@babel/helpers/lib/helpers/objectSpread2.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js +24 -0
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js +19 -0
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/possibleConstructorReturn.js +17 -0
- data/node_modules/@babel/helpers/lib/helpers/possibleConstructorReturn.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/readOnlyError.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/readOnlyError.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/set.js +48 -0
- data/node_modules/@babel/helpers/lib/helpers/set.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/setPrototypeOf.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/setPrototypeOf.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/skipFirstGeneratorNext.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/skipFirstGeneratorNext.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/slicedToArray.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/slicedToArray.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/superPropBase.js +16 -0
- data/node_modules/@babel/helpers/lib/helpers/superPropBase.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteral.js +18 -0
- data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteral.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteralLoose.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteralLoose.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/tdz.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/tdz.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/temporalRef.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/temporalRef.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/temporalUndefined.js +9 -0
- data/node_modules/@babel/helpers/lib/helpers/temporalUndefined.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/toArray.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/toArray.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/toConsumableArray.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/toConsumableArray.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/typeof.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/unsupportedIterableToArray.js +19 -0
- data/node_modules/@babel/helpers/lib/helpers/unsupportedIterableToArray.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/usingCtx.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/{AsyncGenerator.js → wrapAsyncGenerator.js} +9 -4
- data/node_modules/@babel/helpers/lib/helpers/wrapAsyncGenerator.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/wrapNativeSuper.js +38 -0
- data/node_modules/@babel/helpers/lib/helpers/wrapNativeSuper.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/writeOnlyError.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/writeOnlyError.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers-generated.js +1191 -40
- data/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -1
- data/node_modules/@babel/helpers/lib/index.js +62 -184
- data/node_modules/@babel/helpers/lib/index.js.map +1 -1
- data/node_modules/@babel/helpers/package.json +6 -7
- data/node_modules/@babel/helpers/scripts/build-helper-metadata.js +209 -0
- data/node_modules/@babel/helpers/scripts/generate-helpers.js +93 -15
- data/node_modules/@babel/highlight/node_modules/js-tokens/CHANGELOG.md +151 -0
- data/node_modules/@babel/highlight/node_modules/js-tokens/LICENSE +21 -0
- data/node_modules/@babel/highlight/node_modules/js-tokens/README.md +240 -0
- data/node_modules/@babel/highlight/node_modules/js-tokens/index.js +23 -0
- data/node_modules/@babel/highlight/node_modules/js-tokens/package.json +30 -0
- data/node_modules/@babel/highlight/package.json +2 -2
- data/node_modules/@babel/parser/lib/index.js +44 -81
- data/node_modules/@babel/parser/lib/index.js.map +1 -1
- data/node_modules/@babel/parser/package.json +7 -6
- data/node_modules/@babel/parser/typings/babel-parser.d.ts +1 -1
- data/node_modules/@babel/plugin-syntax-flow/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-syntax-flow/package.json +3 -3
- data/node_modules/@babel/plugin-syntax-flow/tsconfig.json +17 -0
- data/node_modules/@babel/plugin-syntax-flow/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-syntax-jsx/package.json +3 -3
- data/node_modules/@babel/plugin-syntax-jsx/tsconfig.json +17 -0
- data/node_modules/@babel/plugin-syntax-jsx/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/LICENSE +22 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/README.md +19 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/lib/index.js +77 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/package.json +24 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/tsconfig.json +39 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/LICENSE +22 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/README.md +19 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/lib/index.js +77 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/package.json +24 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/tsconfig.json +39 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-syntax-typescript/package.json +4 -4
- data/node_modules/@babel/plugin-syntax-typescript/tsconfig.json +17 -0
- data/node_modules/@babel/plugin-syntax-typescript/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-transform-class-properties/package.json +5 -5
- data/node_modules/@babel/plugin-transform-class-properties/tsconfig.json +20 -0
- data/node_modules/@babel/plugin-transform-class-properties/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-transform-flow-strip-types/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-flow-strip-types/package.json +5 -5
- data/node_modules/@babel/plugin-transform-flow-strip-types/tsconfig.json +20 -0
- data/node_modules/@babel/plugin-transform-flow-strip-types/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js.map +1 -1
- data/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js +1 -1
- data/node_modules/@babel/plugin-transform-modules-commonjs/package.json +7 -7
- data/node_modules/@babel/plugin-transform-modules-commonjs/tsconfig.json +17 -0
- data/node_modules/@babel/plugin-transform-modules-commonjs/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js +1 -1
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json +4 -4
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/tsconfig.json +17 -0
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-transform-optional-chaining/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-optional-chaining/package.json +7 -7
- data/node_modules/@babel/plugin-transform-optional-chaining/tsconfig.tsbuildinfo +1 -1
- data/node_modules/@babel/plugin-transform-private-methods/lib/index.js +1 -1
- data/node_modules/@babel/plugin-transform-private-methods/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-private-methods/package.json +5 -5
- data/node_modules/@babel/plugin-transform-private-methods/tsconfig.json +20 -0
- data/node_modules/@babel/plugin-transform-private-methods/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/enum.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/global-types.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/namespace.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/package.json +9 -9
- data/node_modules/@babel/plugin-transform-typescript/tsconfig.tsbuildinfo +1 -1
- data/node_modules/@babel/preset-flow/package.json +6 -6
- data/node_modules/@babel/preset-flow/tsconfig.json +20 -0
- data/node_modules/@babel/preset-flow/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/preset-typescript/lib/index.js.map +1 -1
- data/node_modules/@babel/preset-typescript/package.json +8 -8
- data/node_modules/@babel/preset-typescript/tsconfig.json +26 -0
- data/node_modules/@babel/preset-typescript/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/register/lib/browser.js.map +1 -1
- data/node_modules/@babel/register/lib/cache.js.map +1 -1
- data/node_modules/@babel/register/lib/experimental-worker.js.map +1 -1
- data/node_modules/@babel/register/lib/hook.js.map +1 -1
- data/node_modules/@babel/register/lib/index.js.map +1 -1
- data/node_modules/@babel/register/lib/is-in-register-worker.js.map +1 -1
- data/node_modules/@babel/register/lib/node.js.map +1 -1
- data/node_modules/@babel/register/lib/nodeWrapper.js.map +1 -1
- data/node_modules/@babel/register/lib/worker/babel-core.js.map +1 -1
- data/node_modules/@babel/register/lib/worker/cache.js.map +1 -1
- data/node_modules/@babel/register/lib/worker/handle-message.js.map +1 -1
- data/node_modules/@babel/register/lib/worker/index.js.map +1 -1
- data/node_modules/@babel/register/lib/worker/transform.js.map +1 -1
- data/node_modules/@babel/register/lib/worker-client.js +33 -57
- data/node_modules/@babel/register/lib/worker-client.js.map +1 -1
- data/node_modules/@babel/register/package.json +4 -4
- data/node_modules/@babel/register/tsconfig.json +17 -0
- data/node_modules/@babel/register/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/template/lib/builder.js.map +1 -1
- data/node_modules/@babel/template/lib/formatters.js.map +1 -1
- data/node_modules/@babel/template/lib/index.js.map +1 -1
- data/node_modules/@babel/template/lib/literal.js.map +1 -1
- data/node_modules/@babel/template/lib/options.js.map +1 -1
- data/node_modules/@babel/template/lib/parse.js.map +1 -1
- data/node_modules/@babel/template/lib/populate.js.map +1 -1
- data/node_modules/@babel/template/lib/string.js.map +1 -1
- data/node_modules/@babel/template/package.json +4 -4
- data/node_modules/@babel/traverse/lib/path/family.js.map +1 -1
- data/node_modules/@babel/traverse/lib/path/index.js +125 -31
- data/node_modules/@babel/traverse/lib/path/index.js.map +1 -1
- data/node_modules/@babel/traverse/lib/scope/index.js +4 -3
- data/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
- data/node_modules/@babel/traverse/lib/scope/lib/renamer.js +4 -2
- data/node_modules/@babel/traverse/lib/scope/lib/renamer.js.map +1 -1
- data/node_modules/@babel/traverse/lib/visitors.js +6 -6
- data/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
- data/node_modules/@babel/traverse/package.json +11 -11
- data/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +6 -5
- data/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
- data/node_modules/@babel/types/lib/converters/toSequenceExpression.js +1 -1
- data/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
- data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +2 -2
- data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
- data/node_modules/@babel/types/package.json +5 -5
- data/node_modules/@eslint/config-array/LICENSE +201 -0
- data/node_modules/@eslint/config-array/README.md +353 -0
- data/node_modules/@eslint/config-array/dist/cjs/index.cjs +1216 -0
- data/node_modules/@eslint/config-array/dist/cjs/index.d.cts +137 -0
- data/node_modules/@eslint/config-array/dist/cjs/types.ts +24 -0
- data/node_modules/@eslint/config-array/dist/esm/index.d.ts +137 -0
- data/node_modules/@eslint/config-array/dist/esm/index.js +1214 -0
- data/node_modules/@eslint/config-array/dist/esm/types.d.ts +19 -0
- data/node_modules/@eslint/config-array/dist/esm/types.ts +24 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/LICENSE +15 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/README.md +230 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/minimatch.js +947 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/LICENSE +21 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/README.md +129 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/index.js +201 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/package.json +47 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/package.json +33 -0
- data/node_modules/@eslint/config-array/package.json +64 -0
- data/node_modules/@eslint/js/package.json +1 -1
- data/node_modules/@eslint/object-schema/LICENSE +201 -0
- data/node_modules/@eslint/object-schema/README.md +237 -0
- data/node_modules/@eslint/object-schema/dist/cjs/index.cjs +455 -0
- data/node_modules/@eslint/object-schema/dist/cjs/index.d.cts +123 -0
- data/node_modules/@eslint/object-schema/dist/cjs/types.ts +55 -0
- data/node_modules/@eslint/object-schema/dist/esm/index.d.ts +123 -0
- data/node_modules/@eslint/object-schema/dist/esm/index.js +452 -0
- data/node_modules/@eslint/object-schema/dist/esm/types.d.ts +40 -0
- data/node_modules/@eslint/object-schema/dist/esm/types.ts +55 -0
- data/node_modules/@eslint/object-schema/package.json +60 -0
- data/node_modules/@npmcli/move-file/node_modules/mkdirp/LICENSE +21 -0
- data/node_modules/@npmcli/move-file/node_modules/mkdirp/bin/cmd.js +68 -0
- data/node_modules/@npmcli/move-file/node_modules/mkdirp/index.js +31 -0
- data/node_modules/@npmcli/move-file/node_modules/mkdirp/package.json +44 -0
- data/node_modules/@npmcli/move-file/node_modules/mkdirp/readme.markdown +266 -0
- data/node_modules/babel-code-frame/README.md +60 -0
- data/node_modules/babel-code-frame/lib/index.js +141 -0
- data/node_modules/babel-code-frame/node_modules/chalk/index.js +116 -0
- data/node_modules/babel-code-frame/node_modules/chalk/license +21 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/ansi-styles/index.js +65 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/ansi-styles/license +21 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/ansi-styles/package.json +50 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/ansi-styles/readme.md +86 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/escape-string-regexp/index.js +11 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/escape-string-regexp/license +21 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/escape-string-regexp/package.json +41 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/escape-string-regexp/readme.md +27 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/index.js +6 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/license +21 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/index.js +4 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/license +21 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/package.json +64 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +39 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/package.json +57 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/readme.md +33 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/index.js +50 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/license +21 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/package.json +49 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md +36 -0
- data/node_modules/babel-code-frame/node_modules/chalk/package.json +70 -0
- data/node_modules/babel-code-frame/node_modules/chalk/readme.md +213 -0
- data/node_modules/babel-code-frame/package-lock.json +66 -0
- data/node_modules/babel-code-frame/package.json +15 -0
- data/node_modules/babel-core/README.md +94 -27
- data/node_modules/babel-core/index.js +1 -2
- data/node_modules/babel-core/lib/api/browser.js +190 -0
- data/node_modules/babel-core/lib/api/node.js +153 -0
- data/node_modules/babel-core/lib/helpers/get-possible-plugin-names.js +8 -0
- data/node_modules/babel-core/lib/helpers/get-possible-preset-names.js +18 -0
- data/node_modules/babel-core/lib/helpers/merge.js +46 -0
- data/node_modules/babel-core/lib/helpers/normalize-ast.js +23 -0
- data/node_modules/babel-core/lib/helpers/resolve-from-possible-names.js +17 -0
- data/node_modules/babel-core/lib/helpers/resolve-plugin.js +21 -0
- data/node_modules/babel-core/lib/helpers/resolve-preset.js +21 -0
- data/node_modules/babel-core/lib/helpers/resolve.js +46 -0
- data/node_modules/babel-core/lib/store.js +55 -0
- data/node_modules/babel-core/lib/tools/build-external-helpers.js +101 -0
- data/node_modules/babel-core/lib/transformation/file/index.js +705 -0
- data/node_modules/babel-core/lib/transformation/file/logger.js +72 -0
- data/node_modules/babel-core/lib/transformation/file/merge-map.js +354 -0
- data/node_modules/babel-core/lib/transformation/file/metadata.js +178 -0
- data/node_modules/babel-core/lib/transformation/file/options/build-config-chain.js +215 -0
- data/node_modules/babel-core/lib/transformation/file/options/config.js +211 -0
- data/node_modules/babel-core/lib/transformation/file/options/index.js +38 -0
- data/node_modules/babel-core/lib/transformation/file/options/option-manager.js +383 -0
- data/node_modules/babel-core/lib/transformation/file/options/parsers.js +33 -0
- data/node_modules/babel-core/lib/transformation/file/options/removed.js +50 -0
- data/node_modules/babel-core/lib/transformation/internal-plugins/block-hoist.js +45 -0
- data/node_modules/babel-core/lib/transformation/internal-plugins/shadow-functions.js +136 -0
- data/node_modules/babel-core/lib/transformation/pipeline.js +81 -0
- data/node_modules/babel-core/lib/transformation/plugin-pass.js +71 -0
- data/node_modules/babel-core/lib/transformation/plugin.js +163 -0
- data/node_modules/babel-core/lib/util.js +184 -0
- data/node_modules/babel-core/node_modules/convert-source-map/LICENSE +23 -0
- data/node_modules/babel-core/node_modules/convert-source-map/README.md +123 -0
- data/node_modules/babel-core/node_modules/convert-source-map/index.js +179 -0
- data/node_modules/babel-core/node_modules/convert-source-map/package.json +41 -0
- data/node_modules/babel-core/node_modules/debug/CHANGELOG.md +362 -0
- data/node_modules/babel-core/node_modules/debug/LICENSE +19 -0
- data/node_modules/babel-core/node_modules/debug/Makefile +50 -0
- data/node_modules/babel-core/node_modules/debug/README.md +312 -0
- data/node_modules/babel-core/node_modules/debug/component.json +19 -0
- data/node_modules/babel-core/node_modules/debug/karma.conf.js +70 -0
- data/node_modules/babel-core/node_modules/debug/node.js +1 -0
- data/node_modules/babel-core/node_modules/debug/node_modules/ms/index.js +152 -0
- data/node_modules/babel-core/node_modules/debug/node_modules/ms/license.md +21 -0
- data/node_modules/babel-core/node_modules/debug/node_modules/ms/package.json +37 -0
- data/node_modules/babel-core/node_modules/debug/node_modules/ms/readme.md +51 -0
- data/node_modules/babel-core/node_modules/debug/package.json +49 -0
- data/node_modules/babel-core/node_modules/debug/src/browser.js +185 -0
- data/node_modules/babel-core/node_modules/debug/src/debug.js +202 -0
- data/node_modules/babel-core/node_modules/debug/src/index.js +10 -0
- data/node_modules/babel-core/node_modules/debug/src/inspector-log.js +15 -0
- data/node_modules/babel-core/node_modules/debug/src/node.js +248 -0
- data/node_modules/babel-core/node_modules/json5/CHANGELOG.md +169 -0
- data/node_modules/babel-core/node_modules/json5/LICENSE.md +21 -0
- data/node_modules/babel-core/node_modules/json5/README.md +286 -0
- data/node_modules/babel-core/node_modules/json5/lib/cli.js +41 -0
- data/node_modules/babel-core/node_modules/json5/lib/json5.js +770 -0
- data/node_modules/babel-core/node_modules/json5/lib/require.js +18 -0
- data/node_modules/babel-core/node_modules/json5/package.json +38 -0
- data/node_modules/babel-core/node_modules/minimatch/LICENSE +15 -0
- data/node_modules/babel-core/node_modules/minimatch/README.md +230 -0
- data/node_modules/babel-core/node_modules/minimatch/minimatch.js +947 -0
- data/node_modules/babel-core/node_modules/minimatch/node_modules/brace-expansion/LICENSE +21 -0
- data/node_modules/babel-core/node_modules/minimatch/node_modules/brace-expansion/README.md +129 -0
- data/node_modules/babel-core/node_modules/minimatch/node_modules/brace-expansion/index.js +201 -0
- data/node_modules/babel-core/node_modules/minimatch/node_modules/brace-expansion/package.json +47 -0
- data/node_modules/babel-core/node_modules/minimatch/package.json +33 -0
- data/node_modules/babel-core/node_modules/slash/index.js +11 -0
- data/node_modules/babel-core/node_modules/slash/package.json +33 -0
- data/node_modules/babel-core/node_modules/slash/readme.md +44 -0
- data/node_modules/babel-core/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/babel-core/node_modules/source-map/LICENSE +28 -0
- data/node_modules/babel-core/node_modules/source-map/README.md +729 -0
- data/node_modules/babel-core/node_modules/source-map/dist/source-map.debug.js +3091 -0
- data/node_modules/babel-core/node_modules/source-map/dist/source-map.js +3090 -0
- data/node_modules/babel-core/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/babel-core/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/babel-core/node_modules/source-map/lib/array-set.js +121 -0
- data/node_modules/babel-core/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/babel-core/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/babel-core/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/babel-core/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/babel-core/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/babel-core/node_modules/source-map/lib/source-map-consumer.js +1082 -0
- data/node_modules/babel-core/node_modules/source-map/lib/source-map-generator.js +416 -0
- data/node_modules/babel-core/node_modules/source-map/lib/source-node.js +413 -0
- data/node_modules/babel-core/node_modules/source-map/lib/util.js +417 -0
- data/node_modules/babel-core/node_modules/source-map/package.json +72 -0
- data/node_modules/babel-core/node_modules/source-map/source-map.js +8 -0
- data/node_modules/babel-core/package.json +46 -10
- data/node_modules/babel-core/register.js +3 -0
- data/node_modules/babel-generator/README.md +81 -0
- data/node_modules/babel-generator/lib/buffer.js +202 -0
- data/node_modules/babel-generator/lib/generators/base.js +62 -0
- data/node_modules/babel-generator/lib/generators/classes.js +96 -0
- data/node_modules/babel-generator/lib/generators/expressions.js +241 -0
- data/node_modules/babel-generator/lib/generators/flow.js +504 -0
- data/node_modules/babel-generator/lib/generators/jsx.js +124 -0
- data/node_modules/babel-generator/lib/generators/methods.js +111 -0
- data/node_modules/babel-generator/lib/generators/modules.js +183 -0
- data/node_modules/babel-generator/lib/generators/statements.js +316 -0
- data/node_modules/babel-generator/lib/generators/template-literals.js +31 -0
- data/node_modules/babel-generator/lib/generators/types.js +158 -0
- data/node_modules/babel-generator/lib/index.js +168 -0
- data/node_modules/babel-generator/lib/node/index.js +146 -0
- data/node_modules/babel-generator/lib/node/parentheses.js +170 -0
- data/node_modules/babel-generator/lib/node/whitespace.js +151 -0
- data/node_modules/babel-generator/lib/printer.js +555 -0
- data/node_modules/babel-generator/lib/source-map.js +89 -0
- data/node_modules/babel-generator/lib/whitespace.js +95 -0
- data/node_modules/babel-generator/node_modules/jsesc/LICENSE-MIT.txt +20 -0
- data/node_modules/babel-generator/node_modules/jsesc/bin/jsesc +148 -0
- data/node_modules/babel-generator/node_modules/jsesc/jsesc.js +345 -0
- data/node_modules/babel-generator/node_modules/jsesc/man/jsesc.1 +94 -0
- data/node_modules/babel-generator/node_modules/jsesc/package.json +46 -0
- data/node_modules/babel-generator/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/babel-generator/node_modules/source-map/LICENSE +28 -0
- data/node_modules/babel-generator/node_modules/source-map/README.md +729 -0
- data/node_modules/babel-generator/node_modules/source-map/dist/source-map.debug.js +3091 -0
- data/node_modules/babel-generator/node_modules/source-map/dist/source-map.js +3090 -0
- data/node_modules/babel-generator/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/babel-generator/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/array-set.js +121 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/source-map-consumer.js +1082 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/source-map-generator.js +416 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/source-node.js +413 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/util.js +417 -0
- data/node_modules/babel-generator/node_modules/source-map/package.json +72 -0
- data/node_modules/babel-generator/node_modules/source-map/source-map.js +8 -0
- data/node_modules/babel-generator/package.json +27 -0
- data/node_modules/babel-helpers/README.md +21 -0
- data/node_modules/babel-helpers/lib/helpers.js +76 -0
- data/node_modules/babel-helpers/lib/index.js +31 -0
- data/node_modules/babel-helpers/package.json +14 -0
- data/node_modules/babel-messages/README.md +18 -0
- data/node_modules/babel-messages/lib/index.js +84 -0
- data/node_modules/babel-messages/package.json +13 -0
- data/node_modules/babel-register/README.md +103 -0
- data/node_modules/babel-register/lib/browser.js +7 -0
- data/node_modules/babel-register/lib/cache.js +68 -0
- data/node_modules/babel-register/lib/node.js +179 -0
- data/node_modules/babel-register/node_modules/source-map-support/LICENSE.md +21 -0
- data/node_modules/babel-register/node_modules/source-map-support/README.md +251 -0
- data/node_modules/babel-register/node_modules/source-map-support/browser-source-map-support.js +110 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/LICENSE +28 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/README.md +729 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/dist/source-map.debug.js +3091 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/dist/source-map.js +3090 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/array-set.js +121 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/source-map-consumer.js +1082 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js +416 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/source-node.js +413 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/util.js +417 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/package.json +72 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/source-map.js +8 -0
- data/node_modules/babel-register/node_modules/source-map-support/package.json +30 -0
- data/node_modules/babel-register/node_modules/source-map-support/register.js +1 -0
- data/node_modules/babel-register/node_modules/source-map-support/source-map-support.js +527 -0
- data/node_modules/babel-register/package-lock.json +78 -0
- data/node_modules/babel-register/package.json +22 -0
- data/node_modules/babel-runtime/README.md +2 -0
- data/node_modules/babel-runtime/core-js/array/concat.js +1 -0
- data/node_modules/babel-runtime/core-js/array/copy-within.js +1 -0
- data/node_modules/babel-runtime/core-js/array/entries.js +1 -0
- data/node_modules/babel-runtime/core-js/array/every.js +1 -0
- data/node_modules/babel-runtime/core-js/array/fill.js +1 -0
- data/node_modules/babel-runtime/core-js/array/filter.js +1 -0
- data/node_modules/babel-runtime/core-js/array/find-index.js +1 -0
- data/node_modules/babel-runtime/core-js/array/find.js +1 -0
- data/node_modules/babel-runtime/core-js/array/for-each.js +1 -0
- data/node_modules/babel-runtime/core-js/array/from.js +1 -0
- data/node_modules/babel-runtime/core-js/array/includes.js +1 -0
- data/node_modules/babel-runtime/core-js/array/index-of.js +1 -0
- data/node_modules/babel-runtime/core-js/array/join.js +1 -0
- data/node_modules/babel-runtime/core-js/array/keys.js +1 -0
- data/node_modules/babel-runtime/core-js/array/last-index-of.js +1 -0
- data/node_modules/babel-runtime/core-js/array/map.js +1 -0
- data/node_modules/babel-runtime/core-js/array/of.js +1 -0
- data/node_modules/babel-runtime/core-js/array/pop.js +1 -0
- data/node_modules/babel-runtime/core-js/array/push.js +1 -0
- data/node_modules/babel-runtime/core-js/array/reduce-right.js +1 -0
- data/node_modules/babel-runtime/core-js/array/reduce.js +1 -0
- data/node_modules/babel-runtime/core-js/array/reverse.js +1 -0
- data/node_modules/babel-runtime/core-js/array/shift.js +1 -0
- data/node_modules/babel-runtime/core-js/array/slice.js +1 -0
- data/node_modules/babel-runtime/core-js/array/some.js +1 -0
- data/node_modules/babel-runtime/core-js/array/sort.js +1 -0
- data/node_modules/babel-runtime/core-js/array/splice.js +1 -0
- data/node_modules/babel-runtime/core-js/array/unshift.js +1 -0
- data/node_modules/babel-runtime/core-js/array/values.js +1 -0
- data/node_modules/babel-runtime/core-js/asap.js +1 -0
- data/node_modules/babel-runtime/core-js/clear-immediate.js +1 -0
- data/node_modules/babel-runtime/core-js/error/is-error.js +1 -0
- data/node_modules/babel-runtime/core-js/get-iterator.js +1 -0
- data/node_modules/babel-runtime/core-js/is-iterable.js +1 -0
- data/node_modules/babel-runtime/core-js/json/stringify.js +1 -0
- data/node_modules/babel-runtime/core-js/map.js +1 -0
- data/node_modules/babel-runtime/core-js/math/acosh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/asinh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/atanh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/cbrt.js +1 -0
- data/node_modules/babel-runtime/core-js/math/clz32.js +1 -0
- data/node_modules/babel-runtime/core-js/math/cosh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/expm1.js +1 -0
- data/node_modules/babel-runtime/core-js/math/fround.js +1 -0
- data/node_modules/babel-runtime/core-js/math/hypot.js +1 -0
- data/node_modules/babel-runtime/core-js/math/iaddh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/imul.js +1 -0
- data/node_modules/babel-runtime/core-js/math/imulh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/isubh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/log10.js +1 -0
- data/node_modules/babel-runtime/core-js/math/log1p.js +1 -0
- data/node_modules/babel-runtime/core-js/math/log2.js +1 -0
- data/node_modules/babel-runtime/core-js/math/sign.js +1 -0
- data/node_modules/babel-runtime/core-js/math/sinh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/tanh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/trunc.js +1 -0
- data/node_modules/babel-runtime/core-js/math/umulh.js +1 -0
- data/node_modules/babel-runtime/core-js/number/epsilon.js +1 -0
- data/node_modules/babel-runtime/core-js/number/is-finite.js +1 -0
- data/node_modules/babel-runtime/core-js/number/is-integer.js +1 -0
- data/node_modules/babel-runtime/core-js/number/is-nan.js +1 -0
- data/node_modules/babel-runtime/core-js/number/is-safe-integer.js +1 -0
- data/node_modules/babel-runtime/core-js/number/max-safe-integer.js +1 -0
- data/node_modules/babel-runtime/core-js/number/min-safe-integer.js +1 -0
- data/node_modules/babel-runtime/core-js/number/parse-float.js +1 -0
- data/node_modules/babel-runtime/core-js/number/parse-int.js +1 -0
- data/node_modules/babel-runtime/core-js/object/assign.js +1 -0
- data/node_modules/babel-runtime/core-js/object/create.js +1 -0
- data/node_modules/babel-runtime/core-js/object/define-properties.js +1 -0
- data/node_modules/babel-runtime/core-js/object/define-property.js +1 -0
- data/node_modules/babel-runtime/core-js/object/entries.js +1 -0
- data/node_modules/babel-runtime/core-js/object/freeze.js +1 -0
- data/node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js +1 -0
- data/node_modules/babel-runtime/core-js/object/get-own-property-descriptors.js +1 -0
- data/node_modules/babel-runtime/core-js/object/get-own-property-names.js +1 -0
- data/node_modules/babel-runtime/core-js/object/get-own-property-symbols.js +1 -0
- data/node_modules/babel-runtime/core-js/object/get-prototype-of.js +1 -0
- data/node_modules/babel-runtime/core-js/object/is-extensible.js +1 -0
- data/node_modules/babel-runtime/core-js/object/is-frozen.js +1 -0
- data/node_modules/babel-runtime/core-js/object/is-sealed.js +1 -0
- data/node_modules/babel-runtime/core-js/object/is.js +1 -0
- data/node_modules/babel-runtime/core-js/object/keys.js +1 -0
- data/node_modules/babel-runtime/core-js/object/prevent-extensions.js +1 -0
- data/node_modules/babel-runtime/core-js/object/seal.js +1 -0
- data/node_modules/babel-runtime/core-js/object/set-prototype-of.js +1 -0
- data/node_modules/babel-runtime/core-js/object/values.js +1 -0
- data/node_modules/babel-runtime/core-js/observable.js +1 -0
- data/node_modules/babel-runtime/core-js/promise.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/apply.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/construct.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/define-metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/define-property.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/delete-metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/delete-property.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/enumerate.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get-metadata-keys.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get-metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get-own-metadata-keys.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get-own-metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get-own-property-descriptor.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get-prototype-of.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/has-metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/has-own-metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/has.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/is-extensible.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/own-keys.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/prevent-extensions.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/set-prototype-of.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/set.js +1 -0
- data/node_modules/babel-runtime/core-js/regexp/escape.js +1 -0
- data/node_modules/babel-runtime/core-js/set-immediate.js +1 -0
- data/node_modules/babel-runtime/core-js/set.js +1 -0
- data/node_modules/babel-runtime/core-js/string/at.js +1 -0
- data/node_modules/babel-runtime/core-js/string/code-point-at.js +1 -0
- data/node_modules/babel-runtime/core-js/string/ends-with.js +1 -0
- data/node_modules/babel-runtime/core-js/string/from-code-point.js +1 -0
- data/node_modules/babel-runtime/core-js/string/includes.js +1 -0
- data/node_modules/babel-runtime/core-js/string/match-all.js +1 -0
- data/node_modules/babel-runtime/core-js/string/pad-end.js +1 -0
- data/node_modules/babel-runtime/core-js/string/pad-left.js +1 -0
- data/node_modules/babel-runtime/core-js/string/pad-right.js +1 -0
- data/node_modules/babel-runtime/core-js/string/pad-start.js +1 -0
- data/node_modules/babel-runtime/core-js/string/raw.js +1 -0
- data/node_modules/babel-runtime/core-js/string/repeat.js +1 -0
- data/node_modules/babel-runtime/core-js/string/starts-with.js +1 -0
- data/node_modules/babel-runtime/core-js/string/trim-end.js +1 -0
- data/node_modules/babel-runtime/core-js/string/trim-left.js +1 -0
- data/node_modules/babel-runtime/core-js/string/trim-right.js +1 -0
- data/node_modules/babel-runtime/core-js/string/trim-start.js +1 -0
- data/node_modules/babel-runtime/core-js/string/trim.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/async-iterator.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/for.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/has-instance.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/is-concat-spreadable.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/iterator.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/key-for.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/match.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/observable.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/replace.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/search.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/species.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/split.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/to-primitive.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/to-string-tag.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/unscopables.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol.js +1 -0
- data/node_modules/babel-runtime/core-js/system/global.js +1 -0
- data/node_modules/babel-runtime/core-js/weak-map.js +1 -0
- data/node_modules/babel-runtime/core-js/weak-set.js +1 -0
- data/node_modules/babel-runtime/core-js.js +4 -0
- data/node_modules/babel-runtime/helpers/_async-generator-delegate.js +1 -0
- data/node_modules/babel-runtime/helpers/_async-generator.js +1 -0
- data/node_modules/babel-runtime/helpers/_async-iterator.js +1 -0
- data/node_modules/babel-runtime/helpers/_async-to-generator.js +1 -0
- data/node_modules/babel-runtime/helpers/_class-call-check.js +1 -0
- data/node_modules/babel-runtime/helpers/_create-class.js +1 -0
- data/node_modules/babel-runtime/helpers/_defaults.js +1 -0
- data/node_modules/babel-runtime/helpers/_define-enumerable-properties.js +1 -0
- data/node_modules/babel-runtime/helpers/_define-property.js +1 -0
- data/node_modules/babel-runtime/helpers/_extends.js +1 -0
- data/node_modules/babel-runtime/helpers/_get.js +1 -0
- data/node_modules/babel-runtime/helpers/_inherits.js +1 -0
- data/node_modules/babel-runtime/helpers/_instanceof.js +1 -0
- data/node_modules/babel-runtime/helpers/_interop-require-default.js +1 -0
- data/node_modules/babel-runtime/helpers/_interop-require-wildcard.js +1 -0
- data/node_modules/babel-runtime/helpers/_jsx.js +1 -0
- data/node_modules/babel-runtime/helpers/_new-arrow-check.js +1 -0
- data/node_modules/babel-runtime/helpers/_object-destructuring-empty.js +1 -0
- data/node_modules/babel-runtime/helpers/_object-without-properties.js +1 -0
- data/node_modules/babel-runtime/helpers/_possible-constructor-return.js +1 -0
- data/node_modules/babel-runtime/helpers/_self-global.js +1 -0
- data/node_modules/babel-runtime/helpers/_set.js +1 -0
- data/node_modules/babel-runtime/helpers/_sliced-to-array-loose.js +1 -0
- data/node_modules/babel-runtime/helpers/_sliced-to-array.js +1 -0
- data/node_modules/babel-runtime/helpers/_tagged-template-literal-loose.js +1 -0
- data/node_modules/babel-runtime/helpers/_tagged-template-literal.js +1 -0
- data/node_modules/babel-runtime/helpers/_temporal-ref.js +1 -0
- data/node_modules/babel-runtime/helpers/_temporal-undefined.js +1 -0
- data/node_modules/babel-runtime/helpers/_to-array.js +1 -0
- data/node_modules/babel-runtime/helpers/_to-consumable-array.js +1 -0
- data/node_modules/babel-runtime/helpers/_typeof.js +1 -0
- data/node_modules/babel-runtime/helpers/async-generator-delegate.js +1 -0
- data/node_modules/babel-runtime/helpers/async-generator.js +1 -0
- data/node_modules/babel-runtime/helpers/async-iterator.js +1 -0
- data/node_modules/babel-runtime/helpers/async-to-generator.js +1 -0
- data/node_modules/babel-runtime/helpers/asyncGenerator.js +126 -0
- data/node_modules/babel-runtime/helpers/asyncGeneratorDelegate.js +69 -0
- data/node_modules/babel-runtime/helpers/asyncIterator.js +32 -0
- data/node_modules/babel-runtime/helpers/asyncToGenerator.js +38 -0
- data/node_modules/babel-runtime/helpers/class-call-check.js +1 -0
- data/node_modules/babel-runtime/helpers/classCallCheck.js +9 -0
- data/node_modules/babel-runtime/helpers/create-class.js +1 -0
- data/node_modules/babel-runtime/helpers/createClass.js +27 -0
- data/node_modules/babel-runtime/helpers/defaults.js +32 -0
- data/node_modules/babel-runtime/helpers/define-enumerable-properties.js +1 -0
- data/node_modules/babel-runtime/helpers/define-property.js +1 -0
- data/node_modules/babel-runtime/helpers/defineEnumerableProperties.js +20 -0
- data/node_modules/babel-runtime/helpers/defineProperty.js +24 -0
- data/node_modules/babel-runtime/helpers/extends.js +23 -0
- data/node_modules/babel-runtime/helpers/get.js +38 -0
- data/node_modules/babel-runtime/helpers/inherits.js +33 -0
- data/node_modules/babel-runtime/helpers/instanceof.js +21 -0
- data/node_modules/babel-runtime/helpers/interop-require-default.js +1 -0
- data/node_modules/babel-runtime/helpers/interop-require-wildcard.js +1 -0
- data/node_modules/babel-runtime/helpers/interopRequireDefault.js +9 -0
- data/node_modules/babel-runtime/helpers/interopRequireWildcard.js +20 -0
- data/node_modules/babel-runtime/helpers/jsx.js +56 -0
- data/node_modules/babel-runtime/helpers/new-arrow-check.js +1 -0
- data/node_modules/babel-runtime/helpers/newArrowCheck.js +9 -0
- data/node_modules/babel-runtime/helpers/object-destructuring-empty.js +1 -0
- data/node_modules/babel-runtime/helpers/object-without-properties.js +1 -0
- data/node_modules/babel-runtime/helpers/objectDestructuringEmpty.js +7 -0
- data/node_modules/babel-runtime/helpers/objectWithoutProperties.js +15 -0
- data/node_modules/babel-runtime/helpers/possible-constructor-return.js +1 -0
- data/node_modules/babel-runtime/helpers/possibleConstructorReturn.js +17 -0
- data/node_modules/babel-runtime/helpers/self-global.js +1 -0
- data/node_modules/babel-runtime/helpers/selfGlobal.js +4 -0
- data/node_modules/babel-runtime/helpers/set.js +35 -0
- data/node_modules/babel-runtime/helpers/sliced-to-array-loose.js +1 -0
- data/node_modules/babel-runtime/helpers/sliced-to-array.js +1 -0
- data/node_modules/babel-runtime/helpers/slicedToArray.js +51 -0
- data/node_modules/babel-runtime/helpers/slicedToArrayLoose.js +31 -0
- data/node_modules/babel-runtime/helpers/tagged-template-literal-loose.js +1 -0
- data/node_modules/babel-runtime/helpers/tagged-template-literal.js +1 -0
- data/node_modules/babel-runtime/helpers/taggedTemplateLiteral.js +21 -0
- data/node_modules/babel-runtime/helpers/taggedTemplateLiteralLoose.js +8 -0
- data/node_modules/babel-runtime/helpers/temporal-ref.js +1 -0
- data/node_modules/babel-runtime/helpers/temporal-undefined.js +1 -0
- data/node_modules/babel-runtime/helpers/temporalRef.js +11 -0
- data/node_modules/babel-runtime/helpers/temporalUndefined.js +4 -0
- data/node_modules/babel-runtime/helpers/to-array.js +1 -0
- data/node_modules/babel-runtime/helpers/to-consumable-array.js +1 -0
- data/node_modules/babel-runtime/helpers/toArray.js +13 -0
- data/node_modules/babel-runtime/helpers/toConsumableArray.js +21 -0
- data/node_modules/babel-runtime/helpers/typeof.js +21 -0
- data/node_modules/babel-runtime/package-lock.json +232 -0
- data/node_modules/babel-runtime/package.json +16 -0
- data/node_modules/babel-runtime/regenerator/index.js +1 -0
- data/node_modules/babel-template/README.md +64 -0
- data/node_modules/babel-template/lib/index.js +143 -0
- data/node_modules/babel-template/package-lock.json +18 -0
- data/node_modules/babel-template/package.json +17 -0
- data/node_modules/babel-traverse/README.md +33 -0
- data/node_modules/babel-traverse/lib/cache.js +30 -0
- data/node_modules/babel-traverse/lib/context.js +200 -0
- data/node_modules/babel-traverse/lib/hub.js +19 -0
- data/node_modules/babel-traverse/lib/index.js +165 -0
- data/node_modules/babel-traverse/lib/path/ancestry.js +238 -0
- data/node_modules/babel-traverse/lib/path/comments.js +47 -0
- data/node_modules/babel-traverse/lib/path/context.js +281 -0
- data/node_modules/babel-traverse/lib/path/conversion.js +47 -0
- data/node_modules/babel-traverse/lib/path/evaluation.js +398 -0
- data/node_modules/babel-traverse/lib/path/family.js +266 -0
- data/node_modules/babel-traverse/lib/path/index.js +242 -0
- data/node_modules/babel-traverse/lib/path/inference/index.js +142 -0
- data/node_modules/babel-traverse/lib/path/inference/inferer-reference.js +185 -0
- data/node_modules/babel-traverse/lib/path/inference/inferers.js +195 -0
- data/node_modules/babel-traverse/lib/path/introspection.js +386 -0
- data/node_modules/babel-traverse/lib/path/lib/hoister.js +211 -0
- data/node_modules/babel-traverse/lib/path/lib/removal-hooks.js +33 -0
- data/node_modules/babel-traverse/lib/path/lib/virtual-types.js +141 -0
- data/node_modules/babel-traverse/lib/path/modification.js +264 -0
- data/node_modules/babel-traverse/lib/path/removal.js +72 -0
- data/node_modules/babel-traverse/lib/path/replacement.js +268 -0
- data/node_modules/babel-traverse/lib/scope/binding.js +82 -0
- data/node_modules/babel-traverse/lib/scope/index.js +1094 -0
- data/node_modules/babel-traverse/lib/scope/lib/renamer.js +113 -0
- data/node_modules/babel-traverse/lib/visitors.js +341 -0
- data/node_modules/babel-traverse/node_modules/debug/CHANGELOG.md +362 -0
- data/node_modules/babel-traverse/node_modules/debug/LICENSE +19 -0
- data/node_modules/babel-traverse/node_modules/debug/Makefile +50 -0
- data/node_modules/babel-traverse/node_modules/debug/README.md +312 -0
- data/node_modules/babel-traverse/node_modules/debug/component.json +19 -0
- data/node_modules/babel-traverse/node_modules/debug/karma.conf.js +70 -0
- data/node_modules/babel-traverse/node_modules/debug/node.js +1 -0
- data/node_modules/babel-traverse/node_modules/debug/node_modules/ms/index.js +152 -0
- data/node_modules/babel-traverse/node_modules/debug/node_modules/ms/license.md +21 -0
- data/node_modules/babel-traverse/node_modules/debug/node_modules/ms/package.json +37 -0
- data/node_modules/babel-traverse/node_modules/debug/node_modules/ms/readme.md +51 -0
- data/node_modules/babel-traverse/node_modules/debug/package.json +49 -0
- data/node_modules/babel-traverse/node_modules/debug/src/browser.js +185 -0
- data/node_modules/babel-traverse/node_modules/debug/src/debug.js +202 -0
- data/node_modules/babel-traverse/node_modules/debug/src/index.js +10 -0
- data/node_modules/babel-traverse/node_modules/debug/src/inspector-log.js +15 -0
- data/node_modules/babel-traverse/node_modules/debug/src/node.js +248 -0
- data/node_modules/babel-traverse/node_modules/globals/globals.json +1294 -0
- data/node_modules/babel-traverse/node_modules/globals/index.js +1 -0
- data/node_modules/babel-traverse/node_modules/globals/license +21 -0
- data/node_modules/babel-traverse/node_modules/globals/package.json +35 -0
- data/node_modules/babel-traverse/node_modules/globals/readme.md +41 -0
- data/node_modules/babel-traverse/package-lock.json +57 -0
- data/node_modules/babel-traverse/package.json +24 -0
- data/node_modules/babel-types/README.md +2029 -0
- data/node_modules/babel-types/lib/constants.js +38 -0
- data/node_modules/babel-types/lib/converters.js +350 -0
- data/node_modules/babel-types/lib/definitions/core.js +701 -0
- data/node_modules/babel-types/lib/definitions/es2015.js +354 -0
- data/node_modules/babel-types/lib/definitions/experimental.js +103 -0
- data/node_modules/babel-types/lib/definitions/flow.js +285 -0
- data/node_modules/babel-types/lib/definitions/index.js +249 -0
- data/node_modules/babel-types/lib/definitions/init.js +15 -0
- data/node_modules/babel-types/lib/definitions/jsx.js +147 -0
- data/node_modules/babel-types/lib/definitions/misc.js +21 -0
- data/node_modules/babel-types/lib/flow.js +108 -0
- data/node_modules/babel-types/lib/index.js +835 -0
- data/node_modules/babel-types/lib/react.js +80 -0
- data/node_modules/babel-types/lib/retrievers.js +116 -0
- data/node_modules/babel-types/lib/validators.js +265 -0
- data/node_modules/babel-types/node_modules/to-fast-properties/index.js +11 -0
- data/node_modules/babel-types/node_modules/to-fast-properties/license +22 -0
- data/node_modules/babel-types/node_modules/to-fast-properties/package.json +35 -0
- data/node_modules/babel-types/node_modules/to-fast-properties/readme.md +37 -0
- data/node_modules/babel-types/package-lock.json +29 -0
- data/node_modules/babel-types/package.json +20 -0
- data/node_modules/babylon/CHANGELOG.md +979 -0
- data/node_modules/babylon/LICENSE +19 -0
- data/node_modules/babylon/README.md +134 -0
- data/node_modules/babylon/bin/babylon.js +16 -0
- data/node_modules/babylon/bin/generate-identifier-regex.js +62 -0
- data/node_modules/babylon/lib/index.js +7318 -0
- data/node_modules/babylon/package.json +84 -0
- data/node_modules/braces/LICENSE +1 -1
- data/node_modules/braces/README.md +91 -98
- data/node_modules/braces/index.js +3 -3
- data/node_modules/braces/lib/compile.js +14 -11
- data/node_modules/braces/lib/constants.js +1 -1
- data/node_modules/braces/lib/expand.js +9 -9
- data/node_modules/braces/lib/parse.js +14 -16
- data/node_modules/braces/lib/stringify.js +4 -4
- data/node_modules/braces/lib/utils.js +13 -3
- data/node_modules/braces/package.json +2 -2
- data/node_modules/configstore/node_modules/write-file-atomic/node_modules/signal-exit/LICENSE.txt +16 -0
- data/node_modules/configstore/node_modules/write-file-atomic/node_modules/signal-exit/README.md +39 -0
- data/node_modules/configstore/node_modules/write-file-atomic/node_modules/signal-exit/package.json +38 -0
- data/node_modules/core-js/CHANGELOG.md +711 -0
- data/node_modules/core-js/Gruntfile.js +3 -0
- data/node_modules/core-js/LICENSE +19 -0
- data/node_modules/core-js/README.md +2307 -0
- data/node_modules/core-js/bower.json +49 -0
- data/node_modules/core-js/build/Gruntfile.ls +86 -0
- data/node_modules/core-js/build/build.ls +62 -0
- data/node_modules/core-js/build/config.js +275 -0
- data/node_modules/core-js/build/index.js +104 -0
- data/node_modules/core-js/client/core.js +9100 -0
- data/node_modules/core-js/client/core.min.js +10 -0
- data/node_modules/core-js/client/core.min.js.map +1 -0
- data/node_modules/core-js/client/library.js +8168 -0
- data/node_modules/core-js/client/library.min.js +10 -0
- data/node_modules/core-js/client/library.min.js.map +1 -0
- data/node_modules/core-js/client/shim.js +8663 -0
- data/node_modules/core-js/client/shim.min.js +10 -0
- data/node_modules/core-js/client/shim.min.js.map +1 -0
- data/node_modules/core-js/core/_.js +2 -0
- data/node_modules/core-js/core/delay.js +2 -0
- data/node_modules/core-js/core/dict.js +2 -0
- data/node_modules/core-js/core/function.js +2 -0
- data/node_modules/core-js/core/index.js +15 -0
- data/node_modules/core-js/core/number.js +2 -0
- data/node_modules/core-js/core/object.js +5 -0
- data/node_modules/core-js/core/regexp.js +2 -0
- data/node_modules/core-js/core/string.js +3 -0
- data/node_modules/core-js/es5/index.js +37 -0
- data/node_modules/core-js/es6/array.js +23 -0
- data/node_modules/core-js/es6/date.js +6 -0
- data/node_modules/core-js/es6/function.js +4 -0
- data/node_modules/core-js/es6/index.js +139 -0
- data/node_modules/core-js/es6/map.js +5 -0
- data/node_modules/core-js/es6/math.js +18 -0
- data/node_modules/core-js/es6/number.js +13 -0
- data/node_modules/core-js/es6/object.js +20 -0
- data/node_modules/core-js/es6/parse-float.js +2 -0
- data/node_modules/core-js/es6/parse-int.js +2 -0
- data/node_modules/core-js/es6/promise.js +5 -0
- data/node_modules/core-js/es6/reflect.js +15 -0
- data/node_modules/core-js/es6/regexp.js +9 -0
- data/node_modules/core-js/es6/set.js +5 -0
- data/node_modules/core-js/es6/string.js +27 -0
- data/node_modules/core-js/es6/symbol.js +3 -0
- data/node_modules/core-js/es6/typed.js +13 -0
- data/node_modules/core-js/es6/weak-map.js +4 -0
- data/node_modules/core-js/es6/weak-set.js +4 -0
- data/node_modules/core-js/es7/array.js +4 -0
- data/node_modules/core-js/es7/asap.js +2 -0
- data/node_modules/core-js/es7/error.js +2 -0
- data/node_modules/core-js/es7/global.js +2 -0
- data/node_modules/core-js/es7/index.js +56 -0
- data/node_modules/core-js/es7/map.js +4 -0
- data/node_modules/core-js/es7/math.js +13 -0
- data/node_modules/core-js/es7/object.js +8 -0
- data/node_modules/core-js/es7/observable.js +7 -0
- data/node_modules/core-js/es7/promise.js +3 -0
- data/node_modules/core-js/es7/reflect.js +10 -0
- data/node_modules/core-js/es7/set.js +4 -0
- data/node_modules/core-js/es7/string.js +7 -0
- data/node_modules/core-js/es7/symbol.js +3 -0
- data/node_modules/core-js/es7/system.js +2 -0
- data/node_modules/core-js/es7/weak-map.js +3 -0
- data/node_modules/core-js/es7/weak-set.js +3 -0
- data/node_modules/core-js/fn/_.js +2 -0
- data/node_modules/core-js/fn/array/concat.js +4 -0
- data/node_modules/core-js/fn/array/copy-within.js +2 -0
- data/node_modules/core-js/fn/array/entries.js +2 -0
- data/node_modules/core-js/fn/array/every.js +2 -0
- data/node_modules/core-js/fn/array/fill.js +2 -0
- data/node_modules/core-js/fn/array/filter.js +2 -0
- data/node_modules/core-js/fn/array/find-index.js +2 -0
- data/node_modules/core-js/fn/array/find.js +2 -0
- data/node_modules/core-js/fn/array/flat-map.js +2 -0
- data/node_modules/core-js/fn/array/flatten.js +2 -0
- data/node_modules/core-js/fn/array/for-each.js +2 -0
- data/node_modules/core-js/fn/array/from.js +3 -0
- data/node_modules/core-js/fn/array/includes.js +2 -0
- data/node_modules/core-js/fn/array/index-of.js +2 -0
- data/node_modules/core-js/fn/array/index.js +26 -0
- data/node_modules/core-js/fn/array/is-array.js +2 -0
- data/node_modules/core-js/fn/array/iterator.js +2 -0
- data/node_modules/core-js/fn/array/join.js +2 -0
- data/node_modules/core-js/fn/array/keys.js +2 -0
- data/node_modules/core-js/fn/array/last-index-of.js +2 -0
- data/node_modules/core-js/fn/array/map.js +2 -0
- data/node_modules/core-js/fn/array/of.js +2 -0
- data/node_modules/core-js/fn/array/pop.js +4 -0
- data/node_modules/core-js/fn/array/push.js +4 -0
- data/node_modules/core-js/fn/array/reduce-right.js +2 -0
- data/node_modules/core-js/fn/array/reduce.js +2 -0
- data/node_modules/core-js/fn/array/reverse.js +4 -0
- data/node_modules/core-js/fn/array/shift.js +4 -0
- data/node_modules/core-js/fn/array/slice.js +2 -0
- data/node_modules/core-js/fn/array/some.js +2 -0
- data/node_modules/core-js/fn/array/sort.js +2 -0
- data/node_modules/core-js/fn/array/splice.js +4 -0
- data/node_modules/core-js/fn/array/unshift.js +4 -0
- data/node_modules/core-js/fn/array/values.js +2 -0
- data/node_modules/core-js/fn/array/virtual/copy-within.js +2 -0
- data/node_modules/core-js/fn/array/virtual/entries.js +2 -0
- data/node_modules/core-js/fn/array/virtual/every.js +2 -0
- data/node_modules/core-js/fn/array/virtual/fill.js +2 -0
- data/node_modules/core-js/fn/array/virtual/filter.js +2 -0
- data/node_modules/core-js/fn/array/virtual/find-index.js +2 -0
- data/node_modules/core-js/fn/array/virtual/find.js +2 -0
- data/node_modules/core-js/fn/array/virtual/flat-map.js +2 -0
- data/node_modules/core-js/fn/array/virtual/flatten.js +2 -0
- data/node_modules/core-js/fn/array/virtual/for-each.js +2 -0
- data/node_modules/core-js/fn/array/virtual/includes.js +2 -0
- data/node_modules/core-js/fn/array/virtual/index-of.js +2 -0
- data/node_modules/core-js/fn/array/virtual/index.js +20 -0
- data/node_modules/core-js/fn/array/virtual/iterator.js +2 -0
- data/node_modules/core-js/fn/array/virtual/join.js +2 -0
- data/node_modules/core-js/fn/array/virtual/keys.js +2 -0
- data/node_modules/core-js/fn/array/virtual/last-index-of.js +2 -0
- data/node_modules/core-js/fn/array/virtual/map.js +2 -0
- data/node_modules/core-js/fn/array/virtual/reduce-right.js +2 -0
- data/node_modules/core-js/fn/array/virtual/reduce.js +2 -0
- data/node_modules/core-js/fn/array/virtual/slice.js +2 -0
- data/node_modules/core-js/fn/array/virtual/some.js +2 -0
- data/node_modules/core-js/fn/array/virtual/sort.js +2 -0
- data/node_modules/core-js/fn/array/virtual/values.js +2 -0
- data/node_modules/core-js/fn/asap.js +2 -0
- data/node_modules/core-js/fn/clear-immediate.js +2 -0
- data/node_modules/core-js/fn/date/index.js +6 -0
- data/node_modules/core-js/fn/date/now.js +2 -0
- data/node_modules/core-js/fn/date/to-iso-string.js +3 -0
- data/node_modules/core-js/fn/date/to-json.js +2 -0
- data/node_modules/core-js/fn/date/to-primitive.js +5 -0
- data/node_modules/core-js/fn/date/to-string.js +5 -0
- data/node_modules/core-js/fn/delay.js +2 -0
- data/node_modules/core-js/fn/dict.js +2 -0
- data/node_modules/core-js/fn/dom-collections/index.js +8 -0
- data/node_modules/core-js/fn/dom-collections/iterator.js +2 -0
- data/node_modules/core-js/fn/error/index.js +2 -0
- data/node_modules/core-js/fn/error/is-error.js +2 -0
- data/node_modules/core-js/fn/function/bind.js +2 -0
- data/node_modules/core-js/fn/function/has-instance.js +2 -0
- data/node_modules/core-js/fn/function/index.js +5 -0
- data/node_modules/core-js/fn/function/name.js +1 -0
- data/node_modules/core-js/fn/function/part.js +2 -0
- data/node_modules/core-js/fn/function/virtual/bind.js +2 -0
- data/node_modules/core-js/fn/function/virtual/index.js +3 -0
- data/node_modules/core-js/fn/function/virtual/part.js +2 -0
- data/node_modules/core-js/fn/get-iterator-method.js +3 -0
- data/node_modules/core-js/fn/get-iterator.js +3 -0
- data/node_modules/core-js/fn/global.js +2 -0
- data/node_modules/core-js/fn/is-iterable.js +3 -0
- data/node_modules/core-js/fn/json/index.js +2 -0
- data/node_modules/core-js/fn/json/stringify.js +5 -0
- data/node_modules/core-js/fn/map/from.js +8 -0
- data/node_modules/core-js/fn/map/index.js +8 -0
- data/node_modules/core-js/fn/map/of.js +8 -0
- data/node_modules/core-js/fn/map.js +8 -0
- data/node_modules/core-js/fn/math/acosh.js +2 -0
- data/node_modules/core-js/fn/math/asinh.js +2 -0
- data/node_modules/core-js/fn/math/atanh.js +2 -0
- data/node_modules/core-js/fn/math/cbrt.js +2 -0
- data/node_modules/core-js/fn/math/clamp.js +2 -0
- data/node_modules/core-js/fn/math/clz32.js +2 -0
- data/node_modules/core-js/fn/math/cosh.js +2 -0
- data/node_modules/core-js/fn/math/deg-per-rad.js +2 -0
- data/node_modules/core-js/fn/math/degrees.js +2 -0
- data/node_modules/core-js/fn/math/expm1.js +2 -0
- data/node_modules/core-js/fn/math/fround.js +2 -0
- data/node_modules/core-js/fn/math/fscale.js +2 -0
- data/node_modules/core-js/fn/math/hypot.js +2 -0
- data/node_modules/core-js/fn/math/iaddh.js +2 -0
- data/node_modules/core-js/fn/math/imul.js +2 -0
- data/node_modules/core-js/fn/math/imulh.js +2 -0
- data/node_modules/core-js/fn/math/index.js +30 -0
- data/node_modules/core-js/fn/math/isubh.js +2 -0
- data/node_modules/core-js/fn/math/log10.js +2 -0
- data/node_modules/core-js/fn/math/log1p.js +2 -0
- data/node_modules/core-js/fn/math/log2.js +2 -0
- data/node_modules/core-js/fn/math/rad-per-deg.js +2 -0
- data/node_modules/core-js/fn/math/radians.js +2 -0
- data/node_modules/core-js/fn/math/scale.js +2 -0
- data/node_modules/core-js/fn/math/sign.js +2 -0
- data/node_modules/core-js/fn/math/signbit.js +3 -0
- data/node_modules/core-js/fn/math/sinh.js +2 -0
- data/node_modules/core-js/fn/math/tanh.js +2 -0
- data/node_modules/core-js/fn/math/trunc.js +2 -0
- data/node_modules/core-js/fn/math/umulh.js +2 -0
- data/node_modules/core-js/fn/number/constructor.js +2 -0
- data/node_modules/core-js/fn/number/epsilon.js +2 -0
- data/node_modules/core-js/fn/number/index.js +14 -0
- data/node_modules/core-js/fn/number/is-finite.js +2 -0
- data/node_modules/core-js/fn/number/is-integer.js +2 -0
- data/node_modules/core-js/fn/number/is-nan.js +2 -0
- data/node_modules/core-js/fn/number/is-safe-integer.js +2 -0
- data/node_modules/core-js/fn/number/iterator.js +5 -0
- data/node_modules/core-js/fn/number/max-safe-integer.js +2 -0
- data/node_modules/core-js/fn/number/min-safe-integer.js +2 -0
- data/node_modules/core-js/fn/number/parse-float.js +2 -0
- data/node_modules/core-js/fn/number/parse-int.js +2 -0
- data/node_modules/core-js/fn/number/to-fixed.js +2 -0
- data/node_modules/core-js/fn/number/to-precision.js +2 -0
- data/node_modules/core-js/fn/number/virtual/index.js +4 -0
- data/node_modules/core-js/fn/number/virtual/iterator.js +2 -0
- data/node_modules/core-js/fn/number/virtual/to-fixed.js +2 -0
- data/node_modules/core-js/fn/number/virtual/to-precision.js +2 -0
- data/node_modules/core-js/fn/object/assign.js +2 -0
- data/node_modules/core-js/fn/object/classof.js +2 -0
- data/node_modules/core-js/fn/object/create.js +5 -0
- data/node_modules/core-js/fn/object/define-getter.js +2 -0
- data/node_modules/core-js/fn/object/define-properties.js +5 -0
- data/node_modules/core-js/fn/object/define-property.js +5 -0
- data/node_modules/core-js/fn/object/define-setter.js +2 -0
- data/node_modules/core-js/fn/object/define.js +2 -0
- data/node_modules/core-js/fn/object/entries.js +2 -0
- data/node_modules/core-js/fn/object/freeze.js +2 -0
- data/node_modules/core-js/fn/object/get-own-property-descriptor.js +5 -0
- data/node_modules/core-js/fn/object/get-own-property-descriptors.js +2 -0
- data/node_modules/core-js/fn/object/get-own-property-names.js +5 -0
- data/node_modules/core-js/fn/object/get-own-property-symbols.js +2 -0
- data/node_modules/core-js/fn/object/get-prototype-of.js +2 -0
- data/node_modules/core-js/fn/object/index.js +30 -0
- data/node_modules/core-js/fn/object/is-extensible.js +2 -0
- data/node_modules/core-js/fn/object/is-frozen.js +2 -0
- data/node_modules/core-js/fn/object/is-object.js +2 -0
- data/node_modules/core-js/fn/object/is-sealed.js +2 -0
- data/node_modules/core-js/fn/object/is.js +2 -0
- data/node_modules/core-js/fn/object/keys.js +2 -0
- data/node_modules/core-js/fn/object/lookup-getter.js +2 -0
- data/node_modules/core-js/fn/object/lookup-setter.js +2 -0
- data/node_modules/core-js/fn/object/make.js +2 -0
- data/node_modules/core-js/fn/object/prevent-extensions.js +2 -0
- data/node_modules/core-js/fn/object/seal.js +2 -0
- data/node_modules/core-js/fn/object/set-prototype-of.js +2 -0
- data/node_modules/core-js/fn/object/values.js +2 -0
- data/node_modules/core-js/fn/observable.js +7 -0
- data/node_modules/core-js/fn/parse-float.js +2 -0
- data/node_modules/core-js/fn/parse-int.js +2 -0
- data/node_modules/core-js/fn/promise/finally.js +4 -0
- data/node_modules/core-js/fn/promise/index.js +7 -0
- data/node_modules/core-js/fn/promise/try.js +8 -0
- data/node_modules/core-js/fn/promise.js +7 -0
- data/node_modules/core-js/fn/reflect/apply.js +2 -0
- data/node_modules/core-js/fn/reflect/construct.js +2 -0
- data/node_modules/core-js/fn/reflect/define-metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/define-property.js +2 -0
- data/node_modules/core-js/fn/reflect/delete-metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/delete-property.js +2 -0
- data/node_modules/core-js/fn/reflect/enumerate.js +2 -0
- data/node_modules/core-js/fn/reflect/get-metadata-keys.js +2 -0
- data/node_modules/core-js/fn/reflect/get-metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/get-own-metadata-keys.js +2 -0
- data/node_modules/core-js/fn/reflect/get-own-metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/get-own-property-descriptor.js +2 -0
- data/node_modules/core-js/fn/reflect/get-prototype-of.js +2 -0
- data/node_modules/core-js/fn/reflect/get.js +2 -0
- data/node_modules/core-js/fn/reflect/has-metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/has-own-metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/has.js +2 -0
- data/node_modules/core-js/fn/reflect/index.js +24 -0
- data/node_modules/core-js/fn/reflect/is-extensible.js +2 -0
- data/node_modules/core-js/fn/reflect/metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/own-keys.js +2 -0
- data/node_modules/core-js/fn/reflect/prevent-extensions.js +2 -0
- data/node_modules/core-js/fn/reflect/set-prototype-of.js +2 -0
- data/node_modules/core-js/fn/reflect/set.js +2 -0
- data/node_modules/core-js/fn/regexp/constructor.js +2 -0
- data/node_modules/core-js/fn/regexp/escape.js +2 -0
- data/node_modules/core-js/fn/regexp/flags.js +5 -0
- data/node_modules/core-js/fn/regexp/index.js +10 -0
- data/node_modules/core-js/fn/regexp/match.js +5 -0
- data/node_modules/core-js/fn/regexp/replace.js +5 -0
- data/node_modules/core-js/fn/regexp/search.js +5 -0
- data/node_modules/core-js/fn/regexp/split.js +5 -0
- data/node_modules/core-js/fn/regexp/to-string.js +5 -0
- data/node_modules/core-js/fn/set/from.js +8 -0
- data/node_modules/core-js/fn/set/index.js +8 -0
- data/node_modules/core-js/fn/set/of.js +8 -0
- data/node_modules/core-js/fn/set-immediate.js +2 -0
- data/node_modules/core-js/fn/set-interval.js +2 -0
- data/node_modules/core-js/fn/set-timeout.js +2 -0
- data/node_modules/core-js/fn/set.js +8 -0
- data/node_modules/core-js/fn/string/anchor.js +2 -0
- data/node_modules/core-js/fn/string/at.js +2 -0
- data/node_modules/core-js/fn/string/big.js +2 -0
- data/node_modules/core-js/fn/string/blink.js +2 -0
- data/node_modules/core-js/fn/string/bold.js +2 -0
- data/node_modules/core-js/fn/string/code-point-at.js +2 -0
- data/node_modules/core-js/fn/string/ends-with.js +2 -0
- data/node_modules/core-js/fn/string/escape-html.js +2 -0
- data/node_modules/core-js/fn/string/fixed.js +2 -0
- data/node_modules/core-js/fn/string/fontcolor.js +2 -0
- data/node_modules/core-js/fn/string/fontsize.js +2 -0
- data/node_modules/core-js/fn/string/from-code-point.js +2 -0
- data/node_modules/core-js/fn/string/includes.js +2 -0
- data/node_modules/core-js/fn/string/index.js +35 -0
- data/node_modules/core-js/fn/string/italics.js +2 -0
- data/node_modules/core-js/fn/string/iterator.js +5 -0
- data/node_modules/core-js/fn/string/link.js +2 -0
- data/node_modules/core-js/fn/string/match-all.js +2 -0
- data/node_modules/core-js/fn/string/pad-end.js +2 -0
- data/node_modules/core-js/fn/string/pad-start.js +2 -0
- data/node_modules/core-js/fn/string/raw.js +2 -0
- data/node_modules/core-js/fn/string/repeat.js +2 -0
- data/node_modules/core-js/fn/string/small.js +2 -0
- data/node_modules/core-js/fn/string/starts-with.js +2 -0
- data/node_modules/core-js/fn/string/strike.js +2 -0
- data/node_modules/core-js/fn/string/sub.js +2 -0
- data/node_modules/core-js/fn/string/sup.js +2 -0
- data/node_modules/core-js/fn/string/trim-end.js +2 -0
- data/node_modules/core-js/fn/string/trim-left.js +2 -0
- data/node_modules/core-js/fn/string/trim-right.js +2 -0
- data/node_modules/core-js/fn/string/trim-start.js +2 -0
- data/node_modules/core-js/fn/string/trim.js +2 -0
- data/node_modules/core-js/fn/string/unescape-html.js +2 -0
- data/node_modules/core-js/fn/string/virtual/anchor.js +2 -0
- data/node_modules/core-js/fn/string/virtual/at.js +2 -0
- data/node_modules/core-js/fn/string/virtual/big.js +2 -0
- data/node_modules/core-js/fn/string/virtual/blink.js +2 -0
- data/node_modules/core-js/fn/string/virtual/bold.js +2 -0
- data/node_modules/core-js/fn/string/virtual/code-point-at.js +2 -0
- data/node_modules/core-js/fn/string/virtual/ends-with.js +2 -0
- data/node_modules/core-js/fn/string/virtual/escape-html.js +2 -0
- data/node_modules/core-js/fn/string/virtual/fixed.js +2 -0
- data/node_modules/core-js/fn/string/virtual/fontcolor.js +2 -0
- data/node_modules/core-js/fn/string/virtual/fontsize.js +2 -0
- data/node_modules/core-js/fn/string/virtual/includes.js +2 -0
- data/node_modules/core-js/fn/string/virtual/index.js +33 -0
- data/node_modules/core-js/fn/string/virtual/italics.js +2 -0
- data/node_modules/core-js/fn/string/virtual/iterator.js +2 -0
- data/node_modules/core-js/fn/string/virtual/link.js +2 -0
- data/node_modules/core-js/fn/string/virtual/match-all.js +2 -0
- data/node_modules/core-js/fn/string/virtual/pad-end.js +2 -0
- data/node_modules/core-js/fn/string/virtual/pad-start.js +2 -0
- data/node_modules/core-js/fn/string/virtual/repeat.js +2 -0
- data/node_modules/core-js/fn/string/virtual/small.js +2 -0
- data/node_modules/core-js/fn/string/virtual/starts-with.js +2 -0
- data/node_modules/core-js/fn/string/virtual/strike.js +2 -0
- data/node_modules/core-js/fn/string/virtual/sub.js +2 -0
- data/node_modules/core-js/fn/string/virtual/sup.js +2 -0
- data/node_modules/core-js/fn/string/virtual/trim-end.js +2 -0
- data/node_modules/core-js/fn/string/virtual/trim-left.js +2 -0
- data/node_modules/core-js/fn/string/virtual/trim-right.js +2 -0
- data/node_modules/core-js/fn/string/virtual/trim-start.js +2 -0
- data/node_modules/core-js/fn/string/virtual/trim.js +2 -0
- data/node_modules/core-js/fn/string/virtual/unescape-html.js +2 -0
- data/node_modules/core-js/fn/symbol/async-iterator.js +2 -0
- data/node_modules/core-js/fn/symbol/for.js +2 -0
- data/node_modules/core-js/fn/symbol/has-instance.js +2 -0
- data/node_modules/core-js/fn/symbol/index.js +5 -0
- data/node_modules/core-js/fn/symbol/is-concat-spreadable.js +1 -0
- data/node_modules/core-js/fn/symbol/iterator.js +3 -0
- data/node_modules/core-js/fn/symbol/key-for.js +2 -0
- data/node_modules/core-js/fn/symbol/match.js +2 -0
- data/node_modules/core-js/fn/symbol/observable.js +2 -0
- data/node_modules/core-js/fn/symbol/replace.js +2 -0
- data/node_modules/core-js/fn/symbol/search.js +2 -0
- data/node_modules/core-js/fn/symbol/species.js +1 -0
- data/node_modules/core-js/fn/symbol/split.js +2 -0
- data/node_modules/core-js/fn/symbol/to-primitive.js +1 -0
- data/node_modules/core-js/fn/symbol/to-string-tag.js +2 -0
- data/node_modules/core-js/fn/symbol/unscopables.js +1 -0
- data/node_modules/core-js/fn/system/global.js +2 -0
- data/node_modules/core-js/fn/system/index.js +2 -0
- data/node_modules/core-js/fn/typed/array-buffer.js +3 -0
- data/node_modules/core-js/fn/typed/data-view.js +3 -0
- data/node_modules/core-js/fn/typed/float32-array.js +2 -0
- data/node_modules/core-js/fn/typed/float64-array.js +2 -0
- data/node_modules/core-js/fn/typed/index.js +13 -0
- data/node_modules/core-js/fn/typed/int16-array.js +2 -0
- data/node_modules/core-js/fn/typed/int32-array.js +2 -0
- data/node_modules/core-js/fn/typed/int8-array.js +2 -0
- data/node_modules/core-js/fn/typed/uint16-array.js +2 -0
- data/node_modules/core-js/fn/typed/uint32-array.js +2 -0
- data/node_modules/core-js/fn/typed/uint8-array.js +2 -0
- data/node_modules/core-js/fn/typed/uint8-clamped-array.js +2 -0
- data/node_modules/core-js/fn/weak-map/from.js +8 -0
- data/node_modules/core-js/fn/weak-map/index.js +6 -0
- data/node_modules/core-js/fn/weak-map/of.js +8 -0
- data/node_modules/core-js/fn/weak-map.js +6 -0
- data/node_modules/core-js/fn/weak-set/from.js +8 -0
- data/node_modules/core-js/fn/weak-set/index.js +6 -0
- data/node_modules/core-js/fn/weak-set/of.js +8 -0
- data/node_modules/core-js/fn/weak-set.js +6 -0
- data/node_modules/core-js/index.js +16 -0
- data/node_modules/core-js/library/core/_.js +2 -0
- data/node_modules/core-js/library/core/delay.js +2 -0
- data/node_modules/core-js/library/core/dict.js +2 -0
- data/node_modules/core-js/library/core/function.js +2 -0
- data/node_modules/core-js/library/core/index.js +15 -0
- data/node_modules/core-js/library/core/number.js +2 -0
- data/node_modules/core-js/library/core/object.js +5 -0
- data/node_modules/core-js/library/core/regexp.js +2 -0
- data/node_modules/core-js/library/core/string.js +3 -0
- data/node_modules/core-js/library/es5/index.js +37 -0
- data/node_modules/core-js/library/es6/array.js +23 -0
- data/node_modules/core-js/library/es6/date.js +6 -0
- data/node_modules/core-js/library/es6/function.js +4 -0
- data/node_modules/core-js/library/es6/index.js +139 -0
- data/node_modules/core-js/library/es6/map.js +5 -0
- data/node_modules/core-js/library/es6/math.js +18 -0
- data/node_modules/core-js/library/es6/number.js +13 -0
- data/node_modules/core-js/library/es6/object.js +20 -0
- data/node_modules/core-js/library/es6/parse-float.js +2 -0
- data/node_modules/core-js/library/es6/parse-int.js +2 -0
- data/node_modules/core-js/library/es6/promise.js +5 -0
- data/node_modules/core-js/library/es6/reflect.js +15 -0
- data/node_modules/core-js/library/es6/regexp.js +9 -0
- data/node_modules/core-js/library/es6/set.js +5 -0
- data/node_modules/core-js/library/es6/string.js +27 -0
- data/node_modules/core-js/library/es6/symbol.js +3 -0
- data/node_modules/core-js/library/es6/typed.js +13 -0
- data/node_modules/core-js/library/es6/weak-map.js +4 -0
- data/node_modules/core-js/library/es6/weak-set.js +4 -0
- data/node_modules/core-js/library/es7/array.js +4 -0
- data/node_modules/core-js/library/es7/asap.js +2 -0
- data/node_modules/core-js/library/es7/error.js +2 -0
- data/node_modules/core-js/library/es7/global.js +2 -0
- data/node_modules/core-js/library/es7/index.js +56 -0
- data/node_modules/core-js/library/es7/map.js +4 -0
- data/node_modules/core-js/library/es7/math.js +13 -0
- data/node_modules/core-js/library/es7/object.js +8 -0
- data/node_modules/core-js/library/es7/observable.js +7 -0
- data/node_modules/core-js/library/es7/promise.js +3 -0
- data/node_modules/core-js/library/es7/reflect.js +10 -0
- data/node_modules/core-js/library/es7/set.js +4 -0
- data/node_modules/core-js/library/es7/string.js +7 -0
- data/node_modules/core-js/library/es7/symbol.js +3 -0
- data/node_modules/core-js/library/es7/system.js +2 -0
- data/node_modules/core-js/library/es7/weak-map.js +3 -0
- data/node_modules/core-js/library/es7/weak-set.js +3 -0
- data/node_modules/core-js/library/fn/_.js +2 -0
- data/node_modules/core-js/library/fn/array/concat.js +4 -0
- data/node_modules/core-js/library/fn/array/copy-within.js +2 -0
- data/node_modules/core-js/library/fn/array/entries.js +2 -0
- data/node_modules/core-js/library/fn/array/every.js +2 -0
- data/node_modules/core-js/library/fn/array/fill.js +2 -0
- data/node_modules/core-js/library/fn/array/filter.js +2 -0
- data/node_modules/core-js/library/fn/array/find-index.js +2 -0
- data/node_modules/core-js/library/fn/array/find.js +2 -0
- data/node_modules/core-js/library/fn/array/flat-map.js +2 -0
- data/node_modules/core-js/library/fn/array/flatten.js +2 -0
- data/node_modules/core-js/library/fn/array/for-each.js +2 -0
- data/node_modules/core-js/library/fn/array/from.js +3 -0
- data/node_modules/core-js/library/fn/array/includes.js +2 -0
- data/node_modules/core-js/library/fn/array/index-of.js +2 -0
- data/node_modules/core-js/library/fn/array/index.js +26 -0
- data/node_modules/core-js/library/fn/array/is-array.js +2 -0
- data/node_modules/core-js/library/fn/array/iterator.js +2 -0
- data/node_modules/core-js/library/fn/array/join.js +2 -0
- data/node_modules/core-js/library/fn/array/keys.js +2 -0
- data/node_modules/core-js/library/fn/array/last-index-of.js +2 -0
- data/node_modules/core-js/library/fn/array/map.js +2 -0
- data/node_modules/core-js/library/fn/array/of.js +2 -0
- data/node_modules/core-js/library/fn/array/pop.js +4 -0
- data/node_modules/core-js/library/fn/array/push.js +4 -0
- data/node_modules/core-js/library/fn/array/reduce-right.js +2 -0
- data/node_modules/core-js/library/fn/array/reduce.js +2 -0
- data/node_modules/core-js/library/fn/array/reverse.js +4 -0
- data/node_modules/core-js/library/fn/array/shift.js +4 -0
- data/node_modules/core-js/library/fn/array/slice.js +2 -0
- data/node_modules/core-js/library/fn/array/some.js +2 -0
- data/node_modules/core-js/library/fn/array/sort.js +2 -0
- data/node_modules/core-js/library/fn/array/splice.js +4 -0
- data/node_modules/core-js/library/fn/array/unshift.js +4 -0
- data/node_modules/core-js/library/fn/array/values.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/copy-within.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/entries.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/every.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/fill.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/filter.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/find-index.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/find.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/flat-map.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/flatten.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/for-each.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/includes.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/index-of.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/index.js +20 -0
- data/node_modules/core-js/library/fn/array/virtual/iterator.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/join.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/keys.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/last-index-of.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/map.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/reduce-right.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/reduce.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/slice.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/some.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/sort.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/values.js +2 -0
- data/node_modules/core-js/library/fn/asap.js +2 -0
- data/node_modules/core-js/library/fn/clear-immediate.js +2 -0
- data/node_modules/core-js/library/fn/date/index.js +6 -0
- data/node_modules/core-js/library/fn/date/now.js +2 -0
- data/node_modules/core-js/library/fn/date/to-iso-string.js +3 -0
- data/node_modules/core-js/library/fn/date/to-json.js +2 -0
- data/node_modules/core-js/library/fn/date/to-primitive.js +5 -0
- data/node_modules/core-js/library/fn/date/to-string.js +5 -0
- data/node_modules/core-js/library/fn/delay.js +2 -0
- data/node_modules/core-js/library/fn/dict.js +2 -0
- data/node_modules/core-js/library/fn/dom-collections/index.js +8 -0
- data/node_modules/core-js/library/fn/dom-collections/iterator.js +2 -0
- data/node_modules/core-js/library/fn/error/index.js +2 -0
- data/node_modules/core-js/library/fn/error/is-error.js +2 -0
- data/node_modules/core-js/library/fn/function/bind.js +2 -0
- data/node_modules/core-js/library/fn/function/has-instance.js +2 -0
- data/node_modules/core-js/library/fn/function/index.js +5 -0
- data/node_modules/core-js/library/fn/function/name.js +1 -0
- data/node_modules/core-js/library/fn/function/part.js +2 -0
- data/node_modules/core-js/library/fn/function/virtual/bind.js +2 -0
- data/node_modules/core-js/library/fn/function/virtual/index.js +3 -0
- data/node_modules/core-js/library/fn/function/virtual/part.js +2 -0
- data/node_modules/core-js/library/fn/get-iterator-method.js +3 -0
- data/node_modules/core-js/library/fn/get-iterator.js +3 -0
- data/node_modules/core-js/library/fn/global.js +2 -0
- data/node_modules/core-js/library/fn/is-iterable.js +3 -0
- data/node_modules/core-js/library/fn/json/index.js +2 -0
- data/node_modules/core-js/library/fn/json/stringify.js +5 -0
- data/node_modules/core-js/library/fn/map/from.js +8 -0
- data/node_modules/core-js/library/fn/map/index.js +8 -0
- data/node_modules/core-js/library/fn/map/of.js +8 -0
- data/node_modules/core-js/library/fn/map.js +8 -0
- data/node_modules/core-js/library/fn/math/acosh.js +2 -0
- data/node_modules/core-js/library/fn/math/asinh.js +2 -0
- data/node_modules/core-js/library/fn/math/atanh.js +2 -0
- data/node_modules/core-js/library/fn/math/cbrt.js +2 -0
- data/node_modules/core-js/library/fn/math/clamp.js +2 -0
- data/node_modules/core-js/library/fn/math/clz32.js +2 -0
- data/node_modules/core-js/library/fn/math/cosh.js +2 -0
- data/node_modules/core-js/library/fn/math/deg-per-rad.js +2 -0
- data/node_modules/core-js/library/fn/math/degrees.js +2 -0
- data/node_modules/core-js/library/fn/math/expm1.js +2 -0
- data/node_modules/core-js/library/fn/math/fround.js +2 -0
- data/node_modules/core-js/library/fn/math/fscale.js +2 -0
- data/node_modules/core-js/library/fn/math/hypot.js +2 -0
- data/node_modules/core-js/library/fn/math/iaddh.js +2 -0
- data/node_modules/core-js/library/fn/math/imul.js +2 -0
- data/node_modules/core-js/library/fn/math/imulh.js +2 -0
- data/node_modules/core-js/library/fn/math/index.js +30 -0
- data/node_modules/core-js/library/fn/math/isubh.js +2 -0
- data/node_modules/core-js/library/fn/math/log10.js +2 -0
- data/node_modules/core-js/library/fn/math/log1p.js +2 -0
- data/node_modules/core-js/library/fn/math/log2.js +2 -0
- data/node_modules/core-js/library/fn/math/rad-per-deg.js +2 -0
- data/node_modules/core-js/library/fn/math/radians.js +2 -0
- data/node_modules/core-js/library/fn/math/scale.js +2 -0
- data/node_modules/core-js/library/fn/math/sign.js +2 -0
- data/node_modules/core-js/library/fn/math/signbit.js +3 -0
- data/node_modules/core-js/library/fn/math/sinh.js +2 -0
- data/node_modules/core-js/library/fn/math/tanh.js +2 -0
- data/node_modules/core-js/library/fn/math/trunc.js +2 -0
- data/node_modules/core-js/library/fn/math/umulh.js +2 -0
- data/node_modules/core-js/library/fn/number/constructor.js +2 -0
- data/node_modules/core-js/library/fn/number/epsilon.js +2 -0
- data/node_modules/core-js/library/fn/number/index.js +14 -0
- data/node_modules/core-js/library/fn/number/is-finite.js +2 -0
- data/node_modules/core-js/library/fn/number/is-integer.js +2 -0
- data/node_modules/core-js/library/fn/number/is-nan.js +2 -0
- data/node_modules/core-js/library/fn/number/is-safe-integer.js +2 -0
- data/node_modules/core-js/library/fn/number/iterator.js +5 -0
- data/node_modules/core-js/library/fn/number/max-safe-integer.js +2 -0
- data/node_modules/core-js/library/fn/number/min-safe-integer.js +2 -0
- data/node_modules/core-js/library/fn/number/parse-float.js +2 -0
- data/node_modules/core-js/library/fn/number/parse-int.js +2 -0
- data/node_modules/core-js/library/fn/number/to-fixed.js +2 -0
- data/node_modules/core-js/library/fn/number/to-precision.js +2 -0
- data/node_modules/core-js/library/fn/number/virtual/index.js +4 -0
- data/node_modules/core-js/library/fn/number/virtual/iterator.js +2 -0
- data/node_modules/core-js/library/fn/number/virtual/to-fixed.js +2 -0
- data/node_modules/core-js/library/fn/number/virtual/to-precision.js +2 -0
- data/node_modules/core-js/library/fn/object/assign.js +2 -0
- data/node_modules/core-js/library/fn/object/classof.js +2 -0
- data/node_modules/core-js/library/fn/object/create.js +5 -0
- data/node_modules/core-js/library/fn/object/define-getter.js +2 -0
- data/node_modules/core-js/library/fn/object/define-properties.js +5 -0
- data/node_modules/core-js/library/fn/object/define-property.js +5 -0
- data/node_modules/core-js/library/fn/object/define-setter.js +2 -0
- data/node_modules/core-js/library/fn/object/define.js +2 -0
- data/node_modules/core-js/library/fn/object/entries.js +2 -0
- data/node_modules/core-js/library/fn/object/freeze.js +2 -0
- data/node_modules/core-js/library/fn/object/get-own-property-descriptor.js +5 -0
- data/node_modules/core-js/library/fn/object/get-own-property-descriptors.js +2 -0
- data/node_modules/core-js/library/fn/object/get-own-property-names.js +5 -0
- data/node_modules/core-js/library/fn/object/get-own-property-symbols.js +2 -0
- data/node_modules/core-js/library/fn/object/get-prototype-of.js +2 -0
- data/node_modules/core-js/library/fn/object/index.js +30 -0
- data/node_modules/core-js/library/fn/object/is-extensible.js +2 -0
- data/node_modules/core-js/library/fn/object/is-frozen.js +2 -0
- data/node_modules/core-js/library/fn/object/is-object.js +2 -0
- data/node_modules/core-js/library/fn/object/is-sealed.js +2 -0
- data/node_modules/core-js/library/fn/object/is.js +2 -0
- data/node_modules/core-js/library/fn/object/keys.js +2 -0
- data/node_modules/core-js/library/fn/object/lookup-getter.js +2 -0
- data/node_modules/core-js/library/fn/object/lookup-setter.js +2 -0
- data/node_modules/core-js/library/fn/object/make.js +2 -0
- data/node_modules/core-js/library/fn/object/prevent-extensions.js +2 -0
- data/node_modules/core-js/library/fn/object/seal.js +2 -0
- data/node_modules/core-js/library/fn/object/set-prototype-of.js +2 -0
- data/node_modules/core-js/library/fn/object/values.js +2 -0
- data/node_modules/core-js/library/fn/observable.js +7 -0
- data/node_modules/core-js/library/fn/parse-float.js +2 -0
- data/node_modules/core-js/library/fn/parse-int.js +2 -0
- data/node_modules/core-js/library/fn/promise/finally.js +4 -0
- data/node_modules/core-js/library/fn/promise/index.js +7 -0
- data/node_modules/core-js/library/fn/promise/try.js +8 -0
- data/node_modules/core-js/library/fn/promise.js +7 -0
- data/node_modules/core-js/library/fn/reflect/apply.js +2 -0
- data/node_modules/core-js/library/fn/reflect/construct.js +2 -0
- data/node_modules/core-js/library/fn/reflect/define-metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/define-property.js +2 -0
- data/node_modules/core-js/library/fn/reflect/delete-metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/delete-property.js +2 -0
- data/node_modules/core-js/library/fn/reflect/enumerate.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get-metadata-keys.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get-metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get-own-metadata-keys.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get-own-metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get-own-property-descriptor.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get-prototype-of.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get.js +2 -0
- data/node_modules/core-js/library/fn/reflect/has-metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/has-own-metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/has.js +2 -0
- data/node_modules/core-js/library/fn/reflect/index.js +24 -0
- data/node_modules/core-js/library/fn/reflect/is-extensible.js +2 -0
- data/node_modules/core-js/library/fn/reflect/metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/own-keys.js +2 -0
- data/node_modules/core-js/library/fn/reflect/prevent-extensions.js +2 -0
- data/node_modules/core-js/library/fn/reflect/set-prototype-of.js +2 -0
- data/node_modules/core-js/library/fn/reflect/set.js +2 -0
- data/node_modules/core-js/library/fn/regexp/constructor.js +2 -0
- data/node_modules/core-js/library/fn/regexp/escape.js +2 -0
- data/node_modules/core-js/library/fn/regexp/flags.js +5 -0
- data/node_modules/core-js/library/fn/regexp/index.js +10 -0
- data/node_modules/core-js/library/fn/regexp/match.js +5 -0
- data/node_modules/core-js/library/fn/regexp/replace.js +5 -0
- data/node_modules/core-js/library/fn/regexp/search.js +5 -0
- data/node_modules/core-js/library/fn/regexp/split.js +5 -0
- data/node_modules/core-js/library/fn/regexp/to-string.js +5 -0
- data/node_modules/core-js/library/fn/set/from.js +8 -0
- data/node_modules/core-js/library/fn/set/index.js +8 -0
- data/node_modules/core-js/library/fn/set/of.js +8 -0
- data/node_modules/core-js/library/fn/set-immediate.js +2 -0
- data/node_modules/core-js/library/fn/set-interval.js +2 -0
- data/node_modules/core-js/library/fn/set-timeout.js +2 -0
- data/node_modules/core-js/library/fn/set.js +8 -0
- data/node_modules/core-js/library/fn/string/anchor.js +2 -0
- data/node_modules/core-js/library/fn/string/at.js +2 -0
- data/node_modules/core-js/library/fn/string/big.js +2 -0
- data/node_modules/core-js/library/fn/string/blink.js +2 -0
- data/node_modules/core-js/library/fn/string/bold.js +2 -0
- data/node_modules/core-js/library/fn/string/code-point-at.js +2 -0
- data/node_modules/core-js/library/fn/string/ends-with.js +2 -0
- data/node_modules/core-js/library/fn/string/escape-html.js +2 -0
- data/node_modules/core-js/library/fn/string/fixed.js +2 -0
- data/node_modules/core-js/library/fn/string/fontcolor.js +2 -0
- data/node_modules/core-js/library/fn/string/fontsize.js +2 -0
- data/node_modules/core-js/library/fn/string/from-code-point.js +2 -0
- data/node_modules/core-js/library/fn/string/includes.js +2 -0
- data/node_modules/core-js/library/fn/string/index.js +35 -0
- data/node_modules/core-js/library/fn/string/italics.js +2 -0
- data/node_modules/core-js/library/fn/string/iterator.js +5 -0
- data/node_modules/core-js/library/fn/string/link.js +2 -0
- data/node_modules/core-js/library/fn/string/match-all.js +2 -0
- data/node_modules/core-js/library/fn/string/pad-end.js +2 -0
- data/node_modules/core-js/library/fn/string/pad-start.js +2 -0
- data/node_modules/core-js/library/fn/string/raw.js +2 -0
- data/node_modules/core-js/library/fn/string/repeat.js +2 -0
- data/node_modules/core-js/library/fn/string/small.js +2 -0
- data/node_modules/core-js/library/fn/string/starts-with.js +2 -0
- data/node_modules/core-js/library/fn/string/strike.js +2 -0
- data/node_modules/core-js/library/fn/string/sub.js +2 -0
- data/node_modules/core-js/library/fn/string/sup.js +2 -0
- data/node_modules/core-js/library/fn/string/trim-end.js +2 -0
- data/node_modules/core-js/library/fn/string/trim-left.js +2 -0
- data/node_modules/core-js/library/fn/string/trim-right.js +2 -0
- data/node_modules/core-js/library/fn/string/trim-start.js +2 -0
- data/node_modules/core-js/library/fn/string/trim.js +2 -0
- data/node_modules/core-js/library/fn/string/unescape-html.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/anchor.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/at.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/big.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/blink.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/bold.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/code-point-at.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/ends-with.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/escape-html.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/fixed.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/fontcolor.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/fontsize.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/includes.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/index.js +33 -0
- data/node_modules/core-js/library/fn/string/virtual/italics.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/iterator.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/link.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/match-all.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/pad-end.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/pad-start.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/repeat.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/small.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/starts-with.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/strike.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/sub.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/sup.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/trim-end.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/trim-left.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/trim-right.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/trim-start.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/trim.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/unescape-html.js +2 -0
- data/node_modules/core-js/library/fn/symbol/async-iterator.js +2 -0
- data/node_modules/core-js/library/fn/symbol/for.js +2 -0
- data/node_modules/core-js/library/fn/symbol/has-instance.js +2 -0
- data/node_modules/core-js/library/fn/symbol/index.js +5 -0
- data/node_modules/core-js/library/fn/symbol/is-concat-spreadable.js +1 -0
- data/node_modules/core-js/library/fn/symbol/iterator.js +3 -0
- data/node_modules/core-js/library/fn/symbol/key-for.js +2 -0
- data/node_modules/core-js/library/fn/symbol/match.js +2 -0
- data/node_modules/core-js/library/fn/symbol/observable.js +2 -0
- data/node_modules/core-js/library/fn/symbol/replace.js +2 -0
- data/node_modules/core-js/library/fn/symbol/search.js +2 -0
- data/node_modules/core-js/library/fn/symbol/species.js +1 -0
- data/node_modules/core-js/library/fn/symbol/split.js +2 -0
- data/node_modules/core-js/library/fn/symbol/to-primitive.js +1 -0
- data/node_modules/core-js/library/fn/symbol/to-string-tag.js +2 -0
- data/node_modules/core-js/library/fn/symbol/unscopables.js +1 -0
- data/node_modules/core-js/library/fn/system/global.js +2 -0
- data/node_modules/core-js/library/fn/system/index.js +2 -0
- data/node_modules/core-js/library/fn/typed/array-buffer.js +3 -0
- data/node_modules/core-js/library/fn/typed/data-view.js +3 -0
- data/node_modules/core-js/library/fn/typed/float32-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/float64-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/index.js +13 -0
- data/node_modules/core-js/library/fn/typed/int16-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/int32-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/int8-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/uint16-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/uint32-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/uint8-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/uint8-clamped-array.js +2 -0
- data/node_modules/core-js/library/fn/weak-map/from.js +8 -0
- data/node_modules/core-js/library/fn/weak-map/index.js +6 -0
- data/node_modules/core-js/library/fn/weak-map/of.js +8 -0
- data/node_modules/core-js/library/fn/weak-map.js +6 -0
- data/node_modules/core-js/library/fn/weak-set/from.js +8 -0
- data/node_modules/core-js/library/fn/weak-set/index.js +6 -0
- data/node_modules/core-js/library/fn/weak-set/of.js +8 -0
- data/node_modules/core-js/library/fn/weak-set.js +6 -0
- data/node_modules/core-js/library/index.js +16 -0
- data/node_modules/core-js/library/modules/_a-function.js +4 -0
- data/node_modules/core-js/library/modules/_a-number-value.js +5 -0
- data/node_modules/core-js/library/modules/_add-to-unscopables.js +1 -0
- data/node_modules/core-js/library/modules/_advance-string-index.js +8 -0
- data/node_modules/core-js/library/modules/_an-instance.js +5 -0
- data/node_modules/core-js/library/modules/_an-object.js +5 -0
- data/node_modules/core-js/library/modules/_array-copy-within.js +26 -0
- data/node_modules/core-js/library/modules/_array-fill.js +15 -0
- data/node_modules/core-js/library/modules/_array-from-iterable.js +7 -0
- data/node_modules/core-js/library/modules/_array-includes.js +23 -0
- data/node_modules/core-js/library/modules/_array-methods.js +44 -0
- data/node_modules/core-js/library/modules/_array-reduce.js +28 -0
- data/node_modules/core-js/library/modules/_array-species-constructor.js +16 -0
- data/node_modules/core-js/library/modules/_array-species-create.js +6 -0
- data/node_modules/core-js/library/modules/_bind.js +25 -0
- data/node_modules/core-js/library/modules/_classof.js +23 -0
- data/node_modules/core-js/library/modules/_cof.js +5 -0
- data/node_modules/core-js/library/modules/_collection-strong.js +144 -0
- data/node_modules/core-js/library/modules/_collection-to-json.js +9 -0
- data/node_modules/core-js/library/modules/_collection-weak.js +85 -0
- data/node_modules/core-js/library/modules/_collection.js +59 -0
- data/node_modules/core-js/library/modules/_core.js +2 -0
- data/node_modules/core-js/library/modules/_create-property.js +8 -0
- data/node_modules/core-js/library/modules/_ctx.js +20 -0
- data/node_modules/core-js/library/modules/_date-to-iso-string.js +26 -0
- data/node_modules/core-js/library/modules/_date-to-primitive.js +9 -0
- data/node_modules/core-js/library/modules/_defined.js +5 -0
- data/node_modules/core-js/library/modules/_descriptors.js +4 -0
- data/node_modules/core-js/library/modules/_dom-create.js +7 -0
- data/node_modules/core-js/library/modules/_entry-virtual.js +5 -0
- data/node_modules/core-js/library/modules/_enum-bug-keys.js +4 -0
- data/node_modules/core-js/library/modules/_enum-keys.js +15 -0
- data/node_modules/core-js/library/modules/_export.js +62 -0
- data/node_modules/core-js/library/modules/_fails-is-regexp.js +12 -0
- data/node_modules/core-js/library/modules/_fails.js +7 -0
- data/node_modules/core-js/library/modules/_fix-re-wks.js +96 -0
- data/node_modules/core-js/library/modules/_flags.js +13 -0
- data/node_modules/core-js/library/modules/_flatten-into-array.js +39 -0
- data/node_modules/core-js/library/modules/_for-of.js +25 -0
- data/node_modules/core-js/library/modules/_function-to-string.js +1 -0
- data/node_modules/core-js/library/modules/_global.js +6 -0
- data/node_modules/core-js/library/modules/_has.js +4 -0
- data/node_modules/core-js/library/modules/_hide.js +8 -0
- data/node_modules/core-js/library/modules/_html.js +2 -0
- data/node_modules/core-js/library/modules/_ie8-dom-define.js +3 -0
- data/node_modules/core-js/library/modules/_inherit-if-required.js +9 -0
- data/node_modules/core-js/library/modules/_invoke.js +16 -0
- data/node_modules/core-js/library/modules/_iobject.js +6 -0
- data/node_modules/core-js/library/modules/_is-array-iter.js +8 -0
- data/node_modules/core-js/library/modules/_is-array.js +5 -0
- data/node_modules/core-js/library/modules/_is-integer.js +6 -0
- data/node_modules/core-js/library/modules/_is-object.js +3 -0
- data/node_modules/core-js/library/modules/_is-regexp.js +8 -0
- data/node_modules/core-js/library/modules/_iter-call.js +12 -0
- data/node_modules/core-js/library/modules/_iter-create.js +13 -0
- data/node_modules/core-js/library/modules/_iter-define.js +69 -0
- data/node_modules/core-js/library/modules/_iter-detect.js +22 -0
- data/node_modules/core-js/library/modules/_iter-step.js +3 -0
- data/node_modules/core-js/library/modules/_iterators.js +1 -0
- data/node_modules/core-js/library/modules/_keyof.js +10 -0
- data/node_modules/core-js/library/modules/_library.js +1 -0
- data/node_modules/core-js/library/modules/_math-expm1.js +10 -0
- data/node_modules/core-js/library/modules/_math-fround.js +23 -0
- data/node_modules/core-js/library/modules/_math-log1p.js +4 -0
- data/node_modules/core-js/library/modules/_math-scale.js +18 -0
- data/node_modules/core-js/library/modules/_math-sign.js +5 -0
- data/node_modules/core-js/library/modules/_meta.js +53 -0
- data/node_modules/core-js/library/modules/_metadata.js +51 -0
- data/node_modules/core-js/library/modules/_microtask.js +69 -0
- data/node_modules/core-js/library/modules/_native-weak-map.js +4 -0
- data/node_modules/core-js/library/modules/_new-promise-capability.js +18 -0
- data/node_modules/core-js/library/modules/_object-assign.js +38 -0
- data/node_modules/core-js/library/modules/_object-create.js +41 -0
- data/node_modules/core-js/library/modules/_object-define.js +13 -0
- data/node_modules/core-js/library/modules/_object-dp.js +16 -0
- data/node_modules/core-js/library/modules/_object-dps.js +13 -0
- data/node_modules/core-js/library/modules/_object-forced-pam.js +9 -0
- data/node_modules/core-js/library/modules/_object-gopd.js +16 -0
- data/node_modules/core-js/library/modules/_object-gopn-ext.js +19 -0
- data/node_modules/core-js/library/modules/_object-gopn.js +7 -0
- data/node_modules/core-js/library/modules/_object-gops.js +1 -0
- data/node_modules/core-js/library/modules/_object-gpo.js +13 -0
- data/node_modules/core-js/library/modules/_object-keys-internal.js +17 -0
- data/node_modules/core-js/library/modules/_object-keys.js +7 -0
- data/node_modules/core-js/library/modules/_object-pie.js +1 -0
- data/node_modules/core-js/library/modules/_object-sap.js +10 -0
- data/node_modules/core-js/library/modules/_object-to-array.js +21 -0
- data/node_modules/core-js/library/modules/_own-keys.js +10 -0
- data/node_modules/core-js/library/modules/_parse-float.js +8 -0
- data/node_modules/core-js/library/modules/_parse-int.js +9 -0
- data/node_modules/core-js/library/modules/_partial.js +25 -0
- data/node_modules/core-js/library/modules/_path.js +1 -0
- data/node_modules/core-js/library/modules/_perform.js +7 -0
- data/node_modules/core-js/library/modules/_promise-resolve.js +12 -0
- data/node_modules/core-js/library/modules/_property-desc.js +8 -0
- data/node_modules/core-js/library/modules/_redefine-all.js +7 -0
- data/node_modules/core-js/library/modules/_redefine.js +1 -0
- data/node_modules/core-js/library/modules/_regexp-exec-abstract.js +1 -0
- data/node_modules/core-js/library/modules/_regexp-exec.js +1 -0
- data/node_modules/core-js/library/modules/_replacer.js +8 -0
- data/node_modules/core-js/library/modules/_same-value.js +5 -0
- data/node_modules/core-js/library/modules/_set-collection-from.js +28 -0
- data/node_modules/core-js/library/modules/_set-collection-of.js +12 -0
- data/node_modules/core-js/library/modules/_set-proto.js +25 -0
- data/node_modules/core-js/library/modules/_set-species.js +14 -0
- data/node_modules/core-js/library/modules/_set-to-string-tag.js +7 -0
- data/node_modules/core-js/library/modules/_shared-key.js +5 -0
- data/node_modules/core-js/library/modules/_shared.js +12 -0
- data/node_modules/core-js/library/modules/_species-constructor.js +9 -0
- data/node_modules/core-js/library/modules/_strict-method.js +9 -0
- data/node_modules/core-js/library/modules/_string-at.js +17 -0
- data/node_modules/core-js/library/modules/_string-context.js +8 -0
- data/node_modules/core-js/library/modules/_string-html.js +19 -0
- data/node_modules/core-js/library/modules/_string-pad.js +16 -0
- data/node_modules/core-js/library/modules/_string-repeat.js +12 -0
- data/node_modules/core-js/library/modules/_string-trim.js +30 -0
- data/node_modules/core-js/library/modules/_string-ws.js +2 -0
- data/node_modules/core-js/library/modules/_task.js +84 -0
- data/node_modules/core-js/library/modules/_to-absolute-index.js +7 -0
- data/node_modules/core-js/library/modules/_to-index.js +10 -0
- data/node_modules/core-js/library/modules/_to-integer.js +6 -0
- data/node_modules/core-js/library/modules/_to-iobject.js +6 -0
- data/node_modules/core-js/library/modules/_to-length.js +6 -0
- data/node_modules/core-js/library/modules/_to-object.js +5 -0
- data/node_modules/core-js/library/modules/_to-primitive.js +12 -0
- data/node_modules/core-js/library/modules/_typed-array.js +480 -0
- data/node_modules/core-js/library/modules/_typed-buffer.js +276 -0
- data/node_modules/core-js/library/modules/_typed.js +28 -0
- data/node_modules/core-js/library/modules/_uid.js +5 -0
- data/node_modules/core-js/library/modules/_user-agent.js +4 -0
- data/node_modules/core-js/library/modules/_validate-collection.js +5 -0
- data/node_modules/core-js/library/modules/_wks-define.js +9 -0
- data/node_modules/core-js/library/modules/_wks-ext.js +1 -0
- data/node_modules/core-js/library/modules/_wks.js +11 -0
- data/node_modules/core-js/library/modules/core.delay.js +12 -0
- data/node_modules/core-js/library/modules/core.dict.js +157 -0
- data/node_modules/core-js/library/modules/core.function.part.js +7 -0
- data/node_modules/core-js/library/modules/core.get-iterator-method.js +8 -0
- data/node_modules/core-js/library/modules/core.get-iterator.js +7 -0
- data/node_modules/core-js/library/modules/core.is-iterable.js +10 -0
- data/node_modules/core-js/library/modules/core.number.iterator.js +9 -0
- data/node_modules/core-js/library/modules/core.object.classof.js +3 -0
- data/node_modules/core-js/library/modules/core.object.define.js +4 -0
- data/node_modules/core-js/library/modules/core.object.is-object.js +3 -0
- data/node_modules/core-js/library/modules/core.object.make.js +9 -0
- data/node_modules/core-js/library/modules/core.regexp.escape.js +5 -0
- data/node_modules/core-js/library/modules/core.string.escape-html.js +11 -0
- data/node_modules/core-js/library/modules/core.string.unescape-html.js +11 -0
- data/node_modules/core-js/library/modules/es5.js +35 -0
- data/node_modules/core-js/library/modules/es6.array.copy-within.js +6 -0
- data/node_modules/core-js/library/modules/es6.array.every.js +10 -0
- data/node_modules/core-js/library/modules/es6.array.fill.js +6 -0
- data/node_modules/core-js/library/modules/es6.array.filter.js +10 -0
- data/node_modules/core-js/library/modules/es6.array.find-index.js +14 -0
- data/node_modules/core-js/library/modules/es6.array.find.js +14 -0
- data/node_modules/core-js/library/modules/es6.array.for-each.js +11 -0
- data/node_modules/core-js/library/modules/es6.array.from.js +37 -0
- data/node_modules/core-js/library/modules/es6.array.index-of.js +15 -0
- data/node_modules/core-js/library/modules/es6.array.is-array.js +4 -0
- data/node_modules/core-js/library/modules/es6.array.iterator.js +34 -0
- data/node_modules/core-js/library/modules/es6.array.join.js +12 -0
- data/node_modules/core-js/library/modules/es6.array.last-index-of.js +22 -0
- data/node_modules/core-js/library/modules/es6.array.map.js +10 -0
- data/node_modules/core-js/library/modules/es6.array.of.js +19 -0
- data/node_modules/core-js/library/modules/es6.array.reduce-right.js +10 -0
- data/node_modules/core-js/library/modules/es6.array.reduce.js +10 -0
- data/node_modules/core-js/library/modules/es6.array.slice.js +28 -0
- data/node_modules/core-js/library/modules/es6.array.some.js +10 -0
- data/node_modules/core-js/library/modules/es6.array.sort.js +23 -0
- data/node_modules/core-js/library/modules/es6.array.species.js +1 -0
- data/node_modules/core-js/library/modules/es6.date.now.js +4 -0
- data/node_modules/core-js/library/modules/es6.date.to-iso-string.js +8 -0
- data/node_modules/core-js/library/modules/es6.date.to-json.js +19 -0
- data/node_modules/core-js/library/modules/es6.date.to-primitive.js +0 -0
- data/node_modules/core-js/library/modules/es6.date.to-string.js +0 -0
- data/node_modules/core-js/library/modules/es6.function.bind.js +4 -0
- data/node_modules/core-js/library/modules/es6.function.has-instance.js +13 -0
- data/node_modules/core-js/library/modules/es6.function.name.js +0 -0
- data/node_modules/core-js/library/modules/es6.map.js +19 -0
- data/node_modules/core-js/library/modules/es6.math.acosh.js +18 -0
- data/node_modules/core-js/library/modules/es6.math.asinh.js +10 -0
- data/node_modules/core-js/library/modules/es6.math.atanh.js +10 -0
- data/node_modules/core-js/library/modules/es6.math.cbrt.js +9 -0
- data/node_modules/core-js/library/modules/es6.math.clz32.js +8 -0
- data/node_modules/core-js/library/modules/es6.math.cosh.js +9 -0
- data/node_modules/core-js/library/modules/es6.math.expm1.js +5 -0
- data/node_modules/core-js/library/modules/es6.math.fround.js +4 -0
- data/node_modules/core-js/library/modules/es6.math.hypot.js +25 -0
- data/node_modules/core-js/library/modules/es6.math.imul.js +17 -0
- data/node_modules/core-js/library/modules/es6.math.log10.js +8 -0
- data/node_modules/core-js/library/modules/es6.math.log1p.js +4 -0
- data/node_modules/core-js/library/modules/es6.math.log2.js +8 -0
- data/node_modules/core-js/library/modules/es6.math.sign.js +4 -0
- data/node_modules/core-js/library/modules/es6.math.sinh.js +15 -0
- data/node_modules/core-js/library/modules/es6.math.tanh.js +12 -0
- data/node_modules/core-js/library/modules/es6.math.trunc.js +8 -0
- data/node_modules/core-js/library/modules/es6.number.constructor.js +0 -0
- data/node_modules/core-js/library/modules/es6.number.epsilon.js +4 -0
- data/node_modules/core-js/library/modules/es6.number.is-finite.js +9 -0
- data/node_modules/core-js/library/modules/es6.number.is-integer.js +4 -0
- data/node_modules/core-js/library/modules/es6.number.is-nan.js +9 -0
- data/node_modules/core-js/library/modules/es6.number.is-safe-integer.js +10 -0
- data/node_modules/core-js/library/modules/es6.number.max-safe-integer.js +4 -0
- data/node_modules/core-js/library/modules/es6.number.min-safe-integer.js +4 -0
- data/node_modules/core-js/library/modules/es6.number.parse-float.js +4 -0
- data/node_modules/core-js/library/modules/es6.number.parse-int.js +4 -0
- data/node_modules/core-js/library/modules/es6.number.to-fixed.js +114 -0
- data/node_modules/core-js/library/modules/es6.number.to-precision.js +18 -0
- data/node_modules/core-js/library/modules/es6.object.assign.js +4 -0
- data/node_modules/core-js/library/modules/es6.object.create.js +3 -0
- data/node_modules/core-js/library/modules/es6.object.define-properties.js +3 -0
- data/node_modules/core-js/library/modules/es6.object.define-property.js +3 -0
- data/node_modules/core-js/library/modules/es6.object.freeze.js +9 -0
- data/node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js +9 -0
- data/node_modules/core-js/library/modules/es6.object.get-own-property-names.js +4 -0
- data/node_modules/core-js/library/modules/es6.object.get-prototype-of.js +9 -0
- data/node_modules/core-js/library/modules/es6.object.is-extensible.js +8 -0
- data/node_modules/core-js/library/modules/es6.object.is-frozen.js +8 -0
- data/node_modules/core-js/library/modules/es6.object.is-sealed.js +8 -0
- data/node_modules/core-js/library/modules/es6.object.is.js +3 -0
- data/node_modules/core-js/library/modules/es6.object.keys.js +9 -0
- data/node_modules/core-js/library/modules/es6.object.prevent-extensions.js +9 -0
- data/node_modules/core-js/library/modules/es6.object.seal.js +9 -0
- data/node_modules/core-js/library/modules/es6.object.set-prototype-of.js +3 -0
- data/node_modules/core-js/library/modules/es6.object.to-string.js +0 -0
- data/node_modules/core-js/library/modules/es6.parse-float.js +4 -0
- data/node_modules/core-js/library/modules/es6.parse-int.js +4 -0
- data/node_modules/core-js/library/modules/es6.promise.js +286 -0
- data/node_modules/core-js/library/modules/es6.reflect.apply.js +16 -0
- data/node_modules/core-js/library/modules/es6.reflect.construct.js +47 -0
- data/node_modules/core-js/library/modules/es6.reflect.define-property.js +23 -0
- data/node_modules/core-js/library/modules/es6.reflect.delete-property.js +11 -0
- data/node_modules/core-js/library/modules/es6.reflect.enumerate.js +26 -0
- data/node_modules/core-js/library/modules/es6.reflect.get-own-property-descriptor.js +10 -0
- data/node_modules/core-js/library/modules/es6.reflect.get-prototype-of.js +10 -0
- data/node_modules/core-js/library/modules/es6.reflect.get.js +21 -0
- data/node_modules/core-js/library/modules/es6.reflect.has.js +8 -0
- data/node_modules/core-js/library/modules/es6.reflect.is-extensible.js +11 -0
- data/node_modules/core-js/library/modules/es6.reflect.own-keys.js +4 -0
- data/node_modules/core-js/library/modules/es6.reflect.prevent-extensions.js +16 -0
- data/node_modules/core-js/library/modules/es6.reflect.set-prototype-of.js +15 -0
- data/node_modules/core-js/library/modules/es6.reflect.set.js +33 -0
- data/node_modules/core-js/library/modules/es6.regexp.constructor.js +1 -0
- data/node_modules/core-js/library/modules/es6.regexp.exec.js +1 -0
- data/node_modules/core-js/library/modules/es6.regexp.flags.js +0 -0
- data/node_modules/core-js/library/modules/es6.regexp.match.js +0 -0
- data/node_modules/core-js/library/modules/es6.regexp.replace.js +0 -0
- data/node_modules/core-js/library/modules/es6.regexp.search.js +0 -0
- data/node_modules/core-js/library/modules/es6.regexp.split.js +0 -0
- data/node_modules/core-js/library/modules/es6.regexp.to-string.js +0 -0
- data/node_modules/core-js/library/modules/es6.set.js +14 -0
- data/node_modules/core-js/library/modules/es6.string.anchor.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.big.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.blink.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.bold.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.code-point-at.js +9 -0
- data/node_modules/core-js/library/modules/es6.string.ends-with.js +20 -0
- data/node_modules/core-js/library/modules/es6.string.fixed.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.fontcolor.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.fontsize.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.from-code-point.js +23 -0
- data/node_modules/core-js/library/modules/es6.string.includes.js +12 -0
- data/node_modules/core-js/library/modules/es6.string.italics.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.iterator.js +17 -0
- data/node_modules/core-js/library/modules/es6.string.link.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.raw.js +18 -0
- data/node_modules/core-js/library/modules/es6.string.repeat.js +6 -0
- data/node_modules/core-js/library/modules/es6.string.small.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.starts-with.js +18 -0
- data/node_modules/core-js/library/modules/es6.string.strike.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.sub.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.sup.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.trim.js +7 -0
- data/node_modules/core-js/library/modules/es6.symbol.js +246 -0
- data/node_modules/core-js/library/modules/es6.typed.array-buffer.js +46 -0
- data/node_modules/core-js/library/modules/es6.typed.data-view.js +4 -0
- data/node_modules/core-js/library/modules/es6.typed.float32-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.float64-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.int16-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.int32-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.int8-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.uint16-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.uint32-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.uint8-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.uint8-clamped-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.weak-map.js +60 -0
- data/node_modules/core-js/library/modules/es6.weak-set.js +14 -0
- data/node_modules/core-js/library/modules/es7.array.flat-map.js +22 -0
- data/node_modules/core-js/library/modules/es7.array.flatten.js +21 -0
- data/node_modules/core-js/library/modules/es7.array.includes.js +12 -0
- data/node_modules/core-js/library/modules/es7.asap.js +12 -0
- data/node_modules/core-js/library/modules/es7.error.is-error.js +9 -0
- data/node_modules/core-js/library/modules/es7.global.js +4 -0
- data/node_modules/core-js/library/modules/es7.map.from.js +2 -0
- data/node_modules/core-js/library/modules/es7.map.of.js +2 -0
- data/node_modules/core-js/library/modules/es7.map.to-json.js +4 -0
- data/node_modules/core-js/library/modules/es7.math.clamp.js +8 -0
- data/node_modules/core-js/library/modules/es7.math.deg-per-rad.js +4 -0
- data/node_modules/core-js/library/modules/es7.math.degrees.js +9 -0
- data/node_modules/core-js/library/modules/es7.math.fscale.js +10 -0
- data/node_modules/core-js/library/modules/es7.math.iaddh.js +11 -0
- data/node_modules/core-js/library/modules/es7.math.imulh.js +16 -0
- data/node_modules/core-js/library/modules/es7.math.isubh.js +11 -0
- data/node_modules/core-js/library/modules/es7.math.rad-per-deg.js +4 -0
- data/node_modules/core-js/library/modules/es7.math.radians.js +9 -0
- data/node_modules/core-js/library/modules/es7.math.scale.js +4 -0
- data/node_modules/core-js/library/modules/es7.math.signbit.js +7 -0
- data/node_modules/core-js/library/modules/es7.math.umulh.js +16 -0
- data/node_modules/core-js/library/modules/es7.object.define-getter.js +12 -0
- data/node_modules/core-js/library/modules/es7.object.define-setter.js +12 -0
- data/node_modules/core-js/library/modules/es7.object.entries.js +9 -0
- data/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js +22 -0
- data/node_modules/core-js/library/modules/es7.object.lookup-getter.js +18 -0
- data/node_modules/core-js/library/modules/es7.object.lookup-setter.js +18 -0
- data/node_modules/core-js/library/modules/es7.object.values.js +9 -0
- data/node_modules/core-js/library/modules/es7.observable.js +199 -0
- data/node_modules/core-js/library/modules/es7.promise.finally.js +20 -0
- data/node_modules/core-js/library/modules/es7.promise.try.js +12 -0
- data/node_modules/core-js/library/modules/es7.reflect.define-metadata.js +8 -0
- data/node_modules/core-js/library/modules/es7.reflect.delete-metadata.js +15 -0
- data/node_modules/core-js/library/modules/es7.reflect.get-metadata-keys.js +19 -0
- data/node_modules/core-js/library/modules/es7.reflect.get-metadata.js +17 -0
- data/node_modules/core-js/library/modules/es7.reflect.get-own-metadata-keys.js +8 -0
- data/node_modules/core-js/library/modules/es7.reflect.get-own-metadata.js +9 -0
- data/node_modules/core-js/library/modules/es7.reflect.has-metadata.js +16 -0
- data/node_modules/core-js/library/modules/es7.reflect.has-own-metadata.js +9 -0
- data/node_modules/core-js/library/modules/es7.reflect.metadata.js +15 -0
- data/node_modules/core-js/library/modules/es7.set.from.js +2 -0
- data/node_modules/core-js/library/modules/es7.set.of.js +2 -0
- data/node_modules/core-js/library/modules/es7.set.to-json.js +4 -0
- data/node_modules/core-js/library/modules/es7.string.at.js +15 -0
- data/node_modules/core-js/library/modules/es7.string.match-all.js +30 -0
- data/node_modules/core-js/library/modules/es7.string.pad-end.js +14 -0
- data/node_modules/core-js/library/modules/es7.string.pad-start.js +14 -0
- data/node_modules/core-js/library/modules/es7.string.trim-left.js +7 -0
- data/node_modules/core-js/library/modules/es7.string.trim-right.js +7 -0
- data/node_modules/core-js/library/modules/es7.symbol.async-iterator.js +1 -0
- data/node_modules/core-js/library/modules/es7.symbol.observable.js +1 -0
- data/node_modules/core-js/library/modules/es7.system.global.js +4 -0
- data/node_modules/core-js/library/modules/es7.weak-map.from.js +2 -0
- data/node_modules/core-js/library/modules/es7.weak-map.of.js +2 -0
- data/node_modules/core-js/library/modules/es7.weak-set.from.js +2 -0
- data/node_modules/core-js/library/modules/es7.weak-set.of.js +2 -0
- data/node_modules/core-js/library/modules/web.dom.iterable.js +19 -0
- data/node_modules/core-js/library/modules/web.immediate.js +6 -0
- data/node_modules/core-js/library/modules/web.timers.js +20 -0
- data/node_modules/core-js/library/shim.js +198 -0
- data/node_modules/core-js/library/stage/0.js +10 -0
- data/node_modules/core-js/library/stage/1.js +23 -0
- data/node_modules/core-js/library/stage/2.js +4 -0
- data/node_modules/core-js/library/stage/3.js +4 -0
- data/node_modules/core-js/library/stage/4.js +11 -0
- data/node_modules/core-js/library/stage/index.js +1 -0
- data/node_modules/core-js/library/stage/pre.js +10 -0
- data/node_modules/core-js/library/web/dom-collections.js +2 -0
- data/node_modules/core-js/library/web/immediate.js +2 -0
- data/node_modules/core-js/library/web/index.js +4 -0
- data/node_modules/core-js/library/web/timers.js +2 -0
- data/node_modules/core-js/modules/_a-function.js +4 -0
- data/node_modules/core-js/modules/_a-number-value.js +5 -0
- data/node_modules/core-js/modules/_add-to-unscopables.js +7 -0
- data/node_modules/core-js/modules/_advance-string-index.js +8 -0
- data/node_modules/core-js/modules/_an-instance.js +5 -0
- data/node_modules/core-js/modules/_an-object.js +5 -0
- data/node_modules/core-js/modules/_array-copy-within.js +26 -0
- data/node_modules/core-js/modules/_array-fill.js +15 -0
- data/node_modules/core-js/modules/_array-from-iterable.js +7 -0
- data/node_modules/core-js/modules/_array-includes.js +23 -0
- data/node_modules/core-js/modules/_array-methods.js +44 -0
- data/node_modules/core-js/modules/_array-reduce.js +28 -0
- data/node_modules/core-js/modules/_array-species-constructor.js +16 -0
- data/node_modules/core-js/modules/_array-species-create.js +6 -0
- data/node_modules/core-js/modules/_bind.js +25 -0
- data/node_modules/core-js/modules/_classof.js +23 -0
- data/node_modules/core-js/modules/_cof.js +5 -0
- data/node_modules/core-js/modules/_collection-strong.js +144 -0
- data/node_modules/core-js/modules/_collection-to-json.js +9 -0
- data/node_modules/core-js/modules/_collection-weak.js +85 -0
- data/node_modules/core-js/modules/_collection.js +85 -0
- data/node_modules/core-js/modules/_core.js +2 -0
- data/node_modules/core-js/modules/_create-property.js +8 -0
- data/node_modules/core-js/modules/_ctx.js +20 -0
- data/node_modules/core-js/modules/_date-to-iso-string.js +26 -0
- data/node_modules/core-js/modules/_date-to-primitive.js +9 -0
- data/node_modules/core-js/modules/_defined.js +5 -0
- data/node_modules/core-js/modules/_descriptors.js +4 -0
- data/node_modules/core-js/modules/_dom-create.js +7 -0
- data/node_modules/core-js/modules/_entry-virtual.js +5 -0
- data/node_modules/core-js/modules/_enum-bug-keys.js +4 -0
- data/node_modules/core-js/modules/_enum-keys.js +15 -0
- data/node_modules/core-js/modules/_export.js +43 -0
- data/node_modules/core-js/modules/_fails-is-regexp.js +12 -0
- data/node_modules/core-js/modules/_fails.js +7 -0
- data/node_modules/core-js/modules/_fix-re-wks.js +96 -0
- data/node_modules/core-js/modules/_flags.js +13 -0
- data/node_modules/core-js/modules/_flatten-into-array.js +39 -0
- data/node_modules/core-js/modules/_for-of.js +25 -0
- data/node_modules/core-js/modules/_function-to-string.js +1 -0
- data/node_modules/core-js/modules/_global.js +6 -0
- data/node_modules/core-js/modules/_has.js +4 -0
- data/node_modules/core-js/modules/_hide.js +8 -0
- data/node_modules/core-js/modules/_html.js +2 -0
- data/node_modules/core-js/modules/_ie8-dom-define.js +3 -0
- data/node_modules/core-js/modules/_inherit-if-required.js +9 -0
- data/node_modules/core-js/modules/_invoke.js +16 -0
- data/node_modules/core-js/modules/_iobject.js +6 -0
- data/node_modules/core-js/modules/_is-array-iter.js +8 -0
- data/node_modules/core-js/modules/_is-array.js +5 -0
- data/node_modules/core-js/modules/_is-integer.js +6 -0
- data/node_modules/core-js/modules/_is-object.js +3 -0
- data/node_modules/core-js/modules/_is-regexp.js +8 -0
- data/node_modules/core-js/modules/_iter-call.js +12 -0
- data/node_modules/core-js/modules/_iter-create.js +13 -0
- data/node_modules/core-js/modules/_iter-define.js +69 -0
- data/node_modules/core-js/modules/_iter-detect.js +22 -0
- data/node_modules/core-js/modules/_iter-step.js +3 -0
- data/node_modules/core-js/modules/_iterators.js +1 -0
- data/node_modules/core-js/modules/_keyof.js +10 -0
- data/node_modules/core-js/modules/_library.js +1 -0
- data/node_modules/core-js/modules/_math-expm1.js +10 -0
- data/node_modules/core-js/modules/_math-fround.js +23 -0
- data/node_modules/core-js/modules/_math-log1p.js +4 -0
- data/node_modules/core-js/modules/_math-scale.js +18 -0
- data/node_modules/core-js/modules/_math-sign.js +5 -0
- data/node_modules/core-js/modules/_meta.js +53 -0
- data/node_modules/core-js/modules/_metadata.js +51 -0
- data/node_modules/core-js/modules/_microtask.js +69 -0
- data/node_modules/core-js/modules/_native-weak-map.js +4 -0
- data/node_modules/core-js/modules/_new-promise-capability.js +18 -0
- data/node_modules/core-js/modules/_object-assign.js +38 -0
- data/node_modules/core-js/modules/_object-create.js +41 -0
- data/node_modules/core-js/modules/_object-define.js +13 -0
- data/node_modules/core-js/modules/_object-dp.js +16 -0
- data/node_modules/core-js/modules/_object-dps.js +13 -0
- data/node_modules/core-js/modules/_object-forced-pam.js +9 -0
- data/node_modules/core-js/modules/_object-gopd.js +16 -0
- data/node_modules/core-js/modules/_object-gopn-ext.js +19 -0
- data/node_modules/core-js/modules/_object-gopn.js +7 -0
- data/node_modules/core-js/modules/_object-gops.js +1 -0
- data/node_modules/core-js/modules/_object-gpo.js +13 -0
- data/node_modules/core-js/modules/_object-keys-internal.js +17 -0
- data/node_modules/core-js/modules/_object-keys.js +7 -0
- data/node_modules/core-js/modules/_object-pie.js +1 -0
- data/node_modules/core-js/modules/_object-sap.js +10 -0
- data/node_modules/core-js/modules/_object-to-array.js +21 -0
- data/node_modules/core-js/modules/_own-keys.js +10 -0
- data/node_modules/core-js/modules/_parse-float.js +8 -0
- data/node_modules/core-js/modules/_parse-int.js +9 -0
- data/node_modules/core-js/modules/_partial.js +25 -0
- data/node_modules/core-js/modules/_path.js +1 -0
- data/node_modules/core-js/modules/_perform.js +7 -0
- data/node_modules/core-js/modules/_promise-resolve.js +12 -0
- data/node_modules/core-js/modules/_property-desc.js +8 -0
- data/node_modules/core-js/modules/_redefine-all.js +5 -0
- data/node_modules/core-js/modules/_redefine.js +31 -0
- data/node_modules/core-js/modules/_regexp-exec-abstract.js +21 -0
- data/node_modules/core-js/modules/_regexp-exec.js +58 -0
- data/node_modules/core-js/modules/_replacer.js +8 -0
- data/node_modules/core-js/modules/_same-value.js +5 -0
- data/node_modules/core-js/modules/_set-collection-from.js +28 -0
- data/node_modules/core-js/modules/_set-collection-of.js +12 -0
- data/node_modules/core-js/modules/_set-proto.js +25 -0
- data/node_modules/core-js/modules/_set-species.js +13 -0
- data/node_modules/core-js/modules/_set-to-string-tag.js +7 -0
- data/node_modules/core-js/modules/_shared-key.js +5 -0
- data/node_modules/core-js/modules/_shared.js +12 -0
- data/node_modules/core-js/modules/_species-constructor.js +9 -0
- data/node_modules/core-js/modules/_strict-method.js +9 -0
- data/node_modules/core-js/modules/_string-at.js +17 -0
- data/node_modules/core-js/modules/_string-context.js +8 -0
- data/node_modules/core-js/modules/_string-html.js +19 -0
- data/node_modules/core-js/modules/_string-pad.js +16 -0
- data/node_modules/core-js/modules/_string-repeat.js +12 -0
- data/node_modules/core-js/modules/_string-trim.js +30 -0
- data/node_modules/core-js/modules/_string-ws.js +2 -0
- data/node_modules/core-js/modules/_task.js +84 -0
- data/node_modules/core-js/modules/_to-absolute-index.js +7 -0
- data/node_modules/core-js/modules/_to-index.js +10 -0
- data/node_modules/core-js/modules/_to-integer.js +6 -0
- data/node_modules/core-js/modules/_to-iobject.js +6 -0
- data/node_modules/core-js/modules/_to-length.js +6 -0
- data/node_modules/core-js/modules/_to-object.js +5 -0
- data/node_modules/core-js/modules/_to-primitive.js +12 -0
- data/node_modules/core-js/modules/_typed-array.js +480 -0
- data/node_modules/core-js/modules/_typed-buffer.js +276 -0
- data/node_modules/core-js/modules/_typed.js +28 -0
- data/node_modules/core-js/modules/_uid.js +5 -0
- data/node_modules/core-js/modules/_user-agent.js +4 -0
- data/node_modules/core-js/modules/_validate-collection.js +5 -0
- data/node_modules/core-js/modules/_wks-define.js +9 -0
- data/node_modules/core-js/modules/_wks-ext.js +1 -0
- data/node_modules/core-js/modules/_wks.js +11 -0
- data/node_modules/core-js/modules/core.delay.js +12 -0
- data/node_modules/core-js/modules/core.dict.js +157 -0
- data/node_modules/core-js/modules/core.function.part.js +7 -0
- data/node_modules/core-js/modules/core.get-iterator-method.js +8 -0
- data/node_modules/core-js/modules/core.get-iterator.js +7 -0
- data/node_modules/core-js/modules/core.is-iterable.js +10 -0
- data/node_modules/core-js/modules/core.number.iterator.js +9 -0
- data/node_modules/core-js/modules/core.object.classof.js +3 -0
- data/node_modules/core-js/modules/core.object.define.js +4 -0
- data/node_modules/core-js/modules/core.object.is-object.js +3 -0
- data/node_modules/core-js/modules/core.object.make.js +9 -0
- data/node_modules/core-js/modules/core.regexp.escape.js +5 -0
- data/node_modules/core-js/modules/core.string.escape-html.js +11 -0
- data/node_modules/core-js/modules/core.string.unescape-html.js +11 -0
- data/node_modules/core-js/modules/es5.js +35 -0
- data/node_modules/core-js/modules/es6.array.copy-within.js +6 -0
- data/node_modules/core-js/modules/es6.array.every.js +10 -0
- data/node_modules/core-js/modules/es6.array.fill.js +6 -0
- data/node_modules/core-js/modules/es6.array.filter.js +10 -0
- data/node_modules/core-js/modules/es6.array.find-index.js +14 -0
- data/node_modules/core-js/modules/es6.array.find.js +14 -0
- data/node_modules/core-js/modules/es6.array.for-each.js +11 -0
- data/node_modules/core-js/modules/es6.array.from.js +37 -0
- data/node_modules/core-js/modules/es6.array.index-of.js +15 -0
- data/node_modules/core-js/modules/es6.array.is-array.js +4 -0
- data/node_modules/core-js/modules/es6.array.iterator.js +34 -0
- data/node_modules/core-js/modules/es6.array.join.js +12 -0
- data/node_modules/core-js/modules/es6.array.last-index-of.js +22 -0
- data/node_modules/core-js/modules/es6.array.map.js +10 -0
- data/node_modules/core-js/modules/es6.array.of.js +19 -0
- data/node_modules/core-js/modules/es6.array.reduce-right.js +10 -0
- data/node_modules/core-js/modules/es6.array.reduce.js +10 -0
- data/node_modules/core-js/modules/es6.array.slice.js +28 -0
- data/node_modules/core-js/modules/es6.array.some.js +10 -0
- data/node_modules/core-js/modules/es6.array.sort.js +23 -0
- data/node_modules/core-js/modules/es6.array.species.js +1 -0
- data/node_modules/core-js/modules/es6.date.now.js +4 -0
- data/node_modules/core-js/modules/es6.date.to-iso-string.js +8 -0
- data/node_modules/core-js/modules/es6.date.to-json.js +16 -0
- data/node_modules/core-js/modules/es6.date.to-primitive.js +4 -0
- data/node_modules/core-js/modules/es6.date.to-string.js +12 -0
- data/node_modules/core-js/modules/es6.function.bind.js +4 -0
- data/node_modules/core-js/modules/es6.function.has-instance.js +13 -0
- data/node_modules/core-js/modules/es6.function.name.js +16 -0
- data/node_modules/core-js/modules/es6.map.js +19 -0
- data/node_modules/core-js/modules/es6.math.acosh.js +18 -0
- data/node_modules/core-js/modules/es6.math.asinh.js +10 -0
- data/node_modules/core-js/modules/es6.math.atanh.js +10 -0
- data/node_modules/core-js/modules/es6.math.cbrt.js +9 -0
- data/node_modules/core-js/modules/es6.math.clz32.js +8 -0
- data/node_modules/core-js/modules/es6.math.cosh.js +9 -0
- data/node_modules/core-js/modules/es6.math.expm1.js +5 -0
- data/node_modules/core-js/modules/es6.math.fround.js +4 -0
- data/node_modules/core-js/modules/es6.math.hypot.js +25 -0
- data/node_modules/core-js/modules/es6.math.imul.js +17 -0
- data/node_modules/core-js/modules/es6.math.log10.js +8 -0
- data/node_modules/core-js/modules/es6.math.log1p.js +4 -0
- data/node_modules/core-js/modules/es6.math.log2.js +8 -0
- data/node_modules/core-js/modules/es6.math.sign.js +4 -0
- data/node_modules/core-js/modules/es6.math.sinh.js +15 -0
- data/node_modules/core-js/modules/es6.math.tanh.js +12 -0
- data/node_modules/core-js/modules/es6.math.trunc.js +8 -0
- data/node_modules/core-js/modules/es6.number.constructor.js +69 -0
- data/node_modules/core-js/modules/es6.number.epsilon.js +4 -0
- data/node_modules/core-js/modules/es6.number.is-finite.js +9 -0
- data/node_modules/core-js/modules/es6.number.is-integer.js +4 -0
- data/node_modules/core-js/modules/es6.number.is-nan.js +9 -0
- data/node_modules/core-js/modules/es6.number.is-safe-integer.js +10 -0
- data/node_modules/core-js/modules/es6.number.max-safe-integer.js +4 -0
- data/node_modules/core-js/modules/es6.number.min-safe-integer.js +4 -0
- data/node_modules/core-js/modules/es6.number.parse-float.js +4 -0
- data/node_modules/core-js/modules/es6.number.parse-int.js +4 -0
- data/node_modules/core-js/modules/es6.number.to-fixed.js +114 -0
- data/node_modules/core-js/modules/es6.number.to-precision.js +18 -0
- data/node_modules/core-js/modules/es6.object.assign.js +4 -0
- data/node_modules/core-js/modules/es6.object.create.js +3 -0
- data/node_modules/core-js/modules/es6.object.define-properties.js +3 -0
- data/node_modules/core-js/modules/es6.object.define-property.js +3 -0
- data/node_modules/core-js/modules/es6.object.freeze.js +9 -0
- data/node_modules/core-js/modules/es6.object.get-own-property-descriptor.js +9 -0
- data/node_modules/core-js/modules/es6.object.get-own-property-names.js +4 -0
- data/node_modules/core-js/modules/es6.object.get-prototype-of.js +9 -0
- data/node_modules/core-js/modules/es6.object.is-extensible.js +8 -0
- data/node_modules/core-js/modules/es6.object.is-frozen.js +8 -0
- data/node_modules/core-js/modules/es6.object.is-sealed.js +8 -0
- data/node_modules/core-js/modules/es6.object.is.js +3 -0
- data/node_modules/core-js/modules/es6.object.keys.js +9 -0
- data/node_modules/core-js/modules/es6.object.prevent-extensions.js +9 -0
- data/node_modules/core-js/modules/es6.object.seal.js +9 -0
- data/node_modules/core-js/modules/es6.object.set-prototype-of.js +3 -0
- data/node_modules/core-js/modules/es6.object.to-string.js +10 -0
- data/node_modules/core-js/modules/es6.parse-float.js +4 -0
- data/node_modules/core-js/modules/es6.parse-int.js +4 -0
- data/node_modules/core-js/modules/es6.promise.js +286 -0
- data/node_modules/core-js/modules/es6.reflect.apply.js +16 -0
- data/node_modules/core-js/modules/es6.reflect.construct.js +47 -0
- data/node_modules/core-js/modules/es6.reflect.define-property.js +23 -0
- data/node_modules/core-js/modules/es6.reflect.delete-property.js +11 -0
- data/node_modules/core-js/modules/es6.reflect.enumerate.js +26 -0
- data/node_modules/core-js/modules/es6.reflect.get-own-property-descriptor.js +10 -0
- data/node_modules/core-js/modules/es6.reflect.get-prototype-of.js +10 -0
- data/node_modules/core-js/modules/es6.reflect.get.js +21 -0
- data/node_modules/core-js/modules/es6.reflect.has.js +8 -0
- data/node_modules/core-js/modules/es6.reflect.is-extensible.js +11 -0
- data/node_modules/core-js/modules/es6.reflect.own-keys.js +4 -0
- data/node_modules/core-js/modules/es6.reflect.prevent-extensions.js +16 -0
- data/node_modules/core-js/modules/es6.reflect.set-prototype-of.js +15 -0
- data/node_modules/core-js/modules/es6.reflect.set.js +33 -0
- data/node_modules/core-js/modules/es6.regexp.constructor.js +43 -0
- data/node_modules/core-js/modules/es6.regexp.exec.js +9 -0
- data/node_modules/core-js/modules/es6.regexp.flags.js +5 -0
- data/node_modules/core-js/modules/es6.regexp.match.js +40 -0
- data/node_modules/core-js/modules/es6.regexp.replace.js +118 -0
- data/node_modules/core-js/modules/es6.regexp.search.js +31 -0
- data/node_modules/core-js/modules/es6.regexp.split.js +134 -0
- data/node_modules/core-js/modules/es6.regexp.to-string.js +25 -0
- data/node_modules/core-js/modules/es6.set.js +14 -0
- data/node_modules/core-js/modules/es6.string.anchor.js +7 -0
- data/node_modules/core-js/modules/es6.string.big.js +7 -0
- data/node_modules/core-js/modules/es6.string.blink.js +7 -0
- data/node_modules/core-js/modules/es6.string.bold.js +7 -0
- data/node_modules/core-js/modules/es6.string.code-point-at.js +9 -0
- data/node_modules/core-js/modules/es6.string.ends-with.js +20 -0
- data/node_modules/core-js/modules/es6.string.fixed.js +7 -0
- data/node_modules/core-js/modules/es6.string.fontcolor.js +7 -0
- data/node_modules/core-js/modules/es6.string.fontsize.js +7 -0
- data/node_modules/core-js/modules/es6.string.from-code-point.js +23 -0
- data/node_modules/core-js/modules/es6.string.includes.js +12 -0
- data/node_modules/core-js/modules/es6.string.italics.js +7 -0
- data/node_modules/core-js/modules/es6.string.iterator.js +17 -0
- data/node_modules/core-js/modules/es6.string.link.js +7 -0
- data/node_modules/core-js/modules/es6.string.raw.js +18 -0
- data/node_modules/core-js/modules/es6.string.repeat.js +6 -0
- data/node_modules/core-js/modules/es6.string.small.js +7 -0
- data/node_modules/core-js/modules/es6.string.starts-with.js +18 -0
- data/node_modules/core-js/modules/es6.string.strike.js +7 -0
- data/node_modules/core-js/modules/es6.string.sub.js +7 -0
- data/node_modules/core-js/modules/es6.string.sup.js +7 -0
- data/node_modules/core-js/modules/es6.string.trim.js +7 -0
- data/node_modules/core-js/modules/es6.symbol.js +246 -0
- data/node_modules/core-js/modules/es6.typed.array-buffer.js +46 -0
- data/node_modules/core-js/modules/es6.typed.data-view.js +4 -0
- data/node_modules/core-js/modules/es6.typed.float32-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.float64-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.int16-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.int32-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.int8-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.uint16-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.uint32-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.uint8-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.uint8-clamped-array.js +5 -0
- data/node_modules/core-js/modules/es6.weak-map.js +60 -0
- data/node_modules/core-js/modules/es6.weak-set.js +14 -0
- data/node_modules/core-js/modules/es7.array.flat-map.js +22 -0
- data/node_modules/core-js/modules/es7.array.flatten.js +21 -0
- data/node_modules/core-js/modules/es7.array.includes.js +12 -0
- data/node_modules/core-js/modules/es7.asap.js +12 -0
- data/node_modules/core-js/modules/es7.error.is-error.js +9 -0
- data/node_modules/core-js/modules/es7.global.js +4 -0
- data/node_modules/core-js/modules/es7.map.from.js +2 -0
- data/node_modules/core-js/modules/es7.map.of.js +2 -0
- data/node_modules/core-js/modules/es7.map.to-json.js +4 -0
- data/node_modules/core-js/modules/es7.math.clamp.js +8 -0
- data/node_modules/core-js/modules/es7.math.deg-per-rad.js +4 -0
- data/node_modules/core-js/modules/es7.math.degrees.js +9 -0
- data/node_modules/core-js/modules/es7.math.fscale.js +10 -0
- data/node_modules/core-js/modules/es7.math.iaddh.js +11 -0
- data/node_modules/core-js/modules/es7.math.imulh.js +16 -0
- data/node_modules/core-js/modules/es7.math.isubh.js +11 -0
- data/node_modules/core-js/modules/es7.math.rad-per-deg.js +4 -0
- data/node_modules/core-js/modules/es7.math.radians.js +9 -0
- data/node_modules/core-js/modules/es7.math.scale.js +4 -0
- data/node_modules/core-js/modules/es7.math.signbit.js +7 -0
- data/node_modules/core-js/modules/es7.math.umulh.js +16 -0
- data/node_modules/core-js/modules/es7.object.define-getter.js +12 -0
- data/node_modules/core-js/modules/es7.object.define-setter.js +12 -0
- data/node_modules/core-js/modules/es7.object.entries.js +9 -0
- data/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js +22 -0
- data/node_modules/core-js/modules/es7.object.lookup-getter.js +18 -0
- data/node_modules/core-js/modules/es7.object.lookup-setter.js +18 -0
- data/node_modules/core-js/modules/es7.object.values.js +9 -0
- data/node_modules/core-js/modules/es7.observable.js +199 -0
- data/node_modules/core-js/modules/es7.promise.finally.js +20 -0
- data/node_modules/core-js/modules/es7.promise.try.js +12 -0
- data/node_modules/core-js/modules/es7.reflect.define-metadata.js +8 -0
- data/node_modules/core-js/modules/es7.reflect.delete-metadata.js +15 -0
- data/node_modules/core-js/modules/es7.reflect.get-metadata-keys.js +19 -0
- data/node_modules/core-js/modules/es7.reflect.get-metadata.js +17 -0
- data/node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js +8 -0
- data/node_modules/core-js/modules/es7.reflect.get-own-metadata.js +9 -0
- data/node_modules/core-js/modules/es7.reflect.has-metadata.js +16 -0
- data/node_modules/core-js/modules/es7.reflect.has-own-metadata.js +9 -0
- data/node_modules/core-js/modules/es7.reflect.metadata.js +15 -0
- data/node_modules/core-js/modules/es7.set.from.js +2 -0
- data/node_modules/core-js/modules/es7.set.of.js +2 -0
- data/node_modules/core-js/modules/es7.set.to-json.js +4 -0
- data/node_modules/core-js/modules/es7.string.at.js +15 -0
- data/node_modules/core-js/modules/es7.string.match-all.js +30 -0
- data/node_modules/core-js/modules/es7.string.pad-end.js +14 -0
- data/node_modules/core-js/modules/es7.string.pad-start.js +14 -0
- data/node_modules/core-js/modules/es7.string.trim-left.js +7 -0
- data/node_modules/core-js/modules/es7.string.trim-right.js +7 -0
- data/node_modules/core-js/modules/es7.symbol.async-iterator.js +1 -0
- data/node_modules/core-js/modules/es7.symbol.observable.js +1 -0
- data/node_modules/core-js/modules/es7.system.global.js +4 -0
- data/node_modules/core-js/modules/es7.weak-map.from.js +2 -0
- data/node_modules/core-js/modules/es7.weak-map.of.js +2 -0
- data/node_modules/core-js/modules/es7.weak-set.from.js +2 -0
- data/node_modules/core-js/modules/es7.weak-set.of.js +2 -0
- data/node_modules/core-js/modules/library/_add-to-unscopables.js +1 -0
- data/node_modules/core-js/modules/library/_collection.js +59 -0
- data/node_modules/core-js/modules/library/_export.js +62 -0
- data/node_modules/core-js/modules/library/_library.js +1 -0
- data/node_modules/core-js/modules/library/_path.js +1 -0
- data/node_modules/core-js/modules/library/_redefine-all.js +7 -0
- data/node_modules/core-js/modules/library/_redefine.js +1 -0
- data/node_modules/core-js/modules/library/_regexp-exec-abstract.js +1 -0
- data/node_modules/core-js/modules/library/_regexp-exec.js +1 -0
- data/node_modules/core-js/modules/library/_set-species.js +14 -0
- data/node_modules/core-js/modules/library/es6.date.to-json.js +19 -0
- data/node_modules/core-js/modules/library/es6.date.to-primitive.js +0 -0
- data/node_modules/core-js/modules/library/es6.date.to-string.js +0 -0
- data/node_modules/core-js/modules/library/es6.function.name.js +0 -0
- data/node_modules/core-js/modules/library/es6.number.constructor.js +0 -0
- data/node_modules/core-js/modules/library/es6.object.to-string.js +0 -0
- data/node_modules/core-js/modules/library/es6.regexp.constructor.js +1 -0
- data/node_modules/core-js/modules/library/es6.regexp.exec.js +1 -0
- data/node_modules/core-js/modules/library/es6.regexp.flags.js +0 -0
- data/node_modules/core-js/modules/library/es6.regexp.match.js +0 -0
- data/node_modules/core-js/modules/library/es6.regexp.replace.js +0 -0
- data/node_modules/core-js/modules/library/es6.regexp.search.js +0 -0
- data/node_modules/core-js/modules/library/es6.regexp.split.js +0 -0
- data/node_modules/core-js/modules/library/es6.regexp.to-string.js +0 -0
- data/node_modules/core-js/modules/library/web.dom.iterable.js +19 -0
- data/node_modules/core-js/modules/web.dom.iterable.js +58 -0
- data/node_modules/core-js/modules/web.immediate.js +6 -0
- data/node_modules/core-js/modules/web.timers.js +20 -0
- data/node_modules/core-js/package.json +73 -0
- data/node_modules/core-js/postinstall.js +58 -0
- data/node_modules/core-js/shim.js +198 -0
- data/node_modules/core-js/stage/0.js +10 -0
- data/node_modules/core-js/stage/1.js +23 -0
- data/node_modules/core-js/stage/2.js +4 -0
- data/node_modules/core-js/stage/3.js +4 -0
- data/node_modules/core-js/stage/4.js +11 -0
- data/node_modules/core-js/stage/index.js +1 -0
- data/node_modules/core-js/stage/pre.js +10 -0
- data/node_modules/core-js/web/dom-collections.js +2 -0
- data/node_modules/core-js/web/immediate.js +2 -0
- data/node_modules/core-js/web/index.js +4 -0
- data/node_modules/core-js/web/timers.js +2 -0
- data/node_modules/detect-indent/index.js +120 -0
- data/node_modules/detect-indent/license +21 -0
- data/node_modules/detect-indent/package.json +46 -0
- data/node_modules/detect-indent/readme.md +110 -0
- data/node_modules/eslint/README.md +2 -2
- data/node_modules/eslint/lib/api.js +1 -1
- data/node_modules/eslint/lib/cli.js +2 -2
- data/node_modules/eslint/lib/config/default-config.js +5 -0
- data/node_modules/eslint/lib/config/flat-config-array.js +72 -9
- data/node_modules/eslint/lib/config/flat-config-schema.js +46 -62
- data/node_modules/eslint/lib/eslint/eslint-helpers.js +33 -23
- data/node_modules/eslint/lib/eslint/eslint.js +15 -20
- data/node_modules/eslint/lib/languages/js/index.js +247 -0
- data/node_modules/eslint/lib/{source-code → languages/js/source-code}/source-code.js +38 -18
- data/node_modules/eslint/lib/languages/js/validate-language-options.js +181 -0
- data/node_modules/eslint/lib/linter/apply-disable-directives.js +8 -3
- data/node_modules/eslint/lib/linter/linter.js +122 -121
- data/node_modules/eslint/lib/linter/report-translator.js +14 -7
- data/node_modules/eslint/lib/linter/vfile.js +104 -0
- data/node_modules/eslint/lib/rule-tester/rule-tester.js +6 -3
- data/node_modules/eslint/lib/rules/func-style.js +4 -4
- data/node_modules/eslint/lib/rules/no-constructor-return.js +1 -1
- data/node_modules/eslint/lib/rules/no-loop-func.js +161 -129
- data/node_modules/eslint/lib/rules/no-sparse-arrays.js +26 -3
- data/node_modules/eslint/messages/all-matched-files-ignored.js +21 -0
- data/node_modules/eslint/package.json +11 -11
- data/node_modules/fast-glob/node_modules/micromatch/LICENSE +21 -0
- data/node_modules/fast-glob/node_modules/micromatch/README.md +1011 -0
- data/node_modules/fast-glob/node_modules/micromatch/index.js +467 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/LICENSE +21 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/README.md +593 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/index.js +170 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/compile.js +57 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/constants.js +57 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/expand.js +113 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/parse.js +333 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/stringify.js +32 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/utils.js +112 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/node_modules/fill-range/LICENSE +21 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/node_modules/fill-range/README.md +237 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/node_modules/fill-range/index.js +249 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/node_modules/fill-range/package.json +69 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/package.json +77 -0
- data/node_modules/fast-glob/node_modules/micromatch/package.json +119 -0
- data/node_modules/fill-range/index.js +4 -5
- data/node_modules/fill-range/package.json +8 -3
- data/node_modules/has-ansi/index.js +4 -0
- data/node_modules/has-ansi/license +21 -0
- data/node_modules/has-ansi/node_modules/ansi-regex/index.js +4 -0
- data/node_modules/has-ansi/node_modules/ansi-regex/license +21 -0
- data/node_modules/has-ansi/node_modules/ansi-regex/package.json +64 -0
- data/node_modules/has-ansi/node_modules/ansi-regex/readme.md +39 -0
- data/node_modules/has-ansi/package.json +55 -0
- data/node_modules/has-ansi/readme.md +36 -0
- data/node_modules/home-or-tmp/index.js +5 -0
- data/node_modules/home-or-tmp/license +21 -0
- data/node_modules/home-or-tmp/package.json +43 -0
- data/node_modules/home-or-tmp/readme.md +32 -0
- data/node_modules/invariant/CHANGELOG.md +69 -0
- data/node_modules/invariant/LICENSE +21 -0
- data/node_modules/invariant/README.md +37 -0
- data/node_modules/invariant/browser.js +49 -0
- data/node_modules/invariant/invariant.js +51 -0
- data/node_modules/invariant/invariant.js.flow +7 -0
- data/node_modules/invariant/package.json +35 -0
- data/node_modules/is-finite/index.js +5 -0
- data/node_modules/is-finite/license +9 -0
- data/node_modules/is-finite/package.json +34 -0
- data/node_modules/is-finite/readme.md +33 -0
- data/node_modules/js-tokens/CHANGELOG.md +0 -17
- data/node_modules/js-tokens/LICENSE +1 -1
- data/node_modules/js-tokens/README.md +7 -25
- data/node_modules/js-tokens/index.js +3 -3
- data/node_modules/js-tokens/package.json +5 -5
- data/node_modules/jscodeshift/CHANGELOG.md +8 -0
- data/node_modules/jscodeshift/CODE_OF_CONDUCT.md +0 -0
- data/node_modules/jscodeshift/CONTRIBUTING.md +0 -0
- data/node_modules/jscodeshift/LICENSE +0 -0
- data/node_modules/jscodeshift/README.md +42 -6
- data/node_modules/jscodeshift/dist/Collection.js +0 -0
- data/node_modules/jscodeshift/dist/Runner.js +7 -0
- data/node_modules/jscodeshift/dist/Worker.js +0 -0
- data/node_modules/jscodeshift/dist/argsParser.js +0 -0
- data/node_modules/jscodeshift/dist/collections/JSXElement.js +0 -0
- data/node_modules/jscodeshift/dist/collections/Node.js +0 -0
- data/node_modules/jscodeshift/dist/collections/VariableDeclarator.js +0 -0
- data/node_modules/jscodeshift/dist/collections/index.js +0 -0
- data/node_modules/jscodeshift/dist/core.js +0 -0
- data/node_modules/jscodeshift/dist/getParser.js +0 -0
- data/node_modules/jscodeshift/dist/ignoreFiles.js +0 -0
- data/node_modules/jscodeshift/dist/matchNode.js +0 -0
- data/node_modules/jscodeshift/dist/src/Collection.js +0 -0
- data/node_modules/jscodeshift/dist/src/Runner.js +7 -0
- data/node_modules/jscodeshift/dist/src/Worker.js +0 -0
- data/node_modules/jscodeshift/dist/src/argsParser.js +0 -0
- data/node_modules/jscodeshift/dist/src/collections/JSXElement.js +0 -0
- data/node_modules/jscodeshift/dist/src/collections/Node.js +0 -0
- data/node_modules/jscodeshift/dist/src/collections/VariableDeclarator.js +0 -0
- data/node_modules/jscodeshift/dist/src/collections/index.js +0 -0
- data/node_modules/jscodeshift/dist/src/core.js +0 -0
- data/node_modules/jscodeshift/dist/src/getParser.js +0 -0
- data/node_modules/jscodeshift/dist/src/ignoreFiles.js +0 -0
- data/node_modules/jscodeshift/dist/src/matchNode.js +0 -0
- data/node_modules/jscodeshift/dist/src/template.js +0 -0
- data/node_modules/jscodeshift/dist/src/testUtils.js +0 -0
- data/node_modules/jscodeshift/dist/src/utils/intersection.js +0 -0
- data/node_modules/jscodeshift/dist/src/utils/once.js +0 -0
- data/node_modules/jscodeshift/dist/src/utils/union.js +0 -0
- data/node_modules/jscodeshift/dist/template.js +0 -0
- data/node_modules/jscodeshift/dist/testUtils.js +0 -0
- data/node_modules/jscodeshift/dist/utils/intersection.js +0 -0
- data/node_modules/jscodeshift/dist/utils/once.js +0 -0
- data/node_modules/jscodeshift/dist/utils/union.js +0 -0
- data/node_modules/jscodeshift/index.js +0 -0
- data/node_modules/jscodeshift/package.json +20 -20
- data/node_modules/jscodeshift/parser/babel5Compat.js +0 -0
- data/node_modules/jscodeshift/parser/babylon.js +0 -0
- data/node_modules/jscodeshift/parser/flow.js +0 -0
- data/node_modules/jscodeshift/parser/ts.js +0 -0
- data/node_modules/jscodeshift/parser/tsOptions.js +0 -0
- data/node_modules/jscodeshift/parser/tsx.js +0 -0
- data/node_modules/jscodeshift/src/Collection.js +0 -0
- data/node_modules/jscodeshift/src/Runner.js +7 -0
- data/node_modules/jscodeshift/src/Worker.js +0 -0
- data/node_modules/jscodeshift/src/argsParser.js +0 -0
- data/node_modules/jscodeshift/src/collections/JSXElement.js +0 -0
- data/node_modules/jscodeshift/src/collections/Node.js +0 -0
- data/node_modules/jscodeshift/src/collections/VariableDeclarator.js +0 -0
- data/node_modules/jscodeshift/src/collections/index.js +0 -0
- data/node_modules/jscodeshift/src/core.js +0 -0
- data/node_modules/jscodeshift/src/getParser.js +0 -0
- data/node_modules/jscodeshift/src/ignoreFiles.js +0 -0
- data/node_modules/jscodeshift/src/matchNode.js +0 -0
- data/node_modules/jscodeshift/src/template.js +0 -0
- data/node_modules/jscodeshift/src/testUtils.js +0 -0
- data/node_modules/jscodeshift/src/utils/intersection.js +0 -0
- data/node_modules/jscodeshift/src/utils/once.js +0 -0
- data/node_modules/jscodeshift/src/utils/union.js +0 -0
- data/node_modules/jscodeshift/utils/requirePackage.js +0 -0
- data/node_modules/jscodeshift/utils/testUtils.js +0 -0
- data/node_modules/loose-envify/LICENSE +21 -0
- data/node_modules/loose-envify/README.md +45 -0
- data/node_modules/loose-envify/cli.js +16 -0
- data/node_modules/loose-envify/custom.js +4 -0
- data/node_modules/loose-envify/index.js +3 -0
- data/node_modules/loose-envify/loose-envify.js +36 -0
- data/node_modules/loose-envify/node_modules/js-tokens/CHANGELOG.md +151 -0
- data/node_modules/loose-envify/node_modules/js-tokens/LICENSE +21 -0
- data/node_modules/loose-envify/node_modules/js-tokens/README.md +240 -0
- data/node_modules/loose-envify/node_modules/js-tokens/index.js +23 -0
- data/node_modules/loose-envify/node_modules/js-tokens/package.json +30 -0
- data/node_modules/loose-envify/package.json +36 -0
- data/node_modules/loose-envify/replace.js +65 -0
- data/node_modules/micromatch/README.md +135 -129
- data/node_modules/micromatch/package.json +7 -25
- data/node_modules/mkdirp/LICENSE +2 -2
- data/node_modules/mkdirp/bin/cmd.js +29 -64
- data/node_modules/mkdirp/bin/usage.txt +12 -0
- data/node_modules/mkdirp/index.js +95 -24
- data/node_modules/mkdirp/package.json +11 -22
- data/node_modules/mkdirp/readme.markdown +35 -201
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/CHANGELOG.md +15 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/LICENSE +21 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/bin/cmd.js +68 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/index.js +31 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/find-made.js +29 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/opts-arg.js +23 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/path-arg.js +29 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/use-native.js +10 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/package.json +44 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/readme.markdown +266 -0
- data/node_modules/os-homedir/index.js +24 -0
- data/node_modules/os-homedir/license +21 -0
- data/node_modules/os-homedir/package.json +41 -0
- data/node_modules/os-homedir/readme.md +31 -0
- data/node_modules/os-tmpdir/index.js +25 -0
- data/node_modules/os-tmpdir/license +21 -0
- data/node_modules/os-tmpdir/package.json +41 -0
- data/node_modules/os-tmpdir/readme.md +32 -0
- data/node_modules/prettier/LICENSE +57 -536
- data/node_modules/prettier/bin/prettier.cjs +4 -8
- data/node_modules/prettier/doc.js +30 -39
- data/node_modules/prettier/doc.mjs +30 -39
- data/node_modules/prettier/index.cjs +2 -2
- data/node_modules/prettier/index.d.ts +4 -2
- data/node_modules/prettier/index.mjs +3238 -4630
- data/node_modules/prettier/internal/cli.mjs +352 -3557
- data/node_modules/prettier/package.json +1 -1
- data/node_modules/prettier/plugins/acorn.js +11 -11
- data/node_modules/prettier/plugins/acorn.mjs +11 -11
- data/node_modules/prettier/plugins/angular.js +1 -1
- data/node_modules/prettier/plugins/angular.mjs +1 -1
- data/node_modules/prettier/plugins/babel.js +11 -11
- data/node_modules/prettier/plugins/babel.mjs +11 -11
- data/node_modules/prettier/plugins/estree.js +28 -28
- data/node_modules/prettier/plugins/estree.mjs +28 -28
- data/node_modules/prettier/plugins/flow.js +16 -17
- data/node_modules/prettier/plugins/flow.mjs +16 -17
- data/node_modules/prettier/plugins/glimmer.js +22 -22
- data/node_modules/prettier/plugins/glimmer.mjs +22 -22
- data/node_modules/prettier/plugins/graphql.js +4 -4
- data/node_modules/prettier/plugins/graphql.mjs +4 -4
- data/node_modules/prettier/plugins/html.js +18 -15
- data/node_modules/prettier/plugins/html.mjs +18 -15
- data/node_modules/prettier/plugins/markdown.js +47 -44
- data/node_modules/prettier/plugins/markdown.mjs +47 -44
- data/node_modules/prettier/plugins/meriyah.js +5 -5
- data/node_modules/prettier/plugins/meriyah.mjs +5 -5
- data/node_modules/prettier/plugins/postcss.js +29 -26
- data/node_modules/prettier/plugins/postcss.mjs +29 -26
- data/node_modules/prettier/plugins/typescript.js +20 -20
- data/node_modules/prettier/plugins/typescript.mjs +20 -20
- data/node_modules/prettier/plugins/yaml.js +32 -32
- data/node_modules/prettier/plugins/yaml.mjs +32 -32
- data/node_modules/prettier/standalone.js +26 -26
- data/node_modules/prettier/standalone.mjs +26 -26
- data/node_modules/private/LICENSE +20 -0
- data/node_modules/private/README.md +245 -0
- data/node_modules/private/package.json +39 -0
- data/node_modules/private/private.js +129 -0
- data/node_modules/recast/lib/printer.js +7 -1
- data/node_modules/recast/package.json +1 -1
- data/node_modules/regenerator-runtime/README.md +31 -0
- data/node_modules/regenerator-runtime/package.json +18 -0
- data/node_modules/regenerator-runtime/path.js +11 -0
- data/node_modules/regenerator-runtime/runtime-module.js +35 -0
- data/node_modules/regenerator-runtime/runtime.js +727 -0
- data/node_modules/repeating/index.js +24 -0
- data/node_modules/repeating/license +21 -0
- data/node_modules/repeating/package.json +37 -0
- data/node_modules/repeating/readme.md +30 -0
- data/node_modules/signal-exit/LICENSE.txt +1 -1
- data/node_modules/signal-exit/README.md +56 -21
- data/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
- data/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- data/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- data/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- data/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
- data/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- data/node_modules/signal-exit/dist/cjs/index.js +279 -0
- data/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- data/node_modules/signal-exit/dist/cjs/package.json +3 -0
- data/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
- data/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- data/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- data/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- data/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
- data/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- data/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- data/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- data/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
- data/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- data/node_modules/signal-exit/dist/mjs/index.js +275 -0
- data/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- data/node_modules/signal-exit/dist/mjs/package.json +3 -0
- data/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
- data/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- data/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- data/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- data/node_modules/signal-exit/package.json +87 -19
- data/node_modules/string-width-cjs/index.d.ts +29 -0
- data/node_modules/string-width-cjs/index.js +47 -0
- data/node_modules/string-width-cjs/license +9 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/index.d.ts +17 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +4 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/license +9 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +37 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/index.js +10 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/package.json +55 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +78 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +54 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/readme.md +46 -0
- data/node_modules/string-width-cjs/package.json +56 -0
- data/node_modules/string-width-cjs/readme.md +50 -0
- data/node_modules/strip-ansi-cjs/index.d.ts +17 -0
- data/node_modules/strip-ansi-cjs/index.js +4 -0
- data/node_modules/strip-ansi-cjs/license +9 -0
- data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.d.ts +37 -0
- data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
- data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +9 -0
- data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
- data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/readme.md +78 -0
- data/node_modules/strip-ansi-cjs/package.json +54 -0
- data/node_modules/strip-ansi-cjs/readme.md +46 -0
- data/node_modules/tar/node_modules/mkdirp/CHANGELOG.md +15 -0
- data/node_modules/tar/node_modules/mkdirp/LICENSE +21 -0
- data/node_modules/tar/node_modules/mkdirp/bin/cmd.js +68 -0
- data/node_modules/tar/node_modules/mkdirp/index.js +31 -0
- data/node_modules/tar/node_modules/mkdirp/lib/find-made.js +29 -0
- data/node_modules/tar/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
- data/node_modules/tar/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
- data/node_modules/tar/node_modules/mkdirp/lib/opts-arg.js +23 -0
- data/node_modules/tar/node_modules/mkdirp/lib/path-arg.js +29 -0
- data/node_modules/tar/node_modules/mkdirp/lib/use-native.js +10 -0
- data/node_modules/tar/node_modules/mkdirp/package.json +44 -0
- data/node_modules/tar/node_modules/mkdirp/readme.markdown +266 -0
- data/node_modules/temp/README.md +8 -32
- data/node_modules/temp/lib/temp.js +67 -55
- data/node_modules/temp/package.json +4 -3
- data/node_modules/trim-right/index.js +10 -0
- data/node_modules/trim-right/license +21 -0
- data/node_modules/trim-right/package.json +37 -0
- data/node_modules/trim-right/readme.md +30 -0
- data/node_modules/wrap-ansi-cjs/index.js +216 -0
- data/node_modules/wrap-ansi-cjs/license +9 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.d.ts +17 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +4 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +9 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +37 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/index.js +10 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/package.json +55 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +78 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +54 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/readme.md +46 -0
- data/node_modules/wrap-ansi-cjs/package.json +62 -0
- data/node_modules/wrap-ansi-cjs/readme.md +91 -0
- data/node_modules/write-file-atomic/README.md +41 -6
- data/node_modules/write-file-atomic/lib/index.js +267 -0
- data/node_modules/write-file-atomic/package.json +35 -19
- data/package.json +4 -4
- metadata +2460 -38
- data/node_modules/@babel/helpers/lib/helpers/AsyncGenerator.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimitLoose.js +0 -18
- data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimitLoose.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers.js +0 -1673
- data/node_modules/@babel/helpers/lib/helpers.js.map +0 -1
- data/node_modules/@babel/helpers/scripts/package.json +0 -1
- data/node_modules/write-file-atomic/CHANGELOG.md +0 -25
- data/node_modules/write-file-atomic/index.js +0 -238
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/CHANGELOG.md +0 -0
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/find-made.js +0 -0
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/mkdirp-manual.js +0 -0
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/mkdirp-native.js +0 -0
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/opts-arg.js +0 -0
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/path-arg.js +0 -0
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/use-native.js +0 -0
- /data/node_modules/{signal-exit → configstore/node_modules/write-file-atomic/node_modules/signal-exit}/index.js +0 -0
- /data/node_modules/{signal-exit → configstore/node_modules/write-file-atomic/node_modules/signal-exit}/signals.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/index.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/backward-token-comment-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/backward-token-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/cursors.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/decorative-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/filter-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/forward-token-comment-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/forward-token-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/index.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/limit-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/padded-token-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/skip-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/utils.js +0 -0
- /data/node_modules/{braces → fast-glob/node_modules/micromatch/node_modules/braces}/CHANGELOG.md +0 -0
- /data/node_modules/write-file-atomic/{LICENSE → LICENSE.md} +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_t","require","assertExpressionStatement","makeStatementFormatter","fn","code","str","validate","unwrap","ast","program","body","slice","smart","exports","length","statements","statement","Error","expression","start","stmt"],"sources":["../src/formatters.ts"],"sourcesContent":["import { assertExpressionStatement } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nexport type Formatter<T> = {\n code: (source: string) => string;\n validate: (ast: t.File) => void;\n unwrap: (ast: t.File) => T;\n};\n\nfunction makeStatementFormatter<T>(\n fn: (statements: Array<t.Statement>) => T,\n): Formatter<T> {\n return {\n // We need to prepend a \";\" to force statement parsing so that\n // ExpressionStatement strings won't be parsed as directives.\n // Alongside that, we also prepend a comment so that when a syntax error\n // is encountered, the user will be less likely to get confused about\n // where the random semicolon came from.\n code: str => `/* @babel/template */;\\n${str}`,\n validate: () => {},\n unwrap: (ast: t.File): T => {\n return fn(ast.program.body.slice(1));\n },\n };\n}\n\nexport const smart = makeStatementFormatter(body => {\n if (body.length > 1) {\n return body;\n } else {\n return body[0];\n }\n});\n\nexport const statements = makeStatementFormatter(body => body);\n\nexport const statement = makeStatementFormatter(body => {\n // We do this validation when unwrapping since the replacement process\n // could have added or removed statements.\n if (body.length === 0) {\n throw new Error(\"Found nothing to return.\");\n }\n if (body.length > 1) {\n throw new Error(\"Found multiple statements but wanted one\");\n }\n\n return body[0];\n});\n\nexport const expression: Formatter<t.Expression> = {\n code: str => `(\\n${str}\\n)`,\n validate: ast => {\n if (ast.program.body.length > 1) {\n throw new Error(\"Found multiple statements but wanted one\");\n }\n if (expression.unwrap(ast).start === 0) {\n throw new Error(\"Parse result included parens.\");\n }\n },\n unwrap: ({ program }) => {\n const [stmt] = program.body;\n assertExpressionStatement(stmt);\n return stmt.expression;\n },\n};\n\nexport const program: Formatter<t.Program> = {\n code: str => str,\n validate: () => {},\n unwrap: ast => ast.program,\n};\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAAyD;EAAhDC;AAAyB,IAAAF,EAAA;AASlC,SAASG,sBAAsBA,CAC7BC,EAAyC,EAC3B;EACd,OAAO;IAMLC,IAAI,EAAEC,GAAG,IAAK,2BAA0BA,GAAI,EAAC;IAC7CC,QAAQ,EAAEA,CAAA,KAAM,CAAC,CAAC;IAClBC,MAAM,EAAGC,GAAW,IAAQ;MAC1B,OAAOL,EAAE,CAACK,GAAG,CAACC,OAAO,CAACC,IAAI,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;IACtC;EACF,CAAC;AACH;AAEO,MAAMC,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAGV,sBAAsB,CAACQ,IAAI,IAAI;EAClD,IAAIA,IAAI,CAACI,MAAM,GAAG,CAAC,EAAE;IACnB,OAAOJ,IAAI;EACb,CAAC,MAAM;IACL,OAAOA,IAAI,CAAC,CAAC,CAAC;EAChB;AACF,CAAC,CAAC;AAEK,MAAMK,UAAU,GAAAF,OAAA,CAAAE,UAAA,GAAGb,sBAAsB,CAACQ,IAAI,IAAIA,IAAI,CAAC;AAEvD,MAAMM,SAAS,GAAAH,OAAA,CAAAG,SAAA,GAAGd,sBAAsB,CAACQ,IAAI,IAAI;EAGtD,IAAIA,IAAI,CAACI,MAAM,KAAK,CAAC,EAAE;IACrB,MAAM,IAAIG,KAAK,CAAC,0BAA0B,CAAC;EAC7C;EACA,IAAIP,IAAI,CAACI,MAAM,GAAG,CAAC,EAAE;IACnB,MAAM,IAAIG,KAAK,CAAC,0CAA0C,CAAC;EAC7D;EAEA,OAAOP,IAAI,CAAC,CAAC,CAAC;AAChB,CAAC,CAAC;AAEK,MAAMQ,UAAmC,GAAAL,OAAA,CAAAK,UAAA,GAAG;EACjDd,IAAI,EAAEC,GAAG,IAAK,MAAKA,GAAI,KAAI;EAC3BC,QAAQ,EAAEE,GAAG,IAAI;IACf,IAAIA,GAAG,CAACC,OAAO,CAACC,IAAI,CAACI,MAAM,GAAG,CAAC,EAAE;MAC/B,MAAM,IAAIG,KAAK,CAAC,0CAA0C,CAAC;IAC7D;IACA,IAAIC,UAAU,CAACX,MAAM,CAACC,GAAG,CAAC,CAACW,KAAK,KAAK,CAAC,EAAE;MACtC,MAAM,IAAIF,KAAK,CAAC,+BAA+B,CAAC;IAClD;EACF,CAAC;EACDV,MAAM,EAAEA,CAAC;IAAEE;EAAQ,CAAC,KAAK;IACvB,MAAM,CAACW,IAAI,CAAC,GAAGX,OAAO,CAACC,IAAI;IAC3BT,yBAAyB,CAACmB,IAAI,CAAC;IAC/B,OAAOA,IAAI,CAACF,UAAU;EACxB;AACF,CAAC;AAEM,MAAMT,OAA6B,GAAAI,OAAA,CAAAJ,OAAA,GAAG;EAC3CL,IAAI,EAAEC,GAAG,IAAIA,GAAG;EAChBC,QAAQ,EAAEA,CAAA,KAAM,CAAC,CAAC;EAClBC,MAAM,EAAEC,GAAG,IAAIA,GAAG,CAACC;AACrB,CAAC"}
|
1
|
+
{"version":3,"names":["_t","require","assertExpressionStatement","makeStatementFormatter","fn","code","str","validate","unwrap","ast","program","body","slice","smart","exports","length","statements","statement","Error","expression","start","stmt"],"sources":["../src/formatters.ts"],"sourcesContent":["import { assertExpressionStatement } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nexport type Formatter<T> = {\n code: (source: string) => string;\n validate: (ast: t.File) => void;\n unwrap: (ast: t.File) => T;\n};\n\nfunction makeStatementFormatter<T>(\n fn: (statements: Array<t.Statement>) => T,\n): Formatter<T> {\n return {\n // We need to prepend a \";\" to force statement parsing so that\n // ExpressionStatement strings won't be parsed as directives.\n // Alongside that, we also prepend a comment so that when a syntax error\n // is encountered, the user will be less likely to get confused about\n // where the random semicolon came from.\n code: str => `/* @babel/template */;\\n${str}`,\n validate: () => {},\n unwrap: (ast: t.File): T => {\n return fn(ast.program.body.slice(1));\n },\n };\n}\n\nexport const smart = makeStatementFormatter(body => {\n if (body.length > 1) {\n return body;\n } else {\n return body[0];\n }\n});\n\nexport const statements = makeStatementFormatter(body => body);\n\nexport const statement = makeStatementFormatter(body => {\n // We do this validation when unwrapping since the replacement process\n // could have added or removed statements.\n if (body.length === 0) {\n throw new Error(\"Found nothing to return.\");\n }\n if (body.length > 1) {\n throw new Error(\"Found multiple statements but wanted one\");\n }\n\n return body[0];\n});\n\nexport const expression: Formatter<t.Expression> = {\n code: str => `(\\n${str}\\n)`,\n validate: ast => {\n if (ast.program.body.length > 1) {\n throw new Error(\"Found multiple statements but wanted one\");\n }\n if (expression.unwrap(ast).start === 0) {\n throw new Error(\"Parse result included parens.\");\n }\n },\n unwrap: ({ program }) => {\n const [stmt] = program.body;\n assertExpressionStatement(stmt);\n return stmt.expression;\n },\n};\n\nexport const program: Formatter<t.Program> = {\n code: str => str,\n validate: () => {},\n unwrap: ast => ast.program,\n};\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAAyD;EAAhDC;AAAyB,IAAAF,EAAA;AASlC,SAASG,sBAAsBA,CAC7BC,EAAyC,EAC3B;EACd,OAAO;IAMLC,IAAI,EAAEC,GAAG,IAAK,2BAA0BA,GAAI,EAAC;IAC7CC,QAAQ,EAAEA,CAAA,KA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;EACDV,MAAM,EAAEA,CAAC;IAAEE;EAAQ,CAAC,KAAK;IACvB,MAAM,CAACW,IAAI,CAAC,GAAGX,OAAO,CAACC,IAAI;IAC3BT,yBAAyB,CAACmB,IAAI,CAAC;IAC/B,OAAOA,IAAI,CAACF,UAAU;EACxB;AACF,CAAC;AAEM,MAAMT,OAA6B,GAAAI,OAAA,CAAAJ,OAAA,GAAG;EAC3CL,IAAI,EAAEC,GAAG,IAAIA,GAAG;EAChBC,QAAQ,EAAEA,CAAA,KAAM,CAAC,CAAC;EAClBC,MAAM,EAAEC,GAAG,IAAIA,GAAG,CAACC;AACrB,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["formatters","require","_builder","smart","exports","createTemplateBuilder","statement","statements","expression","program","_default","default","Object","assign","bind","undefined","ast"],"sources":["../src/index.ts"],"sourcesContent":["import * as formatters from \"./formatters.ts\";\nimport createTemplateBuilder from \"./builder.ts\";\n\nexport const smart = createTemplateBuilder(formatters.smart);\nexport const statement = createTemplateBuilder(formatters.statement);\nexport const statements = createTemplateBuilder(formatters.statements);\nexport const expression = createTemplateBuilder(formatters.expression);\nexport const program = createTemplateBuilder(formatters.program);\n\ntype DefaultTemplateBuilder = typeof smart & {\n smart: typeof smart;\n statement: typeof statement;\n statements: typeof statements;\n expression: typeof expression;\n program: typeof program;\n};\n\nexport default Object.assign(smart.bind(undefined) as DefaultTemplateBuilder, {\n smart,\n statement,\n statements,\n expression,\n program,\n ast: smart.ast,\n});\n\nexport type {\n PublicOpts as Options,\n PublicReplacements as Replacements,\n} from \"./options.ts\";\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEO,MAAME,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG,IAAAE,gBAAqB,EAACL,UAAU,CAACG,KAAK,CAAC;AACrD,MAAMG,SAAS,GAAAF,OAAA,CAAAE,SAAA,GAAG,IAAAD,gBAAqB,EAACL,UAAU,CAACM,SAAS,CAAC;AAC7D,MAAMC,UAAU,GAAAH,OAAA,CAAAG,UAAA,GAAG,IAAAF,gBAAqB,EAACL,UAAU,CAACO,UAAU,CAAC;AAC/D,MAAMC,UAAU,GAAAJ,OAAA,CAAAI,UAAA,GAAG,IAAAH,gBAAqB,EAACL,UAAU,CAACQ,UAAU,CAAC;AAC/D,MAAMC,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG,IAAAJ,gBAAqB,EAACL,UAAU,CAACS,OAAO,CAAC;AAAC,IAAAC,QAAA,GAAAN,OAAA,CAAAO,OAAA,GAUlDC,MAAM,CAACC,MAAM,CAACV,KAAK,CAACW,IAAI,CAACC,SAAS,CAAC,EAA4B;EAC5EZ,KAAK;EACLG,SAAS;EACTC,UAAU;EACVC,UAAU;EACVC,OAAO;EACPO,GAAG,EAAEb,KAAK,CAACa;AACb,CAAC,CAAC"}
|
1
|
+
{"version":3,"names":["formatters","require","_builder","smart","exports","createTemplateBuilder","statement","statements","expression","program","_default","default","Object","assign","bind","undefined","ast"],"sources":["../src/index.ts"],"sourcesContent":["import * as formatters from \"./formatters.ts\";\nimport createTemplateBuilder from \"./builder.ts\";\n\nexport const smart = createTemplateBuilder(formatters.smart);\nexport const statement = createTemplateBuilder(formatters.statement);\nexport const statements = createTemplateBuilder(formatters.statements);\nexport const expression = createTemplateBuilder(formatters.expression);\nexport const program = createTemplateBuilder(formatters.program);\n\ntype DefaultTemplateBuilder = typeof smart & {\n smart: typeof smart;\n statement: typeof statement;\n statements: typeof statements;\n expression: typeof expression;\n program: typeof program;\n};\n\nexport default Object.assign(smart.bind(undefined) as DefaultTemplateBuilder, {\n smart,\n statement,\n statements,\n expression,\n program,\n ast: smart.ast,\n});\n\nexport type {\n PublicOpts as Options,\n PublicReplacements as Replacements,\n} from \"./options.ts\";\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEO,MAAME,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG,IAAAE,gBAAqB,EAACL,UAAU,CAACG,KAAK,CAAC;AACrD,MAAMG,SAAS,GAAAF,OAAA,CAAAE,SAAA,GAAG,IAAAD,gBAAqB,EAACL,UAAU,CAACM,SAAS,CAAC;AAC7D,MAAMC,UAAU,GAAAH,OAAA,CAAAG,UAAA,GAAG,IAAAF,gBAAqB,EAACL,UAAU,CAACO,UAAU,CAAC;AAC/D,MAAMC,UAAU,GAAAJ,OAAA,CAAAI,UAAA,GAAG,IAAAH,gBAAqB,EAACL,UAAU,CAACQ,UAAU,CAAC;AAC/D,MAAMC,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG,IAAAJ,gBAAqB,EAACL,UAAU,CAACS,OAAO,CAAC;AAAC,IAAAC,QAAA,GAAAN,OAAA,CAAAO,OAAA,GAUlDC,MAAM,CAACC,MAAM,CAACV,KAAK,CAACW,IAAI,CAACC,SAAS,CAAC,EAA4B;EAC5EZ,KAAK;EACLG,SAAS;EACTC,UAAU;EACVC,UAAU;EACVC,OAAO;EACPO,GAAG,EAAEb,KAAK,CAACa;AACb,CAAC,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_options","require","_parse","_populate","literalTemplate","formatter","tpl","opts","metadata","names","buildLiteralData","arg","defaultReplacements","forEach","replacement","i","replacements","normalizeReplacements","Object","keys","key","hasOwnProperty","call","Error","unwrap","populatePlaceholders","assign","prefix","raw","join","includes","code","buildTemplateCode","parseAndBuildMetadata","parser","placeholderWhitelist","Set","concat","Array","from","placeholderPattern","preserveComments","syntacticPlaceholders","length","value","push"],"sources":["../src/literal.ts"],"sourcesContent":["import type { Formatter } from \"./formatters.ts\";\nimport type { TemplateReplacements, TemplateOpts } from \"./options.ts\";\nimport { normalizeReplacements } from \"./options.ts\";\nimport parseAndBuildMetadata from \"./parse.ts\";\nimport populatePlaceholders from \"./populate.ts\";\n\nexport default function literalTemplate<T>(\n formatter: Formatter<T>,\n tpl: Array<string>,\n opts: TemplateOpts,\n): (_: Array<unknown>) => (_: unknown) => T {\n const { metadata, names } = buildLiteralData(formatter, tpl, opts);\n\n return arg => {\n const defaultReplacements: TemplateReplacements = {};\n arg.forEach((replacement, i) => {\n defaultReplacements[names[i]] = replacement;\n });\n\n return (arg: unknown) => {\n const replacements = normalizeReplacements(arg);\n\n if (replacements) {\n Object.keys(replacements).forEach(key => {\n if (Object.hasOwn(defaultReplacements, key)) {\n throw new Error(\"Unexpected replacement overlap.\");\n }\n });\n }\n\n return formatter.unwrap(\n populatePlaceholders(\n metadata,\n replacements\n ? Object.assign(replacements, defaultReplacements)\n : defaultReplacements,\n ),\n );\n };\n };\n}\n\nfunction buildLiteralData<T>(\n formatter: Formatter<T>,\n tpl: Array<string>,\n opts: TemplateOpts,\n) {\n let prefix = \"BABEL_TPL$\";\n\n const raw = tpl.join(\"\");\n\n do {\n // If there are cases where the template already contains $$BABEL_TPL$0 or any other\n // matching pattern, we keep adding \"$$\" characters until a unique prefix\n // is found.\n prefix = \"$$\" + prefix;\n } while (raw.includes(prefix));\n\n const { names, code } = buildTemplateCode(tpl, prefix);\n\n const metadata = parseAndBuildMetadata(formatter, formatter.code(code), {\n parser: opts.parser,\n\n // Explicitly include our generated names in the whitelist so users never\n // have to think about whether their placeholder pattern will match.\n placeholderWhitelist: new Set(\n names.concat(\n opts.placeholderWhitelist ? Array.from(opts.placeholderWhitelist) : [],\n ),\n ),\n placeholderPattern: opts.placeholderPattern,\n preserveComments: opts.preserveComments,\n syntacticPlaceholders: opts.syntacticPlaceholders,\n });\n\n return { metadata, names };\n}\n\nfunction buildTemplateCode(\n tpl: Array<string>,\n prefix: string,\n): { names: Array<string>; code: string } {\n const names = [];\n\n let code = tpl[0];\n\n for (let i = 1; i < tpl.length; i++) {\n const value = `${prefix}${i - 1}`;\n names.push(value);\n\n code += value + tpl[i];\n }\n\n return { names, code };\n}\n"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAA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,CAACE,QAAQ,CAACH,MAAM,CAAC;EAE7B,MAAM;IAAElB,KAAK;IAAEsB;EAAK,CAAC,GAAGC,iBAAiB,CAAC1B,GAAG,EAAEqB,MAAM,CAAC;EAEtD,MAAMnB,QAAQ,GAAG,IAAAyB,cAAqB,EAAC5B,SAAS,EAAEA,SAAS,CAAC0B,IAAI,CAACA,IAAI,CAAC,EAAE;IACtEG,MAAM,EAAE3B,IAAI,CAAC2B,MAAM;IAInBC,oBAAoB,EAAE,IAAIC,GAAG,CAC3B3B,KAAK,CAAC4B,MAAM,CACV9B,IAAI,CAAC4B,oBAAoB,GAAGG,KAAK,CAACC,IAAI,CAAChC,IAAI,CAAC4B,oBAAoB,CAAC,GAAG,EACtE,CACF,CAAC;IACDK,kBAAkB,EAAEjC,IAAI,CAACiC,kBAAkB;IAC3CC,gBAAgB,EAAElC,IAAI,CAACkC,gBAAgB;IACvCC,qBAAqB,EAAEnC,IAAI,CAACmC;EAC9B,CAAC,CAAC;EAEF,OAAO;IAAElC,QAAQ;IAAEC;EAAM,CAAC;AAC5B;AAEA,SAASuB,iBAAiBA,CACxB1B,GAAkB,EAClBqB,MAAc,EAC0B;EACxC,MAAMlB,KAAK,GAAG,EAAE;EAEhB,IAAIsB,IAAI,GAAGzB,GAAG,CAAC,CAAC,CAAC;EAEjB,KAAK,IAAIS,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGT,GAAG,CAACqC,MAAM,EAAE5B,CAAC,EAAE,EAAE;IACnC,MAAM6B,KAAK,GAAI,GAAEjB,MAAO,GAAEZ,CAAC,GAAG,CAAE,EAAC;IACjCN,KAAK,CAACoC,IAAI,CAACD,KAAK,CAAC;IAEjBb,IAAI,IAAIa,KAAK,GAAGtC,GAAG,CAACS,CAAC,CAAC;EACxB;EAEA,OAAO;IAAEN,KAAK;IAAEsB;EAAK,CAAC;AACxB"}
|
1
|
+
{"version":3,"names":["_options","require","_parse","_populate","literalTemplate","formatter","tpl","opts","metadata","names","buildLiteralData","arg","defaultReplacements","forEach","replacement","i","replacements","normalizeReplacements","Object","keys","key","hasOwnProperty","call","Error","unwrap","populatePlaceholders","assign","prefix","raw","join","includes","code","buildTemplateCode","parseAndBuildMetadata","parser","placeholderWhitelist","Set","concat","Array","from","placeholderPattern","preserveComments","syntacticPlaceholders","length","value","push"],"sources":["../src/literal.ts"],"sourcesContent":["import type { Formatter } from \"./formatters.ts\";\nimport type { TemplateReplacements, TemplateOpts } from \"./options.ts\";\nimport { normalizeReplacements } from \"./options.ts\";\nimport parseAndBuildMetadata from \"./parse.ts\";\nimport populatePlaceholders from \"./populate.ts\";\n\nexport default function literalTemplate<T>(\n formatter: Formatter<T>,\n tpl: Array<string>,\n opts: TemplateOpts,\n): (_: Array<unknown>) => (_: unknown) => T {\n const { metadata, names } = buildLiteralData(formatter, tpl, opts);\n\n return arg => {\n const defaultReplacements: TemplateReplacements = {};\n arg.forEach((replacement, i) => {\n defaultReplacements[names[i]] = replacement;\n });\n\n return (arg: unknown) => {\n const replacements = normalizeReplacements(arg);\n\n if (replacements) {\n Object.keys(replacements).forEach(key => {\n if (Object.hasOwn(defaultReplacements, key)) {\n throw new Error(\"Unexpected replacement overlap.\");\n }\n });\n }\n\n return formatter.unwrap(\n populatePlaceholders(\n metadata,\n replacements\n ? Object.assign(replacements, defaultReplacements)\n : defaultReplacements,\n ),\n );\n };\n };\n}\n\nfunction buildLiteralData<T>(\n formatter: Formatter<T>,\n tpl: Array<string>,\n opts: TemplateOpts,\n) {\n let prefix = \"BABEL_TPL$\";\n\n const raw = tpl.join(\"\");\n\n do {\n // If there are cases where the template already contains $$BABEL_TPL$0 or any other\n // matching pattern, we keep adding \"$$\" characters until a unique prefix\n // is found.\n prefix = \"$$\" + prefix;\n } while (raw.includes(prefix));\n\n const { names, code } = buildTemplateCode(tpl, prefix);\n\n const metadata = parseAndBuildMetadata(formatter, formatter.code(code), {\n parser: opts.parser,\n\n // Explicitly include our generated names in the whitelist so users never\n // have to think about whether their placeholder pattern will match.\n placeholderWhitelist: new Set(\n names.concat(\n opts.placeholderWhitelist ? Array.from(opts.placeholderWhitelist) : [],\n ),\n ),\n placeholderPattern: opts.placeholderPattern,\n preserveComments: opts.preserveComments,\n syntacticPlaceholders: opts.syntacticPlaceholders,\n });\n\n return { metadata, names };\n}\n\nfunction buildTemplateCode(\n tpl: Array<string>,\n prefix: string,\n): { names: Array<string>; code: string } {\n const names = [];\n\n let code = tpl[0];\n\n for (let i = 1; i < tpl.length; i++) {\n const value = `${prefix}${i - 1}`;\n names.push(value);\n\n code += value + tpl[i];\n }\n\n return { names, code };\n}\n"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEe,SAASG,eAAeA,CACrCC,SAAuB,EACvBC,GAAkB,EAClBC,IAAkB,EACwB;EAC1C,MAAM;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAGC,gBAAgB,CAACL,SAAS,EAAEC,GAAG,EAAEC,IAAI,CAAC;EAElE,OAAOI,GAAG,IAAI;IACZ,MAAMC,mBAAyC,GAAG,CAAC,CAAC;IACpDD,GAAG,CAACE,OAAO,CAAC,CAACC,WAAW,EAAEC,CAAC,KAAK;MAC9BH,mBAAmB,CAACH,KAAK,CAACM,CAAC,CAAC,CAAC,GAAGD,WAAW;IAC7C,CAAC,CAAC;IAEF,OAAQH,GAAY,IAAK;MACvB,MAAMK,YAAY,GAAG,IAAAC,8BAAqB,EAACN,GAAG,CAAC;MAE/C,IAAIK,YAAY,EAAE;QAChBE,MAAM,CAACC,IAAI,CAACH,YAAY,CAAC,CAACH,OAAO,CAACO,GAAG,IAAI;UACvC,IAAIC,cAAA,CAAAC,IAAA,CAAcV,mBAAmB,EAAEQ,GAAG,CAAC,EAAE;YAC3C,MAAM,IAAIG,KAAK,CAAC,iCAAiC,CAAC;UACpD;QACF,CAAC,CAAC;MACJ;MAEA,OAAOlB,SAAS,CAACmB,MAAM,C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CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGT,GAAG,CAACqC,MAAM,EAAE5B,CAAC,EAAE,EAAE;IACnC,MAAM6B,KAAK,GAAI,GAAEjB,MAAO,GAAEZ,CAAC,GAAG,CAAE,EAAC;IACjCN,KAAK,CAACoC,IAAI,CAACD,KAAK,CAAC;IAEjBb,IAAI,IAAIa,KAAK,GAAGtC,GAAG,CAACS,CAAC,CAAC;EACxB;EAEA,OAAO;IAAEN,KAAK;IAAEsB;EAAK,CAAC;AACxB","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["merge","a","b","placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders","parser","Object","assign","validate","opts","Error","_ref","_objectWithoutPropertiesLoose","_excluded","Set","RegExp","undefined","normalizeReplacements","replacements","Array","isArray","reduce","acc","replacement","i"],"sources":["../src/options.ts"],"sourcesContent":["import type { ParserOptions as ParserOpts } from \"@babel/parser\";\n\nexport type { ParserOpts };\n\n/**\n * These are the options that 'babel-template' actually accepts and typechecks\n * when called. All other options are passed through to the parser.\n */\nexport type PublicOpts = {\n /**\n * A set of placeholder names to automatically accept, ignoring the given\n * pattern entirely.\n *\n * This option can be used when using %%foo%% style placeholders.\n */\n placeholderWhitelist?: Set<string>;\n /**\n * A pattern to search for when looking for Identifier and StringLiteral\n * nodes that can be replaced.\n *\n * 'false' will disable placeholder searching entirely, leaving only the\n * 'placeholderWhitelist' value to find replacements.\n *\n * Defaults to /^[_$A-Z0-9]+$/.\n *\n * This option can be used when using %%foo%% style placeholders.\n */\n placeholderPattern?: RegExp | false;\n /**\n * 'true' to pass through comments from the template into the resulting AST,\n * or 'false' to automatically discard comments. Defaults to 'false'.\n */\n preserveComments?: boolean;\n /**\n * 'true' to use %%foo%% style placeholders, 'false' to use legacy placeholders\n * described by placeholderPattern or placeholderWhitelist.\n * When it is not set, it behaves as 'true' if there are syntactic placeholders,\n * otherwise as 'false'.\n */\n syntacticPlaceholders?: boolean | null;\n};\n\nexport type TemplateOpts = {\n parser: ParserOpts;\n placeholderWhitelist?: Set<string>;\n placeholderPattern?: RegExp | false;\n preserveComments?: boolean;\n syntacticPlaceholders?: boolean;\n};\n\nexport function merge(a: TemplateOpts, b: TemplateOpts): TemplateOpts {\n const {\n placeholderWhitelist = a.placeholderWhitelist,\n placeholderPattern = a.placeholderPattern,\n preserveComments = a.preserveComments,\n syntacticPlaceholders = a.syntacticPlaceholders,\n } = b;\n\n return {\n parser: {\n ...a.parser,\n ...b.parser,\n },\n placeholderWhitelist,\n placeholderPattern,\n preserveComments,\n syntacticPlaceholders,\n };\n}\n\nexport function validate(opts: unknown): TemplateOpts {\n if (opts != null && typeof opts !== \"object\") {\n throw new Error(\"Unknown template options.\");\n }\n\n const {\n placeholderWhitelist,\n placeholderPattern,\n preserveComments,\n syntacticPlaceholders,\n ...parser\n } = opts || ({} as any);\n\n if (placeholderWhitelist != null && !(placeholderWhitelist instanceof Set)) {\n throw new Error(\n \"'.placeholderWhitelist' must be a Set, null, or undefined\",\n );\n }\n\n if (\n placeholderPattern != null &&\n !(placeholderPattern instanceof RegExp) &&\n placeholderPattern !== false\n ) {\n throw new Error(\n \"'.placeholderPattern' must be a RegExp, false, null, or undefined\",\n );\n }\n\n if (preserveComments != null && typeof preserveComments !== \"boolean\") {\n throw new Error(\n \"'.preserveComments' must be a boolean, null, or undefined\",\n );\n }\n\n if (\n syntacticPlaceholders != null &&\n typeof syntacticPlaceholders !== \"boolean\"\n ) {\n throw new Error(\n \"'.syntacticPlaceholders' must be a boolean, null, or undefined\",\n );\n }\n if (\n syntacticPlaceholders === true &&\n (placeholderWhitelist != null || placeholderPattern != null)\n ) {\n throw new Error(\n \"'.placeholderWhitelist' and '.placeholderPattern' aren't compatible\" +\n \" with '.syntacticPlaceholders: true'\",\n );\n }\n\n return {\n parser,\n placeholderWhitelist: placeholderWhitelist || undefined,\n placeholderPattern:\n placeholderPattern == null ? undefined : placeholderPattern,\n preserveComments: preserveComments == null ? undefined : preserveComments,\n syntacticPlaceholders:\n syntacticPlaceholders == null ? undefined : syntacticPlaceholders,\n };\n}\n\nexport type PublicReplacements = { [x: string]: unknown } | Array<unknown>;\nexport type TemplateReplacements = { [x: string]: unknown } | void;\n\nexport function normalizeReplacements(\n replacements: unknown,\n): TemplateReplacements {\n if (Array.isArray(replacements)) {\n return replacements.reduce((acc, replacement, i) => {\n acc[\"$\" + i] = replacement;\n return acc;\n }, {});\n } else if (typeof replacements === \"object\" || replacements == null) {\n return (replacements as any) || undefined;\n }\n\n throw new Error(\n \"Template replacements must be an array, object, null, or undefined\",\n );\n}\n"],"mappings":";;;;;;;;;;AAkDO,SAASA,KAAKA,CAACC,CAAe,EAAEC,CAAe,EAAgB;EACpE,MAAM;IACJC,oBAAoB,GAAGF,CAAC,CAACE,oBAAoB;IAC7CC,kBAAkB,GAAGH,CAAC,CAACG,kBAAkB;IACzCC,gBAAgB,GAAGJ,CAAC,CAACI,gBAAgB;IACrCC,qBAAqB,GAAGL,CAAC,CAACK;EAC5B,CAAC,GAAGJ,CAAC;EAEL,OAAO;IACLK,MAAM,EAAAC,MAAA,CAAAC,MAAA,KACDR,CAAC,CAACM,MAAM,EACRL,CAAC,CAACK,MAAM,CACZ;IACDJ,oBAAoB;IACpBC,kBAAkB;IAClBC,gBAAgB;IAChBC;EACF,CAAC;AACH;AAEO,SAASI,QAAQA,CAACC,IAAa,EAAgB;EACpD,IAAIA,IAAI,IAAI,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IAC5C,MAAM,IAAIC,KAAK,CAAC,2BAA2B,CAAC;EAC9C;EAEA,MAAAC,IAAA,GAMIF,IAAI,IAAK,CAAC,CAAS;IANjB;MACJR,oBAAoB;MACpBC,kBAAkB;MAClBC,gBAAgB;MAChBC;IAEF,CAAC,GAAAO,IAAA;IADIN,MAAM,GAAAO,6BAAA,CAAAD,IAAA,EAAAE,SAAA;EAGX,IAAIZ,oBAAoB,IAAI,IAAI,IAAI,EAAEA,oBAAo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AAC,MAAM,IAAI,OAAOJ,YAAY,KAAK,QAAQ,IAAIA,YAAY,IAAI,IAAI,EAAE;IACnE,OAAQA,YAAY,IAAYF,SAAS;EAC3C;EAEA,MAAM,IAAIN,KAAK,CACb,oEACF,CAAC;AACH"}
|
1
|
+
{"version":3,"names":["merge","a","b","placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders","parser","Object","assign","validate","opts","Error","_ref","_objectWithoutPropertiesLoose","_excluded","Set","RegExp","undefined","normalizeReplacements","replacements","Array","isArray","reduce","acc","replacement","i"],"sources":["../src/options.ts"],"sourcesContent":["import type { ParserOptions as ParserOpts } from \"@babel/parser\";\n\nexport type { ParserOpts };\n\n/**\n * These are the options that 'babel-template' actually accepts and typechecks\n * when called. All other options are passed through to the parser.\n */\nexport type PublicOpts = {\n /**\n * A set of placeholder names to automatically accept, ignoring the given\n * pattern entirely.\n *\n * This option can be used when using %%foo%% style placeholders.\n */\n placeholderWhitelist?: Set<string>;\n /**\n * A pattern to search for when looking for Identifier and StringLiteral\n * nodes that can be replaced.\n *\n * 'false' will disable placeholder searching entirely, leaving only the\n * 'placeholderWhitelist' value to find replacements.\n *\n * Defaults to /^[_$A-Z0-9]+$/.\n *\n * This option can be used when using %%foo%% style placeholders.\n */\n placeholderPattern?: RegExp | false;\n /**\n * 'true' to pass through comments from the template into the resulting AST,\n * or 'false' to automatically discard comments. Defaults to 'false'.\n */\n preserveComments?: boolean;\n /**\n * 'true' to use %%foo%% style placeholders, 'false' to use legacy placeholders\n * described by placeholderPattern or placeholderWhitelist.\n * When it is not set, it behaves as 'true' if there are syntactic placeholders,\n * otherwise as 'false'.\n */\n syntacticPlaceholders?: boolean | null;\n};\n\nexport type TemplateOpts = {\n parser: ParserOpts;\n placeholderWhitelist?: Set<string>;\n placeholderPattern?: RegExp | false;\n preserveComments?: boolean;\n syntacticPlaceholders?: boolean;\n};\n\nexport function merge(a: TemplateOpts, b: TemplateOpts): TemplateOpts {\n const {\n placeholderWhitelist = a.placeholderWhitelist,\n placeholderPattern = a.placeholderPattern,\n preserveComments = a.preserveComments,\n syntacticPlaceholders = a.syntacticPlaceholders,\n } = b;\n\n return {\n parser: {\n ...a.parser,\n ...b.parser,\n },\n placeholderWhitelist,\n placeholderPattern,\n preserveComments,\n syntacticPlaceholders,\n };\n}\n\nexport function validate(opts: unknown): TemplateOpts {\n if (opts != null && typeof opts !== \"object\") {\n throw new Error(\"Unknown template options.\");\n }\n\n const {\n placeholderWhitelist,\n placeholderPattern,\n preserveComments,\n syntacticPlaceholders,\n ...parser\n } = opts || ({} as any);\n\n if (placeholderWhitelist != null && !(placeholderWhitelist instanceof Set)) {\n throw new Error(\n \"'.placeholderWhitelist' must be a Set, null, or undefined\",\n );\n }\n\n if (\n placeholderPattern != null &&\n !(placeholderPattern instanceof RegExp) &&\n placeholderPattern !== false\n ) {\n throw new Error(\n \"'.placeholderPattern' must be a RegExp, false, null, or undefined\",\n );\n }\n\n if (preserveComments != null && typeof preserveComments !== \"boolean\") {\n throw new Error(\n \"'.preserveComments' must be a boolean, null, or undefined\",\n );\n }\n\n if (\n syntacticPlaceholders != null &&\n typeof syntacticPlaceholders !== \"boolean\"\n ) {\n throw new Error(\n \"'.syntacticPlaceholders' must be a boolean, null, or undefined\",\n );\n }\n if (\n syntacticPlaceholders === true &&\n (placeholderWhitelist != null || placeholderPattern != null)\n ) {\n throw new Error(\n \"'.placeholderWhitelist' and '.placeholderPattern' aren't compatible\" +\n \" with '.syntacticPlaceholders: true'\",\n );\n }\n\n return {\n parser,\n placeholderWhitelist: placeholderWhitelist || undefined,\n placeholderPattern:\n placeholderPattern == null ? undefined : placeholderPattern,\n preserveComments: preserveComments == null ? undefined : preserveComments,\n syntacticPlaceholders:\n syntacticPlaceholders == null ? undefined : syntacticPlaceholders,\n };\n}\n\nexport type PublicReplacements = { [x: string]: unknown } | Array<unknown>;\nexport type TemplateReplacements = { [x: string]: unknown } | void;\n\nexport function normalizeReplacements(\n replacements: unknown,\n): TemplateReplacements {\n if (Array.isArray(replacements)) {\n return replacements.reduce((acc, replacement, i) => {\n acc[\"$\" + i] = replacement;\n return acc;\n }, {});\n } else if (typeof replacements === \"object\" || replacements == null) {\n return (replacements as any) || undefined;\n }\n\n throw new Error(\n \"Template replacements must be an array, object, null, or undefined\",\n );\n}\n"],"mappings":";;;;;;;;;;AAkDO,SAASA,KAAKA,CAACC,CAAe,EAAEC,CAAe,EAAgB;EACpE,MAAM;IACJC,oBAAoB,GAAGF,CAAC,CAACE,oBAAoB;IAC7CC,kBAAkB,GAAGH,CAAC,CAACG,kBAAkB;IACzCC,gBAAgB,GAAGJ,CAAC,CAACI,gBAAgB;IACrCC,qBAAqB,GAAGL,CAAC,CAACK;EAC5B,CAAC,GAAGJ,CAAC;EAEL,OAAO;IACLK,MAAM,EAAAC,MAAA,CAAAC,MAAA,KACDR,CAAC,CAACM,MAAM,EACRL,CAAC,CAACK,MAAM,CACZ;IACDJ,oBAAoB;IACpBC,kBAAkB;IAClBC,gBAAgB;IAChBC;EACF,CAAC;AACH;AAEO,SAASI,QAAQA,CAACC,IAAa,EAAgB;EACpD,IAAIA,IAAI,IAAI,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IAC5C,MAAM,IAAIC,KAAK,CAAC,2BAA2B,CAAC;EAC9C;EAEA,MAAAC,IAAA,GAMIF,IAAI,IAAK,CAAC,CAAS;IANjB;MACJR,oBAAoB;MACpBC,kBAAkB;MAClBC,gBAAgB;MAChBC;IAEF,CAAC,GAAAO,IAAA;IADIN,MAAM,GAAAO,6BAAA,CAAAD,IAAA,EAAAE,SAAA;EAGX,IAAIZ,oBAAoB,IAAI,IAAI,IAAI,EAAEA,oBAAoB,YAAYa,GAAG,CAAC,EAAE;IAC1E,MAAM,IAAIJ,KAAK,CACb,2DACF,CAAC;EACH;EAEA,IACER,kBAAkB,IAAI,IAAI,IAC1B,EAAEA,kBAAkB,YAAYa,MAAM,CAAC,IACvCb,kBAAkB,KAAK,KAAK,EAC5B;I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 @@
|
|
1
|
-
{"version":3,"names":["_t","require","_parser","_codeFrame","isCallExpression","isExpressionStatement","isFunction","isIdentifier","isJSXIdentifier","isNewExpression","isPlaceholder","isStatement","isStringLiteral","removePropertiesDeep","traverse","PATTERN","parseAndBuildMetadata","formatter","code","opts","placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders","ast","parseWithCodeFrame","parser","validate","state","syntactic","placeholders","placeholderNames","Set","legacy","placeholderVisitorHandler","Object","assign","length","node","ancestors","_state$placeholderWhi","name","hasSyntacticPlaceholders","Error","value","test","has","slice","parent","key","type","expectedNode","push","resolve","resolveAncestors","isDuplicate","add","i","index","undefined","parserOpts","plugins","allowReturnOutsideFunction","allowSuperOutsideMethod","sourceType","parse","err","loc","message","codeFrameColumns","start"],"sources":["../src/parse.ts"],"sourcesContent":["import {\n isCallExpression,\n isExpressionStatement,\n isFunction,\n isIdentifier,\n isJSXIdentifier,\n isNewExpression,\n isPlaceholder,\n isStatement,\n isStringLiteral,\n removePropertiesDeep,\n traverse,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { TraversalAncestors } from \"@babel/types\";\nimport { parse } from \"@babel/parser\";\nimport { codeFrameColumns } from \"@babel/code-frame\";\nimport type { TemplateOpts, ParserOpts } from \"./options.ts\";\nimport type { Formatter } from \"./formatters.ts\";\n\nexport type Metadata = {\n ast: t.File;\n placeholders: Array<Placeholder>;\n placeholderNames: Set<string>;\n};\n\ntype PlaceholderType = \"string\" | \"param\" | \"statement\" | \"other\";\nexport type Placeholder = {\n name: string;\n resolve: (a: t.File) => { parent: t.Node; key: string; index?: number };\n type: PlaceholderType;\n isDuplicate: boolean;\n};\n\nconst PATTERN = /^[_$A-Z0-9]+$/;\n\nexport default function parseAndBuildMetadata<T>(\n formatter: Formatter<T>,\n code: string,\n opts: TemplateOpts,\n): Metadata {\n const {\n placeholderWhitelist,\n placeholderPattern,\n preserveComments,\n syntacticPlaceholders,\n } = opts;\n\n const ast = parseWithCodeFrame(code, opts.parser, syntacticPlaceholders);\n\n removePropertiesDeep(ast, {\n preserveComments,\n });\n\n formatter.validate(ast);\n\n const state: MetadataState = {\n syntactic: { placeholders: [], placeholderNames: new Set() },\n legacy: { placeholders: [], placeholderNames: new Set() },\n placeholderWhitelist,\n placeholderPattern,\n syntacticPlaceholders,\n };\n\n traverse(ast, placeholderVisitorHandler, state);\n\n return {\n ast,\n ...(state.syntactic.placeholders.length ? state.syntactic : state.legacy),\n };\n}\n\nfunction placeholderVisitorHandler(\n node: t.Node,\n ancestors: TraversalAncestors,\n state: MetadataState,\n) {\n let name: string;\n\n let hasSyntacticPlaceholders = state.syntactic.placeholders.length > 0;\n\n if (isPlaceholder(node)) {\n if (state.syntacticPlaceholders === false) {\n throw new Error(\n \"%%foo%%-style placeholders can't be used when \" +\n \"'.syntacticPlaceholders' is false.\",\n );\n }\n name = node.name.name;\n hasSyntacticPlaceholders = true;\n } else if (hasSyntacticPlaceholders || state.syntacticPlaceholders) {\n return;\n } else if (isIdentifier(node) || isJSXIdentifier(node)) {\n name = node.name;\n } else if (isStringLiteral(node)) {\n name = node.value;\n } else {\n return;\n }\n\n if (\n hasSyntacticPlaceholders &&\n (state.placeholderPattern != null || state.placeholderWhitelist != null)\n ) {\n // This check is also in options.js. We need it there to handle the default\n // .syntacticPlaceholders behavior.\n throw new Error(\n \"'.placeholderWhitelist' and '.placeholderPattern' aren't compatible\" +\n \" with '.syntacticPlaceholders: true'\",\n );\n }\n\n if (\n !hasSyntacticPlaceholders &&\n (state.placeholderPattern === false ||\n !(state.placeholderPattern || PATTERN).test(name)) &&\n !state.placeholderWhitelist?.has(name)\n ) {\n return;\n }\n\n // Keep our own copy of the ancestors so we can use it in .resolve().\n ancestors = ancestors.slice();\n\n const { node: parent, key } = ancestors[ancestors.length - 1];\n\n let type: PlaceholderType;\n if (\n isStringLiteral(node) ||\n isPlaceholder(node, { expectedNode: \"StringLiteral\" })\n ) {\n type = \"string\";\n } else if (\n (isNewExpression(parent) && key === \"arguments\") ||\n (isCallExpression(parent) && key === \"arguments\") ||\n (isFunction(parent) && key === \"params\")\n ) {\n type = \"param\";\n } else if (isExpressionStatement(parent) && !isPlaceholder(node)) {\n type = \"statement\";\n ancestors = ancestors.slice(0, -1);\n } else if (isStatement(node) && isPlaceholder(node)) {\n type = \"statement\";\n } else {\n type = \"other\";\n }\n\n const { placeholders, placeholderNames } = !hasSyntacticPlaceholders\n ? state.legacy\n : state.syntactic;\n\n placeholders.push({\n name,\n type,\n resolve: ast => resolveAncestors(ast, ancestors),\n isDuplicate: placeholderNames.has(name),\n });\n placeholderNames.add(name);\n}\n\nfunction resolveAncestors(ast: t.File, ancestors: TraversalAncestors) {\n let parent: t.Node = ast;\n for (let i = 0; i < ancestors.length - 1; i++) {\n const { key, index } = ancestors[i];\n\n if (index === undefined) {\n parent = (parent as any)[key];\n } else {\n parent = (parent as any)[key][index];\n }\n }\n\n const { key, index } = ancestors[ancestors.length - 1];\n\n return { parent, key, index };\n}\n\ntype MetadataState = {\n syntactic: {\n placeholders: Array<Placeholder>;\n placeholderNames: Set<string>;\n };\n legacy: {\n placeholders: Array<Placeholder>;\n placeholderNames: Set<string>;\n };\n placeholderWhitelist?: Set<string>;\n placeholderPattern?: RegExp | false;\n syntacticPlaceholders?: boolean;\n};\n\nfunction parseWithCodeFrame(\n code: string,\n parserOpts: ParserOpts,\n syntacticPlaceholders?: boolean,\n): t.File {\n const plugins = (parserOpts.plugins || []).slice();\n if (syntacticPlaceholders !== false) {\n plugins.push(\"placeholders\");\n }\n\n parserOpts = {\n allowReturnOutsideFunction: true,\n allowSuperOutsideMethod: true,\n sourceType: \"module\",\n ...parserOpts,\n plugins,\n };\n\n try {\n // @ts-expect-error todo: use babel-types ast typings in Babel parser\n return parse(code, parserOpts);\n } catch (err) {\n const loc = err.loc;\n if (loc) {\n err.message += \"\\n\" + codeFrameColumns(code, { start: loc });\n err.code = \"BABEL_TEMPLATE_PARSE_ERROR\";\n }\n throw err;\n }\n}\n"],"mappings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AAgB,EAACnD,IAAI,EAAE;QAAEoD,KAAK,EAAEH;MAAI,CAAC,CAAC;MAC5DD,GAAG,CAAChD,IAAI,GAAG,4BAA4B;IACzC;IACA,MAAMgD,GAAG;EACX;AACF"}
|
1
|
+
{"version":3,"names":["_t","require","_parser","_codeFrame","isCallExpression","isExpressionStatement","isFunction","isIdentifier","isJSXIdentifier","isNewExpression","isPlaceholder","isStatement","isStringLiteral","removePropertiesDeep","traverse","PATTERN","parseAndBuildMetadata","formatter","code","opts","placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders","ast","parseWithCodeFrame","parser","validate","state","syntactic","placeholders","placeholderNames","Set","legacy","placeholderVisitorHandler","Object","assign","length","node","ancestors","_state$placeholderWhi","name","hasSyntacticPlaceholders","Error","value","test","has","slice","parent","key","type","expectedNode","push","resolve","resolveAncestors","isDuplicate","add","i","index","undefined","parserOpts","plugins","allowReturnOutsideFunction","allowSuperOutsideMethod","sourceType","parse","err","loc","message","codeFrameColumns","start"],"sources":["../src/parse.ts"],"sourcesContent":["import {\n isCallExpression,\n isExpressionStatement,\n isFunction,\n isIdentifier,\n isJSXIdentifier,\n isNewExpression,\n isPlaceholder,\n isStatement,\n isStringLiteral,\n removePropertiesDeep,\n traverse,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { TraversalAncestors } from \"@babel/types\";\nimport { parse } from \"@babel/parser\";\nimport { codeFrameColumns } from \"@babel/code-frame\";\nimport type { TemplateOpts, ParserOpts } from \"./options.ts\";\nimport type { Formatter } from \"./formatters.ts\";\n\nexport type Metadata = {\n ast: t.File;\n placeholders: Array<Placeholder>;\n placeholderNames: Set<string>;\n};\n\ntype PlaceholderType = \"string\" | \"param\" | \"statement\" | \"other\";\nexport type Placeholder = {\n name: string;\n resolve: (a: t.File) => { parent: t.Node; key: string; index?: number };\n type: PlaceholderType;\n isDuplicate: boolean;\n};\n\nconst PATTERN = /^[_$A-Z0-9]+$/;\n\nexport default function parseAndBuildMetadata<T>(\n formatter: Formatter<T>,\n code: string,\n opts: TemplateOpts,\n): Metadata {\n const {\n placeholderWhitelist,\n placeholderPattern,\n preserveComments,\n syntacticPlaceholders,\n } = opts;\n\n const ast = parseWithCodeFrame(code, opts.parser, syntacticPlaceholders);\n\n removePropertiesDeep(ast, {\n preserveComments,\n });\n\n formatter.validate(ast);\n\n const state: MetadataState = {\n syntactic: { placeholders: [], placeholderNames: new Set() },\n legacy: { placeholders: [], placeholderNames: new Set() },\n placeholderWhitelist,\n placeholderPattern,\n syntacticPlaceholders,\n };\n\n traverse(ast, placeholderVisitorHandler, state);\n\n return {\n ast,\n ...(state.syntactic.placeholders.length ? state.syntactic : state.legacy),\n };\n}\n\nfunction placeholderVisitorHandler(\n node: t.Node,\n ancestors: TraversalAncestors,\n state: MetadataState,\n) {\n let name: string;\n\n let hasSyntacticPlaceholders = state.syntactic.placeholders.length > 0;\n\n if (isPlaceholder(node)) {\n if (state.syntacticPlaceholders === false) {\n throw new Error(\n \"%%foo%%-style placeholders can't be used when \" +\n \"'.syntacticPlaceholders' is false.\",\n );\n }\n name = node.name.name;\n hasSyntacticPlaceholders = true;\n } else if (hasSyntacticPlaceholders || state.syntacticPlaceholders) {\n return;\n } else if (isIdentifier(node) || isJSXIdentifier(node)) {\n name = node.name;\n } else if (isStringLiteral(node)) {\n name = node.value;\n } else {\n return;\n }\n\n if (\n hasSyntacticPlaceholders &&\n (state.placeholderPattern != null || state.placeholderWhitelist != null)\n ) {\n // This check is also in options.js. We need it there to handle the default\n // .syntacticPlaceholders behavior.\n throw new Error(\n \"'.placeholderWhitelist' and '.placeholderPattern' aren't compatible\" +\n \" with '.syntacticPlaceholders: true'\",\n );\n }\n\n if (\n !hasSyntacticPlaceholders &&\n (state.placeholderPattern === false ||\n !(state.placeholderPattern || PATTERN).test(name)) &&\n !state.placeholderWhitelist?.has(name)\n ) {\n return;\n }\n\n // Keep our own copy of the ancestors so we can use it in .resolve().\n ancestors = ancestors.slice();\n\n const { node: parent, key } = ancestors[ancestors.length - 1];\n\n let type: PlaceholderType;\n if (\n isStringLiteral(node) ||\n isPlaceholder(node, { expectedNode: \"StringLiteral\" })\n ) {\n type = \"string\";\n } else if (\n (isNewExpression(parent) && key === \"arguments\") ||\n (isCallExpression(parent) && key === \"arguments\") ||\n (isFunction(parent) && key === \"params\")\n ) {\n type = \"param\";\n } else if (isExpressionStatement(parent) && !isPlaceholder(node)) {\n type = \"statement\";\n ancestors = ancestors.slice(0, -1);\n } else if (isStatement(node) && isPlaceholder(node)) {\n type = \"statement\";\n } else {\n type = \"other\";\n }\n\n const { placeholders, placeholderNames } = !hasSyntacticPlaceholders\n ? state.legacy\n : state.syntactic;\n\n placeholders.push({\n name,\n type,\n resolve: ast => resolveAncestors(ast, ancestors),\n isDuplicate: placeholderNames.has(name),\n });\n placeholderNames.add(name);\n}\n\nfunction resolveAncestors(ast: t.File, ancestors: TraversalAncestors) {\n let parent: t.Node = ast;\n for (let i = 0; i < ancestors.length - 1; i++) {\n const { key, index } = ancestors[i];\n\n if (index === undefined) {\n parent = (parent as any)[key];\n } else {\n parent = (parent as any)[key][index];\n }\n }\n\n const { key, index } = ancestors[ancestors.length - 1];\n\n return { parent, key, index };\n}\n\ntype MetadataState = {\n syntactic: {\n placeholders: Array<Placeholder>;\n placeholderNames: Set<string>;\n };\n legacy: {\n placeholders: Array<Placeholder>;\n placeholderNames: Set<string>;\n };\n placeholderWhitelist?: Set<string>;\n placeholderPattern?: RegExp | false;\n syntacticPlaceholders?: boolean;\n};\n\nfunction parseWithCodeFrame(\n code: string,\n parserOpts: ParserOpts,\n syntacticPlaceholders?: boolean,\n): t.File {\n const plugins = (parserOpts.plugins || []).slice();\n if (syntacticPlaceholders !== false) {\n plugins.push(\"placeholders\");\n }\n\n parserOpts = {\n allowReturnOutsideFunction: true,\n allowSuperOutsideMethod: true,\n sourceType: \"module\",\n ...parserOpts,\n plugins,\n };\n\n try {\n // @ts-expect-error todo: use babel-types ast typings in Babel parser\n return parse(code, parserOpts);\n } catch (err) {\n const loc = err.loc;\n if (loc) {\n err.message += \"\\n\" + codeFrameColumns(code, { start: loc });\n err.code = \"BABEL_TEMPLATE_PARSE_ERROR\";\n }\n throw err;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAeA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAAqD;EAfnDG,gBAAgB;EAChBC,qBAAqB;EACrBC,UAAU;EACVC,YAAY;EACZC,eAAe;EACfC,eAAe;EACfC,aAAa;EACbC,WAAW;EACXC,eAAe;EACfC,oBAAoB;EACpBC;AAAQ,IAAAd,EAAA;AAuBV,MAAMe,OAAO,GAAG,eAAe;AAEhB,SAASC,qBAAqBA,CAC3CC,SAAuB,EACvBC,IAAY,EACZC,IAAkB,EACR;EACV,MAAM;IACJC,oBAAoB;IACpBC,kBAAkB;IAClBC,gBAAgB;IAChBC;EACF,CAAC,GAAGJ,IAAI;EAER,MAAMK,GAAG,GAAGC,kBAAkB,CAACP,IAAI,EAAEC,IAAI,CAACO,MAAM,EAAEH,qBAAqB,CAAC;EAExEV,oBAAoB,CAACW,GAAG,EAAE;IACxBF;EACF,CAAC,CAAC;EAEFL,SAAS,CAACU,QAAQ,CAACH,GAAG,CAAC;EAEvB,MAAMI,KAAoB,GAAG;IAC3BC,SAAS,EAAE;MAAEC,YAAY,EAAE,EAAE;MAAEC,gBAAgB,EAAE,IAAIC,GAAG,CAAC;IAAE,CAAC;IAC5DC,MAAM,EAAE;MAAEH,YAAY,EAAE,EAAE;MAAEC,gBAAgB,EAAE,IAAIC,GAAG,CAAC;IAAE,CAAC;IACzDZ,oBAAoB;IACpBC,kBAAkB;IAClBE;EACF,CAAC;EAEDT,QAAQ,CAACU,GAAG,EAAEU,yBAAyB,EAAEN,KAAK,CAAC;EAE/C,OAAAO,MAAA,CAAAC,MAAA;IACEZ;EAAG,GACCI,KAAK,CAACC,SAAS,CAACC,YAAY,CAACO,MAAM,GAAG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OM,GAAG,EAAE;IACZ,MAAMC,GAAG,GAAGD,GAAG,CAACC,GAAG;IACnB,IAAIA,GAAG,EAAE;MACPD,GAAG,CAACE,OAAO,IAAI,IAAI,GAAG,IAAAC,2BAAgB,EAACnD,IAAI,EAAE;QAAEoD,KAAK,EAAEH;MAAI,CAAC,CAAC;MAC5DD,GAAG,CAAChD,IAAI,GAAG,4BAA4B;IACzC;IACA,MAAMgD,GAAG;EACX;AACF","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_t","require","blockStatement","cloneNode","emptyStatement","expressionStatement","identifier","isStatement","isStringLiteral","stringLiteral","validate","populatePlaceholders","metadata","replacements","ast","placeholders","forEach","placeholder","hasOwnProperty","call","name","placeholderName","Error","Object","keys","key","placeholderNames","has","slice","reverse","applyReplacement","e","message","replacement","isDuplicate","Array","isArray","map","node","parent","index","resolve","type","undefined","items","splice"],"sources":["../src/populate.ts"],"sourcesContent":["import {\n blockStatement,\n cloneNode,\n emptyStatement,\n expressionStatement,\n identifier,\n isStatement,\n isStringLiteral,\n stringLiteral,\n validate,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport type { TemplateReplacements } from \"./options.ts\";\nimport type { Metadata, Placeholder } from \"./parse.ts\";\n\nexport default function populatePlaceholders(\n metadata: Metadata,\n replacements: TemplateReplacements,\n): t.File {\n const ast = cloneNode(metadata.ast);\n\n if (replacements) {\n metadata.placeholders.forEach(placeholder => {\n if (!Object.hasOwn(replacements, placeholder.name)) {\n const placeholderName = placeholder.name;\n\n throw new Error(\n `Error: No substitution given for \"${placeholderName}\". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])}\n - { placeholderPattern: /^${placeholderName}$/ }`,\n );\n }\n });\n Object.keys(replacements).forEach(key => {\n if (!metadata.placeholderNames.has(key)) {\n throw new Error(`Unknown substitution \"${key}\" given`);\n }\n });\n }\n\n // Process in reverse order so AST mutation doesn't change indices that\n // will be needed for later calls to `placeholder.resolve()`.\n metadata.placeholders\n .slice()\n .reverse()\n .forEach(placeholder => {\n try {\n applyReplacement(\n placeholder,\n ast,\n (replacements && replacements[placeholder.name]) || null,\n );\n } catch (e) {\n e.message = `@babel/template placeholder \"${placeholder.name}\": ${e.message}`;\n throw e;\n }\n });\n\n return ast;\n}\n\nfunction applyReplacement(\n placeholder: Placeholder,\n ast: t.File,\n replacement: any,\n) {\n // Track inserted nodes and clone them if they are inserted more than\n // once to avoid injecting the same node multiple times.\n if (placeholder.isDuplicate) {\n if (Array.isArray(replacement)) {\n replacement = replacement.map(node => cloneNode(node));\n } else if (typeof replacement === \"object\") {\n replacement = cloneNode(replacement);\n }\n }\n\n const { parent, key, index } = placeholder.resolve(ast);\n\n if (placeholder.type === \"string\") {\n if (typeof replacement === \"string\") {\n replacement = stringLiteral(replacement);\n }\n if (!replacement || !isStringLiteral(replacement)) {\n throw new Error(\"Expected string substitution\");\n }\n } else if (placeholder.type === \"statement\") {\n if (index === undefined) {\n if (!replacement) {\n replacement = emptyStatement();\n } else if (Array.isArray(replacement)) {\n replacement = blockStatement(replacement);\n } else if (typeof replacement === \"string\") {\n replacement = expressionStatement(identifier(replacement));\n } else if (!isStatement(replacement)) {\n replacement = expressionStatement(replacement);\n }\n } else {\n if (replacement && !Array.isArray(replacement)) {\n if (typeof replacement === \"string\") {\n replacement = identifier(replacement);\n }\n if (!isStatement(replacement)) {\n replacement = expressionStatement(replacement);\n }\n }\n }\n } else if (placeholder.type === \"param\") {\n if (typeof replacement === \"string\") {\n replacement = identifier(replacement);\n }\n\n if (index === undefined) throw new Error(\"Assertion failure.\");\n } else {\n if (typeof replacement === \"string\") {\n replacement = identifier(replacement);\n }\n if (Array.isArray(replacement)) {\n throw new Error(\"Cannot replace single expression with an array.\");\n }\n }\n\n if (index === undefined) {\n validate(parent, key, replacement);\n\n (parent as any)[key] = replacement;\n } else {\n const items: Array<t.Node> = (parent as any)[key].slice();\n\n if (placeholder.type === \"statement\" || placeholder.type === \"param\") {\n if (replacement == null) {\n items.splice(index, 1);\n } else if (Array.isArray(replacement)) {\n items.splice(index, 1, ...replacement);\n } else {\n items[index] = replacement;\n }\n } else {\n items[index] = replacement;\n }\n\n validate(parent, key, items);\n (parent as any)[key] = items;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAUsB;EATpBC,cAAc;EACdC,SAAS;EACTC,cAAc;EACdC,mBAAmB;EACnBC,UAAU;EACVC,WAAW;EACXC,eAAe;EACfC,aAAa;EACbC;AAAQ,IAAAV,EAAA;AAOK,SAASW,oBAAoBA,CAC1CC,QAAkB,EAClBC,YAAkC,EAC1B;EACR,MAAMC,GAAG,GAAGX,SAAS,CAACS,QAAQ,CAACE,GAAG,CAAC;EAEnC,IAAID,YAAY,EAAE;IAChBD,QAAQ,CAACG,YAAY,CAACC,OAAO,CAACC,WAAW,IAAI;MAC3C,IAAI,CAACC,cAAA,CAAAC,IAAA,CAAcN,YAAY,EAAEI,WAAW,CAACG,IAAI,CAAC,EAAE;QAClD,MAAMC,eAAe,GAAGJ,WAAW,CAACG,IAAI;QAExC,MAAM,IAAIE,KAAK,CACZ,qCAAoCD,eAAgB;AAC/D;AACA,6EAA6EA,eAAgB;AAC7F,wCAAwCA,eAAgB,MAChD,CAAC;MACH;IACF,CAAC,CAAC;IACFE,MAAM,CAACC,IAAI,CAACX,YAAY,CAAC,CAACG,OAAO,CAACS,GAAG,IAAI;MACvC,IAAI,CAACb,QAAQ,CAACc,gBAAgB,CAACC,GAAG,CAACF,GAAG,CAAC,EAAE;QACvC,MAAM,IAAIH,KAAK,CAAE,yBAAwBG,GAAI,SAAQ,CAAC;MACxD;IACF,CAAC,CAAC;EACJ;EAIAb,QAAQ,CAACG,YAAY,CAClBa,KAAK,CAAC,CAAC,CACPC,OAAO,CAAC,CAAC,CACTb,OAAO,CAACC,WAAW,IAAI;IACtB,IAAI;MACFa,gBAAgB,CACdb,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,MAAM,CAASd,GAAG,CAAC,GAAGQ,WAAW;EACpC,CAAC,MAAM;IACL,MAAMW,KAAoB,GAAIL,MAAM,CAASd,GAAG,CAAC,CAACG,KAAK,CAAC,CAAC;IAEzD,IAAIX,WAAW,CAACyB,IAAI,KAAK,WAAW,IAAIzB,WAAW,CAACyB,IAAI,KAAK,OAAO,EAAE;MACpE,IAAIT,WAAW,IAAI,IAAI,EAAE;QACvBW,KAAK,CAACC,MAAM,CAACL,KAAK,EAAE,CAAC,CAAC;MACxB,CAAC,MAAM,IAAIL,KAAK,CAACC,OAAO,CAACH,WAAW,CAAC,EAAE;QACrCW,KAAK,CAACC,MAAM,CAACL,KAAK,EAAE,CAAC,EAAE,GAAGP,WAAW,CAAC;MACxC,CAAC,MAAM;QACLW,KAAK,CAACJ,KAAK,CAAC,GAAGP,WAAW;MAC5B;IACF,CAAC,MAAM;MACLW,KAAK,CAACJ,KAAK,CAAC,GAAGP,WAAW;IAC5B;IAEAvB,QAAQ,CAAC6B,MAAM,EAAEd,GAAG,EAAEmB,KAAK,CAAC;IAC3BL,MAAM,CAASd,GAAG,CAAC,GAAGmB,KAAK;EAC9B;AACF"}
|
1
|
+
{"version":3,"names":["_t","require","blockStatement","cloneNode","emptyStatement","expressionStatement","identifier","isStatement","isStringLiteral","stringLiteral","validate","populatePlaceholders","metadata","replacements","ast","placeholders","forEach","placeholder","hasOwnProperty","call","name","placeholderName","Error","Object","keys","key","placeholderNames","has","slice","reverse","applyReplacement","e","message","replacement","isDuplicate","Array","isArray","map","node","parent","index","resolve","type","undefined","items","splice"],"sources":["../src/populate.ts"],"sourcesContent":["import {\n blockStatement,\n cloneNode,\n emptyStatement,\n expressionStatement,\n identifier,\n isStatement,\n isStringLiteral,\n stringLiteral,\n validate,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport type { TemplateReplacements } from \"./options.ts\";\nimport type { Metadata, Placeholder } from \"./parse.ts\";\n\nexport default function populatePlaceholders(\n metadata: Metadata,\n replacements: TemplateReplacements,\n): t.File {\n const ast = cloneNode(metadata.ast);\n\n if (replacements) {\n metadata.placeholders.forEach(placeholder => {\n if (!Object.hasOwn(replacements, placeholder.name)) {\n const placeholderName = placeholder.name;\n\n throw new Error(\n `Error: No substitution given for \"${placeholderName}\". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])}\n - { placeholderPattern: /^${placeholderName}$/ }`,\n );\n }\n });\n Object.keys(replacements).forEach(key => {\n if (!metadata.placeholderNames.has(key)) {\n throw new Error(`Unknown substitution \"${key}\" given`);\n }\n });\n }\n\n // Process in reverse order so AST mutation doesn't change indices that\n // will be needed for later calls to `placeholder.resolve()`.\n metadata.placeholders\n .slice()\n .reverse()\n .forEach(placeholder => {\n try {\n applyReplacement(\n placeholder,\n ast,\n (replacements && replacements[placeholder.name]) || null,\n );\n } catch (e) {\n e.message = `@babel/template placeholder \"${placeholder.name}\": ${e.message}`;\n throw e;\n }\n });\n\n return ast;\n}\n\nfunction applyReplacement(\n placeholder: Placeholder,\n ast: t.File,\n replacement: any,\n) {\n // Track inserted nodes and clone them if they are inserted more than\n // once to avoid injecting the same node multiple times.\n if (placeholder.isDuplicate) {\n if (Array.isArray(replacement)) {\n replacement = replacement.map(node => cloneNode(node));\n } else if (typeof replacement === \"object\") {\n replacement = cloneNode(replacement);\n }\n }\n\n const { parent, key, index } = placeholder.resolve(ast);\n\n if (placeholder.type === \"string\") {\n if (typeof replacement === \"string\") {\n replacement = stringLiteral(replacement);\n }\n if (!replacement || !isStringLiteral(replacement)) {\n throw new Error(\"Expected string substitution\");\n }\n } else if (placeholder.type === \"statement\") {\n if (index === undefined) {\n if (!replacement) {\n replacement = emptyStatement();\n } else if (Array.isArray(replacement)) {\n replacement = blockStatement(replacement);\n } else if (typeof replacement === \"string\") {\n replacement = expressionStatement(identifier(replacement));\n } else if (!isStatement(replacement)) {\n replacement = expressionStatement(replacement);\n }\n } else {\n if (replacement && !Array.isArray(replacement)) {\n if (typeof replacement === \"string\") {\n replacement = identifier(replacement);\n }\n if (!isStatement(replacement)) {\n replacement = expressionStatement(replacement);\n }\n }\n }\n } else if (placeholder.type === \"param\") {\n if (typeof replacement === \"string\") {\n replacement = identifier(replacement);\n }\n\n if (index === undefined) throw new Error(\"Assertion failure.\");\n } else {\n if (typeof replacement === \"string\") {\n replacement = identifier(replacement);\n }\n if (Array.isArray(replacement)) {\n throw new Error(\"Cannot replace single expression with an array.\");\n }\n }\n\n if (index === undefined) {\n validate(parent, key, replacement);\n\n (parent as any)[key] = replacement;\n } else {\n const items: Array<t.Node> = (parent as any)[key].slice();\n\n if (placeholder.type === \"statement\" || placeholder.type === \"param\") {\n if (replacement == null) {\n items.splice(index, 1);\n } else if (Array.isArray(replacement)) {\n items.splice(index, 1, ...replacement);\n } else {\n items[index] = replacement;\n }\n } else {\n items[index] = replacement;\n }\n\n validate(parent, key, items);\n (parent as any)[key] = items;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAUsB;EATpBC,cAAc;EACdC,SAAS;EACTC,cAAc;EACdC,mBAAmB;EACnBC,UAAU;EACVC,WAAW;EACXC,eAAe;EACfC,aAAa;EACbC;AAAQ,IAAAV,EAAA;AAOK,SAASW,oBAAoBA,CAC1CC,QAAkB,EAClBC,YAAkC,EAC1B;EACR,MAAMC,GAAG,GAAGX,SAAS,CAACS,QAAQ,CAACE,GAAG,CAAC;EAEnC,IAAID,YAAY,EAAE;IAChBD,QAAQ,CAACG,YAAY,CAACC,OAAO,CAACC,WAAW,IAAI;MAC3C,IAAI,CAACC,cAAA,CAAAC,IAAA,CAAcN,YAAY,EAAEI,WAAW,CAACG,IAAI,CAAC,EAAE;QAClD,MAAMC,eAAe,GAAGJ,WAAW,CAACG,IAAI;QAExC,MAAM,IAAIE,KAAK,CACZ,qCAAoCD,eAAgB;AAC/D;AACA,6EAA6EA,eAAgB;AAC7F,wCAAwCA,eAAg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IAAIO,KAAK,KAAKG,SAAS,EAAE,MAAM,IAAIrB,KAAK,CAAC,oBAAoB,CAAC;EAChE,CAAC,MAAM;IACL,IAAI,OAAOW,WAAW,KAAK,QAAQ,EAAE;MACnCA,WAAW,GAAG3B,UAAU,CAAC2B,WAAW,CAAC;IACvC;IACA,IAAIE,KAAK,CAACC,OAAO,CAACH,WAAW,CAAC,EAAE;MAC9B,MAAM,IAAIX,KAAK,CAAC,iDAAiD,CAAC;IACpE;EACF;EAEA,IAAIkB,KAAK,KAAKG,SAAS,EAAE;IACvBjC,QAAQ,CAAC6B,MAAM,EAAEd,GAAG,EAAEQ,WAAW,CAAC;IAEjCM,MAAM,CAASd,GAAG,CAAC,GAAGQ,WAAW;EACpC,CAAC,MAAM;IACL,MAAMW,KAAoB,GAAIL,MAAM,CAASd,GAAG,CAAC,CAACG,KAAK,CAAC,CAAC;IAEzD,IAAIX,WAAW,CAACyB,IAAI,KAAK,WAAW,IAAIzB,WAAW,CAACyB,IAAI,KAAK,OAAO,EAAE;MACpE,IAAIT,WAAW,IAAI,IAAI,EAAE;QACvBW,KAAK,CAACC,MAAM,CAACL,KAAK,EAAE,CAAC,CAAC;MACxB,CAAC,MAAM,IAAIL,KAAK,CAACC,OAAO,CAACH,WAAW,CAAC,EAAE;QACrCW,KAAK,CAACC,MAAM,CAACL,KAAK,EAAE,CAAC,EAAE,GAAGP,WAAW,CAAC;MACxC,CAAC,MAAM;QACLW,KAAK,CAACJ,KAAK,CAAC,GAAGP,WAAW;MAC5B;IACF,CAAC,MAAM;MACLW,KAAK,CAACJ,KAAK,CAAC,GAAGP,WAAW;IAC5B;IAEAvB,QAAQ,CAAC6B,MAAM,EAAEd,GAAG,EAAEmB,KAAK,CAAC;IAC3BL,MAAM,CAASd,GAAG,CAAC,GAAGmB,KAAK;EAC9B;AACF","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_options","require","_parse","_populate","stringTemplate","formatter","code","opts","metadata","arg","replacements","normalizeReplacements","parseAndBuildMetadata","unwrap","populatePlaceholders"],"sources":["../src/string.ts"],"sourcesContent":["import type { Formatter } from \"./formatters.ts\";\nimport type { TemplateOpts } from \"./options.ts\";\nimport type { Metadata } from \"./parse.ts\";\nimport { normalizeReplacements } from \"./options.ts\";\nimport parseAndBuildMetadata from \"./parse.ts\";\nimport populatePlaceholders from \"./populate.ts\";\n\nexport default function stringTemplate<T>(\n formatter: Formatter<T>,\n code: string,\n opts: TemplateOpts,\n): (arg?: unknown) => T {\n code = formatter.code(code);\n\n let metadata: Metadata;\n\n return (arg?: unknown) => {\n const replacements = normalizeReplacements(arg);\n\n if (!metadata) metadata = parseAndBuildMetadata(formatter, code, opts);\n\n return formatter.unwrap(populatePlaceholders(metadata, replacements));\n };\n}\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEe,SAASG,cAAcA,CACpCC,SAAuB,EACvBC,IAAY,EACZC,IAAkB,EACI;EACtBD,IAAI,GAAGD,SAAS,CAACC,IAAI,CAACA,IAAI,CAAC;EAE3B,IAAIE,QAAkB;EAEtB,OAAQC,GAAa,IAAK;IACxB,MAAMC,YAAY,GAAG,IAAAC,8BAAqB,EAACF,GAAG,CAAC;IAE/C,IAAI,CAACD,QAAQ,EAAEA,QAAQ,GAAG,IAAAI,cAAqB,EAACP,SAAS,EAAEC,IAAI,EAAEC,IAAI,CAAC;IAEtE,OAAOF,SAAS,CAACQ,MAAM,CAAC,IAAAC,iBAAoB,EAACN,QAAQ,EAAEE,YAAY,CAAC,CAAC;EACvE,CAAC;AACH"}
|
1
|
+
{"version":3,"names":["_options","require","_parse","_populate","stringTemplate","formatter","code","opts","metadata","arg","replacements","normalizeReplacements","parseAndBuildMetadata","unwrap","populatePlaceholders"],"sources":["../src/string.ts"],"sourcesContent":["import type { Formatter } from \"./formatters.ts\";\nimport type { TemplateOpts } from \"./options.ts\";\nimport type { Metadata } from \"./parse.ts\";\nimport { normalizeReplacements } from \"./options.ts\";\nimport parseAndBuildMetadata from \"./parse.ts\";\nimport populatePlaceholders from \"./populate.ts\";\n\nexport default function stringTemplate<T>(\n formatter: Formatter<T>,\n code: string,\n opts: TemplateOpts,\n): (arg?: unknown) => T {\n code = formatter.code(code);\n\n let metadata: Metadata;\n\n return (arg?: unknown) => {\n const replacements = normalizeReplacements(arg);\n\n if (!metadata) metadata = parseAndBuildMetadata(formatter, code, opts);\n\n return formatter.unwrap(populatePlaceholders(metadata, replacements));\n };\n}\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEe,SAASG,cAAcA,CACpCC,SAAuB,EACvBC,IAAY,EACZC,IAAkB,EACI;EACtBD,IAAI,GAAGD,SAAS,CAACC,IAAI,CAACA,IAAI,CAAC;EAE3B,IAAIE,QAAkB;EAEtB,OAAQC,GAAa,IAAK;IACxB,MAAMC,YAAY,GAAG,IAAAC,8BAAqB,EAACF,GAAG,CAAC;IAE/C,IAAI,CAACD,QAAQ,EAAEA,QAAQ,GAAG,IAAAI,cAAqB,EAACP,SAAS,EAAEC,IAAI,EAAEC,IAAI,CAAC;IAEtE,OAAOF,SAAS,CAACQ,MAAM,CAAC,IAAAC,iBAAoB,EAACN,QAAQ,EAAEE,YAAY,CAAC,CAAC;EACvE,CAAC;AACH","ignoreList":[]}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babel/template",
|
3
|
-
"version": "7.24.
|
3
|
+
"version": "7.24.7",
|
4
4
|
"description": "Generate an AST from a string template.",
|
5
5
|
"author": "The Babel Team (https://babel.dev/team)",
|
6
6
|
"homepage": "https://babel.dev/docs/en/next/babel-template",
|
@@ -16,9 +16,9 @@
|
|
16
16
|
},
|
17
17
|
"main": "./lib/index.js",
|
18
18
|
"dependencies": {
|
19
|
-
"@babel/code-frame": "^7.
|
20
|
-
"@babel/parser": "^7.24.
|
21
|
-
"@babel/types": "^7.24.
|
19
|
+
"@babel/code-frame": "^7.24.7",
|
20
|
+
"@babel/parser": "^7.24.7",
|
21
|
+
"@babel/types": "^7.24.7"
|
22
22
|
},
|
23
23
|
"engines": {
|
24
24
|
"node": ">=6.9.0"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_index","require","_t","getBindingIdentifiers","_getBindingIdentifiers","getOuterBindingIdentifiers","_getOuterBindingIdentifiers","numericLiteral","unaryExpression","NORMAL_COMPLETION","BREAK_COMPLETION","NormalCompletion","path","type","BreakCompletion","getOpposite","key","getSibling","addCompletionRecords","records","context","push","_getCompletionRecords","completionRecordForSwitch","cases","lastNormalCompletions","i","length","casePath","caseCompletions","normalCompletions","breakCompletions","c","normalCompletionToBreak","completions","forEach","replaceBreakStatementInBreakCompletion","reachable","isBreakStatement","label","replaceWith","remove","getStatementListCompletion","paths","canHaveBreak","newContext","Object","assign","inCaseClause","isBlockStatement","shouldPopulateBreak","statementCompletions","every","some","isDeclaration","pathCompletions","isVariableDeclaration","isIfStatement","get","isDoExpression","isFor","isWhile","isLabeledStatement","isProgram","isFunction","isTryStatement","isCatchClause","isSwitchStatement","isSwitchCase","getCompletionRecords","map","r","NodePath","parentPath","parent","container","listKey","setContext","getPrevSibling","getNextSibling","getAllNextSiblings","_key","sibling","siblings","node","getAllPrevSiblings","parts","split","_getKey","_getPattern","Array","isArray","_","part","duplicates","getBindingIdentifierPaths","outerOnly","search","ids","create","id","shift","keys","isIdentifier","_ids","name","isExportDeclaration","declaration","isFunctionDeclaration","isFunctionExpression","child","getOuterBindingIdentifierPaths"],"sources":["../../src/path/family.ts"],"sourcesContent":["// This file contains methods responsible for dealing with/retrieving children or siblings.\n\nimport type TraversalContext from \"../context.ts\";\nimport NodePath from \"./index.ts\";\nimport {\n getBindingIdentifiers as _getBindingIdentifiers,\n getOuterBindingIdentifiers as _getOuterBindingIdentifiers,\n numericLiteral,\n unaryExpression,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nconst NORMAL_COMPLETION = 0 as const;\nconst BREAK_COMPLETION = 1 as const;\n\ntype Completion = {\n path: NodePath;\n type: 0 | 1;\n};\n\ntype CompletionContext = {\n // whether the current context allows `break` statement. When it allows, we have\n // to search all the statements for potential `break`\n canHaveBreak: boolean;\n // whether the statement is an immediate descendant of a switch case clause\n inCaseClause: boolean;\n // whether the `break` statement record should be populated to upper level\n // when a `break` statement is an immediate descendant of a block statement, e.g.\n // `{ break }`, it can influence the control flow in the upper levels.\n shouldPopulateBreak: boolean;\n};\n\nfunction NormalCompletion(path: NodePath) {\n return { type: NORMAL_COMPLETION, path };\n}\n\nfunction BreakCompletion(path: NodePath) {\n return { type: BREAK_COMPLETION, path };\n}\n\nexport function getOpposite(this: NodePath): NodePath | null {\n if (this.key === \"left\") {\n return this.getSibling(\"right\");\n } else if (this.key === \"right\") {\n return this.getSibling(\"left\");\n }\n return null;\n}\n\nfunction addCompletionRecords(\n path: NodePath | null | undefined,\n records: Completion[],\n context: CompletionContext,\n): Completion[] {\n if (path) {\n records.push(..._getCompletionRecords(path, context));\n }\n return records;\n}\n\nfunction completionRecordForSwitch(\n cases: NodePath<t.SwitchCase>[],\n records: Completion[],\n context: CompletionContext,\n): Completion[] {\n // https://tc39.es/ecma262/#sec-runtime-semantics-caseblockevaluation\n let lastNormalCompletions: Completion[] = [];\n for (let i = 0; i < cases.length; i++) {\n const casePath = cases[i];\n const caseCompletions = _getCompletionRecords(casePath, context);\n const normalCompletions = [];\n const breakCompletions = [];\n for (const c of caseCompletions) {\n if (c.type === NORMAL_COMPLETION) {\n normalCompletions.push(c);\n }\n if (c.type === BREAK_COMPLETION) {\n breakCompletions.push(c);\n }\n }\n if (normalCompletions.length) {\n lastNormalCompletions = normalCompletions;\n }\n records.push(...breakCompletions);\n }\n records.push(...lastNormalCompletions);\n return records;\n}\n\nfunction normalCompletionToBreak(completions: Completion[]) {\n completions.forEach(c => {\n c.type = BREAK_COMPLETION;\n });\n}\n\n/**\n * Determine how we should handle the break statement for break completions\n *\n * @param {Completion[]} completions\n * @param {boolean} reachable Whether the break statement is reachable after\n we mark the normal completions _before_ the given break completions as the final\n completions. For example,\n `{ 0 }; break;` is transformed to `{ return 0 }; break;`, the `break` here is unreachable\n and thus can be removed without consequences. We may in the future reserve them instead since\n we do not consistently remove unreachable statements _after_ break\n `{ var x = 0 }; break;` is transformed to `{ var x = 0 }; return void 0;`, the `break` is reachable\n because we can not wrap variable declaration under a return statement\n */\nfunction replaceBreakStatementInBreakCompletion(\n completions: Completion[],\n reachable: boolean,\n) {\n completions.forEach(c => {\n if (c.path.isBreakStatement({ label: null })) {\n if (reachable) {\n c.path.replaceWith(unaryExpression(\"void\", numericLiteral(0)));\n } else {\n c.path.remove();\n }\n }\n });\n}\n\nfunction getStatementListCompletion(\n paths: NodePath[],\n context: CompletionContext,\n): Completion[] {\n const completions = [];\n if (context.canHaveBreak) {\n let lastNormalCompletions = [];\n for (let i = 0; i < paths.length; i++) {\n const path = paths[i];\n const newContext = { ...context, inCaseClause: false };\n if (\n path.isBlockStatement() &&\n (context.inCaseClause || // case test: { break }\n context.shouldPopulateBreak) // case test: { { break } }\n ) {\n newContext.shouldPopulateBreak = true;\n } else {\n newContext.shouldPopulateBreak = false;\n }\n const statementCompletions = _getCompletionRecords(path, newContext);\n if (\n statementCompletions.length > 0 &&\n // we can stop search `paths` when we have seen a `path` that is\n // effectively a `break` statement. Examples are\n // - `break`\n // - `if (true) { 1; break } else { 2; break }`\n // - `{ break }```\n // In other words, the paths after this `path` are unreachable\n statementCompletions.every(c => c.type === BREAK_COMPLETION)\n ) {\n if (\n lastNormalCompletions.length > 0 &&\n statementCompletions.every(c =>\n c.path.isBreakStatement({ label: null }),\n )\n ) {\n // when a break completion has a path as BreakStatement, it must be `{ break }`\n // whose completion value we can not determine, otherwise it would have been\n // replaced by `replaceBreakStatementInBreakCompletion`\n // When we have seen normal completions from the last statement\n // it is safe to stop populating break and mark normal completions as break\n normalCompletionToBreak(lastNormalCompletions);\n completions.push(...lastNormalCompletions);\n // Declarations have empty completion record, however they can not be nested\n // directly in return statement, i.e. `return (var a = 1)` is invalid.\n if (lastNormalCompletions.some(c => c.path.isDeclaration())) {\n completions.push(...statementCompletions);\n replaceBreakStatementInBreakCompletion(\n statementCompletions,\n /* reachable */ true,\n );\n }\n replaceBreakStatementInBreakCompletion(\n statementCompletions,\n /* reachable */ false,\n );\n } else {\n completions.push(...statementCompletions);\n if (!context.shouldPopulateBreak) {\n replaceBreakStatementInBreakCompletion(\n statementCompletions,\n /* reachable */ true,\n );\n }\n }\n break;\n }\n if (i === paths.length - 1) {\n completions.push(...statementCompletions);\n } else {\n lastNormalCompletions = [];\n for (let i = 0; i < statementCompletions.length; i++) {\n const c = statementCompletions[i];\n if (c.type === BREAK_COMPLETION) {\n completions.push(c);\n }\n if (c.type === NORMAL_COMPLETION) {\n lastNormalCompletions.push(c);\n }\n }\n }\n }\n } else if (paths.length) {\n // When we are in a context where `break` must not exist, we can skip linear\n // search on statement lists and assume that the last\n // non-variable-declaration statement determines the completion.\n for (let i = paths.length - 1; i >= 0; i--) {\n const pathCompletions = _getCompletionRecords(paths[i], context);\n if (\n pathCompletions.length > 1 ||\n (pathCompletions.length === 1 &&\n !pathCompletions[0].path.isVariableDeclaration())\n ) {\n completions.push(...pathCompletions);\n break;\n }\n }\n }\n return completions;\n}\n\nfunction _getCompletionRecords(\n path: NodePath,\n context: CompletionContext,\n): Completion[] {\n let records: Completion[] = [];\n if (path.isIfStatement()) {\n records = addCompletionRecords(path.get(\"consequent\"), records, context);\n records = addCompletionRecords(path.get(\"alternate\"), records, context);\n } else if (\n path.isDoExpression() ||\n path.isFor() ||\n path.isWhile() ||\n path.isLabeledStatement()\n ) {\n return addCompletionRecords(path.get(\"body\"), records, context);\n } else if (path.isProgram() || path.isBlockStatement()) {\n return getStatementListCompletion(path.get(\"body\"), context);\n } else if (path.isFunction()) {\n return _getCompletionRecords(path.get(\"body\"), context);\n } else if (path.isTryStatement()) {\n records = addCompletionRecords(path.get(\"block\"), records, context);\n records = addCompletionRecords(path.get(\"handler\"), records, context);\n } else if (path.isCatchClause()) {\n return addCompletionRecords(path.get(\"body\"), records, context);\n } else if (path.isSwitchStatement()) {\n return completionRecordForSwitch(path.get(\"cases\"), records, context);\n } else if (path.isSwitchCase()) {\n return getStatementListCompletion(path.get(\"consequent\"), {\n canHaveBreak: true,\n shouldPopulateBreak: false,\n inCaseClause: true,\n });\n } else if (path.isBreakStatement()) {\n records.push(BreakCompletion(path));\n } else {\n records.push(NormalCompletion(path));\n }\n\n return records;\n}\n\n/**\n * Retrieve the completion records of a given path.\n * Note: to ensure proper support on `break` statement, this method\n * will manipulate the AST around the break statement. Do not call the method\n * twice for the same path.\n *\n * @export\n * @param {NodePath} this\n * @returns {NodePath[]} Completion records\n */\nexport function getCompletionRecords(this: NodePath): NodePath[] {\n const records = _getCompletionRecords(this, {\n canHaveBreak: false,\n shouldPopulateBreak: false,\n inCaseClause: false,\n });\n return records.map(r => r.path);\n}\n\nexport function getSibling(this: NodePath, key: string | number): NodePath {\n return NodePath.get({\n parentPath: this.parentPath,\n parent: this.parent,\n container: this.container,\n listKey: this.listKey,\n key: key,\n }).setContext(this.context);\n}\n\nexport function getPrevSibling(this: NodePath): NodePath {\n // @ts-expect-error todo(flow->ts) this.key could be a string\n return this.getSibling(this.key - 1);\n}\n\nexport function getNextSibling(this: NodePath): NodePath {\n // @ts-expect-error todo(flow->ts) this.key could be a string\n return this.getSibling(this.key + 1);\n}\n\nexport function getAllNextSiblings(this: NodePath): NodePath[] {\n // @ts-expect-error todo(flow->ts) this.key could be a string\n let _key: number = this.key;\n let sibling = this.getSibling(++_key);\n const siblings = [];\n while (sibling.node) {\n siblings.push(sibling);\n sibling = this.getSibling(++_key);\n }\n return siblings;\n}\n\nexport function getAllPrevSiblings(this: NodePath): NodePath[] {\n // @ts-expect-error todo(flow->ts) this.key could be a string\n let _key: number = this.key;\n let sibling = this.getSibling(--_key);\n const siblings = [];\n while (sibling.node) {\n siblings.push(sibling);\n sibling = this.getSibling(--_key);\n }\n return siblings;\n}\n\n// convert \"1\" to 1 (string index to number index)\ntype MaybeToIndex<T extends string> = T extends `${bigint}` ? number : T;\n\ntype Pattern<Obj extends string, Prop extends string> = `${Obj}.${Prop}`;\n\n// split \"body.body.1\" to [\"body\", \"body\", 1]\ntype Split<P extends string> =\n P extends Pattern<infer O, infer U>\n ? [MaybeToIndex<O>, ...Split<U>]\n : [MaybeToIndex<P>];\n\n// traverse the Node with tuple path [\"body\", \"body\", 1]\n// Path should be created with Split\ntype Trav<\n Node extends t.Node | t.Node[],\n Path extends unknown[],\n> = Path extends [infer K, ...infer R]\n ? K extends keyof Node\n ? Node[K] extends t.Node | t.Node[]\n ? R extends []\n ? Node[K]\n : Trav<Node[K], R>\n : never\n : never\n : never;\n\ntype ToNodePath<T> =\n T extends Array<t.Node | null | undefined>\n ? Array<NodePath<T[number]>>\n : T extends t.Node | null | undefined\n ? NodePath<T>\n : never;\n\nfunction get<T extends NodePath, K extends keyof T[\"node\"]>(\n this: T,\n key: K,\n context?: boolean | TraversalContext,\n): T extends any\n ? T[\"node\"][K] extends Array<t.Node | null | undefined>\n ? Array<NodePath<T[\"node\"][K][number]>>\n : T[\"node\"][K] extends t.Node | null | undefined\n ? NodePath<T[\"node\"][K]>\n : never\n : never;\n\nfunction get<T extends NodePath, K extends string>(\n this: T,\n key: K,\n context?: boolean | TraversalContext,\n): T extends any ? ToNodePath<Trav<T[\"node\"], Split<K>>> : never;\n\nfunction get(\n this: NodePath,\n key: string,\n context?: true | TraversalContext,\n): NodePath | NodePath[];\n\nfunction get(\n this: NodePath,\n key: string,\n context: true | TraversalContext = true,\n): NodePath | NodePath[] {\n if (context === true) context = this.context;\n const parts = key.split(\".\");\n if (parts.length === 1) {\n // \"foo\"\n // @ts-expect-error key may not index T\n return this._getKey(key, context);\n } else {\n // \"foo.bar\"\n return this._getPattern(parts, context);\n }\n}\n\nexport { get };\n\nexport function _getKey<T extends t.Node>(\n this: NodePath<T>,\n key: keyof T & string,\n context?: TraversalContext,\n): NodePath | NodePath[] {\n const node = this.node as T;\n const container = node[key];\n\n if (Array.isArray(container)) {\n // requested a container so give them all the paths\n return container.map((_, i) => {\n return NodePath.get({\n listKey: key,\n parentPath: this,\n parent: node,\n container: container,\n key: i,\n }).setContext(context);\n });\n } else {\n return NodePath.get({\n parentPath: this,\n parent: node,\n container: node,\n key: key,\n }).setContext(context);\n }\n}\n\nexport function _getPattern(\n this: NodePath,\n parts: string[],\n context?: TraversalContext,\n): NodePath | NodePath[] {\n let path: NodePath | NodePath[] = this;\n for (const part of parts) {\n if (part === \".\") {\n // @ts-expect-error todo(flow-ts): Can path be an array here?\n path = path.parentPath;\n } else {\n if (Array.isArray(path)) {\n // @ts-expect-error part may not index path\n path = path[part];\n } else {\n path = path.get(part, context);\n }\n }\n }\n return path;\n}\n\nfunction getBindingIdentifiers(\n duplicates: true,\n): Record<string, t.Identifier[]>;\nfunction getBindingIdentifiers(\n duplicates?: false,\n): Record<string, t.Identifier>;\nfunction getBindingIdentifiers(\n duplicates: boolean,\n): Record<string, t.Identifier[] | t.Identifier>;\n\nfunction getBindingIdentifiers(\n this: NodePath,\n duplicates?: boolean,\n): Record<string, t.Identifier[] | t.Identifier> {\n return _getBindingIdentifiers(this.node, duplicates);\n}\n\nexport { getBindingIdentifiers };\n\nfunction getOuterBindingIdentifiers(\n duplicates: true,\n): Record<string, t.Identifier[]>;\nfunction getOuterBindingIdentifiers(\n duplicates?: false,\n): Record<string, t.Identifier>;\nfunction getOuterBindingIdentifiers(\n duplicates: boolean,\n): Record<string, t.Identifier[] | t.Identifier>;\n\nfunction getOuterBindingIdentifiers(\n this: NodePath,\n duplicates?: boolean,\n): Record<string, t.Identifier[] | t.Identifier> {\n return _getOuterBindingIdentifiers(this.node, duplicates);\n}\n\nexport { getOuterBindingIdentifiers };\n\nfunction getBindingIdentifierPaths(\n duplicates: true,\n outerOnly?: boolean,\n): Record<string, NodePath<t.Identifier>[]>;\nfunction getBindingIdentifierPaths(\n duplicates: false,\n outerOnly?: boolean,\n): Record<string, NodePath<t.Identifier>>;\nfunction getBindingIdentifierPaths(\n duplicates?: boolean,\n outerOnly?: boolean,\n): Record<string, NodePath<t.Identifier> | NodePath<t.Identifier>[]>;\n\n// original source - https://github.com/babel/babel/blob/main/packages/babel-types/src/retrievers/getBindingIdentifiers.js\n// path.getBindingIdentifiers returns nodes where the following re-implementation returns paths\nfunction getBindingIdentifierPaths(\n this: NodePath,\n duplicates: boolean = false,\n outerOnly: boolean = false,\n): Record<string, NodePath<t.Identifier> | NodePath<t.Identifier>[]> {\n const path = this;\n const search = [path];\n const ids = Object.create(null);\n\n while (search.length) {\n const id = search.shift();\n if (!id) continue;\n if (!id.node) continue;\n\n const keys =\n // @ts-expect-error _getBindingIdentifiers.keys do not cover all node types\n _getBindingIdentifiers.keys[id.node.type];\n\n if (id.isIdentifier()) {\n if (duplicates) {\n const _ids = (ids[id.node.name] = ids[id.node.name] || []);\n _ids.push(id);\n } else {\n ids[id.node.name] = id;\n }\n continue;\n }\n\n if (id.isExportDeclaration()) {\n const declaration = id.get(\"declaration\");\n if (declaration.isDeclaration()) {\n search.push(declaration);\n }\n continue;\n }\n\n if (outerOnly) {\n if (id.isFunctionDeclaration()) {\n search.push(id.get(\"id\"));\n continue;\n }\n if (id.isFunctionExpression()) {\n continue;\n }\n }\n\n if (keys) {\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const child = id.get(key);\n if (Array.isArray(child)) {\n search.push(...child);\n } else if (child.node) {\n search.push(child);\n }\n }\n }\n }\n\n return ids;\n}\n\nexport { getBindingIdentifierPaths };\n\nfunction getOuterBindingIdentifierPaths(\n duplicates: true,\n): Record<string, NodePath<t.Identifier>[]>;\nfunction getOuterBindingIdentifierPaths(\n duplicates?: false,\n): Record<string, NodePath<t.Identifier>>;\nfunction getOuterBindingIdentifierPaths(\n duplicates?: boolean,\n): Record<string, NodePath<t.Identifier> | NodePath<t.Identifier>[]>;\n\nfunction getOuterBindingIdentifierPaths(\n this: NodePath,\n duplicates: boolean = false,\n) {\n return this.getBindingIdentifierPaths(duplicates, true);\n}\n\nexport { getOuterBindingIdentifierPaths };\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAGA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAKsB;EAJpBE,qBAAqB,EAAIC,sBAAsB;EAC/CC,0BAA0B,EAAIC,2BAA2B;EACzDC,cAAc;EACdC;AAAe,IAAAN,EAAA;AAIjB,MAAMO,iBAAiB,GAAG,CAAU;AACpC,MAAMC,gBAAgB,GAAG,CAAU;AAmBnC,SAASC,gBAAgBA,CAACC,IAAc,EAAE;EACxC,OAAO;IAAEC,IAAI,EAAEJ,iBAAiB;IAAEG;EAAK,CAAC;AAC1C;AAEA,SAASE,eAAeA,CAACF,IAAc,EAAE;EACvC,OAAO;IAAEC,IAAI,EAAEH,gBAAgB;IAAEE;EAAK,CAAC;AACzC;AAEO,SAASG,WAAWA,CAAA,EAAkC;EAC3D,IAAI,IAAI,CAACC,GAAG,KAAK,MAAM,EAAE;IACvB,OAAO,IAAI,CAACC,UAAU,CAAC,OAAO,CAAC;EACjC,CAAC,MAAM,IAAI,IAAI,CAACD,GAAG,KAAK,OAAO,EAAE;IAC/B,OAAO,IAAI,CAACC,UAAU,CAAC,MAAM,CAAC;EAChC;EACA,OAAO,IAAI;AACb;AAEA,SAASC,oBAAoBA,CAC3BN,IAAiC,EACjCO,OAAqB,EACrBC,OAA0B,EACZ;EACd,IAAIR,IAAI,EAAE;IACRO,OAAO,CAACE,IAAI,CAAC,GAAGC,qBAAqB,CAACV,IAAI,EAAEQ,OAAO,CAAC,CAAC;EACvD;EACA,OAAOD,OAAO;AAChB;AAEA,SAASI,yBAAyBA,CAChCC,KAA+B,EAC/BL,OAAqB,EACrBC,OAA0B,EACZ;EAEd,IAAIK,qB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C1C,GAAG,CAAC1C,GAAG,CAAC;QACzB,IAAI0E,KAAK,CAACC,OAAO,CAACmB,KAAK,CAAC,EAAE;UACxBb,MAAM,CAAC5E,IAAI,CAAC,GAAGyF,KAAK,CAAC;QACvB,CAAC,MAAM,IAAIA,KAAK,CAAC1B,IAAI,EAAE;UACrBa,MAAM,CAAC5E,IAAI,CAACyF,KAAK,CAAC;QACpB;MACF;IACF;EACF;EAEA,OAAOZ,GAAG;AACZ;AAcA,SAASa,8BAA8BA,CAErCjB,UAAmB,GAAG,KAAK,EAC3B;EACA,OAAO,IAAI,CAACC,yBAAyB,CAACD,UAAU,EAAE,IAAI,CAAC;AACzD","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_index","require","_t","getBindingIdentifiers","_getBindingIdentifiers","getOuterBindingIdentifiers","_getOuterBindingIdentifiers","numericLiteral","unaryExpression","NORMAL_COMPLETION","BREAK_COMPLETION","NormalCompletion","path","type","BreakCompletion","getOpposite","key","getSibling","addCompletionRecords","records","context","push","_getCompletionRecords","completionRecordForSwitch","cases","lastNormalCompletions","i","length","casePath","caseCompletions","normalCompletions","breakCompletions","c","normalCompletionToBreak","completions","forEach","replaceBreakStatementInBreakCompletion","reachable","isBreakStatement","label","replaceWith","remove","getStatementListCompletion","paths","canHaveBreak","newContext","Object","assign","inCaseClause","isBlockStatement","shouldPopulateBreak","statementCompletions","every","some","isDeclaration","pathCompletions","isVariableDeclaration","isIfStatement","get","isDoExpression","isFor","isWhile","isLabeledStatement","isProgram","isFunction","isTryStatement","isCatchClause","isSwitchStatement","isSwitchCase","getCompletionRecords","map","r","NodePath","parentPath","parent","container","listKey","setContext","getPrevSibling","getNextSibling","getAllNextSiblings","_key","sibling","siblings","node","getAllPrevSiblings","parts","split","_getKey","_getPattern","Array","isArray","_","part","duplicates","getBindingIdentifierPaths","outerOnly","search","ids","create","id","shift","keys","isIdentifier","_ids","name","isExportDeclaration","declaration","isFunctionDeclaration","isFunctionExpression","child","getOuterBindingIdentifierPaths"],"sources":["../../src/path/family.ts"],"sourcesContent":["// This file contains methods responsible for dealing with/retrieving children or siblings.\n\nimport type TraversalContext from \"../context.ts\";\nimport NodePath from \"./index.ts\";\nimport {\n getBindingIdentifiers as _getBindingIdentifiers,\n getOuterBindingIdentifiers as _getOuterBindingIdentifiers,\n numericLiteral,\n unaryExpression,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nconst NORMAL_COMPLETION = 0;\nconst BREAK_COMPLETION = 1;\n\ntype Completion = {\n path: NodePath;\n type: 0 | 1;\n};\n\ntype CompletionContext = {\n // whether the current context allows `break` statement. When it allows, we have\n // to search all the statements for potential `break`\n canHaveBreak: boolean;\n // whether the statement is an immediate descendant of a switch case clause\n inCaseClause: boolean;\n // whether the `break` statement record should be populated to upper level\n // when a `break` statement is an immediate descendant of a block statement, e.g.\n // `{ break }`, it can influence the control flow in the upper levels.\n shouldPopulateBreak: boolean;\n};\n\nfunction NormalCompletion(path: NodePath): Completion {\n return { type: NORMAL_COMPLETION, path };\n}\n\nfunction BreakCompletion(path: NodePath): Completion {\n return { type: BREAK_COMPLETION, path };\n}\n\nexport function getOpposite(this: NodePath): NodePath | null {\n if (this.key === \"left\") {\n return this.getSibling(\"right\");\n } else if (this.key === \"right\") {\n return this.getSibling(\"left\");\n }\n return null;\n}\n\nfunction addCompletionRecords(\n path: NodePath | null | undefined,\n records: Completion[],\n context: CompletionContext,\n): Completion[] {\n if (path) {\n records.push(..._getCompletionRecords(path, context));\n }\n return records;\n}\n\nfunction completionRecordForSwitch(\n cases: NodePath<t.SwitchCase>[],\n records: Completion[],\n context: CompletionContext,\n): Completion[] {\n // https://tc39.es/ecma262/#sec-runtime-semantics-caseblockevaluation\n let lastNormalCompletions: Completion[] = [];\n for (let i = 0; i < cases.length; i++) {\n const casePath = cases[i];\n const caseCompletions = _getCompletionRecords(casePath, context);\n const normalCompletions = [];\n const breakCompletions = [];\n for (const c of caseCompletions) {\n if (c.type === NORMAL_COMPLETION) {\n normalCompletions.push(c);\n }\n if (c.type === BREAK_COMPLETION) {\n breakCompletions.push(c);\n }\n }\n if (normalCompletions.length) {\n lastNormalCompletions = normalCompletions;\n }\n records.push(...breakCompletions);\n }\n records.push(...lastNormalCompletions);\n return records;\n}\n\nfunction normalCompletionToBreak(completions: Completion[]) {\n completions.forEach(c => {\n c.type = BREAK_COMPLETION;\n });\n}\n\n/**\n * Determine how we should handle the break statement for break completions\n *\n * @param {Completion[]} completions\n * @param {boolean} reachable Whether the break statement is reachable after\n we mark the normal completions _before_ the given break completions as the final\n completions. For example,\n `{ 0 }; break;` is transformed to `{ return 0 }; break;`, the `break` here is unreachable\n and thus can be removed without consequences. We may in the future reserve them instead since\n we do not consistently remove unreachable statements _after_ break\n `{ var x = 0 }; break;` is transformed to `{ var x = 0 }; return void 0;`, the `break` is reachable\n because we can not wrap variable declaration under a return statement\n */\nfunction replaceBreakStatementInBreakCompletion(\n completions: Completion[],\n reachable: boolean,\n) {\n completions.forEach(c => {\n if (c.path.isBreakStatement({ label: null })) {\n if (reachable) {\n c.path.replaceWith(unaryExpression(\"void\", numericLiteral(0)));\n } else {\n c.path.remove();\n }\n }\n });\n}\n\nfunction getStatementListCompletion(\n paths: NodePath[],\n context: CompletionContext,\n): Completion[] {\n const completions = [];\n if (context.canHaveBreak) {\n let lastNormalCompletions = [];\n for (let i = 0; i < paths.length; i++) {\n const path = paths[i];\n const newContext = { ...context, inCaseClause: false };\n if (\n path.isBlockStatement() &&\n (context.inCaseClause || // case test: { break }\n context.shouldPopulateBreak) // case test: { { break } }\n ) {\n newContext.shouldPopulateBreak = true;\n } else {\n newContext.shouldPopulateBreak = false;\n }\n const statementCompletions = _getCompletionRecords(path, newContext);\n if (\n statementCompletions.length > 0 &&\n // we can stop search `paths` when we have seen a `path` that is\n // effectively a `break` statement. Examples are\n // - `break`\n // - `if (true) { 1; break } else { 2; break }`\n // - `{ break }```\n // In other words, the paths after this `path` are unreachable\n statementCompletions.every(c => c.type === BREAK_COMPLETION)\n ) {\n if (\n lastNormalCompletions.length > 0 &&\n statementCompletions.every(c =>\n c.path.isBreakStatement({ label: null }),\n )\n ) {\n // when a break completion has a path as BreakStatement, it must be `{ break }`\n // whose completion value we can not determine, otherwise it would have been\n // replaced by `replaceBreakStatementInBreakCompletion`\n // When we have seen normal completions from the last statement\n // it is safe to stop populating break and mark normal completions as break\n normalCompletionToBreak(lastNormalCompletions);\n completions.push(...lastNormalCompletions);\n // Declarations have empty completion record, however they can not be nested\n // directly in return statement, i.e. `return (var a = 1)` is invalid.\n if (lastNormalCompletions.some(c => c.path.isDeclaration())) {\n completions.push(...statementCompletions);\n replaceBreakStatementInBreakCompletion(\n statementCompletions,\n /* reachable */ true,\n );\n }\n replaceBreakStatementInBreakCompletion(\n statementCompletions,\n /* reachable */ false,\n );\n } else {\n completions.push(...statementCompletions);\n if (!context.shouldPopulateBreak) {\n replaceBreakStatementInBreakCompletion(\n statementCompletions,\n /* reachable */ true,\n );\n }\n }\n break;\n }\n if (i === paths.length - 1) {\n completions.push(...statementCompletions);\n } else {\n lastNormalCompletions = [];\n for (let i = 0; i < statementCompletions.length; i++) {\n const c = statementCompletions[i];\n if (c.type === BREAK_COMPLETION) {\n completions.push(c);\n }\n if (c.type === NORMAL_COMPLETION) {\n lastNormalCompletions.push(c);\n }\n }\n }\n }\n } else if (paths.length) {\n // When we are in a context where `break` must not exist, we can skip linear\n // search on statement lists and assume that the last\n // non-variable-declaration statement determines the completion.\n for (let i = paths.length - 1; i >= 0; i--) {\n const pathCompletions = _getCompletionRecords(paths[i], context);\n if (\n pathCompletions.length > 1 ||\n (pathCompletions.length === 1 &&\n !pathCompletions[0].path.isVariableDeclaration())\n ) {\n completions.push(...pathCompletions);\n break;\n }\n }\n }\n return completions;\n}\n\nfunction _getCompletionRecords(\n path: NodePath,\n context: CompletionContext,\n): Completion[] {\n let records: Completion[] = [];\n if (path.isIfStatement()) {\n records = addCompletionRecords(path.get(\"consequent\"), records, context);\n records = addCompletionRecords(path.get(\"alternate\"), records, context);\n } else if (\n path.isDoExpression() ||\n path.isFor() ||\n path.isWhile() ||\n path.isLabeledStatement()\n ) {\n return addCompletionRecords(path.get(\"body\"), records, context);\n } else if (path.isProgram() || path.isBlockStatement()) {\n return getStatementListCompletion(path.get(\"body\"), context);\n } else if (path.isFunction()) {\n return _getCompletionRecords(path.get(\"body\"), context);\n } else if (path.isTryStatement()) {\n records = addCompletionRecords(path.get(\"block\"), records, context);\n records = addCompletionRecords(path.get(\"handler\"), records, context);\n } else if (path.isCatchClause()) {\n return addCompletionRecords(path.get(\"body\"), records, context);\n } else if (path.isSwitchStatement()) {\n return completionRecordForSwitch(path.get(\"cases\"), records, context);\n } else if (path.isSwitchCase()) {\n return getStatementListCompletion(path.get(\"consequent\"), {\n canHaveBreak: true,\n shouldPopulateBreak: false,\n inCaseClause: true,\n });\n } else if (path.isBreakStatement()) {\n records.push(BreakCompletion(path));\n } else {\n records.push(NormalCompletion(path));\n }\n\n return records;\n}\n\n/**\n * Retrieve the completion records of a given path.\n * Note: to ensure proper support on `break` statement, this method\n * will manipulate the AST around the break statement. Do not call the method\n * twice for the same path.\n *\n * @export\n * @param {NodePath} this\n * @returns {NodePath[]} Completion records\n */\nexport function getCompletionRecords(this: NodePath): NodePath[] {\n const records = _getCompletionRecords(this, {\n canHaveBreak: false,\n shouldPopulateBreak: false,\n inCaseClause: false,\n });\n return records.map(r => r.path);\n}\n\nexport function getSibling(this: NodePath, key: string | number): NodePath {\n return NodePath.get({\n parentPath: this.parentPath,\n parent: this.parent,\n container: this.container,\n listKey: this.listKey,\n key: key,\n }).setContext(this.context);\n}\n\nexport function getPrevSibling(this: NodePath): NodePath {\n // @ts-expect-error todo(flow->ts) this.key could be a string\n return this.getSibling(this.key - 1);\n}\n\nexport function getNextSibling(this: NodePath): NodePath {\n // @ts-expect-error todo(flow->ts) this.key could be a string\n return this.getSibling(this.key + 1);\n}\n\nexport function getAllNextSiblings(this: NodePath): NodePath[] {\n // @ts-expect-error todo(flow->ts) this.key could be a string\n let _key: number = this.key;\n let sibling = this.getSibling(++_key);\n const siblings = [];\n while (sibling.node) {\n siblings.push(sibling);\n sibling = this.getSibling(++_key);\n }\n return siblings;\n}\n\nexport function getAllPrevSiblings(this: NodePath): NodePath[] {\n // @ts-expect-error todo(flow->ts) this.key could be a string\n let _key: number = this.key;\n let sibling = this.getSibling(--_key);\n const siblings = [];\n while (sibling.node) {\n siblings.push(sibling);\n sibling = this.getSibling(--_key);\n }\n return siblings;\n}\n\n// convert \"1\" to 1 (string index to number index)\ntype MaybeToIndex<T extends string> = T extends `${bigint}` ? number : T;\n\ntype Pattern<Obj extends string, Prop extends string> = `${Obj}.${Prop}`;\n\n// split \"body.body.1\" to [\"body\", \"body\", 1]\ntype Split<P extends string> =\n P extends Pattern<infer O, infer U>\n ? [MaybeToIndex<O>, ...Split<U>]\n : [MaybeToIndex<P>];\n\n// traverse the Node with tuple path [\"body\", \"body\", 1]\n// Path should be created with Split\ntype Trav<\n Node extends t.Node | t.Node[],\n Path extends unknown[],\n> = Path extends [infer K, ...infer R]\n ? K extends keyof Node\n ? Node[K] extends t.Node | t.Node[]\n ? R extends []\n ? Node[K]\n : Trav<Node[K], R>\n : never\n : never\n : never;\n\ntype ToNodePath<T> =\n T extends Array<t.Node | null | undefined>\n ? Array<NodePath<T[number]>>\n : T extends t.Node | null | undefined\n ? NodePath<T>\n : never;\n\nfunction get<T extends NodePath, K extends keyof T[\"node\"]>(\n this: T,\n key: K,\n context?: boolean | TraversalContext,\n): T extends any\n ? T[\"node\"][K] extends Array<t.Node | null | undefined>\n ? Array<NodePath<T[\"node\"][K][number]>>\n : T[\"node\"][K] extends t.Node | null | undefined\n ? NodePath<T[\"node\"][K]>\n : never\n : never;\n\nfunction get<T extends NodePath, K extends string>(\n this: T,\n key: K,\n context?: boolean | TraversalContext,\n): T extends any ? ToNodePath<Trav<T[\"node\"], Split<K>>> : never;\n\nfunction get(\n this: NodePath,\n key: string,\n context?: true | TraversalContext,\n): NodePath | NodePath[];\n\nfunction get(\n this: NodePath,\n key: string,\n context: true | TraversalContext = true,\n): NodePath | NodePath[] {\n if (context === true) context = this.context;\n const parts = key.split(\".\");\n if (parts.length === 1) {\n // \"foo\"\n // @ts-expect-error key may not index T\n return this._getKey(key, context);\n } else {\n // \"foo.bar\"\n return this._getPattern(parts, context);\n }\n}\n\nexport { get };\n\nexport function _getKey<T extends t.Node>(\n this: NodePath<T>,\n key: keyof T & string,\n context?: TraversalContext,\n): NodePath | NodePath[] {\n const node = this.node as T;\n const container = node[key];\n\n if (Array.isArray(container)) {\n // requested a container so give them all the paths\n return container.map((_, i) => {\n return NodePath.get({\n listKey: key,\n parentPath: this,\n parent: node,\n container: container,\n key: i,\n }).setContext(context);\n });\n } else {\n return NodePath.get({\n parentPath: this,\n parent: node,\n container: node,\n key: key,\n }).setContext(context);\n }\n}\n\nexport function _getPattern(\n this: NodePath,\n parts: string[],\n context?: TraversalContext,\n): NodePath | NodePath[] {\n let path: NodePath | NodePath[] = this;\n for (const part of parts) {\n if (part === \".\") {\n // @ts-expect-error todo(flow-ts): Can path be an array here?\n path = path.parentPath;\n } else {\n if (Array.isArray(path)) {\n // @ts-expect-error part may not index path\n path = path[part];\n } else {\n path = path.get(part, context);\n }\n }\n }\n return path;\n}\n\nfunction getBindingIdentifiers(\n duplicates: true,\n): Record<string, t.Identifier[]>;\nfunction getBindingIdentifiers(\n duplicates?: false,\n): Record<string, t.Identifier>;\nfunction getBindingIdentifiers(\n duplicates: boolean,\n): Record<string, t.Identifier[] | t.Identifier>;\n\nfunction getBindingIdentifiers(\n this: NodePath,\n duplicates?: boolean,\n): Record<string, t.Identifier[] | t.Identifier> {\n return _getBindingIdentifiers(this.node, duplicates);\n}\n\nexport { getBindingIdentifiers };\n\nfunction getOuterBindingIdentifiers(\n duplicates: true,\n): Record<string, t.Identifier[]>;\nfunction getOuterBindingIdentifiers(\n duplicates?: false,\n): Record<string, t.Identifier>;\nfunction getOuterBindingIdentifiers(\n duplicates: boolean,\n): Record<string, t.Identifier[] | t.Identifier>;\n\nfunction getOuterBindingIdentifiers(\n this: NodePath,\n duplicates?: boolean,\n): Record<string, t.Identifier[] | t.Identifier> {\n return _getOuterBindingIdentifiers(this.node, duplicates);\n}\n\nexport { getOuterBindingIdentifiers };\n\nfunction getBindingIdentifierPaths(\n duplicates: true,\n outerOnly?: boolean,\n): Record<string, NodePath<t.Identifier>[]>;\nfunction getBindingIdentifierPaths(\n duplicates: false,\n outerOnly?: boolean,\n): Record<string, NodePath<t.Identifier>>;\nfunction getBindingIdentifierPaths(\n duplicates?: boolean,\n outerOnly?: boolean,\n): Record<string, NodePath<t.Identifier> | NodePath<t.Identifier>[]>;\n\n// original source - https://github.com/babel/babel/blob/main/packages/babel-types/src/retrievers/getBindingIdentifiers.js\n// path.getBindingIdentifiers returns nodes where the following re-implementation returns paths\nfunction getBindingIdentifierPaths(\n this: NodePath,\n duplicates: boolean = false,\n outerOnly: boolean = false,\n): Record<string, NodePath<t.Identifier> | NodePath<t.Identifier>[]> {\n const path = this;\n const search = [path];\n const ids = Object.create(null);\n\n while (search.length) {\n const id = search.shift();\n if (!id) continue;\n if (!id.node) continue;\n\n const keys =\n // @ts-expect-error _getBindingIdentifiers.keys do not cover all node types\n _getBindingIdentifiers.keys[id.node.type];\n\n if (id.isIdentifier()) {\n if (duplicates) {\n const _ids = (ids[id.node.name] = ids[id.node.name] || []);\n _ids.push(id);\n } else {\n ids[id.node.name] = id;\n }\n continue;\n }\n\n if (id.isExportDeclaration()) {\n const declaration = id.get(\"declaration\");\n if (declaration.isDeclaration()) {\n search.push(declaration);\n }\n continue;\n }\n\n if (outerOnly) {\n if (id.isFunctionDeclaration()) {\n search.push(id.get(\"id\"));\n continue;\n }\n if (id.isFunctionExpression()) {\n continue;\n }\n }\n\n if (keys) {\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const child = id.get(key);\n if (Array.isArray(child)) {\n search.push(...child);\n } else if (child.node) {\n search.push(child);\n }\n }\n }\n }\n\n return ids;\n}\n\nexport { getBindingIdentifierPaths };\n\nfunction getOuterBindingIdentifierPaths(\n duplicates: true,\n): Record<string, NodePath<t.Identifier>[]>;\nfunction getOuterBindingIdentifierPaths(\n duplicates?: false,\n): Record<string, NodePath<t.Identifier>>;\nfunction getOuterBindingIdentifierPaths(\n duplicates?: boolean,\n): Record<string, NodePath<t.Identifier> | NodePath<t.Identifier>[]>;\n\nfunction getOuterBindingIdentifierPaths(\n this: NodePath,\n duplicates: boolean = false,\n) {\n return this.getBindingIdentifierPaths(duplicates, true);\n}\n\nexport { getOuterBindingIdentifierPaths };\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAGA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAKsB;EAJpBE,qBAAqB,EAAIC,sBAAsB;EAC/CC,0BAA0B,EAAIC,2BAA2B;EACzDC,cAAc;EACdC;AAAe,IAAAN,EAAA;AAIjB,MAAMO,iBAAiB,GAAG,CAAC;AAC3B,MAAMC,gBAAgB,GAAG,CAAC;AAmB1B,SAASC,gBAAgBA,CAACC,IAAc,EAAc;EACpD,OAAO;IAAEC,IAAI,EAAEJ,iBAAiB;IAAEG;EAAK,CAAC;AAC1C;AAEA,SAASE,eAAeA,CAACF,IAAc,EAAc;EACnD,OAAO;IAAEC,IAAI,EAAEH,gBAAgB;IAAEE;EAAK,CAAC;AACzC;AAEO,SAASG,WAAWA,CAAA,EAAkC;EAC3D,IAAI,IAAI,CAACC,GAAG,KAAK,MAAM,EAAE;IACvB,OAAO,IAAI,CAACC,UAAU,CAAC,OAAO,CAAC;EACjC,CAAC,MAAM,IAAI,IAAI,CAACD,GAAG,KAAK,OAAO,EAAE;IAC/B,OAAO,IAAI,CAACC,UAAU,CAAC,MAAM,CAAC;EAChC;EACA,OAAO,IAAI;AACb;AAEA,SAASC,oBAAoBA,CAC3BN,IAAiC,EACjCO,OAAqB,EACrBC,OAA0B,EACZ;EACd,IAAIR,IAAI,EAAE;IACRO,OAA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R,KAAK,IAAI5E,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG4E,IAAI,CAAC3E,MAAM,EAAED,CAAC,EAAE,EAAE;QACpC,MAAMV,GAAG,GAAGsF,IAAI,CAAC5E,CAAC,CAAC;QACnB,MAAMoF,KAAK,GAAGV,EAAE,CAAC1C,GAAG,CAAC1C,GAAG,CAAC;QACzB,IAAI0E,KAAK,CAACC,OAAO,CAACmB,KAAK,CAAC,EAAE;UACxBb,MAAM,CAAC5E,IAAI,CAAC,GAAGyF,KAAK,CAAC;QACvB,CAAC,MAAM,IAAIA,KAAK,CAAC1B,IAAI,EAAE;UACrBa,MAAM,CAAC5E,IAAI,CAACyF,KAAK,CAAC;QACpB;MACF;IACF;EACF;EAEA,OAAOZ,GAAG;AACZ;AAcA,SAASa,8BAA8BA,CAErCjB,UAAmB,GAAG,KAAK,EAC3B;EACA,OAAO,IAAI,CAACC,yBAAyB,CAACD,UAAU,EAAE,IAAI,CAAC;AACzD","ignoreList":[]}
|
@@ -50,6 +50,24 @@ const NodePath_Final = exports.default = class NodePath {
|
|
50
50
|
this.context = null;
|
51
51
|
this.scope = null;
|
52
52
|
}
|
53
|
+
get removed() {
|
54
|
+
return (this._traverseFlags & 1) > 0;
|
55
|
+
}
|
56
|
+
set removed(v) {
|
57
|
+
if (v) this._traverseFlags |= 1;else this._traverseFlags &= -2;
|
58
|
+
}
|
59
|
+
get shouldStop() {
|
60
|
+
return (this._traverseFlags & 2) > 0;
|
61
|
+
}
|
62
|
+
set shouldStop(v) {
|
63
|
+
if (v) this._traverseFlags |= 2;else this._traverseFlags &= -3;
|
64
|
+
}
|
65
|
+
get shouldSkip() {
|
66
|
+
return (this._traverseFlags & 4) > 0;
|
67
|
+
}
|
68
|
+
set shouldSkip(v) {
|
69
|
+
if (v) this._traverseFlags |= 4;else this._traverseFlags &= -5;
|
70
|
+
}
|
53
71
|
static get({
|
54
72
|
hub,
|
55
73
|
parentPath,
|
@@ -132,38 +150,114 @@ const NodePath_Final = exports.default = class NodePath {
|
|
132
150
|
get parentKey() {
|
133
151
|
return this.listKey || this.key;
|
134
152
|
}
|
135
|
-
get shouldSkip() {
|
136
|
-
return !!(this._traverseFlags & SHOULD_SKIP);
|
137
|
-
}
|
138
|
-
set shouldSkip(v) {
|
139
|
-
if (v) {
|
140
|
-
this._traverseFlags |= SHOULD_SKIP;
|
141
|
-
} else {
|
142
|
-
this._traverseFlags &= ~SHOULD_SKIP;
|
143
|
-
}
|
144
|
-
}
|
145
|
-
get shouldStop() {
|
146
|
-
return !!(this._traverseFlags & SHOULD_STOP);
|
147
|
-
}
|
148
|
-
set shouldStop(v) {
|
149
|
-
if (v) {
|
150
|
-
this._traverseFlags |= SHOULD_STOP;
|
151
|
-
} else {
|
152
|
-
this._traverseFlags &= ~SHOULD_STOP;
|
153
|
-
}
|
154
|
-
}
|
155
|
-
get removed() {
|
156
|
-
return !!(this._traverseFlags & REMOVED);
|
157
|
-
}
|
158
|
-
set removed(v) {
|
159
|
-
if (v) {
|
160
|
-
this._traverseFlags |= REMOVED;
|
161
|
-
} else {
|
162
|
-
this._traverseFlags &= ~REMOVED;
|
163
|
-
}
|
164
|
-
}
|
165
153
|
};
|
166
|
-
|
154
|
+
const methods = {
|
155
|
+
findParent: NodePath_ancestry.findParent,
|
156
|
+
find: NodePath_ancestry.find,
|
157
|
+
getFunctionParent: NodePath_ancestry.getFunctionParent,
|
158
|
+
getStatementParent: NodePath_ancestry.getStatementParent,
|
159
|
+
getEarliestCommonAncestorFrom: NodePath_ancestry.getEarliestCommonAncestorFrom,
|
160
|
+
getDeepestCommonAncestorFrom: NodePath_ancestry.getDeepestCommonAncestorFrom,
|
161
|
+
getAncestry: NodePath_ancestry.getAncestry,
|
162
|
+
isAncestor: NodePath_ancestry.isAncestor,
|
163
|
+
isDescendant: NodePath_ancestry.isDescendant,
|
164
|
+
inType: NodePath_ancestry.inType,
|
165
|
+
getTypeAnnotation: NodePath_inference.getTypeAnnotation,
|
166
|
+
_getTypeAnnotation: NodePath_inference._getTypeAnnotation,
|
167
|
+
isBaseType: NodePath_inference.isBaseType,
|
168
|
+
couldBeBaseType: NodePath_inference.couldBeBaseType,
|
169
|
+
baseTypeStrictlyMatches: NodePath_inference.baseTypeStrictlyMatches,
|
170
|
+
isGenericType: NodePath_inference.isGenericType,
|
171
|
+
replaceWithMultiple: NodePath_replacement.replaceWithMultiple,
|
172
|
+
replaceWithSourceString: NodePath_replacement.replaceWithSourceString,
|
173
|
+
replaceWith: NodePath_replacement.replaceWith,
|
174
|
+
_replaceWith: NodePath_replacement._replaceWith,
|
175
|
+
replaceExpressionWithStatements: NodePath_replacement.replaceExpressionWithStatements,
|
176
|
+
replaceInline: NodePath_replacement.replaceInline,
|
177
|
+
evaluateTruthy: NodePath_evaluation.evaluateTruthy,
|
178
|
+
evaluate: NodePath_evaluation.evaluate,
|
179
|
+
toComputedKey: NodePath_conversion.toComputedKey,
|
180
|
+
ensureBlock: NodePath_conversion.ensureBlock,
|
181
|
+
unwrapFunctionEnvironment: NodePath_conversion.unwrapFunctionEnvironment,
|
182
|
+
arrowFunctionToExpression: NodePath_conversion.arrowFunctionToExpression,
|
183
|
+
matchesPattern: NodePath_introspection.matchesPattern,
|
184
|
+
has: NodePath_introspection.has,
|
185
|
+
isStatic: NodePath_introspection.isStatic,
|
186
|
+
is: NodePath_introspection.is,
|
187
|
+
isnt: NodePath_introspection.isnt,
|
188
|
+
equals: NodePath_introspection.equals,
|
189
|
+
isNodeType: NodePath_introspection.isNodeType,
|
190
|
+
canHaveVariableDeclarationOrExpression: NodePath_introspection.canHaveVariableDeclarationOrExpression,
|
191
|
+
canSwapBetweenExpressionAndStatement: NodePath_introspection.canSwapBetweenExpressionAndStatement,
|
192
|
+
isCompletionRecord: NodePath_introspection.isCompletionRecord,
|
193
|
+
isStatementOrBlock: NodePath_introspection.isStatementOrBlock,
|
194
|
+
referencesImport: NodePath_introspection.referencesImport,
|
195
|
+
getSource: NodePath_introspection.getSource,
|
196
|
+
willIMaybeExecuteBefore: NodePath_introspection.willIMaybeExecuteBefore,
|
197
|
+
_guessExecutionStatusRelativeTo: NodePath_introspection._guessExecutionStatusRelativeTo,
|
198
|
+
resolve: NodePath_introspection.resolve,
|
199
|
+
_resolve: NodePath_introspection._resolve,
|
200
|
+
isConstantExpression: NodePath_introspection.isConstantExpression,
|
201
|
+
isInStrictMode: NodePath_introspection.isInStrictMode,
|
202
|
+
call: NodePath_context.call,
|
203
|
+
_call: NodePath_context._call,
|
204
|
+
isDenylisted: NodePath_context.isDenylisted,
|
205
|
+
isBlacklisted: NodePath_context.isBlacklisted,
|
206
|
+
visit: NodePath_context.visit,
|
207
|
+
skip: NodePath_context.skip,
|
208
|
+
skipKey: NodePath_context.skipKey,
|
209
|
+
stop: NodePath_context.stop,
|
210
|
+
setScope: NodePath_context.setScope,
|
211
|
+
setContext: NodePath_context.setContext,
|
212
|
+
resync: NodePath_context.resync,
|
213
|
+
_resyncParent: NodePath_context._resyncParent,
|
214
|
+
_resyncKey: NodePath_context._resyncKey,
|
215
|
+
_resyncList: NodePath_context._resyncList,
|
216
|
+
_resyncRemoved: NodePath_context._resyncRemoved,
|
217
|
+
popContext: NodePath_context.popContext,
|
218
|
+
pushContext: NodePath_context.pushContext,
|
219
|
+
setup: NodePath_context.setup,
|
220
|
+
setKey: NodePath_context.setKey,
|
221
|
+
requeue: NodePath_context.requeue,
|
222
|
+
_getQueueContexts: NodePath_context._getQueueContexts,
|
223
|
+
remove: NodePath_removal.remove,
|
224
|
+
_removeFromScope: NodePath_removal._removeFromScope,
|
225
|
+
_callRemovalHooks: NodePath_removal._callRemovalHooks,
|
226
|
+
_remove: NodePath_removal._remove,
|
227
|
+
_markRemoved: NodePath_removal._markRemoved,
|
228
|
+
_assertUnremoved: NodePath_removal._assertUnremoved,
|
229
|
+
insertBefore: NodePath_modification.insertBefore,
|
230
|
+
_containerInsert: NodePath_modification._containerInsert,
|
231
|
+
_containerInsertBefore: NodePath_modification._containerInsertBefore,
|
232
|
+
_containerInsertAfter: NodePath_modification._containerInsertAfter,
|
233
|
+
insertAfter: NodePath_modification.insertAfter,
|
234
|
+
updateSiblingKeys: NodePath_modification.updateSiblingKeys,
|
235
|
+
_verifyNodeList: NodePath_modification._verifyNodeList,
|
236
|
+
unshiftContainer: NodePath_modification.unshiftContainer,
|
237
|
+
pushContainer: NodePath_modification.pushContainer,
|
238
|
+
hoist: NodePath_modification.hoist,
|
239
|
+
getOpposite: NodePath_family.getOpposite,
|
240
|
+
getCompletionRecords: NodePath_family.getCompletionRecords,
|
241
|
+
getSibling: NodePath_family.getSibling,
|
242
|
+
getPrevSibling: NodePath_family.getPrevSibling,
|
243
|
+
getNextSibling: NodePath_family.getNextSibling,
|
244
|
+
getAllNextSiblings: NodePath_family.getAllNextSiblings,
|
245
|
+
getAllPrevSiblings: NodePath_family.getAllPrevSiblings,
|
246
|
+
get: NodePath_family.get,
|
247
|
+
_getKey: NodePath_family._getKey,
|
248
|
+
_getPattern: NodePath_family._getPattern,
|
249
|
+
getBindingIdentifiers: NodePath_family.getBindingIdentifiers,
|
250
|
+
getOuterBindingIdentifiers: NodePath_family.getOuterBindingIdentifiers,
|
251
|
+
getBindingIdentifierPaths: NodePath_family.getBindingIdentifierPaths,
|
252
|
+
getOuterBindingIdentifierPaths: NodePath_family.getOuterBindingIdentifierPaths,
|
253
|
+
shareCommentsWithSiblings: NodePath_comments.shareCommentsWithSiblings,
|
254
|
+
addComment: NodePath_comments.addComment,
|
255
|
+
addComments: NodePath_comments.addComments
|
256
|
+
};
|
257
|
+
Object.assign(NodePath_Final.prototype, methods);
|
258
|
+
{
|
259
|
+
NodePath_Final.prototype.arrowFunctionToShadowed = NodePath_conversion[String("arrowFunctionToShadowed")];
|
260
|
+
}
|
167
261
|
{
|
168
262
|
NodePath_Final.prototype._guessExecutionStatusRelativeToDifferentFunctions = NodePath_introspection._guessExecutionStatusRelativeTo;
|
169
263
|
}
|