UNPKG

cdk8s

Version:

This is the core library of Cloud Development Kit (CDK) for Kubernetes (cdk8s). cdk8s apps synthesize into standard Kubernetes manifests which can be applied to any Kubernetes cluster.

42 lines (41 loc) 1.81 kB
/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed */ export declare function hasOwnProperty(obj: any, key: any): any; export declare function _objectKeys(obj: any): any[]; /** * Deeply clone the object. * https://jsperf.com/deep-copy-vs-json-stringify-json-parse/25 (recursiveDeepCopy) * @param {any} obj value to clone * @return {any} cloned obj */ export declare function _deepClone(obj: any): any; export declare function isInteger(str: string): boolean; /** * Escapes a json pointer path * @param path The raw pointer * @return the Escaped path */ export declare function escapePathComponent(path: string): string; /** * Unescapes a json pointer path * @param path The escaped pointer * @return The unescaped path */ export declare function unescapePathComponent(path: string): string; export declare function _getPathRecursive(root: Object, obj: Object): string; export declare function getPath(root: Object, obj: Object): string; /** * Recursively checks whether an object has any undefined values inside. */ export declare function hasUndefined(obj: any): boolean; export declare type JsonPatchErrorName = 'SEQUENCE_NOT_AN_ARRAY' | 'OPERATION_NOT_AN_OBJECT' | 'OPERATION_OP_INVALID' | 'OPERATION_PATH_INVALID' | 'OPERATION_FROM_REQUIRED' | 'OPERATION_VALUE_REQUIRED' | 'OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED' | 'OPERATION_PATH_CANNOT_ADD' | 'OPERATION_PATH_UNRESOLVABLE' | 'OPERATION_FROM_UNRESOLVABLE' | 'OPERATION_PATH_ILLEGAL_ARRAY_INDEX' | 'OPERATION_VALUE_OUT_OF_BOUNDS' | 'TEST_OPERATION_FAILED'; export declare class PatchError extends Error { name: JsonPatchErrorName; index?: number; operation?: any; tree?: any; constructor(message: string, name: JsonPatchErrorName, index?: number, operation?: any, tree?: any); }