aws-lambda-factory
Advanced tools
Comparing version 0.4.94 to 0.4.95
@@ -6,2 +6,10 @@ # Change Log | ||
## <small>0.4.95 (2022-05-02)</small> | ||
* Chore(Naming): Accounting for `cloud-iac` ([ca3c85f](https://github.com/iac-factory/cli-utilities/commit/ca3c85f)) | ||
## <small>0.4.94 (2022-05-02)</small> | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "aws-lambda-factory", | ||
"version": "0.4.94", | ||
"version": "0.4.95", | ||
"main": "index.js", | ||
@@ -41,3 +41,3 @@ "description": "...", | ||
}, | ||
"gitHead": "d1aea1e92d64b3489dfd40cfab08f4c1446e00c0" | ||
"gitHead": "18c4be682176b41ad43eb3f536f3c29de7803582" | ||
} |
@@ -66,3 +66,3 @@ "use strict"; | ||
options.name = [options.name, options.environment].join(options.joiner); | ||
/*** Handle cases where an organization is prefixed e.g. @cloud-iac/lambda-function-name */ | ||
/*** Handle cases where an organization is prefixed e.g. @aws-lambda-factory/lambda-function-name */ | ||
options.name = (options.name.includes("/")) ? options.name.split("/").pop() : options.name; | ||
@@ -69,0 +69,0 @@ assert_1.default.equal(String(options.name).length > 0, true); |
@@ -146,3 +146,3 @@ import TTY from "tty"; | ||
/*** Handle cases where an organization is prefixed e.g. @cloud-iac/lambda-function-name */ | ||
/*** Handle cases where an organization is prefixed e.g. @aws-lambda-factory/lambda-function-name */ | ||
options.name = ( options.name.includes( "/" ) ) ? options.name.split( "/" ).pop() as string : ( options.name as string ); | ||
@@ -149,0 +149,0 @@ |
@@ -20,3 +20,3 @@ "use strict"; | ||
const CLI = new commander_1.Command() | ||
.name("cloud-iac") | ||
.name("aws-lambda-factory") | ||
.version(((_b = (_a = process.env) === null || _a === void 0 ? void 0 : _a["VERSION"]) !== null && _b !== void 0 ? _b : "0.0.0"), "-v, --version", "Display the Package Version") | ||
@@ -23,0 +23,0 @@ .helpOption("-h, --help", "Display Help Information"); |
@@ -8,3 +8,3 @@ import { Command, Option } from "commander"; | ||
const CLI = new Command() | ||
.name( "cloud-iac" ) | ||
.name( "aws-lambda-factory" ) | ||
.version( (process.env?.[ "VERSION" ] ?? "0.0.0") as string, "-v, --version", "Display the Package Version" ) | ||
@@ -11,0 +11,0 @@ .helpOption( "-h, --help", "Display Help Information" ); |
420978