{"_id":"@awboost/cfn-resource-schemas","_rev":"2-1f9ecadeab00f30eb1057f7f1d9f2b5b","name":"@awboost/cfn-resource-schemas","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"@awboost/cfn-resource-schemas","version":"0.1.0","publishConfig":{"access":"public"},"description":"Fetch and validate the latest CloudFormation Resource Schemas from AWS","type":"module","author":{"name":"Gordon Leigh","email":"gordonmleigh@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/awboost/cfn-resource-schemas.git"},"license":"MIT","exports":{".":{"types":"./lib/fetchResourceSchemas.d.ts","default":"./lib/fetchResourceSchemas.js"},"./meta":{"types":"./lib/meta.d.ts","default":"./lib/meta.js"},"./types":{"types":"./lib/types.d.ts","default":"./lib/types.js"}},"scripts":{"build":"npm run clean && npm run compile && npm run lint","clean":"rm -rf lib/","compile":"tsc","lint":"eslint src/ --ext=ts"},"dependencies":{"@types/json-schema":"^7.0.13","ajv":"^8.12.0","ajv-formats":"^2.1.1","jszip":"^3.10.1"},"devDependencies":{"@types/node":"^18.18.9","@typescript-eslint/eslint-plugin":"^6.10.0","@typescript-eslint/parser":"^6.10.0","eslint":"^8.53.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","prettier":"^3.0.3","typescript":"^5.2.2"},"_id":"@awboost/cfn-resource-schemas@0.1.0","gitHead":"be000bc00df00950d8e3b770cb712663460644b1","bugs":{"url":"https://github.com/awboost/cfn-resource-schemas/issues"},"homepage":"https://github.com/awboost/cfn-resource-schemas#readme","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Ip2mhOBZOEKUtq8/VR6h2RcnRpJQbUpenDKZRuTp+IkfnLFK0E3+XsgGXWFrcPTsH8fvT1H2xOY0kYnqGcr/fw==","shasum":"0f8f720e67c525b0daf51285eb5899c35c0a6b12","tarball":"https://registry.npmjs.org/@awboost/cfn-resource-schemas/-/cfn-resource-schemas-0.1.0.tgz","fileCount":22,"unpackedSize":159329,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDxDAzre0AQQgvj8drugu7THbJ8TryWpLiLk9shdN+rwIhAKr6mqbT04GurdXAOus9uVwPOHHhmtLqxIs9zzjdTo1F"}]},"_npmUser":{"name":"gordonmleigh","email":"gordonmleigh@gmail.com"},"directories":{},"maintainers":[{"name":"gordonmleigh","email":"gordonmleigh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cfn-resource-schemas_0.1.0_1699785830918_0.5858671458503424"},"_hasShrinkwrap":false},"0.2.0":{"name":"@awboost/cfn-resource-schemas","version":"0.2.0","publishConfig":{"access":"public"},"description":"Fetch and validate the latest CloudFormation Resource Schemas from AWS","type":"module","author":{"name":"Gordon Leigh","email":"gordonmleigh@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/awboost/cfn-resource-schemas.git"},"license":"MIT","exports":{".":{"types":"./lib/schemas.d.ts","default":"./lib/schemas.js"},"./meta":{"types":"./lib/meta.d.ts","default":"./lib/meta.js"},"./nodes":{"types":"./lib/nodes.d.ts","default":"./lib/nodes.js"},"./types":{"types":"./lib/types.d.ts","default":"./lib/types.js"}},"scripts":{"build":"npm run clean && npm run compile && npm run lint","clean":"rm -rf lib/","compile":"tsc","lint":"eslint src/ --ext=ts","postpublish":"npm run tag-version && git push --follow-tags","postversion":"npm --prefix=../.. run sync-versions && git commit -am ${npm_package_name}@${npm_package_version}","preversion":"git diff-index --quiet HEAD -- || ! echo 'Uncommitted changes present'","tag-version":"git tag -a ${npm_package_name}@${npm_package_version} -m ${npm_package_name}@v${npm_package_version}"},"dependencies":{"@types/json-schema":"^7.0.13","ajv":"^8.12.0","ajv-formats":"^2.1.1","json-canonicalize":"^1.0.6","json-pointer":"^0.6.2","jszip":"^3.10.1"},"_id":"@awboost/cfn-resource-schemas@0.2.0","gitHead":"c79553c36fdde311574daf0a37b3f33bb52203e7","bugs":{"url":"https://github.com/awboost/cfn-resource-schemas/issues"},"homepage":"https://github.com/awboost/cfn-resource-schemas#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ck9BZWRhIfOzaIQE+OcwJSFrcnS8cyXP26w6ROKm7JmKW7lxAHkj4d6dOpMHMz8jMHJIR3gQS2U3XIjhJyjv+A==","shasum":"7cf22d753a9ba43676c23bc4f6abd78c3126c14f","tarball":"https://registry.npmjs.org/@awboost/cfn-resource-schemas/-/cfn-resource-schemas-0.2.0.tgz","fileCount":28,"unpackedSize":260329,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNWGpyOIZqsJJW/V6HggOkZeH0RjXlD0QvwjCOHOwZ5AIgajbOjJn5xfEUFbx3wR7ZB967FfJndG5k5o/e2v9DW0M="}]},"_npmUser":{"name":"gordonmleigh","email":"gordonmleigh@gmail.com"},"directories":{},"maintainers":[{"name":"gordonmleigh","email":"gordonmleigh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cfn-resource-schemas_0.2.0_1705173339661_0.3913933370641518"},"_hasShrinkwrap":false},"0.2.1":{"name":"@awboost/cfn-resource-schemas","version":"0.2.1","publishConfig":{"access":"public"},"description":"Fetch and validate the latest CloudFormation Resource Schemas from AWS","type":"module","author":{"name":"Gordon Leigh","email":"gordonmleigh@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/awboost/cfn-resource-schemas.git"},"license":"MIT","exports":{".":{"types":"./lib/schemas.d.ts","default":"./lib/schemas.js"},"./meta":{"types":"./lib/meta.d.ts","default":"./lib/meta.js"},"./nodes":{"types":"./lib/nodes.d.ts","default":"./lib/nodes.js"},"./types":{"types":"./lib/types.d.ts","default":"./lib/types.js"}},"scripts":{"build":"npm run clean && npm run compile && npm run lint","clean":"rm -rf lib/","compile":"tsc","lint":"eslint src/ --ext=ts","postpublish":"npm run tag-version && git push --follow-tags","postversion":"npm --prefix=../.. run sync-versions && git commit -am ${npm_package_name}@${npm_package_version}","preversion":"git diff-index --quiet HEAD -- || ! echo 'Uncommitted changes present'","tag-version":"git tag -a ${npm_package_name}@${npm_package_version} -m ${npm_package_name}@v${npm_package_version}"},"dependencies":{"@types/json-schema":"^7.0.13","ajv":"^8.12.0","ajv-formats":"^2.1.1","json-canonicalize":"^1.0.6","json-pointer":"^0.6.2","jszip":"^3.10.1"},"_id":"@awboost/cfn-resource-schemas@0.2.1","gitHead":"f1a20f8839b688b9f3772f2bab91221fd6e0fdd9","bugs":{"url":"https://github.com/awboost/cfn-resource-schemas/issues"},"homepage":"https://github.com/awboost/cfn-resource-schemas#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-7j1EbYrkfRV7ff5R+jQyE8kU4qvsCecCfC9fygcc/0hjGoDsCs76z9gjMH0euSUQU4IRNaYI83F7Dh31maAt4A==","shasum":"0e94a39265c14b2ccbbdf82500fadf7cfd7e7392","tarball":"https://registry.npmjs.org/@awboost/cfn-resource-schemas/-/cfn-resource-schemas-0.2.1.tgz","fileCount":29,"unpackedSize":268314,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHv9yOpMr0kMCNxmqWJksti4KJM0FHyNjoZnunRvHvSSAiEA4kUzz9SFq51a9fI4zM+3xVprB32ss/BnyPu49c1v8Os="}]},"_npmUser":{"name":"gordonmleigh","email":"gordonmleigh@gmail.com"},"directories":{},"maintainers":[{"name":"gordonmleigh","email":"gordonmleigh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cfn-resource-schemas_0.2.1_1706391998469_0.47611054978340595"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-12T10:43:50.809Z","0.1.0":"2023-11-12T10:43:51.102Z","modified":"2024-01-27T21:46:38.807Z","0.2.0":"2024-01-13T19:15:39.834Z","0.2.1":"2024-01-27T21:46:38.641Z"},"maintainers":[{"name":"gordonmleigh","email":"gordonmleigh@gmail.com"}],"description":"Fetch and validate the latest CloudFormation Resource Schemas from AWS","homepage":"https://github.com/awboost/cfn-resource-schemas#readme","repository":{"type":"git","url":"git+https://github.com/awboost/cfn-resource-schemas.git"},"author":{"name":"Gordon Leigh","email":"gordonmleigh@gmail.com"},"bugs":{"url":"https://github.com/awboost/cfn-resource-schemas/issues"},"license":"MIT","readme":"# @awboost/cfn-resource-schemas\n\nFetch and validate the latest [CloudFormation Resource Schemas](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-type-schemas.html) from AWS.\n\n```typescript\nimport { fetchResourceSchemas } from \"@awboost/cfn-resource-schemas\";\n\n// fetchResourceSchemas returns an async generator\nfor await (const schema of downloadAwsResourceSchemas()) {\n  // do something with the schema\n}\n```\n\n## Function `downloadAwsResourceSchemas`\n\nGet the latest schemas.\n\n```typescript\nimport { downloadAwsResourceSchemas } from \"@awboost/cfn-resource-schemas\";\n```\n\n```typescript\nexport async function* downloadAwsResourceSchemas({\n  skipValidate = false,\n  url = \"https://schema.cloudformation.us-east-1.amazonaws.com/CloudformationSchema.zip\",\n}: DownloadAwsResourceSchemasOptions): AsyncGenerator<\n  ResourceTypeSchema & { $id: string }\n>;\n```\n\n## Type `ResourceTypeSchema`\n\nDescription of a CloudFormation resource.\n\n```typescript\nimport { ResourceTypeSchema } from \"@awboost/cfn-resource-schemas/types\";\n```\n\n## Parsed representation\n\nThis package also provides a set of node classes to represent schemas, similar to an AST. There are available from the `\"@awboost/cfn-resource-schemas/nodes\"` module path.\n\n```typescript\nimport { SchemaFileNode } from \"@awboost/cfn-resource-schemas/nodes\";\nimport { readFile } from \"node:fs/promises\";\n\nconst path = \"path-to-schema.json\";\nconst schema = JSON.parse(await readFile(path, \"utf-8\"));\nconst schemaFile = new SchemaFileNode(schema, path);\n```\n","readmeFilename":"README.md"}