aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
4 lines (3 loc) • 1.88 kB
JavaScript
;function _aws_cdk_assertions_Capture(p){}function _aws_cdk_assertions_Template(p){}function _aws_cdk_assertions_TemplateParsingOptions(p){}function _aws_cdk_assertions_Match(p){}function _aws_cdk_assertions_Matcher(p){}function _aws_cdk_assertions_MatchFailure(p){if(p!=null){visitedObjects.add(p);try{visitedObjects.has(p.matcher)||(p.matcher,void 0)}finally{visitedObjects.delete(p)}}}function _aws_cdk_assertions_MatchCapture(p){if(p!=null){visitedObjects.add(p);try{visitedObjects.has(p.capture)||(p.capture,void 0)}finally{visitedObjects.delete(p)}}}function _aws_cdk_assertions_MatchResult(p){}function _aws_cdk_assertions_Annotations(p){}function print(name,deprecationMessage){const deprecated=process.env.JSII_DEPRECATED,deprecationMode=["warn","fail","quiet"].includes(deprecated)?deprecated:"warn",message=`${name} is deprecated.
${deprecationMessage.trim()}
This API will be removed in the next major release.`;switch(deprecationMode){case"fail":throw new DeprecationError(message);case"warn":console.warn("[WARNING]",message);break}}function getPropertyDescriptor(obj,prop){const descriptor=Object.getOwnPropertyDescriptor(obj,prop);if(descriptor)return descriptor;const proto=Object.getPrototypeOf(obj),prototypeDescriptor=proto&&getPropertyDescriptor(proto,prop);return prototypeDescriptor||{}}const visitedObjects=new Set;class DeprecationError extends Error{constructor(...args){super(...args),Object.defineProperty(this,"name",{configurable:!1,enumerable:!0,value:"DeprecationError",writable:!1})}}module.exports={print,getPropertyDescriptor,DeprecationError,_aws_cdk_assertions_Capture,_aws_cdk_assertions_Template,_aws_cdk_assertions_TemplateParsingOptions,_aws_cdk_assertions_Match,_aws_cdk_assertions_Matcher,_aws_cdk_assertions_MatchFailure,_aws_cdk_assertions_MatchCapture,_aws_cdk_assertions_MatchResult,_aws_cdk_assertions_Annotations};