UNPKG

@cloud-copilot/iam-collect

Version:

Collect IAM information from AWS Accounts

25 lines 727 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.iamCollectVersion = iamCollectVersion; const readPackageFile_js_1 = require("../utils/readPackageFile.js"); let packageCache = undefined; /** * Get the package data version * * @returns the package data version */ async function getPackageData() { if (!packageCache) { const packageJson = await (0, readPackageFile_js_1.readPackageFile)(['package.json']); packageCache = JSON.parse(packageJson); } return packageCache; } /** * Get the version of the package */ async function iamCollectVersion() { const data = await getPackageData(); return data.version; } //# sourceMappingURL=packageVersion.js.map