@perfsee/utils
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -6,2 +6,9 @@ # Change Log | ||
# [1.1.0](https://github.com/perfsee/perfsee/compare/v1.0.0...v1.1.0) (2022-11-04) | ||
### Features | ||
- **platform-server:** impl application config and settings ([87432b5](https://github.com/perfsee/perfsee/commit/87432b584f967b75d4858b4c105a5b796ebf478d)) | ||
- **platform:** adapt frontend with application settings ([233a8f2](https://github.com/perfsee/perfsee/commit/233a8f2fb09ef50534428fdb3a66dfd9fbb5cc01)) | ||
# [1.0.0](https://github.com/perfsee/perfsee/compare/v1.0.0-alpha.4...v1.0.0) (2022-10-18) | ||
@@ -8,0 +15,0 @@ |
export declare enum GitHost { | ||
Unknown = "Unknown", | ||
Github = "Github", | ||
@@ -16,2 +17,3 @@ Gitlab = "Gitlab" | ||
Gitlab: string; | ||
Unknown: string; | ||
}; | ||
@@ -31,2 +33,2 @@ export declare class CommonGitHost implements IGitHost { | ||
} | ||
export declare function gitHostFromDomain(domainOrHost: string): GitHost | undefined; | ||
export declare function gitHostFromDomain(domainOrHost: string): GitHost; |
@@ -21,2 +21,3 @@ "use strict"; | ||
(function (GitHost) { | ||
GitHost["Unknown"] = "Unknown"; | ||
GitHost["Github"] = "Github"; | ||
@@ -28,6 +29,7 @@ GitHost["Gitlab"] = "Gitlab"; | ||
[GitHost.Gitlab]: 'gitlab.com', | ||
[GitHost.Unknown]: 'unknown-git-host.com', | ||
}; | ||
class CommonGitHost { | ||
constructor(project) { | ||
this.path = `${exports.hostDomains[project.host]}/${project.namespace}/${project.name}`; | ||
this.path = `${exports.hostDomains[project.host] ?? ''}/${project.namespace}/${project.name}`; | ||
} | ||
@@ -62,4 +64,5 @@ repoUrl() { | ||
} | ||
return GitHost.Unknown; | ||
} | ||
exports.gitHostFromDomain = gitHostFromDomain; | ||
//# sourceMappingURL=host.js.map |
{ | ||
"name": "@perfsee/utils", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "utilities function of perfsee platform", | ||
@@ -20,3 +20,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "16ce49447f62f2365d564bf36aaa84fd91469760" | ||
"gitHead": "4b292cbcac782e08c311539be876419870600c7d" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32059
328