@kosko/common-utils
Advanced tools
Comparing version 0.0.0-20240218093713 to 0.0.0-20240317094138
@@ -8,2 +8,9 @@ /** | ||
/** | ||
* Returns the group part of an Kubernetes API version string. | ||
* | ||
* @public | ||
*/ | ||
export declare function apiVersionToGroup(apiVersion: string): string; | ||
/** | ||
* Returns `code` of an error-like object. | ||
@@ -16,2 +23,10 @@ * | ||
/** | ||
* Returns metadata from a Kubernetes manifest. Returns `undefined` if `value` | ||
* is not a valid manifest. | ||
* | ||
* @public | ||
*/ | ||
export declare function getManifestMeta(value: unknown): ManifestMeta | undefined; | ||
/** | ||
* Returns true when type of `value` is `object` and is not `null`, `undefined` or | ||
@@ -25,2 +40,12 @@ * an array. | ||
/** | ||
* @public | ||
*/ | ||
export declare interface ManifestMeta { | ||
apiVersion: string; | ||
kind: string; | ||
name: string; | ||
namespace?: string; | ||
} | ||
/** | ||
* Transforms `input` into an array, or leave it as-is if `input` is already an array. | ||
@@ -27,0 +52,0 @@ * |
{ | ||
"name": "@kosko/common-utils", | ||
"version": "0.0.0-20240218093713", | ||
"version": "0.0.0-20240317094138", | ||
"description": "Common utilities used in Kosko.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://kosko.dev", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
17702
139