@kubb/agent 4.27.2 → 4.27.4
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/.output/nitro.json +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +64 -62
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +5 -5
- package/.output/server/index.mjs +5 -5
- package/.output/server/package.json +1 -10
- package/LICENSE +21 -0
- package/package.json +17 -17
- package/.output/server/node_modules/@redocly/ajv/dist/2020.js +0 -55
- package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +0 -50
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +0 -156
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +0 -697
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +0 -143
- package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +0 -123
- package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +0 -249
- package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +0 -29
- package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +0 -12
- package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +0 -155
- package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +0 -178
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +0 -19
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +0 -50
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +0 -203
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +0 -35
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +0 -534
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +0 -124
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +0 -81
- package/.output/server/node_modules/@redocly/ajv/dist/core.js +0 -632
- package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +0 -56
- package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +0 -13
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +0 -138
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +0 -151
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +0 -7
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +0 -24
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +0 -6
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +0 -11
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -107
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +0 -23
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +0 -95
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +0 -66
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +0 -44
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +0 -52
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +0 -30
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +0 -55
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +0 -138
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +0 -10
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +0 -16
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +0 -132
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +0 -139
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +0 -9
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +0 -23
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +0 -29
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +0 -17
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +0 -9
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +0 -92
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +0 -6
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +0 -8
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +0 -7
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -84
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +0 -25
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +0 -43
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +0 -19
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +0 -48
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +0 -37
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +0 -15
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +0 -24
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +0 -27
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +0 -24
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +0 -20
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +0 -86
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +0 -20
- package/.output/server/node_modules/@redocly/ajv/package.json +0 -130
- package/.output/server/node_modules/@redocly/config/lib/common.js +0 -90
- package/.output/server/node_modules/@redocly/config/lib/constants.js +0 -73
- package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +0 -54
- package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +0 -186
- package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +0 -283
- package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +0 -661
- package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +0 -88
- package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +0 -157
- package/.output/server/node_modules/@redocly/config/lib/index.js +0 -38
- package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +0 -43
- package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +0 -120
- package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +0 -518
- package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +0 -25
- package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +0 -103
- package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +0 -551
- package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +0 -244
- package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +0 -3
- package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +0 -3
- package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +0 -3
- package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +0 -3
- package/.output/server/node_modules/@redocly/config/lib/types/index.js +0 -21
- package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +0 -18
- package/.output/server/node_modules/@redocly/config/package.json +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +0 -85
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +0 -257
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +0 -74
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +0 -310
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +0 -58
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +0 -335
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +0 -338
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +0 -9
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +0 -51
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +0 -8
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +0 -98
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +0 -289
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +0 -289
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +0 -289
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +0 -35
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +0 -289
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +0 -129
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +0 -88
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +0 -65
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +0 -58
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +0 -68
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +0 -88
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +0 -116
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +0 -79
- package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +0 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +0 -177
- package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +0 -365
- package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +0 -49
- package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +0 -11
- package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +0 -171
- package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +0 -123
- package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +0 -56
- package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +0 -35
- package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +0 -106
- package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +0 -326
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +0 -106
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +0 -68
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +0 -52
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +0 -139
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +0 -30
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +0 -53
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +0 -16
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +0 -16
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +0 -39
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +0 -269
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +0 -22
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +0 -215
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +0 -42
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +0 -38
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +0 -31
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +0 -34
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +0 -78
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +0 -42
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +0 -9
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +0 -17
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +0 -37
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +0 -9
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +0 -125
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +0 -30
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +0 -17
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +0 -34
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +0 -26
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +0 -39
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +0 -62
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +0 -150
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +0 -9
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +0 -18
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +0 -93
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +0 -34
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +0 -26
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +0 -130
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +0 -129
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +0 -59
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +0 -58
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +0 -83
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +0 -33
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +0 -36
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +0 -59
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +0 -31
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +0 -16
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +0 -38
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +0 -65
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +0 -82
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +0 -31
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +0 -74
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +0 -12
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +0 -30
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +0 -25
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +0 -18
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +0 -35
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +0 -60
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +0 -172
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +0 -482
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +0 -1157
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +0 -511
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +0 -90
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +0 -174
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +0 -101
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +0 -454
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +0 -828
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +0 -292
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +0 -306
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +0 -360
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +0 -61
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +0 -555
- package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +0 -3
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +0 -36
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +0 -7
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +0 -3
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +0 -11
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +0 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +0 -6
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +0 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +0 -6
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +0 -6
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +0 -8
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +0 -8
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +0 -26
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +0 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +0 -99
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +0 -11
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +0 -7
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +0 -31
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +0 -177
- package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +0 -303
- package/.output/server/node_modules/@redocly/openapi-core/package.json +0 -74
- package/.output/server/node_modules/ajv-formats/dist/formats.js +0 -208
- package/.output/server/node_modules/ajv-formats/dist/index.js +0 -37
- package/.output/server/node_modules/ajv-formats/dist/limit.js +0 -69
- package/.output/server/node_modules/ajv-formats/package.json +0 -74
- package/.output/server/node_modules/colorette/index.js +0 -82
- package/.output/server/node_modules/colorette/package.json +0 -39
- package/.output/server/node_modules/js-levenshtein/index.js +0 -105
- package/.output/server/node_modules/js-levenshtein/package.json +0 -49
- package/.output/server/node_modules/picomatch/index.js +0 -17
- package/.output/server/node_modules/picomatch/lib/constants.js +0 -180
- package/.output/server/node_modules/picomatch/lib/parse.js +0 -1085
- package/.output/server/node_modules/picomatch/lib/picomatch.js +0 -341
- package/.output/server/node_modules/picomatch/lib/scan.js +0 -391
- package/.output/server/node_modules/picomatch/lib/utils.js +0 -72
- package/.output/server/node_modules/picomatch/package.json +0 -83
- package/.output/server/node_modules/pluralize/package.json +0 -40
- package/.output/server/node_modules/pluralize/pluralize.js +0 -503
- package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +0 -45
- package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +0 -644
- package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +0 -40
- package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +0 -22
- package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +0 -1416
- package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +0 -62
- package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +0 -82
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +0 -8
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +0 -14
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +0 -19
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +0 -10
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +0 -14
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +0 -78
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +0 -92
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +0 -32
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +0 -95
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +0 -155
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +0 -64
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +0 -22
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +0 -7
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +0 -10
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +0 -30
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +0 -46
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +0 -55
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +0 -7
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +0 -22
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +0 -7
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +0 -70
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +0 -54
- package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +0 -82
- package/.output/server/node_modules/yaml-ast-parser/package.json +0 -39
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const utils = require('./utils');
|
|
4
|
-
const {
|
|
5
|
-
CHAR_ASTERISK, /* * */
|
|
6
|
-
CHAR_AT, /* @ */
|
|
7
|
-
CHAR_BACKWARD_SLASH, /* \ */
|
|
8
|
-
CHAR_COMMA, /* , */
|
|
9
|
-
CHAR_DOT, /* . */
|
|
10
|
-
CHAR_EXCLAMATION_MARK, /* ! */
|
|
11
|
-
CHAR_FORWARD_SLASH, /* / */
|
|
12
|
-
CHAR_LEFT_CURLY_BRACE, /* { */
|
|
13
|
-
CHAR_LEFT_PARENTHESES, /* ( */
|
|
14
|
-
CHAR_LEFT_SQUARE_BRACKET, /* [ */
|
|
15
|
-
CHAR_PLUS, /* + */
|
|
16
|
-
CHAR_QUESTION_MARK, /* ? */
|
|
17
|
-
CHAR_RIGHT_CURLY_BRACE, /* } */
|
|
18
|
-
CHAR_RIGHT_PARENTHESES, /* ) */
|
|
19
|
-
CHAR_RIGHT_SQUARE_BRACKET /* ] */
|
|
20
|
-
} = require('./constants');
|
|
21
|
-
|
|
22
|
-
const isPathSeparator = code => {
|
|
23
|
-
return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const depth = token => {
|
|
27
|
-
if (token.isPrefix !== true) {
|
|
28
|
-
token.depth = token.isGlobstar ? Infinity : 1;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Quickly scans a glob pattern and returns an object with a handful of
|
|
34
|
-
* useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
|
|
35
|
-
* `glob` (the actual pattern), `negated` (true if the path starts with `!` but not
|
|
36
|
-
* with `!(`) and `negatedExtglob` (true if the path starts with `!(`).
|
|
37
|
-
*
|
|
38
|
-
* ```js
|
|
39
|
-
* const pm = require('picomatch');
|
|
40
|
-
* console.log(pm.scan('foo/bar/*.js'));
|
|
41
|
-
* { isGlob: true, input: 'foo/bar/*.js', base: 'foo/bar', glob: '*.js' }
|
|
42
|
-
* ```
|
|
43
|
-
* @param {String} `str`
|
|
44
|
-
* @param {Object} `options`
|
|
45
|
-
* @return {Object} Returns an object with tokens and regex source string.
|
|
46
|
-
* @api public
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
const scan = (input, options) => {
|
|
50
|
-
const opts = options || {};
|
|
51
|
-
|
|
52
|
-
const length = input.length - 1;
|
|
53
|
-
const scanToEnd = opts.parts === true || opts.scanToEnd === true;
|
|
54
|
-
const slashes = [];
|
|
55
|
-
const tokens = [];
|
|
56
|
-
const parts = [];
|
|
57
|
-
|
|
58
|
-
let str = input;
|
|
59
|
-
let index = -1;
|
|
60
|
-
let start = 0;
|
|
61
|
-
let lastIndex = 0;
|
|
62
|
-
let isBrace = false;
|
|
63
|
-
let isBracket = false;
|
|
64
|
-
let isGlob = false;
|
|
65
|
-
let isExtglob = false;
|
|
66
|
-
let isGlobstar = false;
|
|
67
|
-
let braceEscaped = false;
|
|
68
|
-
let backslashes = false;
|
|
69
|
-
let negated = false;
|
|
70
|
-
let negatedExtglob = false;
|
|
71
|
-
let finished = false;
|
|
72
|
-
let braces = 0;
|
|
73
|
-
let prev;
|
|
74
|
-
let code;
|
|
75
|
-
let token = { value: '', depth: 0, isGlob: false };
|
|
76
|
-
|
|
77
|
-
const eos = () => index >= length;
|
|
78
|
-
const peek = () => str.charCodeAt(index + 1);
|
|
79
|
-
const advance = () => {
|
|
80
|
-
prev = code;
|
|
81
|
-
return str.charCodeAt(++index);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
while (index < length) {
|
|
85
|
-
code = advance();
|
|
86
|
-
let next;
|
|
87
|
-
|
|
88
|
-
if (code === CHAR_BACKWARD_SLASH) {
|
|
89
|
-
backslashes = token.backslashes = true;
|
|
90
|
-
code = advance();
|
|
91
|
-
|
|
92
|
-
if (code === CHAR_LEFT_CURLY_BRACE) {
|
|
93
|
-
braceEscaped = true;
|
|
94
|
-
}
|
|
95
|
-
continue;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
|
|
99
|
-
braces++;
|
|
100
|
-
|
|
101
|
-
while (eos() !== true && (code = advance())) {
|
|
102
|
-
if (code === CHAR_BACKWARD_SLASH) {
|
|
103
|
-
backslashes = token.backslashes = true;
|
|
104
|
-
advance();
|
|
105
|
-
continue;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
if (code === CHAR_LEFT_CURLY_BRACE) {
|
|
109
|
-
braces++;
|
|
110
|
-
continue;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
|
|
114
|
-
isBrace = token.isBrace = true;
|
|
115
|
-
isGlob = token.isGlob = true;
|
|
116
|
-
finished = true;
|
|
117
|
-
|
|
118
|
-
if (scanToEnd === true) {
|
|
119
|
-
continue;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
if (braceEscaped !== true && code === CHAR_COMMA) {
|
|
126
|
-
isBrace = token.isBrace = true;
|
|
127
|
-
isGlob = token.isGlob = true;
|
|
128
|
-
finished = true;
|
|
129
|
-
|
|
130
|
-
if (scanToEnd === true) {
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
if (code === CHAR_RIGHT_CURLY_BRACE) {
|
|
138
|
-
braces--;
|
|
139
|
-
|
|
140
|
-
if (braces === 0) {
|
|
141
|
-
braceEscaped = false;
|
|
142
|
-
isBrace = token.isBrace = true;
|
|
143
|
-
finished = true;
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
if (scanToEnd === true) {
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
if (code === CHAR_FORWARD_SLASH) {
|
|
157
|
-
slashes.push(index);
|
|
158
|
-
tokens.push(token);
|
|
159
|
-
token = { value: '', depth: 0, isGlob: false };
|
|
160
|
-
|
|
161
|
-
if (finished === true) continue;
|
|
162
|
-
if (prev === CHAR_DOT && index === (start + 1)) {
|
|
163
|
-
start += 2;
|
|
164
|
-
continue;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
lastIndex = index + 1;
|
|
168
|
-
continue;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
if (opts.noext !== true) {
|
|
172
|
-
const isExtglobChar = code === CHAR_PLUS
|
|
173
|
-
|| code === CHAR_AT
|
|
174
|
-
|| code === CHAR_ASTERISK
|
|
175
|
-
|| code === CHAR_QUESTION_MARK
|
|
176
|
-
|| code === CHAR_EXCLAMATION_MARK;
|
|
177
|
-
|
|
178
|
-
if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
|
|
179
|
-
isGlob = token.isGlob = true;
|
|
180
|
-
isExtglob = token.isExtglob = true;
|
|
181
|
-
finished = true;
|
|
182
|
-
if (code === CHAR_EXCLAMATION_MARK && index === start) {
|
|
183
|
-
negatedExtglob = true;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
if (scanToEnd === true) {
|
|
187
|
-
while (eos() !== true && (code = advance())) {
|
|
188
|
-
if (code === CHAR_BACKWARD_SLASH) {
|
|
189
|
-
backslashes = token.backslashes = true;
|
|
190
|
-
code = advance();
|
|
191
|
-
continue;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
if (code === CHAR_RIGHT_PARENTHESES) {
|
|
195
|
-
isGlob = token.isGlob = true;
|
|
196
|
-
finished = true;
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
continue;
|
|
201
|
-
}
|
|
202
|
-
break;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
if (code === CHAR_ASTERISK) {
|
|
207
|
-
if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
|
|
208
|
-
isGlob = token.isGlob = true;
|
|
209
|
-
finished = true;
|
|
210
|
-
|
|
211
|
-
if (scanToEnd === true) {
|
|
212
|
-
continue;
|
|
213
|
-
}
|
|
214
|
-
break;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
if (code === CHAR_QUESTION_MARK) {
|
|
218
|
-
isGlob = token.isGlob = true;
|
|
219
|
-
finished = true;
|
|
220
|
-
|
|
221
|
-
if (scanToEnd === true) {
|
|
222
|
-
continue;
|
|
223
|
-
}
|
|
224
|
-
break;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
if (code === CHAR_LEFT_SQUARE_BRACKET) {
|
|
228
|
-
while (eos() !== true && (next = advance())) {
|
|
229
|
-
if (next === CHAR_BACKWARD_SLASH) {
|
|
230
|
-
backslashes = token.backslashes = true;
|
|
231
|
-
advance();
|
|
232
|
-
continue;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
236
|
-
isBracket = token.isBracket = true;
|
|
237
|
-
isGlob = token.isGlob = true;
|
|
238
|
-
finished = true;
|
|
239
|
-
break;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
if (scanToEnd === true) {
|
|
244
|
-
continue;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
break;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
|
|
251
|
-
negated = token.negated = true;
|
|
252
|
-
start++;
|
|
253
|
-
continue;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
|
|
257
|
-
isGlob = token.isGlob = true;
|
|
258
|
-
|
|
259
|
-
if (scanToEnd === true) {
|
|
260
|
-
while (eos() !== true && (code = advance())) {
|
|
261
|
-
if (code === CHAR_LEFT_PARENTHESES) {
|
|
262
|
-
backslashes = token.backslashes = true;
|
|
263
|
-
code = advance();
|
|
264
|
-
continue;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
if (code === CHAR_RIGHT_PARENTHESES) {
|
|
268
|
-
finished = true;
|
|
269
|
-
break;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
continue;
|
|
273
|
-
}
|
|
274
|
-
break;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
if (isGlob === true) {
|
|
278
|
-
finished = true;
|
|
279
|
-
|
|
280
|
-
if (scanToEnd === true) {
|
|
281
|
-
continue;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
break;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
if (opts.noext === true) {
|
|
289
|
-
isExtglob = false;
|
|
290
|
-
isGlob = false;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
let base = str;
|
|
294
|
-
let prefix = '';
|
|
295
|
-
let glob = '';
|
|
296
|
-
|
|
297
|
-
if (start > 0) {
|
|
298
|
-
prefix = str.slice(0, start);
|
|
299
|
-
str = str.slice(start);
|
|
300
|
-
lastIndex -= start;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
if (base && isGlob === true && lastIndex > 0) {
|
|
304
|
-
base = str.slice(0, lastIndex);
|
|
305
|
-
glob = str.slice(lastIndex);
|
|
306
|
-
} else if (isGlob === true) {
|
|
307
|
-
base = '';
|
|
308
|
-
glob = str;
|
|
309
|
-
} else {
|
|
310
|
-
base = str;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
if (base && base !== '' && base !== '/' && base !== str) {
|
|
314
|
-
if (isPathSeparator(base.charCodeAt(base.length - 1))) {
|
|
315
|
-
base = base.slice(0, -1);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
if (opts.unescape === true) {
|
|
320
|
-
if (glob) glob = utils.removeBackslashes(glob);
|
|
321
|
-
|
|
322
|
-
if (base && backslashes === true) {
|
|
323
|
-
base = utils.removeBackslashes(base);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
const state = {
|
|
328
|
-
prefix,
|
|
329
|
-
input,
|
|
330
|
-
start,
|
|
331
|
-
base,
|
|
332
|
-
glob,
|
|
333
|
-
isBrace,
|
|
334
|
-
isBracket,
|
|
335
|
-
isGlob,
|
|
336
|
-
isExtglob,
|
|
337
|
-
isGlobstar,
|
|
338
|
-
negated,
|
|
339
|
-
negatedExtglob
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
if (opts.tokens === true) {
|
|
343
|
-
state.maxDepth = 0;
|
|
344
|
-
if (!isPathSeparator(code)) {
|
|
345
|
-
tokens.push(token);
|
|
346
|
-
}
|
|
347
|
-
state.tokens = tokens;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
if (opts.parts === true || opts.tokens === true) {
|
|
351
|
-
let prevIndex;
|
|
352
|
-
|
|
353
|
-
for (let idx = 0; idx < slashes.length; idx++) {
|
|
354
|
-
const n = prevIndex ? prevIndex + 1 : start;
|
|
355
|
-
const i = slashes[idx];
|
|
356
|
-
const value = input.slice(n, i);
|
|
357
|
-
if (opts.tokens) {
|
|
358
|
-
if (idx === 0 && start !== 0) {
|
|
359
|
-
tokens[idx].isPrefix = true;
|
|
360
|
-
tokens[idx].value = prefix;
|
|
361
|
-
} else {
|
|
362
|
-
tokens[idx].value = value;
|
|
363
|
-
}
|
|
364
|
-
depth(tokens[idx]);
|
|
365
|
-
state.maxDepth += tokens[idx].depth;
|
|
366
|
-
}
|
|
367
|
-
if (idx !== 0 || value !== '') {
|
|
368
|
-
parts.push(value);
|
|
369
|
-
}
|
|
370
|
-
prevIndex = i;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
if (prevIndex && prevIndex + 1 < input.length) {
|
|
374
|
-
const value = input.slice(prevIndex + 1);
|
|
375
|
-
parts.push(value);
|
|
376
|
-
|
|
377
|
-
if (opts.tokens) {
|
|
378
|
-
tokens[tokens.length - 1].value = value;
|
|
379
|
-
depth(tokens[tokens.length - 1]);
|
|
380
|
-
state.maxDepth += tokens[tokens.length - 1].depth;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
state.slashes = slashes;
|
|
385
|
-
state.parts = parts;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
return state;
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
module.exports = scan;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/*global navigator*/
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
const {
|
|
5
|
-
REGEX_BACKSLASH,
|
|
6
|
-
REGEX_REMOVE_BACKSLASH,
|
|
7
|
-
REGEX_SPECIAL_CHARS,
|
|
8
|
-
REGEX_SPECIAL_CHARS_GLOBAL
|
|
9
|
-
} = require('./constants');
|
|
10
|
-
|
|
11
|
-
exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
|
|
12
|
-
exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
|
|
13
|
-
exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
|
|
14
|
-
exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
|
|
15
|
-
exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
|
|
16
|
-
|
|
17
|
-
exports.isWindows = () => {
|
|
18
|
-
if (typeof navigator !== 'undefined' && navigator.platform) {
|
|
19
|
-
const platform = navigator.platform.toLowerCase();
|
|
20
|
-
return platform === 'win32' || platform === 'windows';
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (typeof process !== 'undefined' && process.platform) {
|
|
24
|
-
return process.platform === 'win32';
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return false;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
exports.removeBackslashes = str => {
|
|
31
|
-
return str.replace(REGEX_REMOVE_BACKSLASH, match => {
|
|
32
|
-
return match === '\\' ? '' : match;
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
exports.escapeLast = (input, char, lastIdx) => {
|
|
37
|
-
const idx = input.lastIndexOf(char, lastIdx);
|
|
38
|
-
if (idx === -1) return input;
|
|
39
|
-
if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
|
|
40
|
-
return `${input.slice(0, idx)}\\${input.slice(idx)}`;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
exports.removePrefix = (input, state = {}) => {
|
|
44
|
-
let output = input;
|
|
45
|
-
if (output.startsWith('./')) {
|
|
46
|
-
output = output.slice(2);
|
|
47
|
-
state.prefix = './';
|
|
48
|
-
}
|
|
49
|
-
return output;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
exports.wrapOutput = (input, state = {}, options = {}) => {
|
|
53
|
-
const prepend = options.contains ? '' : '^';
|
|
54
|
-
const append = options.contains ? '' : '$';
|
|
55
|
-
|
|
56
|
-
let output = `${prepend}(?:${input})${append}`;
|
|
57
|
-
if (state.negated === true) {
|
|
58
|
-
output = `(?:^(?!${output}).*$)`;
|
|
59
|
-
}
|
|
60
|
-
return output;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
exports.basename = (path, { windows } = {}) => {
|
|
64
|
-
const segs = path.split(windows ? /[\\/]/ : '/');
|
|
65
|
-
const last = segs[segs.length - 1];
|
|
66
|
-
|
|
67
|
-
if (last === '') {
|
|
68
|
-
return segs[segs.length - 2];
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return last;
|
|
72
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "picomatch",
|
|
3
|
-
"description": "Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.",
|
|
4
|
-
"version": "4.0.3",
|
|
5
|
-
"homepage": "https://github.com/micromatch/picomatch",
|
|
6
|
-
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
|
-
"funding": "https://github.com/sponsors/jonschlinkert",
|
|
8
|
-
"repository": "micromatch/picomatch",
|
|
9
|
-
"bugs": {
|
|
10
|
-
"url": "https://github.com/micromatch/picomatch/issues"
|
|
11
|
-
},
|
|
12
|
-
"license": "MIT",
|
|
13
|
-
"files": [
|
|
14
|
-
"index.js",
|
|
15
|
-
"posix.js",
|
|
16
|
-
"lib"
|
|
17
|
-
],
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"main": "index.js",
|
|
20
|
-
"engines": {
|
|
21
|
-
"node": ">=12"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .",
|
|
25
|
-
"mocha": "mocha --reporter dot",
|
|
26
|
-
"test": "npm run lint && npm run mocha",
|
|
27
|
-
"test:ci": "npm run test:cover",
|
|
28
|
-
"test:cover": "nyc npm run mocha"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"eslint": "^8.57.0",
|
|
32
|
-
"fill-range": "^7.0.1",
|
|
33
|
-
"gulp-format-md": "^2.0.0",
|
|
34
|
-
"mocha": "^10.4.0",
|
|
35
|
-
"nyc": "^15.1.0",
|
|
36
|
-
"time-require": "github:jonschlinkert/time-require"
|
|
37
|
-
},
|
|
38
|
-
"keywords": [
|
|
39
|
-
"glob",
|
|
40
|
-
"match",
|
|
41
|
-
"picomatch"
|
|
42
|
-
],
|
|
43
|
-
"nyc": {
|
|
44
|
-
"reporter": [
|
|
45
|
-
"html",
|
|
46
|
-
"lcov",
|
|
47
|
-
"text-summary"
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"verb": {
|
|
51
|
-
"toc": {
|
|
52
|
-
"render": true,
|
|
53
|
-
"method": "preWrite",
|
|
54
|
-
"maxdepth": 3
|
|
55
|
-
},
|
|
56
|
-
"layout": "empty",
|
|
57
|
-
"tasks": [
|
|
58
|
-
"readme"
|
|
59
|
-
],
|
|
60
|
-
"plugins": [
|
|
61
|
-
"gulp-format-md"
|
|
62
|
-
],
|
|
63
|
-
"lint": {
|
|
64
|
-
"reflinks": true
|
|
65
|
-
},
|
|
66
|
-
"related": {
|
|
67
|
-
"list": [
|
|
68
|
-
"braces",
|
|
69
|
-
"micromatch"
|
|
70
|
-
]
|
|
71
|
-
},
|
|
72
|
-
"reflinks": [
|
|
73
|
-
"braces",
|
|
74
|
-
"expand-brackets",
|
|
75
|
-
"extglob",
|
|
76
|
-
"fill-range",
|
|
77
|
-
"micromatch",
|
|
78
|
-
"minimatch",
|
|
79
|
-
"nanomatch",
|
|
80
|
-
"picomatch"
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pluralize",
|
|
3
|
-
"version": "8.0.0",
|
|
4
|
-
"description": "Pluralize and singularize any word",
|
|
5
|
-
"main": "pluralize.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"pluralize.js"
|
|
8
|
-
],
|
|
9
|
-
"scripts": {
|
|
10
|
-
"lint": "semistandard",
|
|
11
|
-
"test-spec": "mocha -R spec --bail",
|
|
12
|
-
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --bail",
|
|
13
|
-
"test": "npm run lint && npm run test-cov"
|
|
14
|
-
},
|
|
15
|
-
"repository": "https://github.com/blakeembrey/pluralize.git",
|
|
16
|
-
"keywords": [
|
|
17
|
-
"plural",
|
|
18
|
-
"plurals",
|
|
19
|
-
"pluralize",
|
|
20
|
-
"singular",
|
|
21
|
-
"singularize",
|
|
22
|
-
"inflection"
|
|
23
|
-
],
|
|
24
|
-
"author": {
|
|
25
|
-
"name": "Blake Embrey",
|
|
26
|
-
"email": "hello@blakeembrey.com",
|
|
27
|
-
"url": "http://blakeembrey.me"
|
|
28
|
-
},
|
|
29
|
-
"license": "MIT",
|
|
30
|
-
"readmeFilename": "Readme.md",
|
|
31
|
-
"engines": {
|
|
32
|
-
"node": ">=4"
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"chai": "^4.0.0",
|
|
36
|
-
"istanbul": "^0.4.5",
|
|
37
|
-
"mocha": "^5.0.0",
|
|
38
|
-
"semistandard": "^12.0.0"
|
|
39
|
-
}
|
|
40
|
-
}
|