@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,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatLimitDefinition = void 0;
|
|
4
|
-
const ajv_1 = require("ajv");
|
|
5
|
-
const codegen_1 = require("ajv/dist/compile/codegen");
|
|
6
|
-
const ops = codegen_1.operators;
|
|
7
|
-
const KWDs = {
|
|
8
|
-
formatMaximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT },
|
|
9
|
-
formatMinimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT },
|
|
10
|
-
formatExclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE },
|
|
11
|
-
formatExclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE },
|
|
12
|
-
};
|
|
13
|
-
const error = {
|
|
14
|
-
message: ({ keyword, schemaCode }) => (0, codegen_1.str) `should be ${KWDs[keyword].okStr} ${schemaCode}`,
|
|
15
|
-
params: ({ keyword, schemaCode }) => (0, codegen_1._) `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`,
|
|
16
|
-
};
|
|
17
|
-
exports.formatLimitDefinition = {
|
|
18
|
-
keyword: Object.keys(KWDs),
|
|
19
|
-
type: "string",
|
|
20
|
-
schemaType: "string",
|
|
21
|
-
$data: true,
|
|
22
|
-
error,
|
|
23
|
-
code(cxt) {
|
|
24
|
-
const { gen, data, schemaCode, keyword, it } = cxt;
|
|
25
|
-
const { opts, self } = it;
|
|
26
|
-
if (!opts.validateFormats)
|
|
27
|
-
return;
|
|
28
|
-
const fCxt = new ajv_1.KeywordCxt(it, self.RULES.all.format.definition, "format");
|
|
29
|
-
if (fCxt.$data)
|
|
30
|
-
validate$DataFormat();
|
|
31
|
-
else
|
|
32
|
-
validateFormat();
|
|
33
|
-
function validate$DataFormat() {
|
|
34
|
-
const fmts = gen.scopeValue("formats", {
|
|
35
|
-
ref: self.formats,
|
|
36
|
-
code: opts.code.formats,
|
|
37
|
-
});
|
|
38
|
-
const fmt = gen.const("fmt", (0, codegen_1._) `${fmts}[${fCxt.schemaCode}]`);
|
|
39
|
-
cxt.fail$data((0, codegen_1.or)((0, codegen_1._) `typeof ${fmt} != "object"`, (0, codegen_1._) `${fmt} instanceof RegExp`, (0, codegen_1._) `typeof ${fmt}.compare != "function"`, compareCode(fmt)));
|
|
40
|
-
}
|
|
41
|
-
function validateFormat() {
|
|
42
|
-
const format = fCxt.schema;
|
|
43
|
-
const fmtDef = self.formats[format];
|
|
44
|
-
if (!fmtDef || fmtDef === true)
|
|
45
|
-
return;
|
|
46
|
-
if (typeof fmtDef != "object" ||
|
|
47
|
-
fmtDef instanceof RegExp ||
|
|
48
|
-
typeof fmtDef.compare != "function") {
|
|
49
|
-
throw new Error(`"${keyword}": format "${format}" does not define "compare" function`);
|
|
50
|
-
}
|
|
51
|
-
const fmt = gen.scopeValue("formats", {
|
|
52
|
-
key: format,
|
|
53
|
-
ref: fmtDef,
|
|
54
|
-
code: opts.code.formats ? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(format)}` : undefined,
|
|
55
|
-
});
|
|
56
|
-
cxt.fail$data(compareCode(fmt));
|
|
57
|
-
}
|
|
58
|
-
function compareCode(fmt) {
|
|
59
|
-
return (0, codegen_1._) `${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword].fail} 0`;
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
dependencies: ["format"],
|
|
63
|
-
};
|
|
64
|
-
const formatLimitPlugin = (ajv) => {
|
|
65
|
-
ajv.addKeyword(exports.formatLimitDefinition);
|
|
66
|
-
return ajv;
|
|
67
|
-
};
|
|
68
|
-
exports.default = formatLimitPlugin;
|
|
69
|
-
//# sourceMappingURL=limit.js.map
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ajv-formats",
|
|
3
|
-
"version": "3.0.1",
|
|
4
|
-
"description": "Format validation for Ajv v7+",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"src/",
|
|
9
|
-
"dist/"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "tsc",
|
|
13
|
-
"prettier:write": "prettier --write \"./**/*.{md,json,yaml,js,ts}\"",
|
|
14
|
-
"prettier:check": "prettier --list-different \"./**/*.{md,json,yaml,js,ts}\"",
|
|
15
|
-
"eslint": "eslint --ext .ts ./src/**/*",
|
|
16
|
-
"test-spec": "jest",
|
|
17
|
-
"test-cov": "jest --coverage",
|
|
18
|
-
"test": "npm run prettier:check && npm run build && npm run eslint && npm run test-cov",
|
|
19
|
-
"ci-test": "npm run test"
|
|
20
|
-
},
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/ajv-validator/ajv-formats.git"
|
|
24
|
-
},
|
|
25
|
-
"keywords": [
|
|
26
|
-
"Ajv",
|
|
27
|
-
"JSON-Schema",
|
|
28
|
-
"format",
|
|
29
|
-
"validation"
|
|
30
|
-
],
|
|
31
|
-
"author": "Evgeny Poberezkin",
|
|
32
|
-
"license": "MIT",
|
|
33
|
-
"bugs": {
|
|
34
|
-
"url": "https://github.com/ajv-validator/ajv-formats/issues"
|
|
35
|
-
},
|
|
36
|
-
"homepage": "https://github.com/ajv-validator/ajv-formats#readme",
|
|
37
|
-
"dependencies": {
|
|
38
|
-
"ajv": "^8.0.0"
|
|
39
|
-
},
|
|
40
|
-
"peerDependencies": {
|
|
41
|
-
"ajv": "^8.0.0"
|
|
42
|
-
},
|
|
43
|
-
"peerDependenciesMeta": {
|
|
44
|
-
"ajv": {
|
|
45
|
-
"optional": true
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"@ajv-validator/config": "^0.3.0",
|
|
50
|
-
"@types/jest": "^26.0.5",
|
|
51
|
-
"@types/node": "^14.10.1",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "^3.7.0",
|
|
53
|
-
"@typescript-eslint/parser": "^3.7.0",
|
|
54
|
-
"ajv": "^8.0.0",
|
|
55
|
-
"eslint": "^7.5.0",
|
|
56
|
-
"eslint-config-prettier": "^6.11.0",
|
|
57
|
-
"husky": "^4.2.5",
|
|
58
|
-
"jest": "^26.1.0",
|
|
59
|
-
"json-schema-test": "^2.0.0",
|
|
60
|
-
"lint-staged": "^10.2.11",
|
|
61
|
-
"prettier": "^2.3.2",
|
|
62
|
-
"ts-jest": "^26.1.3",
|
|
63
|
-
"typescript": "^4.0.0"
|
|
64
|
-
},
|
|
65
|
-
"prettier": "@ajv-validator/config/prettierrc.json",
|
|
66
|
-
"husky": {
|
|
67
|
-
"hooks": {
|
|
68
|
-
"pre-commit": "lint-staged && npm test"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"lint-staged": {
|
|
72
|
-
"*.{md,json,yaml,js,ts}": "prettier --write"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import * as tty from "tty"
|
|
2
|
-
|
|
3
|
-
const env = process.env
|
|
4
|
-
|
|
5
|
-
const isDisabled = "NO_COLOR" in env
|
|
6
|
-
const isForced = "FORCE_COLOR" in env
|
|
7
|
-
const isWindows = process.platform === "win32"
|
|
8
|
-
|
|
9
|
-
const isCompatibleTerminal =
|
|
10
|
-
tty && tty.isatty(1) && env.TERM && env.TERM !== "dumb"
|
|
11
|
-
|
|
12
|
-
const isCI =
|
|
13
|
-
"CI" in env &&
|
|
14
|
-
("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env)
|
|
15
|
-
|
|
16
|
-
let enabled =
|
|
17
|
-
!isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI)
|
|
18
|
-
|
|
19
|
-
const raw = (open, close, searchRegex, replaceValue) => (s) =>
|
|
20
|
-
enabled
|
|
21
|
-
? open +
|
|
22
|
-
(~(s += "").indexOf(close, 4) // skip opening \x1b[
|
|
23
|
-
? s.replace(searchRegex, replaceValue)
|
|
24
|
-
: s) +
|
|
25
|
-
close
|
|
26
|
-
: s
|
|
27
|
-
|
|
28
|
-
const init = (open, close) => {
|
|
29
|
-
return raw(
|
|
30
|
-
`\x1b[${open}m`,
|
|
31
|
-
`\x1b[${close}m`,
|
|
32
|
-
new RegExp(`\\x1b\\[${close}m`, "g"),
|
|
33
|
-
`\x1b[${open}m`
|
|
34
|
-
)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export const options = Object.defineProperty({}, "enabled", {
|
|
38
|
-
get: () => enabled,
|
|
39
|
-
set: (value) => (enabled = value),
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
export const reset = init(0, 0)
|
|
43
|
-
export const bold = raw("\x1b[1m", "\x1b[22m", /\x1b\[22m/g, "\x1b[22m\x1b[1m")
|
|
44
|
-
export const dim = raw("\x1b[2m", "\x1b[22m", /\x1b\[22m/g, "\x1b[22m\x1b[2m")
|
|
45
|
-
export const italic = init(3, 23)
|
|
46
|
-
export const underline = init(4, 24)
|
|
47
|
-
export const inverse = init(7, 27)
|
|
48
|
-
export const hidden = init(8, 28)
|
|
49
|
-
export const strikethrough = init(9, 29)
|
|
50
|
-
export const black = init(30, 39)
|
|
51
|
-
export const red = init(31, 39)
|
|
52
|
-
export const green = init(32, 39)
|
|
53
|
-
export const yellow = init(33, 39)
|
|
54
|
-
export const blue = init(34, 39)
|
|
55
|
-
export const magenta = init(35, 39)
|
|
56
|
-
export const cyan = init(36, 39)
|
|
57
|
-
export const white = init(37, 39)
|
|
58
|
-
export const gray = init(90, 39)
|
|
59
|
-
export const bgBlack = init(40, 49)
|
|
60
|
-
export const bgRed = init(41, 49)
|
|
61
|
-
export const bgGreen = init(42, 49)
|
|
62
|
-
export const bgYellow = init(43, 49)
|
|
63
|
-
export const bgBlue = init(44, 49)
|
|
64
|
-
export const bgMagenta = init(45, 49)
|
|
65
|
-
export const bgCyan = init(46, 49)
|
|
66
|
-
export const bgWhite = init(47, 49)
|
|
67
|
-
export const blackBright = init(90, 39)
|
|
68
|
-
export const redBright = init(91, 39)
|
|
69
|
-
export const greenBright = init(92, 39)
|
|
70
|
-
export const yellowBright = init(93, 39)
|
|
71
|
-
export const blueBright = init(94, 39)
|
|
72
|
-
export const magentaBright = init(95, 39)
|
|
73
|
-
export const cyanBright = init(96, 39)
|
|
74
|
-
export const whiteBright = init(97, 39)
|
|
75
|
-
export const bgBlackBright = init(100, 49)
|
|
76
|
-
export const bgRedBright = init(101, 49)
|
|
77
|
-
export const bgGreenBright = init(102, 49)
|
|
78
|
-
export const bgYellowBright = init(103, 49)
|
|
79
|
-
export const bgBlueBright = init(104, 49)
|
|
80
|
-
export const bgMagentaBright = init(105, 49)
|
|
81
|
-
export const bgCyanBright = init(106, 49)
|
|
82
|
-
export const bgWhiteBright = init(107, 49)
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "colorette",
|
|
3
|
-
"version": "1.4.0",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "index.cjs",
|
|
6
|
-
"module": "index.js",
|
|
7
|
-
"types": "index.d.ts",
|
|
8
|
-
"description": "Easily set the text color and style in the terminal.",
|
|
9
|
-
"repository": "jorgebucaran/colorette",
|
|
10
|
-
"license": "MIT",
|
|
11
|
-
"exports": {
|
|
12
|
-
"./package.json": "./package.json",
|
|
13
|
-
".": {
|
|
14
|
-
"require": "./index.cjs",
|
|
15
|
-
"import": "./index.js"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"*.*(c)[tj]s*"
|
|
20
|
-
],
|
|
21
|
-
"author": "Jorge Bucaran",
|
|
22
|
-
"keywords": [
|
|
23
|
-
"terminal",
|
|
24
|
-
"styles",
|
|
25
|
-
"color",
|
|
26
|
-
"ansi"
|
|
27
|
-
],
|
|
28
|
-
"scripts": {
|
|
29
|
-
"test": "c8 twist tests/*.js",
|
|
30
|
-
"build": "node -e \"fs.writeFileSync('index.cjs', fs.readFileSync('index.js', 'utf8').replace(/export const /g, 'exports.').replace(/import \\* as ([^ ]+) from \\\"(.+)\\\"/, 'const \\$1 = require(\\\"\\$2\\\")'), 'utf8')\"",
|
|
31
|
-
"deploy": "npm test && git commit --all --message $tag && git tag --sign $tag --message $tag && git push && git push --tags",
|
|
32
|
-
"release": "tag=$npm_package_version npm run deploy && npm publish --access public",
|
|
33
|
-
"prepare": "npm run build"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"c8": "*",
|
|
37
|
-
"twist": "*"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
module.exports = (function()
|
|
3
|
-
{
|
|
4
|
-
function _min(d0, d1, d2, bx, ay)
|
|
5
|
-
{
|
|
6
|
-
return d0 < d1 || d2 < d1
|
|
7
|
-
? d0 > d2
|
|
8
|
-
? d2 + 1
|
|
9
|
-
: d0 + 1
|
|
10
|
-
: bx === ay
|
|
11
|
-
? d1
|
|
12
|
-
: d1 + 1;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return function(a, b)
|
|
16
|
-
{
|
|
17
|
-
if (a === b) {
|
|
18
|
-
return 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (a.length > b.length) {
|
|
22
|
-
var tmp = a;
|
|
23
|
-
a = b;
|
|
24
|
-
b = tmp;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var la = a.length;
|
|
28
|
-
var lb = b.length;
|
|
29
|
-
|
|
30
|
-
while (la > 0 && (a.charCodeAt(la - 1) === b.charCodeAt(lb - 1))) {
|
|
31
|
-
la--;
|
|
32
|
-
lb--;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
var offset = 0;
|
|
36
|
-
|
|
37
|
-
while (offset < la && (a.charCodeAt(offset) === b.charCodeAt(offset))) {
|
|
38
|
-
offset++;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
la -= offset;
|
|
42
|
-
lb -= offset;
|
|
43
|
-
|
|
44
|
-
if (la === 0 || lb < 3) {
|
|
45
|
-
return lb;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
var x = 0;
|
|
49
|
-
var y;
|
|
50
|
-
var d0;
|
|
51
|
-
var d1;
|
|
52
|
-
var d2;
|
|
53
|
-
var d3;
|
|
54
|
-
var dd;
|
|
55
|
-
var dy;
|
|
56
|
-
var ay;
|
|
57
|
-
var bx0;
|
|
58
|
-
var bx1;
|
|
59
|
-
var bx2;
|
|
60
|
-
var bx3;
|
|
61
|
-
|
|
62
|
-
var vector = [];
|
|
63
|
-
|
|
64
|
-
for (y = 0; y < la; y++) {
|
|
65
|
-
vector.push(y + 1);
|
|
66
|
-
vector.push(a.charCodeAt(offset + y));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
var len = vector.length - 1;
|
|
70
|
-
|
|
71
|
-
for (; x < lb - 3;) {
|
|
72
|
-
bx0 = b.charCodeAt(offset + (d0 = x));
|
|
73
|
-
bx1 = b.charCodeAt(offset + (d1 = x + 1));
|
|
74
|
-
bx2 = b.charCodeAt(offset + (d2 = x + 2));
|
|
75
|
-
bx3 = b.charCodeAt(offset + (d3 = x + 3));
|
|
76
|
-
dd = (x += 4);
|
|
77
|
-
for (y = 0; y < len; y += 2) {
|
|
78
|
-
dy = vector[y];
|
|
79
|
-
ay = vector[y + 1];
|
|
80
|
-
d0 = _min(dy, d0, d1, bx0, ay);
|
|
81
|
-
d1 = _min(d0, d1, d2, bx1, ay);
|
|
82
|
-
d2 = _min(d1, d2, d3, bx2, ay);
|
|
83
|
-
dd = _min(d2, d3, dd, bx3, ay);
|
|
84
|
-
vector[y] = dd;
|
|
85
|
-
d3 = d2;
|
|
86
|
-
d2 = d1;
|
|
87
|
-
d1 = d0;
|
|
88
|
-
d0 = dy;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
for (; x < lb;) {
|
|
93
|
-
bx0 = b.charCodeAt(offset + (d0 = x));
|
|
94
|
-
dd = ++x;
|
|
95
|
-
for (y = 0; y < len; y += 2) {
|
|
96
|
-
dy = vector[y];
|
|
97
|
-
vector[y] = dd = _min(dy, d0, dd, bx0, vector[y + 1]);
|
|
98
|
-
d0 = dy;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return dd;
|
|
103
|
-
};
|
|
104
|
-
})();
|
|
105
|
-
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "js-levenshtein",
|
|
3
|
-
"version": "1.1.6",
|
|
4
|
-
"description": "The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "gustf/js-levenshtein",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Gustaf Andersson",
|
|
9
|
-
"email": "gustaf@me.com"
|
|
10
|
-
},
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=0.10.0"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"test": "ava",
|
|
16
|
-
"bench": "matcha bench.js"
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"index.js"
|
|
20
|
-
],
|
|
21
|
-
"keywords": [
|
|
22
|
-
"levenshtein",
|
|
23
|
-
"distance",
|
|
24
|
-
"algorithm",
|
|
25
|
-
"algo",
|
|
26
|
-
"string",
|
|
27
|
-
"difference",
|
|
28
|
-
"diff",
|
|
29
|
-
"fast",
|
|
30
|
-
"fuzzy",
|
|
31
|
-
"similar",
|
|
32
|
-
"similarity",
|
|
33
|
-
"compare",
|
|
34
|
-
"comparison",
|
|
35
|
-
"edit",
|
|
36
|
-
"text",
|
|
37
|
-
"match",
|
|
38
|
-
"matching"
|
|
39
|
-
],
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"ava": "^0.25.0",
|
|
42
|
-
"fast-levenshtein": "^2.0.6",
|
|
43
|
-
"levenshtein-edit-distance": "^2.0.3",
|
|
44
|
-
"matcha": "^0.7.0",
|
|
45
|
-
"talisman": "^0.21.0",
|
|
46
|
-
"leven": "^2.1.0",
|
|
47
|
-
"xo": "^0.23.0"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const pico = require('./lib/picomatch');
|
|
4
|
-
const utils = require('./lib/utils');
|
|
5
|
-
|
|
6
|
-
function picomatch(glob, options, returnState = false) {
|
|
7
|
-
// default to os.platform()
|
|
8
|
-
if (options && (options.windows === null || options.windows === undefined)) {
|
|
9
|
-
// don't mutate the original options object
|
|
10
|
-
options = { ...options, windows: utils.isWindows() };
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return pico(glob, options, returnState);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
Object.assign(picomatch, pico);
|
|
17
|
-
module.exports = picomatch;
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const WIN_SLASH = '\\\\/';
|
|
4
|
-
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Posix glob regex
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
const DOT_LITERAL = '\\.';
|
|
11
|
-
const PLUS_LITERAL = '\\+';
|
|
12
|
-
const QMARK_LITERAL = '\\?';
|
|
13
|
-
const SLASH_LITERAL = '\\/';
|
|
14
|
-
const ONE_CHAR = '(?=.)';
|
|
15
|
-
const QMARK = '[^/]';
|
|
16
|
-
const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
|
|
17
|
-
const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
|
|
18
|
-
const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
|
|
19
|
-
const NO_DOT = `(?!${DOT_LITERAL})`;
|
|
20
|
-
const NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
|
|
21
|
-
const NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
|
|
22
|
-
const NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
|
|
23
|
-
const QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
|
|
24
|
-
const STAR = `${QMARK}*?`;
|
|
25
|
-
const SEP = '/';
|
|
26
|
-
|
|
27
|
-
const POSIX_CHARS = {
|
|
28
|
-
DOT_LITERAL,
|
|
29
|
-
PLUS_LITERAL,
|
|
30
|
-
QMARK_LITERAL,
|
|
31
|
-
SLASH_LITERAL,
|
|
32
|
-
ONE_CHAR,
|
|
33
|
-
QMARK,
|
|
34
|
-
END_ANCHOR,
|
|
35
|
-
DOTS_SLASH,
|
|
36
|
-
NO_DOT,
|
|
37
|
-
NO_DOTS,
|
|
38
|
-
NO_DOT_SLASH,
|
|
39
|
-
NO_DOTS_SLASH,
|
|
40
|
-
QMARK_NO_DOT,
|
|
41
|
-
STAR,
|
|
42
|
-
START_ANCHOR,
|
|
43
|
-
SEP
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Windows glob regex
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
const WINDOWS_CHARS = {
|
|
51
|
-
...POSIX_CHARS,
|
|
52
|
-
|
|
53
|
-
SLASH_LITERAL: `[${WIN_SLASH}]`,
|
|
54
|
-
QMARK: WIN_NO_SLASH,
|
|
55
|
-
STAR: `${WIN_NO_SLASH}*?`,
|
|
56
|
-
DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
|
|
57
|
-
NO_DOT: `(?!${DOT_LITERAL})`,
|
|
58
|
-
NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
|
|
59
|
-
NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
|
|
60
|
-
NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
|
|
61
|
-
QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
|
|
62
|
-
START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
|
|
63
|
-
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
|
|
64
|
-
SEP: '\\'
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* POSIX Bracket Regex
|
|
69
|
-
*/
|
|
70
|
-
|
|
71
|
-
const POSIX_REGEX_SOURCE = {
|
|
72
|
-
alnum: 'a-zA-Z0-9',
|
|
73
|
-
alpha: 'a-zA-Z',
|
|
74
|
-
ascii: '\\x00-\\x7F',
|
|
75
|
-
blank: ' \\t',
|
|
76
|
-
cntrl: '\\x00-\\x1F\\x7F',
|
|
77
|
-
digit: '0-9',
|
|
78
|
-
graph: '\\x21-\\x7E',
|
|
79
|
-
lower: 'a-z',
|
|
80
|
-
print: '\\x20-\\x7E ',
|
|
81
|
-
punct: '\\-!"#$%&\'()\\*+,./:;<=>?@[\\]^_`{|}~',
|
|
82
|
-
space: ' \\t\\r\\n\\v\\f',
|
|
83
|
-
upper: 'A-Z',
|
|
84
|
-
word: 'A-Za-z0-9_',
|
|
85
|
-
xdigit: 'A-Fa-f0-9'
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
module.exports = {
|
|
89
|
-
MAX_LENGTH: 1024 * 64,
|
|
90
|
-
POSIX_REGEX_SOURCE,
|
|
91
|
-
|
|
92
|
-
// regular expressions
|
|
93
|
-
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
94
|
-
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
95
|
-
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
|
|
96
|
-
REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
|
|
97
|
-
REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
|
|
98
|
-
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
99
|
-
|
|
100
|
-
// Replace globs with equivalent patterns to reduce parsing time.
|
|
101
|
-
REPLACEMENTS: {
|
|
102
|
-
__proto__: null,
|
|
103
|
-
'***': '*',
|
|
104
|
-
'**/**': '**',
|
|
105
|
-
'**/**/**': '**'
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
// Digits
|
|
109
|
-
CHAR_0: 48, /* 0 */
|
|
110
|
-
CHAR_9: 57, /* 9 */
|
|
111
|
-
|
|
112
|
-
// Alphabet chars.
|
|
113
|
-
CHAR_UPPERCASE_A: 65, /* A */
|
|
114
|
-
CHAR_LOWERCASE_A: 97, /* a */
|
|
115
|
-
CHAR_UPPERCASE_Z: 90, /* Z */
|
|
116
|
-
CHAR_LOWERCASE_Z: 122, /* z */
|
|
117
|
-
|
|
118
|
-
CHAR_LEFT_PARENTHESES: 40, /* ( */
|
|
119
|
-
CHAR_RIGHT_PARENTHESES: 41, /* ) */
|
|
120
|
-
|
|
121
|
-
CHAR_ASTERISK: 42, /* * */
|
|
122
|
-
|
|
123
|
-
// Non-alphabetic chars.
|
|
124
|
-
CHAR_AMPERSAND: 38, /* & */
|
|
125
|
-
CHAR_AT: 64, /* @ */
|
|
126
|
-
CHAR_BACKWARD_SLASH: 92, /* \ */
|
|
127
|
-
CHAR_CARRIAGE_RETURN: 13, /* \r */
|
|
128
|
-
CHAR_CIRCUMFLEX_ACCENT: 94, /* ^ */
|
|
129
|
-
CHAR_COLON: 58, /* : */
|
|
130
|
-
CHAR_COMMA: 44, /* , */
|
|
131
|
-
CHAR_DOT: 46, /* . */
|
|
132
|
-
CHAR_DOUBLE_QUOTE: 34, /* " */
|
|
133
|
-
CHAR_EQUAL: 61, /* = */
|
|
134
|
-
CHAR_EXCLAMATION_MARK: 33, /* ! */
|
|
135
|
-
CHAR_FORM_FEED: 12, /* \f */
|
|
136
|
-
CHAR_FORWARD_SLASH: 47, /* / */
|
|
137
|
-
CHAR_GRAVE_ACCENT: 96, /* ` */
|
|
138
|
-
CHAR_HASH: 35, /* # */
|
|
139
|
-
CHAR_HYPHEN_MINUS: 45, /* - */
|
|
140
|
-
CHAR_LEFT_ANGLE_BRACKET: 60, /* < */
|
|
141
|
-
CHAR_LEFT_CURLY_BRACE: 123, /* { */
|
|
142
|
-
CHAR_LEFT_SQUARE_BRACKET: 91, /* [ */
|
|
143
|
-
CHAR_LINE_FEED: 10, /* \n */
|
|
144
|
-
CHAR_NO_BREAK_SPACE: 160, /* \u00A0 */
|
|
145
|
-
CHAR_PERCENT: 37, /* % */
|
|
146
|
-
CHAR_PLUS: 43, /* + */
|
|
147
|
-
CHAR_QUESTION_MARK: 63, /* ? */
|
|
148
|
-
CHAR_RIGHT_ANGLE_BRACKET: 62, /* > */
|
|
149
|
-
CHAR_RIGHT_CURLY_BRACE: 125, /* } */
|
|
150
|
-
CHAR_RIGHT_SQUARE_BRACKET: 93, /* ] */
|
|
151
|
-
CHAR_SEMICOLON: 59, /* ; */
|
|
152
|
-
CHAR_SINGLE_QUOTE: 39, /* ' */
|
|
153
|
-
CHAR_SPACE: 32, /* */
|
|
154
|
-
CHAR_TAB: 9, /* \t */
|
|
155
|
-
CHAR_UNDERSCORE: 95, /* _ */
|
|
156
|
-
CHAR_VERTICAL_LINE: 124, /* | */
|
|
157
|
-
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, /* \uFEFF */
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Create EXTGLOB_CHARS
|
|
161
|
-
*/
|
|
162
|
-
|
|
163
|
-
extglobChars(chars) {
|
|
164
|
-
return {
|
|
165
|
-
'!': { type: 'negate', open: '(?:(?!(?:', close: `))${chars.STAR})` },
|
|
166
|
-
'?': { type: 'qmark', open: '(?:', close: ')?' },
|
|
167
|
-
'+': { type: 'plus', open: '(?:', close: ')+' },
|
|
168
|
-
'*': { type: 'star', open: '(?:', close: ')*' },
|
|
169
|
-
'@': { type: 'at', open: '(?:', close: ')' }
|
|
170
|
-
};
|
|
171
|
-
},
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Create GLOB_CHARS
|
|
175
|
-
*/
|
|
176
|
-
|
|
177
|
-
globChars(win32) {
|
|
178
|
-
return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
|
|
179
|
-
}
|
|
180
|
-
};
|