@qraft/asyncapi-plugin 1.0.0-beta.5 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/_vendor/@asyncapi/parser/_vendor/@stoplight/json/index.es.js +1 -1
- package/dist/_vendor/@asyncapi/parser/_vendor/@stoplight/json/index.es.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/constants.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/custom-operations/anonymous-naming.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/custom-operations/apply-traits.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/custom-operations/apply-unique-ids.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/custom-operations/check-circular-refs.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/custom-operations/index.js +2 -2
- package/dist/_vendor/@asyncapi/parser/esm/custom-operations/index.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/custom-operations/parse-schema.js +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/custom-operations/parse-schema.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/custom-operations/resolve-circular-refs.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/document.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/iterator.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/base.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/collection.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/external-documentations.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/utils.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/asyncapi.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/binding.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/bindings.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/channel-parameter.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/channel-parameters.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/channel.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/channels.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/components.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/contact.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/correlation-id.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/correlation-ids.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/extension.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/extensions.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/external-docs.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/info.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/license.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/message-example.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/message-examples.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/message-trait.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/message-traits.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/message.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/messages.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/mixins.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/oauth-flow.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/oauth-flows.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/operation-trait.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/operation-traits.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/operation.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/operations.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/schema.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/schemas.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/security-requirement.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/security-requirements.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/security-scheme.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/security-schemes.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/server-variable.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/server-variables.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/server.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/servers.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/tag.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v2/tags.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/asyncapi.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/binding.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/bindings.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/channel-parameter.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/channel-parameters.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/channel.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/channels.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/components.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/contact.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/correlation-id.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/correlation-ids.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/extension.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/extensions.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/external-docs.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/info.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/license.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/message-example.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/message-examples.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/message-trait.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/message-traits.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/message.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/messages.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/mixins.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/oauth-flow.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/oauth-flows.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/operation-replies.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/operation-reply-address.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/operation-reply-addresses.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/operation-reply.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/operation-trait.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/operation-traits.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/operation.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/operations.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/schema.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/schemas.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/security-requirement.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/security-requirements.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/security-scheme.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/security-schemes.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/server-variable.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/server-variables.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/server.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/servers.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/tag.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/models/v3/tags.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/parse.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/parser.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/resolver.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/formats.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/functions/channelServers.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/functions/documentStructure.js +21 -10
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/functions/documentStructure.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/functions/internal.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/functions/isAsyncAPIDocument.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/functions/uniquenessTags.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/functions/unusedComponent.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/index.js +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/index.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/ruleset.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/utils/getMissingProps.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/utils/getRedundantProps.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/utils/mergeTraits.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/utils/parseUrlVariables.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/functions/channelParameters.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/functions/checkId.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/functions/messageExamples-spectral-rule-v2.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/functions/messageExamples.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/functions/messageIdUniqueness.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/functions/operationIdUniqueness.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/functions/schemaValidation.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/functions/security.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/functions/serverVariables.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/functions/unusedSecuritySchemes.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/ruleset.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/utils/getAllMessages.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v2/utils/getAllOperations.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/ruleset/v3/functions/operationMessagesUnambiguity.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/schema-parser/asyncapi-schema-parser.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/schema-parser/index.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/schema-parser/spectral-rule-v2.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/spectral.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/stringify.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/utils.js.map +1 -1
- package/dist/_vendor/@asyncapi/parser/esm/validate.js.map +1 -1
- package/dist/_vendor/@asyncapi/specs/index.js +17 -17
- package/dist/_vendor/@asyncapi/specs/index.js.map +1 -1
- package/dist/_vendor/@jsep-plugin/regex/dist/index.js.map +1 -1
- package/dist/_vendor/@jsep-plugin/ternary/dist/index.js.map +1 -1
- package/dist/_vendor/@stoplight/better-ajv-errors/dist/index.js.map +1 -1
- package/dist/_vendor/@stoplight/json/_vendor/safe-stable-stringify/index.js.map +1 -1
- package/dist/_vendor/@stoplight/json/_vendor/safe-stable-stringify/stable.js.map +1 -1
- package/dist/_vendor/@stoplight/json/index.es.js +1 -1
- package/dist/_vendor/@stoplight/json/index.es.js.map +1 -1
- package/dist/_vendor/@stoplight/json-ref-readers/_vendor/tslib/tslib.es6.js +2 -2
- package/dist/_vendor/@stoplight/json-ref-readers/_vendor/tslib/tslib.es6.js.map +1 -1
- package/dist/_vendor/@stoplight/json-ref-readers/file.js.map +1 -1
- package/dist/_vendor/@stoplight/json-ref-readers/http.js.map +1 -1
- package/dist/_vendor/@stoplight/json-ref-readers/index.js.map +1 -1
- package/dist/_vendor/@stoplight/json-ref-resolver/cache.js.map +1 -1
- package/dist/_vendor/@stoplight/json-ref-resolver/crawler.js.map +1 -1
- package/dist/_vendor/@stoplight/json-ref-resolver/index.js +7 -7
- package/dist/_vendor/@stoplight/json-ref-resolver/index.js.map +1 -1
- package/dist/_vendor/@stoplight/json-ref-resolver/resolver.js.map +1 -1
- package/dist/_vendor/@stoplight/json-ref-resolver/runner.js +6 -6
- package/dist/_vendor/@stoplight/json-ref-resolver/runner.js.map +1 -1
- package/dist/_vendor/@stoplight/json-ref-resolver/uri.js.map +1 -1
- package/dist/_vendor/@stoplight/json-ref-resolver/utils.js.map +1 -1
- package/dist/_vendor/@stoplight/ordered-object-literal/src/index.js.map +1 -1
- package/dist/_vendor/@stoplight/ordered-object-literal/src/index2.js.map +1 -1
- package/dist/_vendor/@stoplight/path/index.es.js +1 -1
- package/dist/_vendor/@stoplight/path/index.es.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/_vendor/@stoplight/types/dist/index.js +11 -11
- package/dist/_vendor/@stoplight/spectral-core/_vendor/@stoplight/types/dist/index.js.map +1 -1
- package/dist/_vendor/{minimatch → @stoplight/spectral-core}/_vendor/brace-expansion/index.js +2 -2
- package/dist/_vendor/@stoplight/spectral-core/_vendor/brace-expansion/index.js.map +1 -0
- package/dist/_vendor/{minimatch → @stoplight/spectral-core/_vendor/minimatch}/minimatch.js +1 -1
- package/dist/_vendor/@stoplight/spectral-core/_vendor/minimatch/minimatch.js.map +1 -0
- package/dist/_vendor/@stoplight/spectral-core/dist/consts.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/document.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/documentInventory.js +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/documentInventory.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/errorMessages.js +9 -9
- package/dist/_vendor/@stoplight/spectral-core/dist/errorMessages.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/guards/isAggregateError.js +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/guards/isAggregateError.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/index.js +8 -8
- package/dist/_vendor/@stoplight/spectral-core/dist/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/alias.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/formats.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/function.js +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/function.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/index.js +10 -10
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/mergers/rules.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/mergers/rulesets.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/rule.js +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/rule.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/ruleset.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/utils/guards.js +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/utils/guards.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/utils/minimatch.js +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/utils/minimatch.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/utils/severity.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/validation/ajv.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/validation/assertions.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/validation/errors.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/validation/index.js +6 -6
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/validation/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/validation/validators/alias.js +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/validation/validators/alias.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/validation/validators/common/error.js +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/validation/validators/common/error.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/ruleset/validation/validators/function.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/runner/index.js +5 -5
- package/dist/_vendor/@stoplight/spectral-core/dist/runner/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/runner/lintNode.js +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/runner/lintNode.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/runner/runner.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/runner/utils/getLintTargets.js +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/runner/utils/getLintTargets.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/runner/utils/index.js +5 -5
- package/dist/_vendor/@stoplight/spectral-core/dist/runner/utils/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/runner/utils/message.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/runner/utils/results.js +10 -10
- package/dist/_vendor/@stoplight/spectral-core/dist/runner/utils/results.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/spectral.js +9 -9
- package/dist/_vendor/@stoplight/spectral-core/dist/spectral.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/types/function.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/types/index.js +5 -5
- package/dist/_vendor/@stoplight/spectral-core/dist/types/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/types/spectral.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/utils/generateDocumentWideResult.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-core/dist/utils/replacer.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-formats/dist/arazzo.js +5 -5
- package/dist/_vendor/@stoplight/spectral-formats/dist/arazzo.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-formats/dist/asyncapi.js +25 -25
- package/dist/_vendor/@stoplight/spectral-formats/dist/asyncapi.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-formats/dist/index.js +6 -6
- package/dist/_vendor/@stoplight/spectral-formats/dist/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-formats/dist/jsonSchema.js +14 -14
- package/dist/_vendor/@stoplight/spectral-formats/dist/jsonSchema.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-formats/dist/openapi.js +11 -11
- package/dist/_vendor/@stoplight/spectral-formats/dist/openapi.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/alphabetical.js +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/alphabetical.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/casing.js +6 -6
- package/dist/_vendor/@stoplight/spectral-functions/dist/casing.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/defined.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/enumeration.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/falsy.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/index.js +17 -17
- package/dist/_vendor/@stoplight/spectral-functions/dist/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/length.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/optionSchemas.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/or.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/pattern.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/schema/ajv.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/schema/index.js +5 -5
- package/dist/_vendor/@stoplight/spectral-functions/dist/schema/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/truthy.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/types.js +4 -4
- package/dist/_vendor/@stoplight/spectral-functions/dist/types.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/undefined.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/unreferencedReusableObject.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-functions/dist/xor.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-parsers/dist/index.js +5 -5
- package/dist/_vendor/@stoplight/spectral-parsers/dist/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-parsers/dist/json.js +6 -6
- package/dist/_vendor/@stoplight/spectral-parsers/dist/json.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-parsers/dist/types.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-parsers/dist/yaml.js +6 -6
- package/dist/_vendor/@stoplight/spectral-parsers/dist/yaml.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-ref-resolver/dist/index.js +8 -8
- package/dist/_vendor/@stoplight/spectral-ref-resolver/dist/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-ref-resolver/dist/types.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-runtime/dist/fetch.js +6 -6
- package/dist/_vendor/@stoplight/spectral-runtime/dist/fetch.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-runtime/dist/index.js +7 -7
- package/dist/_vendor/@stoplight/spectral-runtime/dist/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-runtime/dist/reader.js +4 -4
- package/dist/_vendor/@stoplight/spectral-runtime/dist/reader.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-runtime/dist/utils/decodeSegmentFragment.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-runtime/dist/utils/index.js +7 -7
- package/dist/_vendor/@stoplight/spectral-runtime/dist/utils/index.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-runtime/dist/utils/printError.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-runtime/dist/utils/printPath.js +5 -5
- package/dist/_vendor/@stoplight/spectral-runtime/dist/utils/printPath.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-runtime/dist/utils/printValue.js.map +1 -1
- package/dist/_vendor/@stoplight/spectral-runtime/dist/utils/refs.js +10 -10
- package/dist/_vendor/@stoplight/spectral-runtime/dist/utils/refs.js.map +1 -1
- package/dist/_vendor/@stoplight/types/dist/index.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/_vendor/@stoplight/types/dist/index.js +13 -13
- package/dist/_vendor/@stoplight/yaml/_vendor/@stoplight/types/dist/index.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/buildJsonPath.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/dereferenceAnchor.js +6 -6
- package/dist/_vendor/@stoplight/yaml/dereferenceAnchor.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/getJsonPathForPosition.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/getLocationForJsonPath.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/index.js +13 -13
- package/dist/_vendor/@stoplight/yaml/index.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/lineForPosition.js +5 -5
- package/dist/_vendor/@stoplight/yaml/lineForPosition.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/parse.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/parseWithPointers.js +4 -4
- package/dist/_vendor/@stoplight/yaml/parseWithPointers.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/safeStringify.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/trapAccess.js +5 -5
- package/dist/_vendor/@stoplight/yaml/trapAccess.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/types.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml/utils.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/common.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/dumper.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/exception.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/index.js +11 -11
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/index.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/loader.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/mark.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/scalarInference.js +8 -8
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/scalarInference.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/schema/core.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/schema/default_full.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/schema/default_safe.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/schema/failsafe.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/schema/json.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/schema.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/binary.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/bool.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/float.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/int.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/js/regexp.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/js/undefined.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/map.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/merge.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/null.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/omap.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/pairs.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/seq.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/set.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/str.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type/timestamp.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/type.js.map +1 -1
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/yamlAST.js +9 -9
- package/dist/_vendor/@stoplight/yaml-ast-parser/dist/src/yamlAST.js.map +1 -1
- package/dist/_vendor/abort-controller/dist/abort-controller.js +1 -1
- package/dist/_vendor/abort-controller/dist/abort-controller.js.map +1 -1
- package/dist/_vendor/ajv/dist/2019.js +16 -16
- package/dist/_vendor/ajv/dist/2019.js.map +1 -1
- package/dist/_vendor/ajv/dist/2020.js +16 -16
- package/dist/_vendor/ajv/dist/2020.js.map +1 -1
- package/dist/_vendor/ajv/dist/ajv.js +16 -16
- package/dist/_vendor/ajv/dist/ajv.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/codegen/code.js +20 -20
- package/dist/_vendor/ajv/dist/compile/codegen/code.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/codegen/index.js +24 -24
- package/dist/_vendor/ajv/dist/compile/codegen/index.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/codegen/scope.js +9 -9
- package/dist/_vendor/ajv/dist/compile/codegen/scope.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/errors.js +11 -11
- package/dist/_vendor/ajv/dist/compile/errors.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/index.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/names.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/ref_error.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/resolve.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/rules.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/util.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/validate/applicability.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/validate/boolSchema.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/validate/dataType.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/validate/defaults.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/validate/index.js +1 -1
- package/dist/_vendor/ajv/dist/compile/validate/index.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/validate/keyword.js.map +1 -1
- package/dist/_vendor/ajv/dist/compile/validate/subschema.js.map +1 -1
- package/dist/_vendor/ajv/dist/core.js +11 -11
- package/dist/_vendor/ajv/dist/core.js.map +1 -1
- package/dist/_vendor/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -1
- package/dist/_vendor/ajv/dist/refs/json-schema-2020-12/index.js +1 -1
- package/dist/_vendor/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -1
- package/dist/_vendor/ajv/dist/runtime/equal.js.map +1 -1
- package/dist/_vendor/ajv/dist/runtime/ucs2length.js.map +1 -1
- package/dist/_vendor/ajv/dist/runtime/uri.js.map +1 -1
- package/dist/_vendor/ajv/dist/runtime/validation_error.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/allOf.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/contains.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/dependencies.js +8 -8
- package/dist/_vendor/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/if.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/index.js +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/index.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/items.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/items2020.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/not.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/properties.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/code.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/core/id.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/core/index.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/core/ref.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/discriminator/index.js +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/discriminator/types.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/draft2020.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/draft7.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/dynamic/index.js +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/dynamic/index.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/format/format.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/format/index.js +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/format/index.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/metadata.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/next.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/unevaluated/index.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/const.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/enum.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/index.js +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/index.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/limitContains.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/limitItems.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/limitLength.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/pattern.js +14 -4
- package/dist/_vendor/ajv/dist/vocabularies/validation/pattern.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/required.js.map +1 -1
- package/dist/_vendor/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -1
- package/dist/_vendor/ajv-draft-04/dist/index.js +14 -14
- package/dist/_vendor/ajv-draft-04/dist/index.js.map +1 -1
- package/dist/_vendor/ajv-draft-04/dist/vocabulary/core.js.map +1 -1
- package/dist/_vendor/ajv-draft-04/dist/vocabulary/draft4.js.map +1 -1
- package/dist/_vendor/ajv-draft-04/dist/vocabulary/validation/index.js.map +1 -1
- package/dist/_vendor/ajv-draft-04/dist/vocabulary/validation/limitNumber.js.map +1 -1
- package/dist/_vendor/ajv-draft-04/dist/vocabulary/validation/limitNumberExclusive.js.map +1 -1
- package/dist/_vendor/ajv-errors/dist/index.js +4 -4
- package/dist/_vendor/ajv-errors/dist/index.js.map +1 -1
- package/dist/_vendor/ajv-formats/dist/formats.js +8 -8
- package/dist/_vendor/ajv-formats/dist/formats.js.map +1 -1
- package/dist/_vendor/ajv-formats/dist/index.js +6 -6
- package/dist/_vendor/ajv-formats/dist/index.js.map +1 -1
- package/dist/_vendor/ajv-formats/dist/limit.js +6 -6
- package/dist/_vendor/ajv-formats/dist/limit.js.map +1 -1
- package/dist/_vendor/astring/dist/astring.js.map +1 -1
- package/dist/_vendor/balanced-match/index.js.map +1 -1
- package/dist/_vendor/call-bind/index.js.map +1 -1
- package/dist/_vendor/call-bind-apply-helpers/actualApply.js.map +1 -1
- package/dist/_vendor/call-bind-apply-helpers/applyBind.js.map +1 -1
- package/dist/_vendor/call-bind-apply-helpers/functionApply.js.map +1 -1
- package/dist/_vendor/call-bind-apply-helpers/functionCall.js.map +1 -1
- package/dist/_vendor/call-bind-apply-helpers/index.js.map +1 -1
- package/dist/_vendor/call-bind-apply-helpers/reflectApply.js.map +1 -1
- package/dist/_vendor/call-bound/index.js.map +1 -1
- package/dist/_vendor/concat-map/index.js.map +1 -1
- package/dist/_vendor/define-data-property/index.js.map +1 -1
- package/dist/_vendor/define-properties/index.js.map +1 -1
- package/dist/_vendor/dependency-graph/lib/dep_graph.js.map +1 -1
- package/dist/_vendor/dunder-proto/get.js.map +1 -1
- package/dist/_vendor/dunder-proto/set.js.map +1 -1
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2023/CreateNonEnumerableDataPropertyOrThrow.js +2 -2
- package/dist/_vendor/es-abstract/2023/CreateNonEnumerableDataPropertyOrThrow.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2023/DefinePropertyOrThrow.js +2 -2
- package/dist/_vendor/es-abstract/2023/DefinePropertyOrThrow.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract/2025 → es-abstract/2023}/FromPropertyDescriptor.js +1 -1
- package/dist/_vendor/es-abstract/2023/FromPropertyDescriptor.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2023/IsCallable.js +1 -1
- package/dist/_vendor/es-abstract/2023/IsCallable.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract/2025 → es-abstract/2023}/IsDataDescriptor.js +2 -2
- package/dist/_vendor/es-abstract/2023/IsDataDescriptor.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract/2025 → es-abstract/2023}/SameValue.js +1 -1
- package/dist/_vendor/es-abstract/2023/SameValue.js.map +1 -0
- package/dist/_vendor/es-abstract/2023/ToBoolean.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract/2025 → es-abstract/2023}/ToPropertyDescriptor.js +3 -3
- package/dist/_vendor/es-abstract/2023/ToPropertyDescriptor.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/AdvanceStringIndex.js +3 -3
- package/dist/_vendor/es-abstract/2025/AdvanceStringIndex.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/AsyncFromSyncIteratorContinuation.js +5 -5
- package/dist/_vendor/es-abstract/2025/AsyncFromSyncIteratorContinuation.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/Call.js +3 -3
- package/dist/_vendor/es-abstract/2025/Call.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/CodePointAt.js +2 -2
- package/dist/_vendor/es-abstract/2025/CodePointAt.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/CreateAsyncFromSyncIterator.js +5 -5
- package/dist/_vendor/es-abstract/2025/CreateAsyncFromSyncIterator.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/CreateDataProperty.js +2 -2
- package/dist/_vendor/es-abstract/2025/CreateDataProperty.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/CreateDataPropertyOrThrow.js +2 -2
- package/dist/_vendor/es-abstract/2025/CreateDataPropertyOrThrow.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/CreateIteratorResultObject.js +1 -1
- package/dist/_vendor/es-abstract/2025/CreateIteratorResultObject.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract/2023 → es-abstract/2025}/FromPropertyDescriptor.js +1 -1
- package/dist/_vendor/es-abstract/2025/FromPropertyDescriptor.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/Get.js +2 -2
- package/dist/_vendor/es-abstract/2025/Get.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/GetIterator.js +3 -3
- package/dist/_vendor/es-abstract/2025/GetIterator.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/GetIteratorFromMethod.js +2 -2
- package/dist/_vendor/es-abstract/2025/GetIteratorFromMethod.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/GetMethod.js +1 -1
- package/dist/_vendor/es-abstract/2025/GetMethod.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/GetV.js +1 -1
- package/dist/_vendor/es-abstract/2025/GetV.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/IsAccessorDescriptor.js +2 -2
- package/dist/_vendor/es-abstract/2025/IsAccessorDescriptor.js.map +1 -0
- package/dist/_vendor/es-abstract/2025/IsArray.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/IsCallable.js +1 -1
- package/dist/_vendor/es-abstract/2025/IsCallable.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract/2023 → es-abstract/2025}/IsDataDescriptor.js +2 -2
- package/dist/_vendor/es-abstract/2025/IsDataDescriptor.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/IsExtensible.js +1 -1
- package/dist/_vendor/es-abstract/2025/IsExtensible.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/IsGenericDescriptor.js +1 -1
- package/dist/_vendor/es-abstract/2025/IsGenericDescriptor.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/IteratorComplete.js +2 -2
- package/dist/_vendor/es-abstract/2025/IteratorComplete.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/IteratorNext.js +2 -2
- package/dist/_vendor/es-abstract/2025/IteratorNext.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/IteratorStep.js +1 -1
- package/dist/_vendor/es-abstract/2025/IteratorStep.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/IteratorToList.js +1 -1
- package/dist/_vendor/es-abstract/2025/IteratorToList.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/IteratorValue.js +2 -2
- package/dist/_vendor/es-abstract/2025/IteratorValue.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/OrdinaryDefineOwnProperty.js +4 -4
- package/dist/_vendor/es-abstract/2025/OrdinaryDefineOwnProperty.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/OrdinaryGetPrototypeOf.js +3 -3
- package/dist/_vendor/es-abstract/2025/OrdinaryGetPrototypeOf.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/OrdinaryObjectCreate.js +6 -6
- package/dist/_vendor/es-abstract/2025/OrdinaryObjectCreate.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/OrdinarySetPrototypeOf.js +3 -3
- package/dist/_vendor/es-abstract/2025/OrdinarySetPrototypeOf.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/PromiseResolve.js +3 -3
- package/dist/_vendor/es-abstract/2025/PromiseResolve.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract/2023 → es-abstract/2025}/SameValue.js +1 -1
- package/dist/_vendor/es-abstract/2025/SameValue.js.map +1 -0
- package/dist/_vendor/es-abstract/2025/ToBoolean.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract/2023 → es-abstract/2025}/ToPropertyDescriptor.js +3 -3
- package/dist/_vendor/es-abstract/2025/ToPropertyDescriptor.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/UTF16SurrogatePairToCodePoint.js +2 -2
- package/dist/_vendor/es-abstract/2025/UTF16SurrogatePairToCodePoint.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/ValidateAndApplyPropertyDescriptor.js +2 -2
- package/dist/_vendor/es-abstract/2025/ValidateAndApplyPropertyDescriptor.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/helpers/DefineOwnProperty.js +3 -3
- package/dist/_vendor/es-abstract/helpers/DefineOwnProperty.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/helpers/IsArray.js +2 -2
- package/dist/_vendor/es-abstract/helpers/IsArray.js.map +1 -0
- package/dist/_vendor/es-abstract/helpers/forEach.js.map +1 -0
- package/dist/_vendor/es-abstract/helpers/fromPropertyDescriptor.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/helpers/getIteratorMethod.js +4 -4
- package/dist/_vendor/es-abstract/helpers/getIteratorMethod.js.map +1 -0
- package/dist/_vendor/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js.map +1 -0
- package/dist/_vendor/es-abstract/helpers/isLeadingSurrogate.js.map +1 -0
- package/dist/_vendor/es-abstract/helpers/isPrimitive.js.map +1 -0
- package/dist/_vendor/es-abstract/helpers/isPropertyKey.js.map +1 -0
- package/dist/_vendor/es-abstract/helpers/isTrailingSurrogate.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/helpers/records/iterator-record.js +1 -1
- package/dist/_vendor/es-abstract/helpers/records/iterator-record.js.map +1 -0
- package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/helpers/records/property-descriptor.js +2 -2
- package/dist/_vendor/es-abstract/helpers/records/property-descriptor.js.map +1 -0
- package/dist/_vendor/es-aggregate-error/implementation.js +5 -5
- package/dist/_vendor/es-aggregate-error/implementation.js.map +1 -1
- package/dist/_vendor/es-aggregate-error/index.js.map +1 -1
- package/dist/_vendor/es-aggregate-error/polyfill.js.map +1 -1
- package/dist/_vendor/es-aggregate-error/shim.js.map +1 -1
- package/dist/_vendor/es-define-property/index.js.map +1 -1
- package/dist/_vendor/es-errors/eval.js.map +1 -1
- package/dist/_vendor/es-errors/index.js.map +1 -1
- package/dist/_vendor/es-errors/range.js.map +1 -1
- package/dist/_vendor/es-errors/ref.js.map +1 -1
- package/dist/_vendor/es-errors/syntax.js.map +1 -1
- package/dist/_vendor/es-errors/type.js.map +1 -1
- package/dist/_vendor/es-errors/uri.js.map +1 -1
- package/dist/_vendor/es-object-atoms/index.js.map +1 -1
- package/dist/_vendor/es-object-atoms/isObject.js.map +1 -1
- package/dist/_vendor/event-target-shim/dist/event-target-shim.js +1 -1
- package/dist/_vendor/event-target-shim/dist/event-target-shim.js.map +1 -1
- package/dist/_vendor/fast-deep-equal/index.js.map +1 -1
- package/dist/_vendor/fast-memoize/src/index.js +1 -1
- package/dist/_vendor/fast-memoize/src/index.js.map +1 -1
- package/dist/_vendor/fast-uri/index.js +1 -1
- package/dist/_vendor/fast-uri/index.js.map +1 -1
- package/dist/_vendor/fast-uri/lib/schemes.js.map +1 -1
- package/dist/_vendor/fast-uri/lib/scopedChars.js.map +1 -1
- package/dist/_vendor/fast-uri/lib/utils.js +1 -1
- package/dist/_vendor/fast-uri/lib/utils.js.map +1 -1
- package/dist/_vendor/function-bind/implementation.js.map +1 -1
- package/dist/_vendor/function-bind/index.js.map +1 -1
- package/dist/_vendor/functions-have-names/index.js.map +1 -1
- package/dist/_vendor/get-intrinsic/index.js.map +1 -1
- package/dist/_vendor/get-proto/Object.getPrototypeOf.js.map +1 -1
- package/dist/_vendor/get-proto/Reflect.getPrototypeOf.js.map +1 -1
- package/dist/_vendor/get-proto/index.js.map +1 -1
- package/dist/_vendor/globalthis/implementation.js.map +1 -1
- package/dist/_vendor/globalthis/index.js.map +1 -1
- package/dist/_vendor/globalthis/polyfill.js.map +1 -1
- package/dist/_vendor/globalthis/shim.js.map +1 -1
- package/dist/_vendor/gopd/gOPD.js.map +1 -1
- package/dist/_vendor/gopd/index.js.map +1 -1
- package/dist/_vendor/has-property-descriptors/index.js.map +1 -1
- package/dist/_vendor/has-proto/index.js.map +1 -1
- package/dist/_vendor/has-symbols/index.js.map +1 -1
- package/dist/_vendor/has-symbols/shams.js.map +1 -1
- package/dist/_vendor/has-tostringtag/shams.js.map +1 -1
- package/dist/_vendor/hasown/index.js.map +1 -1
- package/dist/_vendor/immer/dist/immer.cjs.development.js.map +1 -1
- package/dist/_vendor/immer/dist/immer.cjs.production.min.js +1 -1
- package/dist/_vendor/immer/dist/immer.cjs.production.min.js.map +1 -1
- package/dist/_vendor/immer/dist/index.js +1 -1
- package/dist/_vendor/immer/dist/index.js.map +1 -1
- package/dist/_vendor/internal-slot/index.js.map +1 -1
- package/dist/_vendor/is-callable/index.js.map +1 -1
- package/dist/_vendor/is-string/index.js.map +1 -1
- package/dist/_vendor/jsep/dist/cjs/jsep.cjs.js.map +1 -1
- package/dist/_vendor/json-schema-traverse/index.js.map +1 -1
- package/dist/_vendor/jsonc-parser/lib/esm/impl/parser.js.map +1 -1
- package/dist/_vendor/jsonc-parser/lib/esm/impl/scanner.js +2 -2
- package/dist/_vendor/jsonc-parser/lib/esm/impl/scanner.js.map +1 -1
- package/dist/_vendor/jsonc-parser/lib/esm/main.js.map +1 -1
- package/dist/_vendor/jsonpath-plus/dist/index-node-cjs.js.map +1 -1
- package/dist/_vendor/jsonpath-plus/dist/index-node-esm.js.map +1 -1
- package/dist/_vendor/jsonpointer/jsonpointer.js.map +1 -1
- package/dist/_vendor/leven/index.js +1 -1
- package/dist/_vendor/leven/index.js.map +1 -1
- package/dist/_vendor/lodash/_Hash.js.map +1 -1
- package/dist/_vendor/lodash/_ListCache.js.map +1 -1
- package/dist/_vendor/lodash/_Map.js.map +1 -1
- package/dist/_vendor/lodash/_MapCache.js.map +1 -1
- package/dist/_vendor/lodash/_Symbol.js.map +1 -1
- package/dist/_vendor/lodash/_arrayMap.js.map +1 -1
- package/dist/_vendor/lodash/_assignValue.js.map +1 -1
- package/dist/_vendor/lodash/_assocIndexOf.js.map +1 -1
- package/dist/_vendor/lodash/_baseAssignValue.js.map +1 -1
- package/dist/_vendor/lodash/_baseGet.js.map +1 -1
- package/dist/_vendor/lodash/_baseGetTag.js.map +1 -1
- package/dist/_vendor/lodash/_baseIsNative.js.map +1 -1
- package/dist/_vendor/lodash/_baseSet.js.map +1 -1
- package/dist/_vendor/lodash/_baseToString.js +1 -4
- package/dist/_vendor/lodash/_baseToString.js.map +1 -1
- package/dist/_vendor/lodash/_castPath.js.map +1 -1
- package/dist/_vendor/lodash/_coreJsData.js.map +1 -1
- package/dist/_vendor/lodash/_defineProperty.js.map +1 -1
- package/dist/_vendor/lodash/_freeGlobal.js.map +1 -1
- package/dist/_vendor/lodash/_getMapData.js.map +1 -1
- package/dist/_vendor/lodash/_getNative.js.map +1 -1
- package/dist/_vendor/lodash/_getRawTag.js.map +1 -1
- package/dist/_vendor/lodash/_getValue.js.map +1 -1
- package/dist/_vendor/lodash/_hashClear.js.map +1 -1
- package/dist/_vendor/lodash/_hashDelete.js.map +1 -1
- package/dist/_vendor/lodash/_hashGet.js.map +1 -1
- package/dist/_vendor/lodash/_hashHas.js.map +1 -1
- package/dist/_vendor/lodash/_hashSet.js.map +1 -1
- package/dist/_vendor/lodash/_isIndex.js.map +1 -1
- package/dist/_vendor/lodash/_isKey.js.map +1 -1
- package/dist/_vendor/lodash/_isKeyable.js.map +1 -1
- package/dist/_vendor/lodash/_isMasked.js.map +1 -1
- package/dist/_vendor/lodash/_listCacheClear.js.map +1 -1
- package/dist/_vendor/lodash/_listCacheDelete.js.map +1 -1
- package/dist/_vendor/lodash/_listCacheGet.js.map +1 -1
- package/dist/_vendor/lodash/_listCacheHas.js.map +1 -1
- package/dist/_vendor/lodash/_listCacheSet.js.map +1 -1
- package/dist/_vendor/lodash/_mapCacheClear.js.map +1 -1
- package/dist/_vendor/lodash/_mapCacheDelete.js.map +1 -1
- package/dist/_vendor/lodash/_mapCacheGet.js.map +1 -1
- package/dist/_vendor/lodash/_mapCacheHas.js.map +1 -1
- package/dist/_vendor/lodash/_mapCacheSet.js.map +1 -1
- package/dist/_vendor/lodash/_memoizeCapped.js.map +1 -1
- package/dist/_vendor/lodash/_nativeCreate.js.map +1 -1
- package/dist/_vendor/lodash/_objectToString.js.map +1 -1
- package/dist/_vendor/lodash/_root.js.map +1 -1
- package/dist/_vendor/lodash/_stringToPath.js.map +1 -1
- package/dist/_vendor/lodash/_toKey.js +1 -4
- package/dist/_vendor/lodash/_toKey.js.map +1 -1
- package/dist/_vendor/lodash/_toSource.js.map +1 -1
- package/dist/_vendor/lodash/eq.js.map +1 -1
- package/dist/_vendor/lodash/get.js.map +1 -1
- package/dist/_vendor/lodash/isArray.js.map +1 -1
- package/dist/_vendor/lodash/isFunction.js.map +1 -1
- package/dist/_vendor/lodash/isObject.js.map +1 -1
- package/dist/_vendor/lodash/isObjectLike.js.map +1 -1
- package/dist/_vendor/lodash/isSymbol.js.map +1 -1
- package/dist/_vendor/lodash/lodash.js +49 -10
- package/dist/_vendor/lodash/lodash.js.map +1 -1
- package/dist/_vendor/lodash/memoize.js.map +1 -1
- package/dist/_vendor/lodash/set.js.map +1 -1
- package/dist/_vendor/lodash/toString.js.map +1 -1
- package/dist/_vendor/lodash.topath/index.js +2 -5
- package/dist/_vendor/lodash.topath/index.js.map +1 -1
- package/dist/_vendor/math-intrinsics/abs.js.map +1 -1
- package/dist/_vendor/math-intrinsics/floor.js.map +1 -1
- package/dist/_vendor/math-intrinsics/isFinite.js.map +1 -1
- package/dist/_vendor/math-intrinsics/isInteger.js.map +1 -1
- package/dist/_vendor/math-intrinsics/isNaN.js.map +1 -1
- package/dist/_vendor/math-intrinsics/max.js.map +1 -1
- package/dist/_vendor/math-intrinsics/min.js.map +1 -1
- package/dist/_vendor/math-intrinsics/pow.js.map +1 -1
- package/dist/_vendor/math-intrinsics/round.js.map +1 -1
- package/dist/_vendor/math-intrinsics/sign.js +1 -1
- package/dist/_vendor/math-intrinsics/sign.js.map +1 -1
- package/dist/_vendor/nimma/dist/cjs/codegen/ast/builders.js.map +1 -1
- package/dist/_vendor/nimma/dist/cjs/codegen/fallback.js +3 -3
- package/dist/_vendor/nimma/dist/cjs/codegen/fallback.js.map +1 -1
- package/dist/_vendor/nimma/dist/cjs/fallbacks/index.js.map +1 -1
- package/dist/_vendor/nimma/dist/cjs/fallbacks/jsonpath-plus.js +3 -3
- package/dist/_vendor/nimma/dist/cjs/fallbacks/jsonpath-plus.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/ast/builders.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/baseline/generators.js +0 -2
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/baseline/generators.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/baseline/index.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/baseline/index.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/dump.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/dump.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/all-parents.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/all-parents.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/deep-single-member.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/deep-single-member.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/deep-wildcard.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/deep-wildcard.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/fixed.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/fixed.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/index.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/index.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/only-filter-script-expression.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/only-filter-script-expression.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/root.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/root.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/top-level-wildcard.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/fast-paths/top-level-wildcard.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/guards.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/iterator.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/iterator.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/optimizer/index.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/optimizer/index.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/build-json.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/build-json.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/emit-call.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/emit-call.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/fallback-expressions.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/fallback-expressions.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/fn-params.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/fn-params.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/internal-scope.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/internal-scope.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/sandbox.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/sandbox.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/scope.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/scope.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/tree-method-call.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/templates/tree-method-call.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/tree/traversal-zones.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/tree/traversal-zones.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/tree/tree.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/codegen/tree/tree.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/core/index.js +4 -4
- package/dist/_vendor/nimma/dist/legacy/cjs/core/index.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/core/utils/determine-format.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/core/utils/determine-format.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/core/utils/parse-expressions.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/core/utils/parse-expressions.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/index.js +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/index.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/parser/index.js +4 -4
- package/dist/_vendor/nimma/dist/legacy/cjs/parser/index.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/parser/jsep.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/parser/jsep.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/parser/parser.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/codegen-functions/get.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/codegen-functions/get.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/codegen-functions/in-bounds.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/codegen-functions/in-bounds.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/codegen-functions/is-object.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/codegen-functions/is-object.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/errors/aggregate-error.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/errors/aggregate-error.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/errors/cause-error.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/errors/cause-error.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/errors/parser-error.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/errors/parser-error.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/errors/runtime-error.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/errors/runtime-error.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/index.js +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/index.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/proxy-callbacks.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/proxy-callbacks.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/sandbox.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/scope.js +3 -3
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/scope.js.map +1 -1
- package/dist/_vendor/nimma/dist/legacy/cjs/runtime/traverse.js.map +1 -1
- package/dist/_vendor/node-fetch/lib/index.js.map +1 -1
- package/dist/_vendor/object-inspect/index.js +11 -8
- package/dist/_vendor/object-inspect/index.js.map +1 -1
- package/dist/_vendor/object-inspect/util.inspect.js.map +1 -1
- package/dist/_vendor/object-keys/implementation.js.map +1 -1
- package/dist/_vendor/object-keys/index.js.map +1 -1
- package/dist/_vendor/object-keys/isArguments.js.map +1 -1
- package/dist/_vendor/pony-cause/index.js.map +1 -1
- package/dist/_vendor/set-function-length/index.js.map +1 -1
- package/dist/_vendor/set-function-name/index.js.map +1 -1
- package/dist/_vendor/set-proto/Object.setPrototypeOf.js.map +1 -1
- package/dist/_vendor/set-proto/Reflect.setPrototypeOf.js.map +1 -1
- package/dist/_vendor/set-proto/index.js.map +1 -1
- package/dist/_vendor/side-channel/index.js.map +1 -1
- package/dist/_vendor/side-channel-list/index.js.map +1 -1
- package/dist/_vendor/side-channel-map/index.js.map +1 -1
- package/dist/_vendor/side-channel-weakmap/index.js.map +1 -1
- package/dist/_vendor/simple-eval/dist/index.js.map +1 -1
- package/dist/_vendor/simple-eval/dist/reduce.js.map +1 -1
- package/dist/_vendor/tr46/index.js +1 -1
- package/dist/_vendor/tr46/index.js.map +1 -1
- package/dist/_vendor/tslib/tslib.es6.js.map +1 -1
- package/dist/_vendor/urijs/src/IPv6.js.map +1 -1
- package/dist/_vendor/urijs/src/SecondLevelDomains.js.map +1 -1
- package/dist/_vendor/urijs/src/URI.js.map +1 -1
- package/dist/_vendor/urijs/src/punycode.js +3 -3
- package/dist/_vendor/urijs/src/punycode.js.map +1 -1
- package/dist/_vendor/whatwg-url/_vendor/webidl-conversions/lib/index.js.map +1 -1
- package/dist/_vendor/whatwg-url/lib/URL-impl.js.map +1 -1
- package/dist/_vendor/whatwg-url/lib/URL.js.map +1 -1
- package/dist/_vendor/whatwg-url/lib/public-api.js.map +1 -1
- package/dist/_vendor/whatwg-url/lib/url-state-machine.js.map +1 -1
- package/dist/_vendor/whatwg-url/lib/utils.js.map +1 -1
- package/dist/_virtual/index16.js +2 -2
- package/dist/_virtual/index17.js +2 -2
- package/dist/_virtual/index18.js +2 -2
- package/dist/_virtual/index19.js +2 -2
- package/dist/_virtual/index20.js +2 -2
- package/dist/_virtual/index21.js +2 -2
- package/dist/_virtual/index22.js +2 -2
- package/dist/_virtual/index25.js +2 -2
- package/dist/_virtual/index26.js +2 -2
- package/dist/_virtual/index28.js +2 -2
- package/dist/_virtual/index31.js +2 -2
- package/dist/_virtual/index32.js +2 -2
- package/dist/_virtual/index33.js +2 -2
- package/dist/_virtual/index35.js +2 -2
- package/dist/_virtual/index36.js +2 -2
- package/dist/_virtual/index38.js +2 -2
- package/dist/_virtual/index41.js +2 -2
- package/dist/_virtual/index42.js +2 -2
- package/dist/_virtual/index43.js +2 -2
- package/dist/_virtual/index44.js +2 -2
- package/dist/_virtual/index47.js +2 -2
- package/dist/_virtual/index48.js +2 -2
- package/dist/_virtual/index50.js +2 -2
- package/dist/_virtual/index51.js +2 -2
- package/dist/_virtual/index52.js +2 -2
- package/dist/_virtual/index53.js +2 -2
- package/dist/_virtual/index57.js +2 -2
- package/dist/_virtual/index59.js +2 -2
- package/dist/lib/QraftCommand.js.map +1 -1
- package/dist/lib/readSchema.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/package.json +15 -15
- package/src/packageVersion.ts +1 -1
- package/dist/_vendor/@stoplight/spectral-core/_vendor/lodash/lodash.js +0 -17251
- package/dist/_vendor/@stoplight/spectral-core/_vendor/lodash/lodash.js.map +0 -1
- package/dist/_vendor/@stoplight/spectral-functions/_vendor/lodash/lodash.js +0 -17251
- package/dist/_vendor/@stoplight/spectral-functions/_vendor/lodash/lodash.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2023/CreateNonEnumerableDataPropertyOrThrow.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2023/DefinePropertyOrThrow.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2023/FromPropertyDescriptor.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2023/IsCallable.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2023/IsDataDescriptor.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2023/SameValue.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2023/ToBoolean.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2023/ToPropertyDescriptor.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/AdvanceStringIndex.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/AsyncFromSyncIteratorContinuation.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/Call.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/CodePointAt.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/CreateAsyncFromSyncIterator.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/CreateDataProperty.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/CreateDataPropertyOrThrow.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/CreateIteratorResultObject.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/FromPropertyDescriptor.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/Get.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/GetIterator.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/GetIteratorFromMethod.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/GetMethod.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/GetV.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/IsAccessorDescriptor.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/IsArray.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/IsCallable.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/IsDataDescriptor.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/IsExtensible.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/IsGenericDescriptor.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/IteratorComplete.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/IteratorNext.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/IteratorStep.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/IteratorToList.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/IteratorValue.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/OrdinaryDefineOwnProperty.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/OrdinaryGetPrototypeOf.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/OrdinaryObjectCreate.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/OrdinarySetPrototypeOf.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/PromiseResolve.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/SameValue.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/ToBoolean.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/ToPropertyDescriptor.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/UTF16SurrogatePairToCodePoint.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/2025/ValidateAndApplyPropertyDescriptor.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/helpers/DefineOwnProperty.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/helpers/IsArray.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/helpers/forEach.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/helpers/fromPropertyDescriptor.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/helpers/getIteratorMethod.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/helpers/isLeadingSurrogate.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/helpers/isPrimitive.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/helpers/isPropertyKey.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/helpers/isTrailingSurrogate.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/helpers/records/iterator-record.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/es-abstract/helpers/records/property-descriptor.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/object-inspect/index.js +0 -558
- package/dist/_vendor/es-aggregate-error/_vendor/object-inspect/index.js.map +0 -1
- package/dist/_vendor/es-aggregate-error/_vendor/object-inspect/util.inspect.js +0 -14
- package/dist/_vendor/es-aggregate-error/_vendor/object-inspect/util.inspect.js.map +0 -1
- package/dist/_vendor/minimatch/_vendor/brace-expansion/index.js.map +0 -1
- package/dist/_vendor/minimatch/minimatch.js.map +0 -1
- package/dist/_virtual/lodash3.js +0 -4
- package/dist/_virtual/lodash3.js.map +0 -1
- package/dist/_virtual/lodash4.js +0 -4
- package/dist/_virtual/lodash4.js.map +0 -1
- /package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2023/ToBoolean.js +0 -0
- /package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/IsArray.js +0 -0
- /package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/2025/ToBoolean.js +0 -0
- /package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/helpers/forEach.js +0 -0
- /package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/helpers/fromPropertyDescriptor.js +0 -0
- /package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/helpers/isFullyPopulatedPropertyDescriptor.js +0 -0
- /package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/helpers/isLeadingSurrogate.js +0 -0
- /package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/helpers/isPrimitive.js +0 -0
- /package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/helpers/isPropertyKey.js +0 -0
- /package/dist/_vendor/{es-aggregate-error/_vendor/es-abstract → es-abstract}/helpers/isTrailingSurrogate.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @qraft/asyncapi-plugin
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.6
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6a2f1ed: Updated repository dependencies to current compatible versions across the workspace.
|
|
8
|
+
- 55a23fd: Updated the openapi-typescript package to the current compatible version.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 4f646ec: Refactored AsyncAPI enum-values ref resolution to match openapi-typescript@7.13.0 while keeping the main schema transform flow readable.
|
|
13
|
+
- Updated dependencies [6a2f1ed]
|
|
14
|
+
- @qraft/plugin@1.0.0-beta.6
|
|
15
|
+
|
|
3
16
|
## 1.0.0-beta.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function w(e){if("object"!=typeof e||null===e)return
|
|
1
|
+
function w(e){if("object"!=typeof e||null===e)return false;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype||"function"==typeof e.constructor&&Function.toString.call(Object)===Function.toString.call(e.constructor)}
|
|
2
2
|
|
|
3
3
|
export { w as isPlainObject };
|
|
4
4
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../../../../../node_modules/@asyncapi/parser/node_modules/@stoplight/json/index.es.js"],"sourcesContent":["import{cloneDeep as e,get as t,set as r,has as n,setWith as o,omit as i,trimStart as a}from\"lodash\";import{isAbsolute as s,join as c,dirname as u}from\"@stoplight/path\";import{createScanner as l,findNodeAtOffset as f,getNodePath as p,visit as h,printParseErrorCode as y}from\"jsonc-parser\";import g,{getOrder as d,ORDER_KEY_ID as m}from\"@stoplight/ordered-object-literal\";import{DiagnosticSeverity as v}from\"@stoplight/types\";import b from\"safe-stable-stringify\";function w(e){if(\"object\"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype||\"function\"==typeof e.constructor&&Function.toString.call(Object)===Function.toString.call(e.constructor)}function O(e,t,r){if(!w(e)&&!Array.isArray(e)||!(t in e))throw new ReferenceError(`Could not resolve '${r}'`)}function j(e){if(\"string\"!=typeof e.$ref)throw new TypeError(\"$ref should be a string\")}const A=e=>w(e)&&\"$ref\"in e,$=e=>A(e)&&\"string\"==typeof e.$ref,E=e=>e.length>0&&(\"#\"===e||/^#\\S*$/.test(e)),S=(e,t,r)=>{const n=e.toString();let o=\"\",i=n,a=0,s=i.indexOf(t);for(;s>-1;)o+=n.substring(a,a+s)+r,i=i.substring(s+t.length,i.length),a+=s+t.length,s=i.indexOf(t);return i.length>0&&(o+=n.substring(n.length-i.length,n.length)),o},x=e=>\"number\"==typeof e?e:S(S(e,\"~\",\"~0\"),\"/\",\"~1\"),_=/[^a-zA–Z0–9_.!~*'()\\/\\-\\u{D800}-\\u{DFFF}]/gu;function N(e){return e.replace(_,encodeURIComponent)}const k=e=>{const t=x(e);return\"number\"==typeof t?t:N(t)},P=e=>I(e),I=e=>{if(e&&\"object\"!=typeof e)throw new TypeError(\"Invalid type: path must be an array of segments.\");return 0===e.length?\"#\":`#/${e.map(k).join(\"/\")}`};function T(e){try{return decodeURIComponent(e)}catch(t){return e}}const R=/%[0-9a-f]+/gi,U=e=>{let t;try{t=decodeURIComponent(e)}catch(r){t=e.replace(R,T)}return S(S(t,\"~1\",\"/\"),\"~0\",\"~\")},K=e=>J(e),J=e=>{if(\"string\"!=typeof e)throw new TypeError(\"Invalid type: JSON Pointers are represented as strings.\");if(0===e.length||\"#\"!==e[0])throw new URIError(\"Invalid JSON Pointer syntax; URI fragment identifiers must begin with a hash.\");if(1===e.length)return[];if(\"/\"!==e[1])throw new URIError(\"Invalid JSON Pointer syntax.\");return(e=>{const t=e.length,r=[];let n=-1;for(;++n<t;)r.push(U(e[n]));return r})(e.substring(2).split(\"/\"))},C=(e,t,r)=>{const n={value:e,path:r};t.onEnter&&t.onEnter(n);for(const n of Object.keys(e)){const o=e[n];t.onProperty&&t.onProperty({parent:e,parentPath:r,property:n,propertyValue:o}),\"object\"==typeof o&&null!==o&&C(o,t,r.concat(n))}t.onLeave&&t.onLeave(n)},D=(e,t)=>{\"object\"==typeof e&&null!==e&&C(e,\"function\"==typeof t?{onProperty:t}:t,[])};function F(e,t,r){D(e,{onProperty({property:e,propertyValue:n,parent:o}){\"$ref\"===e&&\"string\"==typeof n&&n.startsWith(t)&&(o.$ref=`${r}${n.slice(t.length)}`)}})}const M=e=>e.length>0&&\"#\"!==e[0],V=e=>{if(\"string\"!=typeof e||0===e.length||!M(e))return null;const t=e.indexOf(\"#\");return-1===t?e:e.slice(0,t)};function W(e,t){return w(t)&&w(e)&&(\"summary\"in e||\"description\"in e)?Object.assign(Object.assign(Object.assign({},t),\"description\"in e?{description:e.description}:null),\"summary\"in e?{summary:e.summary}:null):t}function*L(e,t,r){A(e.value)&&(j(e.value),yield[-1,e.value]);for(const[n,o]of t.entries())O(e.value,o,r),e.value=e.value[o],A(e.value)&&(j(e.value),yield[n,e.value])}function B(e,t){return z(e,t).value}function z(e,t){return function e(t,r,n,o){if(null!==V(r))throw new ReferenceError(\"Cannot resolve external references\");const i=K(r);let a=[...i];\"#\"===r&&A(t)&&(j(t),i.unshift(...K(t.$ref)));const s={value:t};for(const[c,u]of L(s,i,r)){if(n.includes(u))return{source:null,location:null!=o?o:a,value:n[n.length-1]};n.push(u);const r=e(t,u.$ref,n,a);s.value=r.value,(a=r.location).push(...i.slice(c+1))}return{source:null,location:a,value:n.length>0?W(n[n.length-1],s.value):s.value}}(e,t,[])}const Z=\"#/__bundled__\",q=\"#/__errors__\",G=({document:t,path:r,bundleRoot:n=\"#/__bundled__\",errorsRoot:o=\"#/__errors__\",cloneDocument:i=!0,keyProvider:a},s)=>{if(r===n||r===o)throw new Error(\"Roots do not make any sense\");const c=i?e(t):t;return H(c,K(n),K(o),r,a)(r,{[r]:!0},s)},H=(e,a,s,c,u)=>{const l=new Set,f=(p,h,y,g={},d={},m={})=>{const v=K(p),b=t(e,v);D(y||b,{onEnter:({value:s})=>{if($(s)&&E(s.$ref)){const y=s.$ref;if(m[y])return;if(y===p&&(g[y]=\"#\"),g[y])return void(s.$ref=g[y]);let v,b,w,O,j;try{let r;v=K(y),u&&(r=u({document:e,path:v})),r||(r=(({document:e,path:r})=>{if(0===r.length)return\"root\";if(Array.isArray(t(e,r.slice(0,-1))))return`${r[r.length-2]}_${r[r.length-1]}`;return String(r[r.length-1])})({document:e,path:v})),w=r;let n=1;for(;l.has(w);)if(w=`${r}_${++n}`,n>20)throw new Error(`Keys ${r}_2 through ${r}_20 already taken.`);l.add(w),b=[...a,w],O=P(b)}catch(e){m[y]=e instanceof Error?e.message:String(e)}if(!v||!b||!O)return;if(\"object\"==typeof e&&null!==e&&!(j=t(e,v)))try{j=B(Object(e),y)}catch(e){}void 0!==j&&(g[y]=O,s.$ref=O,n(d,b)||(Array.isArray(j)?r(d,b,new Array(j.length).fill(null)):\"object\"==typeof j&&o(d,b,{},Object),r(d,b,j),\"#\"===y?function(e,t,n,o){const a=n.map(e=>`[${JSON.stringify(e)}]`).join(\"\"),s=JSON.parse(JSON.stringify(i(Object(e),a))),c={};r(t,o,s),r(s,n,c),F(s,\"#\",P(o)),c.$ref=\"#\"}(e,d,K(c),b):h[y]||(h[y]=!0,f(p,h,j,g,d,m),h[y]=!1)))}}});const w=t(d,a);return w&&Object.keys(w).length&&r(b,a,w),(Object.keys(m).length||n(e,s))&&r(b,s,n(e,s)?t(e,s):m),b};return f};const Q=e=>S(S(e,\"~1\",\"/\"),\"~0\",\"~\"),X=(e,t)=>{const r=new WeakMap;return function e(n,o){let i;if(t&&(n=t(n)),w(n)||Array.isArray(n)){const t=r.get(n);return t?{$ref:t}:(r.set(n,P(o)),Array.isArray(n)?i=n.map((t,r)=>e(t,[...o,String(r)])):(i={},Object.keys(n).forEach(t=>{i[t]=e(n[t],[...o,t])})),r.delete(n),i)}return n}(e,[])},Y=e=>S(S(e,\"~\",\"~0\"),\"//\",\"/~1\"),ee=e=>{if(\"string\"!=typeof e||0===e.length)return null;const t=e.indexOf(\"#\");return-1===t?null:e.slice(t)},te=e=>{const t=l(e,!0);if(t.scan(),1!==t.getToken())return;if(t.scan(),2===t.getToken())return;if(10!==t.getToken())throw new SyntaxError(\"Unexpected character\");const r=t.getTokenValue();if(t.scan(),6!==t.getToken())throw new SyntaxError(\"Colon expected\");switch(t.scan(),t.getToken()){case 10:return[r,t.getTokenValue()];case 11:return[r,Number(t.getTokenValue())];case 8:return[r,!0];case 9:return[r,!1];case 7:return[r,null];case 16:throw new SyntaxError(\"Unexpected character\");case 17:throw new SyntaxError(\"Unexpected end of file\");default:return}},re=({lineMap:e,ast:t},r)=>{const n=e[r.line],o=e[r.line+1];if(void 0===n)return;const i=f(t,void 0===o?n+r.character:Math.min(o,n+r.character),!0);if(void 0===i)return;const a=p(i);return 0!==a.length?a:void 0};function ne(e){return Q(e.split(\"/\").pop()||\"\")}const oe=({ast:e},t,r=!1)=>{const n=function(e,t,r){e:for(const n of t){const t=Number.isInteger(Number(n))?Number(n):n;if(\"string\"==typeof t||\"number\"==typeof t&&\"array\"!==e.type){if(\"object\"!==e.type||!Array.isArray(e.children))return r?e:void 0;for(const r of e.children)if(Array.isArray(r.children)&&r.children[0].value===String(t)&&2===r.children.length){e=r.children[1];continue e}return r?e:void 0}if(\"array\"!==e.type||t<0||!Array.isArray(e.children)||t>=e.children.length)return r?e:void 0;e=e.children[t]}return e}(e,t,r);if(void 0!==n&&void 0!==n.range)return{range:n.range}};const ie=(e,t={disallowComments:!0})=>{const r=[],{ast:n,data:o,lineMap:i}=ae(e,r,t);return{data:o,diagnostics:r,ast:n,lineMap:i}};function ae(e,t=[],r){const n=ce(e);let o={type:\"array\",offset:-1,length:-1,children:[],parent:void 0},i=null,a=[];const s=new WeakMap,c=[];function u(e){\"property\"===o.type&&(o.length=e-o.offset,o=o.parent)}function l(e,t,r){return{start:{line:e,character:t},end:{line:e,character:t+r}}}function f(e){return o.children.push(e),e}function p(e){Array.isArray(a)?a.push(e):null!==i&&(a[i]=e)}function m(e){p(e),c.push(a),a=e,i=null}function b(){a=c.pop()}h(e,{onObjectBegin:(e,t,n,i)=>{o=f({type:\"object\",offset:e,length:-1,parent:o,children:[],range:l(n,i,t)}),!1===r.ignoreDuplicateKeys&&s.set(o,[]),m(function(e){return e?g({}):{}}(!0===r.preserveKeyOrder))},onObjectProperty:(e,n,c,u,p)=>{if((o=f({type:\"property\",offset:n,length:-1,parent:o,children:[]})).children.push({type:\"string\",value:e,offset:n,length:c,parent:o}),!1===r.ignoreDuplicateKeys){const r=s.get(o.parent);r&&(0!==r.length&&r.includes(e)?t.push({range:l(u,p,c),message:\"DuplicateKey\",severity:v.Error,path:ue(o),code:20}):r.push(e))}!0===r.preserveKeyOrder&&function(e,t){if(!(t in e))return;const r=d(e),n=r.indexOf(t);-1!==n&&(r.splice(n,1),r.push(t))}(a,e),i=e},onObjectEnd:(e,t,n,i)=>{!1===r.ignoreDuplicateKeys&&s.delete(o),o.length=e+t-o.offset,o.range&&(o.range.end.line=n,o.range.end.character=i+t),o=o.parent,u(e+t),b()},onArrayBegin:(e,t,r,n)=>{o=f({type:\"array\",offset:e,length:-1,parent:o,children:[],range:l(r,n,t)}),m([])},onArrayEnd:(e,t,r,n)=>{o.length=e+t-o.offset,o.range&&(o.range.end.line=r,o.range.end.character=n+t),o=o.parent,u(e+t),b()},onLiteralValue:(e,t,r,n,i)=>{f({type:se(e),offset:t,length:r,parent:o,value:e,range:l(n,i,r)}),u(t+r),p(e)},onSeparator:(e,t)=>{\"property\"===o.type&&(\":\"===e?o.colonOffset=t:\",\"===e&&u(t))},onError:(e,r,n,o,i)=>{t.push({range:l(o,i,n),message:y(e),severity:v.Error,code:e})}},r);const w=o.children[0];return w&&delete w.parent,{ast:w,data:a[0],lineMap:n}}function se(e){switch(typeof e){case\"boolean\":return\"boolean\";case\"number\":return\"number\";case\"string\":return\"string\";default:return\"null\"}}const ce=e=>{const t=[0];let r=0;for(;r<e.length;r++)\"\\n\"===e[r]&&t.push(r+1);return t.push(r+1),t};function ue(e,t=[]){return\"property\"===e.type&&t.unshift(e.children[0].value),void 0!==e.parent?(\"array\"===e.parent.type&&void 0!==e.parent.parent&&t.unshift(e.parent.children.indexOf(e)),ue(e.parent,t)):t}const le=(e,t,r)=>{if(!e||!Object.hasOwnProperty.call(e,t)||t===r)return e;const n={};for(const[o,i]of Object.entries(e))o===t?n[r]=i:o in n||(n[o]=i);return n};function fe(e){return w(e)||Array.isArray(e)}function pe(e,t,r){if(r.length<=1||t.length<=1)throw Error(\"Source/target path must not be empty and point at root\");if(0===t.indexOf(r))throw Error(\"Target path cannot be contained within source\");const n=K(t);let o=e;for(const e of n){if(!fe(o))return;o=o[e]}if(!fe(o))return;const i=K(r);let a=e;for(const[e,t]of i.entries()){if(!fe(a)||t in a)return;const r=e===i.length-1?o:{};a[t]=r,a=r}delete e[n[0]],function e(t,r,n){for(const o of Object.keys(t)){const i=t[o];if(\"$ref\"!==o)fe(i)&&e(i,r,n);else{if(\"string\"!=typeof i||!E(i))continue;0===i.indexOf(r)&&(t[o]=i.replace(r,n))}}}(e,t,r)}async function he(e,t,r,n,o){let i=function(e,t){const r=V(t);return null===r?e:s(r)?r:c(u(e),r)}(t,r);const a=ee(r)||\"#\",l=await e[i],f=K(a);let p=[...f];const h={value:l};for(const[r,s]of L(h,f,a)){if(n.includes(s))return{source:t,location:null!=o?o:p,value:n[n.length-1]};n.push(s);const a=await he(e,i,s.$ref,n,p);({source:i,location:p}=a),h.value=a.value,p.push(...f.slice(r+1))}return{source:i,location:p,value:n.length>0?W(n[n.length-1],h.value):h.value}}async function ye(e,t,r){return(await ge(e,t,r)).value}function ge(e,t,r){return he(e,t,r,[])}const de=(e,t)=>{if(\"string\"!=typeof e)return e;try{const r=me(e);return\"string\"==typeof r?r:JSON.parse(e,t)}catch(e){return}},me=e=>{const t=Number(e);return Number.isFinite(t)?String(t)===e?t:e:NaN},ve=(e,t,r)=>{if(\"string\"==typeof e)return e;try{return JSON.stringify(e,t,r)}catch(n){return b(e,t,r)}},be=(e,t)=>{if(e instanceof Array){if(t instanceof Array){if(t.length>e.length)return!1;for(const r in t){if(!t.hasOwnProperty(r))continue;const n=parseInt(e[r]),o=parseInt(t[r]);if(isNaN(n)&&isNaN(o)){if(e[r]!==t[r])return!1}else if(n!==o)return!1}}}else{if(\"string\"!=typeof e)return!1;if(\"string\"==typeof t)return e.startsWith(t)}return!0},we=(e,t,r)=>{const n=ve(e,t,r);if(void 0===n)throw new Error(\"The value could not be stringified\");return n};function Oe(e){return e.replace(/^(\\/|#\\/)/,\"\").split(\"/\").map(Q).map(je).join(\".\")}function je(e){return e.includes(\".\")?`[\"${e.replace(/\"/g,'\\\\\"')}\"]`:e}const Ae=Symbol.for(m),$e={ownKeys:e=>Ae in e?e[Ae]:Reflect.ownKeys(e)},Ee=e=>new Proxy(e,$e);function Se(e,t){if(\"string\"==typeof e&&\"string\"==typeof t)return a(e,t);if(!(e&&Array.isArray(e)&&e.length&&t&&Array.isArray(t)&&t.length))return e;let r=0;for(const n in e)if(e.hasOwnProperty(n)){if(e[n]!==t[n])break;r++}return e.slice(r)}export{Z as BUNDLE_ROOT,q as ERRORS_ROOT,Ae as KEYS,G as bundleTarget,U as decodePointer,Q as decodePointerFragment,U as decodePointerUriFragment,X as decycle,Y as encodePointer,x as encodePointerFragment,k as encodePointerUriFragment,N as encodeUriPointer,ee as extractPointerFromRef,V as extractSourceFromRef,te as getFirstPrimitiveProperty,re as getJsonPathForPosition,ne as getLastPathSegment,oe as getLocationForJsonPath,$ as hasRef,M as isExternalRef,E as isLocalRef,w as isPlainObject,ae as parseTree,ie as parseWithPointers,P as pathToPointer,K as pointerToPath,F as remapRefs,le as renameObjectKey,pe as reparentBundleTarget,ye as resolveExternalRef,ge as resolveExternalRefWithLocation,B as resolveInlineRef,z as resolveInlineRefWithLocation,de as safeParse,ve as safeStringify,be as startsWith,we as stringify,Oe as toPropertyPath,Ee as trapAccess,D as traverse,Se as trimStart};\n"],"names":[],"mappings":"AAA6c,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,QAAQ,EAAE,OAAO,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,OAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../../../../../node_modules/@asyncapi/parser/node_modules/@stoplight/json/index.es.js"],"sourcesContent":["import{cloneDeep as e,get as t,set as r,has as n,setWith as o,omit as i,trimStart as a}from\"lodash\";import{isAbsolute as s,join as c,dirname as u}from\"@stoplight/path\";import{createScanner as l,findNodeAtOffset as f,getNodePath as p,visit as h,printParseErrorCode as y}from\"jsonc-parser\";import g,{getOrder as d,ORDER_KEY_ID as m}from\"@stoplight/ordered-object-literal\";import{DiagnosticSeverity as v}from\"@stoplight/types\";import b from\"safe-stable-stringify\";function w(e){if(\"object\"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype||\"function\"==typeof e.constructor&&Function.toString.call(Object)===Function.toString.call(e.constructor)}function O(e,t,r){if(!w(e)&&!Array.isArray(e)||!(t in e))throw new ReferenceError(`Could not resolve '${r}'`)}function j(e){if(\"string\"!=typeof e.$ref)throw new TypeError(\"$ref should be a string\")}const A=e=>w(e)&&\"$ref\"in e,$=e=>A(e)&&\"string\"==typeof e.$ref,E=e=>e.length>0&&(\"#\"===e||/^#\\S*$/.test(e)),S=(e,t,r)=>{const n=e.toString();let o=\"\",i=n,a=0,s=i.indexOf(t);for(;s>-1;)o+=n.substring(a,a+s)+r,i=i.substring(s+t.length,i.length),a+=s+t.length,s=i.indexOf(t);return i.length>0&&(o+=n.substring(n.length-i.length,n.length)),o},x=e=>\"number\"==typeof e?e:S(S(e,\"~\",\"~0\"),\"/\",\"~1\"),_=/[^a-zA–Z0–9_.!~*'()\\/\\-\\u{D800}-\\u{DFFF}]/gu;function N(e){return e.replace(_,encodeURIComponent)}const k=e=>{const t=x(e);return\"number\"==typeof t?t:N(t)},P=e=>I(e),I=e=>{if(e&&\"object\"!=typeof e)throw new TypeError(\"Invalid type: path must be an array of segments.\");return 0===e.length?\"#\":`#/${e.map(k).join(\"/\")}`};function T(e){try{return decodeURIComponent(e)}catch(t){return e}}const R=/%[0-9a-f]+/gi,U=e=>{let t;try{t=decodeURIComponent(e)}catch(r){t=e.replace(R,T)}return S(S(t,\"~1\",\"/\"),\"~0\",\"~\")},K=e=>J(e),J=e=>{if(\"string\"!=typeof e)throw new TypeError(\"Invalid type: JSON Pointers are represented as strings.\");if(0===e.length||\"#\"!==e[0])throw new URIError(\"Invalid JSON Pointer syntax; URI fragment identifiers must begin with a hash.\");if(1===e.length)return[];if(\"/\"!==e[1])throw new URIError(\"Invalid JSON Pointer syntax.\");return(e=>{const t=e.length,r=[];let n=-1;for(;++n<t;)r.push(U(e[n]));return r})(e.substring(2).split(\"/\"))},C=(e,t,r)=>{const n={value:e,path:r};t.onEnter&&t.onEnter(n);for(const n of Object.keys(e)){const o=e[n];t.onProperty&&t.onProperty({parent:e,parentPath:r,property:n,propertyValue:o}),\"object\"==typeof o&&null!==o&&C(o,t,r.concat(n))}t.onLeave&&t.onLeave(n)},D=(e,t)=>{\"object\"==typeof e&&null!==e&&C(e,\"function\"==typeof t?{onProperty:t}:t,[])};function F(e,t,r){D(e,{onProperty({property:e,propertyValue:n,parent:o}){\"$ref\"===e&&\"string\"==typeof n&&n.startsWith(t)&&(o.$ref=`${r}${n.slice(t.length)}`)}})}const M=e=>e.length>0&&\"#\"!==e[0],V=e=>{if(\"string\"!=typeof e||0===e.length||!M(e))return null;const t=e.indexOf(\"#\");return-1===t?e:e.slice(0,t)};function W(e,t){return w(t)&&w(e)&&(\"summary\"in e||\"description\"in e)?Object.assign(Object.assign(Object.assign({},t),\"description\"in e?{description:e.description}:null),\"summary\"in e?{summary:e.summary}:null):t}function*L(e,t,r){A(e.value)&&(j(e.value),yield[-1,e.value]);for(const[n,o]of t.entries())O(e.value,o,r),e.value=e.value[o],A(e.value)&&(j(e.value),yield[n,e.value])}function B(e,t){return z(e,t).value}function z(e,t){return function e(t,r,n,o){if(null!==V(r))throw new ReferenceError(\"Cannot resolve external references\");const i=K(r);let a=[...i];\"#\"===r&&A(t)&&(j(t),i.unshift(...K(t.$ref)));const s={value:t};for(const[c,u]of L(s,i,r)){if(n.includes(u))return{source:null,location:null!=o?o:a,value:n[n.length-1]};n.push(u);const r=e(t,u.$ref,n,a);s.value=r.value,(a=r.location).push(...i.slice(c+1))}return{source:null,location:a,value:n.length>0?W(n[n.length-1],s.value):s.value}}(e,t,[])}const Z=\"#/__bundled__\",q=\"#/__errors__\",G=({document:t,path:r,bundleRoot:n=\"#/__bundled__\",errorsRoot:o=\"#/__errors__\",cloneDocument:i=!0,keyProvider:a},s)=>{if(r===n||r===o)throw new Error(\"Roots do not make any sense\");const c=i?e(t):t;return H(c,K(n),K(o),r,a)(r,{[r]:!0},s)},H=(e,a,s,c,u)=>{const l=new Set,f=(p,h,y,g={},d={},m={})=>{const v=K(p),b=t(e,v);D(y||b,{onEnter:({value:s})=>{if($(s)&&E(s.$ref)){const y=s.$ref;if(m[y])return;if(y===p&&(g[y]=\"#\"),g[y])return void(s.$ref=g[y]);let v,b,w,O,j;try{let r;v=K(y),u&&(r=u({document:e,path:v})),r||(r=(({document:e,path:r})=>{if(0===r.length)return\"root\";if(Array.isArray(t(e,r.slice(0,-1))))return`${r[r.length-2]}_${r[r.length-1]}`;return String(r[r.length-1])})({document:e,path:v})),w=r;let n=1;for(;l.has(w);)if(w=`${r}_${++n}`,n>20)throw new Error(`Keys ${r}_2 through ${r}_20 already taken.`);l.add(w),b=[...a,w],O=P(b)}catch(e){m[y]=e instanceof Error?e.message:String(e)}if(!v||!b||!O)return;if(\"object\"==typeof e&&null!==e&&!(j=t(e,v)))try{j=B(Object(e),y)}catch(e){}void 0!==j&&(g[y]=O,s.$ref=O,n(d,b)||(Array.isArray(j)?r(d,b,new Array(j.length).fill(null)):\"object\"==typeof j&&o(d,b,{},Object),r(d,b,j),\"#\"===y?function(e,t,n,o){const a=n.map(e=>`[${JSON.stringify(e)}]`).join(\"\"),s=JSON.parse(JSON.stringify(i(Object(e),a))),c={};r(t,o,s),r(s,n,c),F(s,\"#\",P(o)),c.$ref=\"#\"}(e,d,K(c),b):h[y]||(h[y]=!0,f(p,h,j,g,d,m),h[y]=!1)))}}});const w=t(d,a);return w&&Object.keys(w).length&&r(b,a,w),(Object.keys(m).length||n(e,s))&&r(b,s,n(e,s)?t(e,s):m),b};return f};const Q=e=>S(S(e,\"~1\",\"/\"),\"~0\",\"~\"),X=(e,t)=>{const r=new WeakMap;return function e(n,o){let i;if(t&&(n=t(n)),w(n)||Array.isArray(n)){const t=r.get(n);return t?{$ref:t}:(r.set(n,P(o)),Array.isArray(n)?i=n.map((t,r)=>e(t,[...o,String(r)])):(i={},Object.keys(n).forEach(t=>{i[t]=e(n[t],[...o,t])})),r.delete(n),i)}return n}(e,[])},Y=e=>S(S(e,\"~\",\"~0\"),\"//\",\"/~1\"),ee=e=>{if(\"string\"!=typeof e||0===e.length)return null;const t=e.indexOf(\"#\");return-1===t?null:e.slice(t)},te=e=>{const t=l(e,!0);if(t.scan(),1!==t.getToken())return;if(t.scan(),2===t.getToken())return;if(10!==t.getToken())throw new SyntaxError(\"Unexpected character\");const r=t.getTokenValue();if(t.scan(),6!==t.getToken())throw new SyntaxError(\"Colon expected\");switch(t.scan(),t.getToken()){case 10:return[r,t.getTokenValue()];case 11:return[r,Number(t.getTokenValue())];case 8:return[r,!0];case 9:return[r,!1];case 7:return[r,null];case 16:throw new SyntaxError(\"Unexpected character\");case 17:throw new SyntaxError(\"Unexpected end of file\");default:return}},re=({lineMap:e,ast:t},r)=>{const n=e[r.line],o=e[r.line+1];if(void 0===n)return;const i=f(t,void 0===o?n+r.character:Math.min(o,n+r.character),!0);if(void 0===i)return;const a=p(i);return 0!==a.length?a:void 0};function ne(e){return Q(e.split(\"/\").pop()||\"\")}const oe=({ast:e},t,r=!1)=>{const n=function(e,t,r){e:for(const n of t){const t=Number.isInteger(Number(n))?Number(n):n;if(\"string\"==typeof t||\"number\"==typeof t&&\"array\"!==e.type){if(\"object\"!==e.type||!Array.isArray(e.children))return r?e:void 0;for(const r of e.children)if(Array.isArray(r.children)&&r.children[0].value===String(t)&&2===r.children.length){e=r.children[1];continue e}return r?e:void 0}if(\"array\"!==e.type||t<0||!Array.isArray(e.children)||t>=e.children.length)return r?e:void 0;e=e.children[t]}return e}(e,t,r);if(void 0!==n&&void 0!==n.range)return{range:n.range}};const ie=(e,t={disallowComments:!0})=>{const r=[],{ast:n,data:o,lineMap:i}=ae(e,r,t);return{data:o,diagnostics:r,ast:n,lineMap:i}};function ae(e,t=[],r){const n=ce(e);let o={type:\"array\",offset:-1,length:-1,children:[],parent:void 0},i=null,a=[];const s=new WeakMap,c=[];function u(e){\"property\"===o.type&&(o.length=e-o.offset,o=o.parent)}function l(e,t,r){return{start:{line:e,character:t},end:{line:e,character:t+r}}}function f(e){return o.children.push(e),e}function p(e){Array.isArray(a)?a.push(e):null!==i&&(a[i]=e)}function m(e){p(e),c.push(a),a=e,i=null}function b(){a=c.pop()}h(e,{onObjectBegin:(e,t,n,i)=>{o=f({type:\"object\",offset:e,length:-1,parent:o,children:[],range:l(n,i,t)}),!1===r.ignoreDuplicateKeys&&s.set(o,[]),m(function(e){return e?g({}):{}}(!0===r.preserveKeyOrder))},onObjectProperty:(e,n,c,u,p)=>{if((o=f({type:\"property\",offset:n,length:-1,parent:o,children:[]})).children.push({type:\"string\",value:e,offset:n,length:c,parent:o}),!1===r.ignoreDuplicateKeys){const r=s.get(o.parent);r&&(0!==r.length&&r.includes(e)?t.push({range:l(u,p,c),message:\"DuplicateKey\",severity:v.Error,path:ue(o),code:20}):r.push(e))}!0===r.preserveKeyOrder&&function(e,t){if(!(t in e))return;const r=d(e),n=r.indexOf(t);-1!==n&&(r.splice(n,1),r.push(t))}(a,e),i=e},onObjectEnd:(e,t,n,i)=>{!1===r.ignoreDuplicateKeys&&s.delete(o),o.length=e+t-o.offset,o.range&&(o.range.end.line=n,o.range.end.character=i+t),o=o.parent,u(e+t),b()},onArrayBegin:(e,t,r,n)=>{o=f({type:\"array\",offset:e,length:-1,parent:o,children:[],range:l(r,n,t)}),m([])},onArrayEnd:(e,t,r,n)=>{o.length=e+t-o.offset,o.range&&(o.range.end.line=r,o.range.end.character=n+t),o=o.parent,u(e+t),b()},onLiteralValue:(e,t,r,n,i)=>{f({type:se(e),offset:t,length:r,parent:o,value:e,range:l(n,i,r)}),u(t+r),p(e)},onSeparator:(e,t)=>{\"property\"===o.type&&(\":\"===e?o.colonOffset=t:\",\"===e&&u(t))},onError:(e,r,n,o,i)=>{t.push({range:l(o,i,n),message:y(e),severity:v.Error,code:e})}},r);const w=o.children[0];return w&&delete w.parent,{ast:w,data:a[0],lineMap:n}}function se(e){switch(typeof e){case\"boolean\":return\"boolean\";case\"number\":return\"number\";case\"string\":return\"string\";default:return\"null\"}}const ce=e=>{const t=[0];let r=0;for(;r<e.length;r++)\"\\n\"===e[r]&&t.push(r+1);return t.push(r+1),t};function ue(e,t=[]){return\"property\"===e.type&&t.unshift(e.children[0].value),void 0!==e.parent?(\"array\"===e.parent.type&&void 0!==e.parent.parent&&t.unshift(e.parent.children.indexOf(e)),ue(e.parent,t)):t}const le=(e,t,r)=>{if(!e||!Object.hasOwnProperty.call(e,t)||t===r)return e;const n={};for(const[o,i]of Object.entries(e))o===t?n[r]=i:o in n||(n[o]=i);return n};function fe(e){return w(e)||Array.isArray(e)}function pe(e,t,r){if(r.length<=1||t.length<=1)throw Error(\"Source/target path must not be empty and point at root\");if(0===t.indexOf(r))throw Error(\"Target path cannot be contained within source\");const n=K(t);let o=e;for(const e of n){if(!fe(o))return;o=o[e]}if(!fe(o))return;const i=K(r);let a=e;for(const[e,t]of i.entries()){if(!fe(a)||t in a)return;const r=e===i.length-1?o:{};a[t]=r,a=r}delete e[n[0]],function e(t,r,n){for(const o of Object.keys(t)){const i=t[o];if(\"$ref\"!==o)fe(i)&&e(i,r,n);else{if(\"string\"!=typeof i||!E(i))continue;0===i.indexOf(r)&&(t[o]=i.replace(r,n))}}}(e,t,r)}async function he(e,t,r,n,o){let i=function(e,t){const r=V(t);return null===r?e:s(r)?r:c(u(e),r)}(t,r);const a=ee(r)||\"#\",l=await e[i],f=K(a);let p=[...f];const h={value:l};for(const[r,s]of L(h,f,a)){if(n.includes(s))return{source:t,location:null!=o?o:p,value:n[n.length-1]};n.push(s);const a=await he(e,i,s.$ref,n,p);({source:i,location:p}=a),h.value=a.value,p.push(...f.slice(r+1))}return{source:i,location:p,value:n.length>0?W(n[n.length-1],h.value):h.value}}async function ye(e,t,r){return(await ge(e,t,r)).value}function ge(e,t,r){return he(e,t,r,[])}const de=(e,t)=>{if(\"string\"!=typeof e)return e;try{const r=me(e);return\"string\"==typeof r?r:JSON.parse(e,t)}catch(e){return}},me=e=>{const t=Number(e);return Number.isFinite(t)?String(t)===e?t:e:NaN},ve=(e,t,r)=>{if(\"string\"==typeof e)return e;try{return JSON.stringify(e,t,r)}catch(n){return b(e,t,r)}},be=(e,t)=>{if(e instanceof Array){if(t instanceof Array){if(t.length>e.length)return!1;for(const r in t){if(!t.hasOwnProperty(r))continue;const n=parseInt(e[r]),o=parseInt(t[r]);if(isNaN(n)&&isNaN(o)){if(e[r]!==t[r])return!1}else if(n!==o)return!1}}}else{if(\"string\"!=typeof e)return!1;if(\"string\"==typeof t)return e.startsWith(t)}return!0},we=(e,t,r)=>{const n=ve(e,t,r);if(void 0===n)throw new Error(\"The value could not be stringified\");return n};function Oe(e){return e.replace(/^(\\/|#\\/)/,\"\").split(\"/\").map(Q).map(je).join(\".\")}function je(e){return e.includes(\".\")?`[\"${e.replace(/\"/g,'\\\\\"')}\"]`:e}const Ae=Symbol.for(m),$e={ownKeys:e=>Ae in e?e[Ae]:Reflect.ownKeys(e)},Ee=e=>new Proxy(e,$e);function Se(e,t){if(\"string\"==typeof e&&\"string\"==typeof t)return a(e,t);if(!(e&&Array.isArray(e)&&e.length&&t&&Array.isArray(t)&&t.length))return e;let r=0;for(const n in e)if(e.hasOwnProperty(n)){if(e[n]!==t[n])break;r++}return e.slice(r)}export{Z as BUNDLE_ROOT,q as ERRORS_ROOT,Ae as KEYS,G as bundleTarget,U as decodePointer,Q as decodePointerFragment,U as decodePointerUriFragment,X as decycle,Y as encodePointer,x as encodePointerFragment,k as encodePointerUriFragment,N as encodeUriPointer,ee as extractPointerFromRef,V as extractSourceFromRef,te as getFirstPrimitiveProperty,re as getJsonPathForPosition,ne as getLastPathSegment,oe as getLocationForJsonPath,$ as hasRef,M as isExternalRef,E as isLocalRef,w as isPlainObject,ae as parseTree,ie as parseWithPointers,P as pathToPointer,K as pointerToPath,F as remapRefs,le as renameObjectKey,pe as reparentBundleTarget,ye as resolveExternalRef,ge as resolveExternalRefWithLocation,B as resolveInlineRef,z as resolveInlineRefWithLocation,de as safeParse,ve as safeStringify,be as startsWith,we as stringify,Oe as toPropertyPath,Ee as trapAccess,D as traverse,Se as trimStart};\n"],"names":[],"mappings":"AAA6c,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,QAAQ,EAAE,OAAO,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,OAAM,MAAE,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../../../../../node_modules/@asyncapi/parser/esm/constants.js"],"sourcesContent":["import specs from '@asyncapi/specs';\nexport const xParserSpecParsed = 'x-parser-spec-parsed';\nexport const xParserSpecStringified = 'x-parser-spec-stringified';\nexport const xParserApiVersion = 'x-parser-api-version';\nexport const xParserMessageName = 'x-parser-message-name';\nexport const xParserMessageParsed = 'x-parser-message-parsed';\nexport const xParserSchemaId = 'x-parser-schema-id';\nexport const xParserOriginalSchemaFormat = 'x-parser-original-schema-format';\nexport const xParserOriginalPayload = 'x-parser-original-payload';\nexport const xParserOriginalTraits = 'x-parser-original-traits';\nexport const xParserCircular = 'x-parser-circular';\nexport const xParserCircularProps = 'x-parser-circular-props';\nexport const xParserObjectUniqueId = 'x-parser-unique-object-id';\nexport const EXTENSION_REGEX = /^x-[\\w\\d.\\-_]+$/;\n// Only >=2.0.0 versions are supported\nexport const specVersions = Object.keys(specs.schemas);\nexport const lastVersion = specVersions[specVersions.length - 1];\n"],"names":[],"mappings":";;AACY,MAAC,iBAAiB,GAAG
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../../../../../node_modules/@asyncapi/parser/esm/constants.js"],"sourcesContent":["import specs from '@asyncapi/specs';\nexport const xParserSpecParsed = 'x-parser-spec-parsed';\nexport const xParserSpecStringified = 'x-parser-spec-stringified';\nexport const xParserApiVersion = 'x-parser-api-version';\nexport const xParserMessageName = 'x-parser-message-name';\nexport const xParserMessageParsed = 'x-parser-message-parsed';\nexport const xParserSchemaId = 'x-parser-schema-id';\nexport const xParserOriginalSchemaFormat = 'x-parser-original-schema-format';\nexport const xParserOriginalPayload = 'x-parser-original-payload';\nexport const xParserOriginalTraits = 'x-parser-original-traits';\nexport const xParserCircular = 'x-parser-circular';\nexport const xParserCircularProps = 'x-parser-circular-props';\nexport const xParserObjectUniqueId = 'x-parser-unique-object-id';\nexport const EXTENSION_REGEX = /^x-[\\w\\d.\\-_]+$/;\n// Only >=2.0.0 versions are supported\nexport const specVersions = Object.keys(specs.schemas);\nexport const lastVersion = specVersions[specVersions.length - 1];\n"],"names":[],"mappings":";;AACY,MAAC,iBAAiB,GAAG;AACrB,MAAC,sBAAsB,GAAG;AAC1B,MAAC,iBAAiB,GAAG;AACrB,MAAC,kBAAkB,GAAG;AAEtB,MAAC,eAAe,GAAG;AAEnB,MAAC,sBAAsB,GAAG;AAE1B,MAAC,eAAe,GAAG;AAEnB,MAAC,qBAAqB,GAAG;AACzB,MAAC,eAAe,GAAG;AAC/B;AACY,MAAC,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO;AACzC,MAAC,WAAW,GAAG,YAAY,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anonymous-naming.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/anonymous-naming.js"],"sourcesContent":["import { xParserMessageName, xParserSchemaId } from '../constants';\nimport { traverseAsyncApiDocument } from '../iterator';\nimport { setExtension, setExtensionOnJson } from '../utils';\nexport function anonymousNaming(document) {\n assignNameToComponentMessages(document);\n assignNameToAnonymousMessages(document);\n assignUidToComponentSchemas(document);\n assignUidToComponentParameterSchemas(document);\n assignUidToChannelParameterSchemas(document);\n assignUidToAnonymousSchemas(document);\n}\nfunction assignNameToComponentMessages(document) {\n document.components().messages().forEach(message => {\n if (message.name() === undefined) {\n setExtension(xParserMessageName, message.id(), message);\n }\n });\n}\nfunction assignNameToAnonymousMessages(document) {\n let anonymousMessageCounter = 0;\n document.messages().forEach(message => {\n var _a;\n if (message.name() === undefined && ((_a = message.extensions().get(xParserMessageName)) === null || _a === void 0 ? void 0 : _a.value()) === undefined) {\n setExtension(xParserMessageName, message.id() || `<anonymous-message-${++anonymousMessageCounter}>`, message);\n }\n });\n}\nfunction assignUidToComponentParameterSchemas(document) {\n document.components().channelParameters().forEach(parameter => {\n const schema = parameter.schema();\n if (schema && !schema.id()) {\n setExtension(xParserSchemaId, parameter.id(), schema);\n }\n });\n}\nfunction assignUidToChannelParameterSchemas(document) {\n document.channels().forEach(channel => {\n channel.parameters().forEach(parameter => {\n const schema = parameter.schema();\n if (schema && !schema.id()) {\n setExtension(xParserSchemaId, parameter.id(), schema);\n }\n });\n });\n}\nfunction assignUidToComponentSchemas(document) {\n document.components().schemas().forEach(schema => {\n setExtension(xParserSchemaId, schema.id(), schema);\n });\n}\nfunction assignUidToAnonymousSchemas(doc) {\n let anonymousSchemaCounter = 0;\n function callback(schema) {\n const json = schema.json();\n const isMultiFormatSchema = json.schema !== undefined;\n const underlyingSchema = isMultiFormatSchema ? json.schema : json;\n if (!schema.id()) {\n setExtensionOnJson(xParserSchemaId, `<anonymous-schema-${++anonymousSchemaCounter}>`, underlyingSchema);\n }\n }\n traverseAsyncApiDocument(doc, callback);\n}\n"],"names":[],"mappings":";;;;AAGO,SAAS,eAAe,CAAC,QAAQ,EAAE;AAC1C,IAAI,6BAA6B,CAAC,QAAQ,CAAC
|
|
1
|
+
{"version":3,"file":"anonymous-naming.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/anonymous-naming.js"],"sourcesContent":["import { xParserMessageName, xParserSchemaId } from '../constants';\nimport { traverseAsyncApiDocument } from '../iterator';\nimport { setExtension, setExtensionOnJson } from '../utils';\nexport function anonymousNaming(document) {\n assignNameToComponentMessages(document);\n assignNameToAnonymousMessages(document);\n assignUidToComponentSchemas(document);\n assignUidToComponentParameterSchemas(document);\n assignUidToChannelParameterSchemas(document);\n assignUidToAnonymousSchemas(document);\n}\nfunction assignNameToComponentMessages(document) {\n document.components().messages().forEach(message => {\n if (message.name() === undefined) {\n setExtension(xParserMessageName, message.id(), message);\n }\n });\n}\nfunction assignNameToAnonymousMessages(document) {\n let anonymousMessageCounter = 0;\n document.messages().forEach(message => {\n var _a;\n if (message.name() === undefined && ((_a = message.extensions().get(xParserMessageName)) === null || _a === void 0 ? void 0 : _a.value()) === undefined) {\n setExtension(xParserMessageName, message.id() || `<anonymous-message-${++anonymousMessageCounter}>`, message);\n }\n });\n}\nfunction assignUidToComponentParameterSchemas(document) {\n document.components().channelParameters().forEach(parameter => {\n const schema = parameter.schema();\n if (schema && !schema.id()) {\n setExtension(xParserSchemaId, parameter.id(), schema);\n }\n });\n}\nfunction assignUidToChannelParameterSchemas(document) {\n document.channels().forEach(channel => {\n channel.parameters().forEach(parameter => {\n const schema = parameter.schema();\n if (schema && !schema.id()) {\n setExtension(xParserSchemaId, parameter.id(), schema);\n }\n });\n });\n}\nfunction assignUidToComponentSchemas(document) {\n document.components().schemas().forEach(schema => {\n setExtension(xParserSchemaId, schema.id(), schema);\n });\n}\nfunction assignUidToAnonymousSchemas(doc) {\n let anonymousSchemaCounter = 0;\n function callback(schema) {\n const json = schema.json();\n const isMultiFormatSchema = json.schema !== undefined;\n const underlyingSchema = isMultiFormatSchema ? json.schema : json;\n if (!schema.id()) {\n setExtensionOnJson(xParserSchemaId, `<anonymous-schema-${++anonymousSchemaCounter}>`, underlyingSchema);\n }\n }\n traverseAsyncApiDocument(doc, callback);\n}\n"],"names":[],"mappings":";;;;AAGO,SAAS,eAAe,CAAC,QAAQ,EAAE;AAC1C,IAAI,6BAA6B,CAAC,QAAQ,CAAC;AAC3C,IAAI,6BAA6B,CAAC,QAAQ,CAAC;AAC3C,IAAI,2BAA2B,CAAC,QAAQ,CAAC;AACzC,IAAI,oCAAoC,CAAC,QAAQ,CAAC;AAClD,IAAI,kCAAkC,CAAC,QAAQ,CAAC;AAChD,IAAI,2BAA2B,CAAC,QAAQ,CAAC;AACzC;AACA,SAAS,6BAA6B,CAAC,QAAQ,EAAE;AACjD,IAAI,QAAQ,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,OAAO,IAAI;AACxD,QAAQ,IAAI,OAAO,CAAC,IAAI,EAAE,KAAK,SAAS,EAAE;AAC1C,YAAY,YAAY,CAAC,kBAAkB,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC;AACnE,QAAQ;AACR,IAAI,CAAC,CAAC;AACN;AACA,SAAS,6BAA6B,CAAC,QAAQ,EAAE;AACjD,IAAI,IAAI,uBAAuB,GAAG,CAAC;AACnC,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,OAAO,IAAI;AAC3C,QAAQ,IAAI,EAAE;AACd,QAAQ,IAAI,OAAO,CAAC,IAAI,EAAE,KAAK,SAAS,IAAI,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,kBAAkB,CAAC,MAAM,IAAI,IAAI,EAAE,KAAK,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,SAAS,EAAE;AACjK,YAAY,YAA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AC,GAAG,EAAE;AAC1C,IAAI,IAAI,sBAAsB,GAAG,CAAC;AAClC,IAAI,SAAS,QAAQ,CAAC,MAAM,EAAE;AAC9B,QAAQ,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,EAAE;AAClC,QAAQ,MAAM,mBAAmB,GAAG,IAAI,CAAC,MAAM,KAAK,SAAS;AAC7D,QAAQ,MAAM,gBAAgB,GAAG,mBAAmB,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI;AACzE,QAAQ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE;AAC1B,YAAY,kBAAkB,CAAC,eAAe,EAAE,CAAC,kBAAkB,EAAE,EAAE,sBAAsB,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC;AACnH,QAAQ;AACR,IAAI;AACJ,IAAI,wBAAwB,CAAC,GAAG,EAAE,QAAQ,CAAC;AAC3C;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-traits.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/apply-traits.js"],"sourcesContent":["import { JSONPath } from 'jsonpath-plus';\nimport { mergePatch } from '../utils';\nconst v2TraitPaths = [\n // operations\n '$.channels.*.[publish,subscribe]',\n '$.components.channels.*.[publish,subscribe]',\n // messages\n '$.channels.*.[publish,subscribe].message',\n '$.channels.*.[publish,subscribe].message.oneOf.*',\n '$.components.channels.*.[publish,subscribe].message',\n '$.components.channels.*.[publish,subscribe].message.oneOf.*',\n '$.components.messages.*',\n];\nexport function applyTraitsV2(asyncapi) {\n applyAllTraitsV2(asyncapi, v2TraitPaths);\n}\nfunction applyAllTraitsV2(asyncapi, paths) {\n const visited = new Set();\n paths.forEach(path => {\n JSONPath({\n path,\n json: asyncapi,\n resultType: 'value',\n callback(value) {\n if (visited.has(value)) {\n return;\n }\n visited.add(value);\n applyTraitsToObjectV2(value);\n },\n });\n });\n}\nfunction applyTraitsToObjectV2(value) {\n if (Array.isArray(value.traits)) {\n for (const trait of value.traits) {\n for (const key in trait) {\n value[String(key)] = mergePatch(value[String(key)], trait[String(key)]);\n }\n }\n }\n}\nconst v3TraitPaths = [\n // operations\n '$.operations.*',\n '$.operations.*.channel.messages.*',\n '$.operations.*.messages.*',\n '$.components.operations.*',\n '$.components.operations.*.channel.messages.*',\n '$.components.operations.*.messages.*',\n // Channels\n '$.channels.*.messages.*',\n '$.components.channels.*.messages.*',\n // messages\n '$.components.messages.*',\n];\nexport function applyTraitsV3(asyncapi) {\n applyAllTraitsV3(asyncapi, v3TraitPaths);\n}\nfunction applyAllTraitsV3(asyncapi, paths) {\n const visited = new Set();\n paths.forEach(path => {\n JSONPath({\n path,\n json: asyncapi,\n resultType: 'value',\n callback(value) {\n if (visited.has(value)) {\n return;\n }\n visited.add(value);\n applyTraitsToObjectV3(value);\n },\n });\n });\n}\nfunction applyTraitsToObjectV3(value) {\n if (!Array.isArray(value.traits)) {\n return;\n }\n // shallow copy of object\n const copy = Object.assign({}, value);\n // reset the object but preserve the reference\n for (const key in value) {\n delete value[key];\n }\n // merge root object at the end\n for (const trait of [...copy.traits, copy]) {\n for (const key in trait) {\n value[String(key)] = mergePatch(value[String(key)], trait[String(key)]);\n }\n }\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,YAAY,GAAG;AACrB;AACA,IAAI,kCAAkC;AACtC,IAAI,6CAA6C;AACjD;AACA,IAAI,0CAA0C;AAC9C,IAAI,kDAAkD;AACtD,IAAI,qDAAqD;AACzD,IAAI,6DAA6D;AACjE,IAAI,yBAAyB;AAC7B,CAAC
|
|
1
|
+
{"version":3,"file":"apply-traits.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/apply-traits.js"],"sourcesContent":["import { JSONPath } from 'jsonpath-plus';\nimport { mergePatch } from '../utils';\nconst v2TraitPaths = [\n // operations\n '$.channels.*.[publish,subscribe]',\n '$.components.channels.*.[publish,subscribe]',\n // messages\n '$.channels.*.[publish,subscribe].message',\n '$.channels.*.[publish,subscribe].message.oneOf.*',\n '$.components.channels.*.[publish,subscribe].message',\n '$.components.channels.*.[publish,subscribe].message.oneOf.*',\n '$.components.messages.*',\n];\nexport function applyTraitsV2(asyncapi) {\n applyAllTraitsV2(asyncapi, v2TraitPaths);\n}\nfunction applyAllTraitsV2(asyncapi, paths) {\n const visited = new Set();\n paths.forEach(path => {\n JSONPath({\n path,\n json: asyncapi,\n resultType: 'value',\n callback(value) {\n if (visited.has(value)) {\n return;\n }\n visited.add(value);\n applyTraitsToObjectV2(value);\n },\n });\n });\n}\nfunction applyTraitsToObjectV2(value) {\n if (Array.isArray(value.traits)) {\n for (const trait of value.traits) {\n for (const key in trait) {\n value[String(key)] = mergePatch(value[String(key)], trait[String(key)]);\n }\n }\n }\n}\nconst v3TraitPaths = [\n // operations\n '$.operations.*',\n '$.operations.*.channel.messages.*',\n '$.operations.*.messages.*',\n '$.components.operations.*',\n '$.components.operations.*.channel.messages.*',\n '$.components.operations.*.messages.*',\n // Channels\n '$.channels.*.messages.*',\n '$.components.channels.*.messages.*',\n // messages\n '$.components.messages.*',\n];\nexport function applyTraitsV3(asyncapi) {\n applyAllTraitsV3(asyncapi, v3TraitPaths);\n}\nfunction applyAllTraitsV3(asyncapi, paths) {\n const visited = new Set();\n paths.forEach(path => {\n JSONPath({\n path,\n json: asyncapi,\n resultType: 'value',\n callback(value) {\n if (visited.has(value)) {\n return;\n }\n visited.add(value);\n applyTraitsToObjectV3(value);\n },\n });\n });\n}\nfunction applyTraitsToObjectV3(value) {\n if (!Array.isArray(value.traits)) {\n return;\n }\n // shallow copy of object\n const copy = Object.assign({}, value);\n // reset the object but preserve the reference\n for (const key in value) {\n delete value[key];\n }\n // merge root object at the end\n for (const trait of [...copy.traits, copy]) {\n for (const key in trait) {\n value[String(key)] = mergePatch(value[String(key)], trait[String(key)]);\n }\n }\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,YAAY,GAAG;AACrB;AACA,IAAI,kCAAkC;AACtC,IAAI,6C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AAI,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE;AAChD,QAAQ,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE;AACjC,YAAY,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AACnF,QAAQ;AACR,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-unique-ids.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/apply-unique-ids.js"],"sourcesContent":["import { xParserObjectUniqueId } from '../constants';\n/**\n * This function applies unique ids for objects whose key's function as ids, ensuring that the key is part of the value.\n *\n * For v3; Apply unique ids to all channel's, operations, and message's.\n */\nexport function applyUniqueIds(structure) {\n const asyncapiVersion = structure.asyncapi.charAt(0);\n switch (asyncapiVersion) {\n case '3':\n applyUniqueIdToChannels(structure.channels);\n applyUniqueIdToObjects(structure.operations);\n if (structure.components) {\n applyUniqueIdToObjects(structure.components.messages);\n applyUniqueIdToObjects(structure.components.operations);\n applyUniqueIdToChannels(structure.components.channels);\n }\n break;\n }\n}\nfunction applyUniqueIdToChannels(channels) {\n for (const [channelId, channel] of Object.entries((channels !== null && channels !== void 0 ? channels : {}))) {\n if (!channel[xParserObjectUniqueId]) {\n channel[xParserObjectUniqueId] = channelId;\n }\n applyUniqueIdToObjects(channel.messages);\n }\n}\nfunction applyUniqueIdToObjects(objects) {\n for (const [objectKey, object] of Object.entries((objects !== null && objects !== void 0 ? objects : {}))) {\n if (!object[xParserObjectUniqueId]) {\n object[xParserObjectUniqueId] = objectKey;\n }\n }\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,cAAc,CAAC,SAAS,EAAE;AAC1C,IAAI,MAAM,eAAe,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"apply-unique-ids.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/apply-unique-ids.js"],"sourcesContent":["import { xParserObjectUniqueId } from '../constants';\n/**\n * This function applies unique ids for objects whose key's function as ids, ensuring that the key is part of the value.\n *\n * For v3; Apply unique ids to all channel's, operations, and message's.\n */\nexport function applyUniqueIds(structure) {\n const asyncapiVersion = structure.asyncapi.charAt(0);\n switch (asyncapiVersion) {\n case '3':\n applyUniqueIdToChannels(structure.channels);\n applyUniqueIdToObjects(structure.operations);\n if (structure.components) {\n applyUniqueIdToObjects(structure.components.messages);\n applyUniqueIdToObjects(structure.components.operations);\n applyUniqueIdToChannels(structure.components.channels);\n }\n break;\n }\n}\nfunction applyUniqueIdToChannels(channels) {\n for (const [channelId, channel] of Object.entries((channels !== null && channels !== void 0 ? channels : {}))) {\n if (!channel[xParserObjectUniqueId]) {\n channel[xParserObjectUniqueId] = channelId;\n }\n applyUniqueIdToObjects(channel.messages);\n }\n}\nfunction applyUniqueIdToObjects(objects) {\n for (const [objectKey, object] of Object.entries((objects !== null && objects !== void 0 ? objects : {}))) {\n if (!object[xParserObjectUniqueId]) {\n object[xParserObjectUniqueId] = objectKey;\n }\n }\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,cAAc,CAAC,SAAS,EAAE;AAC1C,IAAI,MAAM,eAAe,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;AACxD,IAAI,QAAQ,eAAe;AAC3B,QAAQ,KAAK,GAAG;AAChB,YAAY,uBAAuB,CAAC,SAAS,CAAC,QAAQ,CAAC;AACvD,YAAY,sBAAsB,CAAC,SAAS,CAAC,UAAU,CAAC;AACxD,YAAY,IAAI,SAAS,CAAC,UAAU,EAAE;AACtC,gBAAgB,sBAAsB,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC;AACrE,gBAAgB,sBAAsB,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC;AACvE,gBAAgB,uBAAuB,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC;AACtE,YAAY;AACZ,YAAY;AACZ;AACA;AACA,SAAS,uBAAuB,CAAC,QAAQ,EAAE;AAC3C,IAAI,KAAK,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,MAAM,GAAG,QAAQ,GAAG,EAAE,EAAE,EAAE;AACnH,QAAQ,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAE;AAC7C,YAAY,OAAO,CAAC,qBAAqB,CAAC,GAAG,SAAS;AACtD,QAAQ;AACR,QAAQ,sBAAsB,CAAC,OAAO,CAAC,QAAQ,CAAC;AAChD,IAAI;AACJ;AACA,SAAS,sBAAsB,CAAC,OAAO,EAAE;AACzC,IAAI,KAAK,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,MAAM,GAAG,OAAO,GAAG,EAAE,EAAE,EAAE;AAC/G,QAAQ,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE;AAC5C,YAAY,MAAM,CAAC,qBAAqB,CAAC,GAAG,SAAS;AACrD,QAAQ;AACR,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-circular-refs.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/check-circular-refs.js"],"sourcesContent":["import { setExtension } from '../utils';\nimport { xParserCircular } from '../constants';\nexport function checkCircularRefs(document) {\n if (hasInlineRef(document.json())) {\n setExtension(xParserCircular, true, document);\n }\n}\nfunction hasInlineRef(data) {\n if (data && typeof data === 'object' && !Array.isArray(data)) {\n if (Object.prototype.hasOwnProperty.call(data, '$ref')) {\n return true;\n }\n for (const p in data) {\n if (hasInlineRef(data[p])) {\n return true;\n }\n }\n }\n return false;\n}\n"],"names":[],"mappings":";;;AAEO,SAAS,iBAAiB,CAAC,QAAQ,EAAE;AAC5C,IAAI,IAAI,YAAY,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE;AACvC,QAAQ,YAAY,CAAC,eAAe,EAAE,IAAI,EAAE,QAAQ,CAAC
|
|
1
|
+
{"version":3,"file":"check-circular-refs.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/check-circular-refs.js"],"sourcesContent":["import { setExtension } from '../utils';\nimport { xParserCircular } from '../constants';\nexport function checkCircularRefs(document) {\n if (hasInlineRef(document.json())) {\n setExtension(xParserCircular, true, document);\n }\n}\nfunction hasInlineRef(data) {\n if (data && typeof data === 'object' && !Array.isArray(data)) {\n if (Object.prototype.hasOwnProperty.call(data, '$ref')) {\n return true;\n }\n for (const p in data) {\n if (hasInlineRef(data[p])) {\n return true;\n }\n }\n }\n return false;\n}\n"],"names":[],"mappings":";;;AAEO,SAAS,iBAAiB,CAAC,QAAQ,EAAE;AAC5C,IAAI,IAAI,YAAY,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE;AACvC,QAAQ,YAAY,CAAC,eAAe,EAAE,IAAI,EAAE,QAAQ,CAAC;AACrD,IAAI;AACJ;AACA,SAAS,YAAY,CAAC,IAAI,EAAE;AAC5B,IAAI,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;AAClE,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;AAChE,YAAY,OAAO,IAAI;AACvB,QAAQ;AACR,QAAQ,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;AAC9B,YAAY,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;AACvC,gBAAgB,OAAO,IAAI;AAC3B,YAAY;AACZ,QAAQ;AACR,IAAI;AACJ,IAAI,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { applyTraitsV3, applyTraitsV2 } from './apply-traits.js';
|
|
2
2
|
import { resolveCircularRefs } from './resolve-circular-refs.js';
|
|
3
|
-
import {
|
|
3
|
+
import { parseSchemasV3, parseSchemasV2 } from './parse-schema.js';
|
|
4
4
|
import { anonymousNaming } from './anonymous-naming.js';
|
|
5
5
|
import { checkCircularRefs } from './check-circular-refs.js';
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/index.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { applyTraitsV2, applyTraitsV3 } from './apply-traits';\nimport { resolveCircularRefs } from './resolve-circular-refs';\nimport { parseSchemasV2, parseSchemasV3 } from './parse-schema';\nimport { anonymousNaming } from './anonymous-naming';\nimport { checkCircularRefs } from './check-circular-refs';\nexport { applyUniqueIds } from './apply-unique-ids';\nexport function customOperations(parser, document, detailed, inventory, options) {\n return __awaiter(this, void 0, void 0, function* () {\n switch (detailed.semver.major) {\n case 2: return operationsV2(parser, document, detailed, inventory, options);\n case 3: return operationsV3(parser, document, detailed, inventory, options);\n }\n });\n}\nfunction operationsV2(parser, document, detailed, inventory, options) {\n return __awaiter(this, void 0, void 0, function* () {\n checkCircularRefs(document);\n if (options.applyTraits) {\n applyTraitsV2(detailed.parsed);\n }\n if (options.parseSchemas) {\n yield parseSchemasV2(parser, detailed);\n }\n // anonymous naming and resolving circular references should be done after custom schemas parsing\n if (inventory) {\n resolveCircularRefs(document, inventory);\n }\n anonymousNaming(document);\n });\n}\nfunction operationsV3(parser, document, detailed, inventory, options) {\n return __awaiter(this, void 0, void 0, function* () {\n checkCircularRefs(document);\n if (options.applyTraits) {\n applyTraitsV3(detailed.parsed);\n }\n if (options.parseSchemas) {\n yield parseSchemasV3(parser, detailed);\n }\n // anonymous naming and resolving circular references should be done after custom schemas parsing\n if (inventory) {\n resolveCircularRefs(document, inventory);\n }\n anonymousNaming(document);\n });\n}\n"],"names":["this"],"mappings":";;;;;;AAAA,IAAI,SAAS,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/index.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { applyTraitsV2, applyTraitsV3 } from './apply-traits';\nimport { resolveCircularRefs } from './resolve-circular-refs';\nimport { parseSchemasV2, parseSchemasV3 } from './parse-schema';\nimport { anonymousNaming } from './anonymous-naming';\nimport { checkCircularRefs } from './check-circular-refs';\nexport { applyUniqueIds } from './apply-unique-ids';\nexport function customOperations(parser, document, detailed, inventory, options) {\n return __awaiter(this, void 0, void 0, function* () {\n switch (detailed.semver.major) {\n case 2: return operationsV2(parser, document, detailed, inventory, options);\n case 3: return operationsV3(parser, document, detailed, inventory, options);\n }\n });\n}\nfunction operationsV2(parser, document, detailed, inventory, options) {\n return __awaiter(this, void 0, void 0, function* () {\n checkCircularRefs(document);\n if (options.applyTraits) {\n applyTraitsV2(detailed.parsed);\n }\n if (options.parseSchemas) {\n yield parseSchemasV2(parser, detailed);\n }\n // anonymous naming and resolving circular references should be done after custom schemas parsing\n if (inventory) {\n resolveCircularRefs(document, inventory);\n }\n anonymousNaming(document);\n });\n}\nfunction operationsV3(parser, document, detailed, inventory, options) {\n return __awaiter(this, void 0, void 0, function* () {\n checkCircularRefs(document);\n if (options.applyTraits) {\n applyTraitsV3(detailed.parsed);\n }\n if (options.parseSchemas) {\n yield parseSchemasV3(parser, detailed);\n }\n // anonymous naming and resolving circular references should be done after custom schemas parsing\n if (inventory) {\n resolveCircularRefs(document, inventory);\n }\n anonymousNaming(document);\n });\n}\n"],"names":["this"],"mappings":";;;;;;AAAA,IAAI,SAAS,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/G,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,E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oreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONPath } from '../../../../jsonpath-plus/dist/index-node-esm.js';
|
|
2
2
|
import { xParserOriginalPayload } from '../constants.js';
|
|
3
|
-
import { getDefaultSchemaFormat,
|
|
3
|
+
import { getDefaultSchemaFormat, parseSchema, getSchemaFormat } from '../schema-parser/index.js';
|
|
4
4
|
|
|
5
5
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6
6
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-schema.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/parse-schema.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { JSONPath } from 'jsonpath-plus';\nimport { xParserOriginalPayload } from '../constants';\nimport { parseSchema, getSchemaFormat, getDefaultSchemaFormat } from '../schema-parser';\nconst customSchemasPathsV2 = [\n // operations\n '$.channels.*.[publish,subscribe].message',\n '$.channels.*.[publish,subscribe].message.oneOf.*',\n '$.components.channels.*.[publish,subscribe].message',\n '$.components.channels.*.[publish,subscribe].message.oneOf.*',\n // messages\n '$.components.messages.*',\n];\nconst customSchemasPathsV3 = [\n // channels\n '$.channels.*.messages.*.payload',\n '$.channels.*.messages.*.headers',\n '$.components.channels.*.messages.*.payload',\n '$.components.channels.*.messages.*.headers',\n // operations\n '$.operations.*.messages.*.payload',\n '$.operations.*.messages.*.headers',\n '$.components.operations.*.messages.*.payload',\n '$.components.operations.*.messages.*.headers',\n // messages\n '$.components.messages.*.payload',\n '$.components.messages.*.headers.*',\n // schemas \n '$.components.schemas.*',\n];\nexport function parseSchemasV2(parser, detailed) {\n return __awaiter(this, void 0, void 0, function* () {\n const defaultSchemaFormat = getDefaultSchemaFormat(detailed.semver.version);\n const parseItems = [];\n const visited = new Set();\n customSchemasPathsV2.forEach(path => {\n JSONPath({\n path,\n json: detailed.parsed,\n resultType: 'all',\n callback(result) {\n const value = result.value;\n if (visited.has(value)) {\n return;\n }\n visited.add(value);\n const payload = value.payload;\n if (!payload) {\n return;\n }\n const schemaFormat = getSchemaFormat(value.schemaFormat, detailed.semver.version);\n parseItems.push({\n input: {\n asyncapi: detailed,\n data: payload,\n meta: {\n message: value,\n },\n path: [...splitPath(result.path), 'payload'],\n schemaFormat,\n defaultSchemaFormat,\n },\n value,\n });\n },\n });\n });\n return Promise.all(parseItems.map(item => parseSchemaV2(parser, item)));\n });\n}\nexport function parseSchemasV3(parser, detailed) {\n return __awaiter(this, void 0, void 0, function* () {\n const defaultSchemaFormat = getDefaultSchemaFormat(detailed.semver.version);\n const parseItems = [];\n const visited = new Set();\n customSchemasPathsV3.forEach(path => {\n JSONPath({\n path,\n json: detailed.parsed,\n resultType: 'all',\n callback(result) {\n const value = result.value;\n if (visited.has(value)) {\n return;\n }\n visited.add(value);\n const schema = value.schema;\n if (!schema) {\n return;\n }\n let schemaFormat = value.schemaFormat;\n if (!schemaFormat) {\n return;\n }\n schemaFormat = getSchemaFormat(value.schemaFormat, detailed.semver.version);\n parseItems.push({\n input: {\n asyncapi: detailed,\n data: schema,\n meta: {\n message: value,\n },\n path: [...splitPath(result.path), 'schema'],\n schemaFormat,\n defaultSchemaFormat,\n },\n value,\n });\n },\n });\n });\n return Promise.all(parseItems.map(item => parseSchemaV3(parser, item)));\n });\n}\nfunction parseSchemaV3(parser, item) {\n var _a;\n return __awaiter(this, void 0, void 0, function* () {\n const originalData = item.input.data;\n const parsedData = yield parseSchema(parser, item.input);\n if (((_a = item.value) === null || _a === void 0 ? void 0 : _a.schema) !== undefined) {\n item.value.schema = parsedData;\n }\n else {\n item.value = parsedData;\n }\n // save original payload only when data is different (returned by custom parsers)\n if (originalData !== parsedData) {\n item.value[xParserOriginalPayload] = originalData;\n }\n });\n}\nfunction parseSchemaV2(parser, item) {\n return __awaiter(this, void 0, void 0, function* () {\n const originalData = item.input.data;\n const parsedData = item.value.payload = yield parseSchema(parser, item.input);\n // save original payload only when data is different (returned by custom parsers)\n if (originalData !== parsedData) {\n item.value[xParserOriginalPayload] = originalData;\n }\n });\n}\nfunction splitPath(path) {\n // remove $[' from beginning and '] at the end and split by ']['\n return path.slice(3).slice(0, -2).split('\\'][\\'');\n}\n"],"names":["this"],"mappings":";;;;AAAA,IAAI,SAAS,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CA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C;AACpC,SAAS;AACT;AACA,QAAQ,IAAI,YAAY,KAAK,UAAU,EAAE;AACzC,YAAY,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,GAAG,YAAY,CAAC;AAC9D,SAAS;AACT,KAAK,CAAC,CAAC;AACP,CAAC;AACD,SAAS,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE;AACrC,IAAI,OAAO,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,aAAa;AACxD,QAAQ,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;AAC7C,QAAQ,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;AACtF;AACA,QAAQ,IAAI,YAAY,KAAK,UAAU,EAAE;AACzC,YAAY,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,GAAG,YAAY,CAAC;AAC9D,SAAS;AACT,KAAK,CAAC,CAAC;AACP,CAAC;AACD,SAAS,SAAS,CAAC,IAAI,EAAE;AACzB;AACA,IAAI,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AACtD;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"parse-schema.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/parse-schema.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { JSONPath } from 'jsonpath-plus';\nimport { xParserOriginalPayload } from '../constants';\nimport { parseSchema, getSchemaFormat, getDefaultSchemaFormat } from '../schema-parser';\nconst customSchemasPathsV2 = [\n // operations\n '$.channels.*.[publish,subscribe].message',\n '$.channels.*.[publish,subscribe].message.oneOf.*',\n '$.components.channels.*.[publish,subscribe].message',\n '$.components.channels.*.[publish,subscribe].message.oneOf.*',\n // messages\n '$.components.messages.*',\n];\nconst customSchemasPathsV3 = [\n // channels\n '$.channels.*.messages.*.payload',\n '$.channels.*.messages.*.headers',\n '$.components.channels.*.messages.*.payload',\n '$.components.channels.*.messages.*.headers',\n // operations\n '$.operations.*.messages.*.payload',\n '$.operations.*.messages.*.headers',\n '$.components.operations.*.messages.*.payload',\n '$.components.operations.*.messages.*.headers',\n // messages\n '$.components.messages.*.payload',\n '$.components.messages.*.headers.*',\n // schemas \n '$.components.schemas.*',\n];\nexport function parseSchemasV2(parser, detailed) {\n return __awaiter(this, void 0, void 0, function* () {\n const defaultSchemaFormat = getDefaultSchemaFormat(detailed.semver.version);\n const parseItems = [];\n const visited = new Set();\n customSchemasPathsV2.forEach(path => {\n JSONPath({\n path,\n json: detailed.parsed,\n resultType: 'all',\n callback(result) {\n const value = result.value;\n if (visited.has(value)) {\n return;\n }\n visited.add(value);\n const payload = value.payload;\n if (!payload) {\n return;\n }\n const schemaFormat = getSchemaFormat(value.schemaFormat, detailed.semver.version);\n parseItems.push({\n input: {\n asyncapi: detailed,\n data: payload,\n meta: {\n message: value,\n },\n path: [...splitPath(result.path), 'payload'],\n schemaFormat,\n defaultSchemaFormat,\n },\n value,\n });\n },\n });\n });\n return Promise.all(parseItems.map(item => parseSchemaV2(parser, item)));\n });\n}\nexport function parseSchemasV3(parser, detailed) {\n return __awaiter(this, void 0, void 0, function* () {\n const defaultSchemaFormat = getDefaultSchemaFormat(detailed.semver.version);\n const parseItems = [];\n const visited = new Set();\n customSchemasPathsV3.forEach(path => {\n JSONPath({\n path,\n json: detailed.parsed,\n resultType: 'all',\n callback(result) {\n const value = result.value;\n if (visited.has(value)) {\n return;\n }\n visited.add(value);\n const schema = value.schema;\n if (!schema) {\n return;\n }\n let schemaFormat = value.schemaFormat;\n if (!schemaFormat) {\n return;\n }\n schemaFormat = getSchemaFormat(value.schemaFormat, detailed.semver.version);\n parseItems.push({\n input: {\n asyncapi: detailed,\n data: schema,\n meta: {\n message: value,\n },\n path: [...splitPath(result.path), 'schema'],\n schemaFormat,\n defaultSchemaFormat,\n },\n value,\n });\n },\n });\n });\n return Promise.all(parseItems.map(item => parseSchemaV3(parser, item)));\n });\n}\nfunction parseSchemaV3(parser, item) {\n var _a;\n return __awaiter(this, void 0, void 0, function* () {\n const originalData = item.input.data;\n const parsedData = yield parseSchema(parser, item.input);\n if (((_a = item.value) === null || _a === void 0 ? void 0 : _a.schema) !== undefined) {\n item.value.schema = parsedData;\n }\n else {\n item.value = parsedData;\n }\n // save original payload only when data is different (returned by custom parsers)\n if (originalData !== parsedData) {\n item.value[xParserOriginalPayload] = originalData;\n }\n });\n}\nfunction parseSchemaV2(parser, item) {\n return __awaiter(this, void 0, void 0, function* () {\n const originalData = item.input.data;\n const parsedData = item.value.payload = yield parseSchema(parser, item.input);\n // save original payload only when data is different (returned by custom parsers)\n if (originalData !== parsedData) {\n item.value[xParserOriginalPayload] = originalData;\n }\n });\n}\nfunction splitPath(path) {\n // remove $[' from beginning and '] at the end and split by ']['\n return path.slice(3).slice(0, -2).split('\\'][\\'');\n}\n"],"names":["this"],"mappings":";;;;AAAA,IAAI,SAAS,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,O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,QAAQ,IAAI,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,MAAM,IAAI,IAAI,EAAE,KAAK,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC,MAAM,MAAM,SAAS,EAAE;AAC9F,YAAY,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,UAAU;AAC1C,QAAQ;AACR,aAAa;AACb,YAAY,IAAI,CAAC,KAAK,GAAG,UAAU;AACnC,QAAQ;AACR;AACA,QAAQ,IAAI,YAAY,KAAK,UAAU,EAAE;AACzC,YAAY,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,GAAG,YAAY;AAC7D,QAAQ;AACR,IAAI,CAAC,CAAC;AACN;AACA,SAAS,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE;AACrC,IAAI,OAAO,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa;AACxD,QAAQ,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI;AAC5C,QAAQ,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC;AACrF;AACA,QAAQ,IAAI,YAAY,KAAK,UAAU,EAAE;AACzC,YAAY,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,GAAG,YAAY;AAC7D,QAAQ;AACR,IAAI,CAAC,CAAC;AACN;AACA,SAAS,SAAS,CAAC,IAAI,EAAE;AACzB;AACA,IAAI,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;AACrD;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-circular-refs.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/resolve-circular-refs.js"],"sourcesContent":["import { setExtension, toJSONPathArray, retrieveDeepData, findSubArrayIndex } from '../utils';\nimport { xParserCircular } from '../constants';\nexport function resolveCircularRefs(document, inventory) {\n const documentJson = document.json();\n const ctx = { document: documentJson, hasCircular: false, inventory, visited: new Set() };\n traverse(documentJson, [], null, '', ctx);\n if (ctx.hasCircular) {\n setExtension(xParserCircular, true, document);\n }\n}\nfunction traverse(data, path, parent, property, ctx) {\n if (typeof data !== 'object' || !data || ctx.visited.has(data)) {\n return;\n }\n ctx.visited.add(data);\n if (Array.isArray(data)) {\n data.forEach((item, idx) => traverse(item, [...path, idx], data, idx, ctx));\n }\n if ('$ref' in data) {\n ctx.hasCircular = true;\n const resolvedRef = retrieveCircularRef(data, path, ctx);\n if (resolvedRef) {\n parent[property] = resolvedRef;\n }\n }\n else {\n for (const p in data) {\n traverse(data[p], [...path, p], data, p, ctx);\n }\n }\n ctx.visited.delete(data);\n}\nfunction retrieveCircularRef(data, path, ctx) {\n const $refPath = toJSONPathArray(data.$ref);\n const item = ctx.inventory.findAssociatedItemForPath(path, true);\n // root document case\n if (item === null) {\n return retrieveDeepData(ctx.document, $refPath);\n }\n // referenced document case\n if (item) {\n const subArrayIndex = findSubArrayIndex(path, $refPath);\n let dataPath;\n if (subArrayIndex === -1) { // create subarray based on location of the assiociated document - use item.path\n dataPath = [...path.slice(0, path.length - item.path.length), ...$refPath];\n }\n else { // create subarray based on $refPath\n dataPath = path.slice(0, subArrayIndex + $refPath.length);\n }\n return retrieveDeepData(ctx.document, dataPath);\n }\n}\n"],"names":[],"mappings":";;;AAEO,SAAS,mBAAmB,CAAC,QAAQ,EAAE,SAAS,EAAE;AACzD,IAAI,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,EAAE
|
|
1
|
+
{"version":3,"file":"resolve-circular-refs.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/custom-operations/resolve-circular-refs.js"],"sourcesContent":["import { setExtension, toJSONPathArray, retrieveDeepData, findSubArrayIndex } from '../utils';\nimport { xParserCircular } from '../constants';\nexport function resolveCircularRefs(document, inventory) {\n const documentJson = document.json();\n const ctx = { document: documentJson, hasCircular: false, inventory, visited: new Set() };\n traverse(documentJson, [], null, '', ctx);\n if (ctx.hasCircular) {\n setExtension(xParserCircular, true, document);\n }\n}\nfunction traverse(data, path, parent, property, ctx) {\n if (typeof data !== 'object' || !data || ctx.visited.has(data)) {\n return;\n }\n ctx.visited.add(data);\n if (Array.isArray(data)) {\n data.forEach((item, idx) => traverse(item, [...path, idx], data, idx, ctx));\n }\n if ('$ref' in data) {\n ctx.hasCircular = true;\n const resolvedRef = retrieveCircularRef(data, path, ctx);\n if (resolvedRef) {\n parent[property] = resolvedRef;\n }\n }\n else {\n for (const p in data) {\n traverse(data[p], [...path, p], data, p, ctx);\n }\n }\n ctx.visited.delete(data);\n}\nfunction retrieveCircularRef(data, path, ctx) {\n const $refPath = toJSONPathArray(data.$ref);\n const item = ctx.inventory.findAssociatedItemForPath(path, true);\n // root document case\n if (item === null) {\n return retrieveDeepData(ctx.document, $refPath);\n }\n // referenced document case\n if (item) {\n const subArrayIndex = findSubArrayIndex(path, $refPath);\n let dataPath;\n if (subArrayIndex === -1) { // create subarray based on location of the assiociated document - use item.path\n dataPath = [...path.slice(0, path.length - item.path.length), ...$refPath];\n }\n else { // create subarray based on $refPath\n dataPath = path.slice(0, subArrayIndex + $refPath.length);\n }\n return retrieveDeepData(ctx.document, dataPath);\n }\n}\n"],"names":[],"mappings":";;;AAEO,SAAS,mBAAmB,CAAC,QAAQ,EAAE,SAAS,EAAE;AACzD,IAAI,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,EAAE;AACxC,IAAI,MAAM,GAAG,GAAG,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE;AAC7F,IAAI,QAAQ,CAAC,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC;AAC7C,IAAI,IAAI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,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE;AAC9C,IAAI,MAAM,QAAQ,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC;AAC/C,IAAI,MAAM,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,yBAAyB,CAAC,IAAI,EAAE,IAAI,CAAC;AACpE;AACA,IAAI,IAAI,IAAI,KAAK,IAAI,EAAE;AACvB,QAAQ,OAAO,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC;AACvD,IAAI;AACJ;AACA,IAAI,IAAI,IAAI,EAAE;AACd,QAAQ,MAAM,aAAa,GAAG,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC;AAC/D,QAAQ,IAAI,QAAQ;AACpB,QAAQ,IAAI,aAAa,KAAK,EAAE,EAAE;AAClC,YAAY,QAAQ,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,QAAQ,CAAC;AACtF,QAAQ;AACR,aAAa;AACb,YAAY,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC;AACrE,QAAQ;AACR,QAAQ,OAAO,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC;AACvD,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.js","sources":["../../../../../../../node_modules/@asyncapi/parser/esm/document.js"],"sourcesContent":["import { AsyncAPIDocumentV2, AsyncAPIDocumentV3, ParserAPIVersion } from './models';\nimport { unstringify } from './stringify';\nimport { createDetailedAsyncAPI } from './utils';\nimport { xParserSpecParsed, xParserSpecStringified, xParserApiVersion, } from './constants';\nexport function createAsyncAPIDocument(asyncapi) {\n switch (asyncapi.semver.major) {\n case 2:\n return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' });\n case 3:\n return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' });\n default:\n throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`);\n }\n}\nexport function toAsyncAPIDocument(maybeDoc) {\n if (isAsyncAPIDocument(maybeDoc)) {\n return maybeDoc;\n }\n if (!isParsedDocument(maybeDoc)) {\n return unstringify(maybeDoc);\n }\n return createAsyncAPIDocument(createDetailedAsyncAPI(maybeDoc, maybeDoc));\n}\nexport function isAsyncAPIDocument(maybeDoc) {\n if (!maybeDoc) {\n return false;\n }\n if (maybeDoc instanceof AsyncAPIDocumentV2 || maybeDoc instanceof AsyncAPIDocumentV3) {\n return true;\n }\n if (maybeDoc && typeof maybeDoc.json === 'function') {\n const versionOfParserAPI = maybeDoc.json()[xParserApiVersion];\n return versionOfParserAPI === ParserAPIVersion;\n }\n return false;\n}\nexport function isOldAsyncAPIDocument(maybeDoc) {\n if (maybeDoc && typeof maybeDoc.json === 'function') {\n const versionOfParserAPI = maybeDoc.json()[xParserApiVersion];\n return versionOfParserAPI === undefined || versionOfParserAPI === 0;\n }\n return false;\n}\nexport function isParsedDocument(maybeDoc) {\n if (typeof maybeDoc !== 'object' || maybeDoc === null) {\n return false;\n }\n return Boolean(maybeDoc[xParserSpecParsed]);\n}\nexport function isStringifiedDocument(maybeDoc) {\n try {\n maybeDoc = typeof maybeDoc === 'string' ? JSON.parse(maybeDoc) : maybeDoc;\n if (typeof maybeDoc !== 'object' || maybeDoc === null) {\n return false;\n }\n return (Boolean(maybeDoc[xParserSpecParsed]) &&\n Boolean(maybeDoc[xParserSpecStringified]));\n }\n catch (_) {\n return false;\n }\n}\n"],"names":["AsyncAPIDocumentV2","AsyncAPIDocumentV3"],"mappings":";;;;;;;AAIO,SAAS,sBAAsB,CAAC,QAAQ,EAAE;AACjD,IAAI,QAAQ,QAAQ,CAAC,MAAM,CAAC,KAAK;AACjC,QAAQ,KAAK,CAAC;AACd,YAAY,OAAO,IAAIA,gBAAkB,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC
|
|
1
|
+
{"version":3,"file":"document.js","sources":["../../../../../../../node_modules/@asyncapi/parser/esm/document.js"],"sourcesContent":["import { AsyncAPIDocumentV2, AsyncAPIDocumentV3, ParserAPIVersion } from './models';\nimport { unstringify } from './stringify';\nimport { createDetailedAsyncAPI } from './utils';\nimport { xParserSpecParsed, xParserSpecStringified, xParserApiVersion, } from './constants';\nexport function createAsyncAPIDocument(asyncapi) {\n switch (asyncapi.semver.major) {\n case 2:\n return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' });\n case 3:\n return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' });\n default:\n throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`);\n }\n}\nexport function toAsyncAPIDocument(maybeDoc) {\n if (isAsyncAPIDocument(maybeDoc)) {\n return maybeDoc;\n }\n if (!isParsedDocument(maybeDoc)) {\n return unstringify(maybeDoc);\n }\n return createAsyncAPIDocument(createDetailedAsyncAPI(maybeDoc, maybeDoc));\n}\nexport function isAsyncAPIDocument(maybeDoc) {\n if (!maybeDoc) {\n return false;\n }\n if (maybeDoc instanceof AsyncAPIDocumentV2 || maybeDoc instanceof AsyncAPIDocumentV3) {\n return true;\n }\n if (maybeDoc && typeof maybeDoc.json === 'function') {\n const versionOfParserAPI = maybeDoc.json()[xParserApiVersion];\n return versionOfParserAPI === ParserAPIVersion;\n }\n return false;\n}\nexport function isOldAsyncAPIDocument(maybeDoc) {\n if (maybeDoc && typeof maybeDoc.json === 'function') {\n const versionOfParserAPI = maybeDoc.json()[xParserApiVersion];\n return versionOfParserAPI === undefined || versionOfParserAPI === 0;\n }\n return false;\n}\nexport function isParsedDocument(maybeDoc) {\n if (typeof maybeDoc !== 'object' || maybeDoc === null) {\n return false;\n }\n return Boolean(maybeDoc[xParserSpecParsed]);\n}\nexport function isStringifiedDocument(maybeDoc) {\n try {\n maybeDoc = typeof maybeDoc === 'string' ? JSON.parse(maybeDoc) : maybeDoc;\n if (typeof maybeDoc !== 'object' || maybeDoc === null) {\n return false;\n }\n return (Boolean(maybeDoc[xParserSpecParsed]) &&\n Boolean(maybeDoc[xParserSpecStringified]));\n }\n catch (_) {\n return false;\n }\n}\n"],"names":["AsyncAPIDocumentV2","AsyncAPIDocumentV3"],"mappings":";;;;;;;AAIO,SAAS,sBAAsB,CAAC,QAAQ,EAAE;AACjD,IAAI,QAAQ,QAAQ,CAAC,MAAM,CAAC,KAAK;AACjC,QAAQ,KAAK,CAAC;AACd,YAAY,OAAO,IAAIA,gBAAkB,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;AACtF,QAAQ,KAAK,CAAC;AACd,YAAY,OAAO,IAAIC,kBAAkB,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;AACtF,QAAQ;AACR,YAAY,MAAM,IAAI,KAAK,CAAC,CAAC,8BAA8B,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;AACvF;AACA;AACO,SAAS,kBAAkB,CAAC,QAAQ,EAAE;AAC7C,IAAI,IAAI,kBAAkB,CAAC,QAAQ,CAAC,EAAE;AACtC,QAAQ,OAAO,QAAQ;AACvB,IAAI;AACJ,IAAI,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE;AACrC,QAAQ,OAAO,WAAW,CAAC,QAAQ,CAAC;AACpC,IAAI;AACJ,IAAI,OAAO,sBAAsB,CAAC,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC7E;AACO,SAAS,kBAAkB,CAAC,QAAQ,EAAE;AAC7C,IAAI,IAAI,CAAC,QAAQ,EAAE;AACnB,QAAQ,OAAO,KAAK;AACpB,IAAI;AACJ,IAAI,IAAI,QAAQ,YAAYD,gBAAkB,IAAI,QAAQ,YAAYC,kBAAkB,EAAE;AAC1F,QAAQ,OAAO,IAAI;AACnB,IAAI;AACJ,IAAI,IAAI,QAAQ,IAAI,OAAO,QAAQ,CAAC,IAAI,KAAK,UAAU,EAAE;AACzD,QAAQ,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,iBAAiB,CAAC;AACrE,QAAQ,OAAO,kBAAkB,KAAK,gBAAgB;AACtD,IAAI;AACJ,IAAI,OAAO,KAAK;AAChB;AAQO,SAAS,gBAAgB,CAAC,QAAQ,EAAE;AAC3C,IAAI,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,EAAE;AAC3D,QAAQ,OAAO,KAAK;AACpB,IAAI;AACJ,IAAI,OAAO,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAC/C;AACO,SAAS,qBAAqB,CAAC,QAAQ,EAAE;AAChD,IAAI,IAAI;AACR,QAAQ,QAAQ,GAAG,OAAO,QAAQ,KAAK,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,QAAQ;AACjF,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,EAAE;AAC/D,YAAY,OAAO,KAAK;AACxB,QAAQ;AACR,QAAQ,QAAQ,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AACpD,YAAY,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC;AACrD,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE;AACd,QAAQ,OAAO,KAAK;AACpB,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iterator.js","sources":["../../../../../../../node_modules/@asyncapi/parser/esm/iterator.js"],"sourcesContent":["/**\n * The different kind of stages when crawling a schema.\n */\nexport var SchemaIteratorCallbackType;\n(function (SchemaIteratorCallbackType) {\n SchemaIteratorCallbackType[\"NEW_SCHEMA\"] = \"NEW_SCHEMA\";\n SchemaIteratorCallbackType[\"END_SCHEMA\"] = \"END_SCHEMA\";\n})(SchemaIteratorCallbackType || (SchemaIteratorCallbackType = {}));\n/**\n * The different types of schemas you can iterate\n */\nexport var SchemaTypesToIterate;\n(function (SchemaTypesToIterate) {\n SchemaTypesToIterate[\"Parameters\"] = \"parameters\";\n SchemaTypesToIterate[\"Payloads\"] = \"payloads\";\n SchemaTypesToIterate[\"Headers\"] = \"headers\";\n SchemaTypesToIterate[\"Components\"] = \"components\";\n SchemaTypesToIterate[\"Objects\"] = \"objects\";\n SchemaTypesToIterate[\"Arrays\"] = \"arrays\";\n SchemaTypesToIterate[\"OneOfs\"] = \"oneOfs\";\n SchemaTypesToIterate[\"AllOfs\"] = \"allOfs\";\n SchemaTypesToIterate[\"AnyOfs\"] = \"anyOfs\";\n SchemaTypesToIterate[\"Nots\"] = \"nots\";\n SchemaTypesToIterate[\"PropertyNames\"] = \"propertyNames\";\n SchemaTypesToIterate[\"PatternProperties\"] = \"patternProperties\";\n SchemaTypesToIterate[\"Contains\"] = \"contains\";\n SchemaTypesToIterate[\"Ifs\"] = \"ifs\";\n SchemaTypesToIterate[\"Thenes\"] = \"thenes\";\n SchemaTypesToIterate[\"Elses\"] = \"elses\";\n SchemaTypesToIterate[\"Dependencies\"] = \"dependencies\";\n SchemaTypesToIterate[\"Definitions\"] = \"definitions\";\n})(SchemaTypesToIterate || (SchemaTypesToIterate = {}));\n/**\n * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema.\n */\nexport function traverseAsyncApiDocument(doc, callback, schemaTypesToIterate = []) {\n if (schemaTypesToIterate.length === 0) {\n schemaTypesToIterate = Object.values(SchemaTypesToIterate);\n }\n const options = { callback, schemaTypesToIterate, seenSchemas: new Set() };\n if (!doc.channels().isEmpty()) {\n doc.channels().all().forEach(channel => {\n traverseChannel(channel, options);\n });\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Components) && !doc.components().isEmpty()) {\n const components = doc.components();\n Object.values(components.messages().all() || {}).forEach(message => {\n traverseMessage(message, options);\n });\n Object.values(components.schemas().all() || {}).forEach(schema => {\n traverseSchema(schema, null, options);\n });\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) {\n Object.values(components.channelParameters().filterBy((param) => { return param.hasSchema(); })).forEach(parameter => {\n traverseSchema(parameter.schema(), null, options);\n });\n }\n Object.values(components.messageTraits().all() || {}).forEach(messageTrait => {\n traverseMessageTrait(messageTrait, options);\n });\n }\n}\n/* eslint-disable sonarjs/cognitive-complexity */\n/**\n * Traverse current schema and all nested schemas.\n */\nfunction traverseSchema(schema, propOrIndex, options) {\n if (!schema)\n return;\n const { schemaTypesToIterate, callback, seenSchemas } = options;\n // handle circular references\n const jsonSchema = schema.json();\n if (seenSchemas.has(jsonSchema))\n return;\n seenSchemas.add(jsonSchema);\n // `type` isn't required so save type as array in the fallback\n let types = schema.type() || [];\n // change primitive type to array of types for easier handling\n if (!Array.isArray(types)) {\n types = [types];\n }\n if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object'))\n return;\n if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array'))\n return;\n // check callback `NEW_SCHEMA` case\n if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false)\n return;\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object')) {\n recursiveSchemaObject(schema, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array')) {\n recursiveSchemaArray(schema, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.OneOfs)) {\n (schema.oneOf() || []).forEach((combineSchema, idx) => {\n traverseSchema(combineSchema, idx, options);\n });\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.AnyOfs)) {\n (schema.anyOf() || []).forEach((combineSchema, idx) => {\n traverseSchema(combineSchema, idx, options);\n });\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.AllOfs)) {\n (schema.allOf() || []).forEach((combineSchema, idx) => {\n traverseSchema(combineSchema, idx, options);\n });\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Nots) && schema.not()) {\n traverseSchema(schema.not(), null, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Ifs) && schema.if()) {\n traverseSchema(schema.if(), null, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Thenes) && schema.then()) {\n traverseSchema(schema.then(), null, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Elses) && schema.else()) {\n traverseSchema(schema.else(), null, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Dependencies)) {\n Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => {\n // do not iterate dependent required\n if (dep && !Array.isArray(dep)) {\n traverseSchema(dep, depName, options);\n }\n });\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Definitions)) {\n Object.entries(schema.definitions() || {}).forEach(([defName, def]) => {\n traverseSchema(def, defName, options);\n });\n }\n callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA);\n seenSchemas.delete(jsonSchema);\n}\n/* eslint-enable sonarjs/cognitive-complexity */\n/**\n * Recursively go through schema of object type and execute callback.\n */\nfunction recursiveSchemaObject(schema, options) {\n Object.entries(schema.properties() || {}).forEach(([propertyName, property]) => {\n traverseSchema(property, propertyName, options);\n });\n const additionalProperties = schema.additionalProperties();\n if (typeof additionalProperties === 'object') {\n traverseSchema(additionalProperties, null, options);\n }\n const schemaTypesToIterate = options.schemaTypesToIterate;\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.PropertyNames) && schema.propertyNames()) {\n traverseSchema(schema.propertyNames(), null, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.PatternProperties)) {\n Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => {\n traverseSchema(property, propertyName, options);\n });\n }\n}\n/**\n * Recursively go through schema of array type and execute callback.\n */\nfunction recursiveSchemaArray(schema, options) {\n const items = schema.items();\n if (items) {\n if (Array.isArray(items)) {\n items.forEach((item, idx) => {\n traverseSchema(item, idx, options);\n });\n }\n else {\n traverseSchema(items, null, options);\n }\n }\n const additionalItems = schema.additionalItems();\n if (typeof additionalItems === 'object') {\n traverseSchema(additionalItems, null, options);\n }\n if (options.schemaTypesToIterate.includes('contains') && schema.contains()) {\n traverseSchema(schema.contains(), null, options);\n }\n}\n/**\n * Go through each schema in channel\n */\nfunction traverseChannel(channel, options) {\n if (!channel)\n return;\n const { schemaTypesToIterate } = options;\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) {\n Object.values(channel.parameters().filterBy((param) => { return param.hasSchema(); }) || {}).forEach(parameter => {\n traverseSchema(parameter.schema(), null, options);\n });\n }\n channel.messages().all().forEach(message => {\n traverseMessage(message, options);\n });\n}\n/**\n * Go through each schema in a message\n */\nfunction traverseMessage(message, options) {\n if (!message)\n return;\n const { schemaTypesToIterate } = options;\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && message.hasHeaders()) {\n traverseSchema(message.headers(), null, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Payloads) && message.hasPayload()) {\n traverseSchema(message.payload(), null, options);\n }\n}\n/**\n * Go through each schema in a messageTrait\n */\nfunction traverseMessageTrait(messageTrait, options) {\n if (!messageTrait)\n return;\n const { schemaTypesToIterate } = options;\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && messageTrait.hasHeaders()) {\n traverseSchema(messageTrait.headers(), null, options);\n }\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACU,IAAC,2BAA2B;AACtC,CAAC,UAAU,0BAA0B,EAAE;AACvC,IAAI,0BAA0B,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC;AAC5D,IAAI,0BAA0B,C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EAAE;AAC3C,IAAI,IAAI,CAAC,OAAO;AAChB,QAAQ,OAAO;AACf,IAAI,MAAM,EAAE,oBAAoB,EAAE,GAAG,OAAO,CAAC;AAC7C,IAAI,IAAI,oBAAoB,CAAC,QAAQ,CAAC,oBAAoB,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,UAAU,EAAE,EAAE;AAC7F,QAAQ,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AACzD,KAAK;AACL,IAAI,IAAI,oBAAoB,CAAC,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,IAAI,OAAO,CAAC,UAAU,EAAE,EAAE;AAC9F,QAAQ,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AACzD,KAAK;AACL,CAAC;AACD;AACA;AACA;AACA,SAAS,oBAAoB,CAAC,YAAY,EAAE,OAAO,EAAE;AACrD,IAAI,IAAI,CAAC,YAAY;AACrB,QAAQ,OAAO;AACf,IAAI,MAAM,EAAE,oBAAoB,EAAE,GAAG,OAAO,CAAC;AAC7C,IAAI,IAAI,oBAAoB,CAAC,QAAQ,CAAC,oBAAoB,CAAC,OAAO,CAAC,IAAI,YAAY,CAAC,UAAU,EAAE,EAAE;AAClG,QAAQ,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AAC9D,KAAK;AACL;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"iterator.js","sources":["../../../../../../../node_modules/@asyncapi/parser/esm/iterator.js"],"sourcesContent":["/**\n * The different kind of stages when crawling a schema.\n */\nexport var SchemaIteratorCallbackType;\n(function (SchemaIteratorCallbackType) {\n SchemaIteratorCallbackType[\"NEW_SCHEMA\"] = \"NEW_SCHEMA\";\n SchemaIteratorCallbackType[\"END_SCHEMA\"] = \"END_SCHEMA\";\n})(SchemaIteratorCallbackType || (SchemaIteratorCallbackType = {}));\n/**\n * The different types of schemas you can iterate\n */\nexport var SchemaTypesToIterate;\n(function (SchemaTypesToIterate) {\n SchemaTypesToIterate[\"Parameters\"] = \"parameters\";\n SchemaTypesToIterate[\"Payloads\"] = \"payloads\";\n SchemaTypesToIterate[\"Headers\"] = \"headers\";\n SchemaTypesToIterate[\"Components\"] = \"components\";\n SchemaTypesToIterate[\"Objects\"] = \"objects\";\n SchemaTypesToIterate[\"Arrays\"] = \"arrays\";\n SchemaTypesToIterate[\"OneOfs\"] = \"oneOfs\";\n SchemaTypesToIterate[\"AllOfs\"] = \"allOfs\";\n SchemaTypesToIterate[\"AnyOfs\"] = \"anyOfs\";\n SchemaTypesToIterate[\"Nots\"] = \"nots\";\n SchemaTypesToIterate[\"PropertyNames\"] = \"propertyNames\";\n SchemaTypesToIterate[\"PatternProperties\"] = \"patternProperties\";\n SchemaTypesToIterate[\"Contains\"] = \"contains\";\n SchemaTypesToIterate[\"Ifs\"] = \"ifs\";\n SchemaTypesToIterate[\"Thenes\"] = \"thenes\";\n SchemaTypesToIterate[\"Elses\"] = \"elses\";\n SchemaTypesToIterate[\"Dependencies\"] = \"dependencies\";\n SchemaTypesToIterate[\"Definitions\"] = \"definitions\";\n})(SchemaTypesToIterate || (SchemaTypesToIterate = {}));\n/**\n * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema.\n */\nexport function traverseAsyncApiDocument(doc, callback, schemaTypesToIterate = []) {\n if (schemaTypesToIterate.length === 0) {\n schemaTypesToIterate = Object.values(SchemaTypesToIterate);\n }\n const options = { callback, schemaTypesToIterate, seenSchemas: new Set() };\n if (!doc.channels().isEmpty()) {\n doc.channels().all().forEach(channel => {\n traverseChannel(channel, options);\n });\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Components) && !doc.components().isEmpty()) {\n const components = doc.components();\n Object.values(components.messages().all() || {}).forEach(message => {\n traverseMessage(message, options);\n });\n Object.values(components.schemas().all() || {}).forEach(schema => {\n traverseSchema(schema, null, options);\n });\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) {\n Object.values(components.channelParameters().filterBy((param) => { return param.hasSchema(); })).forEach(parameter => {\n traverseSchema(parameter.schema(), null, options);\n });\n }\n Object.values(components.messageTraits().all() || {}).forEach(messageTrait => {\n traverseMessageTrait(messageTrait, options);\n });\n }\n}\n/* eslint-disable sonarjs/cognitive-complexity */\n/**\n * Traverse current schema and all nested schemas.\n */\nfunction traverseSchema(schema, propOrIndex, options) {\n if (!schema)\n return;\n const { schemaTypesToIterate, callback, seenSchemas } = options;\n // handle circular references\n const jsonSchema = schema.json();\n if (seenSchemas.has(jsonSchema))\n return;\n seenSchemas.add(jsonSchema);\n // `type` isn't required so save type as array in the fallback\n let types = schema.type() || [];\n // change primitive type to array of types for easier handling\n if (!Array.isArray(types)) {\n types = [types];\n }\n if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object'))\n return;\n if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array'))\n return;\n // check callback `NEW_SCHEMA` case\n if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false)\n return;\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object')) {\n recursiveSchemaObject(schema, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array')) {\n recursiveSchemaArray(schema, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.OneOfs)) {\n (schema.oneOf() || []).forEach((combineSchema, idx) => {\n traverseSchema(combineSchema, idx, options);\n });\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.AnyOfs)) {\n (schema.anyOf() || []).forEach((combineSchema, idx) => {\n traverseSchema(combineSchema, idx, options);\n });\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.AllOfs)) {\n (schema.allOf() || []).forEach((combineSchema, idx) => {\n traverseSchema(combineSchema, idx, options);\n });\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Nots) && schema.not()) {\n traverseSchema(schema.not(), null, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Ifs) && schema.if()) {\n traverseSchema(schema.if(), null, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Thenes) && schema.then()) {\n traverseSchema(schema.then(), null, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Elses) && schema.else()) {\n traverseSchema(schema.else(), null, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Dependencies)) {\n Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => {\n // do not iterate dependent required\n if (dep && !Array.isArray(dep)) {\n traverseSchema(dep, depName, options);\n }\n });\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Definitions)) {\n Object.entries(schema.definitions() || {}).forEach(([defName, def]) => {\n traverseSchema(def, defName, options);\n });\n }\n callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA);\n seenSchemas.delete(jsonSchema);\n}\n/* eslint-enable sonarjs/cognitive-complexity */\n/**\n * Recursively go through schema of object type and execute callback.\n */\nfunction recursiveSchemaObject(schema, options) {\n Object.entries(schema.properties() || {}).forEach(([propertyName, property]) => {\n traverseSchema(property, propertyName, options);\n });\n const additionalProperties = schema.additionalProperties();\n if (typeof additionalProperties === 'object') {\n traverseSchema(additionalProperties, null, options);\n }\n const schemaTypesToIterate = options.schemaTypesToIterate;\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.PropertyNames) && schema.propertyNames()) {\n traverseSchema(schema.propertyNames(), null, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.PatternProperties)) {\n Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => {\n traverseSchema(property, propertyName, options);\n });\n }\n}\n/**\n * Recursively go through schema of array type and execute callback.\n */\nfunction recursiveSchemaArray(schema, options) {\n const items = schema.items();\n if (items) {\n if (Array.isArray(items)) {\n items.forEach((item, idx) => {\n traverseSchema(item, idx, options);\n });\n }\n else {\n traverseSchema(items, null, options);\n }\n }\n const additionalItems = schema.additionalItems();\n if (typeof additionalItems === 'object') {\n traverseSchema(additionalItems, null, options);\n }\n if (options.schemaTypesToIterate.includes('contains') && schema.contains()) {\n traverseSchema(schema.contains(), null, options);\n }\n}\n/**\n * Go through each schema in channel\n */\nfunction traverseChannel(channel, options) {\n if (!channel)\n return;\n const { schemaTypesToIterate } = options;\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) {\n Object.values(channel.parameters().filterBy((param) => { return param.hasSchema(); }) || {}).forEach(parameter => {\n traverseSchema(parameter.schema(), null, options);\n });\n }\n channel.messages().all().forEach(message => {\n traverseMessage(message, options);\n });\n}\n/**\n * Go through each schema in a message\n */\nfunction traverseMessage(message, options) {\n if (!message)\n return;\n const { schemaTypesToIterate } = options;\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && message.hasHeaders()) {\n traverseSchema(message.headers(), null, options);\n }\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Payloads) && message.hasPayload()) {\n traverseSchema(message.payload(), null, options);\n }\n}\n/**\n * Go through each schema in a messageTrait\n */\nfunction traverseMessageTrait(messageTrait, options) {\n if (!messageTrait)\n return;\n const { schemaTypesToIterate } = options;\n if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && messageTrait.hasHeaders()) {\n traverseSchema(messageTrait.headers(), null, options);\n }\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACU,IAAC;AACX,CAAC,UAAU,0BAA0B,EAAE;AACvC,IAAI,0BAA0B,CAAC,YAAY,CAAC,GAAG,YAAY;AAC3D,IAAI,0BAA0B,CAAC,YAAY,CAAC,GAAG,YAAY;AAC3D,CAAC,EAAE,0BAA0B,KAAK,0BAA0B,GAAG,EAAE,CAAC,CAAC;AACnE;AACA;AACA;AACU,IAAC;AACX,CAAC,UAAU,oBAAoB,EAAE;AACjC,IAAI,oBAAoB,CAAC,YAAY,CAAC,GAAG,Y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,CAAC,YAAY;AACrB,QAAQ;AACR,IAAI,MAAM,EAAE,oBAAoB,EAAE,GAAG,OAAO;AAC5C,IAAI,IAAI,oBAAoB,CAAC,QAAQ,CAAC,oBAAoB,CAAC,OAAO,CAAC,IAAI,YAAY,CAAC,UAAU,EAAE,EAAE;AAClG,QAAQ,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC;AAC7D,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/models/base.js"],"sourcesContent":["export class BaseModel {\n constructor(_json, _meta = {}) {\n this._json = _json;\n this._meta = _meta;\n }\n json(key) {\n if (key === undefined)\n return this._json;\n if (this._json === null || this._json === undefined)\n return this._json;\n return this._json[key];\n }\n meta(key) {\n if (key === undefined)\n return this._meta;\n if (!this._meta)\n return;\n return this._meta[key];\n }\n jsonPath(field) {\n if (typeof field !== 'string') {\n return this._meta.pointer;\n }\n return `${this._meta.pointer}/${field}`;\n }\n createModel(Model, value, meta) {\n return new Model(value, Object.assign(Object.assign({}, meta), { asyncapi: this._meta.asyncapi }));\n }\n}\n"],"names":[],"mappings":"AAAO,MAAM,SAAS,CAAC;AACvB,IAAI,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,EAAE,EAAE;AACnC,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK
|
|
1
|
+
{"version":3,"file":"base.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/models/base.js"],"sourcesContent":["export class BaseModel {\n constructor(_json, _meta = {}) {\n this._json = _json;\n this._meta = _meta;\n }\n json(key) {\n if (key === undefined)\n return this._json;\n if (this._json === null || this._json === undefined)\n return this._json;\n return this._json[key];\n }\n meta(key) {\n if (key === undefined)\n return this._meta;\n if (!this._meta)\n return;\n return this._meta[key];\n }\n jsonPath(field) {\n if (typeof field !== 'string') {\n return this._meta.pointer;\n }\n return `${this._meta.pointer}/${field}`;\n }\n createModel(Model, value, meta) {\n return new Model(value, Object.assign(Object.assign({}, meta), { asyncapi: this._meta.asyncapi }));\n }\n}\n"],"names":[],"mappings":"AAAO,MAAM,SAAS,CAAC;AACvB,IAAI,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,EAAE,EAAE;AACnC,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK;AAC1B,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK;AAC1B,IAAI;AACJ,IAAI,IAAI,CAAC,GAAG,EAAE;AACd,QAAQ,IAAI,GAAG,KAAK,SAAS;AAC7B,YAAY,OAAO,IAAI,CAAC,KAAK;AAC7B,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS;AAC3D,YAAY,OAAO,IAAI,CAAC,KAAK;AAC7B,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;AAC9B,IAAI;AACJ,IAAI,IAAI,CAAC,GAAG,EAAE;AACd,QAAQ,IAAI,GAAG,KAAK,SAAS;AAC7B,YAAY,OAAO,IAAI,CAAC,KAAK;AAC7B,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK;AACvB,YAAY;AACZ,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;AAC9B,IAAI;AACJ,IAAI,QAAQ,CAAC,KAAK,EAAE;AACpB,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AACvC,YAAY,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO;AACrC,QAAQ;AACR,QAAQ,OAAO,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AAC/C,IAAI;AACJ,IAAI,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE;AACpC,QAAQ,OAAO,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;AAC1G,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/models/collection.js"],"sourcesContent":["export class Collection extends Array {\n constructor(collections, _meta = {}) {\n super(...collections);\n this.collections = collections;\n this._meta = _meta;\n }\n has(id) {\n return typeof this.get(id) !== 'undefined';\n }\n all() {\n return this.collections;\n }\n isEmpty() {\n return this.collections.length === 0;\n }\n filterBy(filter) {\n return this.collections.filter(filter);\n }\n meta(key) {\n if (key === undefined)\n return this._meta;\n if (!this._meta)\n return;\n return this._meta[String(key)];\n }\n}\n"],"names":[],"mappings":"AAAO,MAAM,UAAU,SAAS,KAAK,CAAC;AACtC,IAAI,WAAW,CAAC,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE;AACzC,QAAQ,KAAK,CAAC,GAAG,WAAW,CAAC
|
|
1
|
+
{"version":3,"file":"collection.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/models/collection.js"],"sourcesContent":["export class Collection extends Array {\n constructor(collections, _meta = {}) {\n super(...collections);\n this.collections = collections;\n this._meta = _meta;\n }\n has(id) {\n return typeof this.get(id) !== 'undefined';\n }\n all() {\n return this.collections;\n }\n isEmpty() {\n return this.collections.length === 0;\n }\n filterBy(filter) {\n return this.collections.filter(filter);\n }\n meta(key) {\n if (key === undefined)\n return this._meta;\n if (!this._meta)\n return;\n return this._meta[String(key)];\n }\n}\n"],"names":[],"mappings":"AAAO,MAAM,UAAU,SAAS,KAAK,CAAC;AACtC,IAAI,WAAW,CAAC,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE;AACzC,QAAQ,KAAK,CAAC,GAAG,WAAW,CAAC;AAC7B,QAAQ,IAAI,CAAC,WAAW,GAAG,WAAW;AACtC,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK;AAC1B,IAAI;AACJ,IAAI,GAAG,CAAC,EAAE,EAAE;AACZ,QAAQ,OAAO,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,WAAW;AAClD,IAAI;AACJ,IAAI,GAAG,GAAG;AACV,QAAQ,OAAO,IAAI,CAAC,WAAW;AAC/B,IAAI;AACJ,IAAI,OAAO,GAAG;AACd,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC;AAC5C,IAAI;AACJ,IAAI,QAAQ,CAAC,MAAM,EAAE;AACrB,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;AAC9C,IAAI;AACJ,IAAI,IAAI,CAAC,GAAG,EAAE;AACd,QAAQ,IAAI,GAAG,KAAK,SAAS;AAC7B,YAAY,OAAO,IAAI,CAAC,KAAK;AAC7B,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK;AACvB,YAAY;AACZ,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACtC,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-documentations.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/models/external-documentations.js"],"sourcesContent":["import { Collection } from './collection';\nexport class ExternalDocumentations extends Collection {\n get(id) {\n return this.collections.find(externalDocs => externalDocs.meta('id') === id);\n }\n}\n"],"names":[],"mappings":";;AACO,MAAM,sBAAsB,SAAS,UAAU,CAAC;AACvD,IAAI,GAAG,CAAC,EAAE,EAAE;AACZ,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC
|
|
1
|
+
{"version":3,"file":"external-documentations.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/models/external-documentations.js"],"sourcesContent":["import { Collection } from './collection';\nexport class ExternalDocumentations extends Collection {\n get(id) {\n return this.collections.find(externalDocs => externalDocs.meta('id') === id);\n }\n}\n"],"names":[],"mappings":";;AACO,MAAM,sBAAsB,SAAS,UAAU,CAAC;AACvD,IAAI,GAAG,CAAC,EAAE,EAAE;AACZ,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;AACpF,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/models/utils.js"],"sourcesContent":["import { SchemaTypesToIterate, traverseAsyncApiDocument } from '../iterator';\nexport function createModel(Model, value, meta, parent) {\n return new Model(value, Object.assign(Object.assign({}, meta), { asyncapi: meta.asyncapi || (parent === null || parent === void 0 ? void 0 : parent.meta().asyncapi) }));\n}\nexport function schemasFromDocument(document, SchemasModel, includeComponents) {\n const jsonInstances = new Set();\n const schemas = new Set();\n function callback(schema) {\n // comparing the reference (and not just the value) to the .json() object\n if (!jsonInstances.has(schema.json())) {\n jsonInstances.add(schema.json());\n schemas.add(schema); // unique schemas \n }\n }\n let toIterate = Object.values(SchemaTypesToIterate);\n if (!includeComponents) {\n toIterate = toIterate.filter(s => s !== SchemaTypesToIterate.Components);\n }\n traverseAsyncApiDocument(document, callback, toIterate);\n return new SchemasModel(Array.from(schemas));\n}\n"],"names":[],"mappings":";;AACO,SAAS,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE;AACxD,IAAI,OAAO,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,KAAK,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../../../../../../node_modules/@asyncapi/parser/esm/models/utils.js"],"sourcesContent":["import { SchemaTypesToIterate, traverseAsyncApiDocument } from '../iterator';\nexport function createModel(Model, value, meta, parent) {\n return new Model(value, Object.assign(Object.assign({}, meta), { asyncapi: meta.asyncapi || (parent === null || parent === void 0 ? void 0 : parent.meta().asyncapi) }));\n}\nexport function schemasFromDocument(document, SchemasModel, includeComponents) {\n const jsonInstances = new Set();\n const schemas = new Set();\n function callback(schema) {\n // comparing the reference (and not just the value) to the .json() object\n if (!jsonInstances.has(schema.json())) {\n jsonInstances.add(schema.json());\n schemas.add(schema); // unique schemas \n }\n }\n let toIterate = Object.values(SchemaTypesToIterate);\n if (!includeComponents) {\n toIterate = toIterate.filter(s => s !== SchemaTypesToIterate.Components);\n }\n traverseAsyncApiDocument(document, callback, toIterate);\n return new SchemasModel(Array.from(schemas));\n}\n"],"names":[],"mappings":";;AACO,SAAS,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE;AACxD,IAAI,OAAO,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,KAAK,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AAC5K;AACO,SAAS,mBAAmB,CAAC,QAAQ,EAAE,YAAY,EAAE,iBAAiB,EAAE;AAC/E,IAAI,MAAM,aAAa,GAAG,IAAI,GAAG,EAAE;AACnC,IAAI,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE;AAC7B,IAAI,SAAS,QAAQ,CAAC,MAAM,EAAE;AAC9B;AACA,QAAQ,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE;AAC/C,YAAY,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC5C,YAAY,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChC,QAAQ;AACR,IAAI;AACJ,IAAI,IAAI,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC;AACvD,IAAI,IAAI,CAAC,iBAAiB,EAAE;AAC5B,QAAQ,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,oBAAoB,CAAC,UAAU,CAAC;AAChF,IAAI;AACJ,IAAI,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC;AAC3D,IAAI,OAAO,IAAI,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAChD;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncapi.js","sources":["../../../../../../../../../node_modules/@asyncapi/parser/esm/models/v2/asyncapi.js"],"sourcesContent":["import { BaseModel } from '../base';\nimport { Info } from './info';\nimport { Channels } from './channels';\nimport { Channel } from './channel';\nimport { Components } from './components';\nimport { Messages } from './messages';\nimport { Operations } from './operations';\nimport { Servers } from './servers';\nimport { Server } from './server';\nimport { SecuritySchemes } from './security-schemes';\nimport { SecurityScheme } from './security-scheme';\nimport { Schemas } from './schemas';\nimport { extensions } from './mixins';\nimport { tilde } from '../../utils';\nimport { schemasFromDocument } from '../utils';\nexport class AsyncAPIDocument extends BaseModel {\n version() {\n return this._json.asyncapi;\n }\n defaultContentType() {\n return this._json.defaultContentType;\n }\n hasDefaultContentType() {\n return !!this._json.defaultContentType;\n }\n info() {\n return this.createModel(Info, this._json.info, { pointer: '/info' });\n }\n servers() {\n return new Servers(Object.entries(this._json.servers || {}).map(([serverName, server]) => this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` })));\n }\n channels() {\n return new Channels(Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => this.createModel(Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${tilde(channelAddress)}` })));\n }\n operations() {\n const operations = [];\n this.channels().forEach(channel => operations.push(...channel.operations()));\n return new Operations(operations);\n }\n messages() {\n const messages = [];\n this.operations().forEach(operation => operation.messages().forEach(message => (!messages.some(m => m.json() === message.json()) && messages.push(message))));\n return new Messages(messages);\n }\n schemas() {\n return schemasFromDocument(this, Schemas, false);\n }\n securitySchemes() {\n var _a;\n return new SecuritySchemes(Object.entries(((_a = this._json.components) === null || _a === void 0 ? void 0 : _a.securitySchemes) || {}).map(([securitySchemeName, securityScheme]) => this.createModel(SecurityScheme, securityScheme, { id: securitySchemeName, pointer: `/components/securitySchemes/${securitySchemeName}` })));\n }\n components() {\n return this.createModel(Components, this._json.components || {}, { pointer: '/components' });\n }\n allServers() {\n const servers = this.servers().all();\n this.components().servers().forEach(server => !servers.some(s => s.json() === server.json()) && servers.push(server));\n return new Servers(servers);\n }\n allChannels() {\n const channels = this.channels().all();\n this.components().channels().forEach(channel => !channels.some(c => c.json() === channel.json()) && channels.push(channel));\n return new Channels(channels);\n }\n allOperations() {\n const operations = [];\n this.allChannels().forEach(channel => operations.push(...channel.operations()));\n return new Operations(operations);\n }\n allMessages() {\n const messages = [];\n this.allOperations().forEach(operation => operation.messages().forEach(message => (!messages.some(m => m.json() === message.json()) && messages.push(message))));\n this.components().messages().forEach(message => (!messages.some(m => m.json() === message.json()) && messages.push(message)));\n return new Messages(messages);\n }\n allSchemas() {\n return schemasFromDocument(this, Schemas, true);\n }\n extensions() {\n return extensions(this);\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeO,MAAM,gBAAgB,SAAS,SAAS,CAAC;AAChD,IAAI,OAAO,GAAG;AACd,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ
|
|
1
|
+
{"version":3,"file":"asyncapi.js","sources":["../../../../../../../../../node_modules/@asyncapi/parser/esm/models/v2/asyncapi.js"],"sourcesContent":["import { BaseModel } from '../base';\nimport { Info } from './info';\nimport { Channels } from './channels';\nimport { Channel } from './channel';\nimport { Components } from './components';\nimport { Messages } from './messages';\nimport { Operations } from './operations';\nimport { Servers } from './servers';\nimport { Server } from './server';\nimport { SecuritySchemes } from './security-schemes';\nimport { SecurityScheme } from './security-scheme';\nimport { Schemas } from './schemas';\nimport { extensions } from './mixins';\nimport { tilde } from '../../utils';\nimport { schemasFromDocument } from '../utils';\nexport class AsyncAPIDocument extends BaseModel {\n version() {\n return this._json.asyncapi;\n }\n defaultContentType() {\n return this._json.defaultContentType;\n }\n hasDefaultContentType() {\n return !!this._json.defaultContentType;\n }\n info() {\n return this.createModel(Info, this._json.info, { pointer: '/info' });\n }\n servers() {\n return new Servers(Object.entries(this._json.servers || {}).map(([serverName, server]) => this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` })));\n }\n channels() {\n return new Channels(Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => this.createModel(Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${tilde(channelAddress)}` })));\n }\n operations() {\n const operations = [];\n this.channels().forEach(channel => operations.push(...channel.operations()));\n return new Operations(operations);\n }\n messages() {\n const messages = [];\n this.operations().forEach(operation => operation.messages().forEach(message => (!messages.some(m => m.json() === message.json()) && messages.push(message))));\n return new Messages(messages);\n }\n schemas() {\n return schemasFromDocument(this, Schemas, false);\n }\n securitySchemes() {\n var _a;\n return new SecuritySchemes(Object.entries(((_a = this._json.components) === null || _a === void 0 ? void 0 : _a.securitySchemes) || {}).map(([securitySchemeName, securityScheme]) => this.createModel(SecurityScheme, securityScheme, { id: securitySchemeName, pointer: `/components/securitySchemes/${securitySchemeName}` })));\n }\n components() {\n return this.createModel(Components, this._json.components || {}, { pointer: '/components' });\n }\n allServers() {\n const servers = this.servers().all();\n this.components().servers().forEach(server => !servers.some(s => s.json() === server.json()) && servers.push(server));\n return new Servers(servers);\n }\n allChannels() {\n const channels = this.channels().all();\n this.components().channels().forEach(channel => !channels.some(c => c.json() === channel.json()) && channels.push(channel));\n return new Channels(channels);\n }\n allOperations() {\n const operations = [];\n this.allChannels().forEach(channel => operations.push(...channel.operations()));\n return new Operations(operations);\n }\n allMessages() {\n const messages = [];\n this.allOperations().forEach(operation => operation.messages().forEach(message => (!messages.some(m => m.json() === message.json()) && messages.push(message))));\n this.components().messages().forEach(message => (!messages.some(m => m.json() === message.json()) && messages.push(message)));\n return new Messages(messages);\n }\n allSchemas() {\n return schemasFromDocument(this, Schemas, true);\n }\n extensions() {\n return extensions(this);\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeO,MAAM,gBAAgB,SAAS,SAAS,CAAC;AAChD,IAAI,OAAO,GAAG;AACd,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ;AAClC,IAAI;AACJ,IAAI,kBAAkB,GAAG;AACzB,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,kBAAkB;AAC5C,IAAI;AACJ,IAAI,qBAAqB,GAAG;AAC5B,QAAQ,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB;AAC9C,IAAI;AACJ,IAAI,IAAI,GAAG;AACX,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AAC5E,IAAI;AACJ,IAAI,OAAO,GAAG;AACd,QAAQ,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,UAAU,EAA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AAmB,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC;AACvD,IAAI;AACJ,IAAI,UAAU,GAAG;AACjB,QAAQ,OAAO,UAAU,CAAC,IAAI,CAAC;AAC/B,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.js","sources":["../../../../../../../../../node_modules/@asyncapi/parser/esm/models/v2/binding.js"],"sourcesContent":["import { BaseModel } from '../base';\nimport { extensions } from './mixins';\nexport class Binding extends BaseModel {\n protocol() {\n return this._meta.protocol;\n }\n version() {\n return this._json.bindingVersion || 'latest';\n }\n value() {\n const value = Object.assign({}, this._json);\n delete value.bindingVersion;\n return value;\n }\n extensions() {\n return extensions(this);\n }\n}\n"],"names":[],"mappings":";;;AAEO,MAAM,OAAO,SAAS,SAAS,CAAC;AACvC,IAAI,QAAQ,GAAG;AACf,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ
|
|
1
|
+
{"version":3,"file":"binding.js","sources":["../../../../../../../../../node_modules/@asyncapi/parser/esm/models/v2/binding.js"],"sourcesContent":["import { BaseModel } from '../base';\nimport { extensions } from './mixins';\nexport class Binding extends BaseModel {\n protocol() {\n return this._meta.protocol;\n }\n version() {\n return this._json.bindingVersion || 'latest';\n }\n value() {\n const value = Object.assign({}, this._json);\n delete value.bindingVersion;\n return value;\n }\n extensions() {\n return extensions(this);\n }\n}\n"],"names":[],"mappings":";;;AAEO,MAAM,OAAO,SAAS,SAAS,CAAC;AACvC,IAAI,QAAQ,GAAG;AACf,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ;AAClC,IAAI;AACJ,IAAI,OAAO,GAAG;AACd,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,IAAI,QAAQ;AACpD,IAAI;AACJ,IAAI,KAAK,GAAG;AACZ,QAAQ,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC;AACnD,QAAQ,OAAO,KAAK,CAAC,cAAc;AACnC,QAAQ,OAAO,KAAK;AACpB,IAAI;AACJ,IAAI,UAAU,GAAG;AACjB,QAAQ,OAAO,UAAU,CAAC,IAAI,CAAC;AAC/B,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
|