@cloudnux/aws-cloud-provider 0.2.0 → 0.3.0

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.
@@ -1007,9 +1007,9 @@ var ansiStyles = assembleStyles();
1007
1007
  var ansi_styles_default = ansiStyles;
1008
1008
 
1009
1009
  // ../../../node_modules/chalk/source/vendor/supports-color/index.js
1010
- import process2 from "process";
1011
- import os from "os";
1012
- import tty from "tty";
1010
+ import process2 from "node:process";
1011
+ import os from "node:os";
1012
+ import tty from "node:tty";
1013
1013
  function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
1014
1014
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
1015
1015
  const position = argv.indexOf(prefix + flag);
@@ -1346,7 +1346,7 @@ var errorToString = (error) => {
1346
1346
  };
1347
1347
 
1348
1348
  // ../../utils/src/logging/index.ts
1349
- var currentLogLevel = env.int("LOG_LEVEL", logLevels.info);
1349
+ var currentLogLevel = logLevels[env("LOG_LEVEL")?.toLowerCase()] ?? logLevels.info;
1350
1350
  var logger = {
1351
1351
  fatal: (message, meta) => {
1352
1352
  if (currentLogLevel >= logLevels.fatal) {
@@ -1539,7 +1539,7 @@ function createRouter() {
1539
1539
  routes.push({
1540
1540
  type: "http",
1541
1541
  method,
1542
- routeKey: route,
1542
+ routeKey: route.toLowerCase(),
1543
1543
  handler
1544
1544
  });
1545
1545
  },