@halospv3/hce.shared-config 3.4.5 → 3.4.6-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/dotnet/.github/workflows/_unit_test.yml +1 -1
- package/mjs/CaseInsensitiveMap.d.mts +15 -0
- package/mjs/CaseInsensitiveMap.d.mts.map +1 -0
- package/mjs/CaseInsensitiveMap.mjs +2 -33
- package/mjs/CaseInsensitiveMap.mjs.map +1 -1
- package/mjs/commitlintConfig.d.mts +15 -0
- package/mjs/commitlintConfig.d.mts.map +1 -0
- package/mjs/commitlintConfig.mjs +2 -13
- package/mjs/commitlintConfig.mjs.map +1 -1
- package/mjs/debug.d.mts +9 -0
- package/mjs/debug.d.mts.map +1 -0
- package/mjs/debug.mjs +2 -9
- package/mjs/debug.mjs.map +1 -1
- package/mjs/dotnet/GithubNugetRegistryInfo.d.mts +42 -0
- package/mjs/dotnet/GithubNugetRegistryInfo.d.mts.map +1 -0
- package/mjs/dotnet/GithubNugetRegistryInfo.mjs +2 -43
- package/mjs/dotnet/GithubNugetRegistryInfo.mjs.map +1 -1
- package/mjs/dotnet/GitlabNugetRegistryInfo.d.mts +65 -0
- package/mjs/dotnet/GitlabNugetRegistryInfo.d.mts.map +1 -0
- package/mjs/dotnet/GitlabNugetRegistryInfo.mjs +2 -99
- package/mjs/dotnet/GitlabNugetRegistryInfo.mjs.map +1 -1
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.mts +1 -0
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.mjs +2 -44
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.mjs.map +1 -1
- package/mjs/dotnet/MSBuildProject.d.mts +267 -0
- package/mjs/dotnet/MSBuildProject.d.mts.map +1 -0
- package/mjs/dotnet/MSBuildProject.mjs +3 -490
- package/mjs/dotnet/MSBuildProject.mjs.map +1 -1
- package/mjs/dotnet/MSBuildProjectProperties.d.mts +172 -0
- package/mjs/dotnet/MSBuildProjectProperties.d.mts.map +1 -0
- package/mjs/dotnet/MSBuildProjectProperties.mjs +2 -260
- package/mjs/dotnet/MSBuildProjectProperties.mjs.map +1 -1
- package/mjs/dotnet/NugetProjectProperties.d.mts +381 -0
- package/mjs/dotnet/NugetProjectProperties.d.mts.map +1 -0
- package/mjs/dotnet/NugetProjectProperties.mjs +2 -577
- package/mjs/dotnet/NugetProjectProperties.mjs.map +1 -1
- package/mjs/dotnet/NugetRegistryInfo.d.mts +387 -0
- package/mjs/dotnet/NugetRegistryInfo.d.mts.map +1 -0
- package/mjs/dotnet/NugetRegistryInfo.mjs +4 -752
- package/mjs/dotnet/NugetRegistryInfo.mjs.map +1 -1
- package/mjs/dotnet/helpers.d.mts +66 -0
- package/mjs/dotnet/helpers.d.mts.map +1 -0
- package/mjs/dotnet/helpers.mjs +2 -354
- package/mjs/dotnet/helpers.mjs.map +1 -1
- package/mjs/dotnet/index.d.mts +8 -0
- package/mjs/dotnet/index.mjs +1 -9
- package/mjs/dotnet.d.mts +8 -0
- package/mjs/dotnet.mjs +1 -9
- package/mjs/eslintConfig.d.mts +7 -0
- package/mjs/eslintConfig.d.mts.map +1 -0
- package/mjs/eslintConfig.mjs +2 -64
- package/mjs/eslintConfig.mjs.map +1 -1
- package/mjs/index.d.mts +2 -0
- package/mjs/index.mjs +1 -4
- package/mjs/insertPlugins.d.mts +22 -0
- package/mjs/insertPlugins.d.mts.map +1 -0
- package/mjs/insertPlugins.mjs +2 -73
- package/mjs/insertPlugins.mjs.map +1 -1
- package/mjs/semantic-release__commit-analyzer.d.mts +44 -0
- package/mjs/semantic-release__commit-analyzer.d.mts.map +1 -0
- package/mjs/semantic-release__exec.d.mts +17 -0
- package/mjs/semantic-release__exec.d.mts.map +1 -0
- package/mjs/semantic-release__git.d.mts +83 -0
- package/mjs/semantic-release__git.d.mts.map +1 -0
- package/mjs/semantic-release__github.d.mts +141 -0
- package/mjs/semantic-release__github.d.mts.map +1 -0
- package/mjs/semanticReleaseConfig.d.mts +94 -0
- package/mjs/semanticReleaseConfig.d.mts.map +1 -0
- package/mjs/semanticReleaseConfig.mjs +2 -63
- package/mjs/semanticReleaseConfig.mjs.map +1 -1
- package/mjs/semanticReleaseConfigDotnet.d.mts +96 -0
- package/mjs/semanticReleaseConfigDotnet.d.mts.map +1 -0
- package/mjs/semanticReleaseConfigDotnet.mjs +7 -274
- package/mjs/semanticReleaseConfigDotnet.mjs.map +1 -1
- package/mjs/setupGitPluginSpec.d.mts +18 -0
- package/mjs/setupGitPluginSpec.d.mts.map +1 -0
- package/mjs/setupGitPluginSpec.default.d.mts +13 -0
- package/mjs/setupGitPluginSpec.default.d.mts.map +1 -0
- package/mjs/setupGitPluginSpec.default.mjs +4 -0
- package/mjs/setupGitPluginSpec.default.mjs.map +1 -0
- package/mjs/setupGitPluginSpec.mjs +2 -144
- package/mjs/setupGitPluginSpec.mjs.map +1 -1
- package/mjs/utils/Exact.d.mts +18 -0
- package/mjs/utils/Exact.d.mts.map +1 -0
- package/mjs/utils/Exact.mjs +2 -75
- package/mjs/utils/Exact.mjs.map +1 -1
- package/mjs/utils/GracefulRecursion.d.mts +14 -0
- package/mjs/utils/GracefulRecursion.d.mts.map +1 -0
- package/mjs/utils/env.d.mts +28 -0
- package/mjs/utils/env.d.mts.map +1 -0
- package/mjs/utils/env.mjs +2 -47
- package/mjs/utils/env.mjs.map +1 -1
- package/mjs/utils/execAsync.d.mts +40 -0
- package/mjs/utils/execAsync.d.mts.map +1 -0
- package/mjs/utils/execAsync.mjs +10 -59
- package/mjs/utils/execAsync.mjs.map +1 -1
- package/mjs/utils/isError.d.mts +14 -0
- package/mjs/utils/isError.d.mts.map +1 -0
- package/mjs/utils/isError.mjs +2 -19
- package/mjs/utils/isError.mjs.map +1 -1
- package/mjs/utils/miscTypes.d.mts +16 -0
- package/mjs/utils/miscTypes.d.mts.map +1 -0
- package/mjs/utils/miscTypes.mjs +2 -10
- package/mjs/utils/miscTypes.mjs.map +1 -1
- package/mjs/utils/reflection/FunctionLike.d.mts +17 -0
- package/mjs/utils/reflection/FunctionLike.d.mts.map +1 -0
- package/mjs/utils/reflection/GetterDescriptor.d.mts +11 -0
- package/mjs/utils/reflection/GetterDescriptor.d.mts.map +1 -0
- package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mts +26 -0
- package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mts.map +1 -0
- package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mts +17 -0
- package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mts.map +1 -0
- package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mts +18 -0
- package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mts.map +1 -0
- package/mjs/utils/reflection/OwnKeyOf.d.mts +15 -0
- package/mjs/utils/reflection/OwnKeyOf.d.mts.map +1 -0
- package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mts +15 -0
- package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mts.map +1 -0
- package/mjs/utils/reflection/PropertyDescriptorMap.d.mts +13 -0
- package/mjs/utils/reflection/PropertyDescriptorMap.d.mts.map +1 -0
- package/mjs/utils/reflection/filterForGetters.d.mts +11 -0
- package/mjs/utils/reflection/filterForGetters.d.mts.map +1 -0
- package/mjs/utils/reflection/filterForGetters.mjs +2 -27
- package/mjs/utils/reflection/filterForGetters.mjs.map +1 -1
- package/mjs/utils/reflection/getOwnPropertyDescriptors.d.mts +26 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptors.d.mts.map +1 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptors.mjs +2 -34
- package/mjs/utils/reflection/getOwnPropertyDescriptors.mjs.map +1 -1
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.mts +51 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.mts.map +1 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.mjs +2 -72
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.mjs.map +1 -1
- package/mjs/utils/reflection/getPrototypeChainOf.d.mts +19 -0
- package/mjs/utils/reflection/getPrototypeChainOf.d.mts.map +1 -0
- package/mjs/utils/reflection/getPrototypeChainOf.mjs +2 -55
- package/mjs/utils/reflection/getPrototypeChainOf.mjs.map +1 -1
- package/mjs/utils/reflection/getPrototypeOf.d.mts +12 -0
- package/mjs/utils/reflection/getPrototypeOf.d.mts.map +1 -0
- package/mjs/utils/reflection/getPrototypeOf.mjs +2 -10
- package/mjs/utils/reflection/getPrototypeOf.mjs.map +1 -1
- package/mjs/utils/reflection/inheritance.d.mts +173 -0
- package/mjs/utils/reflection/inheritance.d.mts.map +1 -0
- package/mjs/utils/reflection/inheritance.mjs +2 -148
- package/mjs/utils/reflection/inheritance.mjs.map +1 -1
- package/mjs/utils/reflection/isConstructor.d.mts +20 -0
- package/mjs/utils/reflection/isConstructor.d.mts.map +1 -0
- package/mjs/utils/reflection/isConstructor.mjs +2 -63
- package/mjs/utils/reflection/isConstructor.mjs.map +1 -1
- package/mjs/utils/reflection/isGetterDescriptor.d.mts +13 -0
- package/mjs/utils/reflection/isGetterDescriptor.d.mts.map +1 -0
- package/mjs/utils/reflection/isGetterDescriptor.mjs +2 -12
- package/mjs/utils/reflection/isGetterDescriptor.mjs.map +1 -1
- package/mjs/utils/reflection/listOwnGetters.d.mts +29 -0
- package/mjs/utils/reflection/listOwnGetters.d.mts.map +1 -0
- package/mjs/utils/reflection/listOwnGetters.mjs +2 -39
- package/mjs/utils/reflection/listOwnGetters.mjs.map +1 -1
- package/mjs/utils/reflection.d.mts +18 -0
- package/mjs/utils/reflection.mjs +1 -10
- package/package.json +102 -65
- package/src/debug.ts +1 -0
- package/src/dotnet/GithubNugetRegistryInfo.ts +4 -4
- package/src/dotnet/GitlabNugetRegistryInfo.ts +5 -5
- package/src/dotnet/IsNextVersionAlreadyPublished.cli.ts +2 -1
- package/src/dotnet/MSBuildProject.ts +8 -7
- package/src/dotnet/MSBuildProjectProperties.ts +4 -3
- package/src/dotnet/NugetProjectProperties.ts +4 -4
- package/src/dotnet/NugetRegistryInfo.ts +9 -8
- package/src/dotnet/helpers.ts +5 -4
- package/src/dotnet/index.ts +8 -8
- package/src/dotnet.ts +1 -1
- package/src/index.ts +1 -1
- package/src/semanticReleaseConfig.ts +5 -1
- package/src/semanticReleaseConfigDotnet.ts +10 -8
- package/src/setupGitPluginSpec.default.ts +22 -0
- package/src/setupGitPluginSpec.ts +4 -21
- package/src/tsconfig.json +1 -2
- package/src/utils/execAsync.ts +1 -1
- package/src/utils/reflection/InstancePropertyDescriptorMap.d.ts +1 -1
- package/src/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.ts +2 -2
- package/src/utils/reflection/OwnGetterDescriptorMap.d.ts +2 -2
- package/src/utils/reflection/filterForGetters.ts +5 -5
- package/src/utils/reflection/getOwnPropertyDescriptors.ts +4 -4
- package/src/utils/reflection/getOwnPropertyDescriptorsRecursively.ts +12 -12
- package/src/utils/reflection/getPrototypeChainOf.ts +5 -5
- package/src/utils/reflection/getPrototypeOf.ts +1 -1
- package/src/utils/reflection/inheritance.ts +5 -5
- package/src/utils/reflection/isGetterDescriptor.ts +1 -1
- package/src/utils/reflection/listOwnGetters.ts +6 -6
- package/src/utils/reflection.ts +17 -17
- package/tsconfig.base.json +2 -2
- package/mjs/CaseInsensitiveMap.d.ts +0 -12
- package/mjs/CaseInsensitiveMap.d.ts.map +0 -1
- package/mjs/commitlintConfig.d.ts +0 -12
- package/mjs/commitlintConfig.d.ts.map +0 -1
- package/mjs/debug.d.ts +0 -6
- package/mjs/debug.d.ts.map +0 -1
- package/mjs/dotnet/GithubNugetRegistryInfo.d.ts +0 -38
- package/mjs/dotnet/GithubNugetRegistryInfo.d.ts.map +0 -1
- package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts +0 -61
- package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts.map +0 -1
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.ts +0 -2
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.ts.map +0 -1
- package/mjs/dotnet/MSBuildProject.d.ts +0 -264
- package/mjs/dotnet/MSBuildProject.d.ts.map +0 -1
- package/mjs/dotnet/MSBuildProjectProperties.d.ts +0 -170
- package/mjs/dotnet/MSBuildProjectProperties.d.ts.map +0 -1
- package/mjs/dotnet/NugetProjectProperties.d.ts +0 -379
- package/mjs/dotnet/NugetProjectProperties.d.ts.map +0 -1
- package/mjs/dotnet/NugetRegistryInfo.d.ts +0 -384
- package/mjs/dotnet/NugetRegistryInfo.d.ts.map +0 -1
- package/mjs/dotnet/helpers.d.ts +0 -63
- package/mjs/dotnet/helpers.d.ts.map +0 -1
- package/mjs/dotnet/index.d.ts +0 -9
- package/mjs/dotnet/index.d.ts.map +0 -1
- package/mjs/dotnet/index.mjs.map +0 -1
- package/mjs/dotnet.d.ts +0 -2
- package/mjs/dotnet.d.ts.map +0 -1
- package/mjs/dotnet.mjs.map +0 -1
- package/mjs/eslintConfig.d.ts +0 -4
- package/mjs/eslintConfig.d.ts.map +0 -1
- package/mjs/index.d.ts +0 -3
- package/mjs/index.d.ts.map +0 -1
- package/mjs/index.mjs.map +0 -1
- package/mjs/insertPlugins.d.ts +0 -18
- package/mjs/insertPlugins.d.ts.map +0 -1
- package/mjs/semantic-release__commit-analyzer.d.mjs +0 -2
- package/mjs/semantic-release__commit-analyzer.d.mjs.map +0 -1
- package/mjs/semantic-release__exec.d.mjs +0 -2
- package/mjs/semantic-release__exec.d.mjs.map +0 -1
- package/mjs/semantic-release__git.d.mjs +0 -2
- package/mjs/semantic-release__git.d.mjs.map +0 -1
- package/mjs/semantic-release__github.d.mjs +0 -2
- package/mjs/semantic-release__github.d.mjs.map +0 -1
- package/mjs/semanticReleaseConfig.d.ts +0 -97
- package/mjs/semanticReleaseConfig.d.ts.map +0 -1
- package/mjs/semanticReleaseConfigDotnet.d.ts +0 -112
- package/mjs/semanticReleaseConfigDotnet.d.ts.map +0 -1
- package/mjs/setupGitPluginSpec.d.ts +0 -22
- package/mjs/setupGitPluginSpec.d.ts.map +0 -1
- package/mjs/utils/Exact.d.ts +0 -20
- package/mjs/utils/Exact.d.ts.map +0 -1
- package/mjs/utils/GracefulRecursion.d.mjs +0 -2
- package/mjs/utils/GracefulRecursion.d.mjs.map +0 -1
- package/mjs/utils/env.d.ts +0 -24
- package/mjs/utils/env.d.ts.map +0 -1
- package/mjs/utils/execAsync.d.ts +0 -37
- package/mjs/utils/execAsync.d.ts.map +0 -1
- package/mjs/utils/isError.d.ts +0 -11
- package/mjs/utils/isError.d.ts.map +0 -1
- package/mjs/utils/miscTypes.d.ts +0 -12
- package/mjs/utils/miscTypes.d.ts.map +0 -1
- package/mjs/utils/reflection/FunctionLike.d.mjs +0 -2
- package/mjs/utils/reflection/FunctionLike.d.mjs.map +0 -1
- package/mjs/utils/reflection/GetterDescriptor.d.mjs +0 -2
- package/mjs/utils/reflection/GetterDescriptor.d.mjs.map +0 -1
- package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mjs +0 -2
- package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mjs.map +0 -1
- package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mjs +0 -2
- package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mjs.map +0 -1
- package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mjs +0 -2
- package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mjs.map +0 -1
- package/mjs/utils/reflection/OwnKeyOf.d.mjs +0 -2
- package/mjs/utils/reflection/OwnKeyOf.d.mjs.map +0 -1
- package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mjs +0 -2
- package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mjs.map +0 -1
- package/mjs/utils/reflection/PropertyDescriptorMap.d.mjs +0 -2
- package/mjs/utils/reflection/PropertyDescriptorMap.d.mjs.map +0 -1
- package/mjs/utils/reflection/filterForGetters.d.ts +0 -7
- package/mjs/utils/reflection/filterForGetters.d.ts.map +0 -1
- package/mjs/utils/reflection/getOwnPropertyDescriptors.d.ts +0 -22
- package/mjs/utils/reflection/getOwnPropertyDescriptors.d.ts.map +0 -1
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.ts +0 -56
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.ts.map +0 -1
- package/mjs/utils/reflection/getPrototypeChainOf.d.ts +0 -16
- package/mjs/utils/reflection/getPrototypeChainOf.d.ts.map +0 -1
- package/mjs/utils/reflection/getPrototypeOf.d.ts +0 -8
- package/mjs/utils/reflection/getPrototypeOf.d.ts.map +0 -1
- package/mjs/utils/reflection/inheritance.d.ts +0 -180
- package/mjs/utils/reflection/inheritance.d.ts.map +0 -1
- package/mjs/utils/reflection/isConstructor.d.ts +0 -17
- package/mjs/utils/reflection/isConstructor.d.ts.map +0 -1
- package/mjs/utils/reflection/isGetterDescriptor.d.ts +0 -9
- package/mjs/utils/reflection/isGetterDescriptor.d.ts.map +0 -1
- package/mjs/utils/reflection/listOwnGetters.d.ts +0 -26
- package/mjs/utils/reflection/listOwnGetters.d.ts.map +0 -1
- package/mjs/utils/reflection.d.ts +0 -18
- package/mjs/utils/reflection.d.ts.map +0 -1
- package/mjs/utils/reflection.mjs.map +0 -1
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import type { Options as SRCommitAnalyzerOptions } from '@semantic-release/commit-analyzer';
|
|
2
|
-
import type { Options as SRExecOptions } from '@semantic-release/exec';
|
|
3
|
-
import type { Options as SRGitOptions } from '@semantic-release/git';
|
|
4
|
-
import type { Options as SRGithubOptions } from '@semantic-release/github';
|
|
5
|
-
import type { PluginSpec } from 'semantic-release';
|
|
6
|
-
import { DefaultOptions } from './setupGitPluginSpec.js';
|
|
7
|
-
export interface SRReleaseNotesGeneratorOptions {
|
|
8
|
-
/**
|
|
9
|
-
* conventional-changelog preset.
|
|
10
|
-
* @default 'angular'
|
|
11
|
-
*/
|
|
12
|
-
preset?: 'angular' | 'atom' | 'codemirror' | 'ember' | 'eslint' | 'express' | 'jquery' | 'jscs' | 'jshint' | 'conventionalcommits' | (string & Record<never, never>) | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* Requireable npm package with a custom conventional-changelog preset.
|
|
15
|
-
*/
|
|
16
|
-
config?: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Additional `conventional-changelog-parser` options that will overwrite ones loaded by `preset` or `config`.
|
|
19
|
-
*/
|
|
20
|
-
parserOpts: object;
|
|
21
|
-
/**
|
|
22
|
-
* Additional `conventional-changelog-writer` options that will overwrite ones loaded by `preset` or `config`.
|
|
23
|
-
*/
|
|
24
|
-
writerOpts: object;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* A two-type PluginSpec to tie a plugin's name to its Options type. This is
|
|
28
|
-
* intended for use by plugins to associate their Options type with their plugin
|
|
29
|
-
* name.
|
|
30
|
-
*/
|
|
31
|
-
export type PluginSpecTuple<P extends string = string, T = unknown> = [P, T];
|
|
32
|
-
export type PluginSpecSRCommitAnalyzer<V extends SRCommitAnalyzerOptions = SRCommitAnalyzerOptions> = PluginSpecTuple<'@semantic-release/commit-analyzer', V>;
|
|
33
|
-
export type PluginSpecSRChangelog<V extends Record<'changelogFile' | 'changelogTitle', string>> = PluginSpecTuple<'@semantic-release/changelog', V>;
|
|
34
|
-
export type PluginSpecExportData<V extends Record<string, unknown> = Record<string, unknown>> = PluginSpecTuple<'semantic-release-export-data', V>;
|
|
35
|
-
export type PluginSpecSRReleaseNotesGen<V extends SRReleaseNotesGeneratorOptions = SRReleaseNotesGeneratorOptions> = PluginSpecTuple<'@semantic-release/release-notes-generator', V>;
|
|
36
|
-
export type PluginSpecSRExec<V extends SRExecOptions = SRExecOptions> = PluginSpecTuple<'@semantic-release/exec', V>;
|
|
37
|
-
export type PluginSpecSRGit<V extends SRGitOptions = SRGitOptions> = PluginSpecTuple<'@semantic-release/git', V>;
|
|
38
|
-
export type PluginSpecSRGithub<V extends SRGithubOptions = SRGithubOptions> = PluginSpecTuple<'@semantic-release/github', V>;
|
|
39
|
-
/**
|
|
40
|
-
* @satisfies { Readonly<PluginSpec[]> }
|
|
41
|
-
*/
|
|
42
|
-
export declare const defaultPlugins: readonly [
|
|
43
|
-
'@semantic-release/commit-analyzer',
|
|
44
|
-
'@semantic-release/release-notes-generator',
|
|
45
|
-
'@semantic-release/npm',
|
|
46
|
-
'@semantic-release/github'
|
|
47
|
-
];
|
|
48
|
-
/**
|
|
49
|
-
* @see baseConfig
|
|
50
|
-
*/
|
|
51
|
-
declare const _baseConfig: {
|
|
52
|
-
/** @see https://semantic-release.gitbook.io/semantic-release/usage/plugins#plugin-options-configuration */
|
|
53
|
-
preset: "conventionalcommits";
|
|
54
|
-
branches: ["main", {
|
|
55
|
-
name: "develop";
|
|
56
|
-
channel: "develop";
|
|
57
|
-
prerelease: true;
|
|
58
|
-
}];
|
|
59
|
-
plugins: [PluginSpecSRCommitAnalyzer, PluginSpecExportData, PluginSpecSRReleaseNotesGen, PluginSpecSRChangelog<Record<"changelogFile" | "changelogTitle", string>>, PluginSpecSRGit<typeof DefaultOptions>, PluginSpecSRExec, PluginSpecSRGithub<{
|
|
60
|
-
addReleases: "bottom";
|
|
61
|
-
assets: [{
|
|
62
|
-
path: "./publish/*";
|
|
63
|
-
}];
|
|
64
|
-
}>] | Exclude<PluginSpec, string>[];
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* The base configuration for various Semantic Release scenarios.
|
|
68
|
-
* - Prefers preset "conventionalcommits"
|
|
69
|
-
* (Conventional-Changelog-ConventionalCommits).
|
|
70
|
-
* - Creates tags and release commits on "main" branch, pre-releases on
|
|
71
|
-
* "develop" branch in "develop" channel.
|
|
72
|
-
* - Creates GitHub Releases.
|
|
73
|
-
* - Exports the following variables as GitHub Actions outputs:
|
|
74
|
-
* - "new-release-published": "true" | "false"
|
|
75
|
-
* - "new-release-version" : string
|
|
76
|
-
* - "new-release-git-tag" : string
|
|
77
|
-
* - includes default plugins (except `@semantic-release/npm`) and more
|
|
78
|
-
* - `@semantic-release/commit-analyzer`
|
|
79
|
-
* - semantic-release-export-data
|
|
80
|
-
* - `@semantic-release/release-notes-generator`
|
|
81
|
-
* - `@semantic-release/changelog`
|
|
82
|
-
* - `@semantic-release/git`
|
|
83
|
-
* - add modified CHANGELOG.md in release commit
|
|
84
|
-
* - `@semantic-release/exec`
|
|
85
|
-
* - does nothing by default. Included for convenience.
|
|
86
|
-
* - `@semantic-release/github`
|
|
87
|
-
* - uploads all files from `./publish/*`. This is non-recursive.
|
|
88
|
-
* - adds a list of links to related release pages (e.g. the release's page on npmjs.com)
|
|
89
|
-
*
|
|
90
|
-
* (OPTIONAL) update static Version strings before Git plugin
|
|
91
|
-
* - https://github.com/jpoehnelt/semantic-release-replace-plugin
|
|
92
|
-
* - https://github.com/droidsolutions/semantic-release-update-file
|
|
93
|
-
* @satisfies {Options}
|
|
94
|
-
*/
|
|
95
|
-
export declare const baseConfig: typeof _baseConfig;
|
|
96
|
-
export {};
|
|
97
|
-
//# sourceMappingURL=semanticReleaseConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semanticReleaseConfig.d.ts","sourceRoot":"","sources":["../src/semanticReleaseConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAW,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,WAAW,8BAA8B;IAC7C;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,qBAAqB,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,GAAG,SAAS,CAAC;IACjL;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,GAAG,OAAO,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC7E,MAAM,MAAM,0BAA0B,CAAC,CAAC,SAAS,uBAAuB,GAAG,uBAAuB,IAAI,eAAe,CAAC,mCAAmC,EAAE,CAAC,CAAC,CAAC;AAC9J,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,eAAe,GAAG,gBAAgB,EAAE,MAAM,CAAC,IAAI,eAAe,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;AACpJ,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,eAAe,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAC;AACnJ,MAAM,MAAM,2BAA2B,CAAC,CAAC,SAAS,8BAA8B,GAAG,8BAA8B,IAAI,eAAe,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AACrL,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI,eAAe,CAAC,wBAAwB,EAAE,CAAC,CAAC,CAAC;AACrH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,IAAI,eAAe,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC;AACjH,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,IAAI,eAAe,CAAC,0BAA0B,EAAE,CAAC,CAAC,CAAC;AAE7H;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS;IACpC,mCAAmC;IACnC,2CAA2C;IAC3C,uBAAuB;IACvB,0BAA0B;CAMe,CAAC;AAG5C;;GAEG;AACH,QAAA,MAAM,WAAW;IACf,2GAA2G;;cAKtG,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,OAAO,EAAE,SAAS,CAAC;QAAC,UAAU,EAAE,IAAI,CAAA;KAAE,CAAC;aASnE,CACH,0BAA0B,EAC1B,oBAAoB,EACpB,2BAA2B,EAC3B,qBAAqB,CAAC,MAAM,CAAC,eAAe,GAAG,gBAAgB,EAAE,MAAM,CAAC,CAAC,EACzE,eAAe,CAAC,OAAO,cAAc,CAAC,EACtC,gBAAgB,EAChB,kBAAkB,CAAC;QAAE,WAAW,EAAE,QAAQ,CAAC;QAAC,MAAM,EAAE,CAAC;YAAE,IAAI,EAAE,aAAa,CAAA;SAAE,CAAC,CAAA;KAAE,CAAC,CACjF,GAAG,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,EAAE;CAClC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,UAAU,EAAE,OAAO,WAA2C,CAAC"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* # Semantic-Release Config Factory (dotnet)
|
|
3
|
-
* A functional Semantic-Release configuration for dotnet projects
|
|
4
|
-
*
|
|
5
|
-
* extends {@link baseConfig }
|
|
6
|
-
*
|
|
7
|
-
* <-- TABLE OF CONTENTS -->
|
|
8
|
-
*
|
|
9
|
-
* EASY: {@link getConfig}
|
|
10
|
-
* Just provide the paths of the project file(s) and keep your API tokens ready.
|
|
11
|
-
* ADVANCED: {@link SemanticReleaseConfigDotnet}
|
|
12
|
-
* Allows for a hands-on customization if {@link getConfig} doesn't meet your needs.
|
|
13
|
-
* Use a copy of {@link getConfig} as the starting point of a new function and make changes from there.
|
|
14
|
-
* - {@link SemanticReleaseConfigDotnet#splicePlugin splicePlugin (insert/edit plugins)}
|
|
15
|
-
* - {@link SemanticReleaseConfigDotnet#setupDotnetCommands setupDotnetCommands}
|
|
16
|
-
* - {@link SemanticReleaseConfigDotnet#getTokenTestingCommands getTokenTestingCommands}
|
|
17
|
-
*/
|
|
18
|
-
import type { Options } from 'semantic-release';
|
|
19
|
-
import { NugetRegistryInfo } from './dotnet/NugetRegistryInfo.js';
|
|
20
|
-
import { MSBuildProject } from './dotnet/MSBuildProject.js';
|
|
21
|
-
export declare class SemanticReleaseConfigDotnet {
|
|
22
|
-
private readonly options;
|
|
23
|
-
private readonly _projectsToPublish;
|
|
24
|
-
private _projectsToPackAndPush;
|
|
25
|
-
private readonly _evaluatedProjects;
|
|
26
|
-
/**
|
|
27
|
-
* Creates an instance of SemanticReleaseConfigDotnet.
|
|
28
|
-
* Configures {@link baseConfig} with `@semantic-release/exec` to `dotnet` publish, pack, and push.
|
|
29
|
-
*
|
|
30
|
-
* Note: To sign packages, create a Target in the corresponding project(s) e.g.
|
|
31
|
-
* ```xml
|
|
32
|
-
* <Target Name="SignNupkgs" AfterTargets="Pack">
|
|
33
|
-
* <Exec Command="dotnet nuget sign $(PackageOutputPath) [remaining args]" ConsoleToMsBuild="true" />
|
|
34
|
-
* </Target>
|
|
35
|
-
* ```
|
|
36
|
-
* Alternatively, splice your signing commands into the publishCmd string,
|
|
37
|
-
* inserting them before `dotnet nuget push`.
|
|
38
|
-
* If you sign different signatures depending on the NuGet registry,
|
|
39
|
-
* splice your signing command (with "overwrite signature" enabled, if
|
|
40
|
-
* desired) before the corresponding registry's `dotnet nuget push` command.
|
|
41
|
-
* @param projectsToPublish An array of dotnet projects' relative paths. If
|
|
42
|
-
* empty or unspecified, tries getting projects' semi-colon-separated relative
|
|
43
|
-
* paths from the `PROJECTS_TO_PUBLISH` environment variable. If configured as
|
|
44
|
-
* recommended, the projects' publish outputs will be zipped to '$PWD/publish'
|
|
45
|
-
* for use in the `publish` semantic-release step (typically, GitHub release).
|
|
46
|
-
* @param projectsToPackAndPush An array of dotnet projects' relative paths.
|
|
47
|
-
* If empty or unspecified, tries getting projects' semi-colon-separated
|
|
48
|
-
* relative paths from the `PROJECTS_TO_PACK_AND_PUSH` environment variable.
|
|
49
|
-
* Otherwise, no packages will be packed and pushed.
|
|
50
|
-
* If configured as recommended, `dotnet pack` will output the nupkg/snupkg
|
|
51
|
-
* files to `$PWD/publish` where they will be globbed by `dotnet nuget push`.
|
|
52
|
-
*/
|
|
53
|
-
constructor(projectsToPublish: string[] | MSBuildProject[], projectsToPackAndPush: string[] | NugetRegistryInfo[]);
|
|
54
|
-
get ProjectsToPublish(): string[] | MSBuildProject[];
|
|
55
|
-
get ProjectsToPackAndPush(): string[] | NugetRegistryInfo[];
|
|
56
|
-
get EvaluatedProjects(): MSBuildProject[];
|
|
57
|
-
/** @deprecated Superseded by {@link splicePlugin} */
|
|
58
|
-
insertPlugin(afterPluginsIDs: string[], insertPluginIDs: string[], beforePluginsIDs: string[]): void;
|
|
59
|
-
/**
|
|
60
|
-
* generate dotnet commands for \@semantic-release/exec, appending commands with ' && ' when necessary.
|
|
61
|
-
*
|
|
62
|
-
* Note: All strings in {@link this.ProjectsToPackAndPush} will be converted to basic {@link NugetRegistryInfo} instances with default values.
|
|
63
|
-
* If you need specific NRI settings or you need to push to GitLab-like or GitHub-like registries, instantiate them instead of passing their paths.
|
|
64
|
-
* @todo change to builder method? e.g. static async SetupDotnetCommands(this: SemanticReleaseConfigDotnet): Promise<SemanticReleaseConfigDotnet>
|
|
65
|
-
* @todo Add options param to allow users to enable pushing to GitLab, GitHub, NuGet.org with default settings -OR- with entirely custom settings.
|
|
66
|
-
* @see https://github.com/semantic-release/exec#usage
|
|
67
|
-
*/
|
|
68
|
-
setupDotnetCommands(): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Insert a plugin into the plugins array.
|
|
71
|
-
* @param insertAfterPluginIDs Plugins which should appear BEFORE
|
|
72
|
-
* {@link insertPluginIDs}.
|
|
73
|
-
* @param insertPluginIDs The plugin(s) to insert into the plugins array.
|
|
74
|
-
* @param insertBeforePluginsIDs plugins which should appear AFTER the
|
|
75
|
-
* inserted plugin(s).
|
|
76
|
-
*/
|
|
77
|
-
splicePlugin(insertAfterPluginIDs: string[], insertPluginIDs: string[], insertBeforePluginsIDs: string[]): void;
|
|
78
|
-
protected getTokenTestingCommands(): Promise<string>;
|
|
79
|
-
toOptions(): Options;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Configures {@link baseConfig} with `@semantic-release/exec` to `dotnet`
|
|
83
|
-
* publish, pack, and nuget-push.
|
|
84
|
-
* @param projectsToPublish
|
|
85
|
-
* An array of dotnet projects' relative paths -OR- an array of
|
|
86
|
-
* {@link MSBuildProject} instances.
|
|
87
|
-
* - If `MSBuildProject[]`, the instances will be used as-is.
|
|
88
|
-
* - If `[]`, tries getting projects' semi-colon-separated relative paths from
|
|
89
|
-
* the `PROJECTS_TO_PUBLISH` environment variable.
|
|
90
|
-
* - If configured as recommended, the projects' publish outputs will be zipped
|
|
91
|
-
* to '$PWD/publish' for use in the `publish` semantic-release step e.g. for a
|
|
92
|
-
* GitHub release.
|
|
93
|
-
* @param projectsToPackAndPush An array of dotnet projects' relative paths -OR-
|
|
94
|
-
* an array of instances of {@link NugetRegistryInfo} and/or derived classes.
|
|
95
|
-
* - If `NugetRegistryInfo[]`, no conversions or modifications will occur.
|
|
96
|
-
* - If `string[]`, the project paths will be converted to
|
|
97
|
-
* {@link NugetRegistryInfo} instances with default values. This may be undesired.
|
|
98
|
-
* - If `[]`, `dotnet pack` and `dotnet nuget push` commands will not be configured.
|
|
99
|
-
* - If `undefined`, tries getting projects' semi-colon-separated relative paths
|
|
100
|
-
* from the `PROJECTS_TO_PACK_AND_PUSH` environment variable.
|
|
101
|
-
* With the recommended configuration, `dotnet pack` will write the nupkg/snupkg
|
|
102
|
-
* files to `$PWD/publish` where they will be globbed by `dotnet nuget push`.
|
|
103
|
-
* @returns a semantic-release Options object, based on
|
|
104
|
-
* `@halospv3/hce.shared-config` (our base config), with the
|
|
105
|
-
* `@semantic-release/exec` plugin configured to `dotnet publish`, `pack`, and
|
|
106
|
-
* `push` the specified projects.
|
|
107
|
-
*/
|
|
108
|
-
export declare function getConfig(projectsToPublish: string[] | MSBuildProject[], projectsToPackAndPush?: string[] | NugetRegistryInfo[]): Promise<Options>;
|
|
109
|
-
/**
|
|
110
|
-
* @module semanticReleaseConfigDotnet
|
|
111
|
-
*/
|
|
112
|
-
//# sourceMappingURL=semanticReleaseConfigDotnet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semanticReleaseConfigDotnet.d.ts","sourceRoot":"","sources":["../src/semanticReleaseConfigDotnet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAMhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAQ5D,qBAAa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwB;IAChD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA8B;IACjE,OAAO,CAAC,sBAAsB,CAAiC;IAC/D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAmB;IAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;gBAED,iBAAiB,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,EAC9C,qBAAqB,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE;IAwCvD,IAAI,iBAAiB,IAAI,MAAM,EAAE,GAAG,cAAc,EAAE,CAEnD;IAED,IAAI,qBAAqB,IAAI,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAE1D;IAED,IAAI,iBAAiB,IAAI,cAAc,EAAE,CAExC;IAGD,qDAAqD;IACrD,YAAY,CACV,eAAe,EAAE,MAAM,EAAE,EACzB,eAAe,EAAE,MAAM,EAAE,EACzB,gBAAgB,EAAE,MAAM,EAAE,GACzB,IAAI;IAIP;;;;;;;;OAQG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IA2F1C;;;;;;;OAOG;IACH,YAAY,CACV,oBAAoB,EAAE,MAAM,EAAE,EAC9B,eAAe,EAAE,MAAM,EAAE,EACzB,sBAAsB,EAAE,MAAM,EAAE,GAC/B,IAAI;cAmDS,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC;IAqC1D,SAAS,IAAI,OAAO;CAGrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,SAAS,CAC7B,iBAAiB,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,EAC9C,qBAAqB,CAAC,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,GACrD,OAAO,CAAC,OAAO,CAAC,CAqDlB;AAED;;GAEG"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { PluginSpecTuple } from './semanticReleaseConfig.js';
|
|
2
|
-
export declare const GitPluginId = "@semantic-release/git";
|
|
3
|
-
/**
|
|
4
|
-
* As specified at https://github.com/semantic-release/git#options
|
|
5
|
-
* To use, assign or create an object with the same (but mutable) properties and deeply-copy to the object
|
|
6
|
-
* @satisfies { GitOptions }
|
|
7
|
-
*/
|
|
8
|
-
export declare const DefaultOptions: {
|
|
9
|
-
readonly assets: ['README.md', 'CHANGELOG.md', 'package.json', 'package-lock.json', 'npm-shrinkwrap.json'];
|
|
10
|
-
readonly message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}';
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* https://github.com/semantic-release/git#options
|
|
14
|
-
*
|
|
15
|
-
* This plugin may be deprecated at a later date.
|
|
16
|
-
* Q: Why would I need to commit during release?
|
|
17
|
-
* A: This is for committing your changelog, README, and/or other files updated during the release procedure.
|
|
18
|
-
* @param plugins An ordered array of {@link PluginSpecTuple PluginSpecTuples}.
|
|
19
|
-
* @returns A {@link PluginSpecTuple}[]. Duplicate `@semantic-release/git` plugin entries are merged or overridden. The last entry takes priority e.g. if the last entry is `{assets: false}`, previous entries' assets are ignored.
|
|
20
|
-
*/
|
|
21
|
-
export declare function setupGitPluginSpec(plugins: PluginSpecTuple[]): PluginSpecTuple[];
|
|
22
|
-
//# sourceMappingURL=setupGitPluginSpec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setupGitPluginSpec.d.ts","sourceRoot":"","sources":["../src/setupGitPluginSpec.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEnF,eAAO,MAAM,WAAW,0BAA0B,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE;IAC3B,QAAQ,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;IAC3G,QAAQ,CAAC,OAAO,EAAE,0EAA0E,CAAC;CAWhE,CAAC;AAuFhC;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,eAAe,EAAE,CAkDhF"}
|
package/mjs/utils/Exact.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ### `Exact<T, S>`
|
|
3
|
-
*
|
|
4
|
-
* [issue](https://github.com/microsoft/TypeScript/issues/12936#issuecomment-2816928183)\
|
|
5
|
-
* [author](https://github.com/ahrjarrett)\
|
|
6
|
-
* license: unlicensed[!]
|
|
7
|
-
* @see
|
|
8
|
-
* - {@link https://tsplay.dev/NnGG6m}
|
|
9
|
-
*/
|
|
10
|
-
export type Exact<T, S> = [keyof T] extends [keyof S] ? [T] extends [S] ? {
|
|
11
|
-
[K in keyof T]: T[K];
|
|
12
|
-
} : S : {
|
|
13
|
-
[K in keyof T as K extends keyof S ? never : K]: TypeError<`Excess: '${Coerce<K>}'`>;
|
|
14
|
-
};
|
|
15
|
-
interface TypeError<Message> {
|
|
16
|
-
[' TypeError']: Message;
|
|
17
|
-
}
|
|
18
|
-
type Coerce<T> = `${T & (string | number)}`;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=Exact.d.ts.map
|
package/mjs/utils/Exact.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Exact.d.ts","sourceRoot":"","sources":["../../src/utils/Exact.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,GACjD,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,CAAC,GAC9C;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,MAAM,CAAC,GAAG,KAAK,GAAG,CAAC,GAAG,SAAS,CAAC,YAAY,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC;CAAE,CAAC;AA2B7F,UAAU,SAAS,CAAC,OAAO;IAAI,CAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE;AAGxD,KAAK,MAAM,CAAC,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GracefulRecursion.d.mjs","sources":[],"names":[],"mappings":""}
|
package/mjs/utils/env.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type DotenvConfigOptions, type GetOptions } from '@dotenvx/dotenvx';
|
|
2
|
-
/**
|
|
3
|
-
* A thin wrapper for {@link loadDotenv}. Loads a .env file from {@link process.cwd()} with the given options (or defaults), returns the new value of {@link process.env} with optional overrides.
|
|
4
|
-
* @param [dotenvOptions] An optional {@link DotenvConfigOptions} object to pass to {@link loadDotenv}.
|
|
5
|
-
* @param [overrides] If provided, this {@link NodeJS.ProcessEnv} object is merged into the return value, overriding existing properties where overlap occurs.
|
|
6
|
-
* @returns A {@link NodeJS.ProcessEnv} object whose properties are variables loaded from the
|
|
7
|
-
* process environment, the nearest .env file, and {@link overrides} (if provided). Where
|
|
8
|
-
* overlap occurs, the later source takes priority.
|
|
9
|
-
*/
|
|
10
|
-
export declare function getEnv(dotenvOptions?: DotenvConfigOptions, overrides?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
11
|
-
/**
|
|
12
|
-
* Get the value from the given env var in the current process or nearby .env file.
|
|
13
|
-
* If found in process environment, its value is returned.
|
|
14
|
-
* Else, try to get it from the nearest .env file.
|
|
15
|
-
* If NOT found, return `undefined`
|
|
16
|
-
* @param envVar The environment variable to lookup.
|
|
17
|
-
* @param [options] Options to pass to {@link get}
|
|
18
|
-
* @returns The string value of the environment variable or `undefined`.
|
|
19
|
-
* `undefined` may be returned when the variable is undefined or its string is
|
|
20
|
-
* empty, whitespace, or appears to have been converted from `null` or
|
|
21
|
-
* `undefined`.
|
|
22
|
-
*/
|
|
23
|
-
export declare function getEnvVarValue(envVar: string, options?: GetOptions): string | undefined;
|
|
24
|
-
//# sourceMappingURL=env.d.ts.map
|
package/mjs/utils/env.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/utils/env.ts"],"names":[],"mappings":"AAAA,OAAgB,EACd,KAAK,mBAAmB,EACxB,KAAK,UAAU,EAChB,MAAM,kBAAkB,CAAC;AAY1B;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,aAAa,CAAC,EAAE,mBAAmB,EAAE,SAAS,CAAC,EAAE,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAO5G;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAUvF"}
|
package/mjs/utils/execAsync.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { type Type } from 'arktype';
|
|
2
|
-
/**
|
|
3
|
-
* A `promisify(exec)` wrapper to optionally assign the child process's STDERR as the {@link Error.prototype.cause}.
|
|
4
|
-
* @see {@link promisify}, {@link exec}
|
|
5
|
-
* @param command The command to run, with space-separated arguments.
|
|
6
|
-
* @param [setStderrAsCause=false] If true and the child process's stderr is available, the thrown Error's {@link Error.prototype.cause} is assigned the stderr string.
|
|
7
|
-
* @returns A promise of the child process's STDOUT and STDERR streams as strings
|
|
8
|
-
* @throws {Error | ChildProcessSpawnException}
|
|
9
|
-
*/
|
|
10
|
-
export declare function execAsync(command: string, setStderrAsCause?: boolean): Promise<{
|
|
11
|
-
stdout: string;
|
|
12
|
-
stderr: string;
|
|
13
|
-
}>;
|
|
14
|
-
declare const T_ExecException: Type<{
|
|
15
|
-
name: string;
|
|
16
|
-
message: string;
|
|
17
|
-
stack?: string | undefined;
|
|
18
|
-
cause?: unknown;
|
|
19
|
-
cmd?: string | null | undefined;
|
|
20
|
-
killed?: boolean | null | undefined;
|
|
21
|
-
code?: number | null | undefined;
|
|
22
|
-
signal?: 'SIGABRT' | 'SIGALRM' | 'SIGBUS' | 'SIGCHLD' | 'SIGCONT' | 'SIGFPE' | 'SIGHUP' | 'SIGILL' | 'SIGINT' | 'SIGIO' | 'SIGIOT' | 'SIGKILL' | 'SIGPIPE' | 'SIGPOLL' | 'SIGPROF' | 'SIGPWR' | 'SIGQUIT' | 'SIGSEGV' | 'SIGSTKFLT' | 'SIGSTOP' | 'SIGSYS' | 'SIGTERM' | 'SIGTRAP' | 'SIGTSTP' | 'SIGTTIN' | 'SIGTTOU' | 'SIGUNUSED' | 'SIGURG' | 'SIGUSR1' | 'SIGUSR2' | 'SIGVTALRM' | 'SIGWINCH' | 'SIGXCPU' | 'SIGXFSZ' | 'SIGBREAK' | 'SIGLOST' | 'SIGINFO' | null | undefined;
|
|
23
|
-
stdout?: string | undefined;
|
|
24
|
-
stderr?: string | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
type _ExecException = typeof T_ExecException.inferOut;
|
|
27
|
-
export declare class ChildProcessSpawnException extends Error implements _ExecException {
|
|
28
|
-
constructor(message: Parameters<typeof Error>[0], options: typeof T_ExecException.inferIn);
|
|
29
|
-
cmd: typeof T_ExecException.inferOut.cmd;
|
|
30
|
-
code: typeof T_ExecException.inferOut.code;
|
|
31
|
-
killed: typeof T_ExecException.inferOut.killed;
|
|
32
|
-
signal: typeof T_ExecException.inferOut.signal;
|
|
33
|
-
stderr: typeof T_ExecException.inferOut.stderr;
|
|
34
|
-
stdout: typeof T_ExecException.inferOut.stdout;
|
|
35
|
-
}
|
|
36
|
-
export {};
|
|
37
|
-
//# sourceMappingURL=execAsync.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execAsync.d.ts","sourceRoot":"","sources":["../../src/utils/execAsync.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,IAAI,EAAE,MAAM,SAAS,CAAC;AAM1C;;;;;;;GAOG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,UAAQ,GAAG,OAAO,CAAC;IAClF,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAqBD;AAED,QAAA,MAAM,eAAe,EAAE,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACnd,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAUC,CAAC;AAEH,KAAK,cAAc,GAAG,OAAO,eAAe,CAAC,QAAQ,CAAC;AAEtD,qBAAa,0BAA2B,SAAQ,KAAM,YAAW,cAAc;gBAE3E,OAAO,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EACpC,OAAO,EAAE,OAAO,eAAe,CAAC,OAAO;IAYzC,GAAG,EAAE,OAAO,eAAe,CAAC,QAAQ,CAAC,GAAG,CAAC;IACzC,IAAI,EAAE,OAAO,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC3C,MAAM,EAAE,OAAO,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAO,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAO,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAO,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC;CAChD"}
|
package/mjs/utils/isError.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @import 'typescript/lib/lib.esnext.error.d.ts' */
|
|
2
|
-
/**
|
|
3
|
-
* Compatibility wrapper for ES2026 (Node.js 25)
|
|
4
|
-
* {@link Error.isError Error.isError}
|
|
5
|
-
* with failover to the deprecated {@link isNativeError utils.types.isNativeError}.
|
|
6
|
-
* @param error A parameter which may be an Error.
|
|
7
|
-
* @returns `true` if {@link error} is derived from or is sufficiently similar to {@link Error}. Else, `false`.
|
|
8
|
-
* Note: DOMExceptions will result in `false`
|
|
9
|
-
*/
|
|
10
|
-
export declare function isError(error: unknown): error is Error;
|
|
11
|
-
//# sourceMappingURL=isError.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isError.d.ts","sourceRoot":"","sources":["../../src/utils/isError.ts"],"names":[],"mappings":"AAEA,qDAAqD;AAErD;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAKtD"}
|
package/mjs/utils/miscTypes.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type Type } from 'arktype';
|
|
2
|
-
export declare const tBooleanString: Type<'false' | 'true'>;
|
|
3
|
-
export type BooleanString = typeof tBooleanString.infer;
|
|
4
|
-
export declare const tEmptyOrBooleanString: Type<'' | 'false' | 'true'>;
|
|
5
|
-
export type EmptyOrBooleanString = typeof tEmptyOrBooleanString.infer;
|
|
6
|
-
export type Integer<N extends number> = `${N}` extends `${number}.${number}` ? never : N;
|
|
7
|
-
/**
|
|
8
|
-
* @see https://stackoverflow.com/a/73920140/14894786
|
|
9
|
-
*/
|
|
10
|
-
export type TupleIndices<T extends readonly unknown[]> = Extract<keyof T, `${number}`> extends `${infer N extends number}` ? N : never;
|
|
11
|
-
export type InstanceOrStatic = 'Instance' | 'Static';
|
|
12
|
-
//# sourceMappingURL=miscTypes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"miscTypes.d.ts","sourceRoot":"","sources":["../../src/utils/miscTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,IAAI,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,OAAO,GAAG,MAAM,CAA4B,CAAC;AAC/E,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,KAAK,CAAC;AAExD,eAAO,MAAM,qBAAqB,EAAE,IAAI,CAAC,EAAE,GAAG,OAAO,GAAG,MAAM,CAAiC,CAAC;AAChG,MAAM,MAAM,oBAAoB,GAAG,OAAO,qBAAqB,CAAC,KAAK,CAAC;AAEtE,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,MAAM,IAAI,GAAG,CAAC,EAAE,SAAS,GAAG,MAAM,IAAI,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IACjD,OAAO,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,MAAM,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC;AAElF,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionLike.d.mjs","sources":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetterDescriptor.d.mjs","sources":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InstancePropertyDescriptorMap.d.mjs","sources":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InstanceTypeOrSelfPropertyDescriptorMap.d.mjs","sources":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OwnGetterDescriptorMap.d.mjs","sources":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OwnKeyOf.d.mjs","sources":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OwnPropertyDescriptorMap.d.mjs","sources":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyDescriptorMap.d.mjs","sources":[],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { BaseClassProto, baseClassProto, ClassLike, ConstructorConstraint, InstanceTypeOrSelf, SuperClassLike, WithProto } from './inheritance.js';
|
|
2
|
-
import type { InstancePropertyDescriptorMap } from './InstancePropertyDescriptorMap.js';
|
|
3
|
-
import type { OwnGetterDescriptorMap } from './OwnGetterDescriptorMap.js';
|
|
4
|
-
import type { OwnPropertyDescriptorMap } from './OwnPropertyDescriptorMap.js';
|
|
5
|
-
export declare function filterForGetters<Class extends ClassLike<ConstructorConstraint<Class> & WithProto<SuperClassLike | typeof baseClassProto>>>(descriptorMap: InstancePropertyDescriptorMap<Class>): Partial<OwnGetterDescriptorMap<InstanceType<Class>, Class['__proto__'] extends BaseClassProto ? null : InstanceTypeOrSelf<Class['__proto__']>>>;
|
|
6
|
-
export declare function filterForGetters<Class extends ClassLike<ConstructorConstraint<Class> & WithProto<SuperClassLike | BaseClassProto>>>(descriptorMap: OwnPropertyDescriptorMap<Class>): Partial<OwnGetterDescriptorMap<Class, Class['__proto__']>>;
|
|
7
|
-
//# sourceMappingURL=filterForGetters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filterForGetters.d.ts","sourceRoot":"","sources":["../../../src/utils/reflection/filterForGetters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAG9E,wBAAgB,gBAAgB,CAC9B,KAAK,SAAS,SAAS,CAAC,qBAAqB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,cAAc,GAAG,OAAO,cAAc,CAAC,CAAC,EAEzG,aAAa,EAAE,6BAA6B,CAAC,KAAK,CAAC,GAClD,OAAO,CAAC,sBAAsB,CAC/B,YAAY,CAAC,KAAK,CAAC,EACnB,KAAK,CAAC,WAAW,CAAC,SAAS,cAAc,GAAG,IAAI,GAAG,kBAAkB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAC1F,CAAC,CAAC;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,SAAS,SAAS,CAAC,qBAAqB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,cAAc,GAAG,cAAc,CAAC,CAAC,EAElG,aAAa,EAAE,wBAAwB,CAAC,KAAK,CAAC,GAC7C,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { InstanceOrStatic } from '../miscTypes.js';
|
|
2
|
-
import type { BaseClassProto, ClassLike, ConstructorConstraint, SuperClassLike, WithProto } from './inheritance.js';
|
|
3
|
-
import type { InstancePropertyDescriptorMap } from './InstancePropertyDescriptorMap.js';
|
|
4
|
-
import type { OwnPropertyDescriptorMap } from './OwnPropertyDescriptorMap.js';
|
|
5
|
-
/**
|
|
6
|
-
* Get the property descriptors of the class or constructor similar to {@link Object.getOwnPropertyDescriptors}, but with more options--including recursion.
|
|
7
|
-
* @template {InstanceOrStatic} _InstanceOrStatic 'Instance' or 'Static'. Determines the return type.
|
|
8
|
-
* @param classDefinition A class or constructor, cast to {@link ClassLike}.
|
|
9
|
-
* @param instanceOrStatic 'Instance' or 'Static'. Determines the return type.
|
|
10
|
-
* @template {ClassLike<ConstructorConstraint<Class> & WithProto<SuperClassLike | BaseClassProto>>} Class
|
|
11
|
-
* The typeof {@link classDefinition}.
|
|
12
|
-
* {@link WithProto}<{@link SuperClassLike}> is necessary for walking the
|
|
13
|
-
* prototype chain for both Instance and Static properties.
|
|
14
|
-
* If unspecified, the return type may be incorrect.
|
|
15
|
-
* @returns ({@link instanceOrStatic} === 'Instance') ? {@link InstancePropertyDescriptorMap<Class>}\
|
|
16
|
-
* : ({@link instanceOrStatic} === 'Static') ? {@link OwnPropertyDescriptorMap<Class>}\
|
|
17
|
-
* : never
|
|
18
|
-
* @throws {TypeError}
|
|
19
|
-
* @since 3.0.0
|
|
20
|
-
*/
|
|
21
|
-
export declare function getOwnPropertyDescriptors<Class extends ClassLike<ConstructorConstraint<Class> & WithProto<SuperClassLike | BaseClassProto>>, _InstanceOrStatic extends InstanceOrStatic>(classDefinition: Class, instanceOrStatic: _InstanceOrStatic): [_InstanceOrStatic] extends ['Instance'] ? InstancePropertyDescriptorMap<Class> : [_InstanceOrStatic] extends ['Static'] ? OwnPropertyDescriptorMap<Class> : never;
|
|
22
|
-
//# sourceMappingURL=getOwnPropertyDescriptors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getOwnPropertyDescriptors.d.ts","sourceRoot":"","sources":["../../../src/utils/reflection/getOwnPropertyDescriptors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,qBAAqB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,SAAS,SAAS,CAAC,qBAAqB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,cAAc,GAAG,cAAc,CAAC,CAAC,EAClG,iBAAiB,SAAS,gBAAgB,EAE1C,eAAe,EAAE,KAAK,EACtB,gBAAgB,EAAE,iBAAiB,GAClC,CAAC,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,GACvC,6BAA6B,CAAC,KAAK,CAAC,GACpC,CAAC,iBAAiB,CAAC,SAAS,CAAC,QAAQ,CAAC,GAClC,wBAAwB,CAAC,KAAK,CAAC,GAC/B,KAAK,CAoBZ"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { Increment } from '../GracefulRecursion.js';
|
|
2
|
-
import type { InstanceOrStatic, Integer } from '../miscTypes.js';
|
|
3
|
-
import type { BaseClass, BaseClassProto, ClassLike, ConstructorConstraint, ConstructorLike, SuperClassLike, WithProto } from './inheritance.js';
|
|
4
|
-
import type { InstanceTypeOrSelfPropertyDescriptorMap } from './InstanceTypeOrSelfPropertyDescriptorMap.js';
|
|
5
|
-
import type { OwnPropertyDescriptorMap } from './OwnPropertyDescriptorMap.js';
|
|
6
|
-
/**
|
|
7
|
-
* JSDoc type imports
|
|
8
|
-
* @typedef {import('./getPrototypeOf.js').getPrototypeOf} getPrototypeOf
|
|
9
|
-
* @typedef {import('./listOwnGetters.js').listOwnGetters} listOwnGetters
|
|
10
|
-
* @typedef {import('./InstancePropertyDescriptorMap.js').InstancePropertyDescriptorMap} InstancePropertyDescriptorMap
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* A conditional wrapper for {@link InstanceTypeOrSelfPropertyDescriptorMap} and
|
|
14
|
-
* {@link OwnPropertyDescriptorMap}.
|
|
15
|
-
*
|
|
16
|
-
* If {@link _InstanceOrStatic} is 'Instance', {@link InstanceTypeOrSelfPropertyDescriptorMap}.\
|
|
17
|
-
* Else if {@link _InstanceOrStatic} is 'Static',
|
|
18
|
-
* {@link OwnPropertyDescriptorMap }.\
|
|
19
|
-
* Else, `never`.
|
|
20
|
-
* @template {ConstructorConstraint<Class> & WithProto<SuperClassLike | BaseClassProto>} Class
|
|
21
|
-
* A class definition cast to {@link ClassLike}.
|
|
22
|
-
* @template {InstanceOrStatic} _InstanceOrStatic
|
|
23
|
-
* 'Instance' or 'Static'. Determines the return type.
|
|
24
|
-
* @since 3.0.0
|
|
25
|
-
*/
|
|
26
|
-
export type RecursedPropertyDescriptorMap<Class extends ConstructorConstraint<Class> & WithProto<SuperClassLike | BaseClassProto>, _InstanceOrStatic extends InstanceOrStatic> = [_InstanceOrStatic] extends ['Instance'] ? InstanceTypeOrSelfPropertyDescriptorMap<Class, Class['__proto__']> : [_InstanceOrStatic] extends ['Static'] ? OwnPropertyDescriptorMap<Class> : never;
|
|
27
|
-
/**
|
|
28
|
-
* An
|
|
29
|
-
* ordered array of {@link OwnPropertyDescriptorMap} or
|
|
30
|
-
* {@link InstancePropertyDescriptorMap} starting with {@link classDefinition}
|
|
31
|
-
* and ending with a {@link BaseClass}.
|
|
32
|
-
* @template {ConstructorConstraint<Class> & WithProto<SuperClassLike | BaseClassProto>} Class
|
|
33
|
-
* @template {'Instance' | 'Static'} InstanceOrStatic
|
|
34
|
-
* @template {Integer<number>} [Limit=16]
|
|
35
|
-
* @template {Integer<number>} [CurrentLevel=0]
|
|
36
|
-
*/
|
|
37
|
-
export type RecursedPropertyDescriptorMapArray<Class extends ConstructorConstraint<Class> & WithProto<SuperClassLike | BaseClassProto>, InstanceOrStatic extends 'Instance' | 'Static', Limit extends Integer<number> = 16, CurrentLevel extends Integer<number> = 0> = Class['__proto__'] extends BaseClassProto['__proto__'] | BaseClassProto['__proto__']['__proto__'] ? never : Class['__proto__'] extends BaseClassProto ? [RecursedPropertyDescriptorMap<BaseClass<Class>, InstanceOrStatic>] : Class['__proto__'] extends ConstructorLike<Class['__proto__']> ? [
|
|
38
|
-
RecursedPropertyDescriptorMap<Class, InstanceOrStatic>,
|
|
39
|
-
...RecursedPropertyDescriptorMapArray<ClassLike<Exclude<Class['__proto__'], BaseClassProto> & WithProto<SuperClassLike | BaseClassProto>>, InstanceOrStatic, Limit, Increment<CurrentLevel>>
|
|
40
|
-
] : never;
|
|
41
|
-
/**
|
|
42
|
-
* Walks the class inheritance chain to get a PropertyDescriptorMap of each class.
|
|
43
|
-
*
|
|
44
|
-
* While you _can_ use this to get an array of getter names/keys, you should use {@link getPrototypeOf} and {@link listOwnGetters}, instead!
|
|
45
|
-
* @template Class Any class definition type-cast to {@link ClassLike}
|
|
46
|
-
* @template _InstanceOrStatic
|
|
47
|
-
* @param classDefinition Any class definition type-cast to {@link ClassLike}
|
|
48
|
-
* @param instanceOrStatic 'Instance' or 'Static'. Determines the return type.
|
|
49
|
-
* @returns An
|
|
50
|
-
* ordered array of {@link OwnPropertyDescriptorMap} or
|
|
51
|
-
* {@link InstancePropertyDescriptorMap} starting with {@link classDefinition}
|
|
52
|
-
* and ending with a {@link BaseClass}.
|
|
53
|
-
* @since 3.0.0
|
|
54
|
-
*/
|
|
55
|
-
export declare function getOwnPropertyDescriptorsRecursively<Class extends ClassLike<ConstructorConstraint<Class> & WithProto<SuperClassLike | BaseClassProto>>, _InstanceOrStatic extends InstanceOrStatic, Limit extends Integer<number> = 16>(classDefinition: Class, instanceOrStatic: _InstanceOrStatic): RecursedPropertyDescriptorMapArray<Class, _InstanceOrStatic>;
|
|
56
|
-
//# sourceMappingURL=getOwnPropertyDescriptorsRecursively.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getOwnPropertyDescriptorsRecursively.d.ts","sourceRoot":"","sources":["../../../src/utils/reflection/getOwnPropertyDescriptorsRecursively.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAGjE,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,SAAS,EACT,qBAAqB,EACrB,eAAe,EAEf,cAAc,EACd,SAAS,EACV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,8CAA8C,CAAC;AAC5G,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E;;;;;GAKG;AAGH;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,6BAA6B,CACvC,KAAK,SAAS,qBAAqB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,cAAc,GAAG,cAAc,CAAC,EACvF,iBAAiB,SAAS,gBAAgB,IACxC,CAAC,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,uCAAuC,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,GAC7G,CAAC,iBAAiB,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,wBAAwB,CAAC,KAAK,CAAC,GACpE,KAAK,CAAC;AAEd;;;;;;;;;GASG;AACH,MAAM,MAAM,kCAAkC,CAC5C,KAAK,SAAS,qBAAqB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,cAAc,GAAG,cAAc,CAAC,EACvF,gBAAgB,SAAS,UAAU,GAAG,QAAQ,EAC9C,KAAK,SAAS,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,EAClC,YAAY,SAAS,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,IACtC,KAAK,CAAC,WAAW,CAAC,SAAS,cAAc,CAAC,WAAW,CAAC,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,GAAG,KAAK,GACzG,KAAK,CAAC,WAAW,CAAC,SAAS,cAAc,GAAG,CAAC,6BAA6B,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAC,CAAC,GAC7G,KAAK,CAAC,WAAW,CAAC,SAAS,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,GAC5D;IACE,6BAA6B,CAAC,KAAK,EAAE,gBAAgB,CAAC;IACtD,GAAG,kCAAkC,CACnC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC,GAAG,SAAS,CAAC,cAAc,GAAG,cAAc,CAAC,CAAC,EACnG,gBAAgB,EAChB,KAAK,EACL,SAAS,CAAC,YAAY,CAAC,CACxB;CACF,GACD,KAAK,CAAC;AACd;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oCAAoC,CAElD,KAAK,SAAS,SAAS,CAAC,qBAAqB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,cAAc,GAAG,cAAc,CAAC,CAAC,EAClG,iBAAiB,SAAS,gBAAgB,EAE1C,KAAK,SAAS,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,EAElC,eAAe,EAAE,KAAK,EACtB,gBAAgB,EAAE,iBAAiB,GAClC,kCAAkC,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAmB9D"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type BaseClassProto, type ClassLike, type ConstructorConstraint, type ProtoChainOfClass, type ProtoChainOfClassInstance, type SuperClassLike, type WithProto } from './inheritance.js';
|
|
2
|
-
type ProtoChain<Class extends ClassLike<ConstructorConstraint<Class> & WithProto<SuperClassLike | BaseClassProto>>, ClassesOrInstances extends 'classes' | 'classInstances'> = [ClassesOrInstances] extends ['classInstances'] ? ProtoChainOfClassInstance<Class> : [ClassesOrInstances] extends ['classes'] ? ProtoChainOfClass<Class> : never;
|
|
3
|
-
/**
|
|
4
|
-
* Iterate through the class and its base/super classes until an anonymous function is reached. This is the default superclass all classes extend.
|
|
5
|
-
* @template Class Any {@link ClassLike} type.
|
|
6
|
-
* @template ClassesOrInstances 'classes' or 'classInstances'
|
|
7
|
-
* @param classDefinition Any class type satisfying {@link Class}. This class (or its instance type) is included in the return value.
|
|
8
|
-
* @param [returnType='classes'] Determines return type. If 'classInstances', the return type is an array of the classes' `.prototype`. Else, the classes themselves are returned.
|
|
9
|
-
* @since 3.0.0
|
|
10
|
-
* @returns
|
|
11
|
-
* `returnType extends 'classInstances' ? ClassLike<T>[] : ClassLike<T>[].map(c => c.prototype)`
|
|
12
|
-
* Excludes default superclasses e.g. anonymous functions, native code.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getPrototypesChainOf<Class extends ClassLike<ConstructorConstraint<Class> & WithProto<SuperClassLike | BaseClassProto>>, ClassesOrInstances extends 'classes' | 'classInstances'>(classDefinition: Class, returnType: ClassesOrInstances): ProtoChain<Class, ClassesOrInstances>;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=getPrototypeChainOf.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPrototypeChainOf.d.ts","sourceRoot":"","sources":["../../../src/utils/reflection/getPrototypeChainOf.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,kBAAkB,CAAC;AAG1B,KAAK,UAAU,CACb,KAAK,SAAS,SAAS,CAAC,qBAAqB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,cAAc,GAAG,cAAc,CAAC,CAAC,EAClG,kBAAkB,SAAS,SAAS,GAAG,gBAAgB,IACrD,CAAC,kBAAkB,CAAC,SAAS,CAAC,gBAAgB,CAAC,GAAG,yBAAyB,CAAC,KAAK,CAAC,GAClF,CAAC,kBAAkB,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,iBAAiB,CAAC,KAAK,CAAC,GAC/D,KAAK,CAAC;AAEd;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,SAAS,SAAS,CAAC,qBAAqB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,cAAc,GAAG,cAAc,CAAC,CAAC,EAClG,kBAAkB,SAAS,SAAS,GAAG,gBAAgB,EAEvD,eAAe,EAAE,KAAK,EACtB,UAAU,EAAE,kBAAkB,GAC7B,UAAU,CAAC,KAAK,EAAE,kBAAkB,CAAC,CA6CvC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ProtoOrSuperClass, WithProto } from './inheritance.js';
|
|
2
|
-
/**
|
|
3
|
-
* A nearly useless wrapper for {@link Reflect.getPrototypeOf}
|
|
4
|
-
* @param object An object with the internal `__proto__` property present in its type.
|
|
5
|
-
* @returns The `__proto__` of the `object` param.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getPrototypeOf<T extends WithProto<ProtoOrSuperClass>>(object: T): T['__proto__'];
|
|
8
|
-
//# sourceMappingURL=getPrototypeOf.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPrototypeOf.d.ts","sourceRoot":"","sources":["../../../src/utils/reflection/getPrototypeOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAErE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,CAAC,SAAS,SAAS,CAAC,iBAAiB,CAAC,EACtC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,CAE3B"}
|