@hyperfrontend/versioning 0.1.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/ARCHITECTURE.md +593 -0
- package/CHANGELOG.md +35 -0
- package/FUNDING.md +141 -0
- package/LICENSE.md +21 -0
- package/README.md +195 -0
- package/SECURITY.md +82 -0
- package/changelog/compare/diff.d.ts +128 -0
- package/changelog/compare/diff.d.ts.map +1 -0
- package/changelog/compare/index.cjs.js +628 -0
- package/changelog/compare/index.cjs.js.map +1 -0
- package/changelog/compare/index.d.ts +4 -0
- package/changelog/compare/index.d.ts.map +1 -0
- package/changelog/compare/index.esm.js +612 -0
- package/changelog/compare/index.esm.js.map +1 -0
- package/changelog/compare/is-equal.d.ts +114 -0
- package/changelog/compare/is-equal.d.ts.map +1 -0
- package/changelog/index.cjs.js +6448 -0
- package/changelog/index.cjs.js.map +1 -0
- package/changelog/index.d.ts +6 -0
- package/changelog/index.d.ts.map +1 -0
- package/changelog/index.esm.js +6358 -0
- package/changelog/index.esm.js.map +1 -0
- package/changelog/models/changelog.d.ts +86 -0
- package/changelog/models/changelog.d.ts.map +1 -0
- package/changelog/models/commit-ref.d.ts +51 -0
- package/changelog/models/commit-ref.d.ts.map +1 -0
- package/changelog/models/entry.d.ts +84 -0
- package/changelog/models/entry.d.ts.map +1 -0
- package/changelog/models/index.cjs.js +2043 -0
- package/changelog/models/index.cjs.js.map +1 -0
- package/changelog/models/index.d.ts +11 -0
- package/changelog/models/index.d.ts.map +1 -0
- package/changelog/models/index.esm.js +2026 -0
- package/changelog/models/index.esm.js.map +1 -0
- package/changelog/models/schema.d.ts +68 -0
- package/changelog/models/schema.d.ts.map +1 -0
- package/changelog/models/section.d.ts +25 -0
- package/changelog/models/section.d.ts.map +1 -0
- package/changelog/operations/add-entry.d.ts +56 -0
- package/changelog/operations/add-entry.d.ts.map +1 -0
- package/changelog/operations/add-item.d.ts +18 -0
- package/changelog/operations/add-item.d.ts.map +1 -0
- package/changelog/operations/filter-by-predicate.d.ts +81 -0
- package/changelog/operations/filter-by-predicate.d.ts.map +1 -0
- package/changelog/operations/filter-by-range.d.ts +63 -0
- package/changelog/operations/filter-by-range.d.ts.map +1 -0
- package/changelog/operations/filter-entries.d.ts +9 -0
- package/changelog/operations/filter-entries.d.ts.map +1 -0
- package/changelog/operations/index.cjs.js +2455 -0
- package/changelog/operations/index.cjs.js.map +1 -0
- package/changelog/operations/index.d.ts +15 -0
- package/changelog/operations/index.d.ts.map +1 -0
- package/changelog/operations/index.esm.js +2411 -0
- package/changelog/operations/index.esm.js.map +1 -0
- package/changelog/operations/merge.d.ts +88 -0
- package/changelog/operations/merge.d.ts.map +1 -0
- package/changelog/operations/remove-entry.d.ts +45 -0
- package/changelog/operations/remove-entry.d.ts.map +1 -0
- package/changelog/operations/remove-section.d.ts +50 -0
- package/changelog/operations/remove-section.d.ts.map +1 -0
- package/changelog/operations/transform.d.ts +143 -0
- package/changelog/operations/transform.d.ts.map +1 -0
- package/changelog/parse/index.cjs.js +1282 -0
- package/changelog/parse/index.cjs.js.map +1 -0
- package/changelog/parse/index.d.ts +5 -0
- package/changelog/parse/index.d.ts.map +1 -0
- package/changelog/parse/index.esm.js +1275 -0
- package/changelog/parse/index.esm.js.map +1 -0
- package/changelog/parse/line.d.ts +48 -0
- package/changelog/parse/line.d.ts.map +1 -0
- package/changelog/parse/parser.d.ts +16 -0
- package/changelog/parse/parser.d.ts.map +1 -0
- package/changelog/parse/tokenizer.d.ts +49 -0
- package/changelog/parse/tokenizer.d.ts.map +1 -0
- package/changelog/serialize/index.cjs.js +574 -0
- package/changelog/serialize/index.cjs.js.map +1 -0
- package/changelog/serialize/index.d.ts +6 -0
- package/changelog/serialize/index.d.ts.map +1 -0
- package/changelog/serialize/index.esm.js +564 -0
- package/changelog/serialize/index.esm.js.map +1 -0
- package/changelog/serialize/templates.d.ts +81 -0
- package/changelog/serialize/templates.d.ts.map +1 -0
- package/changelog/serialize/to-json.d.ts +57 -0
- package/changelog/serialize/to-json.d.ts.map +1 -0
- package/changelog/serialize/to-string.d.ts +30 -0
- package/changelog/serialize/to-string.d.ts.map +1 -0
- package/commits/index.cjs.js +648 -0
- package/commits/index.cjs.js.map +1 -0
- package/commits/index.d.ts +3 -0
- package/commits/index.d.ts.map +1 -0
- package/commits/index.esm.js +629 -0
- package/commits/index.esm.js.map +1 -0
- package/commits/models/breaking.d.ts +39 -0
- package/commits/models/breaking.d.ts.map +1 -0
- package/commits/models/commit-type.d.ts +32 -0
- package/commits/models/commit-type.d.ts.map +1 -0
- package/commits/models/conventional.d.ts +49 -0
- package/commits/models/conventional.d.ts.map +1 -0
- package/commits/models/index.cjs.js +207 -0
- package/commits/models/index.cjs.js.map +1 -0
- package/commits/models/index.d.ts +7 -0
- package/commits/models/index.d.ts.map +1 -0
- package/commits/models/index.esm.js +193 -0
- package/commits/models/index.esm.js.map +1 -0
- package/commits/parse/body.d.ts +18 -0
- package/commits/parse/body.d.ts.map +1 -0
- package/commits/parse/footer.d.ts +16 -0
- package/commits/parse/footer.d.ts.map +1 -0
- package/commits/parse/header.d.ts +15 -0
- package/commits/parse/header.d.ts.map +1 -0
- package/commits/parse/index.cjs.js +505 -0
- package/commits/parse/index.cjs.js.map +1 -0
- package/commits/parse/index.d.ts +5 -0
- package/commits/parse/index.d.ts.map +1 -0
- package/commits/parse/index.esm.js +499 -0
- package/commits/parse/index.esm.js.map +1 -0
- package/commits/parse/message.d.ts +17 -0
- package/commits/parse/message.d.ts.map +1 -0
- package/commits/utils/replace-char.d.ts +19 -0
- package/commits/utils/replace-char.d.ts.map +1 -0
- package/flow/executor/execute.d.ts +72 -0
- package/flow/executor/execute.d.ts.map +1 -0
- package/flow/executor/index.cjs.js +4402 -0
- package/flow/executor/index.cjs.js.map +1 -0
- package/flow/executor/index.d.ts +3 -0
- package/flow/executor/index.d.ts.map +1 -0
- package/flow/executor/index.esm.js +4398 -0
- package/flow/executor/index.esm.js.map +1 -0
- package/flow/factory.d.ts +58 -0
- package/flow/factory.d.ts.map +1 -0
- package/flow/index.cjs.js +8506 -0
- package/flow/index.cjs.js.map +1 -0
- package/flow/index.d.ts +7 -0
- package/flow/index.d.ts.map +1 -0
- package/flow/index.esm.js +8451 -0
- package/flow/index.esm.js.map +1 -0
- package/flow/models/flow.d.ts +130 -0
- package/flow/models/flow.d.ts.map +1 -0
- package/flow/models/index.cjs.js +285 -0
- package/flow/models/index.cjs.js.map +1 -0
- package/flow/models/index.d.ts +7 -0
- package/flow/models/index.d.ts.map +1 -0
- package/flow/models/index.esm.js +268 -0
- package/flow/models/index.esm.js.map +1 -0
- package/flow/models/step.d.ts +108 -0
- package/flow/models/step.d.ts.map +1 -0
- package/flow/models/types.d.ts +150 -0
- package/flow/models/types.d.ts.map +1 -0
- package/flow/presets/conventional.d.ts +59 -0
- package/flow/presets/conventional.d.ts.map +1 -0
- package/flow/presets/independent.d.ts +61 -0
- package/flow/presets/independent.d.ts.map +1 -0
- package/flow/presets/index.cjs.js +3903 -0
- package/flow/presets/index.cjs.js.map +1 -0
- package/flow/presets/index.d.ts +4 -0
- package/flow/presets/index.d.ts.map +1 -0
- package/flow/presets/index.esm.js +3889 -0
- package/flow/presets/index.esm.js.map +1 -0
- package/flow/presets/synced.d.ts +65 -0
- package/flow/presets/synced.d.ts.map +1 -0
- package/flow/steps/analyze-commits.d.ts +19 -0
- package/flow/steps/analyze-commits.d.ts.map +1 -0
- package/flow/steps/calculate-bump.d.ts +27 -0
- package/flow/steps/calculate-bump.d.ts.map +1 -0
- package/flow/steps/create-commit.d.ts +16 -0
- package/flow/steps/create-commit.d.ts.map +1 -0
- package/flow/steps/create-tag.d.ts +22 -0
- package/flow/steps/create-tag.d.ts.map +1 -0
- package/flow/steps/fetch-registry.d.ts +19 -0
- package/flow/steps/fetch-registry.d.ts.map +1 -0
- package/flow/steps/generate-changelog.d.ts +25 -0
- package/flow/steps/generate-changelog.d.ts.map +1 -0
- package/flow/steps/index.cjs.js +3523 -0
- package/flow/steps/index.cjs.js.map +1 -0
- package/flow/steps/index.d.ts +8 -0
- package/flow/steps/index.d.ts.map +1 -0
- package/flow/steps/index.esm.js +3504 -0
- package/flow/steps/index.esm.js.map +1 -0
- package/flow/steps/update-packages.d.ts +25 -0
- package/flow/steps/update-packages.d.ts.map +1 -0
- package/flow/utils/interpolate.d.ts +11 -0
- package/flow/utils/interpolate.d.ts.map +1 -0
- package/git/factory.d.ts +233 -0
- package/git/factory.d.ts.map +1 -0
- package/git/index.cjs.js +2863 -0
- package/git/index.cjs.js.map +1 -0
- package/git/index.d.ts +5 -0
- package/git/index.d.ts.map +1 -0
- package/git/index.esm.js +2785 -0
- package/git/index.esm.js.map +1 -0
- package/git/models/commit.d.ts +129 -0
- package/git/models/commit.d.ts.map +1 -0
- package/git/models/index.cjs.js +755 -0
- package/git/models/index.cjs.js.map +1 -0
- package/git/models/index.d.ts +7 -0
- package/git/models/index.d.ts.map +1 -0
- package/git/models/index.esm.js +729 -0
- package/git/models/index.esm.js.map +1 -0
- package/git/models/ref.d.ts +120 -0
- package/git/models/ref.d.ts.map +1 -0
- package/git/models/tag.d.ts +141 -0
- package/git/models/tag.d.ts.map +1 -0
- package/git/operations/commit.d.ts +97 -0
- package/git/operations/commit.d.ts.map +1 -0
- package/git/operations/head-info.d.ts +29 -0
- package/git/operations/head-info.d.ts.map +1 -0
- package/git/operations/index.cjs.js +1954 -0
- package/git/operations/index.cjs.js.map +1 -0
- package/git/operations/index.d.ts +14 -0
- package/git/operations/index.d.ts.map +1 -0
- package/git/operations/index.esm.js +1903 -0
- package/git/operations/index.esm.js.map +1 -0
- package/git/operations/log.d.ts +104 -0
- package/git/operations/log.d.ts.map +1 -0
- package/git/operations/manage-tags.d.ts +60 -0
- package/git/operations/manage-tags.d.ts.map +1 -0
- package/git/operations/query-tags.d.ts +88 -0
- package/git/operations/query-tags.d.ts.map +1 -0
- package/git/operations/stage.d.ts +66 -0
- package/git/operations/stage.d.ts.map +1 -0
- package/git/operations/status.d.ts +173 -0
- package/git/operations/status.d.ts.map +1 -0
- package/index.cjs.js +16761 -0
- package/index.cjs.js.map +1 -0
- package/index.d.ts +102 -0
- package/index.d.ts.map +1 -0
- package/index.esm.js +16427 -0
- package/index.esm.js.map +1 -0
- package/package.json +200 -0
- package/registry/factory.d.ts +18 -0
- package/registry/factory.d.ts.map +1 -0
- package/registry/index.cjs.js +543 -0
- package/registry/index.cjs.js.map +1 -0
- package/registry/index.d.ts +5 -0
- package/registry/index.d.ts.map +1 -0
- package/registry/index.esm.js +535 -0
- package/registry/index.esm.js.map +1 -0
- package/registry/models/index.cjs.js +69 -0
- package/registry/models/index.cjs.js.map +1 -0
- package/registry/models/index.d.ts +6 -0
- package/registry/models/index.d.ts.map +1 -0
- package/registry/models/index.esm.js +66 -0
- package/registry/models/index.esm.js.map +1 -0
- package/registry/models/package-info.d.ts +55 -0
- package/registry/models/package-info.d.ts.map +1 -0
- package/registry/models/registry.d.ts +62 -0
- package/registry/models/registry.d.ts.map +1 -0
- package/registry/models/version-info.d.ts +67 -0
- package/registry/models/version-info.d.ts.map +1 -0
- package/registry/npm/cache.d.ts +50 -0
- package/registry/npm/cache.d.ts.map +1 -0
- package/registry/npm/client.d.ts +30 -0
- package/registry/npm/client.d.ts.map +1 -0
- package/registry/npm/index.cjs.js +456 -0
- package/registry/npm/index.cjs.js.map +1 -0
- package/registry/npm/index.d.ts +4 -0
- package/registry/npm/index.d.ts.map +1 -0
- package/registry/npm/index.esm.js +451 -0
- package/registry/npm/index.esm.js.map +1 -0
- package/semver/compare/compare.d.ts +100 -0
- package/semver/compare/compare.d.ts.map +1 -0
- package/semver/compare/index.cjs.js +386 -0
- package/semver/compare/index.cjs.js.map +1 -0
- package/semver/compare/index.d.ts +3 -0
- package/semver/compare/index.d.ts.map +1 -0
- package/semver/compare/index.esm.js +370 -0
- package/semver/compare/index.esm.js.map +1 -0
- package/semver/compare/sort.d.ts +36 -0
- package/semver/compare/sort.d.ts.map +1 -0
- package/semver/format/index.cjs.js +58 -0
- package/semver/format/index.cjs.js.map +1 -0
- package/semver/format/index.d.ts +2 -0
- package/semver/format/index.d.ts.map +1 -0
- package/semver/format/index.esm.js +53 -0
- package/semver/format/index.esm.js.map +1 -0
- package/semver/format/to-string.d.ts +31 -0
- package/semver/format/to-string.d.ts.map +1 -0
- package/semver/increment/bump.d.ts +37 -0
- package/semver/increment/bump.d.ts.map +1 -0
- package/semver/increment/index.cjs.js +223 -0
- package/semver/increment/index.cjs.js.map +1 -0
- package/semver/increment/index.d.ts +2 -0
- package/semver/increment/index.d.ts.map +1 -0
- package/semver/increment/index.esm.js +219 -0
- package/semver/increment/index.esm.js.map +1 -0
- package/semver/index.cjs.js +1499 -0
- package/semver/index.cjs.js.map +1 -0
- package/semver/index.d.ts +6 -0
- package/semver/index.d.ts.map +1 -0
- package/semver/index.esm.js +1458 -0
- package/semver/index.esm.js.map +1 -0
- package/semver/models/index.cjs.js +153 -0
- package/semver/models/index.cjs.js.map +1 -0
- package/semver/models/index.d.ts +5 -0
- package/semver/models/index.d.ts.map +1 -0
- package/semver/models/index.esm.js +139 -0
- package/semver/models/index.esm.js.map +1 -0
- package/semver/models/range.d.ts +83 -0
- package/semver/models/range.d.ts.map +1 -0
- package/semver/models/version.d.ts +78 -0
- package/semver/models/version.d.ts.map +1 -0
- package/semver/parse/index.cjs.js +799 -0
- package/semver/parse/index.cjs.js.map +1 -0
- package/semver/parse/index.d.ts +5 -0
- package/semver/parse/index.d.ts.map +1 -0
- package/semver/parse/index.esm.js +793 -0
- package/semver/parse/index.esm.js.map +1 -0
- package/semver/parse/range.d.ts +38 -0
- package/semver/parse/range.d.ts.map +1 -0
- package/semver/parse/version.d.ts +49 -0
- package/semver/parse/version.d.ts.map +1 -0
- package/workspace/discovery/changelog-path.d.ts +21 -0
- package/workspace/discovery/changelog-path.d.ts.map +1 -0
- package/workspace/discovery/dependencies.d.ts +145 -0
- package/workspace/discovery/dependencies.d.ts.map +1 -0
- package/workspace/discovery/discover-changelogs.d.ts +76 -0
- package/workspace/discovery/discover-changelogs.d.ts.map +1 -0
- package/workspace/discovery/index.cjs.js +2300 -0
- package/workspace/discovery/index.cjs.js.map +1 -0
- package/workspace/discovery/index.d.ts +13 -0
- package/workspace/discovery/index.d.ts.map +1 -0
- package/workspace/discovery/index.esm.js +2283 -0
- package/workspace/discovery/index.esm.js.map +1 -0
- package/workspace/discovery/packages.d.ts +83 -0
- package/workspace/discovery/packages.d.ts.map +1 -0
- package/workspace/index.cjs.js +4445 -0
- package/workspace/index.cjs.js.map +1 -0
- package/workspace/index.d.ts +52 -0
- package/workspace/index.d.ts.map +1 -0
- package/workspace/index.esm.js +4394 -0
- package/workspace/index.esm.js.map +1 -0
- package/workspace/models/index.cjs.js +284 -0
- package/workspace/models/index.cjs.js.map +1 -0
- package/workspace/models/index.d.ts +10 -0
- package/workspace/models/index.d.ts.map +1 -0
- package/workspace/models/index.esm.js +261 -0
- package/workspace/models/index.esm.js.map +1 -0
- package/workspace/models/project.d.ts +118 -0
- package/workspace/models/project.d.ts.map +1 -0
- package/workspace/models/workspace.d.ts +139 -0
- package/workspace/models/workspace.d.ts.map +1 -0
- package/workspace/operations/batch-update.d.ts +99 -0
- package/workspace/operations/batch-update.d.ts.map +1 -0
- package/workspace/operations/cascade-bump.d.ts +125 -0
- package/workspace/operations/cascade-bump.d.ts.map +1 -0
- package/workspace/operations/index.cjs.js +2675 -0
- package/workspace/operations/index.cjs.js.map +1 -0
- package/workspace/operations/index.d.ts +12 -0
- package/workspace/operations/index.d.ts.map +1 -0
- package/workspace/operations/index.esm.js +2663 -0
- package/workspace/operations/index.esm.js.map +1 -0
- package/workspace/operations/validate.d.ts +85 -0
- package/workspace/operations/validate.d.ts.map +1 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a new PackageInfo object.
|
|
3
|
+
*
|
|
4
|
+
* @param options - Configuration for the package info
|
|
5
|
+
* @param options.name - e.g., 'lodash' or '@scope/pkg'
|
|
6
|
+
* @param options.latestVersion - The most recently published semver string
|
|
7
|
+
* @param options.versions - All published semver strings in chronological order
|
|
8
|
+
* @param options.description - Brief summary of package functionality
|
|
9
|
+
* @param options.license - SPDX license identifier
|
|
10
|
+
* @param options.repository - URL to source code repository
|
|
11
|
+
* @param options.homepage - URL to project homepage or documentation site
|
|
12
|
+
* @param options.maintainers - List of maintainers with name and email
|
|
13
|
+
* @param options.keywords - Search terms for npm registry discovery
|
|
14
|
+
* @param options.lastModified - Time of last modification
|
|
15
|
+
* @returns A new PackageInfo object
|
|
16
|
+
*/
|
|
17
|
+
function createPackageInfo(options) {
|
|
18
|
+
return {
|
|
19
|
+
name: options.name,
|
|
20
|
+
description: options.description,
|
|
21
|
+
latestVersion: options.latestVersion,
|
|
22
|
+
versions: options.versions,
|
|
23
|
+
license: options.license,
|
|
24
|
+
repository: options.repository,
|
|
25
|
+
homepage: options.homepage,
|
|
26
|
+
maintainers: options.maintainers ?? [],
|
|
27
|
+
keywords: options.keywords,
|
|
28
|
+
lastModified: options.lastModified,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Creates a new VersionInfo object.
|
|
34
|
+
*
|
|
35
|
+
* @param options - Configuration for the release info
|
|
36
|
+
* @param options.version - e.g., '1.2.3' or '2.0.0-beta.1'
|
|
37
|
+
* @param options.publishedAt - ISO 8601 timestamp of publication
|
|
38
|
+
* @param options.tarball - URL to the package tarball
|
|
39
|
+
* @param options.integrity - Subresource integrity hash
|
|
40
|
+
* @param options.dependencies - Production dependencies map
|
|
41
|
+
* @param options.devDependencies - Development dependencies map
|
|
42
|
+
* @param options.peerDependencies - Peer dependencies map
|
|
43
|
+
* @param options.optionalDependencies - Optional dependencies map
|
|
44
|
+
* @param options.engines - Node/npm engine requirements
|
|
45
|
+
* @param options.nodeVersion - Node.js version used during publish
|
|
46
|
+
* @param options.npmVersion - npm version used during publish
|
|
47
|
+
* @returns A new VersionInfo object
|
|
48
|
+
*/
|
|
49
|
+
function createVersionInfo(options) {
|
|
50
|
+
return {
|
|
51
|
+
version: options.version,
|
|
52
|
+
publishedAt: options.publishedAt,
|
|
53
|
+
tarball: options.tarball,
|
|
54
|
+
integrity: options.integrity,
|
|
55
|
+
dependencies: options.dependencies,
|
|
56
|
+
devDependencies: options.devDependencies,
|
|
57
|
+
peerDependencies: options.peerDependencies,
|
|
58
|
+
optionalDependencies: options.optionalDependencies,
|
|
59
|
+
engines: options.engines,
|
|
60
|
+
nodeVersion: options.nodeVersion,
|
|
61
|
+
npmVersion: options.npmVersion,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { createPackageInfo, createVersionInfo };
|
|
66
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../libs/versioning/src/registry/models/package-info.ts","../../../../../../../../../../libs/versioning/src/registry/models/version-info.ts"],"sourcesContent":[null,null],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;AAeG;AACG,SAAU,iBAAiB,CAAC,OAWjC,EAAA;IACC,OAAO;QACL,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,QAAQ,EAAE,OAAO,CAAC,QAAQ;AAC1B,QAAA,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,EAAE;QACtC,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,YAAY,EAAE,OAAO,CAAC,YAAY;KACnC;AACH;;AC5BA;;;;;;;;;;;;;;;;AAgBG;AACG,SAAU,iBAAiB,CAAC,OAYjC,EAAA;IACC,OAAO;QACL,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;QAC1C,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;QAClD,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B;AACH;;;;"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Maintainer } from './version-info';
|
|
2
|
+
/**
|
|
3
|
+
* Package information from a registry.
|
|
4
|
+
*/
|
|
5
|
+
export interface PackageInfo {
|
|
6
|
+
/** Package name */
|
|
7
|
+
readonly name: string;
|
|
8
|
+
/** Package description */
|
|
9
|
+
readonly description?: string;
|
|
10
|
+
/** Latest version */
|
|
11
|
+
readonly latestVersion: string;
|
|
12
|
+
/** All published versions */
|
|
13
|
+
readonly versions: readonly string[];
|
|
14
|
+
/** SPDX license identifier */
|
|
15
|
+
readonly license?: string;
|
|
16
|
+
/** Repository URL */
|
|
17
|
+
readonly repository?: string;
|
|
18
|
+
/** Homepage URL */
|
|
19
|
+
readonly homepage?: string;
|
|
20
|
+
/** Package maintainers */
|
|
21
|
+
readonly maintainers: readonly Maintainer[];
|
|
22
|
+
/** Keywords */
|
|
23
|
+
readonly keywords?: readonly string[];
|
|
24
|
+
/** Time of last modification */
|
|
25
|
+
readonly lastModified?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new PackageInfo object.
|
|
29
|
+
*
|
|
30
|
+
* @param options - Configuration for the package info
|
|
31
|
+
* @param options.name - e.g., 'lodash' or '@scope/pkg'
|
|
32
|
+
* @param options.latestVersion - The most recently published semver string
|
|
33
|
+
* @param options.versions - All published semver strings in chronological order
|
|
34
|
+
* @param options.description - Brief summary of package functionality
|
|
35
|
+
* @param options.license - SPDX license identifier
|
|
36
|
+
* @param options.repository - URL to source code repository
|
|
37
|
+
* @param options.homepage - URL to project homepage or documentation site
|
|
38
|
+
* @param options.maintainers - List of maintainers with name and email
|
|
39
|
+
* @param options.keywords - Search terms for npm registry discovery
|
|
40
|
+
* @param options.lastModified - Time of last modification
|
|
41
|
+
* @returns A new PackageInfo object
|
|
42
|
+
*/
|
|
43
|
+
export declare function createPackageInfo(options: {
|
|
44
|
+
name: string;
|
|
45
|
+
latestVersion: string;
|
|
46
|
+
versions: readonly string[];
|
|
47
|
+
description?: string;
|
|
48
|
+
license?: string;
|
|
49
|
+
repository?: string;
|
|
50
|
+
homepage?: string;
|
|
51
|
+
maintainers?: readonly Maintainer[];
|
|
52
|
+
keywords?: readonly string[];
|
|
53
|
+
lastModified?: string;
|
|
54
|
+
}): PackageInfo;
|
|
55
|
+
//# sourceMappingURL=package-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-info.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/versioning/src/registry/models/package-info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,mBAAmB;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IAErB,0BAA0B;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAE7B,qBAAqB;IACrB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAE9B,6BAA6B;IAC7B,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;IAEpC,8BAA8B;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IAEzB,qBAAqB;IACrB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAE5B,mBAAmB;IACnB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAE1B,0BAA0B;IAC1B,QAAQ,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAA;IAE3C,eAAe;IACf,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAErC,gCAAgC;IAChC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC/B;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,SAAS,UAAU,EAAE,CAAA;IACnC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,WAAW,CAad"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { PackageInfo } from './package-info';
|
|
2
|
+
import type { VersionInfo } from './version-info';
|
|
3
|
+
/**
|
|
4
|
+
* Abstract interface for package registries.
|
|
5
|
+
*/
|
|
6
|
+
export interface Registry {
|
|
7
|
+
/** Registry name (e.g., "npm", "yarn") */
|
|
8
|
+
readonly name: string;
|
|
9
|
+
/** Registry URL */
|
|
10
|
+
readonly url: string;
|
|
11
|
+
/**
|
|
12
|
+
* Get the latest published version of a package.
|
|
13
|
+
*
|
|
14
|
+
* @param packageName - The package name to look up
|
|
15
|
+
* @returns The latest version string, or null if not published
|
|
16
|
+
*/
|
|
17
|
+
getLatestVersion(packageName: string): Promise<string | null>;
|
|
18
|
+
/**
|
|
19
|
+
* Check if a specific version is published.
|
|
20
|
+
*
|
|
21
|
+
* @param packageName - Name of the package to check (e.g., '@hyperfrontend/versioning')
|
|
22
|
+
* @param version - Semver version string to verify (e.g., '1.2.3')
|
|
23
|
+
* @returns True if the version is published
|
|
24
|
+
*/
|
|
25
|
+
isVersionPublished(packageName: string, version: string): Promise<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* Get full package information.
|
|
28
|
+
*
|
|
29
|
+
* @param packageName - Name of the package to query (e.g., '@hyperfrontend/versioning')
|
|
30
|
+
* @returns Package info, or null if not found
|
|
31
|
+
*/
|
|
32
|
+
getPackageInfo(packageName: string): Promise<PackageInfo | null>;
|
|
33
|
+
/**
|
|
34
|
+
* Get version-specific information including publish time.
|
|
35
|
+
*
|
|
36
|
+
* @param packageName - Name of the package to query (e.g., '@hyperfrontend/versioning')
|
|
37
|
+
* @param version - Semver version string to look up (e.g., '1.2.3')
|
|
38
|
+
* @returns Version info, or null if not found
|
|
39
|
+
*/
|
|
40
|
+
getVersionInfo(packageName: string, version: string): Promise<VersionInfo | null>;
|
|
41
|
+
/**
|
|
42
|
+
* List all published versions.
|
|
43
|
+
*
|
|
44
|
+
* @param packageName - Name of the package to query (e.g., '@hyperfrontend/versioning')
|
|
45
|
+
* @returns Array of version strings
|
|
46
|
+
*/
|
|
47
|
+
listVersions(packageName: string): Promise<readonly string[]>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Registry configuration options.
|
|
51
|
+
*/
|
|
52
|
+
export interface RegistryConfig {
|
|
53
|
+
/** Registry URL */
|
|
54
|
+
readonly url?: string;
|
|
55
|
+
/** Request timeout in milliseconds */
|
|
56
|
+
readonly timeout?: number;
|
|
57
|
+
/** Cache TTL in milliseconds */
|
|
58
|
+
readonly cacheTtl?: number;
|
|
59
|
+
/** Authentication token */
|
|
60
|
+
readonly authToken?: string;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/versioning/src/registry/models/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAEjD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IAErB,mBAAmB;IACnB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IAEpB;;;;;OAKG;IACH,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAE7D;;;;;;OAMG;IACH,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAE1E;;;;;OAKG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAEhE;;;;;;OAMG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAEjF;;;;;OAKG;IACH,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAA;CAC9D;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,mBAAmB;IACnB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IAErB,sCAAsC;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IAEzB,gCAAgC;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAE1B,2BAA2B;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maintainer information.
|
|
3
|
+
*/
|
|
4
|
+
export interface Maintainer {
|
|
5
|
+
/** Maintainer name */
|
|
6
|
+
readonly name: string;
|
|
7
|
+
/** Maintainer email */
|
|
8
|
+
readonly email?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Version-specific information from a registry.
|
|
12
|
+
*/
|
|
13
|
+
export interface VersionInfo {
|
|
14
|
+
/** Version string */
|
|
15
|
+
readonly version: string;
|
|
16
|
+
/** ISO date when published */
|
|
17
|
+
readonly publishedAt: string;
|
|
18
|
+
/** Tarball URL */
|
|
19
|
+
readonly tarball: string;
|
|
20
|
+
/** Subresource integrity hash */
|
|
21
|
+
readonly integrity?: string;
|
|
22
|
+
/** Runtime dependencies */
|
|
23
|
+
readonly dependencies?: Record<string, string>;
|
|
24
|
+
/** Development dependencies */
|
|
25
|
+
readonly devDependencies?: Record<string, string>;
|
|
26
|
+
/** Peer dependencies */
|
|
27
|
+
readonly peerDependencies?: Record<string, string>;
|
|
28
|
+
/** Optional peer dependencies */
|
|
29
|
+
readonly optionalDependencies?: Record<string, string>;
|
|
30
|
+
/** Engine requirements */
|
|
31
|
+
readonly engines?: Record<string, string>;
|
|
32
|
+
/** Node.js version range */
|
|
33
|
+
readonly nodeVersion?: string;
|
|
34
|
+
/** npm version used to publish */
|
|
35
|
+
readonly npmVersion?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new VersionInfo object.
|
|
39
|
+
*
|
|
40
|
+
* @param options - Configuration for the release info
|
|
41
|
+
* @param options.version - e.g., '1.2.3' or '2.0.0-beta.1'
|
|
42
|
+
* @param options.publishedAt - ISO 8601 timestamp of publication
|
|
43
|
+
* @param options.tarball - URL to the package tarball
|
|
44
|
+
* @param options.integrity - Subresource integrity hash
|
|
45
|
+
* @param options.dependencies - Production dependencies map
|
|
46
|
+
* @param options.devDependencies - Development dependencies map
|
|
47
|
+
* @param options.peerDependencies - Peer dependencies map
|
|
48
|
+
* @param options.optionalDependencies - Optional dependencies map
|
|
49
|
+
* @param options.engines - Node/npm engine requirements
|
|
50
|
+
* @param options.nodeVersion - Node.js version used during publish
|
|
51
|
+
* @param options.npmVersion - npm version used during publish
|
|
52
|
+
* @returns A new VersionInfo object
|
|
53
|
+
*/
|
|
54
|
+
export declare function createVersionInfo(options: {
|
|
55
|
+
version: string;
|
|
56
|
+
publishedAt: string;
|
|
57
|
+
tarball: string;
|
|
58
|
+
integrity?: string;
|
|
59
|
+
dependencies?: Record<string, string>;
|
|
60
|
+
devDependencies?: Record<string, string>;
|
|
61
|
+
peerDependencies?: Record<string, string>;
|
|
62
|
+
optionalDependencies?: Record<string, string>;
|
|
63
|
+
engines?: Record<string, string>;
|
|
64
|
+
nodeVersion?: string;
|
|
65
|
+
npmVersion?: string;
|
|
66
|
+
}): VersionInfo;
|
|
67
|
+
//# sourceMappingURL=version-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version-info.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/versioning/src/registry/models/version-info.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,sBAAsB;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IAErB,uBAAuB;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,qBAAqB;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IAExB,8BAA8B;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAE5B,kBAAkB;IAClB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IAExB,iCAAiC;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAE3B,2BAA2B;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE9C,+BAA+B;IAC/B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAEjD,wBAAwB;IACxB,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAElD,iCAAiC;IACjC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAEtD,0BAA0B;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAEzC,4BAA4B;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAE7B,kCAAkC;IAClC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IACzC,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,GAAG,WAAW,CAcd"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cache entry with data and expiration time.
|
|
3
|
+
*/
|
|
4
|
+
export interface CacheEntry<T> {
|
|
5
|
+
/** Cached data */
|
|
6
|
+
readonly data: T;
|
|
7
|
+
/** Timestamp when entry was created */
|
|
8
|
+
readonly timestamp: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Simple in-memory cache with TTL support.
|
|
12
|
+
*/
|
|
13
|
+
export interface Cache {
|
|
14
|
+
/**
|
|
15
|
+
* Get a value from the cache.
|
|
16
|
+
*
|
|
17
|
+
* @param key - Cache key
|
|
18
|
+
* @returns The cached value or undefined if not found/expired
|
|
19
|
+
*/
|
|
20
|
+
get<T>(key: string): T | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Set a value in the cache.
|
|
23
|
+
*
|
|
24
|
+
* @param key - Cache key
|
|
25
|
+
* @param value - Value to cache
|
|
26
|
+
*/
|
|
27
|
+
set<T>(key: string, value: T): void;
|
|
28
|
+
/**
|
|
29
|
+
* Delete a value from the cache.
|
|
30
|
+
*
|
|
31
|
+
* @param key - Cache key
|
|
32
|
+
*/
|
|
33
|
+
delete(key: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* Clear all cached values.
|
|
36
|
+
*/
|
|
37
|
+
clear(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Get the number of cached entries.
|
|
40
|
+
*/
|
|
41
|
+
size(): number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new cache instance.
|
|
45
|
+
*
|
|
46
|
+
* @param ttl - Time-to-live in milliseconds (default: 60000 = 1 minute)
|
|
47
|
+
* @returns A new Cache instance
|
|
48
|
+
*/
|
|
49
|
+
export declare function createCache(ttl?: number): Cache;
|
|
50
|
+
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/versioning/src/registry/npm/cache.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,kBAAkB;IAClB,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;IAEhB,uCAAuC;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB;;;;;OAKG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAA;IAElC;;;;;OAKG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAA;IAEnC;;;;OAIG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,KAAK,IAAI,IAAI,CAAA;IAEb;;OAEG;IACH,IAAI,IAAI,MAAM,CAAA;CACf;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,SAAQ,GAAG,KAAK,CAiC9C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Registry, RegistryConfig } from '../models/registry';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an npm registry client.
|
|
4
|
+
*
|
|
5
|
+
* @param config - Registry configuration
|
|
6
|
+
* @returns A Registry implementation for npm
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* const registry = createNpmRegistry()
|
|
10
|
+
* const version = await registry.getLatestVersion('@hyperfrontend/utils')
|
|
11
|
+
*/
|
|
12
|
+
export declare function createNpmRegistry(config?: RegistryConfig): Registry;
|
|
13
|
+
/**
|
|
14
|
+
* Escapes a package name for safe use in shell commands.
|
|
15
|
+
* Uses character-by-character validation to prevent injection.
|
|
16
|
+
*
|
|
17
|
+
* @param name - Package name to escape
|
|
18
|
+
* @returns Safe package name
|
|
19
|
+
* @throws {Error} If package name contains invalid characters
|
|
20
|
+
*/
|
|
21
|
+
export declare function escapePackageName(name: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Escapes a version string for safe use in shell commands.
|
|
24
|
+
*
|
|
25
|
+
* @param version - Version string to escape
|
|
26
|
+
* @returns Safe version string
|
|
27
|
+
* @throws {Error} If version contains invalid characters
|
|
28
|
+
*/
|
|
29
|
+
export declare function escapeVersion(version: string): string;
|
|
30
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/versioning/src/registry/npm/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAkBlE;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,cAAmB,GAAG,QAAQ,CAqBvE;AAqMD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgCtD;AAOD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA8BrD"}
|