botversion-sdk 2.2.2 → 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} +55 -9
- 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 -2719
- /package/{bin → scanner-sdk/bin}/scan-frontend.js +0 -0
- /package/{client.js → scanner-sdk/client.js} +0 -0
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.SHOULD_STOP = exports.SHOULD_SKIP = exports.REMOVED = void 0;
|
|
7
|
+
var virtualTypes = require("./lib/virtual-types.js");
|
|
8
|
+
var _debug = require("debug");
|
|
9
|
+
var _index = require("../index.js");
|
|
10
|
+
var _index2 = require("../scope/index.js");
|
|
11
|
+
var _t = require("@babel/types");
|
|
12
|
+
var t = _t;
|
|
13
|
+
var cache = require("../cache.js");
|
|
14
|
+
var _generator = require("@babel/generator");
|
|
15
|
+
var NodePath_ancestry = require("./ancestry.js");
|
|
16
|
+
var NodePath_inference = require("./inference/index.js");
|
|
17
|
+
var NodePath_replacement = require("./replacement.js");
|
|
18
|
+
var NodePath_evaluation = require("./evaluation.js");
|
|
19
|
+
var NodePath_conversion = require("./conversion.js");
|
|
20
|
+
var NodePath_introspection = require("./introspection.js");
|
|
21
|
+
var _context = require("./context.js");
|
|
22
|
+
var NodePath_context = _context;
|
|
23
|
+
var NodePath_removal = require("./removal.js");
|
|
24
|
+
var NodePath_modification = require("./modification.js");
|
|
25
|
+
var NodePath_family = require("./family.js");
|
|
26
|
+
var NodePath_comments = require("./comments.js");
|
|
27
|
+
var NodePath_virtual_types_validator = require("./lib/virtual-types-validator.js");
|
|
28
|
+
const {
|
|
29
|
+
validate
|
|
30
|
+
} = _t;
|
|
31
|
+
const debug = _debug("babel");
|
|
32
|
+
const REMOVED = exports.REMOVED = 1 << 0;
|
|
33
|
+
const SHOULD_STOP = exports.SHOULD_STOP = 1 << 1;
|
|
34
|
+
const SHOULD_SKIP = exports.SHOULD_SKIP = 1 << 2;
|
|
35
|
+
const NodePath_Final = exports.default = class NodePath {
|
|
36
|
+
constructor(hub, parent) {
|
|
37
|
+
this.contexts = [];
|
|
38
|
+
this.state = null;
|
|
39
|
+
this._traverseFlags = 0;
|
|
40
|
+
this.skipKeys = null;
|
|
41
|
+
this.parentPath = null;
|
|
42
|
+
this.container = null;
|
|
43
|
+
this.listKey = null;
|
|
44
|
+
this.key = null;
|
|
45
|
+
this.node = null;
|
|
46
|
+
this.type = null;
|
|
47
|
+
this._store = null;
|
|
48
|
+
this.parent = parent;
|
|
49
|
+
this.hub = hub;
|
|
50
|
+
this.data = null;
|
|
51
|
+
this.context = null;
|
|
52
|
+
this.scope = null;
|
|
53
|
+
}
|
|
54
|
+
get removed() {
|
|
55
|
+
return (this._traverseFlags & 1) > 0;
|
|
56
|
+
}
|
|
57
|
+
set removed(v) {
|
|
58
|
+
if (v) this._traverseFlags |= 1;else this._traverseFlags &= -2;
|
|
59
|
+
}
|
|
60
|
+
get shouldStop() {
|
|
61
|
+
return (this._traverseFlags & 2) > 0;
|
|
62
|
+
}
|
|
63
|
+
set shouldStop(v) {
|
|
64
|
+
if (v) this._traverseFlags |= 2;else this._traverseFlags &= -3;
|
|
65
|
+
}
|
|
66
|
+
get shouldSkip() {
|
|
67
|
+
return (this._traverseFlags & 4) > 0;
|
|
68
|
+
}
|
|
69
|
+
set shouldSkip(v) {
|
|
70
|
+
if (v) this._traverseFlags |= 4;else this._traverseFlags &= -5;
|
|
71
|
+
}
|
|
72
|
+
static get({
|
|
73
|
+
hub,
|
|
74
|
+
parentPath,
|
|
75
|
+
parent,
|
|
76
|
+
container,
|
|
77
|
+
listKey,
|
|
78
|
+
key
|
|
79
|
+
}) {
|
|
80
|
+
if (!hub && parentPath) {
|
|
81
|
+
hub = parentPath.hub;
|
|
82
|
+
}
|
|
83
|
+
if (!parent) {
|
|
84
|
+
throw new Error("To get a node path the parent needs to exist");
|
|
85
|
+
}
|
|
86
|
+
const targetNode = container[key];
|
|
87
|
+
const paths = cache.getOrCreateCachedPaths(parent, parentPath);
|
|
88
|
+
let path = paths.get(targetNode);
|
|
89
|
+
if (!path) {
|
|
90
|
+
path = new NodePath(hub, parent);
|
|
91
|
+
if (targetNode) paths.set(targetNode, path);
|
|
92
|
+
}
|
|
93
|
+
_context.setup.call(path, parentPath, container, listKey, key);
|
|
94
|
+
return path;
|
|
95
|
+
}
|
|
96
|
+
getScope(scope) {
|
|
97
|
+
return this.isScope() ? new _index2.default(this) : scope;
|
|
98
|
+
}
|
|
99
|
+
setData(key, val) {
|
|
100
|
+
if (this.data == null) {
|
|
101
|
+
this.data = Object.create(null);
|
|
102
|
+
}
|
|
103
|
+
return this.data[key] = val;
|
|
104
|
+
}
|
|
105
|
+
getData(key, def) {
|
|
106
|
+
if (this.data == null) {
|
|
107
|
+
this.data = Object.create(null);
|
|
108
|
+
}
|
|
109
|
+
let val = this.data[key];
|
|
110
|
+
if (val === undefined && def !== undefined) val = this.data[key] = def;
|
|
111
|
+
return val;
|
|
112
|
+
}
|
|
113
|
+
hasNode() {
|
|
114
|
+
return this.node != null;
|
|
115
|
+
}
|
|
116
|
+
buildCodeFrameError(msg, Error = SyntaxError) {
|
|
117
|
+
return this.hub.buildError(this.node, msg, Error);
|
|
118
|
+
}
|
|
119
|
+
traverse(visitor, state) {
|
|
120
|
+
(0, _index.default)(this.node, visitor, this.scope, state, this);
|
|
121
|
+
}
|
|
122
|
+
set(key, node) {
|
|
123
|
+
validate(this.node, key, node);
|
|
124
|
+
this.node[key] = node;
|
|
125
|
+
}
|
|
126
|
+
getPathLocation() {
|
|
127
|
+
const parts = [];
|
|
128
|
+
let path = this;
|
|
129
|
+
do {
|
|
130
|
+
let key = path.key;
|
|
131
|
+
if (path.inList) key = `${path.listKey}[${key}]`;
|
|
132
|
+
parts.unshift(key);
|
|
133
|
+
} while (path = path.parentPath);
|
|
134
|
+
return parts.join(".");
|
|
135
|
+
}
|
|
136
|
+
debug(message) {
|
|
137
|
+
if (!debug.enabled) return;
|
|
138
|
+
debug(`${this.getPathLocation()} ${this.type}: ${message}`);
|
|
139
|
+
}
|
|
140
|
+
toString() {
|
|
141
|
+
return (0, _generator.default)(this.node).code;
|
|
142
|
+
}
|
|
143
|
+
get inList() {
|
|
144
|
+
return !!this.listKey;
|
|
145
|
+
}
|
|
146
|
+
set inList(inList) {
|
|
147
|
+
if (!inList) {
|
|
148
|
+
this.listKey = null;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
get parentKey() {
|
|
152
|
+
return this.listKey || this.key;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
const methods = {
|
|
156
|
+
findParent: NodePath_ancestry.findParent,
|
|
157
|
+
find: NodePath_ancestry.find,
|
|
158
|
+
getFunctionParent: NodePath_ancestry.getFunctionParent,
|
|
159
|
+
getStatementParent: NodePath_ancestry.getStatementParent,
|
|
160
|
+
getEarliestCommonAncestorFrom: NodePath_ancestry.getEarliestCommonAncestorFrom,
|
|
161
|
+
getDeepestCommonAncestorFrom: NodePath_ancestry.getDeepestCommonAncestorFrom,
|
|
162
|
+
getAncestry: NodePath_ancestry.getAncestry,
|
|
163
|
+
isAncestor: NodePath_ancestry.isAncestor,
|
|
164
|
+
isDescendant: NodePath_ancestry.isDescendant,
|
|
165
|
+
inType: NodePath_ancestry.inType,
|
|
166
|
+
getTypeAnnotation: NodePath_inference.getTypeAnnotation,
|
|
167
|
+
isBaseType: NodePath_inference.isBaseType,
|
|
168
|
+
couldBeBaseType: NodePath_inference.couldBeBaseType,
|
|
169
|
+
baseTypeStrictlyMatches: NodePath_inference.baseTypeStrictlyMatches,
|
|
170
|
+
isGenericType: NodePath_inference.isGenericType,
|
|
171
|
+
replaceWithMultiple: NodePath_replacement.replaceWithMultiple,
|
|
172
|
+
replaceWithSourceString: NodePath_replacement.replaceWithSourceString,
|
|
173
|
+
replaceWith: NodePath_replacement.replaceWith,
|
|
174
|
+
replaceExpressionWithStatements: NodePath_replacement.replaceExpressionWithStatements,
|
|
175
|
+
replaceInline: NodePath_replacement.replaceInline,
|
|
176
|
+
evaluateTruthy: NodePath_evaluation.evaluateTruthy,
|
|
177
|
+
evaluate: NodePath_evaluation.evaluate,
|
|
178
|
+
toComputedKey: NodePath_conversion.toComputedKey,
|
|
179
|
+
ensureBlock: NodePath_conversion.ensureBlock,
|
|
180
|
+
unwrapFunctionEnvironment: NodePath_conversion.unwrapFunctionEnvironment,
|
|
181
|
+
arrowFunctionToExpression: NodePath_conversion.arrowFunctionToExpression,
|
|
182
|
+
splitExportDeclaration: NodePath_conversion.splitExportDeclaration,
|
|
183
|
+
ensureFunctionName: NodePath_conversion.ensureFunctionName,
|
|
184
|
+
matchesPattern: NodePath_introspection.matchesPattern,
|
|
185
|
+
isStatic: NodePath_introspection.isStatic,
|
|
186
|
+
isNodeType: NodePath_introspection.isNodeType,
|
|
187
|
+
canHaveVariableDeclarationOrExpression: NodePath_introspection.canHaveVariableDeclarationOrExpression,
|
|
188
|
+
canSwapBetweenExpressionAndStatement: NodePath_introspection.canSwapBetweenExpressionAndStatement,
|
|
189
|
+
isCompletionRecord: NodePath_introspection.isCompletionRecord,
|
|
190
|
+
isStatementOrBlock: NodePath_introspection.isStatementOrBlock,
|
|
191
|
+
referencesImport: NodePath_introspection.referencesImport,
|
|
192
|
+
getSource: NodePath_introspection.getSource,
|
|
193
|
+
willIMaybeExecuteBefore: NodePath_introspection.willIMaybeExecuteBefore,
|
|
194
|
+
_guessExecutionStatusRelativeTo: NodePath_introspection._guessExecutionStatusRelativeTo,
|
|
195
|
+
resolve: NodePath_introspection.resolve,
|
|
196
|
+
isConstantExpression: NodePath_introspection.isConstantExpression,
|
|
197
|
+
isInStrictMode: NodePath_introspection.isInStrictMode,
|
|
198
|
+
isDenylisted: NodePath_context.isDenylisted,
|
|
199
|
+
visit: NodePath_context.visit,
|
|
200
|
+
skip: NodePath_context.skip,
|
|
201
|
+
skipKey: NodePath_context.skipKey,
|
|
202
|
+
stop: NodePath_context.stop,
|
|
203
|
+
setContext: NodePath_context.setContext,
|
|
204
|
+
requeue: NodePath_context.requeue,
|
|
205
|
+
requeueComputedKeyAndDecorators: NodePath_context.requeueComputedKeyAndDecorators,
|
|
206
|
+
remove: NodePath_removal.remove,
|
|
207
|
+
insertBefore: NodePath_modification.insertBefore,
|
|
208
|
+
insertAfter: NodePath_modification.insertAfter,
|
|
209
|
+
unshiftContainer: NodePath_modification.unshiftContainer,
|
|
210
|
+
pushContainer: NodePath_modification.pushContainer,
|
|
211
|
+
getOpposite: NodePath_family.getOpposite,
|
|
212
|
+
getCompletionRecords: NodePath_family.getCompletionRecords,
|
|
213
|
+
getSibling: NodePath_family.getSibling,
|
|
214
|
+
getPrevSibling: NodePath_family.getPrevSibling,
|
|
215
|
+
getNextSibling: NodePath_family.getNextSibling,
|
|
216
|
+
getAllNextSiblings: NodePath_family.getAllNextSiblings,
|
|
217
|
+
getAllPrevSiblings: NodePath_family.getAllPrevSiblings,
|
|
218
|
+
get: NodePath_family.get,
|
|
219
|
+
getAssignmentIdentifiers: NodePath_family.getAssignmentIdentifiers,
|
|
220
|
+
getBindingIdentifiers: NodePath_family.getBindingIdentifiers,
|
|
221
|
+
getOuterBindingIdentifiers: NodePath_family.getOuterBindingIdentifiers,
|
|
222
|
+
getBindingIdentifierPaths: NodePath_family.getBindingIdentifierPaths,
|
|
223
|
+
getOuterBindingIdentifierPaths: NodePath_family.getOuterBindingIdentifierPaths,
|
|
224
|
+
shareCommentsWithSiblings: NodePath_comments.shareCommentsWithSiblings,
|
|
225
|
+
addComment: NodePath_comments.addComment,
|
|
226
|
+
addComments: NodePath_comments.addComments
|
|
227
|
+
};
|
|
228
|
+
Object.assign(NodePath_Final.prototype, methods);
|
|
229
|
+
NodePath_Final.prototype.arrowFunctionToShadowed = NodePath_conversion[String("arrowFunctionToShadowed")];
|
|
230
|
+
Object.assign(NodePath_Final.prototype, {
|
|
231
|
+
has: NodePath_introspection[String("has")],
|
|
232
|
+
is: NodePath_introspection[String("is")],
|
|
233
|
+
isnt: NodePath_introspection[String("isnt")],
|
|
234
|
+
equals: NodePath_introspection[String("equals")],
|
|
235
|
+
hoist: NodePath_modification[String("hoist")],
|
|
236
|
+
updateSiblingKeys: NodePath_modification.updateSiblingKeys,
|
|
237
|
+
call: NodePath_context.call,
|
|
238
|
+
isBlacklisted: NodePath_context[String("isBlacklisted")],
|
|
239
|
+
setScope: NodePath_context.setScope,
|
|
240
|
+
resync: NodePath_context.resync,
|
|
241
|
+
popContext: NodePath_context.popContext,
|
|
242
|
+
pushContext: NodePath_context.pushContext,
|
|
243
|
+
setup: NodePath_context.setup,
|
|
244
|
+
setKey: NodePath_context.setKey
|
|
245
|
+
});
|
|
246
|
+
NodePath_Final.prototype._guessExecutionStatusRelativeToDifferentFunctions = NodePath_introspection._guessExecutionStatusRelativeTo;
|
|
247
|
+
NodePath_Final.prototype._guessExecutionStatusRelativeToDifferentFunctions = NodePath_introspection._guessExecutionStatusRelativeTo;
|
|
248
|
+
Object.assign(NodePath_Final.prototype, {
|
|
249
|
+
_getTypeAnnotation: NodePath_inference._getTypeAnnotation,
|
|
250
|
+
_replaceWith: NodePath_replacement._replaceWith,
|
|
251
|
+
_resolve: NodePath_introspection._resolve,
|
|
252
|
+
_call: NodePath_context._call,
|
|
253
|
+
_resyncParent: NodePath_context._resyncParent,
|
|
254
|
+
_resyncKey: NodePath_context._resyncKey,
|
|
255
|
+
_resyncList: NodePath_context._resyncList,
|
|
256
|
+
_resyncRemoved: NodePath_context._resyncRemoved,
|
|
257
|
+
_getQueueContexts: NodePath_context._getQueueContexts,
|
|
258
|
+
_removeFromScope: NodePath_removal._removeFromScope,
|
|
259
|
+
_callRemovalHooks: NodePath_removal._callRemovalHooks,
|
|
260
|
+
_remove: NodePath_removal._remove,
|
|
261
|
+
_markRemoved: NodePath_removal._markRemoved,
|
|
262
|
+
_assertUnremoved: NodePath_removal._assertUnremoved,
|
|
263
|
+
_containerInsert: NodePath_modification._containerInsert,
|
|
264
|
+
_containerInsertBefore: NodePath_modification._containerInsertBefore,
|
|
265
|
+
_containerInsertAfter: NodePath_modification._containerInsertAfter,
|
|
266
|
+
_verifyNodeList: NodePath_modification._verifyNodeList,
|
|
267
|
+
_getKey: NodePath_family._getKey,
|
|
268
|
+
_getPattern: NodePath_family._getPattern
|
|
269
|
+
});
|
|
270
|
+
for (const type of t.TYPES) {
|
|
271
|
+
const typeKey = `is${type}`;
|
|
272
|
+
const fn = t[typeKey];
|
|
273
|
+
NodePath_Final.prototype[typeKey] = function (opts) {
|
|
274
|
+
return fn(this.node, opts);
|
|
275
|
+
};
|
|
276
|
+
NodePath_Final.prototype[`assert${type}`] = function (opts) {
|
|
277
|
+
if (!fn(this.node, opts)) {
|
|
278
|
+
throw new TypeError(`Expected node path of type ${type}`);
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
Object.assign(NodePath_Final.prototype, NodePath_virtual_types_validator);
|
|
283
|
+
for (const type of Object.keys(virtualTypes)) {
|
|
284
|
+
if (type.startsWith("_")) continue;
|
|
285
|
+
if (!t.TYPES.includes(type)) t.TYPES.push(type);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["virtualTypes","require","_debug","_index","_index2","_t","t","cache","_generator","NodePath_ancestry","NodePath_inference","NodePath_replacement","NodePath_evaluation","NodePath_conversion","NodePath_introspection","_context","NodePath_context","NodePath_removal","NodePath_modification","NodePath_family","NodePath_comments","NodePath_virtual_types_validator","validate","debug","buildDebug","REMOVED","exports","SHOULD_STOP","SHOULD_SKIP","NodePath_Final","default","NodePath","constructor","hub","parent","contexts","state","_traverseFlags","skipKeys","parentPath","container","listKey","key","node","type","_store","data","context","scope","removed","v","shouldStop","shouldSkip","get","Error","targetNode","paths","getOrCreateCachedPaths","path","set","setup","call","getScope","isScope","Scope","setData","val","Object","create","getData","def","undefined","hasNode","buildCodeFrameError","msg","SyntaxError","buildError","traverse","visitor","getPathLocation","parts","inList","unshift","join","message","enabled","toString","generator","code","parentKey","methods","findParent","find","getFunctionParent","getStatementParent","getEarliestCommonAncestorFrom","getDeepestCommonAncestorFrom","getAncestry","isAncestor","isDescendant","inType","getTypeAnnotation","isBaseType","couldBeBaseType","baseTypeStrictlyMatches","isGenericType","replaceWithMultiple","replaceWithSourceString","replaceWith","replaceExpressionWithStatements","replaceInline","evaluateTruthy","evaluate","toComputedKey","ensureBlock","unwrapFunctionEnvironment","arrowFunctionToExpression","splitExportDeclaration","ensureFunctionName","matchesPattern","isStatic","isNodeType","canHaveVariableDeclarationOrExpression","canSwapBetweenExpressionAndStatement","isCompletionRecord","isStatementOrBlock","referencesImport","getSource","willIMaybeExecuteBefore","_guessExecutionStatusRelativeTo","resolve","isConstantExpression","isInStrictMode","isDenylisted","visit","skip","skipKey","stop","setContext","requeue","requeueComputedKeyAndDecorators","remove","insertBefore","insertAfter","unshiftContainer","pushContainer","getOpposite","getCompletionRecords","getSibling","getPrevSibling","getNextSibling","getAllNextSiblings","getAllPrevSiblings","getAssignmentIdentifiers","getBindingIdentifiers","getOuterBindingIdentifiers","getBindingIdentifierPaths","getOuterBindingIdentifierPaths","shareCommentsWithSiblings","addComment","addComments","assign","prototype","arrowFunctionToShadowed","String","has","is","isnt","equals","hoist","updateSiblingKeys","isBlacklisted","setScope","resync","popContext","pushContext","setKey","_guessExecutionStatusRelativeToDifferentFunctions","_getTypeAnnotation","_replaceWith","_resolve","_call","_resyncParent","_resyncKey","_resyncList","_resyncRemoved","_getQueueContexts","_removeFromScope","_callRemovalHooks","_remove","_markRemoved","_assertUnremoved","_containerInsert","_containerInsertBefore","_containerInsertAfter","_verifyNodeList","_getKey","_getPattern","TYPES","typeKey","fn","opts","TypeError","keys","startsWith","includes","push"],"sources":["../../src/path/index.ts"],"sourcesContent":["import type { HubInterface } from \"../hub.ts\";\nimport type TraversalContext from \"../context.ts\";\nimport type { ExplodedTraverseOptions } from \"../index.ts\";\nimport * as virtualTypes from \"./lib/virtual-types.ts\";\nimport buildDebug from \"debug\";\nimport traverse from \"../index.ts\";\nimport type { Visitor } from \"../types.ts\";\nimport Scope from \"../scope/index.ts\";\nimport { validate } from \"@babel/types\";\nimport * as t from \"@babel/types\";\nimport * as cache from \"../cache.ts\";\nimport generator from \"@babel/generator\";\n\n// NodePath is split across many files.\nimport * as NodePath_ancestry from \"./ancestry.ts\";\nimport * as NodePath_inference from \"./inference/index.ts\";\nimport * as NodePath_replacement from \"./replacement.ts\";\nimport * as NodePath_evaluation from \"./evaluation.ts\";\nimport * as NodePath_conversion from \"./conversion.ts\";\nimport * as NodePath_introspection from \"./introspection.ts\";\nimport * as NodePath_context from \"./context.ts\";\nimport * as NodePath_removal from \"./removal.ts\";\nimport * as NodePath_modification from \"./modification.ts\";\nimport * as NodePath_family from \"./family.ts\";\nimport * as NodePath_comments from \"./comments.ts\";\nimport * as NodePath_virtual_types_validator from \"./lib/virtual-types-validator.ts\";\nimport type { NodePathAssertions } from \"./generated/asserts.ts\";\nimport type { NodePathValidators } from \"./generated/validators.ts\";\nimport { setup } from \"./context.ts\";\n\nconst debug = buildDebug(\"babel\");\n\nexport const REMOVED = 1 << 0;\nexport const SHOULD_STOP = 1 << 1;\nexport const SHOULD_SKIP = 1 << 2;\n\ndeclare const bit: import(\"../../../../scripts/babel-plugin-bit-decorator/types.d.ts\").BitDecorator<\n NodePath_Final<t.Node>\n>;\n\nexport type NodePaths<T extends t.Node | t.Node[]> = T extends t.Node[]\n ? { [K in keyof T]: NodePath_Final<Extract<T[K], t.Node>> }\n : T extends t.Node\n ? [NodePath_Final<T>]\n : never;\n\nexport type NodeListType<N, K extends keyof N> = N[K] extends (infer P extends\n t.Node)[]\n ? P\n : never;\n\nexport type NodeOrNodeList<T extends t.Node> = T | NodeList<T>;\n\nexport type NodeList<T extends t.Node> = T[] | [T, ...T[]];\n\nconst NodePath_Final = class NodePath {\n constructor(hub: HubInterface | undefined, parent: t.Node) {\n this.parent = parent;\n this.hub = hub!;\n this.data = null;\n\n // @ts-expect-error Set it in setContext\n this.context = null;\n // @ts-expect-error Set it in setContext\n this.scope = null;\n }\n\n declare parent: t.Node;\n declare hub: HubInterface;\n declare data: Record<string | symbol, unknown> | null;\n // TraversalContext is configured by setContext\n declare context: TraversalContext;\n declare scope: Scope;\n\n contexts: TraversalContext[] = [];\n state: any = null;\n declare opts: ExplodedTraverseOptions;\n\n @bit.storage _traverseFlags: number = 0;\n @bit(REMOVED) accessor removed = false;\n @bit(SHOULD_STOP) accessor shouldStop = false;\n @bit(SHOULD_SKIP) accessor shouldSkip = false;\n\n skipKeys: Record<string, boolean> | null = null;\n parentPath: NodePath_Final | null = null;\n container: t.Node | t.Node[] | null = null;\n listKey: string | null | undefined = null;\n key: string | number | null = null;\n node: t.Node | null = null;\n type: t.Node[\"type\"] | null = null;\n _store: Map<t.Node, NodePath_Final> | null = null;\n\n static get({\n hub,\n parentPath,\n parent,\n container,\n listKey,\n key,\n }: {\n hub?: HubInterface;\n parentPath: NodePath_Final | null | undefined;\n parent: t.Node;\n container: t.Node | t.Node[];\n listKey?: string | null;\n key: string | number;\n }): NodePath_Final {\n if (!hub && parentPath) {\n hub = parentPath.hub;\n }\n\n if (!parent) {\n throw new Error(\"To get a node path the parent needs to exist\");\n }\n\n const targetNode =\n // @ts-expect-error key must present in container\n container[key];\n\n const paths = cache.getOrCreateCachedPaths(parent, parentPath);\n\n let path = paths.get(targetNode);\n if (!path) {\n path = new NodePath(hub, parent) as NodePath_Final;\n if (targetNode) paths.set(targetNode, path);\n }\n\n setup.call(path, parentPath, container, listKey, key);\n\n return path;\n }\n\n getScope(this: NodePath_Final, scope: Scope): Scope {\n return this.isScope() ? new Scope(this) : scope;\n }\n\n setData<T>(key: string | symbol, val: T): T {\n if (this.data == null) {\n this.data = Object.create(null);\n }\n return (this.data![key] = val);\n }\n\n getData(key: string | symbol, def?: any): any {\n if (this.data == null) {\n this.data = Object.create(null);\n }\n let val = this.data![key];\n if (val === undefined && def !== undefined) val = this.data![key] = def;\n return val;\n }\n\n hasNode(): boolean {\n return this.node != null;\n }\n\n buildCodeFrameError(\n msg: string,\n Error: new () => Error = SyntaxError,\n ): Error {\n return this.hub.buildError(this.node!, msg, Error);\n }\n\n traverse<T>(this: NodePath_Final, visitor: Visitor<T>, state: T): void;\n traverse(this: NodePath_Final, visitor: Visitor): void;\n traverse(this: NodePath_Final, visitor: any, state?: any) {\n traverse(this.node, visitor, this.scope, state, this);\n }\n\n set(key: string, node: any) {\n validate(this.node, key, node);\n // @ts-expect-error key must present in this.node\n this.node[key] = node;\n }\n\n getPathLocation(this: NodePath_Final): string {\n const parts = [];\n let path: NodePath_Final = this;\n do {\n let key = path.key;\n if (path.inList) key = `${path.listKey}[${key}]`;\n parts.unshift(key);\n } while ((path = path.parentPath));\n return parts.join(\".\");\n }\n\n debug(this: NodePath_Final, message: string) {\n if (!debug.enabled) return;\n debug(`${this.getPathLocation()} ${this.type}: ${message}`);\n }\n\n toString() {\n return generator(this.node!).code;\n }\n\n get inList() {\n return !!this.listKey;\n }\n\n set inList(inList) {\n if (!inList) {\n this.listKey = null;\n }\n // ignore inList = true as it should depend on `listKey`\n }\n\n get parentKey(): string {\n return (this.listKey || this.key) as string;\n }\n};\n\nconst methods = {\n // NodePath_ancestry\n findParent: NodePath_ancestry.findParent,\n find: NodePath_ancestry.find,\n getFunctionParent: NodePath_ancestry.getFunctionParent,\n getStatementParent: NodePath_ancestry.getStatementParent,\n getEarliestCommonAncestorFrom:\n NodePath_ancestry.getEarliestCommonAncestorFrom,\n getDeepestCommonAncestorFrom: NodePath_ancestry.getDeepestCommonAncestorFrom,\n getAncestry: NodePath_ancestry.getAncestry,\n isAncestor: NodePath_ancestry.isAncestor,\n isDescendant: NodePath_ancestry.isDescendant,\n inType: NodePath_ancestry.inType,\n\n // NodePath_inference\n getTypeAnnotation: NodePath_inference.getTypeAnnotation,\n isBaseType: NodePath_inference.isBaseType,\n couldBeBaseType: NodePath_inference.couldBeBaseType,\n baseTypeStrictlyMatches: NodePath_inference.baseTypeStrictlyMatches,\n isGenericType: NodePath_inference.isGenericType,\n\n // NodePath_replacement\n replaceWithMultiple: NodePath_replacement.replaceWithMultiple,\n replaceWithSourceString: NodePath_replacement.replaceWithSourceString,\n replaceWith: NodePath_replacement.replaceWith,\n replaceExpressionWithStatements:\n NodePath_replacement.replaceExpressionWithStatements,\n replaceInline: NodePath_replacement.replaceInline,\n\n // NodePath_evaluation\n evaluateTruthy: NodePath_evaluation.evaluateTruthy,\n evaluate: NodePath_evaluation.evaluate,\n\n // NodePath_conversion\n toComputedKey: NodePath_conversion.toComputedKey,\n ensureBlock: NodePath_conversion.ensureBlock,\n unwrapFunctionEnvironment: NodePath_conversion.unwrapFunctionEnvironment,\n arrowFunctionToExpression: NodePath_conversion.arrowFunctionToExpression,\n splitExportDeclaration: NodePath_conversion.splitExportDeclaration,\n ensureFunctionName: NodePath_conversion.ensureFunctionName,\n\n // NodePath_introspection\n matchesPattern: NodePath_introspection.matchesPattern,\n isStatic: NodePath_introspection.isStatic,\n isNodeType: NodePath_introspection.isNodeType,\n canHaveVariableDeclarationOrExpression:\n NodePath_introspection.canHaveVariableDeclarationOrExpression,\n canSwapBetweenExpressionAndStatement:\n NodePath_introspection.canSwapBetweenExpressionAndStatement,\n isCompletionRecord: NodePath_introspection.isCompletionRecord,\n isStatementOrBlock: NodePath_introspection.isStatementOrBlock,\n referencesImport: NodePath_introspection.referencesImport,\n getSource: NodePath_introspection.getSource,\n willIMaybeExecuteBefore: NodePath_introspection.willIMaybeExecuteBefore,\n _guessExecutionStatusRelativeTo:\n NodePath_introspection._guessExecutionStatusRelativeTo,\n resolve: NodePath_introspection.resolve,\n isConstantExpression: NodePath_introspection.isConstantExpression,\n isInStrictMode: NodePath_introspection.isInStrictMode,\n\n // NodePath_context\n isDenylisted: NodePath_context.isDenylisted,\n visit: NodePath_context.visit,\n skip: NodePath_context.skip,\n skipKey: NodePath_context.skipKey,\n stop: NodePath_context.stop,\n setContext: NodePath_context.setContext,\n requeue: NodePath_context.requeue,\n requeueComputedKeyAndDecorators:\n NodePath_context.requeueComputedKeyAndDecorators,\n\n // NodePath_removal\n remove: NodePath_removal.remove,\n\n // NodePath_modification\n insertBefore: NodePath_modification.insertBefore,\n insertAfter: NodePath_modification.insertAfter,\n unshiftContainer: NodePath_modification.unshiftContainer,\n pushContainer: NodePath_modification.pushContainer,\n\n // NodePath_family\n getOpposite: NodePath_family.getOpposite,\n getCompletionRecords: NodePath_family.getCompletionRecords,\n getSibling: NodePath_family.getSibling,\n getPrevSibling: NodePath_family.getPrevSibling,\n getNextSibling: NodePath_family.getNextSibling,\n getAllNextSiblings: NodePath_family.getAllNextSiblings,\n getAllPrevSiblings: NodePath_family.getAllPrevSiblings,\n get: NodePath_family.get,\n getAssignmentIdentifiers: NodePath_family.getAssignmentIdentifiers,\n getBindingIdentifiers: NodePath_family.getBindingIdentifiers,\n getOuterBindingIdentifiers: NodePath_family.getOuterBindingIdentifiers,\n getBindingIdentifierPaths: NodePath_family.getBindingIdentifierPaths,\n getOuterBindingIdentifierPaths:\n NodePath_family.getOuterBindingIdentifierPaths,\n\n // NodePath_comments\n shareCommentsWithSiblings: NodePath_comments.shareCommentsWithSiblings,\n addComment: NodePath_comments.addComment,\n addComments: NodePath_comments.addComments,\n};\n\nObject.assign(NodePath_Final.prototype, methods);\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n // String(x) is workaround for rollup\n\n // @ts-expect-error babel 7 only\n NodePath_Final.prototype.arrowFunctionToShadowed =\n // @ts-expect-error babel 7 only\n NodePath_conversion[String(\"arrowFunctionToShadowed\")];\n\n Object.assign(NodePath_Final.prototype, {\n // @ts-expect-error Babel 7 only\n has: NodePath_introspection[String(\"has\")],\n // @ts-expect-error Babel 7 only\n is: NodePath_introspection[String(\"is\")],\n // @ts-expect-error Babel 7 only\n isnt: NodePath_introspection[String(\"isnt\")],\n // @ts-expect-error Babel 7 only\n equals: NodePath_introspection[String(\"equals\")],\n // @ts-expect-error Babel 7 only\n hoist: NodePath_modification[String(\"hoist\")],\n updateSiblingKeys: NodePath_modification.updateSiblingKeys,\n call: NodePath_context.call,\n // @ts-expect-error Babel 7 only\n isBlacklisted: NodePath_context[String(\"isBlacklisted\")],\n setScope: NodePath_context.setScope,\n resync: NodePath_context.resync,\n popContext: NodePath_context.popContext,\n pushContext: NodePath_context.pushContext,\n setup: NodePath_context.setup,\n setKey: NodePath_context.setKey,\n });\n}\n\nif (!process.env.BABEL_8_BREAKING) {\n // @ts-expect-error The original _guessExecutionStatusRelativeToDifferentFunctions only worked for paths in\n // different functions, but _guessExecutionStatusRelativeTo works as a replacement in those cases.\n NodePath_Final.prototype._guessExecutionStatusRelativeToDifferentFunctions =\n NodePath_introspection._guessExecutionStatusRelativeTo;\n\n // @ts-expect-error The original _guessExecutionStatusRelativeToDifferentFunctions only worked for paths in\n // different functions, but _guessExecutionStatusRelativeTo works as a replacement in those cases.\n NodePath_Final.prototype._guessExecutionStatusRelativeToDifferentFunctions =\n NodePath_introspection._guessExecutionStatusRelativeTo;\n\n Object.assign(NodePath_Final.prototype, {\n // NodePath_inference\n _getTypeAnnotation: NodePath_inference._getTypeAnnotation,\n\n // NodePath_replacement\n _replaceWith: NodePath_replacement._replaceWith,\n\n // NodePath_introspection\n _resolve: NodePath_introspection._resolve,\n\n // NodePath_context\n _call: NodePath_context._call,\n _resyncParent: NodePath_context._resyncParent,\n _resyncKey: NodePath_context._resyncKey,\n _resyncList: NodePath_context._resyncList,\n _resyncRemoved: NodePath_context._resyncRemoved,\n _getQueueContexts: NodePath_context._getQueueContexts,\n\n // NodePath_removal\n _removeFromScope: NodePath_removal._removeFromScope,\n _callRemovalHooks: NodePath_removal._callRemovalHooks,\n _remove: NodePath_removal._remove,\n _markRemoved: NodePath_removal._markRemoved,\n _assertUnremoved: NodePath_removal._assertUnremoved,\n\n // NodePath_modification\n _containerInsert: NodePath_modification._containerInsert,\n _containerInsertBefore: NodePath_modification._containerInsertBefore,\n _containerInsertAfter: NodePath_modification._containerInsertAfter,\n _verifyNodeList: NodePath_modification._verifyNodeList,\n\n // NodePath_family\n _getKey: NodePath_family._getKey,\n _getPattern: NodePath_family._getPattern,\n });\n}\n\n// we can not use `import { TYPES } from \"@babel/types\"` here\n// because the transformNamedBabelTypesImportToDestructuring plugin in babel.config.js\n// does not offer live bindings for `TYPES`\n// we can change to `import { TYPES }` when we are publishing ES modules only\nfor (const type of t.TYPES) {\n const typeKey = `is${type}`;\n // @ts-expect-error typeKey must present in t\n const fn = t[typeKey];\n // @ts-expect-error augmenting NodePath prototype\n NodePath_Final.prototype[typeKey] = function (opts: any) {\n return fn(this.node, opts);\n };\n\n // @ts-expect-error augmenting NodePath prototype\n NodePath_Final.prototype[`assert${type}`] = function (opts: any) {\n if (!fn(this.node, opts)) {\n throw new TypeError(`Expected node path of type ${type}`);\n }\n };\n}\n\n// Register virtual types validators after base types validators\nObject.assign(NodePath_Final.prototype, NodePath_virtual_types_validator);\n\nfor (const type of Object.keys(virtualTypes) as (keyof typeof virtualTypes)[]) {\n if (type.startsWith(\"_\")) continue;\n if (!t.TYPES.includes(type)) t.TYPES.push(type);\n}\n\ninterface NodePathOverwrites {\n // We need to re-define these predicate and assertion\n // methods here, because we cannot refine `this` in\n // a function declaration.\n // See https://github.com/microsoft/TypeScript/issues/38150\n\n /**\n * NOTE: This assertion doesn't narrow the type on unions of\n * NodePaths, due to https://github.com/microsoft/TypeScript/issues/44212\n *\n * @see ./conversion.ts for implementation.\n */\n ensureBlock(\n this: NodePath_Final,\n ): asserts this is NodePath_Final<\n (\n | t.Loop\n | t.WithStatement\n | t.Function\n | t.LabeledStatement\n | t.CatchClause\n ) & { body: t.BlockStatement }\n >;\n /**\n * @see ./introspection.ts for implementation.\n */\n isStatementOrBlock(\n this: NodePath_Final,\n ): this is NodePath_Final<t.Statement | t.Block>;\n}\n\ntype NodePathMixins = Omit<typeof methods, keyof NodePathOverwrites>;\n\ninterface NodePath<\n N extends t.Node | null,\n T extends t.Node[\"type\"] | null = N extends null\n ? null\n : NonNullable<N>[\"type\"],\n P extends t.Node = NonNullable<t.ParentMaps[NonNullable<T>]>,\n> extends InstanceType<typeof NodePath_Final>,\n NodePathAssertions,\n NodePathValidators,\n NodePathMixins,\n NodePathOverwrites {\n type: T;\n node: N;\n // .parent is only null for File nodes, which are not traversed by @babel/traverse\n // You can technically create a path that contains one, but it's so rare that\n // we can ignore it to avoid having non-null assertions everywhere.\n parent: P;\n parentPath: NodePath_Final<P>;\n}\n\n// This trick is necessary so that\n// NodePath_Final<A | B> is the same as NodePath_Final<A> | NodePath_Final<B>\ntype NodePath_Final<T extends t.Node | null = t.Node> = T extends any\n ? NodePath<T>\n : never;\n\nexport { NodePath_Final as default, type NodePath as NodePath_Internal };\n"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,EAAA,GAAAJ,OAAA;AAAwC,IAAAK,CAAA,GAAAD,EAAA;AAExC,IAAAE,KAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAGA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,kBAAA,GAAAT,OAAA;AACA,IAAAU,oBAAA,GAAAV,OAAA;AACA,IAAAW,mBAAA,GAAAX,OAAA;AACA,IAAAY,mBAAA,GAAAZ,OAAA;AACA,IAAAa,sBAAA,GAAAb,OAAA;AACA,IAAAc,QAAA,GAAAd,OAAA;AAAiD,IAAAe,gBAAA,GAAAD,QAAA;AACjD,IAAAE,gBAAA,GAAAhB,OAAA;AACA,IAAAiB,qBAAA,GAAAjB,OAAA;AACA,IAAAkB,eAAA,GAAAlB,OAAA;AACA,IAAAmB,iBAAA,GAAAnB,OAAA;AACA,IAAAoB,gCAAA,GAAApB,OAAA;AAAqF;EAjB5EqB;AAAQ,IAAAjB,EAAA;AAsBjB,MAAMkB,KAAK,GAAGC,MAAU,CAAC,OAAO,CAAC;AAE1B,MAAMC,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,CAAC,IAAI,CAAC;AACtB,MAAME,WAAW,GAAAD,OAAA,CAAAC,WAAA,GAAG,CAAC,IAAI,CAAC;AAC1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AOJ,KAAK,MAAMzJ,IAAI,IAAItC,CAAC,CAACgM,KAAK,EAAE;EAC1B,MAAMC,OAAO,GAAG,KAAK3J,IAAI,EAAE;EAE3B,MAAM4J,EAAE,GAAGlM,CAAC,CAACiM,OAAO,CAAC;EAErB1K,cAAc,CAACqI,SAAS,CAACqC,OAAO,CAAC,GAAG,UAAUE,IAAS,EAAE;IACvD,OAAOD,EAAE,CAAC,IAAI,CAAC7J,IAAI,EAAE8J,IAAI,CAAC;EAC5B,CAAC;EAGD5K,cAAc,CAACqI,SAAS,CAAC,SAAStH,IAAI,EAAE,CAAC,GAAG,UAAU6J,IAAS,EAAE;IAC/D,IAAI,CAACD,EAAE,CAAC,IAAI,CAAC7J,IAAI,EAAE8J,IAAI,CAAC,EAAE;MACxB,MAAM,IAAIC,SAAS,CAAC,8BAA8B9J,IAAI,EAAE,CAAC;IAC3D;EACF,CAAC;AACH;AAGAuB,MAAM,CAAC8F,MAAM,CAACpI,cAAc,CAACqI,SAAS,EAAE7I,gCAAgC,CAAC;AAEzE,KAAK,MAAMuB,IAAI,IAAIuB,MAAM,CAACwI,IAAI,CAAC3M,YAAY,CAAC,EAAmC;EAC7E,IAAI4C,IAAI,CAACgK,UAAU,CAAC,GAAG,CAAC,EAAE;EAC1B,IAAI,CAACtM,CAAC,CAACgM,KAAK,CAACO,QAAQ,CAACjK,IAAI,CAAC,EAAEtC,CAAC,CAACgM,KAAK,CAACQ,IAAI,CAAClK,IAAI,CAAC;AACjD","ignoreList":[]}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports._getTypeAnnotation = _getTypeAnnotation;
|
|
7
|
+
exports.baseTypeStrictlyMatches = baseTypeStrictlyMatches;
|
|
8
|
+
exports.couldBeBaseType = couldBeBaseType;
|
|
9
|
+
exports.getTypeAnnotation = getTypeAnnotation;
|
|
10
|
+
exports.isBaseType = isBaseType;
|
|
11
|
+
exports.isGenericType = isGenericType;
|
|
12
|
+
var inferers = require("./inferers.js");
|
|
13
|
+
var _t = require("@babel/types");
|
|
14
|
+
const {
|
|
15
|
+
anyTypeAnnotation,
|
|
16
|
+
isAnyTypeAnnotation,
|
|
17
|
+
isArrayTypeAnnotation,
|
|
18
|
+
isBooleanTypeAnnotation,
|
|
19
|
+
isEmptyTypeAnnotation,
|
|
20
|
+
isFlowBaseAnnotation,
|
|
21
|
+
isGenericTypeAnnotation,
|
|
22
|
+
isIdentifier,
|
|
23
|
+
isMixedTypeAnnotation,
|
|
24
|
+
isNumberTypeAnnotation,
|
|
25
|
+
isStringTypeAnnotation,
|
|
26
|
+
isTSArrayType,
|
|
27
|
+
isTSTypeAnnotation,
|
|
28
|
+
isTSTypeReference,
|
|
29
|
+
isTupleTypeAnnotation,
|
|
30
|
+
isTypeAnnotation,
|
|
31
|
+
isUnionTypeAnnotation,
|
|
32
|
+
isVoidTypeAnnotation,
|
|
33
|
+
stringTypeAnnotation,
|
|
34
|
+
voidTypeAnnotation
|
|
35
|
+
} = _t;
|
|
36
|
+
function getTypeAnnotation() {
|
|
37
|
+
let type = this.getData("typeAnnotation");
|
|
38
|
+
if (type != null) {
|
|
39
|
+
return type;
|
|
40
|
+
}
|
|
41
|
+
type = _getTypeAnnotation.call(this) || anyTypeAnnotation();
|
|
42
|
+
if (isTypeAnnotation(type) || isTSTypeAnnotation(type)) {
|
|
43
|
+
type = type.typeAnnotation;
|
|
44
|
+
}
|
|
45
|
+
this.setData("typeAnnotation", type);
|
|
46
|
+
return type;
|
|
47
|
+
}
|
|
48
|
+
const typeAnnotationInferringNodes = new WeakSet();
|
|
49
|
+
function _getTypeAnnotation() {
|
|
50
|
+
const node = this.node;
|
|
51
|
+
if (!node) {
|
|
52
|
+
if (this.key === "init" && this.parentPath.isVariableDeclarator()) {
|
|
53
|
+
const declar = this.parentPath.parentPath;
|
|
54
|
+
const declarParent = declar.parentPath;
|
|
55
|
+
if (declar.key === "left" && declarParent.isForInStatement()) {
|
|
56
|
+
return stringTypeAnnotation();
|
|
57
|
+
}
|
|
58
|
+
if (declar.key === "left" && declarParent.isForOfStatement()) {
|
|
59
|
+
return anyTypeAnnotation();
|
|
60
|
+
}
|
|
61
|
+
return voidTypeAnnotation();
|
|
62
|
+
} else {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (node.typeAnnotation) {
|
|
67
|
+
return node.typeAnnotation;
|
|
68
|
+
}
|
|
69
|
+
if (typeAnnotationInferringNodes.has(node)) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
typeAnnotationInferringNodes.add(node);
|
|
73
|
+
try {
|
|
74
|
+
var _inferer;
|
|
75
|
+
let inferer = inferers[node.type];
|
|
76
|
+
if (inferer) {
|
|
77
|
+
return inferer.call(this, node);
|
|
78
|
+
}
|
|
79
|
+
inferer = inferers[this.parentPath.type];
|
|
80
|
+
if ((_inferer = inferer) != null && _inferer.validParent) {
|
|
81
|
+
return this.parentPath.getTypeAnnotation();
|
|
82
|
+
}
|
|
83
|
+
} finally {
|
|
84
|
+
typeAnnotationInferringNodes.delete(node);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function isBaseType(baseName, soft) {
|
|
88
|
+
return _isBaseType(baseName, this.getTypeAnnotation(), soft);
|
|
89
|
+
}
|
|
90
|
+
function _isBaseType(baseName, type, soft) {
|
|
91
|
+
if (baseName === "string") {
|
|
92
|
+
return isStringTypeAnnotation(type);
|
|
93
|
+
} else if (baseName === "number") {
|
|
94
|
+
return isNumberTypeAnnotation(type);
|
|
95
|
+
} else if (baseName === "boolean") {
|
|
96
|
+
return isBooleanTypeAnnotation(type);
|
|
97
|
+
} else if (baseName === "any") {
|
|
98
|
+
return isAnyTypeAnnotation(type);
|
|
99
|
+
} else if (baseName === "mixed") {
|
|
100
|
+
return isMixedTypeAnnotation(type);
|
|
101
|
+
} else if (baseName === "empty") {
|
|
102
|
+
return isEmptyTypeAnnotation(type);
|
|
103
|
+
} else if (baseName === "void") {
|
|
104
|
+
return isVoidTypeAnnotation(type);
|
|
105
|
+
} else {
|
|
106
|
+
if (soft) {
|
|
107
|
+
return false;
|
|
108
|
+
} else {
|
|
109
|
+
throw new Error(`Unknown base type ${baseName}`);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
function couldBeBaseType(name) {
|
|
114
|
+
const type = this.getTypeAnnotation();
|
|
115
|
+
if (isAnyTypeAnnotation(type)) return true;
|
|
116
|
+
if (isUnionTypeAnnotation(type)) {
|
|
117
|
+
for (const type2 of type.types) {
|
|
118
|
+
if (isAnyTypeAnnotation(type2) || _isBaseType(name, type2, true)) {
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return false;
|
|
123
|
+
} else {
|
|
124
|
+
return _isBaseType(name, type, true);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function baseTypeStrictlyMatches(rightArg) {
|
|
128
|
+
const left = this.getTypeAnnotation();
|
|
129
|
+
const right = rightArg.getTypeAnnotation();
|
|
130
|
+
if (!isAnyTypeAnnotation(left) && isFlowBaseAnnotation(left)) {
|
|
131
|
+
return right.type === left.type;
|
|
132
|
+
}
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
function isGenericType(genericName) {
|
|
136
|
+
const type = this.getTypeAnnotation();
|
|
137
|
+
if (genericName === "Array") {
|
|
138
|
+
if (isTSArrayType(type) || isArrayTypeAnnotation(type) || isTupleTypeAnnotation(type)) {
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return isGenericTypeAnnotation(type) && isIdentifier(type.id, {
|
|
143
|
+
name: genericName
|
|
144
|
+
}) || isTSTypeReference(type) && isIdentifier(type.typeName, {
|
|
145
|
+
name: genericName
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["inferers","require","_t","anyTypeAnnotation","isAnyTypeAnnotation","isArrayTypeAnnotation","isBooleanTypeAnnotation","isEmptyTypeAnnotation","isFlowBaseAnnotation","isGenericTypeAnnotation","isIdentifier","isMixedTypeAnnotation","isNumberTypeAnnotation","isStringTypeAnnotation","isTSArrayType","isTSTypeAnnotation","isTSTypeReference","isTupleTypeAnnotation","isTypeAnnotation","isUnionTypeAnnotation","isVoidTypeAnnotation","stringTypeAnnotation","voidTypeAnnotation","getTypeAnnotation","type","getData","_getTypeAnnotation","call","typeAnnotation","setData","typeAnnotationInferringNodes","WeakSet","node","key","parentPath","isVariableDeclarator","declar","declarParent","isForInStatement","isForOfStatement","has","add","_inferer","inferer","validParent","delete","isBaseType","baseName","soft","_isBaseType","Error","couldBeBaseType","name","type2","types","baseTypeStrictlyMatches","rightArg","left","right","isGenericType","genericName","id","typeName"],"sources":["../../../src/path/inference/index.ts"],"sourcesContent":["import type NodePath from \"../index.ts\";\nimport * as inferers from \"./inferers.ts\";\nimport {\n anyTypeAnnotation,\n isAnyTypeAnnotation,\n isArrayTypeAnnotation,\n isBooleanTypeAnnotation,\n isEmptyTypeAnnotation,\n isFlowBaseAnnotation,\n isGenericTypeAnnotation,\n isIdentifier,\n isMixedTypeAnnotation,\n isNumberTypeAnnotation,\n isStringTypeAnnotation,\n isTSArrayType,\n isTSTypeAnnotation,\n isTSTypeReference,\n isTupleTypeAnnotation,\n isTypeAnnotation,\n isUnionTypeAnnotation,\n isVoidTypeAnnotation,\n stringTypeAnnotation,\n voidTypeAnnotation,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\n/**\n * Infer the type of the current `NodePath`.\n */\n\nexport function getTypeAnnotation(\n this: NodePath<t.Node | null>,\n): t.FlowType | t.TSType {\n let type = this.getData(\"typeAnnotation\");\n if (type != null) {\n return type;\n }\n type = _getTypeAnnotation.call(this) || anyTypeAnnotation();\n if (isTypeAnnotation(type) || isTSTypeAnnotation(type)) {\n type = type.typeAnnotation;\n }\n this.setData(\"typeAnnotation\", type);\n return type;\n}\n\n// Used to avoid infinite recursion in cases like\n// var b, c; if (0) { c = 1; b = c; } c = b;\n// It also works with indirect recursion.\nconst typeAnnotationInferringNodes = new WeakSet();\n\n/**\n * todo: split up this method\n */\n\nexport function _getTypeAnnotation(this: NodePath): any {\n const node = this.node;\n\n if (!node) {\n // handle initializerless variables, add in checks for loop initializers too\n if (this.key === \"init\" && this.parentPath.isVariableDeclarator()) {\n const declar = this.parentPath.parentPath;\n const declarParent = declar.parentPath;\n\n // for (let NODE in bar) {}\n if (declar.key === \"left\" && declarParent.isForInStatement()) {\n return stringTypeAnnotation();\n }\n\n // for (let NODE of bar) {}\n if (declar.key === \"left\" && declarParent.isForOfStatement()) {\n return anyTypeAnnotation();\n }\n\n return voidTypeAnnotation();\n } else {\n return;\n }\n }\n\n // @ts-expect-error typeAnnotation may not index node\n if (node.typeAnnotation) {\n // @ts-expect-error typeAnnotation may not index node\n return node.typeAnnotation;\n }\n\n if (typeAnnotationInferringNodes.has(node)) {\n // Bail out from type inference to avoid infinite loops\n return;\n }\n typeAnnotationInferringNodes.add(node);\n\n try {\n let inferer =\n // @ts-expect-error inferers do not cover all AST types\n inferers[node.type];\n if (inferer) {\n return inferer.call(this, node);\n }\n\n // @ts-expect-error inferers do not cover all AST types\n inferer = inferers[this.parentPath.type];\n if (inferer?.validParent) {\n return this.parentPath.getTypeAnnotation();\n }\n } finally {\n typeAnnotationInferringNodes.delete(node);\n }\n}\n\nexport function isBaseType(\n this: NodePath,\n baseName: string,\n soft?: boolean,\n): boolean {\n return _isBaseType(baseName, this.getTypeAnnotation(), soft);\n}\n\nfunction _isBaseType(\n baseName: string,\n type?: t.FlowType | t.TSType,\n soft?: boolean,\n): boolean {\n if (baseName === \"string\") {\n return isStringTypeAnnotation(type);\n } else if (baseName === \"number\") {\n return isNumberTypeAnnotation(type);\n } else if (baseName === \"boolean\") {\n return isBooleanTypeAnnotation(type);\n } else if (baseName === \"any\") {\n return isAnyTypeAnnotation(type);\n } else if (baseName === \"mixed\") {\n return isMixedTypeAnnotation(type);\n } else if (baseName === \"empty\") {\n return isEmptyTypeAnnotation(type);\n } else if (baseName === \"void\") {\n return isVoidTypeAnnotation(type);\n } else {\n if (soft) {\n return false;\n } else {\n throw new Error(`Unknown base type ${baseName}`);\n }\n }\n}\n\nexport function couldBeBaseType(this: NodePath, name: string): boolean {\n const type = this.getTypeAnnotation();\n if (isAnyTypeAnnotation(type)) return true;\n\n if (isUnionTypeAnnotation(type)) {\n for (const type2 of type.types) {\n if (isAnyTypeAnnotation(type2) || _isBaseType(name, type2, true)) {\n return true;\n }\n }\n return false;\n } else {\n return _isBaseType(name, type, true);\n }\n}\n\nexport function baseTypeStrictlyMatches(\n this: NodePath,\n rightArg: NodePath,\n): boolean {\n const left = this.getTypeAnnotation();\n const right = rightArg.getTypeAnnotation();\n\n if (!isAnyTypeAnnotation(left) && isFlowBaseAnnotation(left)) {\n return right.type === left.type;\n }\n return false;\n}\n\nexport function isGenericType(this: NodePath, genericName: string): boolean {\n const type = this.getTypeAnnotation();\n if (genericName === \"Array\") {\n // T[]\n if (\n isTSArrayType(type) ||\n isArrayTypeAnnotation(type) ||\n isTupleTypeAnnotation(type)\n ) {\n return true;\n }\n }\n return (\n (isGenericTypeAnnotation(type) &&\n isIdentifier(type.id, {\n name: genericName,\n })) ||\n (isTSTypeReference(type) &&\n isIdentifier(type.typeName, {\n name: genericName,\n }))\n );\n}\n"],"mappings":";;;;;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAqBsB;EApBpBE,iBAAiB;EACjBC,mBAAmB;EACnBC,qBAAqB;EACrBC,uBAAuB;EACvBC,qBAAqB;EACrBC,oBAAoB;EACpBC,uBAAuB;EACvBC,YAAY;EACZC,qBAAqB;EACrBC,sBAAsB;EACtBC,sBAAsB;EACtBC,aAA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