botversion-sdk 2.2.3 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core.js +56 -0
- package/index.js +62 -495
- package/package.json +18 -5
- package/register.js +19 -0
- package/{bin → scanner-sdk/bin}/scan-backend.js +17 -0
- package/scanner-sdk/index.js +525 -0
- package/{interceptor.js → scanner-sdk/interceptor.js} +5 -0
- package/scanner-sdk/node_modules/.bin/jsesc +16 -0
- package/scanner-sdk/node_modules/.bin/jsesc.cmd +17 -0
- package/scanner-sdk/node_modules/.bin/jsesc.ps1 +28 -0
- package/scanner-sdk/node_modules/.bin/mime +16 -0
- package/scanner-sdk/node_modules/.bin/mime.cmd +17 -0
- package/scanner-sdk/node_modules/.bin/mime.ps1 +28 -0
- package/scanner-sdk/node_modules/.bin/parser +16 -0
- package/scanner-sdk/node_modules/.bin/parser.cmd +17 -0
- package/scanner-sdk/node_modules/.bin/parser.ps1 +28 -0
- package/scanner-sdk/node_modules/.package-lock.json +1031 -0
- package/scanner-sdk/node_modules/@babel/code-frame/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/code-frame/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/code-frame/lib/index.js +217 -0
- package/scanner-sdk/node_modules/@babel/code-frame/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/code-frame/package.json +32 -0
- package/scanner-sdk/node_modules/@babel/generator/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/generator/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/buffer.js +244 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/buffer.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/base.js +86 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/base.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/classes.js +215 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/classes.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/deprecated.js +73 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/deprecated.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/expressions.js +309 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/flow.js +658 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/flow.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/index.js +128 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/jsx.js +124 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/methods.js +207 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/methods.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/modules.js +290 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/modules.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/statements.js +297 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/statements.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/template-literals.js +38 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/types.js +183 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/types.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/typescript.js +726 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/index.js +108 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/node/index.js +81 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/node/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/node/parentheses.js +298 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/nodes.js +19 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/nodes.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/printer.js +782 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/printer.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/source-map.js +86 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/source-map.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/token-map.js +195 -0
- package/scanner-sdk/node_modules/@babel/generator/lib/token-map.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/generator/package.json +39 -0
- package/scanner-sdk/node_modules/@babel/helper-globals/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/helper-globals/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/helper-globals/data/browser-upper.json +911 -0
- package/scanner-sdk/node_modules/@babel/helper-globals/data/builtin-lower.json +15 -0
- package/scanner-sdk/node_modules/@babel/helper-globals/data/builtin-upper.json +51 -0
- package/scanner-sdk/node_modules/@babel/helper-globals/package.json +32 -0
- package/scanner-sdk/node_modules/@babel/helper-string-parser/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/helper-string-parser/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/helper-string-parser/lib/index.js +295 -0
- package/scanner-sdk/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/helper-string-parser/package.json +31 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/scanner-sdk/node_modules/@babel/parser/CHANGELOG.md +1073 -0
- package/scanner-sdk/node_modules/@babel/parser/LICENSE +19 -0
- package/scanner-sdk/node_modules/@babel/parser/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/parser/bin/babel-parser.js +15 -0
- package/scanner-sdk/node_modules/@babel/parser/lib/index.js +14599 -0
- package/scanner-sdk/node_modules/@babel/parser/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/parser/package.json +50 -0
- package/scanner-sdk/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
- package/scanner-sdk/node_modules/@babel/template/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/template/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/template/lib/builder.js +69 -0
- package/scanner-sdk/node_modules/@babel/template/lib/builder.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/formatters.js +61 -0
- package/scanner-sdk/node_modules/@babel/template/lib/formatters.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/index.js +23 -0
- package/scanner-sdk/node_modules/@babel/template/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/literal.js +69 -0
- package/scanner-sdk/node_modules/@babel/template/lib/literal.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/options.js +73 -0
- package/scanner-sdk/node_modules/@babel/template/lib/options.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/parse.js +163 -0
- package/scanner-sdk/node_modules/@babel/template/lib/parse.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/populate.js +138 -0
- package/scanner-sdk/node_modules/@babel/template/lib/populate.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/lib/string.js +20 -0
- package/scanner-sdk/node_modules/@babel/template/lib/string.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/template/package.json +27 -0
- package/scanner-sdk/node_modules/@babel/traverse/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/traverse/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/cache.js +37 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/cache.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/context.js +125 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/context.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/hub.js +19 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/hub.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/index.js +87 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/ancestry.js +139 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/ancestry.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/comments.js +52 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/comments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/context.js +254 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/context.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/conversion.js +608 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/evaluation.js +373 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/family.js +346 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/family.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/index.js +288 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/index.js +149 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js +151 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/inferers.js +207 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/inferers.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/util.js +28 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/inference/util.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/introspection.js +395 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/introspection.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/hoister.js +172 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js +38 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js +162 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/virtual-types.js +26 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/lib/virtual-types.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/modification.js +229 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/modification.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/removal.js +67 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/removal.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/replacement.js +264 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/binding.js +84 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/binding.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/index.js +1018 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/lib/renamer.js +132 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/lib/renamer.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/traverseForScope.js +66 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/scope/traverseForScope.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/traverse-node.js +137 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/traverse-node.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/types.js +3 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/types.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/visitors.js +252 -0
- package/scanner-sdk/node_modules/@babel/traverse/lib/visitors.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/LICENSE +20 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/README.md +481 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/package.json +64 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/src/browser.js +272 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/src/common.js +292 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/src/index.js +10 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/debug/src/node.js +263 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/ms/index.js +162 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/ms/license.md +21 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/ms/package.json +38 -0
- package/scanner-sdk/node_modules/@babel/traverse/node_modules/ms/readme.md +59 -0
- package/scanner-sdk/node_modules/@babel/traverse/package.json +35 -0
- package/scanner-sdk/node_modules/@babel/traverse/tsconfig.overrides.json +6 -0
- package/scanner-sdk/node_modules/@babel/types/LICENSE +22 -0
- package/scanner-sdk/node_modules/@babel/types/README.md +19 -0
- package/scanner-sdk/node_modules/@babel/types/lib/asserts/assertNode.js +16 -0
- package/scanner-sdk/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/asserts/generated/index.js +1251 -0
- package/scanner-sdk/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/ast-types/generated/index.js +3 -0
- package/scanner-sdk/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +18 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +31 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/generated/index.js +29 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/generated/lowercase.js +2902 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/generated/uppercase.js +272 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/productions.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/productions.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/react/buildChildren.js +24 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +22 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/validateNode.js +21 -0
- package/scanner-sdk/node_modules/@babel/types/lib/builders/validateNode.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/clone.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/clone.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneDeep.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneDeep.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneNode.js +107 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/addComment.js +15 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/addComment.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/addComments.js +22 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/addComments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritInnerComments.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritsComments.js +17 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/inheritsComments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/removeComments.js +15 -0
- package/scanner-sdk/node_modules/@babel/types/lib/comments/removeComments.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/constants/generated/index.js +60 -0
- package/scanner-sdk/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/constants/index.js +31 -0
- package/scanner-sdk/node_modules/@babel/types/lib/constants/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/ensureBlock.js +14 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/ensureBlock.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +65 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +14 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toBlock.js +29 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toBlock.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toComputedKey.js +14 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toComputedKey.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toExpression.js +28 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toIdentifier.js +25 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toIdentifier.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toKeyAlias.js +38 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toSequenceExpression.js +19 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toStatement.js +39 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/valueToNode.js +89 -0
- package/scanner-sdk/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/core.js +1725 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/core.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +11 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/experimental.js +124 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/flow.js +495 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/flow.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/index.js +106 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/jsx.js +157 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/misc.js +31 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/misc.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/placeholders.js +27 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/placeholders.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/typescript.js +528 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/utils.js +296 -0
- package/scanner-sdk/node_modules/@babel/types/lib/definitions/utils.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/index-legacy.d.ts +2797 -0
- package/scanner-sdk/node_modules/@babel/types/lib/index.d.ts +3617 -0
- package/scanner-sdk/node_modules/@babel/types/lib/index.js +582 -0
- package/scanner-sdk/node_modules/@babel/types/lib/index.js.flow +2650 -0
- package/scanner-sdk/node_modules/@babel/types/lib/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +15 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +65 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/inherits.js +28 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/inherits.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +17 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/removeProperties.js +24 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/removeProperties.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +14 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +66 -0
- package/scanner-sdk/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +48 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +102 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getFunctionName.js +63 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +13 -0
- package/scanner-sdk/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/traverse/traverse.js +50 -0
- package/scanner-sdk/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/traverse/traverseFast.js +40 -0
- package/scanner-sdk/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/deprecationWarning.js +44 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/inherit.js +13 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/inherit.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +40 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/shallowEqual.js +17 -0
- package/scanner-sdk/node_modules/@babel/types/lib/utils/shallowEqual.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +13 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/generated/index.js +2797 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/is.js +27 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/is.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isBinding.js +27 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isBinding.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isBlockScoped.js +13 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isImmutable.js +21 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isImmutable.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isLet.js +13 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isLet.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isNode.js +12 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isNode.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +57 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isPlaceholderType.js +15 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isReferenced.js +96 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isReferenced.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isScope.js +18 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isScope.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +14 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isType.js +17 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isType.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +13 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isValidIdentifier.js +18 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isVar.js +15 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/isVar.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/matchesPattern.js +44 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/react/isCompatTag.js +11 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/react/isReactComponent.js +11 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/validate.js +42 -0
- package/scanner-sdk/node_modules/@babel/types/lib/validators/validate.js.map +1 -0
- package/scanner-sdk/node_modules/@babel/types/package.json +39 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/LICENSE +19 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/README.md +227 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +292 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +6 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +358 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +6 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/types/set-array.d.ts +32 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +43 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/package.json +67 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/src/gen-mapping.ts +614 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/src/set-array.ts +82 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/src/sourcemap-segment.ts +16 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/src/types.ts +61 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts +89 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts +89 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts +33 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts +33 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts +13 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts +13 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/types.d.cts +44 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/types.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/types.d.mts +44 -0
- package/scanner-sdk/node_modules/@jridgewell/gen-mapping/types/types.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/resolve-uri/package.json +69 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/LICENSE +19 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
- package/scanner-sdk/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/README.md +348 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +493 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +6 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +559 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +6 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/package.json +67 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/binary-search.ts +115 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/by-source.ts +41 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/flatten-map.ts +192 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/resolve.ts +16 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/sort.ts +45 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts +23 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts +8 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts +502 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/src/types.ts +114 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts +33 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +33 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts +9 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +9 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sort.d.cts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sort.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sort.d.mts +4 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sort.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts +17 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +17 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts +5 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts +5 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts +80 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +80 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/types.d.cts +107 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/types.d.cts.map +1 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/types.d.mts +107 -0
- package/scanner-sdk/node_modules/@jridgewell/trace-mapping/types/types.d.mts.map +1 -0
- package/scanner-sdk/node_modules/accepts/HISTORY.md +243 -0
- package/scanner-sdk/node_modules/accepts/LICENSE +23 -0
- package/scanner-sdk/node_modules/accepts/README.md +140 -0
- package/scanner-sdk/node_modules/accepts/index.js +238 -0
- package/scanner-sdk/node_modules/accepts/package.json +47 -0
- package/scanner-sdk/node_modules/array-flatten/LICENSE +21 -0
- package/scanner-sdk/node_modules/array-flatten/README.md +43 -0
- package/scanner-sdk/node_modules/array-flatten/array-flatten.js +64 -0
- package/scanner-sdk/node_modules/array-flatten/package.json +39 -0
- package/scanner-sdk/node_modules/body-parser/HISTORY.md +680 -0
- package/scanner-sdk/node_modules/body-parser/LICENSE +23 -0
- package/scanner-sdk/node_modules/body-parser/README.md +476 -0
- package/scanner-sdk/node_modules/body-parser/index.js +156 -0
- package/scanner-sdk/node_modules/body-parser/lib/read.js +205 -0
- package/scanner-sdk/node_modules/body-parser/lib/types/json.js +247 -0
- package/scanner-sdk/node_modules/body-parser/lib/types/raw.js +101 -0
- package/scanner-sdk/node_modules/body-parser/lib/types/text.js +121 -0
- package/scanner-sdk/node_modules/body-parser/lib/types/urlencoded.js +300 -0
- package/scanner-sdk/node_modules/body-parser/package.json +55 -0
- package/scanner-sdk/node_modules/bytes/History.md +97 -0
- package/scanner-sdk/node_modules/bytes/LICENSE +23 -0
- package/scanner-sdk/node_modules/bytes/Readme.md +152 -0
- package/scanner-sdk/node_modules/bytes/index.js +170 -0
- package/scanner-sdk/node_modules/bytes/package.json +42 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/scanner-sdk/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/call-bound/.eslintrc +13 -0
- package/scanner-sdk/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/call-bound/.nycrc +9 -0
- package/scanner-sdk/node_modules/call-bound/CHANGELOG.md +42 -0
- package/scanner-sdk/node_modules/call-bound/LICENSE +21 -0
- package/scanner-sdk/node_modules/call-bound/README.md +53 -0
- package/scanner-sdk/node_modules/call-bound/index.d.ts +94 -0
- package/scanner-sdk/node_modules/call-bound/index.js +19 -0
- package/scanner-sdk/node_modules/call-bound/package.json +99 -0
- package/scanner-sdk/node_modules/call-bound/test/index.js +61 -0
- package/scanner-sdk/node_modules/call-bound/tsconfig.json +10 -0
- package/scanner-sdk/node_modules/content-disposition/HISTORY.md +60 -0
- package/scanner-sdk/node_modules/content-disposition/LICENSE +22 -0
- package/scanner-sdk/node_modules/content-disposition/README.md +142 -0
- package/scanner-sdk/node_modules/content-disposition/index.js +458 -0
- package/scanner-sdk/node_modules/content-disposition/package.json +44 -0
- package/scanner-sdk/node_modules/content-type/HISTORY.md +29 -0
- package/scanner-sdk/node_modules/content-type/LICENSE +22 -0
- package/scanner-sdk/node_modules/content-type/README.md +94 -0
- package/scanner-sdk/node_modules/content-type/index.js +225 -0
- package/scanner-sdk/node_modules/content-type/package.json +42 -0
- package/scanner-sdk/node_modules/cookie/LICENSE +24 -0
- package/scanner-sdk/node_modules/cookie/README.md +317 -0
- package/scanner-sdk/node_modules/cookie/SECURITY.md +25 -0
- package/scanner-sdk/node_modules/cookie/index.js +335 -0
- package/scanner-sdk/node_modules/cookie/package.json +44 -0
- package/scanner-sdk/node_modules/cookie-signature/History.md +42 -0
- package/scanner-sdk/node_modules/cookie-signature/Readme.md +42 -0
- package/scanner-sdk/node_modules/cookie-signature/index.js +51 -0
- package/scanner-sdk/node_modules/cookie-signature/package.json +18 -0
- package/scanner-sdk/node_modules/debug/.coveralls.yml +1 -0
- package/scanner-sdk/node_modules/debug/.eslintrc +11 -0
- package/scanner-sdk/node_modules/debug/.travis.yml +14 -0
- package/scanner-sdk/node_modules/debug/CHANGELOG.md +362 -0
- package/scanner-sdk/node_modules/debug/LICENSE +19 -0
- package/scanner-sdk/node_modules/debug/Makefile +50 -0
- package/scanner-sdk/node_modules/debug/README.md +312 -0
- package/scanner-sdk/node_modules/debug/component.json +19 -0
- package/scanner-sdk/node_modules/debug/karma.conf.js +70 -0
- package/scanner-sdk/node_modules/debug/node.js +1 -0
- package/scanner-sdk/node_modules/debug/package.json +49 -0
- package/scanner-sdk/node_modules/debug/src/browser.js +185 -0
- package/scanner-sdk/node_modules/debug/src/debug.js +202 -0
- package/scanner-sdk/node_modules/debug/src/index.js +10 -0
- package/scanner-sdk/node_modules/debug/src/inspector-log.js +15 -0
- package/scanner-sdk/node_modules/debug/src/node.js +248 -0
- package/scanner-sdk/node_modules/depd/History.md +103 -0
- package/scanner-sdk/node_modules/depd/LICENSE +22 -0
- package/scanner-sdk/node_modules/depd/Readme.md +280 -0
- package/scanner-sdk/node_modules/depd/index.js +538 -0
- package/scanner-sdk/node_modules/depd/lib/browser/index.js +77 -0
- package/scanner-sdk/node_modules/depd/package.json +45 -0
- package/scanner-sdk/node_modules/destroy/LICENSE +23 -0
- package/scanner-sdk/node_modules/destroy/README.md +63 -0
- package/scanner-sdk/node_modules/destroy/index.js +209 -0
- package/scanner-sdk/node_modules/destroy/package.json +48 -0
- package/scanner-sdk/node_modules/dotenv/CHANGELOG.md +520 -0
- package/scanner-sdk/node_modules/dotenv/LICENSE +23 -0
- package/scanner-sdk/node_modules/dotenv/README-es.md +411 -0
- package/scanner-sdk/node_modules/dotenv/README.md +645 -0
- package/scanner-sdk/node_modules/dotenv/SECURITY.md +1 -0
- package/scanner-sdk/node_modules/dotenv/config.d.ts +1 -0
- package/scanner-sdk/node_modules/dotenv/config.js +9 -0
- package/scanner-sdk/node_modules/dotenv/lib/cli-options.js +17 -0
- package/scanner-sdk/node_modules/dotenv/lib/env-options.js +28 -0
- package/scanner-sdk/node_modules/dotenv/lib/main.d.ts +162 -0
- package/scanner-sdk/node_modules/dotenv/lib/main.js +386 -0
- package/scanner-sdk/node_modules/dotenv/package.json +62 -0
- package/scanner-sdk/node_modules/dunder-proto/.eslintrc +5 -0
- package/scanner-sdk/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/dunder-proto/.nycrc +13 -0
- package/scanner-sdk/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/scanner-sdk/node_modules/dunder-proto/LICENSE +21 -0
- package/scanner-sdk/node_modules/dunder-proto/README.md +54 -0
- package/scanner-sdk/node_modules/dunder-proto/get.d.ts +5 -0
- package/scanner-sdk/node_modules/dunder-proto/get.js +30 -0
- package/scanner-sdk/node_modules/dunder-proto/package.json +76 -0
- package/scanner-sdk/node_modules/dunder-proto/set.d.ts +5 -0
- package/scanner-sdk/node_modules/dunder-proto/set.js +35 -0
- package/scanner-sdk/node_modules/dunder-proto/test/get.js +34 -0
- package/scanner-sdk/node_modules/dunder-proto/test/index.js +4 -0
- package/scanner-sdk/node_modules/dunder-proto/test/set.js +50 -0
- package/scanner-sdk/node_modules/dunder-proto/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/ee-first/LICENSE +22 -0
- package/scanner-sdk/node_modules/ee-first/README.md +80 -0
- package/scanner-sdk/node_modules/ee-first/index.js +95 -0
- package/scanner-sdk/node_modules/ee-first/package.json +29 -0
- package/scanner-sdk/node_modules/encodeurl/LICENSE +22 -0
- package/scanner-sdk/node_modules/encodeurl/README.md +109 -0
- package/scanner-sdk/node_modules/encodeurl/index.js +60 -0
- package/scanner-sdk/node_modules/encodeurl/package.json +40 -0
- package/scanner-sdk/node_modules/es-define-property/.eslintrc +13 -0
- package/scanner-sdk/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/es-define-property/.nycrc +9 -0
- package/scanner-sdk/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/scanner-sdk/node_modules/es-define-property/LICENSE +21 -0
- package/scanner-sdk/node_modules/es-define-property/README.md +49 -0
- package/scanner-sdk/node_modules/es-define-property/index.d.ts +3 -0
- package/scanner-sdk/node_modules/es-define-property/index.js +14 -0
- package/scanner-sdk/node_modules/es-define-property/package.json +81 -0
- package/scanner-sdk/node_modules/es-define-property/test/index.js +56 -0
- package/scanner-sdk/node_modules/es-define-property/tsconfig.json +10 -0
- package/scanner-sdk/node_modules/es-errors/.eslintrc +5 -0
- package/scanner-sdk/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/es-errors/CHANGELOG.md +40 -0
- package/scanner-sdk/node_modules/es-errors/LICENSE +21 -0
- package/scanner-sdk/node_modules/es-errors/README.md +55 -0
- package/scanner-sdk/node_modules/es-errors/eval.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/eval.js +4 -0
- package/scanner-sdk/node_modules/es-errors/index.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/index.js +4 -0
- package/scanner-sdk/node_modules/es-errors/package.json +80 -0
- package/scanner-sdk/node_modules/es-errors/range.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/range.js +4 -0
- package/scanner-sdk/node_modules/es-errors/ref.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/ref.js +4 -0
- package/scanner-sdk/node_modules/es-errors/syntax.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/syntax.js +4 -0
- package/scanner-sdk/node_modules/es-errors/test/index.js +19 -0
- package/scanner-sdk/node_modules/es-errors/tsconfig.json +49 -0
- package/scanner-sdk/node_modules/es-errors/type.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/type.js +4 -0
- package/scanner-sdk/node_modules/es-errors/uri.d.ts +3 -0
- package/scanner-sdk/node_modules/es-errors/uri.js +4 -0
- package/scanner-sdk/node_modules/es-object-atoms/.eslintrc +16 -0
- package/scanner-sdk/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/scanner-sdk/node_modules/es-object-atoms/LICENSE +21 -0
- package/scanner-sdk/node_modules/es-object-atoms/README.md +63 -0
- package/scanner-sdk/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/scanner-sdk/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/scanner-sdk/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/scanner-sdk/node_modules/es-object-atoms/ToObject.js +10 -0
- package/scanner-sdk/node_modules/es-object-atoms/index.d.ts +3 -0
- package/scanner-sdk/node_modules/es-object-atoms/index.js +4 -0
- package/scanner-sdk/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/scanner-sdk/node_modules/es-object-atoms/isObject.js +6 -0
- package/scanner-sdk/node_modules/es-object-atoms/package.json +80 -0
- package/scanner-sdk/node_modules/es-object-atoms/test/index.js +38 -0
- package/scanner-sdk/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/scanner-sdk/node_modules/escape-html/LICENSE +24 -0
- package/scanner-sdk/node_modules/escape-html/Readme.md +43 -0
- package/scanner-sdk/node_modules/escape-html/index.js +78 -0
- package/scanner-sdk/node_modules/escape-html/package.json +24 -0
- package/scanner-sdk/node_modules/etag/HISTORY.md +83 -0
- package/scanner-sdk/node_modules/etag/LICENSE +22 -0
- package/scanner-sdk/node_modules/etag/README.md +159 -0
- package/scanner-sdk/node_modules/etag/index.js +131 -0
- package/scanner-sdk/node_modules/etag/package.json +47 -0
- package/scanner-sdk/node_modules/express/History.md +3667 -0
- package/scanner-sdk/node_modules/express/LICENSE +24 -0
- package/scanner-sdk/node_modules/express/Readme.md +260 -0
- package/scanner-sdk/node_modules/express/index.js +11 -0
- package/scanner-sdk/node_modules/express/lib/application.js +661 -0
- package/scanner-sdk/node_modules/express/lib/express.js +116 -0
- package/scanner-sdk/node_modules/express/lib/middleware/init.js +43 -0
- package/scanner-sdk/node_modules/express/lib/middleware/query.js +47 -0
- package/scanner-sdk/node_modules/express/lib/request.js +525 -0
- package/scanner-sdk/node_modules/express/lib/response.js +1179 -0
- package/scanner-sdk/node_modules/express/lib/router/index.js +673 -0
- package/scanner-sdk/node_modules/express/lib/router/layer.js +181 -0
- package/scanner-sdk/node_modules/express/lib/router/route.js +230 -0
- package/scanner-sdk/node_modules/express/lib/utils.js +303 -0
- package/scanner-sdk/node_modules/express/lib/view.js +182 -0
- package/scanner-sdk/node_modules/express/package.json +102 -0
- package/scanner-sdk/node_modules/finalhandler/HISTORY.md +216 -0
- package/scanner-sdk/node_modules/finalhandler/LICENSE +22 -0
- package/scanner-sdk/node_modules/finalhandler/README.md +147 -0
- package/scanner-sdk/node_modules/finalhandler/SECURITY.md +25 -0
- package/scanner-sdk/node_modules/finalhandler/index.js +341 -0
- package/scanner-sdk/node_modules/finalhandler/package.json +47 -0
- package/scanner-sdk/node_modules/forwarded/HISTORY.md +21 -0
- package/scanner-sdk/node_modules/forwarded/LICENSE +22 -0
- package/scanner-sdk/node_modules/forwarded/README.md +57 -0
- package/scanner-sdk/node_modules/forwarded/index.js +90 -0
- package/scanner-sdk/node_modules/forwarded/package.json +45 -0
- package/scanner-sdk/node_modules/fresh/HISTORY.md +70 -0
- package/scanner-sdk/node_modules/fresh/LICENSE +23 -0
- package/scanner-sdk/node_modules/fresh/README.md +119 -0
- package/scanner-sdk/node_modules/fresh/index.js +137 -0
- package/scanner-sdk/node_modules/fresh/package.json +46 -0
- package/scanner-sdk/node_modules/function-bind/.eslintrc +21 -0
- package/scanner-sdk/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/scanner-sdk/node_modules/function-bind/.nycrc +13 -0
- package/scanner-sdk/node_modules/function-bind/CHANGELOG.md +136 -0
- package/scanner-sdk/node_modules/function-bind/LICENSE +20 -0
- package/scanner-sdk/node_modules/function-bind/README.md +46 -0
- package/scanner-sdk/node_modules/function-bind/implementation.js +84 -0
- package/scanner-sdk/node_modules/function-bind/index.js +5 -0
- package/scanner-sdk/node_modules/function-bind/package.json +87 -0
- package/scanner-sdk/node_modules/function-bind/test/.eslintrc +9 -0
- package/scanner-sdk/node_modules/function-bind/test/index.js +252 -0
- package/scanner-sdk/node_modules/get-intrinsic/.eslintrc +42 -0
- package/scanner-sdk/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/get-intrinsic/.nycrc +9 -0
- package/scanner-sdk/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/scanner-sdk/node_modules/get-intrinsic/LICENSE +21 -0
- package/scanner-sdk/node_modules/get-intrinsic/README.md +71 -0
- package/scanner-sdk/node_modules/get-intrinsic/index.js +378 -0
- package/scanner-sdk/node_modules/get-intrinsic/package.json +97 -0
- package/scanner-sdk/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/scanner-sdk/node_modules/get-proto/.eslintrc +10 -0
- package/scanner-sdk/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/get-proto/.nycrc +9 -0
- package/scanner-sdk/node_modules/get-proto/CHANGELOG.md +21 -0
- package/scanner-sdk/node_modules/get-proto/LICENSE +21 -0
- package/scanner-sdk/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/scanner-sdk/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/scanner-sdk/node_modules/get-proto/README.md +50 -0
- package/scanner-sdk/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/scanner-sdk/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/scanner-sdk/node_modules/get-proto/index.d.ts +5 -0
- package/scanner-sdk/node_modules/get-proto/index.js +27 -0
- package/scanner-sdk/node_modules/get-proto/package.json +81 -0
- package/scanner-sdk/node_modules/get-proto/test/index.js +68 -0
- package/scanner-sdk/node_modules/get-proto/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/gopd/.eslintrc +16 -0
- package/scanner-sdk/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/gopd/CHANGELOG.md +45 -0
- package/scanner-sdk/node_modules/gopd/LICENSE +21 -0
- package/scanner-sdk/node_modules/gopd/README.md +40 -0
- package/scanner-sdk/node_modules/gopd/gOPD.d.ts +1 -0
- package/scanner-sdk/node_modules/gopd/gOPD.js +4 -0
- package/scanner-sdk/node_modules/gopd/index.d.ts +5 -0
- package/scanner-sdk/node_modules/gopd/index.js +15 -0
- package/scanner-sdk/node_modules/gopd/package.json +77 -0
- package/scanner-sdk/node_modules/gopd/test/index.js +36 -0
- package/scanner-sdk/node_modules/gopd/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/has-symbols/.eslintrc +11 -0
- package/scanner-sdk/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/has-symbols/.nycrc +9 -0
- package/scanner-sdk/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/scanner-sdk/node_modules/has-symbols/LICENSE +21 -0
- package/scanner-sdk/node_modules/has-symbols/README.md +46 -0
- package/scanner-sdk/node_modules/has-symbols/index.d.ts +3 -0
- package/scanner-sdk/node_modules/has-symbols/index.js +14 -0
- package/scanner-sdk/node_modules/has-symbols/package.json +111 -0
- package/scanner-sdk/node_modules/has-symbols/shams.d.ts +3 -0
- package/scanner-sdk/node_modules/has-symbols/shams.js +45 -0
- package/scanner-sdk/node_modules/has-symbols/test/index.js +22 -0
- package/scanner-sdk/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/scanner-sdk/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/scanner-sdk/node_modules/has-symbols/test/tests.js +58 -0
- package/scanner-sdk/node_modules/has-symbols/tsconfig.json +10 -0
- package/scanner-sdk/node_modules/hasown/.eslintrc +5 -0
- package/scanner-sdk/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/hasown/.nycrc +13 -0
- package/scanner-sdk/node_modules/hasown/CHANGELOG.md +40 -0
- package/scanner-sdk/node_modules/hasown/LICENSE +21 -0
- package/scanner-sdk/node_modules/hasown/README.md +40 -0
- package/scanner-sdk/node_modules/hasown/index.d.ts +3 -0
- package/scanner-sdk/node_modules/hasown/index.js +8 -0
- package/scanner-sdk/node_modules/hasown/package.json +92 -0
- package/scanner-sdk/node_modules/hasown/tsconfig.json +6 -0
- package/scanner-sdk/node_modules/http-errors/HISTORY.md +186 -0
- package/scanner-sdk/node_modules/http-errors/LICENSE +23 -0
- package/scanner-sdk/node_modules/http-errors/README.md +169 -0
- package/scanner-sdk/node_modules/http-errors/index.js +290 -0
- package/scanner-sdk/node_modules/http-errors/package.json +54 -0
- package/scanner-sdk/node_modules/iconv-lite/Changelog.md +162 -0
- package/scanner-sdk/node_modules/iconv-lite/LICENSE +21 -0
- package/scanner-sdk/node_modules/iconv-lite/README.md +156 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/index.js +22 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/scanner-sdk/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/scanner-sdk/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/scanner-sdk/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/scanner-sdk/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/scanner-sdk/node_modules/iconv-lite/lib/index.js +153 -0
- package/scanner-sdk/node_modules/iconv-lite/lib/streams.js +121 -0
- package/scanner-sdk/node_modules/iconv-lite/package.json +46 -0
- package/scanner-sdk/node_modules/inherits/LICENSE +16 -0
- package/scanner-sdk/node_modules/inherits/README.md +42 -0
- package/scanner-sdk/node_modules/inherits/inherits.js +9 -0
- package/scanner-sdk/node_modules/inherits/inherits_browser.js +27 -0
- package/scanner-sdk/node_modules/inherits/package.json +29 -0
- package/scanner-sdk/node_modules/ipaddr.js/LICENSE +19 -0
- package/scanner-sdk/node_modules/ipaddr.js/README.md +233 -0
- package/scanner-sdk/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/scanner-sdk/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/scanner-sdk/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/scanner-sdk/node_modules/ipaddr.js/package.json +35 -0
- package/scanner-sdk/node_modules/js-tokens/CHANGELOG.md +151 -0
- package/scanner-sdk/node_modules/js-tokens/LICENSE +21 -0
- package/scanner-sdk/node_modules/js-tokens/README.md +240 -0
- package/scanner-sdk/node_modules/js-tokens/index.js +23 -0
- package/scanner-sdk/node_modules/js-tokens/package.json +30 -0
- package/scanner-sdk/node_modules/jsesc/LICENSE-MIT.txt +20 -0
- package/scanner-sdk/node_modules/jsesc/README.md +422 -0
- package/scanner-sdk/node_modules/jsesc/bin/jsesc +148 -0
- package/scanner-sdk/node_modules/jsesc/jsesc.js +337 -0
- package/scanner-sdk/node_modules/jsesc/man/jsesc.1 +94 -0
- package/scanner-sdk/node_modules/jsesc/package.json +56 -0
- package/scanner-sdk/node_modules/math-intrinsics/.eslintrc +16 -0
- package/scanner-sdk/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/scanner-sdk/node_modules/math-intrinsics/LICENSE +21 -0
- package/scanner-sdk/node_modules/math-intrinsics/README.md +50 -0
- package/scanner-sdk/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/abs.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/scanner-sdk/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/scanner-sdk/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/floor.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/isFinite.js +12 -0
- package/scanner-sdk/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/isInteger.js +16 -0
- package/scanner-sdk/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/isNaN.js +6 -0
- package/scanner-sdk/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/scanner-sdk/node_modules/math-intrinsics/max.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/max.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/min.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/min.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/mod.js +9 -0
- package/scanner-sdk/node_modules/math-intrinsics/package.json +86 -0
- package/scanner-sdk/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/pow.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/round.d.ts +1 -0
- package/scanner-sdk/node_modules/math-intrinsics/round.js +4 -0
- package/scanner-sdk/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/scanner-sdk/node_modules/math-intrinsics/sign.js +11 -0
- package/scanner-sdk/node_modules/math-intrinsics/test/index.js +192 -0
- package/scanner-sdk/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/scanner-sdk/node_modules/media-typer/HISTORY.md +22 -0
- package/scanner-sdk/node_modules/media-typer/LICENSE +22 -0
- package/scanner-sdk/node_modules/media-typer/README.md +81 -0
- package/scanner-sdk/node_modules/media-typer/index.js +270 -0
- package/scanner-sdk/node_modules/media-typer/package.json +26 -0
- package/scanner-sdk/node_modules/merge-descriptors/HISTORY.md +21 -0
- package/scanner-sdk/node_modules/merge-descriptors/LICENSE +23 -0
- package/scanner-sdk/node_modules/merge-descriptors/README.md +49 -0
- package/scanner-sdk/node_modules/merge-descriptors/index.js +60 -0
- package/scanner-sdk/node_modules/merge-descriptors/package.json +39 -0
- package/scanner-sdk/node_modules/methods/HISTORY.md +29 -0
- package/scanner-sdk/node_modules/methods/LICENSE +24 -0
- package/scanner-sdk/node_modules/methods/README.md +51 -0
- package/scanner-sdk/node_modules/methods/index.js +69 -0
- package/scanner-sdk/node_modules/methods/package.json +36 -0
- package/scanner-sdk/node_modules/mime/CHANGELOG.md +164 -0
- package/scanner-sdk/node_modules/mime/LICENSE +21 -0
- package/scanner-sdk/node_modules/mime/README.md +90 -0
- package/scanner-sdk/node_modules/mime/cli.js +8 -0
- package/scanner-sdk/node_modules/mime/mime.js +108 -0
- package/scanner-sdk/node_modules/mime/package.json +44 -0
- package/scanner-sdk/node_modules/mime/src/build.js +53 -0
- package/scanner-sdk/node_modules/mime/src/test.js +60 -0
- package/scanner-sdk/node_modules/mime/types.json +1 -0
- package/scanner-sdk/node_modules/mime-db/HISTORY.md +507 -0
- package/scanner-sdk/node_modules/mime-db/LICENSE +23 -0
- package/scanner-sdk/node_modules/mime-db/README.md +100 -0
- package/scanner-sdk/node_modules/mime-db/db.json +8519 -0
- package/scanner-sdk/node_modules/mime-db/index.js +12 -0
- package/scanner-sdk/node_modules/mime-db/package.json +60 -0
- package/scanner-sdk/node_modules/mime-types/HISTORY.md +397 -0
- package/scanner-sdk/node_modules/mime-types/LICENSE +23 -0
- package/scanner-sdk/node_modules/mime-types/README.md +113 -0
- package/scanner-sdk/node_modules/mime-types/index.js +188 -0
- package/scanner-sdk/node_modules/mime-types/package.json +44 -0
- package/scanner-sdk/node_modules/ms/index.js +152 -0
- package/scanner-sdk/node_modules/ms/license.md +21 -0
- package/scanner-sdk/node_modules/ms/package.json +37 -0
- package/scanner-sdk/node_modules/ms/readme.md +51 -0
- package/scanner-sdk/node_modules/negotiator/HISTORY.md +108 -0
- package/scanner-sdk/node_modules/negotiator/LICENSE +24 -0
- package/scanner-sdk/node_modules/negotiator/README.md +203 -0
- package/scanner-sdk/node_modules/negotiator/index.js +82 -0
- package/scanner-sdk/node_modules/negotiator/lib/charset.js +169 -0
- package/scanner-sdk/node_modules/negotiator/lib/encoding.js +184 -0
- package/scanner-sdk/node_modules/negotiator/lib/language.js +179 -0
- package/scanner-sdk/node_modules/negotiator/lib/mediaType.js +294 -0
- package/scanner-sdk/node_modules/negotiator/package.json +42 -0
- package/scanner-sdk/node_modules/object-inspect/.eslintrc +53 -0
- package/scanner-sdk/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/object-inspect/.nycrc +13 -0
- package/scanner-sdk/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/scanner-sdk/node_modules/object-inspect/LICENSE +21 -0
- package/scanner-sdk/node_modules/object-inspect/example/all.js +23 -0
- package/scanner-sdk/node_modules/object-inspect/example/circular.js +6 -0
- package/scanner-sdk/node_modules/object-inspect/example/fn.js +5 -0
- package/scanner-sdk/node_modules/object-inspect/example/inspect.js +10 -0
- package/scanner-sdk/node_modules/object-inspect/index.js +544 -0
- package/scanner-sdk/node_modules/object-inspect/package-support.json +20 -0
- package/scanner-sdk/node_modules/object-inspect/package.json +105 -0
- package/scanner-sdk/node_modules/object-inspect/readme.markdown +84 -0
- package/scanner-sdk/node_modules/object-inspect/test/bigint.js +58 -0
- package/scanner-sdk/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/scanner-sdk/node_modules/object-inspect/test/circular.js +16 -0
- package/scanner-sdk/node_modules/object-inspect/test/deep.js +12 -0
- package/scanner-sdk/node_modules/object-inspect/test/element.js +53 -0
- package/scanner-sdk/node_modules/object-inspect/test/err.js +48 -0
- package/scanner-sdk/node_modules/object-inspect/test/fakes.js +29 -0
- package/scanner-sdk/node_modules/object-inspect/test/fn.js +76 -0
- package/scanner-sdk/node_modules/object-inspect/test/global.js +17 -0
- package/scanner-sdk/node_modules/object-inspect/test/has.js +15 -0
- package/scanner-sdk/node_modules/object-inspect/test/holes.js +15 -0
- package/scanner-sdk/node_modules/object-inspect/test/indent-option.js +271 -0
- package/scanner-sdk/node_modules/object-inspect/test/inspect.js +139 -0
- package/scanner-sdk/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/scanner-sdk/node_modules/object-inspect/test/number.js +58 -0
- package/scanner-sdk/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/scanner-sdk/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/scanner-sdk/node_modules/object-inspect/test/undef.js +12 -0
- package/scanner-sdk/node_modules/object-inspect/test/values.js +261 -0
- package/scanner-sdk/node_modules/object-inspect/test-core-js.js +26 -0
- package/scanner-sdk/node_modules/object-inspect/util.inspect.js +1 -0
- package/scanner-sdk/node_modules/on-finished/HISTORY.md +98 -0
- package/scanner-sdk/node_modules/on-finished/LICENSE +23 -0
- package/scanner-sdk/node_modules/on-finished/README.md +162 -0
- package/scanner-sdk/node_modules/on-finished/index.js +234 -0
- package/scanner-sdk/node_modules/on-finished/package.json +39 -0
- package/scanner-sdk/node_modules/parseurl/HISTORY.md +58 -0
- package/scanner-sdk/node_modules/parseurl/LICENSE +24 -0
- package/scanner-sdk/node_modules/parseurl/README.md +133 -0
- package/scanner-sdk/node_modules/parseurl/index.js +158 -0
- package/scanner-sdk/node_modules/parseurl/package.json +40 -0
- package/scanner-sdk/node_modules/path-to-regexp/LICENSE +21 -0
- package/scanner-sdk/node_modules/path-to-regexp/Readme.md +35 -0
- package/scanner-sdk/node_modules/path-to-regexp/index.js +158 -0
- package/scanner-sdk/node_modules/path-to-regexp/package.json +30 -0
- package/scanner-sdk/node_modules/picocolors/LICENSE +15 -0
- package/scanner-sdk/node_modules/picocolors/README.md +21 -0
- package/scanner-sdk/node_modules/picocolors/package.json +25 -0
- package/scanner-sdk/node_modules/picocolors/picocolors.browser.js +4 -0
- package/scanner-sdk/node_modules/picocolors/picocolors.d.ts +5 -0
- package/scanner-sdk/node_modules/picocolors/picocolors.js +75 -0
- package/scanner-sdk/node_modules/picocolors/types.d.ts +51 -0
- package/scanner-sdk/node_modules/proxy-addr/HISTORY.md +161 -0
- package/scanner-sdk/node_modules/proxy-addr/LICENSE +22 -0
- package/scanner-sdk/node_modules/proxy-addr/README.md +139 -0
- package/scanner-sdk/node_modules/proxy-addr/index.js +327 -0
- package/scanner-sdk/node_modules/proxy-addr/package.json +47 -0
- package/scanner-sdk/node_modules/qs/.editorconfig +46 -0
- package/scanner-sdk/node_modules/qs/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/qs/.github/SECURITY.md +11 -0
- package/scanner-sdk/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/scanner-sdk/node_modules/qs/.nycrc +13 -0
- package/scanner-sdk/node_modules/qs/CHANGELOG.md +644 -0
- package/scanner-sdk/node_modules/qs/LICENSE.md +29 -0
- package/scanner-sdk/node_modules/qs/README.md +740 -0
- package/scanner-sdk/node_modules/qs/dist/qs.js +141 -0
- package/scanner-sdk/node_modules/qs/eslint.config.mjs +56 -0
- package/scanner-sdk/node_modules/qs/lib/formats.js +23 -0
- package/scanner-sdk/node_modules/qs/lib/index.js +11 -0
- package/scanner-sdk/node_modules/qs/lib/parse.js +371 -0
- package/scanner-sdk/node_modules/qs/lib/stringify.js +356 -0
- package/scanner-sdk/node_modules/qs/lib/utils.js +340 -0
- package/scanner-sdk/node_modules/qs/package.json +94 -0
- package/scanner-sdk/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/scanner-sdk/node_modules/qs/test/parse.js +1512 -0
- package/scanner-sdk/node_modules/qs/test/stringify.js +1310 -0
- package/scanner-sdk/node_modules/qs/test/utils.js +397 -0
- package/scanner-sdk/node_modules/range-parser/HISTORY.md +56 -0
- package/scanner-sdk/node_modules/range-parser/LICENSE +23 -0
- package/scanner-sdk/node_modules/range-parser/README.md +84 -0
- package/scanner-sdk/node_modules/range-parser/index.js +162 -0
- package/scanner-sdk/node_modules/range-parser/package.json +44 -0
- package/scanner-sdk/node_modules/raw-body/LICENSE +22 -0
- package/scanner-sdk/node_modules/raw-body/README.md +223 -0
- package/scanner-sdk/node_modules/raw-body/index.d.ts +87 -0
- package/scanner-sdk/node_modules/raw-body/index.js +336 -0
- package/scanner-sdk/node_modules/raw-body/package.json +47 -0
- package/scanner-sdk/node_modules/safe-buffer/LICENSE +21 -0
- package/scanner-sdk/node_modules/safe-buffer/README.md +584 -0
- package/scanner-sdk/node_modules/safe-buffer/index.d.ts +187 -0
- package/scanner-sdk/node_modules/safe-buffer/index.js +65 -0
- package/scanner-sdk/node_modules/safe-buffer/package.json +51 -0
- package/scanner-sdk/node_modules/safer-buffer/LICENSE +21 -0
- package/scanner-sdk/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/scanner-sdk/node_modules/safer-buffer/Readme.md +156 -0
- package/scanner-sdk/node_modules/safer-buffer/dangerous.js +58 -0
- package/scanner-sdk/node_modules/safer-buffer/package.json +34 -0
- package/scanner-sdk/node_modules/safer-buffer/safer.js +77 -0
- package/scanner-sdk/node_modules/safer-buffer/tests.js +406 -0
- package/scanner-sdk/node_modules/send/HISTORY.md +538 -0
- package/scanner-sdk/node_modules/send/LICENSE +23 -0
- package/scanner-sdk/node_modules/send/README.md +327 -0
- package/scanner-sdk/node_modules/send/SECURITY.md +24 -0
- package/scanner-sdk/node_modules/send/index.js +1142 -0
- package/scanner-sdk/node_modules/send/node_modules/ms/index.js +162 -0
- package/scanner-sdk/node_modules/send/node_modules/ms/license.md +21 -0
- package/scanner-sdk/node_modules/send/node_modules/ms/package.json +38 -0
- package/scanner-sdk/node_modules/send/node_modules/ms/readme.md +59 -0
- package/scanner-sdk/node_modules/send/package.json +62 -0
- package/scanner-sdk/node_modules/serve-static/HISTORY.md +493 -0
- package/scanner-sdk/node_modules/serve-static/LICENSE +25 -0
- package/scanner-sdk/node_modules/serve-static/README.md +257 -0
- package/scanner-sdk/node_modules/serve-static/index.js +209 -0
- package/scanner-sdk/node_modules/serve-static/package.json +42 -0
- package/scanner-sdk/node_modules/setprototypeof/LICENSE +13 -0
- package/scanner-sdk/node_modules/setprototypeof/README.md +31 -0
- package/scanner-sdk/node_modules/setprototypeof/index.d.ts +2 -0
- package/scanner-sdk/node_modules/setprototypeof/index.js +17 -0
- package/scanner-sdk/node_modules/setprototypeof/package.json +38 -0
- package/scanner-sdk/node_modules/setprototypeof/test/index.js +24 -0
- package/scanner-sdk/node_modules/side-channel/.editorconfig +9 -0
- package/scanner-sdk/node_modules/side-channel/.eslintrc +12 -0
- package/scanner-sdk/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/side-channel/.nycrc +13 -0
- package/scanner-sdk/node_modules/side-channel/CHANGELOG.md +110 -0
- package/scanner-sdk/node_modules/side-channel/LICENSE +21 -0
- package/scanner-sdk/node_modules/side-channel/README.md +61 -0
- package/scanner-sdk/node_modules/side-channel/index.d.ts +14 -0
- package/scanner-sdk/node_modules/side-channel/index.js +43 -0
- package/scanner-sdk/node_modules/side-channel/package.json +85 -0
- package/scanner-sdk/node_modules/side-channel/test/index.js +104 -0
- package/scanner-sdk/node_modules/side-channel/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/side-channel-list/.editorconfig +9 -0
- package/scanner-sdk/node_modules/side-channel-list/.eslintrc +11 -0
- package/scanner-sdk/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/side-channel-list/.nycrc +13 -0
- package/scanner-sdk/node_modules/side-channel-list/CHANGELOG.md +15 -0
- package/scanner-sdk/node_modules/side-channel-list/LICENSE +21 -0
- package/scanner-sdk/node_modules/side-channel-list/README.md +62 -0
- package/scanner-sdk/node_modules/side-channel-list/index.d.ts +13 -0
- package/scanner-sdk/node_modules/side-channel-list/index.js +113 -0
- package/scanner-sdk/node_modules/side-channel-list/list.d.ts +14 -0
- package/scanner-sdk/node_modules/side-channel-list/package.json +77 -0
- package/scanner-sdk/node_modules/side-channel-list/test/index.js +104 -0
- package/scanner-sdk/node_modules/side-channel-list/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/side-channel-map/.editorconfig +9 -0
- package/scanner-sdk/node_modules/side-channel-map/.eslintrc +11 -0
- package/scanner-sdk/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/side-channel-map/.nycrc +13 -0
- package/scanner-sdk/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/scanner-sdk/node_modules/side-channel-map/LICENSE +21 -0
- package/scanner-sdk/node_modules/side-channel-map/README.md +62 -0
- package/scanner-sdk/node_modules/side-channel-map/index.d.ts +15 -0
- package/scanner-sdk/node_modules/side-channel-map/index.js +68 -0
- package/scanner-sdk/node_modules/side-channel-map/package.json +80 -0
- package/scanner-sdk/node_modules/side-channel-map/test/index.js +114 -0
- package/scanner-sdk/node_modules/side-channel-map/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/README.md +62 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/index.js +84 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/package.json +87 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/scanner-sdk/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/scanner-sdk/node_modules/statuses/HISTORY.md +87 -0
- package/scanner-sdk/node_modules/statuses/LICENSE +23 -0
- package/scanner-sdk/node_modules/statuses/README.md +139 -0
- package/scanner-sdk/node_modules/statuses/codes.json +65 -0
- package/scanner-sdk/node_modules/statuses/index.js +146 -0
- package/scanner-sdk/node_modules/statuses/package.json +49 -0
- package/scanner-sdk/node_modules/toidentifier/HISTORY.md +9 -0
- package/scanner-sdk/node_modules/toidentifier/LICENSE +21 -0
- package/scanner-sdk/node_modules/toidentifier/README.md +61 -0
- package/scanner-sdk/node_modules/toidentifier/index.js +32 -0
- package/scanner-sdk/node_modules/toidentifier/package.json +38 -0
- package/scanner-sdk/node_modules/type-is/HISTORY.md +259 -0
- package/scanner-sdk/node_modules/type-is/LICENSE +23 -0
- package/scanner-sdk/node_modules/type-is/README.md +170 -0
- package/scanner-sdk/node_modules/type-is/index.js +266 -0
- package/scanner-sdk/node_modules/type-is/package.json +45 -0
- package/scanner-sdk/node_modules/unpipe/HISTORY.md +4 -0
- package/scanner-sdk/node_modules/unpipe/LICENSE +22 -0
- package/scanner-sdk/node_modules/unpipe/README.md +43 -0
- package/scanner-sdk/node_modules/unpipe/index.js +69 -0
- package/scanner-sdk/node_modules/unpipe/package.json +27 -0
- package/scanner-sdk/node_modules/utils-merge/LICENSE +20 -0
- package/scanner-sdk/node_modules/utils-merge/README.md +34 -0
- package/scanner-sdk/node_modules/utils-merge/index.js +23 -0
- package/scanner-sdk/node_modules/utils-merge/package.json +40 -0
- package/scanner-sdk/node_modules/vary/HISTORY.md +39 -0
- package/scanner-sdk/node_modules/vary/LICENSE +22 -0
- package/scanner-sdk/node_modules/vary/README.md +101 -0
- package/scanner-sdk/node_modules/vary/index.js +149 -0
- package/scanner-sdk/node_modules/vary/package.json +43 -0
- package/scanner-sdk/package-lock.json +1046 -0
- package/scanner-sdk/package.json +25 -0
- package/scanner-sdk/scan/adonis.js +177 -0
- package/scanner-sdk/scan/express-files.js +326 -0
- package/scanner-sdk/scan/express-static.js +292 -0
- package/scanner-sdk/scan/express.js +217 -0
- package/scanner-sdk/scan/fastify.js +1162 -0
- package/scanner-sdk/scan/field-extractors.js +779 -0
- package/scanner-sdk/scan/frontend.js +563 -0
- package/scanner-sdk/scan/hapi.js +997 -0
- package/scanner-sdk/scan/koa.js +250 -0
- package/scanner-sdk/scan/nest-source.js +918 -0
- package/scanner-sdk/scan/nestjs.js +660 -0
- package/scanner-sdk/scan/nextjs.js +322 -0
- package/scanner-sdk/scan/nuxt-value-types.js +521 -0
- package/scanner-sdk/scan/nuxt.js +462 -0
- package/scanner-sdk/scan/remix-routes.js +261 -0
- package/scanner-sdk/scan/remix.js +348 -0
- package/scanner-sdk/scan/response-shape.js +415 -0
- package/scanner-sdk/scan/route-calls.js +663 -0
- package/scanner-sdk/scan/route-segments.js +378 -0
- package/scanner-sdk/scan/sveltekit-body.js +491 -0
- package/scanner-sdk/scan/sveltekit-reply.js +328 -0
- package/scanner-sdk/scan/sveltekit.js +149 -0
- package/scanner-sdk/scan/text-utils.js +517 -0
- package/scanner-sdk/scanner.js +52 -0
- package/undo/bin/scan.js +23 -0
- package/undo/index.js +104 -0
- package/undo/lib/action-id.js +38 -0
- package/undo/lib/capture-guard.js +8 -0
- package/undo/lib/capture-mongo.js +341 -0
- package/undo/lib/capture-mssql.js +901 -0
- package/undo/lib/capture-mysql.js +909 -0
- package/undo/lib/capture-prisma-mongo.js +297 -0
- package/undo/lib/capture-prisma.js +900 -0
- package/undo/lib/capture-sql.js +656 -0
- package/undo/lib/capture-sqlite.js +933 -0
- package/undo/lib/gate.js +190 -0
- package/undo/lib/hooks/better-sqlite3.js +198 -0
- package/undo/lib/hooks/mongodb.js +124 -0
- package/undo/lib/hooks/mssql.js +209 -0
- package/undo/lib/hooks/mysql2.js +148 -0
- package/undo/lib/hooks/pg.js +156 -0
- package/undo/lib/hooks/prisma.js +335 -0
- package/undo/lib/hooks/sqlite3.js +310 -0
- package/undo/lib/loader-watch.js +64 -0
- package/undo/lib/log.js +34 -0
- package/undo/lib/mssql-run.js +95 -0
- package/undo/lib/prisma-structure.js +397 -0
- package/undo/lib/report.js +50 -0
- package/undo/lib/requester.js +33 -0
- package/undo/lib/scanner.js +400 -0
- package/undo/lib/schema-reader.js +129 -0
- package/undo/lib/setup-check.js +294 -0
- package/undo/lib/snapshot-crypto.js +96 -0
- package/undo/lib/snapshot-sql.js +180 -0
- package/undo/lib/snapshot-store-mongo.js +154 -0
- package/undo/lib/snapshot-store-prisma-mongo.js +192 -0
- package/undo/lib/snapshot-store-sqlite.js +140 -0
- package/undo/lib/snapshot-store.js +272 -0
- package/undo/lib/sql-classify-mssql.js +230 -0
- package/undo/lib/sql-classify-mysql.js +167 -0
- package/undo/lib/sql-classify.js +169 -0
- package/undo/lib/sqlite-sql.js +357 -0
- package/undo/lib/tagger.js +333 -0
- package/undo/lib/undo-mongo.js +248 -0
- package/undo/lib/undo-mssql.js +389 -0
- package/undo/lib/undo-mysql.js +297 -0
- package/undo/lib/undo-pg.js +248 -0
- package/undo/lib/undo-prisma-mongo.js +263 -0
- package/undo/lib/undo-prisma.js +404 -0
- package/undo/lib/undo-route.js +197 -0
- package/undo/lib/undo-sqlite.js +332 -0
- package/undo/register.js +7 -0
- package/scanner.js +0 -3008
- /package/{bin → scanner-sdk/bin}/scan-frontend.js +0 -0
- /package/{client.js → scanner-sdk/client.js} +0 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
// Matches the scheme of a URL, eg "http://"
|
|
2
|
+
const schemeRegex = /^[\w+.-]+:\/\//;
|
|
3
|
+
/**
|
|
4
|
+
* Matches the parts of a URL:
|
|
5
|
+
* 1. Scheme, including ":", guaranteed.
|
|
6
|
+
* 2. User/password, including "@", optional.
|
|
7
|
+
* 3. Host, guaranteed.
|
|
8
|
+
* 4. Port, including ":", optional.
|
|
9
|
+
* 5. Path, including "/", optional.
|
|
10
|
+
* 6. Query, including "?", optional.
|
|
11
|
+
* 7. Hash, including "#", optional.
|
|
12
|
+
*/
|
|
13
|
+
const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
|
|
14
|
+
/**
|
|
15
|
+
* File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start
|
|
16
|
+
* with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).
|
|
17
|
+
*
|
|
18
|
+
* 1. Host, optional.
|
|
19
|
+
* 2. Path, which may include "/", guaranteed.
|
|
20
|
+
* 3. Query, including "?", optional.
|
|
21
|
+
* 4. Hash, including "#", optional.
|
|
22
|
+
*/
|
|
23
|
+
const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
|
|
24
|
+
function isAbsoluteUrl(input) {
|
|
25
|
+
return schemeRegex.test(input);
|
|
26
|
+
}
|
|
27
|
+
function isSchemeRelativeUrl(input) {
|
|
28
|
+
return input.startsWith('//');
|
|
29
|
+
}
|
|
30
|
+
function isAbsolutePath(input) {
|
|
31
|
+
return input.startsWith('/');
|
|
32
|
+
}
|
|
33
|
+
function isFileUrl(input) {
|
|
34
|
+
return input.startsWith('file:');
|
|
35
|
+
}
|
|
36
|
+
function isRelative(input) {
|
|
37
|
+
return /^[.?#]/.test(input);
|
|
38
|
+
}
|
|
39
|
+
function parseAbsoluteUrl(input) {
|
|
40
|
+
const match = urlRegex.exec(input);
|
|
41
|
+
return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || '');
|
|
42
|
+
}
|
|
43
|
+
function parseFileUrl(input) {
|
|
44
|
+
const match = fileRegex.exec(input);
|
|
45
|
+
const path = match[2];
|
|
46
|
+
return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || '');
|
|
47
|
+
}
|
|
48
|
+
function makeUrl(scheme, user, host, port, path, query, hash) {
|
|
49
|
+
return {
|
|
50
|
+
scheme,
|
|
51
|
+
user,
|
|
52
|
+
host,
|
|
53
|
+
port,
|
|
54
|
+
path,
|
|
55
|
+
query,
|
|
56
|
+
hash,
|
|
57
|
+
type: 7 /* Absolute */,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function parseUrl(input) {
|
|
61
|
+
if (isSchemeRelativeUrl(input)) {
|
|
62
|
+
const url = parseAbsoluteUrl('http:' + input);
|
|
63
|
+
url.scheme = '';
|
|
64
|
+
url.type = 6 /* SchemeRelative */;
|
|
65
|
+
return url;
|
|
66
|
+
}
|
|
67
|
+
if (isAbsolutePath(input)) {
|
|
68
|
+
const url = parseAbsoluteUrl('http://foo.com' + input);
|
|
69
|
+
url.scheme = '';
|
|
70
|
+
url.host = '';
|
|
71
|
+
url.type = 5 /* AbsolutePath */;
|
|
72
|
+
return url;
|
|
73
|
+
}
|
|
74
|
+
if (isFileUrl(input))
|
|
75
|
+
return parseFileUrl(input);
|
|
76
|
+
if (isAbsoluteUrl(input))
|
|
77
|
+
return parseAbsoluteUrl(input);
|
|
78
|
+
const url = parseAbsoluteUrl('http://foo.com/' + input);
|
|
79
|
+
url.scheme = '';
|
|
80
|
+
url.host = '';
|
|
81
|
+
url.type = input
|
|
82
|
+
? input.startsWith('?')
|
|
83
|
+
? 3 /* Query */
|
|
84
|
+
: input.startsWith('#')
|
|
85
|
+
? 2 /* Hash */
|
|
86
|
+
: 4 /* RelativePath */
|
|
87
|
+
: 1 /* Empty */;
|
|
88
|
+
return url;
|
|
89
|
+
}
|
|
90
|
+
function stripPathFilename(path) {
|
|
91
|
+
// If a path ends with a parent directory "..", then it's a relative path with excess parent
|
|
92
|
+
// paths. It's not a file, so we can't strip it.
|
|
93
|
+
if (path.endsWith('/..'))
|
|
94
|
+
return path;
|
|
95
|
+
const index = path.lastIndexOf('/');
|
|
96
|
+
return path.slice(0, index + 1);
|
|
97
|
+
}
|
|
98
|
+
function mergePaths(url, base) {
|
|
99
|
+
normalizePath(base, base.type);
|
|
100
|
+
// If the path is just a "/", then it was an empty path to begin with (remember, we're a relative
|
|
101
|
+
// path).
|
|
102
|
+
if (url.path === '/') {
|
|
103
|
+
url.path = base.path;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
// Resolution happens relative to the base path's directory, not the file.
|
|
107
|
+
url.path = stripPathFilename(base.path) + url.path;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The path can have empty directories "//", unneeded parents "foo/..", or current directory
|
|
112
|
+
* "foo/.". We need to normalize to a standard representation.
|
|
113
|
+
*/
|
|
114
|
+
function normalizePath(url, type) {
|
|
115
|
+
const rel = type <= 4 /* RelativePath */;
|
|
116
|
+
const pieces = url.path.split('/');
|
|
117
|
+
// We need to preserve the first piece always, so that we output a leading slash. The item at
|
|
118
|
+
// pieces[0] is an empty string.
|
|
119
|
+
let pointer = 1;
|
|
120
|
+
// Positive is the number of real directories we've output, used for popping a parent directory.
|
|
121
|
+
// Eg, "foo/bar/.." will have a positive 2, and we can decrement to be left with just "foo".
|
|
122
|
+
let positive = 0;
|
|
123
|
+
// We need to keep a trailing slash if we encounter an empty directory (eg, splitting "foo/" will
|
|
124
|
+
// generate `["foo", ""]` pieces). And, if we pop a parent directory. But once we encounter a
|
|
125
|
+
// real directory, we won't need to append, unless the other conditions happen again.
|
|
126
|
+
let addTrailingSlash = false;
|
|
127
|
+
for (let i = 1; i < pieces.length; i++) {
|
|
128
|
+
const piece = pieces[i];
|
|
129
|
+
// An empty directory, could be a trailing slash, or just a double "//" in the path.
|
|
130
|
+
if (!piece) {
|
|
131
|
+
addTrailingSlash = true;
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
// If we encounter a real directory, then we don't need to append anymore.
|
|
135
|
+
addTrailingSlash = false;
|
|
136
|
+
// A current directory, which we can always drop.
|
|
137
|
+
if (piece === '.')
|
|
138
|
+
continue;
|
|
139
|
+
// A parent directory, we need to see if there are any real directories we can pop. Else, we
|
|
140
|
+
// have an excess of parents, and we'll need to keep the "..".
|
|
141
|
+
if (piece === '..') {
|
|
142
|
+
if (positive) {
|
|
143
|
+
addTrailingSlash = true;
|
|
144
|
+
positive--;
|
|
145
|
+
pointer--;
|
|
146
|
+
}
|
|
147
|
+
else if (rel) {
|
|
148
|
+
// If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute
|
|
149
|
+
// URL, protocol relative URL, or an absolute path, we don't need to keep excess.
|
|
150
|
+
pieces[pointer++] = piece;
|
|
151
|
+
}
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
// We've encountered a real directory. Move it to the next insertion pointer, which accounts for
|
|
155
|
+
// any popped or dropped directories.
|
|
156
|
+
pieces[pointer++] = piece;
|
|
157
|
+
positive++;
|
|
158
|
+
}
|
|
159
|
+
let path = '';
|
|
160
|
+
for (let i = 1; i < pointer; i++) {
|
|
161
|
+
path += '/' + pieces[i];
|
|
162
|
+
}
|
|
163
|
+
if (!path || (addTrailingSlash && !path.endsWith('/..'))) {
|
|
164
|
+
path += '/';
|
|
165
|
+
}
|
|
166
|
+
url.path = path;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Attempts to resolve `input` URL/path relative to `base`.
|
|
170
|
+
*/
|
|
171
|
+
function resolve(input, base) {
|
|
172
|
+
if (!input && !base)
|
|
173
|
+
return '';
|
|
174
|
+
const url = parseUrl(input);
|
|
175
|
+
let inputType = url.type;
|
|
176
|
+
if (base && inputType !== 7 /* Absolute */) {
|
|
177
|
+
const baseUrl = parseUrl(base);
|
|
178
|
+
const baseType = baseUrl.type;
|
|
179
|
+
switch (inputType) {
|
|
180
|
+
case 1 /* Empty */:
|
|
181
|
+
url.hash = baseUrl.hash;
|
|
182
|
+
// fall through
|
|
183
|
+
case 2 /* Hash */:
|
|
184
|
+
url.query = baseUrl.query;
|
|
185
|
+
// fall through
|
|
186
|
+
case 3 /* Query */:
|
|
187
|
+
case 4 /* RelativePath */:
|
|
188
|
+
mergePaths(url, baseUrl);
|
|
189
|
+
// fall through
|
|
190
|
+
case 5 /* AbsolutePath */:
|
|
191
|
+
// The host, user, and port are joined, you can't copy one without the others.
|
|
192
|
+
url.user = baseUrl.user;
|
|
193
|
+
url.host = baseUrl.host;
|
|
194
|
+
url.port = baseUrl.port;
|
|
195
|
+
// fall through
|
|
196
|
+
case 6 /* SchemeRelative */:
|
|
197
|
+
// The input doesn't have a schema at least, so we need to copy at least that over.
|
|
198
|
+
url.scheme = baseUrl.scheme;
|
|
199
|
+
}
|
|
200
|
+
if (baseType > inputType)
|
|
201
|
+
inputType = baseType;
|
|
202
|
+
}
|
|
203
|
+
normalizePath(url, inputType);
|
|
204
|
+
const queryHash = url.query + url.hash;
|
|
205
|
+
switch (inputType) {
|
|
206
|
+
// This is impossible, because of the empty checks at the start of the function.
|
|
207
|
+
// case UrlType.Empty:
|
|
208
|
+
case 2 /* Hash */:
|
|
209
|
+
case 3 /* Query */:
|
|
210
|
+
return queryHash;
|
|
211
|
+
case 4 /* RelativePath */: {
|
|
212
|
+
// The first char is always a "/", and we need it to be relative.
|
|
213
|
+
const path = url.path.slice(1);
|
|
214
|
+
if (!path)
|
|
215
|
+
return queryHash || '.';
|
|
216
|
+
if (isRelative(base || input) && !isRelative(path)) {
|
|
217
|
+
// If base started with a leading ".", or there is no base and input started with a ".",
|
|
218
|
+
// then we need to ensure that the relative path starts with a ".". We don't know if
|
|
219
|
+
// relative starts with a "..", though, so check before prepending.
|
|
220
|
+
return './' + path + queryHash;
|
|
221
|
+
}
|
|
222
|
+
return path + queryHash;
|
|
223
|
+
}
|
|
224
|
+
case 5 /* AbsolutePath */:
|
|
225
|
+
return url.path + queryHash;
|
|
226
|
+
default:
|
|
227
|
+
return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export { resolve as default };
|
|
232
|
+
//# sourceMappingURL=resolve-uri.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-uri.mjs","sources":["../src/resolve-uri.ts"],"sourcesContent":["// Matches the scheme of a URL, eg \"http://\"\nconst schemeRegex = /^[\\w+.-]+:\\/\\//;\n\n/**\n * Matches the parts of a URL:\n * 1. Scheme, including \":\", guaranteed.\n * 2. User/password, including \"@\", optional.\n * 3. Host, guaranteed.\n * 4. Port, including \":\", optional.\n * 5. Path, including \"/\", optional.\n * 6. Query, including \"?\", optional.\n * 7. Hash, including \"#\", optional.\n */\nconst urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/;\n\n/**\n * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start\n * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).\n *\n * 1. Host, optional.\n * 2. Path, which may include \"/\", guaranteed.\n * 3. Query, including \"?\", optional.\n * 4. Hash, including \"#\", optional.\n */\nconst fileRegex = /^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;\n\ntype Url = {\n scheme: string;\n user: string;\n host: string;\n port: string;\n path: string;\n query: string;\n hash: string;\n type: UrlType;\n};\n\nconst enum UrlType {\n Empty = 1,\n Hash = 2,\n Query = 3,\n RelativePath = 4,\n AbsolutePath = 5,\n SchemeRelative = 6,\n Absolute = 7,\n}\n\nfunction isAbsoluteUrl(input: string): boolean {\n return schemeRegex.test(input);\n}\n\nfunction isSchemeRelativeUrl(input: string): boolean {\n return input.startsWith('//');\n}\n\nfunction isAbsolutePath(input: string): boolean {\n return input.startsWith('/');\n}\n\nfunction isFileUrl(input: string): boolean {\n return input.startsWith('file:');\n}\n\nfunction isRelative(input: string): boolean {\n return /^[.?#]/.test(input);\n}\n\nfunction parseAbsoluteUrl(input: string): Url {\n const match = urlRegex.exec(input)!;\n return makeUrl(\n match[1],\n match[2] || '',\n match[3],\n match[4] || '',\n match[5] || '/',\n match[6] || '',\n match[7] || '',\n );\n}\n\nfunction parseFileUrl(input: string): Url {\n const match = fileRegex.exec(input)!;\n const path = match[2];\n return makeUrl(\n 'file:',\n '',\n match[1] || '',\n '',\n isAbsolutePath(path) ? path : '/' + path,\n match[3] || '',\n match[4] || '',\n );\n}\n\nfunction makeUrl(\n scheme: string,\n user: string,\n host: string,\n port: string,\n path: string,\n query: string,\n hash: string,\n): Url {\n return {\n scheme,\n user,\n host,\n port,\n path,\n query,\n hash,\n type: UrlType.Absolute,\n };\n}\n\nfunction parseUrl(input: string): Url {\n if (isSchemeRelativeUrl(input)) {\n const url = parseAbsoluteUrl('http:' + input);\n url.scheme = '';\n url.type = UrlType.SchemeRelative;\n return url;\n }\n\n if (isAbsolutePath(input)) {\n const url = parseAbsoluteUrl('http://foo.com' + input);\n url.scheme = '';\n url.host = '';\n url.type = UrlType.AbsolutePath;\n return url;\n }\n\n if (isFileUrl(input)) return parseFileUrl(input);\n\n if (isAbsoluteUrl(input)) return parseAbsoluteUrl(input);\n\n const url = parseAbsoluteUrl('http://foo.com/' + input);\n url.scheme = '';\n url.host = '';\n url.type = input\n ? input.startsWith('?')\n ? UrlType.Query\n : input.startsWith('#')\n ? UrlType.Hash\n : UrlType.RelativePath\n : UrlType.Empty;\n return url;\n}\n\nfunction stripPathFilename(path: string): string {\n // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n // paths. It's not a file, so we can't strip it.\n if (path.endsWith('/..')) return path;\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n\nfunction mergePaths(url: Url, base: Url) {\n normalizePath(base, base.type);\n\n // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n // path).\n if (url.path === '/') {\n url.path = base.path;\n } else {\n // Resolution happens relative to the base path's directory, not the file.\n url.path = stripPathFilename(base.path) + url.path;\n }\n}\n\n/**\n * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n * \"foo/.\". We need to normalize to a standard representation.\n */\nfunction normalizePath(url: Url, type: UrlType) {\n const rel = type <= UrlType.RelativePath;\n const pieces = url.path.split('/');\n\n // We need to preserve the first piece always, so that we output a leading slash. The item at\n // pieces[0] is an empty string.\n let pointer = 1;\n\n // Positive is the number of real directories we've output, used for popping a parent directory.\n // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n let positive = 0;\n\n // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n // real directory, we won't need to append, unless the other conditions happen again.\n let addTrailingSlash = false;\n\n for (let i = 1; i < pieces.length; i++) {\n const piece = pieces[i];\n\n // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n if (!piece) {\n addTrailingSlash = true;\n continue;\n }\n\n // If we encounter a real directory, then we don't need to append anymore.\n addTrailingSlash = false;\n\n // A current directory, which we can always drop.\n if (piece === '.') continue;\n\n // A parent directory, we need to see if there are any real directories we can pop. Else, we\n // have an excess of parents, and we'll need to keep the \"..\".\n if (piece === '..') {\n if (positive) {\n addTrailingSlash = true;\n positive--;\n pointer--;\n } else if (rel) {\n // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n pieces[pointer++] = piece;\n }\n continue;\n }\n\n // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n // any popped or dropped directories.\n pieces[pointer++] = piece;\n positive++;\n }\n\n let path = '';\n for (let i = 1; i < pointer; i++) {\n path += '/' + pieces[i];\n }\n if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n path += '/';\n }\n url.path = path;\n}\n\n/**\n * Attempts to resolve `input` URL/path relative to `base`.\n */\nexport default function resolve(input: string, base: string | undefined): string {\n if (!input && !base) return '';\n\n const url = parseUrl(input);\n let inputType = url.type;\n\n if (base && inputType !== UrlType.Absolute) {\n const baseUrl = parseUrl(base);\n const baseType = baseUrl.type;\n\n switch (inputType) {\n case UrlType.Empty:\n url.hash = baseUrl.hash;\n // fall through\n\n case UrlType.Hash:\n url.query = baseUrl.query;\n // fall through\n\n case UrlType.Query:\n case UrlType.RelativePath:\n mergePaths(url, baseUrl);\n // fall through\n\n case UrlType.AbsolutePath:\n // The host, user, and port are joined, you can't copy one without the others.\n url.user = baseUrl.user;\n url.host = baseUrl.host;\n url.port = baseUrl.port;\n // fall through\n\n case UrlType.SchemeRelative:\n // The input doesn't have a schema at least, so we need to copy at least that over.\n url.scheme = baseUrl.scheme;\n }\n if (baseType > inputType) inputType = baseType;\n }\n\n normalizePath(url, inputType);\n\n const queryHash = url.query + url.hash;\n switch (inputType) {\n // This is impossible, because of the empty checks at the start of the function.\n // case UrlType.Empty:\n\n case UrlType.Hash:\n case UrlType.Query:\n return queryHash;\n\n case UrlType.RelativePath: {\n // The first char is always a \"/\", and we need it to be relative.\n const path = url.path.slice(1);\n\n if (!path) return queryHash || '.';\n\n if (isRelative(base || input) && !isRelative(path)) {\n // If base started with a leading \".\", or there is no base and input started with a \".\",\n // then we need to ensure that the relative path starts with a \".\". We don't know if\n // relative starts with a \"..\", though, so check before prepending.\n return './' + path + queryHash;\n }\n\n return path + queryHash;\n }\n\n case UrlType.AbsolutePath:\n return url.path + queryHash;\n\n default:\n return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;\n }\n}\n"],"names":[],"mappings":"AAAA;AACA,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAErC;;;;;;;;;;AAUA,MAAM,QAAQ,GAAG,0EAA0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;;"}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.resolveURI = factory());
|
|
5
|
+
})(this, (function () { 'use strict';
|
|
6
|
+
|
|
7
|
+
// Matches the scheme of a URL, eg "http://"
|
|
8
|
+
const schemeRegex = /^[\w+.-]+:\/\//;
|
|
9
|
+
/**
|
|
10
|
+
* Matches the parts of a URL:
|
|
11
|
+
* 1. Scheme, including ":", guaranteed.
|
|
12
|
+
* 2. User/password, including "@", optional.
|
|
13
|
+
* 3. Host, guaranteed.
|
|
14
|
+
* 4. Port, including ":", optional.
|
|
15
|
+
* 5. Path, including "/", optional.
|
|
16
|
+
* 6. Query, including "?", optional.
|
|
17
|
+
* 7. Hash, including "#", optional.
|
|
18
|
+
*/
|
|
19
|
+
const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
|
|
20
|
+
/**
|
|
21
|
+
* File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start
|
|
22
|
+
* with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).
|
|
23
|
+
*
|
|
24
|
+
* 1. Host, optional.
|
|
25
|
+
* 2. Path, which may include "/", guaranteed.
|
|
26
|
+
* 3. Query, including "?", optional.
|
|
27
|
+
* 4. Hash, including "#", optional.
|
|
28
|
+
*/
|
|
29
|
+
const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
|
|
30
|
+
function isAbsoluteUrl(input) {
|
|
31
|
+
return schemeRegex.test(input);
|
|
32
|
+
}
|
|
33
|
+
function isSchemeRelativeUrl(input) {
|
|
34
|
+
return input.startsWith('//');
|
|
35
|
+
}
|
|
36
|
+
function isAbsolutePath(input) {
|
|
37
|
+
return input.startsWith('/');
|
|
38
|
+
}
|
|
39
|
+
function isFileUrl(input) {
|
|
40
|
+
return input.startsWith('file:');
|
|
41
|
+
}
|
|
42
|
+
function isRelative(input) {
|
|
43
|
+
return /^[.?#]/.test(input);
|
|
44
|
+
}
|
|
45
|
+
function parseAbsoluteUrl(input) {
|
|
46
|
+
const match = urlRegex.exec(input);
|
|
47
|
+
return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || '');
|
|
48
|
+
}
|
|
49
|
+
function parseFileUrl(input) {
|
|
50
|
+
const match = fileRegex.exec(input);
|
|
51
|
+
const path = match[2];
|
|
52
|
+
return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || '');
|
|
53
|
+
}
|
|
54
|
+
function makeUrl(scheme, user, host, port, path, query, hash) {
|
|
55
|
+
return {
|
|
56
|
+
scheme,
|
|
57
|
+
user,
|
|
58
|
+
host,
|
|
59
|
+
port,
|
|
60
|
+
path,
|
|
61
|
+
query,
|
|
62
|
+
hash,
|
|
63
|
+
type: 7 /* Absolute */,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function parseUrl(input) {
|
|
67
|
+
if (isSchemeRelativeUrl(input)) {
|
|
68
|
+
const url = parseAbsoluteUrl('http:' + input);
|
|
69
|
+
url.scheme = '';
|
|
70
|
+
url.type = 6 /* SchemeRelative */;
|
|
71
|
+
return url;
|
|
72
|
+
}
|
|
73
|
+
if (isAbsolutePath(input)) {
|
|
74
|
+
const url = parseAbsoluteUrl('http://foo.com' + input);
|
|
75
|
+
url.scheme = '';
|
|
76
|
+
url.host = '';
|
|
77
|
+
url.type = 5 /* AbsolutePath */;
|
|
78
|
+
return url;
|
|
79
|
+
}
|
|
80
|
+
if (isFileUrl(input))
|
|
81
|
+
return parseFileUrl(input);
|
|
82
|
+
if (isAbsoluteUrl(input))
|
|
83
|
+
return parseAbsoluteUrl(input);
|
|
84
|
+
const url = parseAbsoluteUrl('http://foo.com/' + input);
|
|
85
|
+
url.scheme = '';
|
|
86
|
+
url.host = '';
|
|
87
|
+
url.type = input
|
|
88
|
+
? input.startsWith('?')
|
|
89
|
+
? 3 /* Query */
|
|
90
|
+
: input.startsWith('#')
|
|
91
|
+
? 2 /* Hash */
|
|
92
|
+
: 4 /* RelativePath */
|
|
93
|
+
: 1 /* Empty */;
|
|
94
|
+
return url;
|
|
95
|
+
}
|
|
96
|
+
function stripPathFilename(path) {
|
|
97
|
+
// If a path ends with a parent directory "..", then it's a relative path with excess parent
|
|
98
|
+
// paths. It's not a file, so we can't strip it.
|
|
99
|
+
if (path.endsWith('/..'))
|
|
100
|
+
return path;
|
|
101
|
+
const index = path.lastIndexOf('/');
|
|
102
|
+
return path.slice(0, index + 1);
|
|
103
|
+
}
|
|
104
|
+
function mergePaths(url, base) {
|
|
105
|
+
normalizePath(base, base.type);
|
|
106
|
+
// If the path is just a "/", then it was an empty path to begin with (remember, we're a relative
|
|
107
|
+
// path).
|
|
108
|
+
if (url.path === '/') {
|
|
109
|
+
url.path = base.path;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
// Resolution happens relative to the base path's directory, not the file.
|
|
113
|
+
url.path = stripPathFilename(base.path) + url.path;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The path can have empty directories "//", unneeded parents "foo/..", or current directory
|
|
118
|
+
* "foo/.". We need to normalize to a standard representation.
|
|
119
|
+
*/
|
|
120
|
+
function normalizePath(url, type) {
|
|
121
|
+
const rel = type <= 4 /* RelativePath */;
|
|
122
|
+
const pieces = url.path.split('/');
|
|
123
|
+
// We need to preserve the first piece always, so that we output a leading slash. The item at
|
|
124
|
+
// pieces[0] is an empty string.
|
|
125
|
+
let pointer = 1;
|
|
126
|
+
// Positive is the number of real directories we've output, used for popping a parent directory.
|
|
127
|
+
// Eg, "foo/bar/.." will have a positive 2, and we can decrement to be left with just "foo".
|
|
128
|
+
let positive = 0;
|
|
129
|
+
// We need to keep a trailing slash if we encounter an empty directory (eg, splitting "foo/" will
|
|
130
|
+
// generate `["foo", ""]` pieces). And, if we pop a parent directory. But once we encounter a
|
|
131
|
+
// real directory, we won't need to append, unless the other conditions happen again.
|
|
132
|
+
let addTrailingSlash = false;
|
|
133
|
+
for (let i = 1; i < pieces.length; i++) {
|
|
134
|
+
const piece = pieces[i];
|
|
135
|
+
// An empty directory, could be a trailing slash, or just a double "//" in the path.
|
|
136
|
+
if (!piece) {
|
|
137
|
+
addTrailingSlash = true;
|
|
138
|
+
continue;
|
|
139
|
+
}
|
|
140
|
+
// If we encounter a real directory, then we don't need to append anymore.
|
|
141
|
+
addTrailingSlash = false;
|
|
142
|
+
// A current directory, which we can always drop.
|
|
143
|
+
if (piece === '.')
|
|
144
|
+
continue;
|
|
145
|
+
// A parent directory, we need to see if there are any real directories we can pop. Else, we
|
|
146
|
+
// have an excess of parents, and we'll need to keep the "..".
|
|
147
|
+
if (piece === '..') {
|
|
148
|
+
if (positive) {
|
|
149
|
+
addTrailingSlash = true;
|
|
150
|
+
positive--;
|
|
151
|
+
pointer--;
|
|
152
|
+
}
|
|
153
|
+
else if (rel) {
|
|
154
|
+
// If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute
|
|
155
|
+
// URL, protocol relative URL, or an absolute path, we don't need to keep excess.
|
|
156
|
+
pieces[pointer++] = piece;
|
|
157
|
+
}
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
// We've encountered a real directory. Move it to the next insertion pointer, which accounts for
|
|
161
|
+
// any popped or dropped directories.
|
|
162
|
+
pieces[pointer++] = piece;
|
|
163
|
+
positive++;
|
|
164
|
+
}
|
|
165
|
+
let path = '';
|
|
166
|
+
for (let i = 1; i < pointer; i++) {
|
|
167
|
+
path += '/' + pieces[i];
|
|
168
|
+
}
|
|
169
|
+
if (!path || (addTrailingSlash && !path.endsWith('/..'))) {
|
|
170
|
+
path += '/';
|
|
171
|
+
}
|
|
172
|
+
url.path = path;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Attempts to resolve `input` URL/path relative to `base`.
|
|
176
|
+
*/
|
|
177
|
+
function resolve(input, base) {
|
|
178
|
+
if (!input && !base)
|
|
179
|
+
return '';
|
|
180
|
+
const url = parseUrl(input);
|
|
181
|
+
let inputType = url.type;
|
|
182
|
+
if (base && inputType !== 7 /* Absolute */) {
|
|
183
|
+
const baseUrl = parseUrl(base);
|
|
184
|
+
const baseType = baseUrl.type;
|
|
185
|
+
switch (inputType) {
|
|
186
|
+
case 1 /* Empty */:
|
|
187
|
+
url.hash = baseUrl.hash;
|
|
188
|
+
// fall through
|
|
189
|
+
case 2 /* Hash */:
|
|
190
|
+
url.query = baseUrl.query;
|
|
191
|
+
// fall through
|
|
192
|
+
case 3 /* Query */:
|
|
193
|
+
case 4 /* RelativePath */:
|
|
194
|
+
mergePaths(url, baseUrl);
|
|
195
|
+
// fall through
|
|
196
|
+
case 5 /* AbsolutePath */:
|
|
197
|
+
// The host, user, and port are joined, you can't copy one without the others.
|
|
198
|
+
url.user = baseUrl.user;
|
|
199
|
+
url.host = baseUrl.host;
|
|
200
|
+
url.port = baseUrl.port;
|
|
201
|
+
// fall through
|
|
202
|
+
case 6 /* SchemeRelative */:
|
|
203
|
+
// The input doesn't have a schema at least, so we need to copy at least that over.
|
|
204
|
+
url.scheme = baseUrl.scheme;
|
|
205
|
+
}
|
|
206
|
+
if (baseType > inputType)
|
|
207
|
+
inputType = baseType;
|
|
208
|
+
}
|
|
209
|
+
normalizePath(url, inputType);
|
|
210
|
+
const queryHash = url.query + url.hash;
|
|
211
|
+
switch (inputType) {
|
|
212
|
+
// This is impossible, because of the empty checks at the start of the function.
|
|
213
|
+
// case UrlType.Empty:
|
|
214
|
+
case 2 /* Hash */:
|
|
215
|
+
case 3 /* Query */:
|
|
216
|
+
return queryHash;
|
|
217
|
+
case 4 /* RelativePath */: {
|
|
218
|
+
// The first char is always a "/", and we need it to be relative.
|
|
219
|
+
const path = url.path.slice(1);
|
|
220
|
+
if (!path)
|
|
221
|
+
return queryHash || '.';
|
|
222
|
+
if (isRelative(base || input) && !isRelative(path)) {
|
|
223
|
+
// If base started with a leading ".", or there is no base and input started with a ".",
|
|
224
|
+
// then we need to ensure that the relative path starts with a ".". We don't know if
|
|
225
|
+
// relative starts with a "..", though, so check before prepending.
|
|
226
|
+
return './' + path + queryHash;
|
|
227
|
+
}
|
|
228
|
+
return path + queryHash;
|
|
229
|
+
}
|
|
230
|
+
case 5 /* AbsolutePath */:
|
|
231
|
+
return url.path + queryHash;
|
|
232
|
+
default:
|
|
233
|
+
return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
return resolve;
|
|
238
|
+
|
|
239
|
+
}));
|
|
240
|
+
//# sourceMappingURL=resolve-uri.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-uri.umd.js","sources":["../src/resolve-uri.ts"],"sourcesContent":["// Matches the scheme of a URL, eg \"http://\"\nconst schemeRegex = /^[\\w+.-]+:\\/\\//;\n\n/**\n * Matches the parts of a URL:\n * 1. Scheme, including \":\", guaranteed.\n * 2. User/password, including \"@\", optional.\n * 3. Host, guaranteed.\n * 4. Port, including \":\", optional.\n * 5. Path, including \"/\", optional.\n * 6. Query, including \"?\", optional.\n * 7. Hash, including \"#\", optional.\n */\nconst urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/;\n\n/**\n * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start\n * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).\n *\n * 1. Host, optional.\n * 2. Path, which may include \"/\", guaranteed.\n * 3. Query, including \"?\", optional.\n * 4. Hash, including \"#\", optional.\n */\nconst fileRegex = /^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;\n\ntype Url = {\n scheme: string;\n user: string;\n host: string;\n port: string;\n path: string;\n query: string;\n hash: string;\n type: UrlType;\n};\n\nconst enum UrlType {\n Empty = 1,\n Hash = 2,\n Query = 3,\n RelativePath = 4,\n AbsolutePath = 5,\n SchemeRelative = 6,\n Absolute = 7,\n}\n\nfunction isAbsoluteUrl(input: string): boolean {\n return schemeRegex.test(input);\n}\n\nfunction isSchemeRelativeUrl(input: string): boolean {\n return input.startsWith('//');\n}\n\nfunction isAbsolutePath(input: string): boolean {\n return input.startsWith('/');\n}\n\nfunction isFileUrl(input: string): boolean {\n return input.startsWith('file:');\n}\n\nfunction isRelative(input: string): boolean {\n return /^[.?#]/.test(input);\n}\n\nfunction parseAbsoluteUrl(input: string): Url {\n const match = urlRegex.exec(input)!;\n return makeUrl(\n match[1],\n match[2] || '',\n match[3],\n match[4] || '',\n match[5] || '/',\n match[6] || '',\n match[7] || '',\n );\n}\n\nfunction parseFileUrl(input: string): Url {\n const match = fileRegex.exec(input)!;\n const path = match[2];\n return makeUrl(\n 'file:',\n '',\n match[1] || '',\n '',\n isAbsolutePath(path) ? path : '/' + path,\n match[3] || '',\n match[4] || '',\n );\n}\n\nfunction makeUrl(\n scheme: string,\n user: string,\n host: string,\n port: string,\n path: string,\n query: string,\n hash: string,\n): Url {\n return {\n scheme,\n user,\n host,\n port,\n path,\n query,\n hash,\n type: UrlType.Absolute,\n };\n}\n\nfunction parseUrl(input: string): Url {\n if (isSchemeRelativeUrl(input)) {\n const url = parseAbsoluteUrl('http:' + input);\n url.scheme = '';\n url.type = UrlType.SchemeRelative;\n return url;\n }\n\n if (isAbsolutePath(input)) {\n const url = parseAbsoluteUrl('http://foo.com' + input);\n url.scheme = '';\n url.host = '';\n url.type = UrlType.AbsolutePath;\n return url;\n }\n\n if (isFileUrl(input)) return parseFileUrl(input);\n\n if (isAbsoluteUrl(input)) return parseAbsoluteUrl(input);\n\n const url = parseAbsoluteUrl('http://foo.com/' + input);\n url.scheme = '';\n url.host = '';\n url.type = input\n ? input.startsWith('?')\n ? UrlType.Query\n : input.startsWith('#')\n ? UrlType.Hash\n : UrlType.RelativePath\n : UrlType.Empty;\n return url;\n}\n\nfunction stripPathFilename(path: string): string {\n // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n // paths. It's not a file, so we can't strip it.\n if (path.endsWith('/..')) return path;\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n\nfunction mergePaths(url: Url, base: Url) {\n normalizePath(base, base.type);\n\n // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n // path).\n if (url.path === '/') {\n url.path = base.path;\n } else {\n // Resolution happens relative to the base path's directory, not the file.\n url.path = stripPathFilename(base.path) + url.path;\n }\n}\n\n/**\n * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n * \"foo/.\". We need to normalize to a standard representation.\n */\nfunction normalizePath(url: Url, type: UrlType) {\n const rel = type <= UrlType.RelativePath;\n const pieces = url.path.split('/');\n\n // We need to preserve the first piece always, so that we output a leading slash. The item at\n // pieces[0] is an empty string.\n let pointer = 1;\n\n // Positive is the number of real directories we've output, used for popping a parent directory.\n // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n let positive = 0;\n\n // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n // real directory, we won't need to append, unless the other conditions happen again.\n let addTrailingSlash = false;\n\n for (let i = 1; i < pieces.length; i++) {\n const piece = pieces[i];\n\n // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n if (!piece) {\n addTrailingSlash = true;\n continue;\n }\n\n // If we encounter a real directory, then we don't need to append anymore.\n addTrailingSlash = false;\n\n // A current directory, which we can always drop.\n if (piece === '.') continue;\n\n // A parent directory, we need to see if there are any real directories we can pop. Else, we\n // have an excess of parents, and we'll need to keep the \"..\".\n if (piece === '..') {\n if (positive) {\n addTrailingSlash = true;\n positive--;\n pointer--;\n } else if (rel) {\n // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n pieces[pointer++] = piece;\n }\n continue;\n }\n\n // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n // any popped or dropped directories.\n pieces[pointer++] = piece;\n positive++;\n }\n\n let path = '';\n for (let i = 1; i < pointer; i++) {\n path += '/' + pieces[i];\n }\n if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n path += '/';\n }\n url.path = path;\n}\n\n/**\n * Attempts to resolve `input` URL/path relative to `base`.\n */\nexport default function resolve(input: string, base: string | undefined): string {\n if (!input && !base) return '';\n\n const url = parseUrl(input);\n let inputType = url.type;\n\n if (base && inputType !== UrlType.Absolute) {\n const baseUrl = parseUrl(base);\n const baseType = baseUrl.type;\n\n switch (inputType) {\n case UrlType.Empty:\n url.hash = baseUrl.hash;\n // fall through\n\n case UrlType.Hash:\n url.query = baseUrl.query;\n // fall through\n\n case UrlType.Query:\n case UrlType.RelativePath:\n mergePaths(url, baseUrl);\n // fall through\n\n case UrlType.AbsolutePath:\n // The host, user, and port are joined, you can't copy one without the others.\n url.user = baseUrl.user;\n url.host = baseUrl.host;\n url.port = baseUrl.port;\n // fall through\n\n case UrlType.SchemeRelative:\n // The input doesn't have a schema at least, so we need to copy at least that over.\n url.scheme = baseUrl.scheme;\n }\n if (baseType > inputType) inputType = baseType;\n }\n\n normalizePath(url, inputType);\n\n const queryHash = url.query + url.hash;\n switch (inputType) {\n // This is impossible, because of the empty checks at the start of the function.\n // case UrlType.Empty:\n\n case UrlType.Hash:\n case UrlType.Query:\n return queryHash;\n\n case UrlType.RelativePath: {\n // The first char is always a \"/\", and we need it to be relative.\n const path = url.path.slice(1);\n\n if (!path) return queryHash || '.';\n\n if (isRelative(base || input) && !isRelative(path)) {\n // If base started with a leading \".\", or there is no base and input started with a \".\",\n // then we need to ensure that the relative path starts with a \".\". We don't know if\n // relative starts with a \"..\", though, so check before prepending.\n return './' + path + queryHash;\n }\n\n return path + queryHash;\n }\n\n case UrlType.AbsolutePath:\n return url.path + queryHash;\n\n default:\n return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;\n }\n}\n"],"names":[],"mappings":";;;;;;IAAA;IACA,MAAM,WAAW,GAAG,gBAAgB,CAAC;IAErC;;;;;;;;;;IAUA,MAAM,QAAQ,GAAG,0EAA0E,CAAC;IAE5F;;;;;;;;;IASA,MAAM,SAAS,GAAG,iEAAiE,CAAC;IAuBpF,SAAS,aAAa,CAAC,KAAa;QAClC,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED,SAAS,mBAAmB,CAAC,KAAa;QACxC,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IAED,SAAS,cAAc,CAAC,KAAa;QACnC,OAAO,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC;IAED,SAAS,SAAS,CAAC,KAAa;QAC9B,OAAO,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,SAAS,UAAU,CAAC,KAAa;QAC/B,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAED,SAAS,gBAAgB,CAAC,KAAa;QACrC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAE,CAAC;QACpC,OAAO,OAAO,CACZ,KAAK,CAAC,CAAC,CAAC,EACR,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EACd,KAAK,CAAC,CAAC,CAAC,EACR,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EACd,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,EACf,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EACd,KAAK,CAAC,CAAC,CAAC,I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C,EAAE;;;;oBAIlD,OAAO,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;iBAChC;gBAED,OAAO,IAAI,GAAG,SAAS,CAAC;aACzB;YAED;gBACE,OAAO,GAAG,CAAC,IAAI,GAAG,SAAS,CAAC;YAE9B;gBACE,OAAO,GAAG,CAAC,MAAM,GAAG,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,SAAS,CAAC;SACpF;IACH;;;;;;;;"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jridgewell/resolve-uri",
|
|
3
|
+
"version": "3.1.2",
|
|
4
|
+
"description": "Resolve a URI relative to an optional base URI",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"resolve",
|
|
7
|
+
"uri",
|
|
8
|
+
"url",
|
|
9
|
+
"path"
|
|
10
|
+
],
|
|
11
|
+
"author": "Justin Ridgewell <justin@ridgewell.name>",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": "https://github.com/jridgewell/resolve-uri",
|
|
14
|
+
"main": "dist/resolve-uri.umd.js",
|
|
15
|
+
"module": "dist/resolve-uri.mjs",
|
|
16
|
+
"types": "dist/types/resolve-uri.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": [
|
|
19
|
+
{
|
|
20
|
+
"types": "./dist/types/resolve-uri.d.ts",
|
|
21
|
+
"browser": "./dist/resolve-uri.umd.js",
|
|
22
|
+
"require": "./dist/resolve-uri.umd.js",
|
|
23
|
+
"import": "./dist/resolve-uri.mjs"
|
|
24
|
+
},
|
|
25
|
+
"./dist/resolve-uri.umd.js"
|
|
26
|
+
],
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=6.0.0"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"prebuild": "rm -rf dist",
|
|
37
|
+
"build": "run-s -n build:*",
|
|
38
|
+
"build:rollup": "rollup -c rollup.config.js",
|
|
39
|
+
"build:ts": "tsc --project tsconfig.build.json",
|
|
40
|
+
"lint": "run-s -n lint:*",
|
|
41
|
+
"lint:prettier": "npm run test:lint:prettier -- --write",
|
|
42
|
+
"lint:ts": "npm run test:lint:ts -- --fix",
|
|
43
|
+
"pretest": "run-s build:rollup",
|
|
44
|
+
"test": "run-s -n test:lint test:only",
|
|
45
|
+
"test:debug": "mocha --inspect-brk",
|
|
46
|
+
"test:lint": "run-s -n test:lint:*",
|
|
47
|
+
"test:lint:prettier": "prettier --check '{src,test}/**/*.ts'",
|
|
48
|
+
"test:lint:ts": "eslint '{src,test}/**/*.ts'",
|
|
49
|
+
"test:only": "mocha",
|
|
50
|
+
"test:coverage": "c8 mocha",
|
|
51
|
+
"test:watch": "mocha --watch",
|
|
52
|
+
"prepublishOnly": "npm run preversion",
|
|
53
|
+
"preversion": "run-s test build"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@jridgewell/resolve-uri-latest": "npm:@jridgewell/resolve-uri@*",
|
|
57
|
+
"@rollup/plugin-typescript": "8.3.0",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "5.10.0",
|
|
59
|
+
"@typescript-eslint/parser": "5.10.0",
|
|
60
|
+
"c8": "7.11.0",
|
|
61
|
+
"eslint": "8.7.0",
|
|
62
|
+
"eslint-config-prettier": "8.3.0",
|
|
63
|
+
"mocha": "9.2.0",
|
|
64
|
+
"npm-run-all": "4.1.5",
|
|
65
|
+
"prettier": "2.5.1",
|
|
66
|
+
"rollup": "2.66.0",
|
|
67
|
+
"typescript": "4.5.5"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|