@peter.naydenov/cuts 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +10 -0
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/src/findInstructions.js.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/main.js.html +1 -1
- package/coverage/lcov-report/src/methods/hide.js.html +1 -1
- package/coverage/lcov-report/src/methods/index.html +1 -1
- package/coverage/lcov-report/src/methods/jump.js.html +1 -1
- package/coverage/lcov-report/src/methods/jumpBack.js.html +1 -1
- package/coverage/lcov-report/src/methods/jumpsReset.js.html +1 -1
- package/coverage/lcov-report/src/methods/listShortcuts.js.html +1 -1
- package/coverage/lcov-report/src/methods/setScenes.js.html +1 -1
- package/coverage/lcov-report/src/methods/show.js.html +1 -1
- package/coverage/lcov-report/src/setInstruction.js.html +1 -1
- package/package.json +15 -19
- package/playwright.config.js +13 -0
- package/test/01-findPosition.test.js +119 -0
- package/test/02-cuts.test.js +412 -0
- package/test-e2e/01-general.test.js +290 -0
- package/test-e2e/index.html +30 -0
- package/test-e2e/node_modules/.package-lock.json +584 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_log.js +36 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_log.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_shortcuts.js +983 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_shortcuts.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_visual-controller-for-vue3.js +267 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_visual-controller-for-vue3.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/_metadata.json +44 -0
- package/test-e2e/node_modules/.vite/deps/ask-for-promise.js +223 -0
- package/test-e2e/node_modules/.vite/deps/ask-for-promise.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/package.json +3 -0
- package/test-e2e/node_modules/.vite/deps/vue.js +2 -0
- package/test-e2e/node_modules/.vite/deps/vue.runtime.esm-bundler-DaROHT9e.js +8579 -0
- package/test-e2e/node_modules/.vite/deps/vue.runtime.esm-bundler-DaROHT9e.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/LICENSE +22 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/README.md +19 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/lib/index.js +295 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/package.json +31 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/test-e2e/node_modules/@babel/parser/CHANGELOG.md +1073 -0
- package/test-e2e/node_modules/@babel/parser/LICENSE +19 -0
- package/test-e2e/node_modules/@babel/parser/README.md +19 -0
- package/test-e2e/node_modules/@babel/parser/bin/babel-parser.js +15 -0
- package/test-e2e/node_modules/@babel/parser/lib/index.js +14582 -0
- package/test-e2e/node_modules/@babel/parser/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/parser/package.json +50 -0
- package/test-e2e/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
- package/test-e2e/node_modules/@babel/types/LICENSE +22 -0
- package/test-e2e/node_modules/@babel/types/README.md +19 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/assertNode.js +16 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/generated/index.js +1251 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/ast-types/generated/index.js +3 -0
- package/test-e2e/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +18 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +31 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/index.js +29 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/lowercase.js +2902 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/uppercase.js +272 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/productions.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/productions.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/react/buildChildren.js +24 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +22 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/validateNode.js +21 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/validateNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/clone.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/clone.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeep.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeep.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneNode.js +107 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComment.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComment.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComments.js +22 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritInnerComments.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritsComments.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritsComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/removeComments.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/removeComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/generated/index.js +60 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/index.js +31 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/ensureBlock.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/ensureBlock.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +65 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBlock.js +29 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBlock.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toComputedKey.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toComputedKey.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toExpression.js +28 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toIdentifier.js +25 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toIdentifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toKeyAlias.js +38 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toSequenceExpression.js +19 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toStatement.js +39 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/valueToNode.js +89 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/core.js +1725 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/core.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +11 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/experimental.js +124 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/flow.js +495 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/flow.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/index.js +106 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/jsx.js +157 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/misc.js +31 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/misc.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/placeholders.js +27 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/placeholders.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/typescript.js +528 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/utils.js +296 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/utils.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/index-legacy.d.ts +2797 -0
- package/test-e2e/node_modules/@babel/types/lib/index.d.ts +3617 -0
- package/test-e2e/node_modules/@babel/types/lib/index.js +582 -0
- package/test-e2e/node_modules/@babel/types/lib/index.js.flow +2650 -0
- package/test-e2e/node_modules/@babel/types/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +65 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/inherits.js +28 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/inherits.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removeProperties.js +24 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removeProperties.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +66 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +48 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +102 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getFunctionName.js +63 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverse.js +50 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverseFast.js +40 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/deprecationWarning.js +44 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/inherit.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/inherit.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +40 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/shallowEqual.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/shallowEqual.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/generated/index.js +2797 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/is.js +27 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/is.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBinding.js +27 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBinding.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBlockScoped.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isImmutable.js +21 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isImmutable.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isLet.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isLet.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNode.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +57 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isPlaceholderType.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isReferenced.js +96 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isReferenced.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isScope.js +18 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isScope.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isType.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidIdentifier.js +18 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isVar.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isVar.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/matchesPattern.js +44 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isCompatTag.js +11 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isReactComponent.js +11 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/validate.js +42 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/validate.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/package.json +39 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/LICENSE +19 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
- package/test-e2e/node_modules/@oxc-project/types/LICENSE +22 -0
- package/test-e2e/node_modules/@oxc-project/types/README.md +3 -0
- package/test-e2e/node_modules/@oxc-project/types/package.json +26 -0
- package/test-e2e/node_modules/@oxc-project/types/types.d.ts +1912 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/CODE_OF_CONDUCT.md +128 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/Changelog.md +88 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/LICENSE +21 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/README.md +294 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/SECURITY.md +18 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/base.css +224 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/block-navigation.js +87 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/favicon.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/index.html +116 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/main.js.html +592 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/prettify.css +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/prettify.js +2 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/sorter.js +196 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov.info +246 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/tmp/coverage-46509-1760816753149-0.json +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/tmp/coverage-46510-1760816753116-0.json +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.cjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.esm.mjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.umd.js +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/notice-desk.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/package.json +64 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/rollup.config.js +37 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/src/main.js +168 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/tsconfig.json +11 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/main.d.ts +12 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/main.d.ts.map +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/src/main.d.ts +12 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/src/main.d.ts.map +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/API.md +939 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/CODE_OF_CONDUCT.md +84 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/CONTRIBUTING.md +476 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/Changelog.md +217 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/How.to.create.plugins.md +929 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/LICENSE +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/Migration.guide.md +176 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/README-v.2.x.x.md +375 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/README.md +900 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/main.d.ts +172 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_normalizeWithPlugins.d.ts +64 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_readShortcutWithPlugins.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_setupPlugin.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_systemAction.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/changeContext.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/index.d.ts +19 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/listShortcuts.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/load.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/unload.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_listenDOM.d.ts +78 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_normalizeShortcutName.d.ts +8 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_readClickEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_defaults.d.ts +17 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_registerShortcutEvents.d.ts +96 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/index.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_listenDOM.d.ts +63 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_readKeyEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_specialChars.d.ts +7 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_listenDOM.d.ts +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.cjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.esm.mjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.umd.js +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/main.d.ts +172 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_normalizeWithPlugins.d.ts +64 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_readShortcutWithPlugins.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_setupPlugin.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_systemAction.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/changeContext.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/index.d.ts +19 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/listShortcuts.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/load.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/unload.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_listenDOM.d.ts +78 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_normalizeShortcutName.d.ts +8 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_readClickEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_defaults.d.ts +17 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_registerShortcutEvents.d.ts +96 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/index.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_listenDOM.d.ts +63 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_readKeyEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_specialChars.d.ts +7 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_listenDOM.d.ts +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/eslint.config.js +80 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/assets/index-COTh6lXR.css +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/assets/index-DOkKC3NI.js +53 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/bg.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/favicon.ico +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/favicon.svg +5 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/html.meta.json.gz +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/index.html +32 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/index.html +126 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/javascript.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/jsconfig.json +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/package.json +66 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/public/vite.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/rollup.config.js +40 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/shortcuts.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/main.js +302 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_normalizeWithPlugins.js +49 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_readShortcutWithPlugins.js +32 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_setupPlugin.js +93 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_systemAction.js +33 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/changeContext.js +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/index.js +25 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/listShortcuts.js +34 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/load.js +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/unload.js +38 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_findTarget.js +26 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_listenDOM.js +165 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_normalizeShortcutName.js +51 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_readClickEvent.js +24 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_registerShortcutEvents.js +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/index.js +67 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_defaults.js +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_listenDOM.js +127 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_normalizeShortcutName.js +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_registerShortcutEvents.js +147 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/index.js +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_findTarget.js +26 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_listenDOM.js +154 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_normalizeShortcutName.js +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_registerShortcutEvents.js +51 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/index.js +71 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_listenDOM.js +186 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_normalizeShortcutName.js +32 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_readKeyEvent.js +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_registerShortcutEvents.js +57 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_specialChars.js +43 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/index.js +67 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_listenDOM.js +141 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_normalizeShortcutName.js +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_registerShortcutEvents.js +50 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/index.js +61 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/style.css +97 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/01-general.test.js +275 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/02-key.test.js +473 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/03-click.test.js +596 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/04-form.test.js +327 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/05-hover.test.js +463 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/06-scroll.test.js +374 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/Block.jsx +15 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/setup.js +18 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/style.css +26 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/wait.js +8 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/tsconfig.json +24 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/vite.config.js +7 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/vitest.config.js +23 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/LICENSE +21 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/fixtures/example.json +5 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/commands.js +25 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/component-index.html +12 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/component.js +27 -0
- package/{cypress.config.mjs → test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress.config.js} +2 -3
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.cjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.esm.mjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.umd.js +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/index.html +13 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/package.json +43 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/public/vite.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/readme.md +233 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/rollup.config.js +42 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/App.vue +44 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/assets/vue.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/components/HelloWorld.vue +26 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/main.js +101 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/style.css +90 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/test/01_general.cy.js +98 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/vite.config.js +7 -0
- package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/README.md +3 -0
- package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/package.json +37 -0
- package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/LICENSE +25 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/README.md +77 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/package.json +37 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/LICENSE +21 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/README.md +278 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/dist/index.d.mts +120 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/dist/index.mjs +1745 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/package.json +65 -0
- package/test-e2e/node_modules/@vue/compiler-core/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-core/README.md +1 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js +6888 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1100 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js +5835 -0
- package/test-e2e/node_modules/@vue/compiler-core/index.js +7 -0
- package/test-e2e/node_modules/@vue/compiler-core/package.json +58 -0
- package/test-e2e/node_modules/@vue/compiler-dom/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-dom/README.md +1 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js +934 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +45 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +6644 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +14 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +690 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.global.js +6814 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.global.prod.js +14 -0
- package/test-e2e/node_modules/@vue/compiler-dom/index.js +7 -0
- package/test-e2e/node_modules/@vue/compiler-dom/package.json +57 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/README.md +79 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +25619 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +487 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +50833 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/package.json +67 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/README.md +1 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +4 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/test-e2e/node_modules/@vue/reactivity/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/reactivity/README.md +19 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.cjs.js +2033 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1877 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.d.ts +756 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-browser.js +2031 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-browser.prod.js +5 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +1990 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.global.js +2087 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.global.prod.js +5 -0
- package/test-e2e/node_modules/@vue/reactivity/index.js +7 -0
- package/test-e2e/node_modules/@vue/reactivity/package.json +55 -0
- package/test-e2e/node_modules/@vue/runtime-core/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/runtime-core/README.md +28 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js +8718 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6856 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +1866 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +8647 -0
- package/test-e2e/node_modules/@vue/runtime-core/index.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-core/package.json +52 -0
- package/test-e2e/node_modules/@vue/runtime-dom/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/runtime-dom/README.md +13 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js +1946 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1796 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1450 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.js +12794 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1985 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.global.js +12847 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.global.prod.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-dom/index.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-dom/package.json +60 -0
- package/test-e2e/node_modules/@vue/server-renderer/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/server-renderer/README.md +178 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js +1159 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +65 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.js +8627 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.prod.js +5 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +1097 -0
- package/test-e2e/node_modules/@vue/server-renderer/index.js +7 -0
- package/test-e2e/node_modules/@vue/server-renderer/package.json +55 -0
- package/test-e2e/node_modules/@vue/shared/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/shared/README.md +3 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.cjs.js +612 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.d.ts +334 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.esm-bundler.js +536 -0
- package/test-e2e/node_modules/@vue/shared/index.js +7 -0
- package/test-e2e/node_modules/@vue/shared/package.json +47 -0
- package/test-e2e/node_modules/ask-for-promise/LICENSE +21 -0
- package/test-e2e/node_modules/ask-for-promise/README.md +278 -0
- package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.cjs +1 -0
- package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.esm.mjs +1 -0
- package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.umd.js +1 -0
- package/test-e2e/node_modules/ask-for-promise/package.json +77 -0
- package/test-e2e/node_modules/ask-for-promise/src/askForPromise.js +277 -0
- package/test-e2e/node_modules/ask-for-promise/types/index.d.ts +18 -0
- package/test-e2e/node_modules/csstype/LICENSE +19 -0
- package/test-e2e/node_modules/csstype/README.md +291 -0
- package/test-e2e/node_modules/csstype/index.d.ts +22569 -0
- package/test-e2e/node_modules/csstype/index.js.flow +6863 -0
- package/test-e2e/node_modules/csstype/package.json +70 -0
- package/test-e2e/node_modules/detect-libc/LICENSE +201 -0
- package/test-e2e/node_modules/detect-libc/README.md +163 -0
- package/test-e2e/node_modules/detect-libc/index.d.ts +14 -0
- package/test-e2e/node_modules/detect-libc/lib/detect-libc.js +313 -0
- package/test-e2e/node_modules/detect-libc/lib/elf.js +39 -0
- package/test-e2e/node_modules/detect-libc/lib/filesystem.js +51 -0
- package/test-e2e/node_modules/detect-libc/lib/process.js +24 -0
- package/test-e2e/node_modules/detect-libc/package.json +44 -0
- package/test-e2e/node_modules/entities/LICENSE +11 -0
- package/test-e2e/node_modules/entities/decode.d.ts +3 -0
- package/test-e2e/node_modules/entities/decode.js +3 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.d.ts +205 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.js +92 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.d.ts +46 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.js +138 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.js +14 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.d.ts +96 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.js +131 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.js +94 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/package.json +3 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.d.ts +205 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.js +554 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.d.ts +22 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.js +88 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.d.ts +46 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.js +134 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.js +4 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.js +11 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/index.d.ts +96 -0
- package/test-e2e/node_modules/entities/dist/esm/index.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/index.js +107 -0
- package/test-e2e/node_modules/entities/dist/esm/index.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.js +18 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.js +28 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.js +91 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/package.json +3 -0
- package/test-e2e/node_modules/entities/escape.d.ts +3 -0
- package/test-e2e/node_modules/entities/escape.js +3 -0
- package/test-e2e/node_modules/entities/package.json +120 -0
- package/test-e2e/node_modules/entities/readme.md +143 -0
- package/test-e2e/node_modules/entities/src/decode-codepoint.ts +81 -0
- package/test-e2e/node_modules/entities/src/decode.ts +685 -0
- package/test-e2e/node_modules/entities/src/encode.ts +93 -0
- package/test-e2e/node_modules/entities/src/escape.ts +161 -0
- package/test-e2e/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/test-e2e/node_modules/entities/src/generated/decode-data-html.ts +6 -0
- package/test-e2e/node_modules/entities/src/generated/decode-data-xml.ts +6 -0
- package/test-e2e/node_modules/entities/src/generated/encode-html.ts +17 -0
- package/test-e2e/node_modules/entities/src/index.ts +187 -0
- package/test-e2e/node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
- package/test-e2e/node_modules/entities/src/internal/decode-shared.ts +30 -0
- package/test-e2e/node_modules/entities/src/internal/encode-shared.ts +121 -0
- package/test-e2e/node_modules/estree-walker/CHANGELOG.md +92 -0
- package/test-e2e/node_modules/estree-walker/LICENSE +7 -0
- package/test-e2e/node_modules/estree-walker/README.md +48 -0
- package/test-e2e/node_modules/estree-walker/dist/esm/estree-walker.js +333 -0
- package/test-e2e/node_modules/estree-walker/dist/esm/package.json +1 -0
- package/test-e2e/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/test-e2e/node_modules/estree-walker/package.json +37 -0
- package/test-e2e/node_modules/estree-walker/src/async.js +118 -0
- package/test-e2e/node_modules/estree-walker/src/index.js +35 -0
- package/test-e2e/node_modules/estree-walker/src/package.json +1 -0
- package/test-e2e/node_modules/estree-walker/src/sync.js +118 -0
- package/test-e2e/node_modules/estree-walker/src/walker.js +61 -0
- package/test-e2e/node_modules/estree-walker/types/async.d.ts +53 -0
- package/test-e2e/node_modules/estree-walker/types/index.d.ts +56 -0
- package/test-e2e/node_modules/estree-walker/types/sync.d.ts +53 -0
- package/test-e2e/node_modules/estree-walker/types/tsconfig.tsbuildinfo +345 -0
- package/test-e2e/node_modules/estree-walker/types/walker.d.ts +37 -0
- package/test-e2e/node_modules/fdir/LICENSE +7 -0
- package/test-e2e/node_modules/fdir/README.md +91 -0
- package/test-e2e/node_modules/fdir/dist/index.cjs +588 -0
- package/test-e2e/node_modules/fdir/dist/index.d.cts +155 -0
- package/test-e2e/node_modules/fdir/dist/index.d.mts +155 -0
- package/test-e2e/node_modules/fdir/dist/index.mjs +570 -0
- package/test-e2e/node_modules/fdir/package.json +103 -0
- package/test-e2e/node_modules/lightningcss/LICENSE +373 -0
- package/test-e2e/node_modules/lightningcss/README.md +105 -0
- package/test-e2e/node_modules/lightningcss/node/ast.d.ts +9892 -0
- package/test-e2e/node_modules/lightningcss/node/ast.js.flow +10539 -0
- package/test-e2e/node_modules/lightningcss/node/browserslistToTargets.js +48 -0
- package/test-e2e/node_modules/lightningcss/node/composeVisitors.js +450 -0
- package/test-e2e/node_modules/lightningcss/node/flags.js +28 -0
- package/test-e2e/node_modules/lightningcss/node/index.d.ts +494 -0
- package/test-e2e/node_modules/lightningcss/node/index.js +59 -0
- package/test-e2e/node_modules/lightningcss/node/index.js.flow +843 -0
- package/test-e2e/node_modules/lightningcss/node/index.mjs +4 -0
- package/test-e2e/node_modules/lightningcss/node/targets.d.ts +40 -0
- package/test-e2e/node_modules/lightningcss/node/targets.js.flow +39 -0
- package/test-e2e/node_modules/lightningcss/package.json +110 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/LICENSE +373 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/README.md +1 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/package.json +34 -0
- package/test-e2e/node_modules/magic-string/LICENSE +7 -0
- package/test-e2e/node_modules/magic-string/README.md +325 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.d.ts +289 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.js +1594 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.js.map +1 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.es.mjs +1588 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.umd.js +1682 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.umd.js.map +1 -0
- package/test-e2e/node_modules/magic-string/package.json +67 -0
- package/test-e2e/node_modules/nanoid/LICENSE +20 -0
- package/test-e2e/node_modules/nanoid/README.md +39 -0
- package/test-e2e/node_modules/nanoid/async/index.browser.cjs +69 -0
- package/test-e2e/node_modules/nanoid/async/index.browser.js +34 -0
- package/test-e2e/node_modules/nanoid/async/index.cjs +71 -0
- package/test-e2e/node_modules/nanoid/async/index.d.ts +56 -0
- package/test-e2e/node_modules/nanoid/async/index.js +35 -0
- package/test-e2e/node_modules/nanoid/async/index.native.js +26 -0
- package/test-e2e/node_modules/nanoid/async/package.json +12 -0
- package/test-e2e/node_modules/nanoid/bin/nanoid.cjs +55 -0
- package/test-e2e/node_modules/nanoid/index.browser.cjs +72 -0
- package/test-e2e/node_modules/nanoid/index.browser.js +34 -0
- package/test-e2e/node_modules/nanoid/index.cjs +85 -0
- package/test-e2e/node_modules/nanoid/index.d.cts +91 -0
- package/test-e2e/node_modules/nanoid/index.d.ts +91 -0
- package/test-e2e/node_modules/nanoid/index.js +45 -0
- package/test-e2e/node_modules/nanoid/nanoid.js +1 -0
- package/test-e2e/node_modules/nanoid/non-secure/index.cjs +34 -0
- package/test-e2e/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/test-e2e/node_modules/nanoid/non-secure/index.js +21 -0
- package/test-e2e/node_modules/nanoid/non-secure/package.json +6 -0
- package/test-e2e/node_modules/nanoid/package.json +89 -0
- package/test-e2e/node_modules/nanoid/url-alphabet/index.cjs +7 -0
- package/test-e2e/node_modules/nanoid/url-alphabet/index.js +3 -0
- package/test-e2e/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/test-e2e/node_modules/picocolors/LICENSE +15 -0
- package/test-e2e/node_modules/picocolors/README.md +21 -0
- package/test-e2e/node_modules/picocolors/package.json +25 -0
- package/test-e2e/node_modules/picocolors/picocolors.browser.js +4 -0
- package/test-e2e/node_modules/picocolors/picocolors.d.ts +5 -0
- package/test-e2e/node_modules/picocolors/picocolors.js +75 -0
- package/test-e2e/node_modules/picocolors/types.d.ts +51 -0
- package/test-e2e/node_modules/picomatch/LICENSE +21 -0
- package/test-e2e/node_modules/picomatch/README.md +749 -0
- package/test-e2e/node_modules/picomatch/index.js +17 -0
- package/test-e2e/node_modules/picomatch/lib/constants.js +184 -0
- package/test-e2e/node_modules/picomatch/lib/parse.js +1386 -0
- package/test-e2e/node_modules/picomatch/lib/picomatch.js +349 -0
- package/test-e2e/node_modules/picomatch/lib/scan.js +391 -0
- package/test-e2e/node_modules/picomatch/lib/utils.js +72 -0
- package/test-e2e/node_modules/picomatch/package.json +82 -0
- package/test-e2e/node_modules/picomatch/posix.js +3 -0
- package/test-e2e/node_modules/postcss/LICENSE +20 -0
- package/test-e2e/node_modules/postcss/README.md +28 -0
- package/test-e2e/node_modules/postcss/lib/at-rule.d.ts +139 -0
- package/test-e2e/node_modules/postcss/lib/at-rule.js +25 -0
- package/test-e2e/node_modules/postcss/lib/comment.d.ts +67 -0
- package/test-e2e/node_modules/postcss/lib/comment.js +13 -0
- package/test-e2e/node_modules/postcss/lib/container.d.ts +478 -0
- package/test-e2e/node_modules/postcss/lib/container.js +447 -0
- package/test-e2e/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
- package/test-e2e/node_modules/postcss/lib/css-syntax-error.js +133 -0
- package/test-e2e/node_modules/postcss/lib/declaration.d.ts +150 -0
- package/test-e2e/node_modules/postcss/lib/declaration.js +24 -0
- package/test-e2e/node_modules/postcss/lib/document.d.ts +68 -0
- package/test-e2e/node_modules/postcss/lib/document.js +33 -0
- package/test-e2e/node_modules/postcss/lib/fromJSON.d.ts +9 -0
- package/test-e2e/node_modules/postcss/lib/fromJSON.js +54 -0
- package/test-e2e/node_modules/postcss/lib/input.d.ts +226 -0
- package/test-e2e/node_modules/postcss/lib/input.js +273 -0
- package/test-e2e/node_modules/postcss/lib/lazy-result.d.ts +189 -0
- package/test-e2e/node_modules/postcss/lib/lazy-result.js +550 -0
- package/test-e2e/node_modules/postcss/lib/list.d.ts +60 -0
- package/test-e2e/node_modules/postcss/lib/list.js +58 -0
- package/test-e2e/node_modules/postcss/lib/map-generator.js +376 -0
- package/test-e2e/node_modules/postcss/lib/no-work-result.d.ts +45 -0
- package/test-e2e/node_modules/postcss/lib/no-work-result.js +137 -0
- package/test-e2e/node_modules/postcss/lib/node.d.ts +555 -0
- package/test-e2e/node_modules/postcss/lib/node.js +449 -0
- package/test-e2e/node_modules/postcss/lib/parse.d.ts +9 -0
- package/test-e2e/node_modules/postcss/lib/parse.js +42 -0
- package/test-e2e/node_modules/postcss/lib/parser.js +611 -0
- package/test-e2e/node_modules/postcss/lib/postcss.d.mts +66 -0
- package/test-e2e/node_modules/postcss/lib/postcss.d.ts +456 -0
- package/test-e2e/node_modules/postcss/lib/postcss.js +101 -0
- package/test-e2e/node_modules/postcss/lib/postcss.mjs +30 -0
- package/test-e2e/node_modules/postcss/lib/previous-map.d.ts +80 -0
- package/test-e2e/node_modules/postcss/lib/previous-map.js +145 -0
- package/test-e2e/node_modules/postcss/lib/processor.d.ts +114 -0
- package/test-e2e/node_modules/postcss/lib/processor.js +67 -0
- package/test-e2e/node_modules/postcss/lib/result.d.ts +204 -0
- package/test-e2e/node_modules/postcss/lib/result.js +42 -0
- package/test-e2e/node_modules/postcss/lib/root.d.ts +86 -0
- package/test-e2e/node_modules/postcss/lib/root.js +61 -0
- package/test-e2e/node_modules/postcss/lib/rule.d.ts +126 -0
- package/test-e2e/node_modules/postcss/lib/rule.js +27 -0
- package/test-e2e/node_modules/postcss/lib/stringifier.d.ts +45 -0
- package/test-e2e/node_modules/postcss/lib/stringifier.js +353 -0
- package/test-e2e/node_modules/postcss/lib/stringify.d.ts +9 -0
- package/test-e2e/node_modules/postcss/lib/stringify.js +11 -0
- package/test-e2e/node_modules/postcss/lib/symbols.js +5 -0
- package/test-e2e/node_modules/postcss/lib/terminal-highlight.js +70 -0
- package/test-e2e/node_modules/postcss/lib/tokenize.js +266 -0
- package/test-e2e/node_modules/postcss/lib/warn-once.js +13 -0
- package/test-e2e/node_modules/postcss/lib/warning.d.ts +146 -0
- package/test-e2e/node_modules/postcss/lib/warning.js +37 -0
- package/test-e2e/node_modules/postcss/package.json +88 -0
- package/test-e2e/node_modules/rolldown/LICENSE +25 -0
- package/test-e2e/node_modules/rolldown/README.md +11 -0
- package/test-e2e/node_modules/rolldown/bin/cli.mjs +2 -0
- package/test-e2e/node_modules/rolldown/dist/cli.d.mts +1 -0
- package/test-e2e/node_modules/rolldown/dist/cli.mjs +1191 -0
- package/test-e2e/node_modules/rolldown/dist/config.d.mts +14 -0
- package/test-e2e/node_modules/rolldown/dist/config.mjs +4 -0
- package/test-e2e/node_modules/rolldown/dist/experimental-index.d.mts +253 -0
- package/test-e2e/node_modules/rolldown/dist/experimental-index.mjs +320 -0
- package/test-e2e/node_modules/rolldown/dist/experimental-runtime-types.d.ts +98 -0
- package/test-e2e/node_modules/rolldown/dist/filter-index.d.mts +196 -0
- package/test-e2e/node_modules/rolldown/dist/filter-index.mjs +386 -0
- package/test-e2e/node_modules/rolldown/dist/get-log-filter.d.mts +3 -0
- package/test-e2e/node_modules/rolldown/dist/get-log-filter.mjs +68 -0
- package/test-e2e/node_modules/rolldown/dist/index.d.mts +4 -0
- package/test-e2e/node_modules/rolldown/dist/index.mjs +50 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +1 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin-worker.mjs +28 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin.d.mts +13 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin.mjs +6 -0
- package/test-e2e/node_modules/rolldown/dist/parse-ast-index.d.mts +32 -0
- package/test-e2e/node_modules/rolldown/dist/parse-ast-index.mjs +60 -0
- package/test-e2e/node_modules/rolldown/dist/plugins-index.d.mts +33 -0
- package/test-e2e/node_modules/rolldown/dist/plugins-index.mjs +40 -0
- package/test-e2e/node_modules/rolldown/dist/shared/binding-DUEnSb0A.d.mts +1872 -0
- package/test-e2e/node_modules/rolldown/dist/shared/binding-s-V_wTpj.mjs +582 -0
- package/test-e2e/node_modules/rolldown/dist/shared/bindingify-input-options-DYpBf1OG.mjs +2235 -0
- package/test-e2e/node_modules/rolldown/dist/shared/constructors-BaEBnHl3.mjs +68 -0
- package/test-e2e/node_modules/rolldown/dist/shared/constructors-DYemMpPL.d.mts +37 -0
- package/test-e2e/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +6 -0
- package/test-e2e/node_modules/rolldown/dist/shared/define-config-DhJZwTRw.d.mts +3795 -0
- package/test-e2e/node_modules/rolldown/dist/shared/error-w0u7biK-.mjs +85 -0
- package/test-e2e/node_modules/rolldown/dist/shared/get-log-filter-semyr3Lj.d.mts +35 -0
- package/test-e2e/node_modules/rolldown/dist/shared/load-config-pmbgQdFU.mjs +120 -0
- package/test-e2e/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts +50 -0
- package/test-e2e/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +180 -0
- package/test-e2e/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +21 -0
- package/test-e2e/node_modules/rolldown/dist/shared/normalize-string-or-regex-CVvpepxa.mjs +66 -0
- package/test-e2e/node_modules/rolldown/dist/shared/parse-BywQARUG.mjs +74 -0
- package/test-e2e/node_modules/rolldown/dist/shared/prompt-BYQIwEjg.mjs +845 -0
- package/test-e2e/node_modules/rolldown/dist/shared/resolve-tsconfig-CNjJwuKB.mjs +113 -0
- package/test-e2e/node_modules/rolldown/dist/shared/rolldown-BLMDGLfI.mjs +40 -0
- package/test-e2e/node_modules/rolldown/dist/shared/rolldown-build-DtGk-m96.mjs +3321 -0
- package/test-e2e/node_modules/rolldown/dist/shared/transform-Kz3D2LbX.d.mts +149 -0
- package/test-e2e/node_modules/rolldown/dist/shared/watch-Cixa7HbR.mjs +374 -0
- package/test-e2e/node_modules/rolldown/dist/utils-index.d.mts +376 -0
- package/test-e2e/node_modules/rolldown/dist/utils-index.mjs +2414 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/LICENSE +25 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/README.md +83 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/package.json +37 -0
- package/test-e2e/node_modules/rolldown/package.json +153 -0
- package/test-e2e/node_modules/source-map-js/LICENSE +28 -0
- package/test-e2e/node_modules/source-map-js/README.md +765 -0
- package/test-e2e/node_modules/source-map-js/lib/array-set.js +121 -0
- package/test-e2e/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/test-e2e/node_modules/source-map-js/lib/base64.js +67 -0
- package/test-e2e/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/test-e2e/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/test-e2e/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/test-e2e/node_modules/source-map-js/lib/source-node.d.ts +1 -0
- package/test-e2e/node_modules/source-map-js/lib/source-node.js +413 -0
- package/test-e2e/node_modules/source-map-js/lib/util.js +594 -0
- package/test-e2e/node_modules/source-map-js/package.json +71 -0
- package/test-e2e/node_modules/source-map-js/source-map.d.ts +104 -0
- package/test-e2e/node_modules/source-map-js/source-map.js +8 -0
- package/test-e2e/node_modules/tinyglobby/LICENSE +21 -0
- package/test-e2e/node_modules/tinyglobby/README.md +25 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.cjs +334 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.mjs +306 -0
- package/test-e2e/node_modules/tinyglobby/package.json +73 -0
- package/test-e2e/node_modules/vite/LICENSE.md +2230 -0
- package/test-e2e/node_modules/vite/README.md +20 -0
- package/test-e2e/node_modules/vite/bin/openChrome.js +68 -0
- package/test-e2e/node_modules/vite/bin/vite.js +79 -0
- package/test-e2e/node_modules/vite/client.d.ts +282 -0
- package/test-e2e/node_modules/vite/dist/client/client.mjs +1235 -0
- package/test-e2e/node_modules/vite/dist/client/env.mjs +18 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/build.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/build2.js +5378 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/chunk.js +37 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/config.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/dist.js +6719 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/lib.js +371 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/logger.js +322 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +96 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/node.js +34785 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/optimizer.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/postcss-import.js +467 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/preview.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/server.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/cli.js +837 -0
- package/test-e2e/node_modules/vite/dist/node/index.d.ts +3867 -0
- package/test-e2e/node_modules/vite/dist/node/index.js +3 -0
- package/test-e2e/node_modules/vite/dist/node/internal.d.ts +2 -0
- package/test-e2e/node_modules/vite/dist/node/internal.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/module-runner.d.ts +315 -0
- package/test-e2e/node_modules/vite/dist/node/module-runner.js +1262 -0
- package/test-e2e/node_modules/vite/misc/false.js +1 -0
- package/test-e2e/node_modules/vite/misc/true.js +1 -0
- package/test-e2e/node_modules/vite/package.json +192 -0
- package/test-e2e/node_modules/vite/types/customEvent.d.ts +79 -0
- package/test-e2e/node_modules/vite/types/hmrPayload.d.ts +80 -0
- package/test-e2e/node_modules/vite/types/hot.d.ts +39 -0
- package/test-e2e/node_modules/vite/types/import-meta.d.ts +5 -0
- package/test-e2e/node_modules/vite/types/importGlob.d.ts +89 -0
- package/test-e2e/node_modules/vite/types/importMeta.d.ts +30 -0
- package/test-e2e/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +44 -0
- package/test-e2e/node_modules/vite/types/internal/esbuildOptions.d.ts +28 -0
- package/test-e2e/node_modules/vite/types/internal/lightningcssOptions.d.ts +18 -0
- package/test-e2e/node_modules/vite/types/internal/rollupTypeCompat.d.ts +24 -0
- package/test-e2e/node_modules/vite/types/internal/terserOptions.d.ts +11 -0
- package/test-e2e/node_modules/vite/types/metadata.d.ts +47 -0
- package/test-e2e/node_modules/vue/LICENSE +21 -0
- package/test-e2e/node_modules/vue/README.md +58 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.browser.js +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.browser.mjs +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.d.mts +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.d.ts +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.js +3 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.mjs +3 -0
- package/test-e2e/node_modules/vue/compiler-sfc/package.json +4 -0
- package/test-e2e/node_modules/vue/compiler-sfc/register-ts.js +3 -0
- package/test-e2e/node_modules/vue/dist/vue.cjs.js +80 -0
- package/test-e2e/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/test-e2e/node_modules/vue/dist/vue.d.mts +7 -0
- package/test-e2e/node_modules/vue/dist/vue.d.ts +7 -0
- package/test-e2e/node_modules/vue/dist/vue.esm-browser.js +18708 -0
- package/test-e2e/node_modules/vue/dist/vue.esm-browser.prod.js +13 -0
- package/test-e2e/node_modules/vue/dist/vue.esm-bundler.js +71 -0
- package/test-e2e/node_modules/vue/dist/vue.global.js +18588 -0
- package/test-e2e/node_modules/vue/dist/vue.global.prod.js +13 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.esm-browser.js +12817 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.esm-browser.prod.js +7 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.esm-bundler.js +26 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.global.js +12871 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.global.prod.js +7 -0
- package/test-e2e/node_modules/vue/index.js +7 -0
- package/test-e2e/node_modules/vue/index.mjs +1 -0
- package/test-e2e/node_modules/vue/jsx-runtime/index.d.ts +25 -0
- package/test-e2e/node_modules/vue/jsx-runtime/index.js +15 -0
- package/test-e2e/node_modules/vue/jsx-runtime/index.mjs +12 -0
- package/test-e2e/node_modules/vue/jsx-runtime/package.json +5 -0
- package/test-e2e/node_modules/vue/jsx.d.ts +22 -0
- package/test-e2e/node_modules/vue/package.json +112 -0
- package/test-e2e/node_modules/vue/server-renderer/index.d.mts +1 -0
- package/test-e2e/node_modules/vue/server-renderer/index.d.ts +1 -0
- package/test-e2e/node_modules/vue/server-renderer/index.js +1 -0
- package/test-e2e/node_modules/vue/server-renderer/index.mjs +1 -0
- package/test-e2e/node_modules/vue/server-renderer/package.json +4 -0
- package/test-e2e/package-lock.json +1164 -0
- package/test-e2e/package.json +17 -0
- package/test-e2e/vite.config.js +17 -0
- package/test-results/.last-run.json +4 -0
- package/vite.config.js +12 -2
- package/vitest.config.js +1 -1
- package/cypress/support/component-index.html +0 -11
- package/test/01-general.cy.js +0 -348
- /package/{test → test-e2e}/blue.vue +0 -0
- /package/{test → test-e2e}/dummy.vue +0 -0
- /package/{test → test-e2e}/gray.vue +0 -0
- /package/{test → test-e2e}/red.vue +0 -0
|
@@ -0,0 +1,1725 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.patternLikeCommon = exports.importAttributes = exports.functionTypeAnnotationCommon = exports.functionDeclarationCommon = exports.functionCommon = exports.classMethodOrPropertyUnionShapeCommon = exports.classMethodOrPropertyCommon = exports.classMethodOrDeclareMethodCommon = void 0;
|
|
7
|
+
var _is = require("../validators/is.js");
|
|
8
|
+
var _isValidIdentifier = require("../validators/isValidIdentifier.js");
|
|
9
|
+
var _helperValidatorIdentifier = require("@babel/helper-validator-identifier");
|
|
10
|
+
var _helperStringParser = require("@babel/helper-string-parser");
|
|
11
|
+
var _index = require("../constants/index.js");
|
|
12
|
+
var _utils = require("./utils.js");
|
|
13
|
+
const classMethodOrPropertyUnionShapeCommon = (allowPrivateName = false) => ({
|
|
14
|
+
unionShape: {
|
|
15
|
+
discriminator: "computed",
|
|
16
|
+
shapes: [{
|
|
17
|
+
name: "computed",
|
|
18
|
+
value: [true],
|
|
19
|
+
properties: {
|
|
20
|
+
key: {
|
|
21
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}, {
|
|
25
|
+
name: "nonComputed",
|
|
26
|
+
value: [false],
|
|
27
|
+
properties: {
|
|
28
|
+
key: {
|
|
29
|
+
validate: allowPrivateName ? (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName") : (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral")
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}]
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
exports.classMethodOrPropertyUnionShapeCommon = classMethodOrPropertyUnionShapeCommon;
|
|
36
|
+
const defineType = (0, _utils.defineAliasedType)("Standardized");
|
|
37
|
+
defineType("ArrayExpression", {
|
|
38
|
+
fields: {
|
|
39
|
+
elements: {
|
|
40
|
+
validate: (0, _utils.arrayOf)((0, _utils.assertNodeOrValueType)("null", "Expression", "SpreadElement")),
|
|
41
|
+
default: !process.env.BABEL_TYPES_8_BREAKING ? [] : undefined
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
visitor: ["elements"],
|
|
45
|
+
aliases: ["Expression"]
|
|
46
|
+
});
|
|
47
|
+
defineType("AssignmentExpression", {
|
|
48
|
+
fields: {
|
|
49
|
+
operator: {
|
|
50
|
+
validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("string") : Object.assign(function () {
|
|
51
|
+
const identifier = (0, _utils.assertOneOf)(..._index.ASSIGNMENT_OPERATORS);
|
|
52
|
+
const pattern = (0, _utils.assertOneOf)("=");
|
|
53
|
+
return function (node, key, val) {
|
|
54
|
+
const validator = (0, _is.default)("Pattern", node.left) ? pattern : identifier;
|
|
55
|
+
validator(node, key, val);
|
|
56
|
+
};
|
|
57
|
+
}(), {
|
|
58
|
+
oneOf: _index.ASSIGNMENT_OPERATORS
|
|
59
|
+
})
|
|
60
|
+
},
|
|
61
|
+
left: {
|
|
62
|
+
validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal", "OptionalMemberExpression") : (0, _utils.assertNodeType)("Identifier", "MemberExpression", "OptionalMemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression")
|
|
63
|
+
},
|
|
64
|
+
right: {
|
|
65
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
builder: ["operator", "left", "right"],
|
|
69
|
+
visitor: ["left", "right"],
|
|
70
|
+
aliases: ["Expression"]
|
|
71
|
+
});
|
|
72
|
+
defineType("BinaryExpression", {
|
|
73
|
+
builder: ["operator", "left", "right"],
|
|
74
|
+
fields: {
|
|
75
|
+
operator: {
|
|
76
|
+
validate: (0, _utils.assertOneOf)(..._index.BINARY_OPERATORS)
|
|
77
|
+
},
|
|
78
|
+
left: {
|
|
79
|
+
validate: function () {
|
|
80
|
+
const expression = (0, _utils.assertNodeType)("Expression");
|
|
81
|
+
const inOp = (0, _utils.assertNodeType)("Expression", "PrivateName");
|
|
82
|
+
const validator = Object.assign(function (node, key, val) {
|
|
83
|
+
const validator = node.operator === "in" ? inOp : expression;
|
|
84
|
+
validator(node, key, val);
|
|
85
|
+
}, {
|
|
86
|
+
oneOfNodeTypes: ["Expression", "PrivateName"]
|
|
87
|
+
});
|
|
88
|
+
return validator;
|
|
89
|
+
}()
|
|
90
|
+
},
|
|
91
|
+
right: {
|
|
92
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
visitor: ["left", "right"],
|
|
96
|
+
aliases: ["Binary", "Expression"]
|
|
97
|
+
});
|
|
98
|
+
defineType("InterpreterDirective", {
|
|
99
|
+
builder: ["value"],
|
|
100
|
+
fields: {
|
|
101
|
+
value: {
|
|
102
|
+
validate: (0, _utils.assertValueType)("string")
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
defineType("Directive", {
|
|
107
|
+
visitor: ["value"],
|
|
108
|
+
fields: {
|
|
109
|
+
value: {
|
|
110
|
+
validate: (0, _utils.assertNodeType)("DirectiveLiteral")
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
defineType("DirectiveLiteral", {
|
|
115
|
+
builder: ["value"],
|
|
116
|
+
fields: {
|
|
117
|
+
value: {
|
|
118
|
+
validate: (0, _utils.assertValueType)("string")
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
defineType("BlockStatement", {
|
|
123
|
+
builder: ["body", "directives"],
|
|
124
|
+
visitor: ["directives", "body"],
|
|
125
|
+
fields: {
|
|
126
|
+
directives: {
|
|
127
|
+
validate: (0, _utils.arrayOfType)("Directive"),
|
|
128
|
+
default: []
|
|
129
|
+
},
|
|
130
|
+
body: (0, _utils.validateArrayOfType)("Statement")
|
|
131
|
+
},
|
|
132
|
+
aliases: ["Scopable", "BlockParent", "Block", "Statement"]
|
|
133
|
+
});
|
|
134
|
+
defineType("BreakStatement", {
|
|
135
|
+
visitor: ["label"],
|
|
136
|
+
fields: {
|
|
137
|
+
label: {
|
|
138
|
+
validate: (0, _utils.assertNodeType)("Identifier"),
|
|
139
|
+
optional: true
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
aliases: ["Statement", "Terminatorless", "CompletionStatement"]
|
|
143
|
+
});
|
|
144
|
+
defineType("CallExpression", {
|
|
145
|
+
visitor: ["callee", "typeParameters", "typeArguments", "arguments"],
|
|
146
|
+
builder: ["callee", "arguments"],
|
|
147
|
+
aliases: ["Expression"],
|
|
148
|
+
fields: Object.assign({
|
|
149
|
+
callee: {
|
|
150
|
+
validate: (0, _utils.assertNodeType)("Expression", "Super", "V8IntrinsicIdentifier")
|
|
151
|
+
},
|
|
152
|
+
arguments: (0, _utils.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"),
|
|
153
|
+
typeArguments: {
|
|
154
|
+
validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"),
|
|
155
|
+
optional: true
|
|
156
|
+
}
|
|
157
|
+
}, process.env.BABEL_TYPES_8_BREAKING ? {} : {
|
|
158
|
+
optional: {
|
|
159
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
160
|
+
optional: true
|
|
161
|
+
},
|
|
162
|
+
typeParameters: {
|
|
163
|
+
validate: (0, _utils.assertNodeType)("TSTypeParameterInstantiation"),
|
|
164
|
+
optional: true
|
|
165
|
+
}
|
|
166
|
+
})
|
|
167
|
+
});
|
|
168
|
+
defineType("CatchClause", {
|
|
169
|
+
visitor: ["param", "body"],
|
|
170
|
+
fields: {
|
|
171
|
+
param: {
|
|
172
|
+
validate: (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"),
|
|
173
|
+
optional: true
|
|
174
|
+
},
|
|
175
|
+
body: {
|
|
176
|
+
validate: (0, _utils.assertNodeType)("BlockStatement")
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
aliases: ["Scopable", "BlockParent"]
|
|
180
|
+
});
|
|
181
|
+
defineType("ConditionalExpression", {
|
|
182
|
+
visitor: ["test", "consequent", "alternate"],
|
|
183
|
+
fields: {
|
|
184
|
+
test: {
|
|
185
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
186
|
+
},
|
|
187
|
+
consequent: {
|
|
188
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
189
|
+
},
|
|
190
|
+
alternate: {
|
|
191
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
aliases: ["Expression", "Conditional"]
|
|
195
|
+
});
|
|
196
|
+
defineType("ContinueStatement", {
|
|
197
|
+
visitor: ["label"],
|
|
198
|
+
fields: {
|
|
199
|
+
label: {
|
|
200
|
+
validate: (0, _utils.assertNodeType)("Identifier"),
|
|
201
|
+
optional: true
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
aliases: ["Statement", "Terminatorless", "CompletionStatement"]
|
|
205
|
+
});
|
|
206
|
+
defineType("DebuggerStatement", {
|
|
207
|
+
aliases: ["Statement"]
|
|
208
|
+
});
|
|
209
|
+
defineType("DoWhileStatement", {
|
|
210
|
+
builder: ["test", "body"],
|
|
211
|
+
visitor: ["body", "test"],
|
|
212
|
+
fields: {
|
|
213
|
+
test: {
|
|
214
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
215
|
+
},
|
|
216
|
+
body: {
|
|
217
|
+
validate: (0, _utils.assertNodeType)("Statement")
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"]
|
|
221
|
+
});
|
|
222
|
+
defineType("EmptyStatement", {
|
|
223
|
+
aliases: ["Statement"]
|
|
224
|
+
});
|
|
225
|
+
defineType("ExpressionStatement", {
|
|
226
|
+
visitor: ["expression"],
|
|
227
|
+
fields: {
|
|
228
|
+
expression: {
|
|
229
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
aliases: ["Statement", "ExpressionWrapper"]
|
|
233
|
+
});
|
|
234
|
+
defineType("File", {
|
|
235
|
+
builder: ["program", "comments", "tokens"],
|
|
236
|
+
visitor: ["program"],
|
|
237
|
+
fields: {
|
|
238
|
+
program: {
|
|
239
|
+
validate: (0, _utils.assertNodeType)("Program")
|
|
240
|
+
},
|
|
241
|
+
comments: {
|
|
242
|
+
validate: !process.env.BABEL_TYPES_8_BREAKING ? Object.assign(() => {}, {
|
|
243
|
+
each: {
|
|
244
|
+
oneOfNodeTypes: ["CommentBlock", "CommentLine"]
|
|
245
|
+
}
|
|
246
|
+
}) : (0, _utils.assertEach)((0, _utils.assertNodeType)("CommentBlock", "CommentLine")),
|
|
247
|
+
optional: true
|
|
248
|
+
},
|
|
249
|
+
tokens: {
|
|
250
|
+
validate: (0, _utils.assertEach)(Object.assign(() => {}, {
|
|
251
|
+
type: "any"
|
|
252
|
+
})),
|
|
253
|
+
optional: true
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
defineType("ForInStatement", {
|
|
258
|
+
visitor: ["left", "right", "body"],
|
|
259
|
+
aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
|
|
260
|
+
fields: {
|
|
261
|
+
left: {
|
|
262
|
+
validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("VariableDeclaration", "LVal") : (0, _utils.assertNodeType)("VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression")
|
|
263
|
+
},
|
|
264
|
+
right: {
|
|
265
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
266
|
+
},
|
|
267
|
+
body: {
|
|
268
|
+
validate: (0, _utils.assertNodeType)("Statement")
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
defineType("ForStatement", {
|
|
273
|
+
visitor: ["init", "test", "update", "body"],
|
|
274
|
+
aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"],
|
|
275
|
+
fields: {
|
|
276
|
+
init: {
|
|
277
|
+
validate: (0, _utils.assertNodeType)("VariableDeclaration", "Expression"),
|
|
278
|
+
optional: true
|
|
279
|
+
},
|
|
280
|
+
test: {
|
|
281
|
+
validate: (0, _utils.assertNodeType)("Expression"),
|
|
282
|
+
optional: true
|
|
283
|
+
},
|
|
284
|
+
update: {
|
|
285
|
+
validate: (0, _utils.assertNodeType)("Expression"),
|
|
286
|
+
optional: true
|
|
287
|
+
},
|
|
288
|
+
body: {
|
|
289
|
+
validate: (0, _utils.assertNodeType)("Statement")
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
const functionCommon = () => ({
|
|
294
|
+
params: (0, _utils.validateArrayOfType)("FunctionParameter"),
|
|
295
|
+
generator: {
|
|
296
|
+
default: false
|
|
297
|
+
},
|
|
298
|
+
async: {
|
|
299
|
+
default: false
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
exports.functionCommon = functionCommon;
|
|
303
|
+
const functionTypeAnnotationCommon = () => ({
|
|
304
|
+
returnType: {
|
|
305
|
+
validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
|
|
306
|
+
optional: true
|
|
307
|
+
},
|
|
308
|
+
typeParameters: {
|
|
309
|
+
validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
|
|
310
|
+
optional: true
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
exports.functionTypeAnnotationCommon = functionTypeAnnotationCommon;
|
|
314
|
+
const functionDeclarationCommon = () => Object.assign({}, functionCommon(), {
|
|
315
|
+
declare: {
|
|
316
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
317
|
+
optional: true
|
|
318
|
+
},
|
|
319
|
+
id: {
|
|
320
|
+
validate: (0, _utils.assertNodeType)("Identifier"),
|
|
321
|
+
optional: true
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
exports.functionDeclarationCommon = functionDeclarationCommon;
|
|
325
|
+
defineType("FunctionDeclaration", {
|
|
326
|
+
builder: ["id", "params", "body", "generator", "async"],
|
|
327
|
+
visitor: ["id", "typeParameters", "params", "predicate", "returnType", "body"],
|
|
328
|
+
fields: Object.assign({}, functionDeclarationCommon(), functionTypeAnnotationCommon(), {
|
|
329
|
+
body: {
|
|
330
|
+
validate: (0, _utils.assertNodeType)("BlockStatement")
|
|
331
|
+
},
|
|
332
|
+
predicate: {
|
|
333
|
+
validate: (0, _utils.assertNodeType)("DeclaredPredicate", "InferredPredicate"),
|
|
334
|
+
optional: true
|
|
335
|
+
}
|
|
336
|
+
}),
|
|
337
|
+
aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"],
|
|
338
|
+
validate: !process.env.BABEL_TYPES_8_BREAKING ? undefined : function () {
|
|
339
|
+
const identifier = (0, _utils.assertNodeType)("Identifier");
|
|
340
|
+
return function (parent, key, node) {
|
|
341
|
+
if (!(0, _is.default)("ExportDefaultDeclaration", parent)) {
|
|
342
|
+
identifier(node, "id", node.id);
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
}()
|
|
346
|
+
});
|
|
347
|
+
defineType("FunctionExpression", {
|
|
348
|
+
inherits: "FunctionDeclaration",
|
|
349
|
+
aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],
|
|
350
|
+
fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), {
|
|
351
|
+
id: {
|
|
352
|
+
validate: (0, _utils.assertNodeType)("Identifier"),
|
|
353
|
+
optional: true
|
|
354
|
+
},
|
|
355
|
+
body: {
|
|
356
|
+
validate: (0, _utils.assertNodeType)("BlockStatement")
|
|
357
|
+
},
|
|
358
|
+
predicate: {
|
|
359
|
+
validate: (0, _utils.assertNodeType)("DeclaredPredicate", "InferredPredicate"),
|
|
360
|
+
optional: true
|
|
361
|
+
}
|
|
362
|
+
})
|
|
363
|
+
});
|
|
364
|
+
const patternLikeCommon = () => ({
|
|
365
|
+
typeAnnotation: {
|
|
366
|
+
validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
|
|
367
|
+
optional: true
|
|
368
|
+
},
|
|
369
|
+
optional: {
|
|
370
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
371
|
+
optional: true
|
|
372
|
+
},
|
|
373
|
+
decorators: {
|
|
374
|
+
validate: (0, _utils.arrayOfType)("Decorator"),
|
|
375
|
+
optional: true
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
exports.patternLikeCommon = patternLikeCommon;
|
|
379
|
+
defineType("Identifier", {
|
|
380
|
+
builder: ["name"],
|
|
381
|
+
visitor: ["typeAnnotation", "decorators"],
|
|
382
|
+
aliases: ["Expression", "FunctionParameter", "PatternLike", "LVal", "TSEntityName"],
|
|
383
|
+
fields: Object.assign({}, patternLikeCommon(), {
|
|
384
|
+
name: {
|
|
385
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertValueType)("string"), Object.assign(function (node, key, val) {
|
|
386
|
+
if (!(0, _isValidIdentifier.default)(val, false)) {
|
|
387
|
+
throw new TypeError(`"${val}" is not a valid identifier name`);
|
|
388
|
+
}
|
|
389
|
+
}, {
|
|
390
|
+
type: "string"
|
|
391
|
+
})) : (0, _utils.assertValueType)("string")
|
|
392
|
+
}
|
|
393
|
+
}),
|
|
394
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? function (parent, key, node) {
|
|
395
|
+
const match = /\.(\w+)$/.exec(key.toString());
|
|
396
|
+
if (!match) return;
|
|
397
|
+
const [, parentKey] = match;
|
|
398
|
+
const nonComp = {
|
|
399
|
+
computed: false
|
|
400
|
+
};
|
|
401
|
+
if (parentKey === "property") {
|
|
402
|
+
if ((0, _is.default)("MemberExpression", parent, nonComp)) return;
|
|
403
|
+
if ((0, _is.default)("OptionalMemberExpression", parent, nonComp)) return;
|
|
404
|
+
} else if (parentKey === "key") {
|
|
405
|
+
if ((0, _is.default)("Property", parent, nonComp)) return;
|
|
406
|
+
if ((0, _is.default)("Method", parent, nonComp)) return;
|
|
407
|
+
} else if (parentKey === "exported") {
|
|
408
|
+
if ((0, _is.default)("ExportSpecifier", parent)) return;
|
|
409
|
+
} else if (parentKey === "imported") {
|
|
410
|
+
if ((0, _is.default)("ImportSpecifier", parent, {
|
|
411
|
+
imported: node
|
|
412
|
+
})) return;
|
|
413
|
+
} else if (parentKey === "meta") {
|
|
414
|
+
if ((0, _is.default)("MetaProperty", parent, {
|
|
415
|
+
meta: node
|
|
416
|
+
})) return;
|
|
417
|
+
}
|
|
418
|
+
if (((0, _helperValidatorIdentifier.isKeyword)(node.name) || (0, _helperValidatorIdentifier.isReservedWord)(node.name, false)) && node.name !== "this") {
|
|
419
|
+
throw new TypeError(`"${node.name}" is not a valid identifier`);
|
|
420
|
+
}
|
|
421
|
+
} : undefined
|
|
422
|
+
});
|
|
423
|
+
defineType("IfStatement", {
|
|
424
|
+
visitor: ["test", "consequent", "alternate"],
|
|
425
|
+
aliases: ["Statement", "Conditional"],
|
|
426
|
+
fields: {
|
|
427
|
+
test: {
|
|
428
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
429
|
+
},
|
|
430
|
+
consequent: {
|
|
431
|
+
validate: (0, _utils.assertNodeType)("Statement")
|
|
432
|
+
},
|
|
433
|
+
alternate: {
|
|
434
|
+
optional: true,
|
|
435
|
+
validate: (0, _utils.assertNodeType)("Statement")
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
defineType("LabeledStatement", {
|
|
440
|
+
visitor: ["label", "body"],
|
|
441
|
+
aliases: ["Statement"],
|
|
442
|
+
fields: {
|
|
443
|
+
label: {
|
|
444
|
+
validate: (0, _utils.assertNodeType)("Identifier")
|
|
445
|
+
},
|
|
446
|
+
body: {
|
|
447
|
+
validate: (0, _utils.assertNodeType)("Statement")
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
defineType("StringLiteral", {
|
|
452
|
+
builder: ["value"],
|
|
453
|
+
fields: {
|
|
454
|
+
value: {
|
|
455
|
+
validate: (0, _utils.assertValueType)("string")
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
|
|
459
|
+
});
|
|
460
|
+
defineType("NumericLiteral", {
|
|
461
|
+
builder: ["value"],
|
|
462
|
+
deprecatedAlias: "NumberLiteral",
|
|
463
|
+
fields: {
|
|
464
|
+
value: {
|
|
465
|
+
validate: (0, _utils.chain)((0, _utils.assertValueType)("number"), Object.assign(function (node, key, val) {
|
|
466
|
+
if (1 / val < 0 || !Number.isFinite(val)) {
|
|
467
|
+
const error = new Error("NumericLiterals must be non-negative finite numbers. " + `You can use t.valueToNode(${val}) instead.`);
|
|
468
|
+
}
|
|
469
|
+
}, {
|
|
470
|
+
type: "number"
|
|
471
|
+
}))
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
|
|
475
|
+
});
|
|
476
|
+
defineType("NullLiteral", {
|
|
477
|
+
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
|
|
478
|
+
});
|
|
479
|
+
defineType("BooleanLiteral", {
|
|
480
|
+
builder: ["value"],
|
|
481
|
+
fields: {
|
|
482
|
+
value: {
|
|
483
|
+
validate: (0, _utils.assertValueType)("boolean")
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
|
|
487
|
+
});
|
|
488
|
+
defineType("RegExpLiteral", {
|
|
489
|
+
builder: ["pattern", "flags"],
|
|
490
|
+
deprecatedAlias: "RegexLiteral",
|
|
491
|
+
aliases: ["Expression", "Pureish", "Literal"],
|
|
492
|
+
fields: {
|
|
493
|
+
pattern: {
|
|
494
|
+
validate: (0, _utils.assertValueType)("string")
|
|
495
|
+
},
|
|
496
|
+
flags: {
|
|
497
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertValueType)("string"), Object.assign(function (node, key, val) {
|
|
498
|
+
const invalid = /[^dgimsuvy]/.exec(val);
|
|
499
|
+
if (invalid) {
|
|
500
|
+
throw new TypeError(`"${invalid[0]}" is not a valid RegExp flag`);
|
|
501
|
+
}
|
|
502
|
+
}, {
|
|
503
|
+
type: "string"
|
|
504
|
+
})) : (0, _utils.assertValueType)("string"),
|
|
505
|
+
default: ""
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
defineType("LogicalExpression", {
|
|
510
|
+
builder: ["operator", "left", "right"],
|
|
511
|
+
visitor: ["left", "right"],
|
|
512
|
+
aliases: ["Binary", "Expression"],
|
|
513
|
+
fields: {
|
|
514
|
+
operator: {
|
|
515
|
+
validate: (0, _utils.assertOneOf)(..._index.LOGICAL_OPERATORS)
|
|
516
|
+
},
|
|
517
|
+
left: {
|
|
518
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
519
|
+
},
|
|
520
|
+
right: {
|
|
521
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
defineType("MemberExpression", {
|
|
526
|
+
builder: ["object", "property", "computed", ...(!process.env.BABEL_TYPES_8_BREAKING ? ["optional"] : [])],
|
|
527
|
+
visitor: ["object", "property"],
|
|
528
|
+
aliases: ["Expression", "LVal", "PatternLike"],
|
|
529
|
+
unionShape: {
|
|
530
|
+
discriminator: "computed",
|
|
531
|
+
shapes: [{
|
|
532
|
+
name: "computed",
|
|
533
|
+
value: [true],
|
|
534
|
+
properties: {
|
|
535
|
+
property: {
|
|
536
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}, {
|
|
540
|
+
name: "nonComputed",
|
|
541
|
+
value: [false],
|
|
542
|
+
properties: {
|
|
543
|
+
property: {
|
|
544
|
+
validate: (0, _utils.assertNodeType)("Identifier", "PrivateName")
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}]
|
|
548
|
+
},
|
|
549
|
+
fields: Object.assign({
|
|
550
|
+
object: {
|
|
551
|
+
validate: (0, _utils.assertNodeType)("Expression", "Super")
|
|
552
|
+
},
|
|
553
|
+
property: {
|
|
554
|
+
validate: function () {
|
|
555
|
+
const normal = (0, _utils.assertNodeType)("Identifier", "PrivateName");
|
|
556
|
+
const computed = (0, _utils.assertNodeType)("Expression");
|
|
557
|
+
const validator = function (node, key, val) {
|
|
558
|
+
const validator = node.computed ? computed : normal;
|
|
559
|
+
validator(node, key, val);
|
|
560
|
+
};
|
|
561
|
+
validator.oneOfNodeTypes = ["Expression", "Identifier", "PrivateName"];
|
|
562
|
+
return validator;
|
|
563
|
+
}()
|
|
564
|
+
},
|
|
565
|
+
computed: {
|
|
566
|
+
default: false
|
|
567
|
+
}
|
|
568
|
+
}, !process.env.BABEL_TYPES_8_BREAKING ? {
|
|
569
|
+
optional: {
|
|
570
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
571
|
+
optional: true
|
|
572
|
+
}
|
|
573
|
+
} : {})
|
|
574
|
+
});
|
|
575
|
+
defineType("NewExpression", {
|
|
576
|
+
inherits: "CallExpression"
|
|
577
|
+
});
|
|
578
|
+
defineType("Program", {
|
|
579
|
+
visitor: ["directives", "body"],
|
|
580
|
+
builder: ["body", "directives", "sourceType", "interpreter"],
|
|
581
|
+
fields: {
|
|
582
|
+
sourceType: {
|
|
583
|
+
validate: (0, _utils.assertOneOf)("script", "module"),
|
|
584
|
+
default: "script"
|
|
585
|
+
},
|
|
586
|
+
interpreter: {
|
|
587
|
+
validate: (0, _utils.assertNodeType)("InterpreterDirective"),
|
|
588
|
+
default: null,
|
|
589
|
+
optional: true
|
|
590
|
+
},
|
|
591
|
+
directives: {
|
|
592
|
+
validate: (0, _utils.arrayOfType)("Directive"),
|
|
593
|
+
default: []
|
|
594
|
+
},
|
|
595
|
+
body: (0, _utils.validateArrayOfType)("Statement")
|
|
596
|
+
},
|
|
597
|
+
aliases: ["Scopable", "BlockParent", "Block"]
|
|
598
|
+
});
|
|
599
|
+
defineType("ObjectExpression", {
|
|
600
|
+
visitor: ["properties"],
|
|
601
|
+
aliases: ["Expression"],
|
|
602
|
+
fields: {
|
|
603
|
+
properties: (0, _utils.validateArrayOfType)("ObjectMethod", "ObjectProperty", "SpreadElement")
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
defineType("ObjectMethod", Object.assign({
|
|
607
|
+
builder: ["kind", "key", "params", "body", "computed", "generator", "async"],
|
|
608
|
+
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"]
|
|
609
|
+
}, classMethodOrPropertyUnionShapeCommon(), {
|
|
610
|
+
fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), {
|
|
611
|
+
kind: Object.assign({
|
|
612
|
+
validate: (0, _utils.assertOneOf)("method", "get", "set")
|
|
613
|
+
}, !process.env.BABEL_TYPES_8_BREAKING ? {
|
|
614
|
+
default: "method"
|
|
615
|
+
} : {}),
|
|
616
|
+
computed: {
|
|
617
|
+
default: false
|
|
618
|
+
},
|
|
619
|
+
key: {
|
|
620
|
+
validate: function () {
|
|
621
|
+
const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral");
|
|
622
|
+
const computed = (0, _utils.assertNodeType)("Expression");
|
|
623
|
+
const validator = function (node, key, val) {
|
|
624
|
+
const validator = node.computed ? computed : normal;
|
|
625
|
+
validator(node, key, val);
|
|
626
|
+
};
|
|
627
|
+
validator.oneOfNodeTypes = ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"];
|
|
628
|
+
return validator;
|
|
629
|
+
}()
|
|
630
|
+
},
|
|
631
|
+
decorators: {
|
|
632
|
+
validate: (0, _utils.arrayOfType)("Decorator"),
|
|
633
|
+
optional: true
|
|
634
|
+
},
|
|
635
|
+
body: {
|
|
636
|
+
validate: (0, _utils.assertNodeType)("BlockStatement")
|
|
637
|
+
}
|
|
638
|
+
}),
|
|
639
|
+
aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"]
|
|
640
|
+
}));
|
|
641
|
+
defineType("ObjectProperty", {
|
|
642
|
+
builder: ["key", "value", "computed", "shorthand", ...(!process.env.BABEL_TYPES_8_BREAKING ? ["decorators"] : [])],
|
|
643
|
+
unionShape: {
|
|
644
|
+
discriminator: "computed",
|
|
645
|
+
shapes: [{
|
|
646
|
+
name: "computed",
|
|
647
|
+
value: [true],
|
|
648
|
+
properties: {
|
|
649
|
+
key: {
|
|
650
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}, {
|
|
654
|
+
name: "nonComputed",
|
|
655
|
+
value: [false],
|
|
656
|
+
properties: {
|
|
657
|
+
key: {
|
|
658
|
+
validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName")
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}]
|
|
662
|
+
},
|
|
663
|
+
fields: {
|
|
664
|
+
computed: {
|
|
665
|
+
default: false
|
|
666
|
+
},
|
|
667
|
+
key: {
|
|
668
|
+
validate: function () {
|
|
669
|
+
const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName");
|
|
670
|
+
const computed = (0, _utils.assertNodeType)("Expression");
|
|
671
|
+
const validator = Object.assign(function (node, key, val) {
|
|
672
|
+
const validator = node.computed ? computed : normal;
|
|
673
|
+
validator(node, key, val);
|
|
674
|
+
}, {
|
|
675
|
+
oneOfNodeTypes: ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"]
|
|
676
|
+
});
|
|
677
|
+
return validator;
|
|
678
|
+
}()
|
|
679
|
+
},
|
|
680
|
+
value: {
|
|
681
|
+
validate: (0, _utils.assertNodeType)("Expression", "PatternLike")
|
|
682
|
+
},
|
|
683
|
+
shorthand: {
|
|
684
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertValueType)("boolean"), Object.assign(function (node, key, shorthand) {
|
|
685
|
+
if (!shorthand) return;
|
|
686
|
+
if (node.computed) {
|
|
687
|
+
throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");
|
|
688
|
+
}
|
|
689
|
+
if (!(0, _is.default)("Identifier", node.key)) {
|
|
690
|
+
throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier");
|
|
691
|
+
}
|
|
692
|
+
}, {
|
|
693
|
+
type: "boolean"
|
|
694
|
+
})) : (0, _utils.assertValueType)("boolean"),
|
|
695
|
+
default: false
|
|
696
|
+
},
|
|
697
|
+
decorators: {
|
|
698
|
+
validate: (0, _utils.arrayOfType)("Decorator"),
|
|
699
|
+
optional: true
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
visitor: ["decorators", "key", "value"],
|
|
703
|
+
aliases: ["UserWhitespacable", "Property", "ObjectMember"],
|
|
704
|
+
validate: !process.env.BABEL_TYPES_8_BREAKING ? undefined : function () {
|
|
705
|
+
const pattern = (0, _utils.assertNodeType)("Identifier", "Pattern", "TSAsExpression", "TSSatisfiesExpression", "TSNonNullExpression", "TSTypeAssertion");
|
|
706
|
+
const expression = (0, _utils.assertNodeType)("Expression");
|
|
707
|
+
return function (parent, key, node) {
|
|
708
|
+
const validator = (0, _is.default)("ObjectPattern", parent) ? pattern : expression;
|
|
709
|
+
validator(node, "value", node.value);
|
|
710
|
+
};
|
|
711
|
+
}()
|
|
712
|
+
});
|
|
713
|
+
defineType("RestElement", {
|
|
714
|
+
visitor: ["argument", "typeAnnotation"],
|
|
715
|
+
builder: ["argument"],
|
|
716
|
+
aliases: ["FunctionParameter", "PatternLike", "LVal"],
|
|
717
|
+
deprecatedAlias: "RestProperty",
|
|
718
|
+
fields: Object.assign({}, patternLikeCommon(), {
|
|
719
|
+
argument: {
|
|
720
|
+
validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression", "RestElement", "AssignmentPattern") : (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression")
|
|
721
|
+
}
|
|
722
|
+
}),
|
|
723
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? function (parent, key) {
|
|
724
|
+
const match = /(\w+)\[(\d+)\]/.exec(key.toString());
|
|
725
|
+
if (!match) throw new Error("Internal Babel error: malformed key.");
|
|
726
|
+
const [, listKey, index] = match;
|
|
727
|
+
if (parent[listKey].length > +index + 1) {
|
|
728
|
+
throw new TypeError(`RestElement must be last element of ${listKey}`);
|
|
729
|
+
}
|
|
730
|
+
} : undefined
|
|
731
|
+
});
|
|
732
|
+
defineType("ReturnStatement", {
|
|
733
|
+
visitor: ["argument"],
|
|
734
|
+
aliases: ["Statement", "Terminatorless", "CompletionStatement"],
|
|
735
|
+
fields: {
|
|
736
|
+
argument: {
|
|
737
|
+
validate: (0, _utils.assertNodeType)("Expression"),
|
|
738
|
+
optional: true
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
});
|
|
742
|
+
defineType("SequenceExpression", {
|
|
743
|
+
visitor: ["expressions"],
|
|
744
|
+
fields: {
|
|
745
|
+
expressions: (0, _utils.validateArrayOfType)("Expression")
|
|
746
|
+
},
|
|
747
|
+
aliases: ["Expression"]
|
|
748
|
+
});
|
|
749
|
+
defineType("ParenthesizedExpression", {
|
|
750
|
+
visitor: ["expression"],
|
|
751
|
+
aliases: ["Expression", "ExpressionWrapper"],
|
|
752
|
+
fields: {
|
|
753
|
+
expression: {
|
|
754
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
});
|
|
758
|
+
defineType("SwitchCase", {
|
|
759
|
+
visitor: ["test", "consequent"],
|
|
760
|
+
fields: {
|
|
761
|
+
test: {
|
|
762
|
+
validate: (0, _utils.assertNodeType)("Expression"),
|
|
763
|
+
optional: true
|
|
764
|
+
},
|
|
765
|
+
consequent: (0, _utils.validateArrayOfType)("Statement")
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
defineType("SwitchStatement", {
|
|
769
|
+
visitor: ["discriminant", "cases"],
|
|
770
|
+
aliases: ["Statement", "BlockParent", "Scopable"],
|
|
771
|
+
fields: {
|
|
772
|
+
discriminant: {
|
|
773
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
774
|
+
},
|
|
775
|
+
cases: (0, _utils.validateArrayOfType)("SwitchCase")
|
|
776
|
+
}
|
|
777
|
+
});
|
|
778
|
+
defineType("ThisExpression", {
|
|
779
|
+
aliases: ["Expression"]
|
|
780
|
+
});
|
|
781
|
+
defineType("ThrowStatement", {
|
|
782
|
+
visitor: ["argument"],
|
|
783
|
+
aliases: ["Statement", "Terminatorless", "CompletionStatement"],
|
|
784
|
+
fields: {
|
|
785
|
+
argument: {
|
|
786
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
});
|
|
790
|
+
defineType("TryStatement", {
|
|
791
|
+
visitor: ["block", "handler", "finalizer"],
|
|
792
|
+
aliases: ["Statement"],
|
|
793
|
+
fields: {
|
|
794
|
+
block: {
|
|
795
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertNodeType)("BlockStatement"), Object.assign(function (node) {
|
|
796
|
+
if (!node.handler && !node.finalizer) {
|
|
797
|
+
throw new TypeError("TryStatement expects either a handler or finalizer, or both");
|
|
798
|
+
}
|
|
799
|
+
}, {
|
|
800
|
+
oneOfNodeTypes: ["BlockStatement"]
|
|
801
|
+
})) : (0, _utils.assertNodeType)("BlockStatement")
|
|
802
|
+
},
|
|
803
|
+
handler: {
|
|
804
|
+
optional: true,
|
|
805
|
+
validate: (0, _utils.assertNodeType)("CatchClause")
|
|
806
|
+
},
|
|
807
|
+
finalizer: {
|
|
808
|
+
optional: true,
|
|
809
|
+
validate: (0, _utils.assertNodeType)("BlockStatement")
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
});
|
|
813
|
+
defineType("UnaryExpression", {
|
|
814
|
+
builder: ["operator", "argument", "prefix"],
|
|
815
|
+
fields: {
|
|
816
|
+
prefix: {
|
|
817
|
+
default: true
|
|
818
|
+
},
|
|
819
|
+
argument: {
|
|
820
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
821
|
+
},
|
|
822
|
+
operator: {
|
|
823
|
+
validate: (0, _utils.assertOneOf)(..._index.UNARY_OPERATORS)
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
visitor: ["argument"],
|
|
827
|
+
aliases: ["UnaryLike", "Expression"]
|
|
828
|
+
});
|
|
829
|
+
defineType("UpdateExpression", {
|
|
830
|
+
builder: ["operator", "argument", "prefix"],
|
|
831
|
+
fields: {
|
|
832
|
+
prefix: {
|
|
833
|
+
default: false
|
|
834
|
+
},
|
|
835
|
+
argument: {
|
|
836
|
+
validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("Expression") : (0, _utils.assertNodeType)("Identifier", "MemberExpression")
|
|
837
|
+
},
|
|
838
|
+
operator: {
|
|
839
|
+
validate: (0, _utils.assertOneOf)(..._index.UPDATE_OPERATORS)
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
visitor: ["argument"],
|
|
843
|
+
aliases: ["Expression"]
|
|
844
|
+
});
|
|
845
|
+
defineType("VariableDeclaration", {
|
|
846
|
+
builder: ["kind", "declarations"],
|
|
847
|
+
visitor: ["declarations"],
|
|
848
|
+
aliases: ["Statement", "Declaration"],
|
|
849
|
+
fields: {
|
|
850
|
+
declare: {
|
|
851
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
852
|
+
optional: true
|
|
853
|
+
},
|
|
854
|
+
kind: {
|
|
855
|
+
validate: (0, _utils.assertOneOf)("var", "let", "const", "using", "await using")
|
|
856
|
+
},
|
|
857
|
+
declarations: (0, _utils.validateArrayOfType)("VariableDeclarator")
|
|
858
|
+
},
|
|
859
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (() => {
|
|
860
|
+
const withoutInit = (0, _utils.assertNodeType)("Identifier", "Placeholder");
|
|
861
|
+
const constOrLetOrVar = (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "Placeholder");
|
|
862
|
+
const usingOrAwaitUsing = (0, _utils.assertNodeType)("Identifier", "VoidPattern", "Placeholder");
|
|
863
|
+
return function (parent, key, node) {
|
|
864
|
+
const {
|
|
865
|
+
kind,
|
|
866
|
+
declarations
|
|
867
|
+
} = node;
|
|
868
|
+
const parentIsForX = (0, _is.default)("ForXStatement", parent, {
|
|
869
|
+
left: node
|
|
870
|
+
});
|
|
871
|
+
if (parentIsForX) {
|
|
872
|
+
if (declarations.length !== 1) {
|
|
873
|
+
throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${parent.type}`);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
for (const decl of declarations) {
|
|
877
|
+
if (kind === "const" || kind === "let" || kind === "var") {
|
|
878
|
+
if (!parentIsForX && !decl.init) {
|
|
879
|
+
withoutInit(decl, "id", decl.id);
|
|
880
|
+
} else {
|
|
881
|
+
constOrLetOrVar(decl, "id", decl.id);
|
|
882
|
+
}
|
|
883
|
+
} else {
|
|
884
|
+
usingOrAwaitUsing(decl, "id", decl.id);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
})() : undefined
|
|
889
|
+
});
|
|
890
|
+
defineType("VariableDeclarator", {
|
|
891
|
+
visitor: ["id", "init"],
|
|
892
|
+
fields: {
|
|
893
|
+
id: {
|
|
894
|
+
validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal", "VoidPattern") : (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "VoidPattern")
|
|
895
|
+
},
|
|
896
|
+
definite: {
|
|
897
|
+
optional: true,
|
|
898
|
+
validate: (0, _utils.assertValueType)("boolean")
|
|
899
|
+
},
|
|
900
|
+
init: {
|
|
901
|
+
optional: true,
|
|
902
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
});
|
|
906
|
+
defineType("WhileStatement", {
|
|
907
|
+
visitor: ["test", "body"],
|
|
908
|
+
aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"],
|
|
909
|
+
fields: {
|
|
910
|
+
test: {
|
|
911
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
912
|
+
},
|
|
913
|
+
body: {
|
|
914
|
+
validate: (0, _utils.assertNodeType)("Statement")
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
});
|
|
918
|
+
defineType("WithStatement", {
|
|
919
|
+
visitor: ["object", "body"],
|
|
920
|
+
aliases: ["Statement"],
|
|
921
|
+
fields: {
|
|
922
|
+
object: {
|
|
923
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
924
|
+
},
|
|
925
|
+
body: {
|
|
926
|
+
validate: (0, _utils.assertNodeType)("Statement")
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
});
|
|
930
|
+
defineType("AssignmentPattern", {
|
|
931
|
+
visitor: ["left", "right", "decorators"],
|
|
932
|
+
builder: ["left", "right"],
|
|
933
|
+
aliases: ["FunctionParameter", "Pattern", "PatternLike", "LVal"],
|
|
934
|
+
fields: Object.assign({}, patternLikeCommon(), {
|
|
935
|
+
left: {
|
|
936
|
+
validate: (0, _utils.assertNodeType)("Identifier", "ObjectPattern", "ArrayPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression")
|
|
937
|
+
},
|
|
938
|
+
right: {
|
|
939
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
940
|
+
},
|
|
941
|
+
decorators: {
|
|
942
|
+
validate: (0, _utils.arrayOfType)("Decorator"),
|
|
943
|
+
optional: true
|
|
944
|
+
}
|
|
945
|
+
})
|
|
946
|
+
});
|
|
947
|
+
defineType("ArrayPattern", {
|
|
948
|
+
visitor: ["elements", "typeAnnotation"],
|
|
949
|
+
builder: ["elements"],
|
|
950
|
+
aliases: ["FunctionParameter", "Pattern", "PatternLike", "LVal"],
|
|
951
|
+
fields: Object.assign({}, patternLikeCommon(), {
|
|
952
|
+
elements: {
|
|
953
|
+
validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeOrValueType)("null", "PatternLike")))
|
|
954
|
+
}
|
|
955
|
+
})
|
|
956
|
+
});
|
|
957
|
+
defineType("ArrowFunctionExpression", {
|
|
958
|
+
builder: ["params", "body", "async"],
|
|
959
|
+
visitor: ["typeParameters", "params", "predicate", "returnType", "body"],
|
|
960
|
+
aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],
|
|
961
|
+
fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), {
|
|
962
|
+
expression: {
|
|
963
|
+
validate: (0, _utils.assertValueType)("boolean")
|
|
964
|
+
},
|
|
965
|
+
body: {
|
|
966
|
+
validate: (0, _utils.assertNodeType)("BlockStatement", "Expression")
|
|
967
|
+
},
|
|
968
|
+
predicate: {
|
|
969
|
+
validate: (0, _utils.assertNodeType)("DeclaredPredicate", "InferredPredicate"),
|
|
970
|
+
optional: true
|
|
971
|
+
}
|
|
972
|
+
})
|
|
973
|
+
});
|
|
974
|
+
defineType("ClassBody", {
|
|
975
|
+
visitor: ["body"],
|
|
976
|
+
fields: {
|
|
977
|
+
body: (0, _utils.validateArrayOfType)("ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassPrivateProperty", "ClassAccessorProperty", "TSDeclareMethod", "TSIndexSignature", "StaticBlock")
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
defineType("ClassExpression", {
|
|
981
|
+
builder: ["id", "superClass", "body", "decorators"],
|
|
982
|
+
visitor: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body"],
|
|
983
|
+
aliases: ["Scopable", "Class", "Expression"],
|
|
984
|
+
fields: {
|
|
985
|
+
id: {
|
|
986
|
+
validate: (0, _utils.assertNodeType)("Identifier"),
|
|
987
|
+
optional: true
|
|
988
|
+
},
|
|
989
|
+
typeParameters: {
|
|
990
|
+
validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
|
|
991
|
+
optional: true
|
|
992
|
+
},
|
|
993
|
+
body: {
|
|
994
|
+
validate: (0, _utils.assertNodeType)("ClassBody")
|
|
995
|
+
},
|
|
996
|
+
superClass: {
|
|
997
|
+
optional: true,
|
|
998
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
999
|
+
},
|
|
1000
|
+
["superTypeParameters"]: {
|
|
1001
|
+
validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
|
|
1002
|
+
optional: true
|
|
1003
|
+
},
|
|
1004
|
+
implements: {
|
|
1005
|
+
validate: (0, _utils.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"),
|
|
1006
|
+
optional: true
|
|
1007
|
+
},
|
|
1008
|
+
decorators: {
|
|
1009
|
+
validate: (0, _utils.arrayOfType)("Decorator"),
|
|
1010
|
+
optional: true
|
|
1011
|
+
},
|
|
1012
|
+
mixins: {
|
|
1013
|
+
validate: (0, _utils.assertNodeType)("InterfaceExtends"),
|
|
1014
|
+
optional: true
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
});
|
|
1018
|
+
defineType("ClassDeclaration", {
|
|
1019
|
+
inherits: "ClassExpression",
|
|
1020
|
+
aliases: ["Scopable", "Class", "Statement", "Declaration"],
|
|
1021
|
+
fields: {
|
|
1022
|
+
id: {
|
|
1023
|
+
validate: (0, _utils.assertNodeType)("Identifier"),
|
|
1024
|
+
optional: true
|
|
1025
|
+
},
|
|
1026
|
+
typeParameters: {
|
|
1027
|
+
validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
|
|
1028
|
+
optional: true
|
|
1029
|
+
},
|
|
1030
|
+
body: {
|
|
1031
|
+
validate: (0, _utils.assertNodeType)("ClassBody")
|
|
1032
|
+
},
|
|
1033
|
+
superClass: {
|
|
1034
|
+
optional: true,
|
|
1035
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
1036
|
+
},
|
|
1037
|
+
["superTypeParameters"]: {
|
|
1038
|
+
validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
|
|
1039
|
+
optional: true
|
|
1040
|
+
},
|
|
1041
|
+
implements: {
|
|
1042
|
+
validate: (0, _utils.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"),
|
|
1043
|
+
optional: true
|
|
1044
|
+
},
|
|
1045
|
+
decorators: {
|
|
1046
|
+
validate: (0, _utils.arrayOfType)("Decorator"),
|
|
1047
|
+
optional: true
|
|
1048
|
+
},
|
|
1049
|
+
mixins: {
|
|
1050
|
+
validate: (0, _utils.assertNodeType)("InterfaceExtends"),
|
|
1051
|
+
optional: true
|
|
1052
|
+
},
|
|
1053
|
+
declare: {
|
|
1054
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1055
|
+
optional: true
|
|
1056
|
+
},
|
|
1057
|
+
abstract: {
|
|
1058
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1059
|
+
optional: true
|
|
1060
|
+
}
|
|
1061
|
+
},
|
|
1062
|
+
validate: !process.env.BABEL_TYPES_8_BREAKING ? undefined : function () {
|
|
1063
|
+
const identifier = (0, _utils.assertNodeType)("Identifier");
|
|
1064
|
+
return function (parent, key, node) {
|
|
1065
|
+
if (!(0, _is.default)("ExportDefaultDeclaration", parent)) {
|
|
1066
|
+
identifier(node, "id", node.id);
|
|
1067
|
+
}
|
|
1068
|
+
};
|
|
1069
|
+
}()
|
|
1070
|
+
});
|
|
1071
|
+
const importAttributes = exports.importAttributes = {
|
|
1072
|
+
attributes: {
|
|
1073
|
+
optional: true,
|
|
1074
|
+
validate: (0, _utils.arrayOfType)("ImportAttribute")
|
|
1075
|
+
}
|
|
1076
|
+
};
|
|
1077
|
+
importAttributes.assertions = {
|
|
1078
|
+
deprecated: true,
|
|
1079
|
+
optional: true,
|
|
1080
|
+
validate: (0, _utils.arrayOfType)("ImportAttribute")
|
|
1081
|
+
};
|
|
1082
|
+
defineType("ExportAllDeclaration", {
|
|
1083
|
+
builder: ["source", "attributes"],
|
|
1084
|
+
visitor: ["source", "attributes", "assertions"],
|
|
1085
|
+
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
|
|
1086
|
+
fields: Object.assign({
|
|
1087
|
+
source: {
|
|
1088
|
+
validate: (0, _utils.assertNodeType)("StringLiteral")
|
|
1089
|
+
},
|
|
1090
|
+
exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("type", "value"))
|
|
1091
|
+
}, importAttributes)
|
|
1092
|
+
});
|
|
1093
|
+
defineType("ExportDefaultDeclaration", {
|
|
1094
|
+
visitor: ["declaration"],
|
|
1095
|
+
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
|
|
1096
|
+
fields: {
|
|
1097
|
+
declaration: (0, _utils.validateType)("TSDeclareFunction", "FunctionDeclaration", "ClassDeclaration", "Expression"),
|
|
1098
|
+
exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("value"))
|
|
1099
|
+
}
|
|
1100
|
+
});
|
|
1101
|
+
defineType("ExportNamedDeclaration", {
|
|
1102
|
+
builder: ["declaration", "specifiers", "source", "attributes"],
|
|
1103
|
+
visitor: ["declaration", "specifiers", "source", "attributes", "assertions"],
|
|
1104
|
+
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
|
|
1105
|
+
fields: Object.assign({
|
|
1106
|
+
declaration: {
|
|
1107
|
+
optional: true,
|
|
1108
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertNodeType)("Declaration"), Object.assign(function (node, key, val) {
|
|
1109
|
+
if (val && node.specifiers.length) {
|
|
1110
|
+
throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");
|
|
1111
|
+
}
|
|
1112
|
+
if (val && node.source) {
|
|
1113
|
+
throw new TypeError("Cannot export a declaration from a source");
|
|
1114
|
+
}
|
|
1115
|
+
}, {
|
|
1116
|
+
oneOfNodeTypes: ["Declaration"]
|
|
1117
|
+
})) : (0, _utils.assertNodeType)("Declaration")
|
|
1118
|
+
}
|
|
1119
|
+
}, importAttributes, {
|
|
1120
|
+
specifiers: {
|
|
1121
|
+
default: [],
|
|
1122
|
+
validate: (0, _utils.arrayOf)(function () {
|
|
1123
|
+
const sourced = (0, _utils.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier");
|
|
1124
|
+
const sourceless = (0, _utils.assertNodeType)("ExportSpecifier");
|
|
1125
|
+
if (!process.env.BABEL_TYPES_8_BREAKING) return sourced;
|
|
1126
|
+
return Object.assign(function (node, key, val) {
|
|
1127
|
+
const validator = node.source ? sourced : sourceless;
|
|
1128
|
+
validator(node, key, val);
|
|
1129
|
+
}, {
|
|
1130
|
+
oneOfNodeTypes: ["ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"]
|
|
1131
|
+
});
|
|
1132
|
+
}())
|
|
1133
|
+
},
|
|
1134
|
+
source: {
|
|
1135
|
+
validate: (0, _utils.assertNodeType)("StringLiteral"),
|
|
1136
|
+
optional: true
|
|
1137
|
+
},
|
|
1138
|
+
exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("type", "value"))
|
|
1139
|
+
})
|
|
1140
|
+
});
|
|
1141
|
+
defineType("ExportSpecifier", {
|
|
1142
|
+
visitor: ["local", "exported"],
|
|
1143
|
+
aliases: ["ModuleSpecifier"],
|
|
1144
|
+
fields: {
|
|
1145
|
+
local: {
|
|
1146
|
+
validate: (0, _utils.assertNodeType)("Identifier")
|
|
1147
|
+
},
|
|
1148
|
+
exported: {
|
|
1149
|
+
validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral")
|
|
1150
|
+
},
|
|
1151
|
+
exportKind: {
|
|
1152
|
+
validate: (0, _utils.assertOneOf)("type", "value"),
|
|
1153
|
+
optional: true
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
});
|
|
1157
|
+
defineType("ForOfStatement", {
|
|
1158
|
+
visitor: ["left", "right", "body"],
|
|
1159
|
+
builder: ["left", "right", "body", "await"],
|
|
1160
|
+
aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
|
|
1161
|
+
fields: {
|
|
1162
|
+
left: {
|
|
1163
|
+
validate: function () {
|
|
1164
|
+
if (!process.env.BABEL_TYPES_8_BREAKING) {
|
|
1165
|
+
return (0, _utils.assertNodeType)("VariableDeclaration", "LVal");
|
|
1166
|
+
}
|
|
1167
|
+
const declaration = (0, _utils.assertNodeType)("VariableDeclaration");
|
|
1168
|
+
const lval = (0, _utils.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression");
|
|
1169
|
+
return Object.assign(function (node, key, val) {
|
|
1170
|
+
if ((0, _is.default)("VariableDeclaration", val)) {
|
|
1171
|
+
declaration(node, key, val);
|
|
1172
|
+
} else {
|
|
1173
|
+
lval(node, key, val);
|
|
1174
|
+
}
|
|
1175
|
+
}, {
|
|
1176
|
+
oneOfNodeTypes: ["VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"]
|
|
1177
|
+
});
|
|
1178
|
+
}()
|
|
1179
|
+
},
|
|
1180
|
+
right: {
|
|
1181
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
1182
|
+
},
|
|
1183
|
+
body: {
|
|
1184
|
+
validate: (0, _utils.assertNodeType)("Statement")
|
|
1185
|
+
},
|
|
1186
|
+
await: {
|
|
1187
|
+
default: false
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
});
|
|
1191
|
+
defineType("ImportDeclaration", {
|
|
1192
|
+
builder: ["specifiers", "source", "attributes"],
|
|
1193
|
+
visitor: ["specifiers", "source", "attributes", "assertions"],
|
|
1194
|
+
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration"],
|
|
1195
|
+
fields: Object.assign({}, importAttributes, {
|
|
1196
|
+
module: {
|
|
1197
|
+
optional: true,
|
|
1198
|
+
validate: (0, _utils.assertValueType)("boolean")
|
|
1199
|
+
},
|
|
1200
|
+
phase: {
|
|
1201
|
+
default: null,
|
|
1202
|
+
validate: (0, _utils.assertOneOf)("source", "defer")
|
|
1203
|
+
},
|
|
1204
|
+
specifiers: (0, _utils.validateArrayOfType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier"),
|
|
1205
|
+
source: {
|
|
1206
|
+
validate: (0, _utils.assertNodeType)("StringLiteral")
|
|
1207
|
+
},
|
|
1208
|
+
importKind: {
|
|
1209
|
+
validate: (0, _utils.assertOneOf)("type", "typeof", "value"),
|
|
1210
|
+
optional: true
|
|
1211
|
+
}
|
|
1212
|
+
})
|
|
1213
|
+
});
|
|
1214
|
+
defineType("ImportDefaultSpecifier", {
|
|
1215
|
+
visitor: ["local"],
|
|
1216
|
+
aliases: ["ModuleSpecifier"],
|
|
1217
|
+
fields: {
|
|
1218
|
+
local: {
|
|
1219
|
+
validate: (0, _utils.assertNodeType)("Identifier")
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
});
|
|
1223
|
+
defineType("ImportNamespaceSpecifier", {
|
|
1224
|
+
visitor: ["local"],
|
|
1225
|
+
aliases: ["ModuleSpecifier"],
|
|
1226
|
+
fields: {
|
|
1227
|
+
local: {
|
|
1228
|
+
validate: (0, _utils.assertNodeType)("Identifier")
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
});
|
|
1232
|
+
defineType("ImportSpecifier", {
|
|
1233
|
+
visitor: ["imported", "local"],
|
|
1234
|
+
builder: ["local", "imported"],
|
|
1235
|
+
aliases: ["ModuleSpecifier"],
|
|
1236
|
+
fields: {
|
|
1237
|
+
local: {
|
|
1238
|
+
validate: (0, _utils.assertNodeType)("Identifier")
|
|
1239
|
+
},
|
|
1240
|
+
imported: {
|
|
1241
|
+
validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral")
|
|
1242
|
+
},
|
|
1243
|
+
importKind: {
|
|
1244
|
+
validate: (0, _utils.assertOneOf)("type", "typeof", "value"),
|
|
1245
|
+
optional: true
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
});
|
|
1249
|
+
defineType("ImportExpression", {
|
|
1250
|
+
visitor: ["source", "options"],
|
|
1251
|
+
aliases: ["Expression"],
|
|
1252
|
+
fields: {
|
|
1253
|
+
phase: {
|
|
1254
|
+
default: null,
|
|
1255
|
+
validate: (0, _utils.assertOneOf)("source", "defer")
|
|
1256
|
+
},
|
|
1257
|
+
source: {
|
|
1258
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
1259
|
+
},
|
|
1260
|
+
options: {
|
|
1261
|
+
validate: (0, _utils.assertNodeType)("Expression"),
|
|
1262
|
+
optional: true
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1266
|
+
defineType("MetaProperty", {
|
|
1267
|
+
visitor: ["meta", "property"],
|
|
1268
|
+
aliases: ["Expression"],
|
|
1269
|
+
fields: {
|
|
1270
|
+
meta: {
|
|
1271
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertNodeType)("Identifier"), Object.assign(function (node, key, val) {
|
|
1272
|
+
let property;
|
|
1273
|
+
switch (val.name) {
|
|
1274
|
+
case "function":
|
|
1275
|
+
property = "sent";
|
|
1276
|
+
break;
|
|
1277
|
+
case "new":
|
|
1278
|
+
property = "target";
|
|
1279
|
+
break;
|
|
1280
|
+
case "import":
|
|
1281
|
+
property = "meta";
|
|
1282
|
+
break;
|
|
1283
|
+
}
|
|
1284
|
+
if (!(0, _is.default)("Identifier", node.property, {
|
|
1285
|
+
name: property
|
|
1286
|
+
})) {
|
|
1287
|
+
throw new TypeError("Unrecognised MetaProperty");
|
|
1288
|
+
}
|
|
1289
|
+
}, {
|
|
1290
|
+
oneOfNodeTypes: ["Identifier"]
|
|
1291
|
+
})) : (0, _utils.assertNodeType)("Identifier")
|
|
1292
|
+
},
|
|
1293
|
+
property: {
|
|
1294
|
+
validate: (0, _utils.assertNodeType)("Identifier")
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
});
|
|
1298
|
+
const classMethodOrPropertyCommon = () => ({
|
|
1299
|
+
abstract: {
|
|
1300
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1301
|
+
optional: true
|
|
1302
|
+
},
|
|
1303
|
+
accessibility: {
|
|
1304
|
+
validate: (0, _utils.assertOneOf)("public", "private", "protected"),
|
|
1305
|
+
optional: true
|
|
1306
|
+
},
|
|
1307
|
+
static: {
|
|
1308
|
+
default: false
|
|
1309
|
+
},
|
|
1310
|
+
override: {
|
|
1311
|
+
default: false
|
|
1312
|
+
},
|
|
1313
|
+
computed: {
|
|
1314
|
+
default: false
|
|
1315
|
+
},
|
|
1316
|
+
optional: {
|
|
1317
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1318
|
+
optional: true
|
|
1319
|
+
},
|
|
1320
|
+
key: {
|
|
1321
|
+
validate: (0, _utils.chain)(function () {
|
|
1322
|
+
const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral");
|
|
1323
|
+
const computed = (0, _utils.assertNodeType)("Expression");
|
|
1324
|
+
return function (node, key, val) {
|
|
1325
|
+
const validator = node.computed ? computed : normal;
|
|
1326
|
+
validator(node, key, val);
|
|
1327
|
+
};
|
|
1328
|
+
}(), (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression"))
|
|
1329
|
+
}
|
|
1330
|
+
});
|
|
1331
|
+
exports.classMethodOrPropertyCommon = classMethodOrPropertyCommon;
|
|
1332
|
+
const classMethodOrDeclareMethodCommon = () => Object.assign({}, functionCommon(), classMethodOrPropertyCommon(), {
|
|
1333
|
+
params: (0, _utils.validateArrayOfType)("FunctionParameter", "TSParameterProperty"),
|
|
1334
|
+
kind: {
|
|
1335
|
+
validate: (0, _utils.assertOneOf)("get", "set", "method", "constructor"),
|
|
1336
|
+
default: "method"
|
|
1337
|
+
},
|
|
1338
|
+
access: {
|
|
1339
|
+
validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("public", "private", "protected")),
|
|
1340
|
+
optional: true
|
|
1341
|
+
},
|
|
1342
|
+
decorators: {
|
|
1343
|
+
validate: (0, _utils.arrayOfType)("Decorator"),
|
|
1344
|
+
optional: true
|
|
1345
|
+
}
|
|
1346
|
+
});
|
|
1347
|
+
exports.classMethodOrDeclareMethodCommon = classMethodOrDeclareMethodCommon;
|
|
1348
|
+
defineType("ClassMethod", Object.assign({
|
|
1349
|
+
aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"],
|
|
1350
|
+
builder: ["kind", "key", "params", "body", "computed", "static", "generator", "async"],
|
|
1351
|
+
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"]
|
|
1352
|
+
}, classMethodOrPropertyUnionShapeCommon(), {
|
|
1353
|
+
fields: Object.assign({}, classMethodOrDeclareMethodCommon(), functionTypeAnnotationCommon(), {
|
|
1354
|
+
body: {
|
|
1355
|
+
validate: (0, _utils.assertNodeType)("BlockStatement")
|
|
1356
|
+
}
|
|
1357
|
+
})
|
|
1358
|
+
}));
|
|
1359
|
+
defineType("ObjectPattern", {
|
|
1360
|
+
visitor: ["decorators", "properties", "typeAnnotation"],
|
|
1361
|
+
builder: ["properties"],
|
|
1362
|
+
aliases: ["FunctionParameter", "Pattern", "PatternLike", "LVal"],
|
|
1363
|
+
fields: Object.assign({}, patternLikeCommon(), {
|
|
1364
|
+
properties: (0, _utils.validateArrayOfType)("RestElement", "ObjectProperty")
|
|
1365
|
+
})
|
|
1366
|
+
});
|
|
1367
|
+
defineType("SpreadElement", {
|
|
1368
|
+
visitor: ["argument"],
|
|
1369
|
+
aliases: ["UnaryLike"],
|
|
1370
|
+
deprecatedAlias: "SpreadProperty",
|
|
1371
|
+
fields: {
|
|
1372
|
+
argument: {
|
|
1373
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
});
|
|
1377
|
+
defineType("Super", {
|
|
1378
|
+
aliases: ["Expression"]
|
|
1379
|
+
});
|
|
1380
|
+
defineType("TaggedTemplateExpression", {
|
|
1381
|
+
visitor: ["tag", "typeParameters", "quasi"],
|
|
1382
|
+
builder: ["tag", "quasi"],
|
|
1383
|
+
aliases: ["Expression"],
|
|
1384
|
+
fields: {
|
|
1385
|
+
tag: {
|
|
1386
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
1387
|
+
},
|
|
1388
|
+
quasi: {
|
|
1389
|
+
validate: (0, _utils.assertNodeType)("TemplateLiteral")
|
|
1390
|
+
},
|
|
1391
|
+
["typeParameters"]: {
|
|
1392
|
+
validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
|
|
1393
|
+
optional: true
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
});
|
|
1397
|
+
defineType("TemplateElement", {
|
|
1398
|
+
builder: ["value", "tail"],
|
|
1399
|
+
fields: {
|
|
1400
|
+
value: {
|
|
1401
|
+
validate: (0, _utils.chain)((0, _utils.assertShape)({
|
|
1402
|
+
raw: {
|
|
1403
|
+
validate: (0, _utils.assertValueType)("string")
|
|
1404
|
+
},
|
|
1405
|
+
cooked: {
|
|
1406
|
+
validate: (0, _utils.assertValueType)("string"),
|
|
1407
|
+
optional: true
|
|
1408
|
+
}
|
|
1409
|
+
}), function templateElementCookedValidator(node) {
|
|
1410
|
+
const raw = node.value.raw;
|
|
1411
|
+
let unterminatedCalled = false;
|
|
1412
|
+
const error = () => {
|
|
1413
|
+
throw new Error("Internal @babel/types error.");
|
|
1414
|
+
};
|
|
1415
|
+
const {
|
|
1416
|
+
str,
|
|
1417
|
+
firstInvalidLoc
|
|
1418
|
+
} = (0, _helperStringParser.readStringContents)("template", raw, 0, 0, 0, {
|
|
1419
|
+
unterminated() {
|
|
1420
|
+
unterminatedCalled = true;
|
|
1421
|
+
},
|
|
1422
|
+
strictNumericEscape: error,
|
|
1423
|
+
invalidEscapeSequence: error,
|
|
1424
|
+
numericSeparatorInEscapeSequence: error,
|
|
1425
|
+
unexpectedNumericSeparator: error,
|
|
1426
|
+
invalidDigit: error,
|
|
1427
|
+
invalidCodePoint: error
|
|
1428
|
+
});
|
|
1429
|
+
if (!unterminatedCalled) throw new Error("Invalid raw");
|
|
1430
|
+
node.value.cooked = firstInvalidLoc ? null : str;
|
|
1431
|
+
})
|
|
1432
|
+
},
|
|
1433
|
+
tail: {
|
|
1434
|
+
default: false
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
});
|
|
1438
|
+
defineType("TemplateLiteral", {
|
|
1439
|
+
visitor: ["quasis", "expressions"],
|
|
1440
|
+
aliases: ["Expression", "Literal"],
|
|
1441
|
+
fields: {
|
|
1442
|
+
quasis: (0, _utils.validateArrayOfType)("TemplateElement"),
|
|
1443
|
+
expressions: {
|
|
1444
|
+
validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "TSType")), function (node, key, val) {
|
|
1445
|
+
if (node.quasis.length !== val.length + 1) {
|
|
1446
|
+
throw new TypeError(`Number of ${node.type} quasis should be exactly one more than the number of expressions.\nExpected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
1447
|
+
}
|
|
1448
|
+
})
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
});
|
|
1452
|
+
defineType("YieldExpression", {
|
|
1453
|
+
builder: ["argument", "delegate"],
|
|
1454
|
+
visitor: ["argument"],
|
|
1455
|
+
aliases: ["Expression", "Terminatorless"],
|
|
1456
|
+
fields: {
|
|
1457
|
+
delegate: {
|
|
1458
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertValueType)("boolean"), Object.assign(function (node, key, val) {
|
|
1459
|
+
if (val && !node.argument) {
|
|
1460
|
+
throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument");
|
|
1461
|
+
}
|
|
1462
|
+
}, {
|
|
1463
|
+
type: "boolean"
|
|
1464
|
+
})) : (0, _utils.assertValueType)("boolean"),
|
|
1465
|
+
default: false
|
|
1466
|
+
},
|
|
1467
|
+
argument: {
|
|
1468
|
+
optional: true,
|
|
1469
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
});
|
|
1473
|
+
defineType("AwaitExpression", {
|
|
1474
|
+
builder: ["argument"],
|
|
1475
|
+
visitor: ["argument"],
|
|
1476
|
+
aliases: ["Expression", "Terminatorless"],
|
|
1477
|
+
fields: {
|
|
1478
|
+
argument: {
|
|
1479
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
});
|
|
1483
|
+
defineType("Import", {
|
|
1484
|
+
aliases: ["Expression"]
|
|
1485
|
+
});
|
|
1486
|
+
defineType("BigIntLiteral", {
|
|
1487
|
+
builder: ["value"],
|
|
1488
|
+
fields: {
|
|
1489
|
+
value: {
|
|
1490
|
+
validate: (0, _utils.assertValueType)("string")
|
|
1491
|
+
}
|
|
1492
|
+
},
|
|
1493
|
+
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
|
|
1494
|
+
});
|
|
1495
|
+
defineType("ExportNamespaceSpecifier", {
|
|
1496
|
+
visitor: ["exported"],
|
|
1497
|
+
aliases: ["ModuleSpecifier"],
|
|
1498
|
+
fields: {
|
|
1499
|
+
exported: {
|
|
1500
|
+
validate: (0, _utils.assertNodeType)("Identifier")
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
});
|
|
1504
|
+
defineType("OptionalMemberExpression", {
|
|
1505
|
+
builder: ["object", "property", "computed", "optional"],
|
|
1506
|
+
visitor: ["object", "property"],
|
|
1507
|
+
aliases: ["Expression"],
|
|
1508
|
+
fields: {
|
|
1509
|
+
object: {
|
|
1510
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
1511
|
+
},
|
|
1512
|
+
property: {
|
|
1513
|
+
validate: function () {
|
|
1514
|
+
const normal = (0, _utils.assertNodeType)("Identifier");
|
|
1515
|
+
const computed = (0, _utils.assertNodeType)("Expression");
|
|
1516
|
+
const validator = Object.assign(function (node, key, val) {
|
|
1517
|
+
const validator = node.computed ? computed : normal;
|
|
1518
|
+
validator(node, key, val);
|
|
1519
|
+
}, {
|
|
1520
|
+
oneOfNodeTypes: ["Expression", "Identifier"]
|
|
1521
|
+
});
|
|
1522
|
+
return validator;
|
|
1523
|
+
}()
|
|
1524
|
+
},
|
|
1525
|
+
computed: {
|
|
1526
|
+
default: false
|
|
1527
|
+
},
|
|
1528
|
+
optional: {
|
|
1529
|
+
validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("boolean") : (0, _utils.chain)((0, _utils.assertValueType)("boolean"), (0, _utils.assertOptionalChainStart)())
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
});
|
|
1533
|
+
defineType("OptionalCallExpression", {
|
|
1534
|
+
visitor: ["callee", "typeParameters", "typeArguments", "arguments"],
|
|
1535
|
+
builder: ["callee", "arguments", "optional"],
|
|
1536
|
+
aliases: ["Expression"],
|
|
1537
|
+
fields: Object.assign({
|
|
1538
|
+
callee: {
|
|
1539
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
1540
|
+
},
|
|
1541
|
+
arguments: (0, _utils.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"),
|
|
1542
|
+
optional: {
|
|
1543
|
+
validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("boolean") : (0, _utils.chain)((0, _utils.assertValueType)("boolean"), (0, _utils.assertOptionalChainStart)())
|
|
1544
|
+
},
|
|
1545
|
+
typeArguments: {
|
|
1546
|
+
validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"),
|
|
1547
|
+
optional: true
|
|
1548
|
+
}
|
|
1549
|
+
}, {
|
|
1550
|
+
typeParameters: {
|
|
1551
|
+
validate: (0, _utils.assertNodeType)("TSTypeParameterInstantiation"),
|
|
1552
|
+
optional: true
|
|
1553
|
+
}
|
|
1554
|
+
})
|
|
1555
|
+
});
|
|
1556
|
+
defineType("ClassProperty", Object.assign({
|
|
1557
|
+
visitor: ["decorators", "variance", "key", "typeAnnotation", "value"],
|
|
1558
|
+
builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
|
|
1559
|
+
aliases: ["Property"]
|
|
1560
|
+
}, classMethodOrPropertyUnionShapeCommon(), {
|
|
1561
|
+
fields: Object.assign({}, classMethodOrPropertyCommon(), {
|
|
1562
|
+
value: {
|
|
1563
|
+
validate: (0, _utils.assertNodeType)("Expression"),
|
|
1564
|
+
optional: true
|
|
1565
|
+
},
|
|
1566
|
+
definite: {
|
|
1567
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1568
|
+
optional: true
|
|
1569
|
+
},
|
|
1570
|
+
typeAnnotation: {
|
|
1571
|
+
validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
|
|
1572
|
+
optional: true
|
|
1573
|
+
},
|
|
1574
|
+
decorators: {
|
|
1575
|
+
validate: (0, _utils.arrayOfType)("Decorator"),
|
|
1576
|
+
optional: true
|
|
1577
|
+
},
|
|
1578
|
+
readonly: {
|
|
1579
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1580
|
+
optional: true
|
|
1581
|
+
},
|
|
1582
|
+
declare: {
|
|
1583
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1584
|
+
optional: true
|
|
1585
|
+
},
|
|
1586
|
+
variance: {
|
|
1587
|
+
validate: (0, _utils.assertNodeType)("Variance"),
|
|
1588
|
+
optional: true
|
|
1589
|
+
}
|
|
1590
|
+
})
|
|
1591
|
+
}));
|
|
1592
|
+
defineType("ClassAccessorProperty", Object.assign({
|
|
1593
|
+
visitor: ["decorators", "key", "typeAnnotation", "value"],
|
|
1594
|
+
builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
|
|
1595
|
+
aliases: ["Property", "Accessor"]
|
|
1596
|
+
}, classMethodOrPropertyUnionShapeCommon(true), {
|
|
1597
|
+
fields: Object.assign({}, classMethodOrPropertyCommon(), {
|
|
1598
|
+
key: {
|
|
1599
|
+
validate: (0, _utils.chain)(function () {
|
|
1600
|
+
const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName");
|
|
1601
|
+
const computed = (0, _utils.assertNodeType)("Expression");
|
|
1602
|
+
return function (node, key, val) {
|
|
1603
|
+
const validator = node.computed ? computed : normal;
|
|
1604
|
+
validator(node, key, val);
|
|
1605
|
+
};
|
|
1606
|
+
}(), (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression", "PrivateName"))
|
|
1607
|
+
},
|
|
1608
|
+
value: {
|
|
1609
|
+
validate: (0, _utils.assertNodeType)("Expression"),
|
|
1610
|
+
optional: true
|
|
1611
|
+
},
|
|
1612
|
+
definite: {
|
|
1613
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1614
|
+
optional: true
|
|
1615
|
+
},
|
|
1616
|
+
typeAnnotation: {
|
|
1617
|
+
validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
|
|
1618
|
+
optional: true
|
|
1619
|
+
},
|
|
1620
|
+
decorators: {
|
|
1621
|
+
validate: (0, _utils.arrayOfType)("Decorator"),
|
|
1622
|
+
optional: true
|
|
1623
|
+
},
|
|
1624
|
+
readonly: {
|
|
1625
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1626
|
+
optional: true
|
|
1627
|
+
},
|
|
1628
|
+
declare: {
|
|
1629
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1630
|
+
optional: true
|
|
1631
|
+
},
|
|
1632
|
+
variance: {
|
|
1633
|
+
validate: (0, _utils.assertNodeType)("Variance"),
|
|
1634
|
+
optional: true
|
|
1635
|
+
}
|
|
1636
|
+
})
|
|
1637
|
+
}));
|
|
1638
|
+
defineType("ClassPrivateProperty", {
|
|
1639
|
+
visitor: ["decorators", "variance", "key", "typeAnnotation", "value"],
|
|
1640
|
+
builder: ["key", "value", "decorators", "static"],
|
|
1641
|
+
aliases: ["Property", "Private"],
|
|
1642
|
+
fields: {
|
|
1643
|
+
key: {
|
|
1644
|
+
validate: (0, _utils.assertNodeType)("PrivateName")
|
|
1645
|
+
},
|
|
1646
|
+
value: {
|
|
1647
|
+
validate: (0, _utils.assertNodeType)("Expression"),
|
|
1648
|
+
optional: true
|
|
1649
|
+
},
|
|
1650
|
+
typeAnnotation: {
|
|
1651
|
+
validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
|
|
1652
|
+
optional: true
|
|
1653
|
+
},
|
|
1654
|
+
decorators: {
|
|
1655
|
+
validate: (0, _utils.arrayOfType)("Decorator"),
|
|
1656
|
+
optional: true
|
|
1657
|
+
},
|
|
1658
|
+
static: {
|
|
1659
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1660
|
+
default: false
|
|
1661
|
+
},
|
|
1662
|
+
readonly: {
|
|
1663
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1664
|
+
optional: true
|
|
1665
|
+
},
|
|
1666
|
+
optional: {
|
|
1667
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1668
|
+
optional: true
|
|
1669
|
+
},
|
|
1670
|
+
definite: {
|
|
1671
|
+
validate: (0, _utils.assertValueType)("boolean"),
|
|
1672
|
+
optional: true
|
|
1673
|
+
},
|
|
1674
|
+
variance: {
|
|
1675
|
+
validate: (0, _utils.assertNodeType)("Variance"),
|
|
1676
|
+
optional: true
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
});
|
|
1680
|
+
defineType("ClassPrivateMethod", {
|
|
1681
|
+
builder: ["kind", "key", "params", "body", "static"],
|
|
1682
|
+
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"],
|
|
1683
|
+
aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method", "Private"],
|
|
1684
|
+
fields: Object.assign({}, classMethodOrDeclareMethodCommon(), functionTypeAnnotationCommon(), {
|
|
1685
|
+
kind: {
|
|
1686
|
+
validate: (0, _utils.assertOneOf)("get", "set", "method"),
|
|
1687
|
+
default: "method"
|
|
1688
|
+
},
|
|
1689
|
+
key: {
|
|
1690
|
+
validate: (0, _utils.assertNodeType)("PrivateName")
|
|
1691
|
+
},
|
|
1692
|
+
body: {
|
|
1693
|
+
validate: (0, _utils.assertNodeType)("BlockStatement")
|
|
1694
|
+
}
|
|
1695
|
+
})
|
|
1696
|
+
});
|
|
1697
|
+
defineType("PrivateName", {
|
|
1698
|
+
visitor: ["id"],
|
|
1699
|
+
aliases: ["Private"],
|
|
1700
|
+
fields: {
|
|
1701
|
+
id: {
|
|
1702
|
+
validate: (0, _utils.assertNodeType)("Identifier")
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
});
|
|
1706
|
+
defineType("StaticBlock", {
|
|
1707
|
+
visitor: ["body"],
|
|
1708
|
+
fields: {
|
|
1709
|
+
body: (0, _utils.validateArrayOfType)("Statement")
|
|
1710
|
+
},
|
|
1711
|
+
aliases: ["Scopable", "BlockParent", "FunctionParent"]
|
|
1712
|
+
});
|
|
1713
|
+
defineType("ImportAttribute", {
|
|
1714
|
+
visitor: ["key", "value"],
|
|
1715
|
+
fields: {
|
|
1716
|
+
key: {
|
|
1717
|
+
validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral")
|
|
1718
|
+
},
|
|
1719
|
+
value: {
|
|
1720
|
+
validate: (0, _utils.assertNodeType)("StringLiteral")
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
});
|
|
1724
|
+
|
|
1725
|
+
//# sourceMappingURL=core.js.map
|