botversion-sdk 2.2.3 → 2.3.0
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/core.js +56 -0
- package/index.js +62 -495
- package/package.json +18 -5
- package/register.js +19 -0
- package/{bin → scanner-sdk/bin}/scan-backend.js +17 -0
- package/scanner-sdk/index.js +525 -0
- package/{interceptor.js → scanner-sdk/interceptor.js} +5 -0
- package/scanner-sdk/node_modules/.bin/jsesc +16 -0
- package/scanner-sdk/node_modules/.bin/jsesc.cmd +17 -0
- package/scanner-sdk/node_modules/.bin/jsesc.ps1 +28 -0
- package/scanner-sdk/node_modules/.bin/mime +16 -0
- package/scanner-sdk/node_modules/.bin/mime.cmd +17 -0
- package/scanner-sdk/node_modules/.bin/mime.ps1 +28 -0
- package/scanner-sdk/node_modules/.bin/parser +16 -0
- package/scanner-sdk/node_modules/.bin/parser.cmd +17 -0
- package/scanner-sdk/node_modules/.bin/parser.ps1 +28 -0
- package/scanner-sdk/node_modules/.package-lock.json +1031 -0
- package/scanner-sdk/node_modules/@babel/code-frame/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/code-frame/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/code-frame/lib/index.js +217 -0
- package/scanner-sdk/node_modules/@babel/code-frame/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/code-frame/package.json +32 -0
- package/scanner-sdk/node_modules/@babel/generator/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/generator/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/buffer.js +244 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/buffer.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/base.js +86 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/base.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/classes.js +215 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/classes.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/deprecated.js +73 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/deprecated.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/expressions.js +309 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/flow.js +658 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/flow.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/index.js +128 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/jsx.js +124 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/methods.js +207 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/methods.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/modules.js +290 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/modules.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/statements.js +297 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/statements.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/template-literals.js +38 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/types.js +183 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/types.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/typescript.js +726 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/index.js +108 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/node/index.js +81 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/node/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/node/parentheses.js +298 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/nodes.js +19 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/nodes.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/printer.js +782 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/printer.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/source-map.js +86 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/source-map.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/token-map.js +195 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/token-map.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/package.json +39 -0
- package/scanner-sdk/node_modules/@babel/helper-globals/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/helper-globals/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/helper-globals/data/browser-upper.json +911 -0
- package/scanner-sdk/node_modules/@babel/helper-globals/data/builtin-lower.json +15 -0
- package/scanner-sdk/node_modules/@babel/helper-globals/data/builtin-upper.json +51 -0
- package/scanner-sdk/node_modules/@babel/helper-globals/package.json +32 -0
- package/scanner-sdk/node_modules/@babel/helper-string-parser/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/helper-string-parser/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/helper-string-parser/lib/index.js +295 -0
- package/scanner-sdk/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/helper-string-parser/package.json +31 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/scanner-sdk/node_modules/@babel/parser/CHANGELOG.md +1073 -0
- package/scanner-sdk/node_modules/@babel/parser/LICENSE +19 -0
- package/scanner-sdk/node_modules/@babel/parser/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/parser/bin/babel-parser.js +15 -0
- package/scanner-sdk/node_modules/@babel/parser/lib/index.js +14599 -0
- package/scanner-sdk/node_modules/@babel/parser/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/parser/package.json +50 -0
- package/scanner-sdk/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
- package/scanner-sdk/node_modules/@babel/template/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/template/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/template/lib/builder.js +69 -0
- package/scanner-sdk/node_modules/@babel/template/lib/builder.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/formatters.js +61 -0
- package/scanner-sdk/node_modules/@babel/template/lib/formatters.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/index.js +23 -0
- package/scanner-sdk/node_modules/@babel/template/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/literal.js +69 -0
- package/scanner-sdk/node_modules/@babel/template/lib/literal.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/options.js +73 -0
- package/scanner-sdk/node_modules/@babel/template/lib/options.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/parse.js +163 -0
- package/scanner-sdk/node_modules/@babel/template/lib/parse.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/populate.js +138 -0
- package/scanner-sdk/node_modules/@babel/template/lib/populate.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/string.js +20 -0
- package/scanner-sdk/node_modules/@babel/template/lib/string.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/package.json +27 -0
- package/scanner-sdk/node_modules/@babel/traverse/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/traverse/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/cache.js +37 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/cache.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/context.js +125 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/context.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/hub.js +19 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/hub.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/index.js +87 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/ancestry.js +139 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/ancestry.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/comments.js +52 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/comments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/context.js +254 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/context.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/conversion.js +608 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/evaluation.js +373 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/family.js +346 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/family.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/index.js +288 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/index.js +149 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js +151 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/inferers.js +207 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/inferers.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/util.js +28 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/util.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/introspection.js +395 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/introspection.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/hoister.js +172 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js +38 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js +162 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/virtual-types.js +26 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/virtual-types.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/modification.js +229 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/modification.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/removal.js +67 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/removal.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/replacement.js +264 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/binding.js +84 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/binding.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/index.js +1018 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/lib/renamer.js +132 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/lib/renamer.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/traverseForScope.js +66 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/traverseForScope.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/traverse-node.js +137 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/traverse-node.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/types.js +3 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/types.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/visitors.js +252 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/visitors.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/LICENSE +20 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/README.md +481 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/package.json +64 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/src/browser.js +272 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/src/common.js +292 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/src/index.js +10 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/src/node.js +263 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/ms/index.js +162 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/ms/license.md +21 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/ms/package.json +38 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/ms/readme.md +59 -0
- package/scanner-sdk/node_modules/@babel/traverse/package.json +35 -0
- package/scanner-sdk/node_modules/@babel/traverse/tsconfig.overrides.json +6 -0
- package/scanner-sdk/node_modules/@babel/types/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/types/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/types/lib/asserts/assertNode.js +16 -0
- package/scanner-sdk/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/asserts/generated/index.js +1251 -0
- package/scanner-sdk/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/ast-types/generated/index.js +3 -0
- package/scanner-sdk/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +18 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +31 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/generated/index.js +29 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/generated/lowercase.js +2902 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/generated/uppercase.js +272 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/productions.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/productions.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/react/buildChildren.js +24 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +22 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/validateNode.js +21 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/validateNode.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/clone.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/clone.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneDeep.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneDeep.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneNode.js +107 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/addComment.js +15 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/addComment.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/addComments.js +22 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/addComments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritInnerComments.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritsComments.js +17 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritsComments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/removeComments.js +15 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/removeComments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/constants/generated/index.js +60 -0
- package/scanner-sdk/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/constants/index.js +31 -0
- package/scanner-sdk/node_modules/@babel/types/lib/constants/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/ensureBlock.js +14 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/ensureBlock.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +65 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +14 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toBlock.js +29 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toBlock.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toComputedKey.js +14 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toComputedKey.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toExpression.js +28 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toIdentifier.js +25 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toIdentifier.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toKeyAlias.js +38 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toSequenceExpression.js +19 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toStatement.js +39 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/valueToNode.js +89 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/core.js +1725 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/core.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +11 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/experimental.js +124 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/flow.js +495 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/flow.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/index.js +106 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/jsx.js +157 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/misc.js +31 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/misc.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/placeholders.js +27 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/placeholders.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/typescript.js +528 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/utils.js +296 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/utils.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/index-legacy.d.ts +2797 -0
- package/scanner-sdk/node_modules/@babel/types/lib/index.d.ts +3617 -0
- package/scanner-sdk/node_modules/@babel/types/lib/index.js +582 -0
- package/scanner-sdk/node_modules/@babel/types/lib/index.js.flow +2650 -0
- package/scanner-sdk/node_modules/@babel/types/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +15 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +65 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/inherits.js +28 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/inherits.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +17 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/removeProperties.js +24 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/removeProperties.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +14 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +66 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +48 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +102 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getFunctionName.js +63 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +13 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/traverse/traverse.js +50 -0
- package/scanner-sdk/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/traverse/traverseFast.js +40 -0
- package/scanner-sdk/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/deprecationWarning.js +44 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/inherit.js +13 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/inherit.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +40 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/shallowEqual.js +17 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/shallowEqual.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +13 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/generated/index.js +2797 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/is.js +27 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/is.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isBinding.js +27 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isBinding.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isBlockScoped.js +13 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isImmutable.js +21 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isImmutable.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isLet.js +13 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isLet.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isNode.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isNode.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +57 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isPlaceholderType.js +15 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isReferenced.js +96 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isReferenced.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isScope.js +18 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isScope.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +14 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isType.js +17 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isType.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +13 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isValidIdentifier.js +18 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isVar.js +15 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isVar.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/matchesPattern.js +44 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/react/isCompatTag.js +11 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/react/isReactComponent.js +11 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/validate.js +42 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/validate.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/package.json +39 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/LICENSE +19 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/README.md +227 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +292 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +6 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +358 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +6 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/types/set-array.d.ts +32 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +43 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/package.json +67 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/src/gen-mapping.ts +614 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/src/set-array.ts +82 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/src/sourcemap-segment.ts +16 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/src/types.ts +61 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts +89 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts +89 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts +33 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts +33 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts +13 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts +13 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/types.d.cts +44 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/types.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/types.d.mts +44 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/types.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/package.json +69 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/LICENSE +19 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/README.md +348 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +493 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +6 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +559 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +6 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/package.json +67 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/binary-search.ts +115 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/by-source.ts +41 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/flatten-map.ts +192 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/resolve.ts +16 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/sort.ts +45 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts +23 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts +8 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts +502 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/types.ts +114 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts +33 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +33 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts +9 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +9 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sort.d.cts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sort.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sort.d.mts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sort.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts +17 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +17 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts +5 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts +5 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts +80 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +80 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/types.d.cts +107 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/types.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/types.d.mts +107 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/types.d.mts.map +1 -0
- package/scanner-sdk/node_modules/accepts/HISTORY.md +243 -0
- package/scanner-sdk/node_modules/accepts/LICENSE +23 -0
- package/scanner-sdk/node_modules/accepts/README.md +140 -0
- package/scanner-sdk/node_modules/accepts/index.js +238 -0
- package/scanner-sdk/node_modules/accepts/package.json +47 -0
- package/scanner-sdk/node_modules/array-flatten/LICENSE +21 -0
- package/scanner-sdk/node_modules/array-flatten/README.md +43 -0
- package/scanner-sdk/node_modules/array-flatten/array-flatten.js +64 -0
- package/scanner-sdk/node_modules/array-flatten/package.json +39 -0
- package/scanner-sdk/node_modules/body-parser/HISTORY.md +680 -0
- package/scanner-sdk/node_modules/body-parser/LICENSE +23 -0
- package/scanner-sdk/node_modules/body-parser/README.md +476 -0
- package/scanner-sdk/node_modules/body-parser/index.js +156 -0
- package/scanner-sdk/node_modules/body-parser/lib/read.js +205 -0
- package/scanner-sdk/node_modules/body-parser/lib/types/json.js +247 -0
- package/scanner-sdk/node_modules/body-parser/lib/types/raw.js +101 -0
- package/scanner-sdk/node_modules/body-parser/lib/types/text.js +121 -0
- package/scanner-sdk/node_modules/body-parser/lib/types/urlencoded.js +300 -0
- package/scanner-sdk/node_modules/body-parser/package.json +55 -0
- package/scanner-sdk/node_modules/bytes/History.md +97 -0
- package/scanner-sdk/node_modules/bytes/LICENSE +23 -0
- package/scanner-sdk/node_modules/bytes/Readme.md +152 -0
- package/scanner-sdk/node_modules/bytes/index.js +170 -0
- package/scanner-sdk/node_modules/bytes/package.json +42 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/call-bound/.eslintrc +13 -0
- package/scanner-sdk/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/call-bound/.nycrc +9 -0
- package/scanner-sdk/node_modules/call-bound/CHANGELOG.md +42 -0
- package/scanner-sdk/node_modules/call-bound/LICENSE +21 -0
- package/scanner-sdk/node_modules/call-bound/README.md +53 -0
- package/scanner-sdk/node_modules/call-bound/index.d.ts +94 -0
- package/scanner-sdk/node_modules/call-bound/index.js +19 -0
- package/scanner-sdk/node_modules/call-bound/package.json +99 -0
- package/scanner-sdk/node_modules/call-bound/test/index.js +61 -0
- package/scanner-sdk/node_modules/call-bound/tsconfig.json +10 -0
- package/scanner-sdk/node_modules/content-disposition/HISTORY.md +60 -0
- package/scanner-sdk/node_modules/content-disposition/LICENSE +22 -0
- package/scanner-sdk/node_modules/content-disposition/README.md +142 -0
- package/scanner-sdk/node_modules/content-disposition/index.js +458 -0
- package/scanner-sdk/node_modules/content-disposition/package.json +44 -0
- package/scanner-sdk/node_modules/content-type/HISTORY.md +29 -0
- package/scanner-sdk/node_modules/content-type/LICENSE +22 -0
- package/scanner-sdk/node_modules/content-type/README.md +94 -0
- package/scanner-sdk/node_modules/content-type/index.js +225 -0
- package/scanner-sdk/node_modules/content-type/package.json +42 -0
- package/scanner-sdk/node_modules/cookie/LICENSE +24 -0
- package/scanner-sdk/node_modules/cookie/README.md +317 -0
- package/scanner-sdk/node_modules/cookie/SECURITY.md +25 -0
- package/scanner-sdk/node_modules/cookie/index.js +335 -0
- package/scanner-sdk/node_modules/cookie/package.json +44 -0
- package/scanner-sdk/node_modules/cookie-signature/History.md +42 -0
- package/scanner-sdk/node_modules/cookie-signature/Readme.md +42 -0
- package/scanner-sdk/node_modules/cookie-signature/index.js +51 -0
- package/scanner-sdk/node_modules/cookie-signature/package.json +18 -0
- package/scanner-sdk/node_modules/debug/.coveralls.yml +1 -0
- package/scanner-sdk/node_modules/debug/.eslintrc +11 -0
- package/scanner-sdk/node_modules/debug/.travis.yml +14 -0
- package/scanner-sdk/node_modules/debug/CHANGELOG.md +362 -0
- package/scanner-sdk/node_modules/debug/LICENSE +19 -0
- package/scanner-sdk/node_modules/debug/Makefile +50 -0
- package/scanner-sdk/node_modules/debug/README.md +312 -0
- package/scanner-sdk/node_modules/debug/component.json +19 -0
- package/scanner-sdk/node_modules/debug/karma.conf.js +70 -0
- package/scanner-sdk/node_modules/debug/node.js +1 -0
- package/scanner-sdk/node_modules/debug/package.json +49 -0
- package/scanner-sdk/node_modules/debug/src/browser.js +185 -0
- package/scanner-sdk/node_modules/debug/src/debug.js +202 -0
- package/scanner-sdk/node_modules/debug/src/index.js +10 -0
- package/scanner-sdk/node_modules/debug/src/inspector-log.js +15 -0
- package/scanner-sdk/node_modules/debug/src/node.js +248 -0
- package/scanner-sdk/node_modules/depd/History.md +103 -0
- package/scanner-sdk/node_modules/depd/LICENSE +22 -0
- package/scanner-sdk/node_modules/depd/Readme.md +280 -0
- package/scanner-sdk/node_modules/depd/index.js +538 -0
- package/scanner-sdk/node_modules/depd/lib/browser/index.js +77 -0
- package/scanner-sdk/node_modules/depd/package.json +45 -0
- package/scanner-sdk/node_modules/destroy/LICENSE +23 -0
- package/scanner-sdk/node_modules/destroy/README.md +63 -0
- package/scanner-sdk/node_modules/destroy/index.js +209 -0
- package/scanner-sdk/node_modules/destroy/package.json +48 -0
- package/scanner-sdk/node_modules/dotenv/CHANGELOG.md +520 -0
- package/scanner-sdk/node_modules/dotenv/LICENSE +23 -0
- package/scanner-sdk/node_modules/dotenv/README-es.md +411 -0
- package/scanner-sdk/node_modules/dotenv/README.md +645 -0
- package/scanner-sdk/node_modules/dotenv/SECURITY.md +1 -0
- package/scanner-sdk/node_modules/dotenv/config.d.ts +1 -0
- package/scanner-sdk/node_modules/dotenv/config.js +9 -0
- package/scanner-sdk/node_modules/dotenv/lib/cli-options.js +17 -0
- package/scanner-sdk/node_modules/dotenv/lib/env-options.js +28 -0
- package/scanner-sdk/node_modules/dotenv/lib/main.d.ts +162 -0
- package/scanner-sdk/node_modules/dotenv/lib/main.js +386 -0
- package/scanner-sdk/node_modules/dotenv/package.json +62 -0
- package/scanner-sdk/node_modules/dunder-proto/.eslintrc +5 -0
- package/scanner-sdk/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/dunder-proto/.nycrc +13 -0
- package/scanner-sdk/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/scanner-sdk/node_modules/dunder-proto/LICENSE +21 -0
- package/scanner-sdk/node_modules/dunder-proto/README.md +54 -0
- package/scanner-sdk/node_modules/dunder-proto/get.d.ts +5 -0
- package/scanner-sdk/node_modules/dunder-proto/get.js +30 -0
- package/scanner-sdk/node_modules/dunder-proto/package.json +76 -0
- package/scanner-sdk/node_modules/dunder-proto/set.d.ts +5 -0
- package/scanner-sdk/node_modules/dunder-proto/set.js +35 -0
- package/scanner-sdk/node_modules/dunder-proto/test/get.js +34 -0
- package/scanner-sdk/node_modules/dunder-proto/test/index.js +4 -0
- package/scanner-sdk/node_modules/dunder-proto/test/set.js +50 -0
- package/scanner-sdk/node_modules/dunder-proto/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/ee-first/LICENSE +22 -0
- package/scanner-sdk/node_modules/ee-first/README.md +80 -0
- package/scanner-sdk/node_modules/ee-first/index.js +95 -0
- package/scanner-sdk/node_modules/ee-first/package.json +29 -0
- package/scanner-sdk/node_modules/encodeurl/LICENSE +22 -0
- package/scanner-sdk/node_modules/encodeurl/README.md +109 -0
- package/scanner-sdk/node_modules/encodeurl/index.js +60 -0
- package/scanner-sdk/node_modules/encodeurl/package.json +40 -0
- package/scanner-sdk/node_modules/es-define-property/.eslintrc +13 -0
- package/scanner-sdk/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/es-define-property/.nycrc +9 -0
- package/scanner-sdk/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/scanner-sdk/node_modules/es-define-property/LICENSE +21 -0
- package/scanner-sdk/node_modules/es-define-property/README.md +49 -0
- package/scanner-sdk/node_modules/es-define-property/index.d.ts +3 -0
- package/scanner-sdk/node_modules/es-define-property/index.js +14 -0
- package/scanner-sdk/node_modules/es-define-property/package.json +81 -0
- package/scanner-sdk/node_modules/es-define-property/test/index.js +56 -0
- package/scanner-sdk/node_modules/es-define-property/tsconfig.json +10 -0
- package/scanner-sdk/node_modules/es-errors/.eslintrc +5 -0
- package/scanner-sdk/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/es-errors/CHANGELOG.md +40 -0
- package/scanner-sdk/node_modules/es-errors/LICENSE +21 -0
- package/scanner-sdk/node_modules/es-errors/README.md +55 -0
- package/scanner-sdk/node_modules/es-errors/eval.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/eval.js +4 -0
- package/scanner-sdk/node_modules/es-errors/index.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/index.js +4 -0
- package/scanner-sdk/node_modules/es-errors/package.json +80 -0
- package/scanner-sdk/node_modules/es-errors/range.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/range.js +4 -0
- package/scanner-sdk/node_modules/es-errors/ref.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/ref.js +4 -0
- package/scanner-sdk/node_modules/es-errors/syntax.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/syntax.js +4 -0
- package/scanner-sdk/node_modules/es-errors/test/index.js +19 -0
- package/scanner-sdk/node_modules/es-errors/tsconfig.json +49 -0
- package/scanner-sdk/node_modules/es-errors/type.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/type.js +4 -0
- package/scanner-sdk/node_modules/es-errors/uri.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/uri.js +4 -0
- package/scanner-sdk/node_modules/es-object-atoms/.eslintrc +16 -0
- package/scanner-sdk/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/scanner-sdk/node_modules/es-object-atoms/LICENSE +21 -0
- package/scanner-sdk/node_modules/es-object-atoms/README.md +63 -0
- package/scanner-sdk/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/scanner-sdk/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/scanner-sdk/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/scanner-sdk/node_modules/es-object-atoms/ToObject.js +10 -0
- package/scanner-sdk/node_modules/es-object-atoms/index.d.ts +3 -0
- package/scanner-sdk/node_modules/es-object-atoms/index.js +4 -0
- package/scanner-sdk/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/scanner-sdk/node_modules/es-object-atoms/isObject.js +6 -0
- package/scanner-sdk/node_modules/es-object-atoms/package.json +80 -0
- package/scanner-sdk/node_modules/es-object-atoms/test/index.js +38 -0
- package/scanner-sdk/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/scanner-sdk/node_modules/escape-html/LICENSE +24 -0
- package/scanner-sdk/node_modules/escape-html/Readme.md +43 -0
- package/scanner-sdk/node_modules/escape-html/index.js +78 -0
- package/scanner-sdk/node_modules/escape-html/package.json +24 -0
- package/scanner-sdk/node_modules/etag/HISTORY.md +83 -0
- package/scanner-sdk/node_modules/etag/LICENSE +22 -0
- package/scanner-sdk/node_modules/etag/README.md +159 -0
- package/scanner-sdk/node_modules/etag/index.js +131 -0
- package/scanner-sdk/node_modules/etag/package.json +47 -0
- package/scanner-sdk/node_modules/express/History.md +3667 -0
- package/scanner-sdk/node_modules/express/LICENSE +24 -0
- package/scanner-sdk/node_modules/express/Readme.md +260 -0
- package/scanner-sdk/node_modules/express/index.js +11 -0
- package/scanner-sdk/node_modules/express/lib/application.js +661 -0
- package/scanner-sdk/node_modules/express/lib/express.js +116 -0
- package/scanner-sdk/node_modules/express/lib/middleware/init.js +43 -0
- package/scanner-sdk/node_modules/express/lib/middleware/query.js +47 -0
- package/scanner-sdk/node_modules/express/lib/request.js +525 -0
- package/scanner-sdk/node_modules/express/lib/response.js +1179 -0
- package/scanner-sdk/node_modules/express/lib/router/index.js +673 -0
- package/scanner-sdk/node_modules/express/lib/router/layer.js +181 -0
- package/scanner-sdk/node_modules/express/lib/router/route.js +230 -0
- package/scanner-sdk/node_modules/express/lib/utils.js +303 -0
- package/scanner-sdk/node_modules/express/lib/view.js +182 -0
- package/scanner-sdk/node_modules/express/package.json +102 -0
- package/scanner-sdk/node_modules/finalhandler/HISTORY.md +216 -0
- package/scanner-sdk/node_modules/finalhandler/LICENSE +22 -0
- package/scanner-sdk/node_modules/finalhandler/README.md +147 -0
- package/scanner-sdk/node_modules/finalhandler/SECURITY.md +25 -0
- package/scanner-sdk/node_modules/finalhandler/index.js +341 -0
- package/scanner-sdk/node_modules/finalhandler/package.json +47 -0
- package/scanner-sdk/node_modules/forwarded/HISTORY.md +21 -0
- package/scanner-sdk/node_modules/forwarded/LICENSE +22 -0
- package/scanner-sdk/node_modules/forwarded/README.md +57 -0
- package/scanner-sdk/node_modules/forwarded/index.js +90 -0
- package/scanner-sdk/node_modules/forwarded/package.json +45 -0
- package/scanner-sdk/node_modules/fresh/HISTORY.md +70 -0
- package/scanner-sdk/node_modules/fresh/LICENSE +23 -0
- package/scanner-sdk/node_modules/fresh/README.md +119 -0
- package/scanner-sdk/node_modules/fresh/index.js +137 -0
- package/scanner-sdk/node_modules/fresh/package.json +46 -0
- package/scanner-sdk/node_modules/function-bind/.eslintrc +21 -0
- package/scanner-sdk/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/scanner-sdk/node_modules/function-bind/.nycrc +13 -0
- package/scanner-sdk/node_modules/function-bind/CHANGELOG.md +136 -0
- package/scanner-sdk/node_modules/function-bind/LICENSE +20 -0
- package/scanner-sdk/node_modules/function-bind/README.md +46 -0
- package/scanner-sdk/node_modules/function-bind/implementation.js +84 -0
- package/scanner-sdk/node_modules/function-bind/index.js +5 -0
- package/scanner-sdk/node_modules/function-bind/package.json +87 -0
- package/scanner-sdk/node_modules/function-bind/test/.eslintrc +9 -0
- package/scanner-sdk/node_modules/function-bind/test/index.js +252 -0
- package/scanner-sdk/node_modules/get-intrinsic/.eslintrc +42 -0
- package/scanner-sdk/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/get-intrinsic/.nycrc +9 -0
- package/scanner-sdk/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/scanner-sdk/node_modules/get-intrinsic/LICENSE +21 -0
- package/scanner-sdk/node_modules/get-intrinsic/README.md +71 -0
- package/scanner-sdk/node_modules/get-intrinsic/index.js +378 -0
- package/scanner-sdk/node_modules/get-intrinsic/package.json +97 -0
- package/scanner-sdk/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/scanner-sdk/node_modules/get-proto/.eslintrc +10 -0
- package/scanner-sdk/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/get-proto/.nycrc +9 -0
- package/scanner-sdk/node_modules/get-proto/CHANGELOG.md +21 -0
- package/scanner-sdk/node_modules/get-proto/LICENSE +21 -0
- package/scanner-sdk/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/scanner-sdk/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/scanner-sdk/node_modules/get-proto/README.md +50 -0
- package/scanner-sdk/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/scanner-sdk/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/scanner-sdk/node_modules/get-proto/index.d.ts +5 -0
- package/scanner-sdk/node_modules/get-proto/index.js +27 -0
- package/scanner-sdk/node_modules/get-proto/package.json +81 -0
- package/scanner-sdk/node_modules/get-proto/test/index.js +68 -0
- package/scanner-sdk/node_modules/get-proto/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/gopd/.eslintrc +16 -0
- package/scanner-sdk/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/gopd/CHANGELOG.md +45 -0
- package/scanner-sdk/node_modules/gopd/LICENSE +21 -0
- package/scanner-sdk/node_modules/gopd/README.md +40 -0
- package/scanner-sdk/node_modules/gopd/gOPD.d.ts +1 -0
- package/scanner-sdk/node_modules/gopd/gOPD.js +4 -0
- package/scanner-sdk/node_modules/gopd/index.d.ts +5 -0
- package/scanner-sdk/node_modules/gopd/index.js +15 -0
- package/scanner-sdk/node_modules/gopd/package.json +77 -0
- package/scanner-sdk/node_modules/gopd/test/index.js +36 -0
- package/scanner-sdk/node_modules/gopd/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/has-symbols/.eslintrc +11 -0
- package/scanner-sdk/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/has-symbols/.nycrc +9 -0
- package/scanner-sdk/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/scanner-sdk/node_modules/has-symbols/LICENSE +21 -0
- package/scanner-sdk/node_modules/has-symbols/README.md +46 -0
- package/scanner-sdk/node_modules/has-symbols/index.d.ts +3 -0
- package/scanner-sdk/node_modules/has-symbols/index.js +14 -0
- package/scanner-sdk/node_modules/has-symbols/package.json +111 -0
- package/scanner-sdk/node_modules/has-symbols/shams.d.ts +3 -0
- package/scanner-sdk/node_modules/has-symbols/shams.js +45 -0
- package/scanner-sdk/node_modules/has-symbols/test/index.js +22 -0
- package/scanner-sdk/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/scanner-sdk/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/scanner-sdk/node_modules/has-symbols/test/tests.js +58 -0
- package/scanner-sdk/node_modules/has-symbols/tsconfig.json +10 -0
- package/scanner-sdk/node_modules/hasown/.eslintrc +5 -0
- package/scanner-sdk/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/hasown/.nycrc +13 -0
- package/scanner-sdk/node_modules/hasown/CHANGELOG.md +40 -0
- package/scanner-sdk/node_modules/hasown/LICENSE +21 -0
- package/scanner-sdk/node_modules/hasown/README.md +40 -0
- package/scanner-sdk/node_modules/hasown/index.d.ts +3 -0
- package/scanner-sdk/node_modules/hasown/index.js +8 -0
- package/scanner-sdk/node_modules/hasown/package.json +92 -0
- package/scanner-sdk/node_modules/hasown/tsconfig.json +6 -0
- package/scanner-sdk/node_modules/http-errors/HISTORY.md +186 -0
- package/scanner-sdk/node_modules/http-errors/LICENSE +23 -0
- package/scanner-sdk/node_modules/http-errors/README.md +169 -0
- package/scanner-sdk/node_modules/http-errors/index.js +290 -0
- package/scanner-sdk/node_modules/http-errors/package.json +54 -0
- package/scanner-sdk/node_modules/iconv-lite/Changelog.md +162 -0
- package/scanner-sdk/node_modules/iconv-lite/LICENSE +21 -0
- package/scanner-sdk/node_modules/iconv-lite/README.md +156 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/index.js +22 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/scanner-sdk/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/scanner-sdk/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/scanner-sdk/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/scanner-sdk/node_modules/iconv-lite/lib/index.js +153 -0
- package/scanner-sdk/node_modules/iconv-lite/lib/streams.js +121 -0
- package/scanner-sdk/node_modules/iconv-lite/package.json +46 -0
- package/scanner-sdk/node_modules/inherits/LICENSE +16 -0
- package/scanner-sdk/node_modules/inherits/README.md +42 -0
- package/scanner-sdk/node_modules/inherits/inherits.js +9 -0
- package/scanner-sdk/node_modules/inherits/inherits_browser.js +27 -0
- package/scanner-sdk/node_modules/inherits/package.json +29 -0
- package/scanner-sdk/node_modules/ipaddr.js/LICENSE +19 -0
- package/scanner-sdk/node_modules/ipaddr.js/README.md +233 -0
- package/scanner-sdk/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/scanner-sdk/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/scanner-sdk/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/scanner-sdk/node_modules/ipaddr.js/package.json +35 -0
- package/scanner-sdk/node_modules/js-tokens/CHANGELOG.md +151 -0
- package/scanner-sdk/node_modules/js-tokens/LICENSE +21 -0
- package/scanner-sdk/node_modules/js-tokens/README.md +240 -0
- package/scanner-sdk/node_modules/js-tokens/index.js +23 -0
- package/scanner-sdk/node_modules/js-tokens/package.json +30 -0
- package/scanner-sdk/node_modules/jsesc/LICENSE-MIT.txt +20 -0
- package/scanner-sdk/node_modules/jsesc/README.md +422 -0
- package/scanner-sdk/node_modules/jsesc/bin/jsesc +148 -0
- package/scanner-sdk/node_modules/jsesc/jsesc.js +337 -0
- package/scanner-sdk/node_modules/jsesc/man/jsesc.1 +94 -0
- package/scanner-sdk/node_modules/jsesc/package.json +56 -0
- package/scanner-sdk/node_modules/math-intrinsics/.eslintrc +16 -0
- package/scanner-sdk/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/scanner-sdk/node_modules/math-intrinsics/LICENSE +21 -0
- package/scanner-sdk/node_modules/math-intrinsics/README.md +50 -0
- package/scanner-sdk/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/abs.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/scanner-sdk/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/scanner-sdk/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/floor.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/isFinite.js +12 -0
- package/scanner-sdk/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/isInteger.js +16 -0
- package/scanner-sdk/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/isNaN.js +6 -0
- package/scanner-sdk/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/scanner-sdk/node_modules/math-intrinsics/max.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/max.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/min.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/min.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/mod.js +9 -0
- package/scanner-sdk/node_modules/math-intrinsics/package.json +86 -0
- package/scanner-sdk/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/pow.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/round.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/round.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/sign.js +11 -0
- package/scanner-sdk/node_modules/math-intrinsics/test/index.js +192 -0
- package/scanner-sdk/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/scanner-sdk/node_modules/media-typer/HISTORY.md +22 -0
- package/scanner-sdk/node_modules/media-typer/LICENSE +22 -0
- package/scanner-sdk/node_modules/media-typer/README.md +81 -0
- package/scanner-sdk/node_modules/media-typer/index.js +270 -0
- package/scanner-sdk/node_modules/media-typer/package.json +26 -0
- package/scanner-sdk/node_modules/merge-descriptors/HISTORY.md +21 -0
- package/scanner-sdk/node_modules/merge-descriptors/LICENSE +23 -0
- package/scanner-sdk/node_modules/merge-descriptors/README.md +49 -0
- package/scanner-sdk/node_modules/merge-descriptors/index.js +60 -0
- package/scanner-sdk/node_modules/merge-descriptors/package.json +39 -0
- package/scanner-sdk/node_modules/methods/HISTORY.md +29 -0
- package/scanner-sdk/node_modules/methods/LICENSE +24 -0
- package/scanner-sdk/node_modules/methods/README.md +51 -0
- package/scanner-sdk/node_modules/methods/index.js +69 -0
- package/scanner-sdk/node_modules/methods/package.json +36 -0
- package/scanner-sdk/node_modules/mime/CHANGELOG.md +164 -0
- package/scanner-sdk/node_modules/mime/LICENSE +21 -0
- package/scanner-sdk/node_modules/mime/README.md +90 -0
- package/scanner-sdk/node_modules/mime/cli.js +8 -0
- package/scanner-sdk/node_modules/mime/mime.js +108 -0
- package/scanner-sdk/node_modules/mime/package.json +44 -0
- package/scanner-sdk/node_modules/mime/src/build.js +53 -0
- package/scanner-sdk/node_modules/mime/src/test.js +60 -0
- package/scanner-sdk/node_modules/mime/types.json +1 -0
- package/scanner-sdk/node_modules/mime-db/HISTORY.md +507 -0
- package/scanner-sdk/node_modules/mime-db/LICENSE +23 -0
- package/scanner-sdk/node_modules/mime-db/README.md +100 -0
- package/scanner-sdk/node_modules/mime-db/db.json +8519 -0
- package/scanner-sdk/node_modules/mime-db/index.js +12 -0
- package/scanner-sdk/node_modules/mime-db/package.json +60 -0
- package/scanner-sdk/node_modules/mime-types/HISTORY.md +397 -0
- package/scanner-sdk/node_modules/mime-types/LICENSE +23 -0
- package/scanner-sdk/node_modules/mime-types/README.md +113 -0
- package/scanner-sdk/node_modules/mime-types/index.js +188 -0
- package/scanner-sdk/node_modules/mime-types/package.json +44 -0
- package/scanner-sdk/node_modules/ms/index.js +152 -0
- package/scanner-sdk/node_modules/ms/license.md +21 -0
- package/scanner-sdk/node_modules/ms/package.json +37 -0
- package/scanner-sdk/node_modules/ms/readme.md +51 -0
- package/scanner-sdk/node_modules/negotiator/HISTORY.md +108 -0
- package/scanner-sdk/node_modules/negotiator/LICENSE +24 -0
- package/scanner-sdk/node_modules/negotiator/README.md +203 -0
- package/scanner-sdk/node_modules/negotiator/index.js +82 -0
- package/scanner-sdk/node_modules/negotiator/lib/charset.js +169 -0
- package/scanner-sdk/node_modules/negotiator/lib/encoding.js +184 -0
- package/scanner-sdk/node_modules/negotiator/lib/language.js +179 -0
- package/scanner-sdk/node_modules/negotiator/lib/mediaType.js +294 -0
- package/scanner-sdk/node_modules/negotiator/package.json +42 -0
- package/scanner-sdk/node_modules/object-inspect/.eslintrc +53 -0
- package/scanner-sdk/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/object-inspect/.nycrc +13 -0
- package/scanner-sdk/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/scanner-sdk/node_modules/object-inspect/LICENSE +21 -0
- package/scanner-sdk/node_modules/object-inspect/example/all.js +23 -0
- package/scanner-sdk/node_modules/object-inspect/example/circular.js +6 -0
- package/scanner-sdk/node_modules/object-inspect/example/fn.js +5 -0
- package/scanner-sdk/node_modules/object-inspect/example/inspect.js +10 -0
- package/scanner-sdk/node_modules/object-inspect/index.js +544 -0
- package/scanner-sdk/node_modules/object-inspect/package-support.json +20 -0
- package/scanner-sdk/node_modules/object-inspect/package.json +105 -0
- package/scanner-sdk/node_modules/object-inspect/readme.markdown +84 -0
- package/scanner-sdk/node_modules/object-inspect/test/bigint.js +58 -0
- package/scanner-sdk/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/scanner-sdk/node_modules/object-inspect/test/circular.js +16 -0
- package/scanner-sdk/node_modules/object-inspect/test/deep.js +12 -0
- package/scanner-sdk/node_modules/object-inspect/test/element.js +53 -0
- package/scanner-sdk/node_modules/object-inspect/test/err.js +48 -0
- package/scanner-sdk/node_modules/object-inspect/test/fakes.js +29 -0
- package/scanner-sdk/node_modules/object-inspect/test/fn.js +76 -0
- package/scanner-sdk/node_modules/object-inspect/test/global.js +17 -0
- package/scanner-sdk/node_modules/object-inspect/test/has.js +15 -0
- package/scanner-sdk/node_modules/object-inspect/test/holes.js +15 -0
- package/scanner-sdk/node_modules/object-inspect/test/indent-option.js +271 -0
- package/scanner-sdk/node_modules/object-inspect/test/inspect.js +139 -0
- package/scanner-sdk/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/scanner-sdk/node_modules/object-inspect/test/number.js +58 -0
- package/scanner-sdk/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/scanner-sdk/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/scanner-sdk/node_modules/object-inspect/test/undef.js +12 -0
- package/scanner-sdk/node_modules/object-inspect/test/values.js +261 -0
- package/scanner-sdk/node_modules/object-inspect/test-core-js.js +26 -0
- package/scanner-sdk/node_modules/object-inspect/util.inspect.js +1 -0
- package/scanner-sdk/node_modules/on-finished/HISTORY.md +98 -0
- package/scanner-sdk/node_modules/on-finished/LICENSE +23 -0
- package/scanner-sdk/node_modules/on-finished/README.md +162 -0
- package/scanner-sdk/node_modules/on-finished/index.js +234 -0
- package/scanner-sdk/node_modules/on-finished/package.json +39 -0
- package/scanner-sdk/node_modules/parseurl/HISTORY.md +58 -0
- package/scanner-sdk/node_modules/parseurl/LICENSE +24 -0
- package/scanner-sdk/node_modules/parseurl/README.md +133 -0
- package/scanner-sdk/node_modules/parseurl/index.js +158 -0
- package/scanner-sdk/node_modules/parseurl/package.json +40 -0
- package/scanner-sdk/node_modules/path-to-regexp/LICENSE +21 -0
- package/scanner-sdk/node_modules/path-to-regexp/Readme.md +35 -0
- package/scanner-sdk/node_modules/path-to-regexp/index.js +158 -0
- package/scanner-sdk/node_modules/path-to-regexp/package.json +30 -0
- package/scanner-sdk/node_modules/picocolors/LICENSE +15 -0
- package/scanner-sdk/node_modules/picocolors/README.md +21 -0
- package/scanner-sdk/node_modules/picocolors/package.json +25 -0
- package/scanner-sdk/node_modules/picocolors/picocolors.browser.js +4 -0
- package/scanner-sdk/node_modules/picocolors/picocolors.d.ts +5 -0
- package/scanner-sdk/node_modules/picocolors/picocolors.js +75 -0
- package/scanner-sdk/node_modules/picocolors/types.d.ts +51 -0
- package/scanner-sdk/node_modules/proxy-addr/HISTORY.md +161 -0
- package/scanner-sdk/node_modules/proxy-addr/LICENSE +22 -0
- package/scanner-sdk/node_modules/proxy-addr/README.md +139 -0
- package/scanner-sdk/node_modules/proxy-addr/index.js +327 -0
- package/scanner-sdk/node_modules/proxy-addr/package.json +47 -0
- package/scanner-sdk/node_modules/qs/.editorconfig +46 -0
- package/scanner-sdk/node_modules/qs/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/qs/.github/SECURITY.md +11 -0
- package/scanner-sdk/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/scanner-sdk/node_modules/qs/.nycrc +13 -0
- package/scanner-sdk/node_modules/qs/CHANGELOG.md +644 -0
- package/scanner-sdk/node_modules/qs/LICENSE.md +29 -0
- package/scanner-sdk/node_modules/qs/README.md +740 -0
- package/scanner-sdk/node_modules/qs/dist/qs.js +141 -0
- package/scanner-sdk/node_modules/qs/eslint.config.mjs +56 -0
- package/scanner-sdk/node_modules/qs/lib/formats.js +23 -0
- package/scanner-sdk/node_modules/qs/lib/index.js +11 -0
- package/scanner-sdk/node_modules/qs/lib/parse.js +371 -0
- package/scanner-sdk/node_modules/qs/lib/stringify.js +356 -0
- package/scanner-sdk/node_modules/qs/lib/utils.js +340 -0
- package/scanner-sdk/node_modules/qs/package.json +94 -0
- package/scanner-sdk/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/scanner-sdk/node_modules/qs/test/parse.js +1512 -0
- package/scanner-sdk/node_modules/qs/test/stringify.js +1310 -0
- package/scanner-sdk/node_modules/qs/test/utils.js +397 -0
- package/scanner-sdk/node_modules/range-parser/HISTORY.md +56 -0
- package/scanner-sdk/node_modules/range-parser/LICENSE +23 -0
- package/scanner-sdk/node_modules/range-parser/README.md +84 -0
- package/scanner-sdk/node_modules/range-parser/index.js +162 -0
- package/scanner-sdk/node_modules/range-parser/package.json +44 -0
- package/scanner-sdk/node_modules/raw-body/LICENSE +22 -0
- package/scanner-sdk/node_modules/raw-body/README.md +223 -0
- package/scanner-sdk/node_modules/raw-body/index.d.ts +87 -0
- package/scanner-sdk/node_modules/raw-body/index.js +336 -0
- package/scanner-sdk/node_modules/raw-body/package.json +47 -0
- package/scanner-sdk/node_modules/safe-buffer/LICENSE +21 -0
- package/scanner-sdk/node_modules/safe-buffer/README.md +584 -0
- package/scanner-sdk/node_modules/safe-buffer/index.d.ts +187 -0
- package/scanner-sdk/node_modules/safe-buffer/index.js +65 -0
- package/scanner-sdk/node_modules/safe-buffer/package.json +51 -0
- package/scanner-sdk/node_modules/safer-buffer/LICENSE +21 -0
- package/scanner-sdk/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/scanner-sdk/node_modules/safer-buffer/Readme.md +156 -0
- package/scanner-sdk/node_modules/safer-buffer/dangerous.js +58 -0
- package/scanner-sdk/node_modules/safer-buffer/package.json +34 -0
- package/scanner-sdk/node_modules/safer-buffer/safer.js +77 -0
- package/scanner-sdk/node_modules/safer-buffer/tests.js +406 -0
- package/scanner-sdk/node_modules/send/HISTORY.md +538 -0
- package/scanner-sdk/node_modules/send/LICENSE +23 -0
- package/scanner-sdk/node_modules/send/README.md +327 -0
- package/scanner-sdk/node_modules/send/SECURITY.md +24 -0
- package/scanner-sdk/node_modules/send/index.js +1142 -0
- package/scanner-sdk/node_modules/send/node_modules/ms/index.js +162 -0
- package/scanner-sdk/node_modules/send/node_modules/ms/license.md +21 -0
- package/scanner-sdk/node_modules/send/node_modules/ms/package.json +38 -0
- package/scanner-sdk/node_modules/send/node_modules/ms/readme.md +59 -0
- package/scanner-sdk/node_modules/send/package.json +62 -0
- package/scanner-sdk/node_modules/serve-static/HISTORY.md +493 -0
- package/scanner-sdk/node_modules/serve-static/LICENSE +25 -0
- package/scanner-sdk/node_modules/serve-static/README.md +257 -0
- package/scanner-sdk/node_modules/serve-static/index.js +209 -0
- package/scanner-sdk/node_modules/serve-static/package.json +42 -0
- package/scanner-sdk/node_modules/setprototypeof/LICENSE +13 -0
- package/scanner-sdk/node_modules/setprototypeof/README.md +31 -0
- package/scanner-sdk/node_modules/setprototypeof/index.d.ts +2 -0
- package/scanner-sdk/node_modules/setprototypeof/index.js +17 -0
- package/scanner-sdk/node_modules/setprototypeof/package.json +38 -0
- package/scanner-sdk/node_modules/setprototypeof/test/index.js +24 -0
- package/scanner-sdk/node_modules/side-channel/.editorconfig +9 -0
- package/scanner-sdk/node_modules/side-channel/.eslintrc +12 -0
- package/scanner-sdk/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/side-channel/.nycrc +13 -0
- package/scanner-sdk/node_modules/side-channel/CHANGELOG.md +110 -0
- package/scanner-sdk/node_modules/side-channel/LICENSE +21 -0
- package/scanner-sdk/node_modules/side-channel/README.md +61 -0
- package/scanner-sdk/node_modules/side-channel/index.d.ts +14 -0
- package/scanner-sdk/node_modules/side-channel/index.js +43 -0
- package/scanner-sdk/node_modules/side-channel/package.json +85 -0
- package/scanner-sdk/node_modules/side-channel/test/index.js +104 -0
- package/scanner-sdk/node_modules/side-channel/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/side-channel-list/.editorconfig +9 -0
- package/scanner-sdk/node_modules/side-channel-list/.eslintrc +11 -0
- package/scanner-sdk/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/side-channel-list/.nycrc +13 -0
- package/scanner-sdk/node_modules/side-channel-list/CHANGELOG.md +15 -0
- package/scanner-sdk/node_modules/side-channel-list/LICENSE +21 -0
- package/scanner-sdk/node_modules/side-channel-list/README.md +62 -0
- package/scanner-sdk/node_modules/side-channel-list/index.d.ts +13 -0
- package/scanner-sdk/node_modules/side-channel-list/index.js +113 -0
- package/scanner-sdk/node_modules/side-channel-list/list.d.ts +14 -0
- package/scanner-sdk/node_modules/side-channel-list/package.json +77 -0
- package/scanner-sdk/node_modules/side-channel-list/test/index.js +104 -0
- package/scanner-sdk/node_modules/side-channel-list/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/side-channel-map/.editorconfig +9 -0
- package/scanner-sdk/node_modules/side-channel-map/.eslintrc +11 -0
- package/scanner-sdk/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/side-channel-map/.nycrc +13 -0
- package/scanner-sdk/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/scanner-sdk/node_modules/side-channel-map/LICENSE +21 -0
- package/scanner-sdk/node_modules/side-channel-map/README.md +62 -0
- package/scanner-sdk/node_modules/side-channel-map/index.d.ts +15 -0
- package/scanner-sdk/node_modules/side-channel-map/index.js +68 -0
- package/scanner-sdk/node_modules/side-channel-map/package.json +80 -0
- package/scanner-sdk/node_modules/side-channel-map/test/index.js +114 -0
- package/scanner-sdk/node_modules/side-channel-map/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/README.md +62 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/index.js +84 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/package.json +87 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/statuses/HISTORY.md +87 -0
- package/scanner-sdk/node_modules/statuses/LICENSE +23 -0
- package/scanner-sdk/node_modules/statuses/README.md +139 -0
- package/scanner-sdk/node_modules/statuses/codes.json +65 -0
- package/scanner-sdk/node_modules/statuses/index.js +146 -0
- package/scanner-sdk/node_modules/statuses/package.json +49 -0
- package/scanner-sdk/node_modules/toidentifier/HISTORY.md +9 -0
- package/scanner-sdk/node_modules/toidentifier/LICENSE +21 -0
- package/scanner-sdk/node_modules/toidentifier/README.md +61 -0
- package/scanner-sdk/node_modules/toidentifier/index.js +32 -0
- package/scanner-sdk/node_modules/toidentifier/package.json +38 -0
- package/scanner-sdk/node_modules/type-is/HISTORY.md +259 -0
- package/scanner-sdk/node_modules/type-is/LICENSE +23 -0
- package/scanner-sdk/node_modules/type-is/README.md +170 -0
- package/scanner-sdk/node_modules/type-is/index.js +266 -0
- package/scanner-sdk/node_modules/type-is/package.json +45 -0
- package/scanner-sdk/node_modules/unpipe/HISTORY.md +4 -0
- package/scanner-sdk/node_modules/unpipe/LICENSE +22 -0
- package/scanner-sdk/node_modules/unpipe/README.md +43 -0
- package/scanner-sdk/node_modules/unpipe/index.js +69 -0
- package/scanner-sdk/node_modules/unpipe/package.json +27 -0
- package/scanner-sdk/node_modules/utils-merge/LICENSE +20 -0
- package/scanner-sdk/node_modules/utils-merge/README.md +34 -0
- package/scanner-sdk/node_modules/utils-merge/index.js +23 -0
- package/scanner-sdk/node_modules/utils-merge/package.json +40 -0
- package/scanner-sdk/node_modules/vary/HISTORY.md +39 -0
- package/scanner-sdk/node_modules/vary/LICENSE +22 -0
- package/scanner-sdk/node_modules/vary/README.md +101 -0
- package/scanner-sdk/node_modules/vary/index.js +149 -0
- package/scanner-sdk/node_modules/vary/package.json +43 -0
- package/scanner-sdk/package-lock.json +1046 -0
- package/scanner-sdk/package.json +25 -0
- package/scanner-sdk/scan/adonis.js +177 -0
- package/scanner-sdk/scan/express-files.js +326 -0
- package/scanner-sdk/scan/express-static.js +292 -0
- package/scanner-sdk/scan/express.js +217 -0
- package/scanner-sdk/scan/fastify.js +1162 -0
- package/scanner-sdk/scan/field-extractors.js +779 -0
- package/scanner-sdk/scan/frontend.js +563 -0
- package/scanner-sdk/scan/hapi.js +997 -0
- package/scanner-sdk/scan/koa.js +250 -0
- package/scanner-sdk/scan/nest-source.js +918 -0
- package/scanner-sdk/scan/nestjs.js +660 -0
- package/scanner-sdk/scan/nextjs.js +322 -0
- package/scanner-sdk/scan/nuxt-value-types.js +521 -0
- package/scanner-sdk/scan/nuxt.js +462 -0
- package/scanner-sdk/scan/remix-routes.js +261 -0
- package/scanner-sdk/scan/remix.js +348 -0
- package/scanner-sdk/scan/response-shape.js +415 -0
- package/scanner-sdk/scan/route-calls.js +663 -0
- package/scanner-sdk/scan/route-segments.js +378 -0
- package/scanner-sdk/scan/sveltekit-body.js +491 -0
- package/scanner-sdk/scan/sveltekit-reply.js +328 -0
- package/scanner-sdk/scan/sveltekit.js +149 -0
- package/scanner-sdk/scan/text-utils.js +517 -0
- package/scanner-sdk/scanner.js +52 -0
- package/undo/bin/scan.js +23 -0
- package/undo/index.js +104 -0
- package/undo/lib/action-id.js +38 -0
- package/undo/lib/capture-guard.js +8 -0
- package/undo/lib/capture-mongo.js +341 -0
- package/undo/lib/capture-mssql.js +901 -0
- package/undo/lib/capture-mysql.js +909 -0
- package/undo/lib/capture-prisma-mongo.js +297 -0
- package/undo/lib/capture-prisma.js +900 -0
- package/undo/lib/capture-sql.js +656 -0
- package/undo/lib/capture-sqlite.js +933 -0
- package/undo/lib/gate.js +190 -0
- package/undo/lib/hooks/better-sqlite3.js +198 -0
- package/undo/lib/hooks/mongodb.js +124 -0
- package/undo/lib/hooks/mssql.js +209 -0
- package/undo/lib/hooks/mysql2.js +148 -0
- package/undo/lib/hooks/pg.js +156 -0
- package/undo/lib/hooks/prisma.js +335 -0
- package/undo/lib/hooks/sqlite3.js +310 -0
- package/undo/lib/loader-watch.js +64 -0
- package/undo/lib/log.js +34 -0
- package/undo/lib/mssql-run.js +95 -0
- package/undo/lib/prisma-structure.js +397 -0
- package/undo/lib/report.js +50 -0
- package/undo/lib/requester.js +33 -0
- package/undo/lib/scanner.js +400 -0
- package/undo/lib/schema-reader.js +129 -0
- package/undo/lib/setup-check.js +294 -0
- package/undo/lib/snapshot-crypto.js +96 -0
- package/undo/lib/snapshot-sql.js +180 -0
- package/undo/lib/snapshot-store-mongo.js +154 -0
- package/undo/lib/snapshot-store-prisma-mongo.js +192 -0
- package/undo/lib/snapshot-store-sqlite.js +140 -0
- package/undo/lib/snapshot-store.js +272 -0
- package/undo/lib/sql-classify-mssql.js +230 -0
- package/undo/lib/sql-classify-mysql.js +167 -0
- package/undo/lib/sql-classify.js +169 -0
- package/undo/lib/sqlite-sql.js +357 -0
- package/undo/lib/tagger.js +333 -0
- package/undo/lib/undo-mongo.js +248 -0
- package/undo/lib/undo-mssql.js +389 -0
- package/undo/lib/undo-mysql.js +297 -0
- package/undo/lib/undo-pg.js +248 -0
- package/undo/lib/undo-prisma-mongo.js +263 -0
- package/undo/lib/undo-prisma.js +404 -0
- package/undo/lib/undo-route.js +197 -0
- package/undo/lib/undo-sqlite.js +332 -0
- package/undo/register.js +7 -0
- package/scanner.js +0 -3008
- /package/{bin → scanner-sdk/bin}/scan-frontend.js +0 -0
- /package/{client.js → scanner-sdk/client.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_t","require","_t2","react","cloneNode","jsxExpressionContainer","variableDeclaration","variableDeclarator","referenceVisitor","ReferencedIdentifier","path","state","isJSXIdentifier","isCompatTag","node","name","parentPath","isJSXMemberExpression","scope","isFunction","isArrowFunctionExpression","parent","breakOnScopePaths","push","binding","getBinding","violation","constantViolations","mutableBinding","stop","bindings","PathHoister","constructor","scopes","attachAfter","isCompatibleScope","key","Object","keys","bindingIdentifierEquals","identifier","getCompatibleScopes","includes","getAttachmentPath","_getAttachmentPath","targetScope","isProgram","hasOwnBinding","kind","parentKey","bindingParentPath","getAttachmentParentForPath","violationPath","pop","hasOwnParamBindings","bodies","get","i","length","_blockHoist","getNextScopeAttachmentParent","Array","isArray","container","isStatement","constant","run","traverse","attachTo","getFunctionParent","uid","generateUidIdentifier","declarator","insertFn","attached","isVariableDeclarator","isJSXElement","children","replaceWith","exports","default"],"sources":["../../../src/path/lib/hoister.ts"],"sourcesContent":["// TODO: Remove this file in Babel 8\n\nimport { react } from \"@babel/types\";\nimport {\n cloneNode,\n jsxExpressionContainer,\n variableDeclaration,\n variableDeclarator,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type Scope from \"../../scope/index.ts\";\nimport type NodePath from \"../index.ts\";\nimport type Binding from \"../../scope/binding.ts\";\nimport type { Visitor } from \"../../types.ts\";\n\nconst referenceVisitor: Visitor<PathHoister> = {\n // This visitor looks for bindings to establish a topmost scope for hoisting.\n ReferencedIdentifier(path, state) {\n // Don't hoist regular JSX identifiers ('div', 'span', etc).\n // We do have to consider member expressions for hoisting (e.g. `this.component`)\n if (\n path.isJSXIdentifier() &&\n react.isCompatTag(path.node.name) &&\n !path.parentPath.isJSXMemberExpression()\n ) {\n return;\n }\n\n // If the identifier refers to `this`, we need to break on the closest non-arrow scope.\n if (path.node.name === \"this\") {\n let scope: Scope | undefined = path.scope;\n do {\n if (\n scope.path.isFunction() &&\n !scope.path.isArrowFunctionExpression()\n ) {\n break;\n }\n } while ((scope = scope.parent));\n if (scope) state.breakOnScopePaths.push(scope.path);\n }\n\n // direct references that we need to track to hoist this to the highest scope we can\n const binding = path.scope.getBinding(path.node.name);\n if (!binding) return;\n\n // we can handle reassignments only if they happen in the same scope as the declaration\n for (const violation of binding.constantViolations) {\n if (violation.scope !== binding.path.scope) {\n state.mutableBinding = true;\n path.stop();\n return;\n }\n }\n\n // this binding isn't accessible from the parent scope so we can safely ignore it\n // eg. it's in a closure etc\n if (binding !== state.scope.getBinding(path.node.name)) return;\n\n state.bindings[path.node.name] = binding;\n },\n};\n\nexport default class PathHoister<T extends t.Node = t.Node> {\n breakOnScopePaths: NodePath[];\n bindings: Record<string, Binding>;\n mutableBinding: boolean;\n private scopes: Scope[];\n scope: Scope;\n private path: NodePath<T>;\n private attachAfter: boolean;\n\n constructor(path: NodePath<T>, scope: Scope) {\n // Storage for scopes we can't hoist above.\n this.breakOnScopePaths = [];\n // Storage for bindings that may affect what path we can hoist to.\n this.bindings = {};\n // \"true\" if the current path contains a reference to a binding whose\n // value can change and thus can't be safely hoisted.\n this.mutableBinding = false;\n // Storage for eligible scopes.\n this.scopes = [];\n // Our original scope and path.\n this.scope = scope;\n this.path = path;\n // By default, we attach as far up as we can; but if we're trying\n // to avoid referencing a binding, we may have to go after.\n this.attachAfter = false;\n }\n\n // A scope is compatible if all required bindings are reachable.\n isCompatibleScope(scope: Scope) {\n for (const key of Object.keys(this.bindings)) {\n const binding = this.bindings[key];\n if (!scope.bindingIdentifierEquals(key, binding.identifier)) {\n return false;\n }\n }\n\n return true;\n }\n\n // Look through all scopes and push compatible ones.\n getCompatibleScopes() {\n let scope: Scope | undefined = this.path.scope;\n do {\n if (this.isCompatibleScope(scope)) {\n this.scopes.push(scope);\n } else {\n break;\n }\n\n // deopt: These scopes are set in the visitor on const violations\n if (this.breakOnScopePaths.includes(scope.path)) {\n break;\n }\n } while ((scope = scope.parent));\n }\n\n getAttachmentPath() {\n let path = this._getAttachmentPath();\n if (!path) return;\n\n let targetScope = path.scope;\n\n // don't allow paths that have their own lexical environments to pollute\n if (targetScope.path === path) {\n targetScope = path.scope.parent!;\n }\n\n // avoid hoisting to a scope that contains bindings that are executed after our attachment path\n if (targetScope.path.isProgram() || targetScope.path.isFunction()) {\n for (const name of Object.keys(this.bindings)) {\n // check binding is a direct child of this paths scope\n if (!targetScope.hasOwnBinding(name)) continue;\n\n const binding = this.bindings[name];\n\n // allow parameter references and expressions in params (like destructuring rest)\n if (binding.kind === \"param\" || binding.path.parentKey === \"params\") {\n continue;\n }\n\n // For each binding, get its attachment parent. This gives us an idea of where we might\n // introduce conflicts.\n const bindingParentPath = this.getAttachmentParentForPath(binding.path);\n\n // If the binding's attachment appears at or after our attachment point, then we move after it.\n // @ts-expect-error comparing undefined and number\n if (bindingParentPath.key >= path.key) {\n this.attachAfter = true;\n path = binding.path;\n\n // We also move past any constant violations.\n for (const violationPath of binding.constantViolations) {\n // @ts-expect-error comparing null and number\n if (this.getAttachmentParentForPath(violationPath).key > path.key) {\n path = violationPath;\n }\n }\n }\n }\n }\n\n return path;\n }\n\n _getAttachmentPath() {\n const scopes = this.scopes;\n\n const scope = scopes.pop();\n // deopt: no compatible scopes\n if (!scope) return;\n\n if (scope.path.isFunction()) {\n if (this.hasOwnParamBindings(scope)) {\n // deopt: should ignore this scope since it's ourselves\n if (this.scope === scope) return;\n\n // needs to be attached to the body\n const bodies = scope.path.get(\"body\").get(\"body\") as NodePath[];\n for (let i = 0; i < bodies.length; i++) {\n // Don't attach to something that's going to get hoisted,\n // like a default parameter\n // @ts-expect-error todo(flow->ts): avoid mutating the node, introducing new fields\n if (bodies[i].node._blockHoist) continue;\n return bodies[i];\n }\n // deopt: If here, no attachment path found\n } else {\n // doesn't need to be be attached to this scope\n return this.getNextScopeAttachmentParent();\n }\n } else if (scope.path.isProgram()) {\n return this.getNextScopeAttachmentParent();\n }\n }\n\n getNextScopeAttachmentParent() {\n const scope = this.scopes.pop();\n if (scope) return this.getAttachmentParentForPath(scope.path);\n }\n\n // Find an attachment for this path.\n getAttachmentParentForPath(path: NodePath): NodePath {\n do {\n if (\n // Beginning of the scope\n !path.parentPath ||\n // Has siblings and is a statement\n (Array.isArray(path.container) && path.isStatement())\n ) {\n return path;\n }\n } while ((path = path.parentPath));\n // Unreachable\n return path;\n }\n\n // Returns true if a scope has param bindings.\n hasOwnParamBindings(scope: Scope) {\n for (const name of Object.keys(this.bindings)) {\n if (!scope.hasOwnBinding(name)) continue;\n\n const binding = this.bindings[name];\n // Ensure constant; without it we could place behind a reassignment\n if (binding.kind === \"param\" && binding.constant) return true;\n }\n return false;\n }\n\n run(): NodePath<t.Expression> | undefined {\n this.path.traverse(referenceVisitor, this);\n\n if (this.mutableBinding) return;\n\n this.getCompatibleScopes();\n\n const attachTo = this.getAttachmentPath();\n if (!attachTo) return;\n\n // don't bother hoisting to the same function as this will cause multiple branches to be\n // evaluated more than once leading to a bad optimisation\n if (attachTo.getFunctionParent() === this.path.getFunctionParent()) return;\n\n // generate declaration and insert it to our point\n let uid: t.Identifier | t.JSXExpressionContainer =\n attachTo.scope.generateUidIdentifier(\"ref\");\n\n // @ts-expect-error todo(flow->ts): more specific type for this.path\n const declarator = variableDeclarator(uid, this.path.node);\n\n const insertFn = this.attachAfter ? \"insertAfter\" : \"insertBefore\";\n const [attached] = attachTo[insertFn]([\n attachTo.isVariableDeclarator()\n ? declarator\n : variableDeclaration(\"var\", [declarator]),\n ]);\n\n const parent = this.path.parentPath;\n if (parent.isJSXElement() && this.path.container === parent.node.children) {\n // turning the `span` in `<div><span /></div>` to an expression so we need to wrap it with\n // an expression container\n uid = jsxExpressionContainer(uid);\n }\n\n this.path.replaceWith(cloneNode(uid));\n\n return (\n attached.isVariableDeclarator()\n ? attached.get(\"init\")\n : attached.get(\"declarations.0.init\")\n ) as NodePath<t.Expression>;\n }\n}\n"],"mappings":";;;;;;AAEA,IAAAA,EAAA,GAAAC,OAAA;AAAqC,IAAAC,GAAA,GAAAF,EAAA;AAAA;EAA5BG;AAAK,IAAAH,EAAA;AAAA;EAEZI,SA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,CAAC,CAAC,GAC3BH,UAAU,GACVlE,mBAAmB,CAAC,KAAK,EAAE,CAACkE,UAAU,CAAC,CAAC,CAC7C,CAAC;IAEF,MAAMnD,MAAM,GAAG,IAAI,CAACX,IAAI,CAACM,UAAU;IACnC,IAAIK,MAAM,CAACuD,YAAY,CAAC,CAAC,IAAI,IAAI,CAAClE,IAAI,CAACqD,SAAS,KAAK1C,MAAM,CAACP,IAAI,CAAC+D,QAAQ,EAAE;MAGzEP,GAAG,GAAGjE,sBAAsB,CAACiE,GAAG,CAAC;IACnC;IAEA,IAAI,CAAC5D,IAAI,CAACoE,WAAW,CAAC1E,SAAS,CAACkE,GAAG,CAAC,CAAC;IAErC,OACEI,QAAQ,CAACC,oBAAoB,CAAC,CAAC,GAC3BD,QAAQ,CAAClB,GAAG,CAAC,MAAM,CAAC,GACpBkB,QAAQ,CAAClB,GAAG,CAAC,qBAAqB,CAAC;EAE3C;AACF;AAACuB,OAAA,CAAAC,OAAA,GAAAjD,WAAA","ignoreList":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.hooks = void 0;
|
|
7
|
+
const hooks = exports.hooks = [function (self, parent) {
|
|
8
|
+
const removeParent = self.key === "test" && (parent.isWhile() || parent.isSwitchCase()) || self.key === "declaration" && parent.isExportDeclaration() || self.key === "body" && parent.isLabeledStatement() || self.listKey === "declarations" && parent.isVariableDeclaration() && parent.node.declarations.length === 1 || self.key === "expression" && parent.isExpressionStatement();
|
|
9
|
+
if (removeParent) {
|
|
10
|
+
parent.remove();
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
}, function (self, parent) {
|
|
14
|
+
if (parent.isSequenceExpression() && parent.node.expressions.length === 1) {
|
|
15
|
+
parent.replaceWith(parent.node.expressions[0]);
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
}, function (self, parent) {
|
|
19
|
+
if (parent.isBinary()) {
|
|
20
|
+
if (self.key === "left") {
|
|
21
|
+
parent.replaceWith(parent.node.right);
|
|
22
|
+
} else {
|
|
23
|
+
parent.replaceWith(parent.node.left);
|
|
24
|
+
}
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
}, function (self, parent) {
|
|
28
|
+
if (parent.isIfStatement() && self.key === "consequent" || self.key === "body" && (parent.isLoop() || parent.isArrowFunctionExpression())) {
|
|
29
|
+
self.replaceWith({
|
|
30
|
+
type: "BlockStatement",
|
|
31
|
+
directives: [],
|
|
32
|
+
body: []
|
|
33
|
+
});
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}];
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=removal-hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["hooks","exports","self","parent","removeParent","key","isWhile","isSwitchCase","isExportDeclaration","isLabeledStatement","listKey","isVariableDeclaration","node","declarations","length","isExpressionStatement","remove","isSequenceExpression","expressions","replaceWith","isBinary","right","left","isIfStatement","isLoop","isArrowFunctionExpression","type","directives","body"],"sources":["../../../src/path/lib/removal-hooks.ts"],"sourcesContent":["// this file contains hooks that handle ancestry cleanup of parent nodes when removing children\n\nimport type NodePath from \"../index.ts\";\nimport type * as t from \"@babel/types\";\n/**\n * Pre hooks should be used for either rejecting removal or delegating removal\n */\n\nexport const hooks = [\n function (self: NodePath, parent: NodePath) {\n const removeParent =\n // while (NODE);\n // removing the test of a while/switch, we can either just remove it entirely *or* turn the\n // `test` into `true` unlikely that the latter will ever be what's wanted so we just remove\n // the loop to avoid infinite recursion\n (self.key === \"test\" && (parent.isWhile() || parent.isSwitchCase())) ||\n // export NODE;\n // just remove a declaration for an export as this is no longer valid\n (self.key === \"declaration\" && parent.isExportDeclaration()) ||\n // label: NODE\n // stray labeled statement with no body\n (self.key === \"body\" && parent.isLabeledStatement()) ||\n // let NODE;\n // remove an entire declaration if there are no declarators left\n (self.listKey === \"declarations\" &&\n parent.isVariableDeclaration() &&\n parent.node.declarations.length === 1) ||\n // NODE;\n // remove the entire expression statement if there's no expression\n (self.key === \"expression\" && parent.isExpressionStatement());\n\n if (removeParent) {\n parent.remove();\n return true;\n }\n },\n\n function (self: NodePath, parent: NodePath) {\n if (parent.isSequenceExpression() && parent.node.expressions.length === 1) {\n // (node, NODE);\n // we've just removed the second element of a sequence expression so let's turn that sequence\n // expression into a regular expression\n parent.replaceWith(parent.node.expressions[0]);\n return true;\n }\n },\n\n function (self: NodePath, parent: NodePath) {\n if (parent.isBinary()) {\n // left + NODE;\n // NODE + right;\n // we're in a binary expression, better remove it and replace it with the last expression\n if (self.key === \"left\") {\n parent.replaceWith(parent.node.right);\n } else {\n // key === \"right\"\n parent.replaceWith(parent.node.left);\n }\n return true;\n }\n },\n\n function (self: NodePath, parent: NodePath) {\n if (\n (parent.isIfStatement() && self.key === \"consequent\") ||\n (self.key === \"body\" &&\n (parent.isLoop() || parent.isArrowFunctionExpression()))\n ) {\n self.replaceWith({\n type: \"BlockStatement\",\n directives: [],\n body: [],\n } satisfies t.BlockStatement);\n return true;\n }\n },\n];\n"],"mappings":";;;;;;AAQO,MAAMA,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG,CACnB,UAAUE,IAAc,EAAEC,MAAgB,EAAE;EAC1C,MAAMC,YAAY,GAKfF,IAAI,CAACG,GAAG,KAAK,MAAM,KAAKF,MAAM,CAACG,OAAO,CAAC,CAAC,IAAIH,MAAM,CAACI,YAAY,CAAC,CAAC,CAAC,IAGlEL,IAAI,CAACG,GAAG,KAAK,aAAa,IAAIF,MAAM,CAACK,mBAAmB,CAAC,CAAE,IAG3DN,IAAI,CAACG,GAAG,KAAK,MAAM,IAAIF,MAAM,CAACM,kBAAkB,CAAC,CAAE,IAGnDP,IAAI,CAACQ,OAAO,KAAK,cAAc,IAC9BP,MAAM,CAACQ,qBAAqB,CAAC,CAAC,IAC9BR,MAAM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AI;EACb;AACF,CAAC,CACF","ignoreList":[]}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isBindingIdentifier = isBindingIdentifier;
|
|
7
|
+
exports.isBlockScoped = isBlockScoped;
|
|
8
|
+
exports.isExpression = isExpression;
|
|
9
|
+
exports.isFlow = isFlow;
|
|
10
|
+
exports.isForAwaitStatement = isForAwaitStatement;
|
|
11
|
+
exports.isGenerated = isGenerated;
|
|
12
|
+
exports.isPure = isPure;
|
|
13
|
+
exports.isReferenced = isReferenced;
|
|
14
|
+
exports.isReferencedIdentifier = isReferencedIdentifier;
|
|
15
|
+
exports.isReferencedMemberExpression = isReferencedMemberExpression;
|
|
16
|
+
exports.isRestProperty = isRestProperty;
|
|
17
|
+
exports.isScope = isScope;
|
|
18
|
+
exports.isSpreadProperty = isSpreadProperty;
|
|
19
|
+
exports.isStatement = isStatement;
|
|
20
|
+
exports.isUser = isUser;
|
|
21
|
+
exports.isVar = isVar;
|
|
22
|
+
var _t = require("@babel/types");
|
|
23
|
+
const {
|
|
24
|
+
isBinding,
|
|
25
|
+
isBlockScoped: nodeIsBlockScoped,
|
|
26
|
+
isExportDeclaration,
|
|
27
|
+
isExpression: nodeIsExpression,
|
|
28
|
+
isFlow: nodeIsFlow,
|
|
29
|
+
isForStatement,
|
|
30
|
+
isForXStatement,
|
|
31
|
+
isIdentifier,
|
|
32
|
+
isImportDeclaration,
|
|
33
|
+
isImportSpecifier,
|
|
34
|
+
isJSXIdentifier,
|
|
35
|
+
isJSXMemberExpression,
|
|
36
|
+
isMemberExpression,
|
|
37
|
+
isRestElement: nodeIsRestElement,
|
|
38
|
+
isReferenced: nodeIsReferenced,
|
|
39
|
+
isScope: nodeIsScope,
|
|
40
|
+
isStatement: nodeIsStatement,
|
|
41
|
+
isVar: nodeIsVar,
|
|
42
|
+
isVariableDeclaration,
|
|
43
|
+
react,
|
|
44
|
+
isForOfStatement
|
|
45
|
+
} = _t;
|
|
46
|
+
const {
|
|
47
|
+
isCompatTag
|
|
48
|
+
} = react;
|
|
49
|
+
function isReferencedIdentifier(opts) {
|
|
50
|
+
const {
|
|
51
|
+
node,
|
|
52
|
+
parent
|
|
53
|
+
} = this;
|
|
54
|
+
if (isIdentifier(node, opts)) {
|
|
55
|
+
return nodeIsReferenced(node, parent, this.parentPath.parent);
|
|
56
|
+
} else if (isJSXIdentifier(node, opts)) {
|
|
57
|
+
if (!isJSXMemberExpression(parent) && isCompatTag(node.name)) return false;
|
|
58
|
+
return nodeIsReferenced(node, parent, this.parentPath.parent);
|
|
59
|
+
} else {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function isReferencedMemberExpression() {
|
|
64
|
+
const {
|
|
65
|
+
node,
|
|
66
|
+
parent
|
|
67
|
+
} = this;
|
|
68
|
+
return isMemberExpression(node) && nodeIsReferenced(node, parent);
|
|
69
|
+
}
|
|
70
|
+
function isBindingIdentifier() {
|
|
71
|
+
const {
|
|
72
|
+
node,
|
|
73
|
+
parent
|
|
74
|
+
} = this;
|
|
75
|
+
const grandparent = this.parentPath.parent;
|
|
76
|
+
return isIdentifier(node) && isBinding(node, parent, grandparent);
|
|
77
|
+
}
|
|
78
|
+
function isStatement() {
|
|
79
|
+
const {
|
|
80
|
+
node,
|
|
81
|
+
parent
|
|
82
|
+
} = this;
|
|
83
|
+
if (nodeIsStatement(node)) {
|
|
84
|
+
if (isVariableDeclaration(node)) {
|
|
85
|
+
if (isForXStatement(parent, {
|
|
86
|
+
left: node
|
|
87
|
+
})) return false;
|
|
88
|
+
if (isForStatement(parent, {
|
|
89
|
+
init: node
|
|
90
|
+
})) return false;
|
|
91
|
+
}
|
|
92
|
+
return true;
|
|
93
|
+
} else {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function isExpression() {
|
|
98
|
+
if (this.isIdentifier()) {
|
|
99
|
+
return this.isReferencedIdentifier();
|
|
100
|
+
} else {
|
|
101
|
+
return nodeIsExpression(this.node);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function isScope() {
|
|
105
|
+
return nodeIsScope(this.node, this.parent);
|
|
106
|
+
}
|
|
107
|
+
function isReferenced() {
|
|
108
|
+
return nodeIsReferenced(this.node, this.parent);
|
|
109
|
+
}
|
|
110
|
+
function isBlockScoped() {
|
|
111
|
+
return nodeIsBlockScoped(this.node);
|
|
112
|
+
}
|
|
113
|
+
function isVar() {
|
|
114
|
+
return nodeIsVar(this.node);
|
|
115
|
+
}
|
|
116
|
+
function isUser() {
|
|
117
|
+
var _this$node;
|
|
118
|
+
return !!((_this$node = this.node) != null && _this$node.loc);
|
|
119
|
+
}
|
|
120
|
+
function isGenerated() {
|
|
121
|
+
return !this.isUser();
|
|
122
|
+
}
|
|
123
|
+
function isPure(constantsOnly) {
|
|
124
|
+
return this.scope.isPure(this.node, constantsOnly);
|
|
125
|
+
}
|
|
126
|
+
function isFlow() {
|
|
127
|
+
const {
|
|
128
|
+
node
|
|
129
|
+
} = this;
|
|
130
|
+
if (nodeIsFlow(node)) {
|
|
131
|
+
return true;
|
|
132
|
+
} else if (isImportDeclaration(node)) {
|
|
133
|
+
return node.importKind === "type" || node.importKind === "typeof";
|
|
134
|
+
} else if (isExportDeclaration(node)) {
|
|
135
|
+
return node.exportKind === "type";
|
|
136
|
+
} else if (isImportSpecifier(node)) {
|
|
137
|
+
return node.importKind === "type" || node.importKind === "typeof";
|
|
138
|
+
} else {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function isRestProperty() {
|
|
143
|
+
var _this$parentPath;
|
|
144
|
+
return nodeIsRestElement(this.node) && ((_this$parentPath = this.parentPath) == null ? void 0 : _this$parentPath.isObjectPattern());
|
|
145
|
+
}
|
|
146
|
+
function isSpreadProperty() {
|
|
147
|
+
var _this$parentPath2;
|
|
148
|
+
return nodeIsRestElement(this.node) && ((_this$parentPath2 = this.parentPath) == null ? void 0 : _this$parentPath2.isObjectExpression());
|
|
149
|
+
}
|
|
150
|
+
function isForAwaitStatement() {
|
|
151
|
+
return isForOfStatement(this.node, {
|
|
152
|
+
await: true
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
exports.isExistentialTypeParam = function isExistentialTypeParam() {
|
|
156
|
+
throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.");
|
|
157
|
+
};
|
|
158
|
+
exports.isNumericLiteralTypeAnnotation = function isNumericLiteralTypeAnnotation() {
|
|
159
|
+
throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.");
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
//# sourceMappingURL=virtual-types-validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_t","require","isBinding","isBlockScoped","nodeIsBlockScoped","isExportDeclaration","isExpression","nodeIsExpression","isFlow","nodeIsFlow","isForStatement","isForXStatement","isIdentifier","isImportDeclaration","isImportSpecifier","isJSXIdentifier","isJSXMemberExpression","isMemberExpression","isRestElement","nodeIsRestElement","isReferenced","nodeIsReferenced","isScope","nodeIsScope","isStatement","nodeIsStatement","isVar","nodeIsVar","isVariableDeclaration","react","isForOfStatement","isCompatTag","isReferencedIdentifier","opts","node","parent","parentPath","name","isReferencedMemberExpression","isBindingIdentifier","grandparent","left","init","isUser","_this$node","loc","isGenerated","isPure","constantsOnly","scope","importKind","exportKind","isRestProperty","_this$parentPath","isObjectPattern","isSpreadProperty","_this$parentPath2","isObjectExpression","isForAwaitStatement","await","exports","isExistentialTypeParam","Error","isNumericLiteralTypeAnnotation"],"sources":["../../../src/path/lib/virtual-types-validator.ts"],"sourcesContent":["import type NodePath from \"../index.ts\";\nimport {\n isBinding,\n isBlockScoped as nodeIsBlockScoped,\n isExportDeclaration,\n isExpression as nodeIsExpression,\n isFlow as nodeIsFlow,\n isForStatement,\n isForXStatement,\n isIdentifier,\n isImportDeclaration,\n isImportSpecifier,\n isJSXIdentifier,\n isJSXMemberExpression,\n isMemberExpression,\n isRestElement as nodeIsRestElement,\n isReferenced as nodeIsReferenced,\n isScope as nodeIsScope,\n isStatement as nodeIsStatement,\n isVar as nodeIsVar,\n isVariableDeclaration,\n react,\n isForOfStatement,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nconst { isCompatTag } = react;\nimport type { VirtualTypeAliases } from \"./virtual-types.ts\";\n\ntype Options<Obj> = Partial<{\n [Prop in Exclude<keyof Obj, \"type\">]: Obj[Prop] extends t.Node\n ? t.Node\n : Obj[Prop] extends t.Node[]\n ? t.Node[]\n : Obj[Prop];\n}>;\n\nexport interface VirtualTypeNodePathValidators {\n isBindingIdentifier(\n this: NodePath<t.Node | null>,\n ): this is NodePath<VirtualTypeAliases[\"BindingIdentifier\"]>;\n isBlockScoped(this: NodePath<t.Node | null>): boolean;\n /**\n * @deprecated\n */\n isExistentialTypeParam(\n this: NodePath<t.Node | null>,\n ): this is NodePath<VirtualTypeAliases[\"ExistentialTypeParam\"]>;\n isExpression(this: NodePath<t.Node | null>): this is NodePath<t.Expression>;\n isFlow(this: NodePath<t.Node | null>): this is NodePath<t.Flow>;\n isForAwaitStatement(\n this: NodePath<t.Node | null>,\n ): this is NodePath<VirtualTypeAliases[\"ForAwaitStatement\"]>;\n isGenerated(\n this: NodePath<t.Node | null>,\n ): this is NodePath<VirtualTypeAliases[\"Generated\"]>;\n /**\n * @deprecated\n */\n isNumericLiteralTypeAnnotation(this: NodePath<t.Node | null>): void;\n isPure(): boolean;\n isReferenced(): boolean;\n isReferencedIdentifier<\n Opts extends Options<VirtualTypeAliases[\"ReferencedIdentifier\"]>,\n >(\n this: NodePath<t.Node | null>,\n opts?: Opts,\n ): this is NodePath<VirtualTypeAliases[\"ReferencedIdentifier\"] & Opts>;\n isReferencedMemberExpression(\n this: NodePath<t.Node | null>,\n ): this is NodePath<VirtualTypeAliases[\"ReferencedMemberExpression\"]>;\n isRestProperty(\n this: NodePath<t.Node | null>,\n ): this is NodePath<t.RestProperty>;\n isScope(\n this: NodePath<t.Node | null>,\n ): this is NodePath<VirtualTypeAliases[\"Scope\"]>;\n isSpreadProperty(\n this: NodePath<t.Node | null>,\n ): this is NodePath<t.SpreadProperty>;\n isStatement(this: NodePath<t.Node | null>): this is NodePath<t.Statement>;\n isUser(\n this: NodePath<t.Node | null>,\n ): this is NodePath<VirtualTypeAliases[\"User\"]>;\n isVar(\n this: NodePath<t.Node | null>,\n ): this is NodePath<VirtualTypeAliases[\"Var\"]>;\n}\n\nexport function isReferencedIdentifier(\n this: NodePath<t.Node | null>,\n opts?: Options<VirtualTypeAliases[\"ReferencedIdentifier\"]>,\n): boolean {\n const { node, parent } = this;\n if (isIdentifier(node, opts)) {\n return nodeIsReferenced(node, parent, this.parentPath.parent);\n } else if (isJSXIdentifier(node, opts)) {\n if (!isJSXMemberExpression(parent) && isCompatTag(node.name)) return false;\n return nodeIsReferenced(node, parent, this.parentPath.parent);\n } else {\n // not a JSXIdentifier or an Identifier\n return false;\n }\n}\n\nexport function isReferencedMemberExpression(\n this: NodePath<t.Node | null>,\n): boolean {\n const { node, parent } = this;\n return isMemberExpression(node) && nodeIsReferenced(node, parent);\n}\n\nexport function isBindingIdentifier(this: NodePath<t.Node | null>): boolean {\n const { node, parent } = this;\n const grandparent = this.parentPath.parent;\n return isIdentifier(node) && isBinding(node, parent, grandparent);\n}\n\nexport function isStatement(this: NodePath<t.Node | null>): boolean {\n const { node, parent } = this;\n if (nodeIsStatement(node)) {\n if (isVariableDeclaration(node)) {\n if (isForXStatement(parent, { left: node })) return false;\n if (isForStatement(parent, { init: node })) return false;\n }\n\n return true;\n } else {\n return false;\n }\n}\n\nexport function isExpression(this: NodePath<t.Node | null>): boolean {\n if (this.isIdentifier()) {\n return this.isReferencedIdentifier();\n } else {\n return nodeIsExpression(this.node);\n }\n}\n\nexport function isScope(this: NodePath<t.Node | null>): boolean {\n return nodeIsScope(this.node, this.parent);\n}\n\nexport function isReferenced(this: NodePath<t.Node | null>): boolean {\n return nodeIsReferenced(this.node, this.parent);\n}\n\nexport function isBlockScoped(this: NodePath<t.Node | null>): boolean {\n return nodeIsBlockScoped(this.node);\n}\n\nexport function isVar(this: NodePath<t.Node | null>): boolean {\n return nodeIsVar(this.node);\n}\n\nexport function isUser(this: NodePath<t.Node | null>): boolean {\n return !!this.node?.loc;\n}\n\nexport function isGenerated(this: NodePath<t.Node | null>): boolean {\n return !this.isUser();\n}\n\nexport function isPure(\n this: NodePath<t.Node | null>,\n constantsOnly?: boolean,\n): boolean {\n return this.scope.isPure(this.node, constantsOnly);\n}\n\nexport function isFlow(this: NodePath<t.Node | null>): boolean {\n const { node } = this;\n if (nodeIsFlow(node)) {\n return true;\n } else if (isImportDeclaration(node)) {\n return node.importKind === \"type\" || node.importKind === \"typeof\";\n } else if (isExportDeclaration(node)) {\n return node.exportKind === \"type\";\n } else if (isImportSpecifier(node)) {\n return node.importKind === \"type\" || node.importKind === \"typeof\";\n } else {\n return false;\n }\n}\n\n// TODO: 7.0 Backwards Compat\nexport function isRestProperty(this: NodePath<t.Node | null>): boolean {\n return nodeIsRestElement(this.node) && this.parentPath?.isObjectPattern();\n}\n\nexport function isSpreadProperty(this: NodePath<t.Node | null>): boolean {\n return nodeIsRestElement(this.node) && this.parentPath?.isObjectExpression();\n}\n\nexport function isForAwaitStatement(this: NodePath<t.Node | null>): boolean {\n return isForOfStatement(this.node, { await: true });\n}\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n // eslint-disable-next-line no-restricted-globals\n exports.isExistentialTypeParam = function isExistentialTypeParam(\n this: NodePath,\n ): void {\n throw new Error(\n \"`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.\",\n );\n };\n\n // eslint-disable-next-line no-restricted-globals\n exports.isNumericLiteralTypeAnnotation =\n function isNumericLiteralTypeAnnotation(this: NodePath): void {\n throw new Error(\n \"`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.\",\n );\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AAsBsB;EArBpBC,SAAS;EACTC,aAAa,EAAIC,iBAAiB;EAClCC,mBAAmB;EACnBC,YAAY,EAAIC,gBAAgB;EAChCC,MAAM,EAAIC,UAAU;EACpBC,cAAc;EACdC,eAAe;EACfC,YAAY;EACZC,mBAAmB;EACnBC,iBAAiB;EACjBC,eAAe;EACfC,qBAAqB;EACrBC,kBAAkB;EAClBC,aAAa,EAAIC,iBAAiB;EAClCC,YAAY,EAAIC,gBAAgB;EAChCC,OAAO,EAAIC,WAAW;EACtBC,WAAW,EAAIC,eAAe;EAC9BC,KAAK,EAAIC,SAAS;EAClBC,qBAAqB;EACrBC,KAAK;EACLC;AAAgB,IAAA9B,EAAA;AAGlB,MAAM;EAAE+B;AAAY,CAAC,GAAGF,KAAK;AA+DtB,SAASG,sBAAsBA,CAEpCC,IAA0D,EACjD;EACT,MAAM;IAAEC,IAAI;IAAEC;EAAO,CAAC,GAAG,IAAI;EAC7B,IAAIvB,YAAY,CAACsB,IAAI,EAAED,IAAI,CAAC,EAAE;IAC5B,OAAOZ,gBAAgB,CAACa,IAAI,EAAEC,MAAM,EAAE,IAAI,CAACC,UAAU,CAACD,MAAM,CAAC;EAC/D,CAAC,MAAM,IAAIpB,eAAe,CAACmB,IAAI,EAAED,IAAI,CAAC,EAAE;IACtC,IAAI,CAACjB,qBAAqB,CAACmB,MAAM,CAAC,IAAIJ,WAAW,CAACG,IAAI,CAACG,IAAI,CAAC,EAAE,OAAO,KAAK;IAC1E,OAAOhB,gBAAgB,CAACa,IAAI,EAAEC,MAAM,EAAE,IAAI,CAACC,UAAU,CAACD,MAAM,CAAC;EAC/D,CAAC,MAAM;IAEL,OAAO,KAAK;EAC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,SAASE,cAAcA,CAAA,EAAyC;EAAA,IAAAC,gBAAA;EACrE,OAAOlC,iBAAiB,CAAC,IAAI,CAACe,IAAI,CAAC,MAAAmB,gBAAA,GAAI,IAAI,CAACjB,UAAU,qBAAfiB,gBAAA,CAAiBC,eAAe,CAAC,CAAC;AAC3E;AAEO,SAASC,gBAAgBA,CAAA,EAAyC;EAAA,IAAAC,iBAAA;EACvE,OAAOrC,iBAAiB,CAAC,IAAI,CAACe,IAAI,CAAC,MAAAsB,iBAAA,GAAI,IAAI,CAACpB,UAAU,qBAAfoB,iBAAA,CAAiBC,kBAAkB,CAAC,CAAC;AAC9E;AAEO,SAASC,mBAAmBA,CAAA,EAAyC;EAC1E,OAAO5B,gBAAgB,CAAC,IAAI,CAACI,IAAI,EAAE;IAAEyB,KAAK,EAAE;EAAK,CAAC,CAAC;AACrD;AAIEC,OAAO,CAACC,sBAAsB,GAAG,SAASA,sBAAsBA,CAAA,EAExD;EACN,MAAM,IAAIC,KAAK,CACb,+FACF,CAAC;AACH,CAAC;AAGDF,OAAO,CAACG,8BAA8B,GACpC,SAASA,8BAA8BA,CAAA,EAAuB;EAC5D,MAAM,IAAID,KAAK,CACb,gHACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Var = exports.User = exports.Statement = exports.SpreadProperty = exports.Scope = exports.RestProperty = exports.ReferencedMemberExpression = exports.ReferencedIdentifier = exports.Referenced = exports.Pure = exports.NumericLiteralTypeAnnotation = exports.Generated = exports.ForAwaitStatement = exports.Flow = exports.Expression = exports.ExistentialTypeParam = exports.BlockScoped = exports.BindingIdentifier = void 0;
|
|
7
|
+
const ReferencedIdentifier = exports.ReferencedIdentifier = ["Identifier", "JSXIdentifier"];
|
|
8
|
+
const ReferencedMemberExpression = exports.ReferencedMemberExpression = ["MemberExpression"];
|
|
9
|
+
const BindingIdentifier = exports.BindingIdentifier = ["Identifier"];
|
|
10
|
+
const Statement = exports.Statement = ["Statement"];
|
|
11
|
+
const Expression = exports.Expression = ["Expression"];
|
|
12
|
+
const Scope = exports.Scope = ["Scopable", "Pattern"];
|
|
13
|
+
const Referenced = exports.Referenced = null;
|
|
14
|
+
const BlockScoped = exports.BlockScoped = ["FunctionDeclaration", "ClassDeclaration", "VariableDeclaration"];
|
|
15
|
+
const Var = exports.Var = ["VariableDeclaration"];
|
|
16
|
+
const User = exports.User = null;
|
|
17
|
+
const Generated = exports.Generated = null;
|
|
18
|
+
const Pure = exports.Pure = null;
|
|
19
|
+
const Flow = exports.Flow = ["Flow", "ImportDeclaration", "ExportDeclaration", "ImportSpecifier"];
|
|
20
|
+
const RestProperty = exports.RestProperty = ["RestElement"];
|
|
21
|
+
const SpreadProperty = exports.SpreadProperty = ["RestElement"];
|
|
22
|
+
const ExistentialTypeParam = exports.ExistentialTypeParam = ["ExistsTypeAnnotation"];
|
|
23
|
+
const NumericLiteralTypeAnnotation = exports.NumericLiteralTypeAnnotation = ["NumberLiteralTypeAnnotation"];
|
|
24
|
+
const ForAwaitStatement = exports.ForAwaitStatement = ["ForOfStatement"];
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=virtual-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ReferencedIdentifier","exports","ReferencedMemberExpression","BindingIdentifier","Statement","Expression","Scope","Referenced","BlockScoped","Var","User","Generated","Pure","Flow","RestProperty","SpreadProperty","ExistentialTypeParam","NumericLiteralTypeAnnotation","ForAwaitStatement"],"sources":["../../../src/path/lib/virtual-types.ts"],"sourcesContent":["import type * as t from \"@babel/types\";\n\nexport interface VirtualTypeAliases {\n BindingIdentifier: t.Identifier;\n BlockScoped:\n | t.FunctionDeclaration\n | t.ClassDeclaration\n | t.VariableDeclaration;\n ExistentialTypeParam: t.ExistsTypeAnnotation;\n Expression: t.Expression;\n Flow: t.Flow | t.ImportDeclaration | t.ExportDeclaration | t.ImportSpecifier;\n ForAwaitStatement: t.ForOfStatement;\n Generated: t.Node;\n NumericLiteralTypeAnnotation: t.NumberLiteralTypeAnnotation;\n Pure: t.Node;\n Referenced: t.Node;\n ReferencedIdentifier: t.Identifier | t.JSXIdentifier;\n ReferencedMemberExpression: t.MemberExpression;\n RestProperty: t.RestElement;\n Scope: t.Scopable | t.Pattern;\n SpreadProperty: t.RestElement;\n Statement: t.Statement;\n User: t.Node;\n Var: t.VariableDeclaration;\n}\n\ntype VirtualTypeMapping = readonly (t.Node[\"type\"] | keyof t.Aliases)[] | null;\n\nexport const ReferencedIdentifier: VirtualTypeMapping = [\n \"Identifier\",\n \"JSXIdentifier\",\n] as const;\n\nexport const ReferencedMemberExpression: VirtualTypeMapping = [\n \"MemberExpression\",\n] as const;\n\nexport const BindingIdentifier: VirtualTypeMapping = [\"Identifier\"] as const;\n\nexport const Statement: VirtualTypeMapping = [\"Statement\"] as const;\n\nexport const Expression: VirtualTypeMapping = [\"Expression\"] as const;\n\nexport const Scope: VirtualTypeMapping = [\"Scopable\", \"Pattern\"] as const;\n\nexport const Referenced: VirtualTypeMapping = null;\n\nexport const BlockScoped: VirtualTypeMapping = [\n \"FunctionDeclaration\",\n \"ClassDeclaration\",\n \"VariableDeclaration\",\n] as const;\n\nexport const Var: VirtualTypeMapping = [\"VariableDeclaration\"];\n\nexport const User: VirtualTypeMapping = null;\n\nexport const Generated: VirtualTypeMapping = null;\n\nexport const Pure: VirtualTypeMapping = null;\n\nexport const Flow: VirtualTypeMapping = [\n \"Flow\",\n \"ImportDeclaration\",\n \"ExportDeclaration\",\n \"ImportSpecifier\",\n] as const;\n\n// TODO: 7.0 Backwards Compat\nexport const RestProperty: VirtualTypeMapping = [\"RestElement\"] as const;\n\nexport const SpreadProperty: VirtualTypeMapping = [\"RestElement\"] as const;\n\nexport const ExistentialTypeParam: VirtualTypeMapping = [\n \"ExistsTypeAnnotation\",\n] as const;\n\nexport const NumericLiteralTypeAnnotation: VirtualTypeMapping = [\n \"NumberLiteralTypeAnnotation\",\n] as const;\n\nexport const ForAwaitStatement: VirtualTypeMapping = [\n \"ForOfStatement\",\n] as const;\n"],"mappings":";;;;;;AA4BO,MAAMA,oBAAwC,GAAAC,OAAA,CAAAD,oBAAA,GAAG,CACtD,YAAY,EACZ,eAAe,CACP;AAEH,MAAME,0BAA8C,GAAAD,OAAA,CAAAC,0BAAA,GAAG,CAC5D,kBAAkB,CACV;AAEH,MAAMC,iBAAqC,GAAAF,OAAA,CAAAE,iBAAA,GAAG,CAAC,YAAY,CAAU;AAErE,MAAMC,SAA6B,GAAAH,OAAA,CAAAG,SAAA,GAAG,CAAC,WAAW,CAAU;AAE5D,MAAMC,UAA8B,GAAAJ,OAAA,CAAAI,UAAA,GAAG,CAAC,YAAY,CAAU;AAE9D,MAAMC,KAAyB,GAAAL,OAAA,CAAAK,KAAA,GAAG,CAAC,UAAU,EAAE,SAAS,CAAU;AAElE,MAAMC,UAA8B,GAAAN,OAAA,CAAAM,UAAA,GAAG,IAAI;AAE3C,MAAMC,WAA+B,GAAAP,OAAA,CAAAO,WAAA,GAAG,CAC7C,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,CACb;AAEH,MAAMC,GAAuB,GAAAR,OAAA,CAAAQ,GAAA,GAAG,CAAC,qBAAqB,CAAC;AAEvD,MAAMC,IAAwB,GAAAT,OAAA,CAAAS,IAAA,GAAG,IAAI;AAErC,MAAMC,SAA6B,GAAAV,OAAA,CAAAU,SAAA,GAAG,IAAI;AAE1C,MAAMC,IAAwB,GAAAX,OAAA,CAAAW,IAAA,GAAG,IAAI;AAErC,MAAMC,IAAwB,GAAAZ,OAAA,CAAAY,IAAA,GAAG,CACtC,MAAM,EACN,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,CACT;AAGH,MAAMC,YAAgC,GAAAb,OAAA,CAAAa,YAAA,GAAG,CAAC,aAAa,CAAU;AAEjE,MAAMC,cAAkC,GAAAd,OAAA,CAAAc,cAAA,GAAG,CAAC,aAAa,CAAU;AAEnE,MAAMC,oBAAwC,GAAAf,OAAA,CAAAe,oBAAA,GAAG,CACtD,sBAAsB,CACd;AAEH,MAAMC,4BAAgD,GAAAhB,OAAA,CAAAgB,4BAAA,GAAG,CAC9D,6BAA6B,CACrB;AAEH,MAAMC,iBAAqC,GAAAjB,OAAA,CAAAiB,iBAAA,GAAG,CACnD,gBAAgB,CACR","ignoreList":[]}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports._containerInsert = _containerInsert;
|
|
7
|
+
exports._containerInsertAfter = _containerInsertAfter;
|
|
8
|
+
exports._containerInsertBefore = _containerInsertBefore;
|
|
9
|
+
exports._verifyNodeList = _verifyNodeList;
|
|
10
|
+
exports.insertAfter = insertAfter;
|
|
11
|
+
exports.insertBefore = insertBefore;
|
|
12
|
+
exports.pushContainer = pushContainer;
|
|
13
|
+
exports.unshiftContainer = unshiftContainer;
|
|
14
|
+
exports.updateSiblingKeys = updateSiblingKeys;
|
|
15
|
+
var _cache = require("../cache.js");
|
|
16
|
+
var _index = require("./index.js");
|
|
17
|
+
var _context = require("./context.js");
|
|
18
|
+
var _removal = require("./removal.js");
|
|
19
|
+
var _t = require("@babel/types");
|
|
20
|
+
var _hoister = require("./lib/hoister.js");
|
|
21
|
+
const {
|
|
22
|
+
arrowFunctionExpression,
|
|
23
|
+
assertExpression,
|
|
24
|
+
assignmentExpression,
|
|
25
|
+
blockStatement,
|
|
26
|
+
callExpression,
|
|
27
|
+
cloneNode,
|
|
28
|
+
expressionStatement,
|
|
29
|
+
isAssignmentExpression,
|
|
30
|
+
isCallExpression,
|
|
31
|
+
isExportNamedDeclaration,
|
|
32
|
+
isExpression,
|
|
33
|
+
isIdentifier,
|
|
34
|
+
isSequenceExpression,
|
|
35
|
+
isSuper,
|
|
36
|
+
thisExpression
|
|
37
|
+
} = _t;
|
|
38
|
+
function insertBefore(nodes_) {
|
|
39
|
+
_removal._assertUnremoved.call(this);
|
|
40
|
+
const nodes = _verifyNodeList.call(this, nodes_);
|
|
41
|
+
const {
|
|
42
|
+
parentPath,
|
|
43
|
+
parent
|
|
44
|
+
} = this;
|
|
45
|
+
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration(parent) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
|
|
46
|
+
return parentPath.insertBefore(nodes);
|
|
47
|
+
} else if (this.isNodeType("Expression") && !this.isJSXElement() || parentPath.isForStatement() && this.key === "init") {
|
|
48
|
+
if (this.node) nodes.push(this.node);
|
|
49
|
+
return this.replaceExpressionWithStatements(nodes);
|
|
50
|
+
} else if (Array.isArray(this.container)) {
|
|
51
|
+
return _containerInsertBefore.call(this, nodes);
|
|
52
|
+
} else if (this.isStatementOrBlock()) {
|
|
53
|
+
const node = this.node;
|
|
54
|
+
const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null);
|
|
55
|
+
const [blockPath] = this.replaceWith(blockStatement(shouldInsertCurrentNode ? [node] : []));
|
|
56
|
+
return blockPath.unshiftContainer("body", nodes);
|
|
57
|
+
} else {
|
|
58
|
+
throw new Error("We don't know what to do with this node type. " + "We were previously a Statement but we can't fit in here?");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function _containerInsert(from, nodes) {
|
|
62
|
+
updateSiblingKeys.call(this, from, nodes.length);
|
|
63
|
+
const paths = [];
|
|
64
|
+
this.container.splice(from, 0, ...nodes);
|
|
65
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
66
|
+
var _this$context;
|
|
67
|
+
const to = from + i;
|
|
68
|
+
const path = this.getSibling(to);
|
|
69
|
+
paths.push(path);
|
|
70
|
+
if ((_this$context = this.context) != null && _this$context.queue) {
|
|
71
|
+
_context.pushContext.call(path, this.context);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
const contexts = _context._getQueueContexts.call(this);
|
|
75
|
+
for (const path of paths) {
|
|
76
|
+
_context.setScope.call(path);
|
|
77
|
+
path.debug("Inserted.");
|
|
78
|
+
for (const context of contexts) {
|
|
79
|
+
context.maybeQueue(path, true);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return paths;
|
|
83
|
+
}
|
|
84
|
+
function _containerInsertBefore(nodes) {
|
|
85
|
+
return _containerInsert.call(this, this.key, nodes);
|
|
86
|
+
}
|
|
87
|
+
function _containerInsertAfter(nodes) {
|
|
88
|
+
return _containerInsert.call(this, this.key + 1, nodes);
|
|
89
|
+
}
|
|
90
|
+
const last = arr => arr[arr.length - 1];
|
|
91
|
+
function isHiddenInSequenceExpression(path) {
|
|
92
|
+
return isSequenceExpression(path.parent) && (last(path.parent.expressions) !== path.node || isHiddenInSequenceExpression(path.parentPath));
|
|
93
|
+
}
|
|
94
|
+
function isAlmostConstantAssignment(node, scope) {
|
|
95
|
+
if (!isAssignmentExpression(node) || !isIdentifier(node.left)) {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
const blockScope = scope.getBlockParent();
|
|
99
|
+
return blockScope.hasOwnBinding(node.left.name) && blockScope.getOwnBinding(node.left.name).constantViolations.length <= 1;
|
|
100
|
+
}
|
|
101
|
+
function insertAfter(nodes_) {
|
|
102
|
+
_removal._assertUnremoved.call(this);
|
|
103
|
+
if (this.isSequenceExpression()) {
|
|
104
|
+
return last(this.get("expressions")).insertAfter(nodes_);
|
|
105
|
+
}
|
|
106
|
+
const nodes = _verifyNodeList.call(this, nodes_);
|
|
107
|
+
const {
|
|
108
|
+
parentPath,
|
|
109
|
+
parent
|
|
110
|
+
} = this;
|
|
111
|
+
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration(parent) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
|
|
112
|
+
return parentPath.insertAfter(nodes.map(node => {
|
|
113
|
+
return isExpression(node) ? expressionStatement(node) : node;
|
|
114
|
+
}));
|
|
115
|
+
} else if (this.isNodeType("Expression") && !this.isJSXElement() && !parentPath.isJSXElement() || parentPath.isForStatement() && this.key === "init") {
|
|
116
|
+
const self = this;
|
|
117
|
+
if (self.node) {
|
|
118
|
+
const node = self.node;
|
|
119
|
+
let {
|
|
120
|
+
scope
|
|
121
|
+
} = this;
|
|
122
|
+
if (scope.path.isPattern()) {
|
|
123
|
+
assertExpression(node);
|
|
124
|
+
self.replaceWith(callExpression(arrowFunctionExpression([], node), []));
|
|
125
|
+
self.get("callee.body").insertAfter(nodes);
|
|
126
|
+
return [self];
|
|
127
|
+
}
|
|
128
|
+
if (isHiddenInSequenceExpression(self)) {
|
|
129
|
+
nodes.unshift(node);
|
|
130
|
+
} else if (isCallExpression(node) && isSuper(node.callee)) {
|
|
131
|
+
nodes.unshift(node);
|
|
132
|
+
nodes.push(thisExpression());
|
|
133
|
+
} else if (isAlmostConstantAssignment(node, scope)) {
|
|
134
|
+
nodes.unshift(node);
|
|
135
|
+
nodes.push(cloneNode(node.left));
|
|
136
|
+
} else if (scope.isPure(node, true)) {
|
|
137
|
+
nodes.push(node);
|
|
138
|
+
} else {
|
|
139
|
+
if (parentPath.isMethod({
|
|
140
|
+
computed: true,
|
|
141
|
+
key: node
|
|
142
|
+
})) {
|
|
143
|
+
scope = scope.parent;
|
|
144
|
+
}
|
|
145
|
+
const temp = scope.generateDeclaredUidIdentifier();
|
|
146
|
+
nodes.unshift(expressionStatement(assignmentExpression("=", cloneNode(temp), node)));
|
|
147
|
+
nodes.push(expressionStatement(cloneNode(temp)));
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return this.replaceExpressionWithStatements(nodes);
|
|
151
|
+
} else if (Array.isArray(this.container)) {
|
|
152
|
+
return _containerInsertAfter.call(this, nodes);
|
|
153
|
+
} else if (this.isStatementOrBlock()) {
|
|
154
|
+
const node = this.node;
|
|
155
|
+
const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null);
|
|
156
|
+
const [blockPath] = this.replaceWith(blockStatement(shouldInsertCurrentNode ? [node] : []));
|
|
157
|
+
return blockPath.pushContainer("body", nodes);
|
|
158
|
+
} else {
|
|
159
|
+
throw new Error("We don't know what to do with this node type. " + "We were previously a Statement but we can't fit in here?");
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function updateSiblingKeys(fromIndex, incrementBy) {
|
|
163
|
+
if (!this.parent) return;
|
|
164
|
+
const paths = (0, _cache.getCachedPaths)(this);
|
|
165
|
+
if (!paths) return;
|
|
166
|
+
for (const [, path] of paths) {
|
|
167
|
+
if (typeof path.key === "number" && path.container === this.container && path.key >= fromIndex) {
|
|
168
|
+
path.key += incrementBy;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function _verifyNodeList(nodes) {
|
|
173
|
+
if (!nodes) {
|
|
174
|
+
return [];
|
|
175
|
+
}
|
|
176
|
+
if (!Array.isArray(nodes)) {
|
|
177
|
+
nodes = [nodes];
|
|
178
|
+
}
|
|
179
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
180
|
+
const node = nodes[i];
|
|
181
|
+
let msg;
|
|
182
|
+
if (!node) {
|
|
183
|
+
msg = "has falsy node";
|
|
184
|
+
} else if (typeof node !== "object") {
|
|
185
|
+
msg = "contains a non-object node";
|
|
186
|
+
} else if (!node.type) {
|
|
187
|
+
msg = "without a type";
|
|
188
|
+
} else if (node instanceof _index.default) {
|
|
189
|
+
msg = "has a NodePath when it expected a raw object";
|
|
190
|
+
}
|
|
191
|
+
if (msg) {
|
|
192
|
+
const type = Array.isArray(node) ? "array" : typeof node;
|
|
193
|
+
throw new Error(`Node list ${msg} with the index of ${i} and type of ${type}`);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return nodes;
|
|
197
|
+
}
|
|
198
|
+
function unshiftContainer(listKey, nodes) {
|
|
199
|
+
_removal._assertUnremoved.call(this);
|
|
200
|
+
const verifiedNodes = _verifyNodeList.call(this, nodes);
|
|
201
|
+
const container = this.node[listKey];
|
|
202
|
+
const path = _index.default.get({
|
|
203
|
+
parentPath: this,
|
|
204
|
+
parent: this.node,
|
|
205
|
+
container,
|
|
206
|
+
listKey,
|
|
207
|
+
key: 0
|
|
208
|
+
}).setContext(this.context);
|
|
209
|
+
return _containerInsertBefore.call(path, verifiedNodes);
|
|
210
|
+
}
|
|
211
|
+
function pushContainer(listKey, nodes) {
|
|
212
|
+
_removal._assertUnremoved.call(this);
|
|
213
|
+
const verifiedNodes = _verifyNodeList.call(this, nodes);
|
|
214
|
+
const container = this.node[listKey];
|
|
215
|
+
const path = _index.default.get({
|
|
216
|
+
parentPath: this,
|
|
217
|
+
parent: this.node,
|
|
218
|
+
container,
|
|
219
|
+
listKey,
|
|
220
|
+
key: container.length
|
|
221
|
+
}).setContext(this.context);
|
|
222
|
+
return path.replaceWithMultiple(verifiedNodes);
|
|
223
|
+
}
|
|
224
|
+
exports.hoist = function hoist(scope = this.scope) {
|
|
225
|
+
const hoister = new _hoister.default(this, scope);
|
|
226
|
+
return hoister.run();
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
//# sourceMappingURL=modification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_cache","require","_index","_context","_removal","_t","_hoister","arrowFunctionExpression","assertExpression","assignmentExpression","blockStatement","callExpression","cloneNode","expressionStatement","isAssignmentExpression","isCallExpression","isExportNamedDeclaration","isExpression","isIdentifier","isSequenceExpression","isSuper","thisExpression","insertBefore","nodes_","_assertUnremoved","call","nodes","_verifyNodeList","parentPath","parent","isExpressionStatement","isLabeledStatement","isExportDefaultDeclaration","isDeclaration","isNodeType","isJSXElement","isForStatement","key","node","push","replaceExpressionWithStatements","Array","isArray","container","_containerInsertBefore","isStatementOrBlock","shouldInsertCurrentNode","expression","blockPath","replaceWith","unshiftContainer","Error","_containerInsert","from","updateSiblingKeys","length","paths","splice","i","_this$context","to","path","getSibling","context","queue","pushContext","contexts","_getQueueContexts","setScope","debug","maybeQueue","_containerInsertAfter","last","arr","isHiddenInSequenceExpression","expressions","isAlmostConstantAssignment","scope","left","blockScope","getBlockParent","hasOwnBinding","name","getOwnBinding","constantViolations","insertAfter","get","map","self","isPattern","unshift","callee","isPure","isMethod","computed","temp","generateDeclaredUidIdentifier","pushContainer","fromIndex","incrementBy","getCachedPaths","msg","type","NodePath","listKey","verifiedNodes","setContext","replaceWithMultiple","exports","hoist","hoister","PathHoister","run"],"sources":["../../src/path/modification.ts"],"sourcesContent":["// This file contains methods that modify the path/node in some ways.\n\nimport { getCachedPaths } from \"../cache.ts\";\nimport NodePath from \"./index.ts\";\nimport { _getQueueContexts, pushContext, setScope } from \"./context.ts\";\nimport { _assertUnremoved } from \"./removal.ts\";\nimport {\n arrowFunctionExpression,\n assertExpression,\n assignmentExpression,\n blockStatement,\n callExpression,\n cloneNode,\n expressionStatement,\n isAssignmentExpression,\n isCallExpression,\n isExportNamedDeclaration,\n isExpression,\n isIdentifier,\n isSequenceExpression,\n isSuper,\n thisExpression,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type Scope from \"../scope/index.ts\";\nimport type {\n NodeList,\n NodeOrNodeList,\n NodeListType,\n NodePaths,\n} from \"./index.ts\";\n\n/**\n * Insert the provided nodes before the current one.\n */\n\nexport function insertBefore<Nodes extends NodeOrNodeList<t.Node>>(\n this: NodePath,\n nodes_: Nodes,\n): NodePaths<Nodes> {\n _assertUnremoved.call(this);\n\n const nodes = _verifyNodeList.call(this, nodes_);\n\n const { parentPath, parent } = this;\n\n if (\n parentPath.isExpressionStatement() ||\n parentPath.isLabeledStatement() ||\n // https://github.com/babel/babel/issues/15293\n // When Babel transforms `export class String { field }`, the class properties plugin will inject the defineProperty\n // helper, which depends on the builtins e.g. String, Number, Symbol, etc. To prevent them from being shadowed by local\n // exports, the helper injector replaces the named export into `class _String { field }; export { _String as String }`,\n // with `parentPath` here changed to the moved ClassDeclaration, causing rare inconsistency between `parent` and `parentPath`.\n // Here we retrieve the parent type from the `parent` property. This is a temporary fix and we should revisit when\n // helpers should get injected.\n isExportNamedDeclaration(parent) ||\n (parentPath.isExportDefaultDeclaration() && this.isDeclaration())\n ) {\n return parentPath.insertBefore(nodes as Nodes);\n } else if (\n (this.isNodeType(\"Expression\") && !this.isJSXElement()) ||\n (parentPath.isForStatement() && this.key === \"init\")\n ) {\n if (this.node) nodes.push(this.node);\n // @ts-expect-error todo(flow->ts): check that nodes is an array of statements\n return this.replaceExpressionWithStatements(nodes);\n } else if (Array.isArray(this.container)) {\n return _containerInsertBefore.call(this, nodes) as NodePaths<Nodes>;\n } else if (this.isStatementOrBlock()) {\n const node = this.node as t.Statement;\n const shouldInsertCurrentNode =\n node &&\n (!this.isExpressionStatement() ||\n (node as t.ExpressionStatement).expression != null);\n\n const [blockPath] = this.replaceWith(\n blockStatement(shouldInsertCurrentNode ? [node] : []),\n );\n return blockPath.unshiftContainer(\n \"body\",\n nodes as t.Statement[],\n ) as NodePaths<Nodes>;\n } else {\n throw new Error(\n \"We don't know what to do with this node type. \" +\n \"We were previously a Statement but we can't fit in here?\",\n );\n }\n}\n\nexport function _containerInsert<Nodes extends NodeList<t.Node>>(\n this: NodePath,\n from: number,\n nodes: Nodes,\n): NodePaths<Nodes> {\n updateSiblingKeys.call(this, from, nodes.length);\n\n const paths: NodePath[] = [];\n\n // @ts-expect-error todo(flow->ts): this.container could be a NodePath\n this.container.splice(from, 0, ...nodes);\n for (let i = 0; i < nodes.length; i++) {\n const to = from + i;\n const path = this.getSibling(to);\n paths.push(path);\n\n if (this.context?.queue) {\n pushContext.call(path, this.context);\n }\n }\n\n const contexts = _getQueueContexts.call(this);\n\n for (const path of paths) {\n setScope.call(path);\n path.debug(\"Inserted.\");\n\n for (const context of contexts) {\n context.maybeQueue(path, true);\n }\n }\n\n return paths as NodePaths<Nodes>;\n}\n\nexport function _containerInsertBefore<Nodes extends NodeList<t.Node>>(\n this: NodePath,\n nodes: Nodes,\n): NodePaths<Nodes> {\n return _containerInsert.call(\n this,\n this.key as number,\n nodes,\n ) as NodePaths<Nodes>;\n}\n\nexport function _containerInsertAfter<Nodes extends NodeList<t.Node>>(\n this: NodePath,\n nodes: Nodes,\n): NodePaths<Nodes> {\n return _containerInsert.call(\n this,\n (this.key as number) + 1,\n nodes,\n ) as NodePaths<Nodes>;\n}\n\nconst last = <T>(arr: T[]) => arr[arr.length - 1];\n\nfunction isHiddenInSequenceExpression(path: NodePath): boolean {\n return (\n isSequenceExpression(path.parent) &&\n (last(path.parent.expressions) !== path.node ||\n isHiddenInSequenceExpression(path.parentPath))\n );\n}\n\nfunction isAlmostConstantAssignment(\n node: t.Node,\n scope: Scope,\n): node is t.AssignmentExpression & { left: t.Identifier } {\n if (!isAssignmentExpression(node) || !isIdentifier(node.left)) {\n return false;\n }\n\n // Not every scope can contain variables. For example, we might be in\n // a ClassScope either in the ClassHeritage or in a computed key.\n const blockScope = scope.getBlockParent();\n\n // If the variable is defined in the current scope and only assigned here,\n // we can be sure that its value won't change.\n return (\n blockScope.hasOwnBinding(node.left.name) &&\n blockScope.getOwnBinding(node.left.name)!.constantViolations.length <= 1\n );\n}\n\n/**\n * Insert the provided nodes after the current one. When inserting nodes after an\n * expression, ensure that the completion record is correct by pushing the current node.\n */\n\nexport function insertAfter<Nodes extends NodeOrNodeList<t.Node>>(\n this: NodePath,\n nodes_: Nodes,\n): NodePaths<Nodes> {\n _assertUnremoved.call(this);\n\n if (this.isSequenceExpression()) {\n return last(this.get(\"expressions\")).insertAfter(nodes_);\n }\n\n const nodes = _verifyNodeList.call(this, nodes_);\n\n const { parentPath, parent } = this;\n if (\n parentPath.isExpressionStatement() ||\n parentPath.isLabeledStatement() ||\n // see insertBefore\n isExportNamedDeclaration(parent) ||\n (parentPath.isExportDefaultDeclaration() && this.isDeclaration())\n ) {\n return parentPath.insertAfter(\n nodes.map(node => {\n // Usually after an expression we can safely insert another expression:\n // A.insertAfter(B)\n // foo = A; -> foo = (A, B);\n // If A is an expression statement, it isn't safe anymore so we need to\n // convert B to an expression statement\n // A; -> A; B // No semicolon! It could break if followed by [!\n return isExpression(node) ? expressionStatement(node) : node;\n }),\n // todo: this cast is unsound, we wrap some expression nodes in expressionStatement but never unwrap them in the return values.\n ) as NodePaths<Nodes>;\n } else if (\n (this.isNodeType(\"Expression\") &&\n !this.isJSXElement() &&\n !parentPath.isJSXElement()) ||\n (parentPath.isForStatement() && this.key === \"init\")\n ) {\n const self = this as NodePath<t.Expression | t.VariableDeclaration>;\n if (self.node) {\n const node = self.node;\n let { scope } = this;\n\n if (scope.path.isPattern()) {\n assertExpression(node);\n\n self.replaceWith(callExpression(arrowFunctionExpression([], node), []));\n (\n self.get(\"callee.body\") as unknown as NodePath<t.Expression>\n ).insertAfter(nodes);\n // todo: this cast is unsound, we wrap nodes in the IIFE but never unwrap them in the return values.\n // consider just returning the insertAfter result.\n return [self] as NodePaths<Nodes>;\n }\n\n if (isHiddenInSequenceExpression(self)) {\n nodes.unshift(node);\n }\n // We need to preserve the value of this expression.\n else if (isCallExpression(node) && isSuper(node.callee)) {\n nodes.unshift(node);\n // `super(...)` always evaluates to `this`.\n nodes.push(thisExpression());\n } else if (isAlmostConstantAssignment(node, scope)) {\n nodes.unshift(node);\n nodes.push(cloneNode(node.left));\n } else if (scope.isPure(node, true)) {\n // Insert the nodes before rather than after; it's not observable.\n nodes.push(node);\n } else {\n // Inserting after the computed key of a method should insert the\n // temporary binding in the method's parent's scope.\n if (parentPath.isMethod({ computed: true, key: node })) {\n scope = scope.parent!;\n }\n const temp = scope.generateDeclaredUidIdentifier();\n nodes.unshift(\n expressionStatement(\n // @ts-expect-error todo(flow->ts): This can be a variable\n // declaration in the \"init\" of a for statement, but that's\n // invalid here.\n assignmentExpression(\"=\", cloneNode(temp), node),\n ),\n );\n nodes.push(expressionStatement(cloneNode(temp)));\n }\n }\n // @ts-expect-error todo(flow->ts): check that nodes is an array of statements\n return this.replaceExpressionWithStatements(nodes);\n } else if (Array.isArray(this.container)) {\n return _containerInsertAfter.call(this, nodes) as NodePaths<Nodes>;\n } else if (this.isStatementOrBlock()) {\n const node = this.node as t.Statement;\n const shouldInsertCurrentNode =\n node &&\n (!this.isExpressionStatement() ||\n (node as t.ExpressionStatement).expression != null);\n\n const [blockPath] = this.replaceWith(\n blockStatement(shouldInsertCurrentNode ? [node] : []),\n );\n return blockPath.pushContainer(\n \"body\",\n nodes as t.Statement[],\n ) as NodePaths<Nodes>;\n } else {\n throw new Error(\n \"We don't know what to do with this node type. \" +\n \"We were previously a Statement but we can't fit in here?\",\n );\n }\n}\n\n/**\n * Update all sibling node paths after `fromIndex` by `incrementBy`.\n */\n\nexport function updateSiblingKeys(\n this: NodePath,\n fromIndex: number,\n incrementBy: number,\n) {\n if (!this.parent) return;\n\n const paths = getCachedPaths(this);\n if (!paths) return;\n\n for (const [, path] of paths) {\n if (\n typeof path.key === \"number\" &&\n path.container === this.container &&\n path.key >= fromIndex\n ) {\n path.key += incrementBy;\n }\n }\n}\n\nexport function _verifyNodeList<N extends t.Node>(\n this: NodePath,\n nodes: N | N[],\n) {\n if (!nodes) {\n return [];\n }\n\n if (!Array.isArray(nodes)) {\n nodes = [nodes];\n }\n\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n let msg;\n\n if (!node) {\n msg = \"has falsy node\";\n } else if (typeof node !== \"object\") {\n msg = \"contains a non-object node\";\n } else if (!node.type) {\n msg = \"without a type\";\n } else if (node instanceof NodePath) {\n msg = \"has a NodePath when it expected a raw object\";\n }\n\n if (msg) {\n const type = Array.isArray(node) ? \"array\" : typeof node;\n throw new Error(\n `Node list ${msg} with the index of ${i} and type of ${type}`,\n );\n }\n }\n\n return nodes;\n}\n\ntype NodeKeyOfArrays<N extends t.Node> = {\n [P in string & keyof N]-?: N[P] extends (t.Node | null)[] ? P : never;\n}[string & keyof N];\n\nexport function unshiftContainer<\n N extends t.Node,\n K extends NodeKeyOfArrays<N>,\n Nodes extends NodeOrNodeList<NodeListType<N, K>>,\n>(this: NodePath<N>, listKey: K, nodes: Nodes): NodePaths<Nodes> {\n _assertUnremoved.call(this);\n\n const verifiedNodes = _verifyNodeList.call(this, nodes);\n\n // get the first path and insert our nodes before it, if it doesn't exist then it\n // doesn't matter, our nodes will be inserted anyway\n const container = (this.node as N)[listKey] as t.Node[];\n const path = NodePath.get({\n parentPath: this,\n parent: this.node,\n container,\n listKey,\n key: 0,\n }).setContext(this.context);\n\n return _containerInsertBefore.call(path, verifiedNodes) as NodePaths<Nodes>;\n}\n\nexport function pushContainer<\n N extends t.Node,\n K extends NodeKeyOfArrays<N>,\n Nodes extends NodeOrNodeList<NodeListType<N, K>>,\n>(this: NodePath<N>, listKey: K, nodes: Nodes): NodePaths<Nodes> {\n _assertUnremoved.call(this);\n\n const verifiedNodes = _verifyNodeList.call(this, nodes);\n\n // get an invisible path that represents the last node + 1 and replace it with our\n // nodes, effectively inlining it\n\n const container = (this.node as N)[listKey] as t.Node[];\n const path = NodePath.get({\n parentPath: this,\n parent: this.node,\n container,\n listKey,\n key: container.length,\n }).setContext(this.context);\n\n return path.replaceWithMultiple(verifiedNodes) as NodePaths<Nodes>;\n}\n\nimport PathHoister from \"./lib/hoister.ts\" with { if: \"!process.env.BABEL_8_BREAKING && !USE_ESM\" };\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n /**\n * Hoist the current node to the highest scope possible and return a UID\n * referencing it.\n */\n // eslint-disable-next-line no-restricted-globals\n exports.hoist = function hoist<N extends t.Node>(\n this: NodePath<N>,\n scope: Scope = this.scope,\n ) {\n const hoister = new PathHoister<N>(this, scope);\n return hoister.run();\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,EAAA,GAAAJ,OAAA;AAmZA,IAAAK,QAAA,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