@awsless/awsless 0.0.409 → 0.0.411

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js CHANGED
@@ -14980,9 +14980,10 @@ var auth = (program2) => {
14980
14980
  // src/cli/command/bind.ts
14981
14981
  import { unwrap as unwrap3 } from "@awsless/formation";
14982
14982
  import { log as log9, note as note3 } from "@clack/prompts";
14983
+ import { constantCase as constantCase14 } from "change-case";
14983
14984
  import { spawn } from "child_process";
14984
14985
  var bind = (program2) => {
14985
- program2.command("bind").argument("[command...]", "The command to execute").option("--configs <string...>", "List of config values that will be accessable", []).description(`Bind your site environment variables to a command`).action(async (commands7 = [], opts) => {
14986
+ program2.command("bind").argument("[command...]", "The command to execute").option("--config <string...>", "List of config values that will be accessable", (v) => v.split(",")).description(`Bind your site environment variables to a command`).action(async (commands7 = [], opts) => {
14986
14987
  await layout("bind", async ({ appConfig, stackConfigs }) => {
14987
14988
  const region = appConfig.region;
14988
14989
  const credentials = getCredentials(appConfig.profile);
@@ -15003,6 +15004,13 @@ var bind = (program2) => {
15003
15004
  } else {
15004
15005
  log9.warning("No bindings available.");
15005
15006
  }
15007
+ const configs = {};
15008
+ for (const name of opts.config) {
15009
+ configs[`CONFIG_${constantCase14(name)}`] = name;
15010
+ }
15011
+ if (opts.config.length > 0) {
15012
+ note3(wrap(opts.config.map((v) => color.label(constantCase14(v)))), "Bind Config");
15013
+ }
15006
15014
  if (commands7.length === 0) {
15007
15015
  return "No command to execute.";
15008
15016
  }
@@ -15014,10 +15022,10 @@ var bind = (program2) => {
15014
15022
  ...process.env,
15015
15023
  // Pass the site bind env vars
15016
15024
  ...env,
15025
+ // Pass in the config values to load
15026
+ ...configs,
15017
15027
  // Pass the app config name
15018
15028
  APP: appConfig.name,
15019
- // Pass in the config values to load
15020
- CONFIG: opts.configs.join(","),
15021
15029
  // Basic AWS info
15022
15030
  AWS_REGION: appConfig.region,
15023
15031
  AWS_ACCOUNT_ID: accountId,
@@ -1 +1 @@
1
- aa142892fc1bedb9e6e6ed95de696f37638f4b40
1
+ 26e903678b395660048b1f1250325821b1418163
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.409",
3
+ "version": "0.0.411",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -30,16 +30,16 @@
30
30
  "peerDependencies": {
31
31
  "@awsless/lambda": "^0.0.30",
32
32
  "@awsless/iot": "^0.0.2",
33
- "@awsless/open-search": "^0.0.15",
34
33
  "@awsless/redis": "^0.0.13",
35
- "@awsless/sns": "^0.0.7",
36
- "@awsless/ssm": "^0.0.7",
37
- "@awsless/sqs": "^0.0.7",
38
- "@awsless/s3": "^0.0.18",
34
+ "@awsless/mqtt": "^0.0.2",
35
+ "@awsless/open-search": "^0.0.15",
36
+ "@awsless/validate": "^0.0.16",
39
37
  "@awsless/json": "^0.0.6",
40
38
  "@awsless/weak-cache": "^0.0.1",
41
- "@awsless/validate": "^0.0.16",
42
- "@awsless/mqtt": "^0.0.2"
39
+ "@awsless/s3": "^0.0.18",
40
+ "@awsless/sns": "^0.0.7",
41
+ "@awsless/sqs": "^0.0.7",
42
+ "@awsless/ssm": "^0.0.7"
43
43
  },
44
44
  "dependencies": {
45
45
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -113,14 +113,14 @@
113
113
  "zip-a-folder": "^3.1.6",
114
114
  "zod": "^3.21.4",
115
115
  "zod-to-json-schema": "^3.22.3",
116
- "@awsless/code": "^0.0.10",
117
116
  "@awsless/duration": "^0.0.1",
118
117
  "@awsless/formation": "^0.0.57",
119
118
  "@awsless/size": "^0.0.1",
120
- "@awsless/ts-file-cache": "^0.0.10",
121
- "@awsless/graphql": "^0.0.9",
122
119
  "@awsless/json": "^0.0.6",
123
- "@awsless/validate": "^0.0.16"
120
+ "@awsless/validate": "^0.0.16",
121
+ "@awsless/code": "^0.0.10",
122
+ "@awsless/ts-file-cache": "^0.0.10",
123
+ "@awsless/graphql": "^0.0.9"
124
124
  },
125
125
  "devDependencies": {
126
126
  "@node-rs/bcrypt": "^1.10.5"