@skmtc/core 0.18.1 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/esm/anchors/ParserAdapter.d.ts +22 -3
- package/esm/anchors/ParserAdapter.d.ts.map +1 -1
- package/esm/anchors/attribute.d.ts.map +1 -1
- package/esm/anchors/buildSidecar.d.ts.map +1 -1
- package/esm/anchors/buildSidecar.js +1 -1
- package/esm/anchors/generationMap.d.ts.map +1 -1
- package/esm/anchors/postPass.d.ts +1 -1
- package/esm/anchors/postPass.js +1 -1
- package/esm/anchors/sidecar.d.ts +2 -2
- package/esm/anchors/sidecar.js +1 -1
- package/esm/context/CoreContext.d.ts +7 -1
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +17 -11
- package/esm/context/GenerateContext.d.ts +25 -4
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +159 -76
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseIssue.d.ts +1 -1
- package/esm/context/RenderContext.d.ts +2 -6
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +4 -14
- package/esm/context/generateTypes.d.ts +35 -8
- package/esm/context/generateTypes.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/fs/1.0.23 → esm/deps/jsr.io/@std/fs/1.0.24}/exists.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.14/_os.js +14 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.1.6/extname.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.1.6/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.6/extname.js +31 -0
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts +42 -0
- package/esm/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.6/posix/extname.js +98 -0
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/posix/join.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/posix/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.6/windows/extname.js +83 -0
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/join.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.js +1 -1
- package/esm/dsl/CodeFileBase.d.ts +57 -24
- package/esm/dsl/CodeFileBase.d.ts.map +1 -1
- package/esm/dsl/CodeFileBase.js +35 -53
- package/esm/dsl/FileBase.d.ts +21 -25
- package/esm/dsl/FileBase.d.ts.map +1 -1
- package/esm/dsl/FileBase.js +20 -29
- package/esm/dsl/GeneratorKeys.d.ts +19 -19
- package/esm/dsl/GeneratorKeys.d.ts.map +1 -1
- package/esm/dsl/GeneratorKeys.js +6 -5
- package/esm/dsl/IdentifierBase.d.ts +19 -5
- package/esm/dsl/IdentifierBase.d.ts.map +1 -1
- package/esm/dsl/IdentifierBase.js +21 -5
- package/esm/dsl/IdentifierType.d.ts +8 -14
- package/esm/dsl/IdentifierType.d.ts.map +1 -1
- package/esm/dsl/Lang.d.ts +18 -38
- package/esm/dsl/Lang.d.ts.map +1 -1
- package/esm/dsl/MarkdownFile.d.ts +55 -0
- package/esm/dsl/MarkdownFile.d.ts.map +1 -0
- package/esm/dsl/MarkdownFile.js +58 -0
- package/esm/dsl/model/ModelDriver.d.ts +3 -1
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.js +6 -8
- package/esm/dsl/model/toModelEntry.d.ts +21 -17
- package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
- package/esm/dsl/model/toModelEntry.js +3 -27
- package/esm/dsl/model/toModelProjectionBase.d.ts +15 -15
- package/esm/dsl/model/toModelProjectionBase.d.ts.map +1 -1
- package/esm/dsl/model/types.d.ts +2 -52
- package/esm/dsl/model/types.d.ts.map +1 -1
- package/esm/dsl/operation/gql/GqlOperationDriver.d.ts +3 -1
- package/esm/dsl/operation/gql/GqlOperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/gql/GqlOperationDriver.js +12 -9
- package/esm/dsl/operation/gql/toGqlOperationEntry.d.ts +20 -15
- package/esm/dsl/operation/gql/toGqlOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/gql/toGqlOperationEntry.js +3 -25
- package/esm/dsl/operation/gql/toGqlOperationProjectionBase.d.ts +11 -10
- package/esm/dsl/operation/gql/toGqlOperationProjectionBase.d.ts.map +1 -1
- package/esm/dsl/operation/gql/toGqlOperationProjectionBase.js +7 -1
- package/esm/dsl/operation/gql/types.d.ts +1 -33
- package/esm/dsl/operation/gql/types.d.ts.map +1 -1
- package/esm/dsl/operation/oas/OasOperationDriver.d.ts +3 -1
- package/esm/dsl/operation/oas/OasOperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/oas/OasOperationDriver.js +12 -9
- package/esm/dsl/operation/oas/toOasOperationEntry.d.ts +21 -17
- package/esm/dsl/operation/oas/toOasOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/oas/toOasOperationEntry.js +3 -32
- package/esm/dsl/operation/oas/toOasOperationProjectionBase.d.ts +11 -10
- package/esm/dsl/operation/oas/toOasOperationProjectionBase.d.ts.map +1 -1
- package/esm/dsl/operation/oas/types.d.ts +1 -43
- package/esm/dsl/operation/oas/types.d.ts.map +1 -1
- package/esm/dsl/webhook/WebhookDriver.d.ts +3 -1
- package/esm/dsl/webhook/WebhookDriver.d.ts.map +1 -1
- package/esm/dsl/webhook/WebhookDriver.js +12 -9
- package/esm/dsl/webhook/toWebhookEntry.d.ts +21 -16
- package/esm/dsl/webhook/toWebhookEntry.d.ts.map +1 -1
- package/esm/dsl/webhook/toWebhookEntry.js +3 -32
- package/esm/dsl/webhook/toWebhookProjectionBase.d.ts +11 -10
- package/esm/dsl/webhook/toWebhookProjectionBase.d.ts.map +1 -1
- package/esm/dsl/webhook/types.d.ts +1 -36
- package/esm/dsl/webhook/types.d.ts.map +1 -1
- package/esm/enrichments/toEnrichmentDescriptor.d.ts +72 -27
- package/esm/enrichments/toEnrichmentDescriptor.d.ts.map +1 -1
- package/esm/enrichments/toEnrichmentDescriptor.js +57 -31
- package/esm/enrichments/validateConfig.d.ts +1 -1
- package/esm/enrichments/validateConfig.d.ts.map +1 -1
- package/esm/enrichments/validateConfig.js +2 -2
- package/esm/gql/_helpers/unwrapType.d.ts.map +1 -1
- package/esm/gql/enum/toEnumType.d.ts.map +1 -1
- package/esm/gql/field/toFieldSchema.d.ts.map +1 -1
- package/esm/gql/input/toInputType.d.ts.map +1 -1
- package/esm/gql/interface/toInterfaceUnion.d.ts.map +1 -1
- package/esm/gql/object/toObjectType.d.ts.map +1 -1
- package/esm/gql/operation/toRootField.d.ts.map +1 -1
- package/esm/gql/union/toUnionType.d.ts.map +1 -1
- package/esm/helpers/applyGeneratedSuffix.d.ts +43 -0
- package/esm/helpers/applyGeneratedSuffix.d.ts.map +1 -0
- package/esm/helpers/applyGeneratedSuffix.js +79 -0
- package/esm/helpers/isImported.js +1 -1
- package/esm/helpers/strings.d.ts.map +1 -1
- package/esm/helpers/toResolvedArtifactPath.js +1 -1
- package/esm/mod.d.ts +8 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +8 -1
- package/esm/oas/array/Array.d.ts +2 -0
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +4 -0
- package/esm/oas/boolean/Boolean.d.ts +3 -1
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +4 -0
- package/esm/oas/components/Components.d.ts +5 -0
- package/esm/oas/components/Components.d.ts.map +1 -1
- package/esm/oas/components/Components.js +6 -1
- package/esm/oas/document/Document.d.ts.map +1 -1
- package/esm/oas/integer/Integer.d.ts +3 -1
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +4 -0
- package/esm/oas/link/Link.d.ts +68 -0
- package/esm/oas/link/Link.d.ts.map +1 -0
- package/esm/oas/link/Link.js +107 -0
- package/esm/oas/number/Number.d.ts +3 -1
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +4 -0
- package/esm/oas/object/Object.d.ts +9 -0
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +14 -0
- package/esm/oas/operation/Operation.d.ts +15 -0
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +33 -0
- package/esm/oas/ref/Ref.d.ts +23 -1
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +32 -0
- package/esm/oas/ref/ref-types.d.ts +18 -1
- package/esm/oas/ref/ref-types.d.ts.map +1 -1
- package/esm/oas/ref/ref-types.js +12 -1
- package/esm/oas/response/Response.d.ts +4 -0
- package/esm/oas/response/Response.d.ts.map +1 -1
- package/esm/oas/response/Response.js +7 -0
- package/esm/oas/schemaPath/traverseSchema.d.ts +31 -0
- package/esm/oas/schemaPath/traverseSchema.d.ts.map +1 -0
- package/esm/oas/schemaPath/traverseSchema.js +115 -0
- package/esm/oas/string/String.d.ts +3 -1
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +4 -0
- package/esm/oas/union/Union.d.ts +9 -0
- package/esm/oas/union/Union.d.ts.map +1 -1
- package/esm/oas/union/Union.js +14 -0
- package/esm/oas/unknown/Unknown.d.ts +3 -1
- package/esm/oas/unknown/Unknown.d.ts.map +1 -1
- package/esm/oas/unknown/Unknown.js +4 -0
- package/esm/parse/v3-0/array/toArray.d.ts.map +1 -1
- package/esm/parse/v3-0/boolean/toBoolean.d.ts.map +1 -1
- package/esm/parse/v3-0/components/toComponentsV3.d.ts.map +1 -1
- package/esm/parse/v3-0/components/toComponentsV3.js +3 -1
- package/esm/parse/v3-0/integer/toInteger.d.ts.map +1 -1
- package/esm/parse/v3-0/link/toLinksV3.d.ts +17 -0
- package/esm/parse/v3-0/link/toLinksV3.d.ts.map +1 -0
- package/esm/parse/v3-0/link/toLinksV3.js +40 -0
- package/esm/parse/v3-0/object/toObject.d.ts.map +1 -1
- package/esm/parse/v3-0/object/toObject.js +3 -1
- package/esm/parse/v3-0/operation/toOperationsV3.d.ts.map +1 -1
- package/esm/parse/v3-0/ref/toRefV31.d.ts.map +1 -1
- package/esm/parse/v3-0/response/toResponseV3.d.ts.map +1 -1
- package/esm/parse/v3-0/response/toResponseV3.js +4 -1
- package/esm/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/parse/v3-0/schema/toSchemasV3.js +7 -1
- package/esm/parse/v3-0/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/esm/parse/v3-0/string/toString.d.ts.map +1 -1
- package/esm/parse/v3-0/union/toUnion.d.ts.map +1 -1
- package/esm/parse/v3-0/union/toUnion.js +3 -1
- package/esm/parse/v3-0/unknown/toUnknown.d.ts.map +1 -1
- package/esm/parse/v3-0/webhook/toWebhooksV3.d.ts.map +1 -1
- package/esm/parse/v3-1/array/toArray.d.ts.map +1 -1
- package/esm/parse/v3-1/boolean/toBoolean.d.ts.map +1 -1
- package/esm/parse/v3-1/components/toComponentsV3.d.ts.map +1 -1
- package/esm/parse/v3-1/components/toComponentsV3.js +3 -1
- package/esm/parse/v3-1/integer/toInteger.d.ts.map +1 -1
- package/esm/parse/v3-1/link/toLinksV3.d.ts +17 -0
- package/esm/parse/v3-1/link/toLinksV3.d.ts.map +1 -0
- package/esm/parse/v3-1/link/toLinksV3.js +40 -0
- package/esm/parse/v3-1/object/toObject.d.ts.map +1 -1
- package/esm/parse/v3-1/object/toObject.js +3 -1
- package/esm/parse/v3-1/operation/toOperationsV3.d.ts.map +1 -1
- package/esm/parse/v3-1/ref/toRefV31.d.ts.map +1 -1
- package/esm/parse/v3-1/response/toResponseV3.d.ts.map +1 -1
- package/esm/parse/v3-1/response/toResponseV3.js +4 -1
- package/esm/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/parse/v3-1/schema/toSchemasV3.js +7 -1
- package/esm/parse/v3-1/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/esm/parse/v3-1/string/toString.d.ts.map +1 -1
- package/esm/parse/v3-1/union/toUnion.d.ts.map +1 -1
- package/esm/parse/v3-1/union/toUnion.js +3 -1
- package/esm/parse/v3-1/unknown/toUnknown.d.ts.map +1 -1
- package/esm/parse/v3-1/webhook/toWebhooksV3.d.ts.map +1 -1
- package/esm/run/toArtifacts.d.ts +8 -1
- package/esm/run/toArtifacts.d.ts.map +1 -1
- package/esm/run/toArtifacts.js +5 -5
- package/esm/run/toInspection.d.ts +8 -0
- package/esm/run/toInspection.d.ts.map +1 -0
- package/esm/run/toInspection.js +78 -0
- package/esm/types/Enrichments.d.ts +19 -8
- package/esm/types/Enrichments.d.ts.map +1 -1
- package/esm/types/Enrichments.js +4 -3
- package/esm/types/GeneratorType.d.ts +5 -5
- package/esm/types/GeneratorType.d.ts.map +1 -1
- package/esm/types/Manifest.d.ts +9 -2
- package/esm/types/Manifest.d.ts.map +1 -1
- package/esm/types/Manifest.js +3 -3
- package/esm/types/ModuleSelect.d.ts +81 -0
- package/esm/types/ModuleSelect.d.ts.map +1 -0
- package/esm/types/ModuleSelect.js +63 -0
- package/esm/types/Preview.d.ts +4 -27
- package/esm/types/Preview.d.ts.map +1 -1
- package/esm/types/Preview.js +4 -25
- package/esm/types/SchemaPath.d.ts +17 -0
- package/esm/types/SchemaPath.d.ts.map +1 -0
- package/esm/types/SchemaPath.js +9 -0
- package/esm/types/Settings.d.ts +45 -3
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +16 -20
- package/esm/types/SkmtcDocument.d.ts +1 -1
- package/esm/types/SupportedSubjects.d.ts +1 -1
- package/package.json +1 -1
- package/script/anchors/ParserAdapter.d.ts +22 -3
- package/script/anchors/ParserAdapter.d.ts.map +1 -1
- package/script/anchors/attribute.d.ts.map +1 -1
- package/script/anchors/buildSidecar.d.ts.map +1 -1
- package/script/anchors/buildSidecar.js +1 -1
- package/script/anchors/generationMap.d.ts.map +1 -1
- package/script/anchors/postPass.d.ts +1 -1
- package/script/anchors/postPass.js +1 -1
- package/script/anchors/sidecar.d.ts +2 -2
- package/script/anchors/sidecar.js +1 -1
- package/script/context/CoreContext.d.ts +7 -1
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +17 -11
- package/script/context/GenerateContext.d.ts +25 -4
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +159 -76
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseIssue.d.ts +1 -1
- package/script/context/RenderContext.d.ts +2 -6
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +4 -14
- package/script/context/generateTypes.d.ts +35 -8
- package/script/context/generateTypes.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/fs/1.0.23 → script/deps/jsr.io/@std/fs/1.0.24}/exists.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.js +7 -5
- package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.js +1 -1
- package/script/deps/jsr.io/@std/path/1.1.6/extname.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.1.6/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.6/extname.js +34 -0
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.js +2 -2
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.js +2 -2
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.js +1 -1
- package/script/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts +42 -0
- package/script/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.6/posix/extname.js +101 -0
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/posix/join.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/posix/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.js +1 -1
- package/script/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.6/windows/extname.js +86 -0
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/join.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.js +1 -1
- package/script/dsl/CodeFileBase.d.ts +57 -24
- package/script/dsl/CodeFileBase.d.ts.map +1 -1
- package/script/dsl/CodeFileBase.js +37 -54
- package/script/dsl/FileBase.d.ts +21 -25
- package/script/dsl/FileBase.d.ts.map +1 -1
- package/script/dsl/FileBase.js +20 -29
- package/script/dsl/GeneratorKeys.d.ts +19 -19
- package/script/dsl/GeneratorKeys.d.ts.map +1 -1
- package/script/dsl/GeneratorKeys.js +6 -5
- package/script/dsl/IdentifierBase.d.ts +19 -5
- package/script/dsl/IdentifierBase.d.ts.map +1 -1
- package/script/dsl/IdentifierBase.js +21 -5
- package/script/dsl/IdentifierType.d.ts +8 -14
- package/script/dsl/IdentifierType.d.ts.map +1 -1
- package/script/dsl/Lang.d.ts +18 -38
- package/script/dsl/Lang.d.ts.map +1 -1
- package/script/dsl/MarkdownFile.d.ts +55 -0
- package/script/dsl/MarkdownFile.d.ts.map +1 -0
- package/script/dsl/MarkdownFile.js +62 -0
- package/script/dsl/model/ModelDriver.d.ts +3 -1
- package/script/dsl/model/ModelDriver.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.js +6 -8
- package/script/dsl/model/toModelEntry.d.ts +21 -17
- package/script/dsl/model/toModelEntry.d.ts.map +1 -1
- package/script/dsl/model/toModelEntry.js +3 -63
- package/script/dsl/model/toModelProjectionBase.d.ts +15 -15
- package/script/dsl/model/toModelProjectionBase.d.ts.map +1 -1
- package/script/dsl/model/types.d.ts +2 -52
- package/script/dsl/model/types.d.ts.map +1 -1
- package/script/dsl/operation/gql/GqlOperationDriver.d.ts +3 -1
- package/script/dsl/operation/gql/GqlOperationDriver.d.ts.map +1 -1
- package/script/dsl/operation/gql/GqlOperationDriver.js +12 -9
- package/script/dsl/operation/gql/toGqlOperationEntry.d.ts +20 -15
- package/script/dsl/operation/gql/toGqlOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/gql/toGqlOperationEntry.js +3 -61
- package/script/dsl/operation/gql/toGqlOperationProjectionBase.d.ts +11 -10
- package/script/dsl/operation/gql/toGqlOperationProjectionBase.d.ts.map +1 -1
- package/script/dsl/operation/gql/toGqlOperationProjectionBase.js +7 -1
- package/script/dsl/operation/gql/types.d.ts +1 -33
- package/script/dsl/operation/gql/types.d.ts.map +1 -1
- package/script/dsl/operation/oas/OasOperationDriver.d.ts +3 -1
- package/script/dsl/operation/oas/OasOperationDriver.d.ts.map +1 -1
- package/script/dsl/operation/oas/OasOperationDriver.js +12 -9
- package/script/dsl/operation/oas/toOasOperationEntry.d.ts +21 -17
- package/script/dsl/operation/oas/toOasOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/oas/toOasOperationEntry.js +3 -68
- package/script/dsl/operation/oas/toOasOperationProjectionBase.d.ts +11 -10
- package/script/dsl/operation/oas/toOasOperationProjectionBase.d.ts.map +1 -1
- package/script/dsl/operation/oas/types.d.ts +1 -43
- package/script/dsl/operation/oas/types.d.ts.map +1 -1
- package/script/dsl/webhook/WebhookDriver.d.ts +3 -1
- package/script/dsl/webhook/WebhookDriver.d.ts.map +1 -1
- package/script/dsl/webhook/WebhookDriver.js +12 -9
- package/script/dsl/webhook/toWebhookEntry.d.ts +21 -16
- package/script/dsl/webhook/toWebhookEntry.d.ts.map +1 -1
- package/script/dsl/webhook/toWebhookEntry.js +3 -68
- package/script/dsl/webhook/toWebhookProjectionBase.d.ts +11 -10
- package/script/dsl/webhook/toWebhookProjectionBase.d.ts.map +1 -1
- package/script/dsl/webhook/types.d.ts +1 -36
- package/script/dsl/webhook/types.d.ts.map +1 -1
- package/script/enrichments/toEnrichmentDescriptor.d.ts +72 -27
- package/script/enrichments/toEnrichmentDescriptor.d.ts.map +1 -1
- package/script/enrichments/toEnrichmentDescriptor.js +57 -31
- package/script/enrichments/validateConfig.d.ts +1 -1
- package/script/enrichments/validateConfig.d.ts.map +1 -1
- package/script/enrichments/validateConfig.js +2 -2
- package/script/gql/_helpers/unwrapType.d.ts.map +1 -1
- package/script/gql/enum/toEnumType.d.ts.map +1 -1
- package/script/gql/field/toFieldSchema.d.ts.map +1 -1
- package/script/gql/input/toInputType.d.ts.map +1 -1
- package/script/gql/interface/toInterfaceUnion.d.ts.map +1 -1
- package/script/gql/object/toObjectType.d.ts.map +1 -1
- package/script/gql/operation/toRootField.d.ts.map +1 -1
- package/script/gql/union/toUnionType.d.ts.map +1 -1
- package/script/helpers/applyGeneratedSuffix.d.ts +43 -0
- package/script/helpers/applyGeneratedSuffix.d.ts.map +1 -0
- package/script/helpers/applyGeneratedSuffix.js +84 -0
- package/script/helpers/isImported.js +1 -1
- package/script/helpers/strings.d.ts.map +1 -1
- package/script/helpers/toResolvedArtifactPath.js +1 -1
- package/script/mod.d.ts +8 -1
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +8 -1
- package/script/oas/array/Array.d.ts +2 -0
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +4 -0
- package/script/oas/boolean/Boolean.d.ts +3 -1
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +4 -0
- package/script/oas/components/Components.d.ts +5 -0
- package/script/oas/components/Components.d.ts.map +1 -1
- package/script/oas/components/Components.js +6 -1
- package/script/oas/document/Document.d.ts.map +1 -1
- package/script/oas/integer/Integer.d.ts +3 -1
- package/script/oas/integer/Integer.d.ts.map +1 -1
- package/script/oas/integer/Integer.js +4 -0
- package/script/oas/link/Link.d.ts +68 -0
- package/script/oas/link/Link.d.ts.map +1 -0
- package/script/oas/link/Link.js +111 -0
- package/script/oas/number/Number.d.ts +3 -1
- package/script/oas/number/Number.d.ts.map +1 -1
- package/script/oas/number/Number.js +4 -0
- package/script/oas/object/Object.d.ts +9 -0
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +14 -0
- package/script/oas/operation/Operation.d.ts +15 -0
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +33 -0
- package/script/oas/ref/Ref.d.ts +23 -1
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +32 -0
- package/script/oas/ref/ref-types.d.ts +18 -1
- package/script/oas/ref/ref-types.d.ts.map +1 -1
- package/script/oas/ref/ref-types.js +13 -2
- package/script/oas/response/Response.d.ts +4 -0
- package/script/oas/response/Response.d.ts.map +1 -1
- package/script/oas/response/Response.js +7 -0
- package/script/oas/schemaPath/traverseSchema.d.ts +31 -0
- package/script/oas/schemaPath/traverseSchema.d.ts.map +1 -0
- package/script/oas/schemaPath/traverseSchema.js +119 -0
- package/script/oas/string/String.d.ts +3 -1
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/String.js +4 -0
- package/script/oas/union/Union.d.ts +9 -0
- package/script/oas/union/Union.d.ts.map +1 -1
- package/script/oas/union/Union.js +14 -0
- package/script/oas/unknown/Unknown.d.ts +3 -1
- package/script/oas/unknown/Unknown.d.ts.map +1 -1
- package/script/oas/unknown/Unknown.js +4 -0
- package/script/parse/v3-0/array/toArray.d.ts.map +1 -1
- package/script/parse/v3-0/boolean/toBoolean.d.ts.map +1 -1
- package/script/parse/v3-0/components/toComponentsV3.d.ts.map +1 -1
- package/script/parse/v3-0/components/toComponentsV3.js +3 -1
- package/script/parse/v3-0/integer/toInteger.d.ts.map +1 -1
- package/script/parse/v3-0/link/toLinksV3.d.ts +17 -0
- package/script/parse/v3-0/link/toLinksV3.d.ts.map +1 -0
- package/script/parse/v3-0/link/toLinksV3.js +44 -0
- package/script/parse/v3-0/object/toObject.d.ts.map +1 -1
- package/script/parse/v3-0/object/toObject.js +3 -1
- package/script/parse/v3-0/operation/toOperationsV3.d.ts.map +1 -1
- package/script/parse/v3-0/ref/toRefV31.d.ts.map +1 -1
- package/script/parse/v3-0/response/toResponseV3.d.ts.map +1 -1
- package/script/parse/v3-0/response/toResponseV3.js +4 -1
- package/script/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -1
- package/script/parse/v3-0/schema/toSchemasV3.js +7 -1
- package/script/parse/v3-0/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/script/parse/v3-0/string/toString.d.ts.map +1 -1
- package/script/parse/v3-0/union/toUnion.d.ts.map +1 -1
- package/script/parse/v3-0/union/toUnion.js +3 -1
- package/script/parse/v3-0/unknown/toUnknown.d.ts.map +1 -1
- package/script/parse/v3-0/webhook/toWebhooksV3.d.ts.map +1 -1
- package/script/parse/v3-1/array/toArray.d.ts.map +1 -1
- package/script/parse/v3-1/boolean/toBoolean.d.ts.map +1 -1
- package/script/parse/v3-1/components/toComponentsV3.d.ts.map +1 -1
- package/script/parse/v3-1/components/toComponentsV3.js +3 -1
- package/script/parse/v3-1/integer/toInteger.d.ts.map +1 -1
- package/script/parse/v3-1/link/toLinksV3.d.ts +17 -0
- package/script/parse/v3-1/link/toLinksV3.d.ts.map +1 -0
- package/script/parse/v3-1/link/toLinksV3.js +44 -0
- package/script/parse/v3-1/object/toObject.d.ts.map +1 -1
- package/script/parse/v3-1/object/toObject.js +3 -1
- package/script/parse/v3-1/operation/toOperationsV3.d.ts.map +1 -1
- package/script/parse/v3-1/ref/toRefV31.d.ts.map +1 -1
- package/script/parse/v3-1/response/toResponseV3.d.ts.map +1 -1
- package/script/parse/v3-1/response/toResponseV3.js +4 -1
- package/script/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -1
- package/script/parse/v3-1/schema/toSchemasV3.js +7 -1
- package/script/parse/v3-1/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/script/parse/v3-1/string/toString.d.ts.map +1 -1
- package/script/parse/v3-1/union/toUnion.d.ts.map +1 -1
- package/script/parse/v3-1/union/toUnion.js +3 -1
- package/script/parse/v3-1/unknown/toUnknown.d.ts.map +1 -1
- package/script/parse/v3-1/webhook/toWebhooksV3.d.ts.map +1 -1
- package/script/run/toArtifacts.d.ts +8 -1
- package/script/run/toArtifacts.d.ts.map +1 -1
- package/script/run/toArtifacts.js +5 -5
- package/script/run/toInspection.d.ts +8 -0
- package/script/run/toInspection.d.ts.map +1 -0
- package/script/run/toInspection.js +82 -0
- package/script/types/Enrichments.d.ts +19 -8
- package/script/types/Enrichments.d.ts.map +1 -1
- package/script/types/Enrichments.js +5 -4
- package/script/types/GeneratorType.d.ts +5 -5
- package/script/types/GeneratorType.d.ts.map +1 -1
- package/script/types/Manifest.d.ts +9 -2
- package/script/types/Manifest.d.ts.map +1 -1
- package/script/types/Manifest.js +2 -2
- package/script/types/ModuleSelect.d.ts +81 -0
- package/script/types/ModuleSelect.d.ts.map +1 -0
- package/script/types/ModuleSelect.js +101 -0
- package/script/types/Preview.d.ts +4 -27
- package/script/types/Preview.d.ts.map +1 -1
- package/script/types/Preview.js +5 -26
- package/script/types/SchemaPath.d.ts +17 -0
- package/script/types/SchemaPath.d.ts.map +1 -0
- package/script/types/{AccessorPath.js → SchemaPath.js} +7 -7
- package/script/types/Settings.d.ts +45 -3
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +13 -17
- package/script/types/SkmtcDocument.d.ts +1 -1
- package/script/types/SupportedSubjects.d.ts +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.13/_os.js +0 -12
- package/esm/types/AccessorPath.d.ts +0 -17
- package/esm/types/AccessorPath.d.ts.map +0 -1
- package/esm/types/AccessorPath.js +0 -9
- package/script/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +0 -1
- package/script/types/AccessorPath.d.ts +0 -17
- package/script/types/AccessorPath.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.d.ts +0 -0
- /package/script/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import type { ManifestEntry } from '../types/Manifest.js';
|
|
3
3
|
import type { ParseIssue } from './ParseIssue.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { Preview } from '../types/Preview.js';
|
|
5
5
|
import type { ResultsItem } from '../types/Results.js';
|
|
6
6
|
import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from 'openapi-types';
|
|
7
7
|
import type { GeneratedValue } from '../dsl/GeneratedValue.js';
|
|
@@ -21,6 +21,7 @@ import type { SchemaToNonRef, TypeSystemOutput } from '../types/TypeSystem.js';
|
|
|
21
21
|
import type { FileBase } from '../dsl/FileBase.js';
|
|
22
22
|
import type { ImportBase } from '../dsl/ImportBase.js';
|
|
23
23
|
import type { ReExportBase } from '../dsl/ReExportBase.js';
|
|
24
|
+
import type { Stringable } from '../dsl/Stringable.js';
|
|
24
25
|
import type { ClientSettings } from '../types/Settings.js';
|
|
25
26
|
import type { StackTrail } from './StackTrail.js';
|
|
26
27
|
import type { GqlOperationProjection } from '../dsl/operation/gql/types.js';
|
|
@@ -150,8 +151,6 @@ export type RenderResult = {
|
|
|
150
151
|
files: Record<string, ManifestEntry>;
|
|
151
152
|
/** Preview data for generated content */
|
|
152
153
|
previews: Record<string, Preview>;
|
|
153
|
-
/** Mapping data for file relationships */
|
|
154
|
-
mappings: Record<string, Mapping>;
|
|
155
154
|
/** Hierarchical results tracking */
|
|
156
155
|
results: ResultsItem;
|
|
157
156
|
};
|
|
@@ -177,6 +176,14 @@ export type ToArtifactsResult = RenderResult & {
|
|
|
177
176
|
* X?"). Populated only when `attribution.postPass` was configured.
|
|
178
177
|
*/
|
|
179
178
|
generationMap?: GenerationMapEntry[];
|
|
179
|
+
/**
|
|
180
|
+
* Cycle-safe, depth-bounded JSON serialization of the live
|
|
181
|
+
* `inspectedFiles` graph (the real `Definition` / `Snippet` object tree,
|
|
182
|
+
* not the rendered text). Populated only when `inspect: true` was set on
|
|
183
|
+
* `ToArtifactsArgs`; otherwise omitted. Consumed by `skmtc inspect` and
|
|
184
|
+
* the VS Code debugger views.
|
|
185
|
+
*/
|
|
186
|
+
inspection?: unknown;
|
|
180
187
|
};
|
|
181
188
|
/**
|
|
182
189
|
* Union type representing any supported OpenAPI document version.
|
|
@@ -201,7 +208,6 @@ export declare const oasIssueType: v.UnionSchema<[v.LiteralSchema<"UNEXPECTED_PR
|
|
|
201
208
|
export type GenerateResult = {
|
|
202
209
|
files: Map<string, FileBase>;
|
|
203
210
|
previews: Record<string, Preview>;
|
|
204
|
-
mappings: Record<string, Mapping>;
|
|
205
211
|
};
|
|
206
212
|
/**
|
|
207
213
|
* Arguments for registering a JSON file in the generation context.
|
|
@@ -215,6 +221,18 @@ export type RegisterJsonArgs = {
|
|
|
215
221
|
/** The JSON object to write to the file */
|
|
216
222
|
json: Record<string, unknown>;
|
|
217
223
|
};
|
|
224
|
+
/**
|
|
225
|
+
* Arguments for {@link GenerateContextType.registerMarkdown}.
|
|
226
|
+
*
|
|
227
|
+
* Used to register a Markdown document — operation docs, a README — that should
|
|
228
|
+
* be included in the generated output artifacts.
|
|
229
|
+
*/
|
|
230
|
+
export type RegisterMarkdownArgs = {
|
|
231
|
+
/** The destination file path where the Markdown should be written */
|
|
232
|
+
destinationPath: string;
|
|
233
|
+
/** The Markdown content to write to the file */
|
|
234
|
+
markdown: Stringable;
|
|
235
|
+
};
|
|
218
236
|
/**
|
|
219
237
|
* The neutral arguments the engine's `context.register` speaks — **pure
|
|
220
238
|
* data**, already standardised into language objects. `imports` are
|
|
@@ -232,6 +250,12 @@ export type ContextRegisterArgs = {
|
|
|
232
250
|
reExports?: ReExportBase[];
|
|
233
251
|
/** Definition objects to include in the destination file. */
|
|
234
252
|
definitions?: (DefinitionBase | undefined)[];
|
|
253
|
+
/**
|
|
254
|
+
* Free-form content set on the destination file's neutral `custom` slot
|
|
255
|
+
* ({@link FileBase.custom}) — a codegen banner on a code file, or the
|
|
256
|
+
* body of an ad-hoc non-code file. Last non-`undefined` write wins.
|
|
257
|
+
*/
|
|
258
|
+
custom?: Stringable;
|
|
235
259
|
/** The destination file path. */
|
|
236
260
|
destinationPath: string;
|
|
237
261
|
};
|
|
@@ -312,7 +336,7 @@ export type BuildModelSettingsArgs<V extends GeneratedValue, EnrichmentType = un
|
|
|
312
336
|
* Driver into the projection's static methods and the
|
|
313
337
|
* {@link ContentSettings} built for this insertion.
|
|
314
338
|
*/
|
|
315
|
-
variant
|
|
339
|
+
variant?: string;
|
|
316
340
|
};
|
|
317
341
|
/**
|
|
318
342
|
* Arguments for generating OAS operation content settings.
|
|
@@ -329,7 +353,7 @@ export type ToOasOperationSettingsArgs<V extends GeneratedValue, EnrichmentType
|
|
|
329
353
|
* Driver into the projection's static methods and the
|
|
330
354
|
* {@link ContentSettings} built for this insertion.
|
|
331
355
|
*/
|
|
332
|
-
variant
|
|
356
|
+
variant?: string;
|
|
333
357
|
};
|
|
334
358
|
/**
|
|
335
359
|
* Arguments for generating GraphQL operation content settings.
|
|
@@ -344,7 +368,7 @@ export type ToGqlOperationSettingsArgs<V extends GeneratedValue, EnrichmentType
|
|
|
344
368
|
* Operation variant whose enrichment / identifier / export path
|
|
345
369
|
* should be resolved (see {@link Variant}).
|
|
346
370
|
*/
|
|
347
|
-
variant
|
|
371
|
+
variant?: string;
|
|
348
372
|
};
|
|
349
373
|
/**
|
|
350
374
|
* Arguments accepted by `GenerateContext.toOperationContentSettings`.
|
|
@@ -368,7 +392,7 @@ export type ToWebhookSettingsArgs<V extends GeneratedValue, EnrichmentType = und
|
|
|
368
392
|
* projection's static methods and the {@link ContentSettings} built for
|
|
369
393
|
* this insertion.
|
|
370
394
|
*/
|
|
371
|
-
variant
|
|
395
|
+
variant?: string;
|
|
372
396
|
};
|
|
373
397
|
/**
|
|
374
398
|
* Return type for inserting a normalized model.
|
|
@@ -404,9 +428,12 @@ export type GenerateContextType = {
|
|
|
404
428
|
captureSink: CaptureSink | undefined;
|
|
405
429
|
toArtifacts: (stackTrail: StackTrail) => GenerateResult;
|
|
406
430
|
registerJson: ({ destinationPath, json }: RegisterJsonArgs) => void;
|
|
431
|
+
registerMarkdown: ({ destinationPath, markdown }: RegisterMarkdownArgs) => void;
|
|
407
432
|
register: (args: ContextRegisterArgs) => void;
|
|
408
433
|
/** Look up an existing file by path (no creation); the neutral read primitive. */
|
|
409
434
|
getFile: (filePath: string) => FileBase | undefined;
|
|
435
|
+
/** Read-only view of every file generated so far — an inspection/tooling seam (not coordination). */
|
|
436
|
+
inspectedFiles: ReadonlyMap<string, FileBase>;
|
|
410
437
|
/** Store a language-constructed file; the neutral write primitive. */
|
|
411
438
|
addFile: (file: FileBase) => void;
|
|
412
439
|
insertOperation: <V extends GeneratedValue, EnrichmentType = undefined>(args: InsertOperationArgs<V, EnrichmentType>) => Inserted<V, EnrichmentType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateTypes.d.ts","sourceRoot":"","sources":["../../src/context/generateTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"generateTypes.d.ts","sourceRoot":"","sources":["../../src/context/generateTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,C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C,CAAC,EAAE,cAAc,CAAC,KAAK,eAAe,CAAC,cAAc,CAAC,CAAA;IAC/E,sBAAsB,EAAE,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,EAAE,EACjE,OAAO,EACP,UAAU,EACV,OAAO,EACR,EAAE,sBAAsB,CAAC,CAAC,EAAE,cAAc,CAAC,KAAK,eAAe,CAAC,cAAc,CAAC,CAAA;IAChF,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IAC7F,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,QAAQ,KAAK,cAAc,GAAG,SAAS,CAAA;CAC/E,CAAA"}
|
package/{script/deps/jsr.io/@std/fs/1.0.23 → esm/deps/jsr.io/@std/fs/1.0.24}/exists.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.24/exists.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AACH,wBAAsB,MAAM,CAC1B,IAAI,EAAE,MAAM,GAAG,GAAG,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,OAAO,CAAC,CAsClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GAAG,GAAG,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAqCT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.14/_os.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,IAAI,OAAO,CAUtC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
|
+
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
3
|
+
export function checkWindows() {
|
|
4
|
+
// deno-lint-ignore no-explicit-any
|
|
5
|
+
const global = dntShim.dntGlobalThis;
|
|
6
|
+
// Check Node/Bun/Deno via `process.platform`, then the Deno global, then the browser
|
|
7
|
+
const platform = global.process?.platform;
|
|
8
|
+
if (typeof platform === "string")
|
|
9
|
+
return platform.startsWith("win");
|
|
10
|
+
const os = global.Deno?.build?.os;
|
|
11
|
+
if (typeof os === "string")
|
|
12
|
+
return os === "windows";
|
|
13
|
+
return global.navigator?.platform?.startsWith("Win") ?? false;
|
|
14
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
|
1
|
+
{"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.14/os.ts"],"names":[],"mappings":"AAKA,8CAA8C;AAC9C,eAAO,MAAM,SAAS,EAAE,OAAwB,CAAC"}
|
|
@@ -12,7 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
var _RotatingFileHandler_maxBytes, _RotatingFileHandler_maxBackupCount, _RotatingFileHandler_currentFileSize;
|
|
13
13
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
14
14
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
15
|
-
import { existsSync } from "../../fs/1.0.
|
|
15
|
+
import { existsSync } from "../../fs/1.0.24/exists.js";
|
|
16
16
|
import { FileHandler } from "./file_handler.js";
|
|
17
17
|
import { encoderSymbol, filenameSymbol, fileSymbol, modeSymbol, openOptionsSymbol, } from "./_file_handler_symbols.js";
|
|
18
18
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert_path.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"assert_path.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/_common/assert_path.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,QAMvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/_common/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAGpC,eAAO,MAAM,QAAQ,KAAK,CAAC;AAC3B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,eAAe,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":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/_common/from_file_url.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,OAQ1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/_common/normalize.ts"],"names":[],"mappings":"AAKA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,mBAGrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize_string.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"normalize_string.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/_common/normalize_string.ts"],"names":[],"mappings":"AAQA,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,OAAO,EACvB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GACzC,MAAM,CA4DR"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the extension of the path with leading period (".").
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { extname } from "@std/path/extname";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* if (Deno.build.os === "windows") {
|
|
10
|
+
* assertEquals(extname("C:\\home\\user\\Documents\\image.png"), ".png");
|
|
11
|
+
* assertEquals(extname(new URL("file:///C:/home/user/Documents/image.png")), ".png");
|
|
12
|
+
* } else {
|
|
13
|
+
* assertEquals(extname("/home/user/Documents/image.png"), ".png");
|
|
14
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/image.png")), ".png");
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @param path Path with extension. When passed as a `URL` instance, its
|
|
19
|
+
* protocol must be `file:`. For other protocols, pass the URL as a string or
|
|
20
|
+
* pass its `pathname` property.
|
|
21
|
+
* @returns The file extension. E.g. returns `.ts` for `file.ts`.
|
|
22
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function extname(path: string | URL): string;
|
|
25
|
+
//# sourceMappingURL=extname.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.6/extname.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAElD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { isWindows } from "../../internal/1.0.14/os.js";
|
|
4
|
+
import { extname as posixExtname } from "./posix/extname.js";
|
|
5
|
+
import { extname as windowsExtname } from "./windows/extname.js";
|
|
6
|
+
/**
|
|
7
|
+
* Return the extension of the path with leading period (".").
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { extname } from "@std/path/extname";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* if (Deno.build.os === "windows") {
|
|
15
|
+
* assertEquals(extname("C:\\home\\user\\Documents\\image.png"), ".png");
|
|
16
|
+
* assertEquals(extname(new URL("file:///C:/home/user/Documents/image.png")), ".png");
|
|
17
|
+
* } else {
|
|
18
|
+
* assertEquals(extname("/home/user/Documents/image.png"), ".png");
|
|
19
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/image.png")), ".png");
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @param path Path with extension. When passed as a `URL` instance, its
|
|
24
|
+
* protocol must be `file:`. For other protocols, pass the URL as a string or
|
|
25
|
+
* pass its `pathname` property.
|
|
26
|
+
* @returns The file extension. E.g. returns `.ts` for `file.ts`.
|
|
27
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
28
|
+
*/
|
|
29
|
+
export function extname(path) {
|
|
30
|
+
return isWindows ? windowsExtname(path) : posixExtname(path);
|
|
31
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.6/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAEnE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "../../internal/1.0.
|
|
3
|
+
import { isWindows } from "../../internal/1.0.14/os.js";
|
|
4
4
|
import { join as posixJoin } from "./posix/join.js";
|
|
5
5
|
import { join as windowsJoin } from "./windows/join.js";
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.6/normalize.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAEpD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "../../internal/1.0.
|
|
3
|
+
import { isWindows } from "../../internal/1.0.14/os.js";
|
|
4
4
|
import { normalize as posixNormalize } from "./posix/normalize.js";
|
|
5
5
|
import { normalize as windowsNormalize } from "./windows/normalize.js";
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/posix/_util.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the extension of the `path` with leading period.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { extname } from "@std/path/posix/extname";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
|
|
10
|
+
* assertEquals(extname("/home/user/Documents/"), "");
|
|
11
|
+
* assertEquals(extname("/home/user/Documents/image.png"), ".png");
|
|
12
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts")), ".ts");
|
|
13
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts?a=b")), ".ts");
|
|
14
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts#header")), ".ts");
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @example Working with URLs
|
|
18
|
+
*
|
|
19
|
+
* Only `URL` instances with the `file:` protocol are accepted. To process a
|
|
20
|
+
* non-`file:` URL, pass it as a string or pass its `pathname` property.
|
|
21
|
+
*
|
|
22
|
+
* Note: This function doesn't automatically strip hash and query parts from
|
|
23
|
+
* URLs. If your URL contains a hash or query, remove them before passing the
|
|
24
|
+
* URL to the function. This can be done by passing the URL to `new URL(url)`,
|
|
25
|
+
* and setting the `hash` and `search` properties to empty strings.
|
|
26
|
+
*
|
|
27
|
+
* ```ts
|
|
28
|
+
* import { extname } from "@std/path/posix/extname";
|
|
29
|
+
* import { assertEquals } from "@std/assert";
|
|
30
|
+
*
|
|
31
|
+
* assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts");
|
|
32
|
+
* assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b");
|
|
33
|
+
* assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
|
|
34
|
+
* assertEquals(extname(new URL("https://deno.land/std/path/mod.ts").pathname), ".ts");
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @param path The path to get the extension from.
|
|
38
|
+
* @returns The extension (ex. for `file.ts` returns `.ts`).
|
|
39
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
40
|
+
*/
|
|
41
|
+
export declare function extname(path: string | URL): string;
|
|
42
|
+
//# sourceMappingURL=extname.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/posix/extname.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAoDlD"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { CHAR_DOT } from "../_common/constants.js";
|
|
4
|
+
import { assertPath } from "../_common/assert_path.js";
|
|
5
|
+
import { isPosixPathSeparator } from "./_util.js";
|
|
6
|
+
import { fromFileUrl } from "./from_file_url.js";
|
|
7
|
+
/**
|
|
8
|
+
* Return the extension of the `path` with leading period.
|
|
9
|
+
*
|
|
10
|
+
* @example Usage
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { extname } from "@std/path/posix/extname";
|
|
13
|
+
* import { assertEquals } from "@std/assert";
|
|
14
|
+
*
|
|
15
|
+
* assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
|
|
16
|
+
* assertEquals(extname("/home/user/Documents/"), "");
|
|
17
|
+
* assertEquals(extname("/home/user/Documents/image.png"), ".png");
|
|
18
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts")), ".ts");
|
|
19
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts?a=b")), ".ts");
|
|
20
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts#header")), ".ts");
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example Working with URLs
|
|
24
|
+
*
|
|
25
|
+
* Only `URL` instances with the `file:` protocol are accepted. To process a
|
|
26
|
+
* non-`file:` URL, pass it as a string or pass its `pathname` property.
|
|
27
|
+
*
|
|
28
|
+
* Note: This function doesn't automatically strip hash and query parts from
|
|
29
|
+
* URLs. If your URL contains a hash or query, remove them before passing the
|
|
30
|
+
* URL to the function. This can be done by passing the URL to `new URL(url)`,
|
|
31
|
+
* and setting the `hash` and `search` properties to empty strings.
|
|
32
|
+
*
|
|
33
|
+
* ```ts
|
|
34
|
+
* import { extname } from "@std/path/posix/extname";
|
|
35
|
+
* import { assertEquals } from "@std/assert";
|
|
36
|
+
*
|
|
37
|
+
* assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts");
|
|
38
|
+
* assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b");
|
|
39
|
+
* assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
|
|
40
|
+
* assertEquals(extname(new URL("https://deno.land/std/path/mod.ts").pathname), ".ts");
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @param path The path to get the extension from.
|
|
44
|
+
* @returns The extension (ex. for `file.ts` returns `.ts`).
|
|
45
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
46
|
+
*/
|
|
47
|
+
export function extname(path) {
|
|
48
|
+
if (path instanceof URL) {
|
|
49
|
+
path = fromFileUrl(path);
|
|
50
|
+
}
|
|
51
|
+
assertPath(path);
|
|
52
|
+
let startDot = -1;
|
|
53
|
+
let startPart = 0;
|
|
54
|
+
let end = -1;
|
|
55
|
+
let matchedSlash = true;
|
|
56
|
+
// Track the state of characters (if any) we see before our first dot and
|
|
57
|
+
// after any path separator we find
|
|
58
|
+
let preDotState = 0;
|
|
59
|
+
for (let i = path.length - 1; i >= 0; --i) {
|
|
60
|
+
const code = path.charCodeAt(i);
|
|
61
|
+
if (isPosixPathSeparator(code)) {
|
|
62
|
+
// If we reached a path separator that was not part of a set of path
|
|
63
|
+
// separators at the end of the string, stop now
|
|
64
|
+
if (!matchedSlash) {
|
|
65
|
+
startPart = i + 1;
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if (end === -1) {
|
|
71
|
+
// We saw the first non-path separator, mark this as the end of our
|
|
72
|
+
// extension
|
|
73
|
+
matchedSlash = false;
|
|
74
|
+
end = i + 1;
|
|
75
|
+
}
|
|
76
|
+
if (code === CHAR_DOT) {
|
|
77
|
+
// If this is our first dot, mark it as the start of our extension
|
|
78
|
+
if (startDot === -1)
|
|
79
|
+
startDot = i;
|
|
80
|
+
else if (preDotState !== 1)
|
|
81
|
+
preDotState = 1;
|
|
82
|
+
}
|
|
83
|
+
else if (startDot !== -1) {
|
|
84
|
+
// We saw a non-dot and non-path separator before our dot, so we should
|
|
85
|
+
// have a good chance at having a non-empty extension
|
|
86
|
+
preDotState = -1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
if (startDot === -1 ||
|
|
90
|
+
end === -1 ||
|
|
91
|
+
// We saw a non-dot character immediately before the dot
|
|
92
|
+
preDotState === 0 ||
|
|
93
|
+
// The (right-most) trimmed path component is exactly '..'
|
|
94
|
+
(preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
|
|
95
|
+
return "";
|
|
96
|
+
}
|
|
97
|
+
return path.slice(startDot, end);
|
|
98
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/posix/from_file_url.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAKrD"}
|
package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/posix/join.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/posix/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CASpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/posix/normalize.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAmBpD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertArg } from "../_common/normalize.js";
|
|
4
4
|
import { normalizeString } from "../_common/normalize_string.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/windows/_util.ts"],"names":[],"mappings":"AAcA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKzD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the extension of the `path` with leading period.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { extname } from "@std/path/windows/extname";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertEquals(extname("file.ts"), ".ts");
|
|
10
|
+
* assertEquals(extname(new URL("file:///C:/foo/bar/baz.ext")), ".ext");
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @param path The path to get the extension from.
|
|
14
|
+
* @returns The extension of the `path`.
|
|
15
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function extname(path: string | URL): string;
|
|
18
|
+
//# sourceMappingURL=extname.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/windows/extname.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAkElD"}
|