agent-claw: automated task changes
This commit is contained in:
15
cdk/node_modules/aws-cdk-lib/cloudformation-include/lib/private/yaml-cfn.d.ts
generated
vendored
Normal file
15
cdk/node_modules/aws-cdk-lib/cloudformation-include/lib/private/yaml-cfn.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Serializes the given data structure into valid YAML.
|
||||
*
|
||||
* @param obj the data structure to serialize
|
||||
* @returns a string containing the YAML representation of {@param obj}
|
||||
*/
|
||||
export declare function serialize(obj: any): string;
|
||||
/**
|
||||
* Deserialize the YAML into the appropriate data structure.
|
||||
*
|
||||
* @param str the string containing YAML
|
||||
* @returns the data structure the YAML represents
|
||||
* (most often in case of CloudFormation, an object)
|
||||
*/
|
||||
export declare function deserialize(str: string): any;
|
||||
1
cdk/node_modules/aws-cdk-lib/cloudformation-include/lib/private/yaml-cfn.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/cloudformation-include/lib/private/yaml-cfn.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.serialize=serialize,exports.deserialize=deserialize;var yaml=()=>{var tmp=require("yaml");return yaml=()=>tmp,tmp},yaml_types=()=>{var tmp=require("yaml/types");return yaml_types=()=>tmp,tmp};function serialize(obj){const oldFold=yaml_types().strOptions.fold.lineWidth;try{return yaml_types().strOptions.fold.lineWidth=0,yaml().stringify(obj,{schema:"yaml-1.1"})}finally{yaml_types().strOptions.fold.lineWidth=oldFold}}function deserialize(str){return parseYamlStrWithCfnTags(str)}function makeTagForCfnIntrinsic(intrinsicName,addFnPrefix){return{identify(value){return typeof value=="string"},tag:`!${intrinsicName}`,resolve:(_doc,cstNode)=>{const ret={};return ret[addFnPrefix?`Fn::${intrinsicName}`:intrinsicName]=parseYamlStrWithCfnTags(cstNode.toString().substring(intrinsicName.length+1)),ret}}}const shortForms=["Base64","Cidr","FindInMap","GetAZs","ImportValue","Join","Sub","Select","Split","Transform","And","Equals","If","Not","Or","GetAtt"].map(name=>makeTagForCfnIntrinsic(name,!0)).concat(makeTagForCfnIntrinsic("Ref",!1),makeTagForCfnIntrinsic("Condition",!1));function parseYamlStrWithCfnTags(text){return yaml().parse(text,{customTags:shortForms,schema:"core"})}
|
||||
Reference in New Issue
Block a user