@kabeep/forex-cli
Advanced tools
+4
-5
@@ -451,6 +451,5 @@ #!/usr/bin/env node | ||
| // src/helper/get-currencies.ts | ||
| async function getCurrencies(client) { | ||
| async function getCurrencies(client, date) { | ||
| const unexpected = ensure_directory_default(cacheDirectory); | ||
| if (unexpected) throw new Error("CREATE_CACHE_DIR"); | ||
| const date = /* @__PURE__ */ new Date(); | ||
| const formatDateString = (/* @__PURE__ */ new Date()).toISOString().split("T")[0]; | ||
@@ -658,3 +657,3 @@ const cachePath = path.join(cacheDirectory, "currencies.json"); | ||
| "CMD_MSG_FETCH_CURRENCIES", | ||
| () => get_currencies_default(client), | ||
| () => get_currencies_default(client, date), | ||
| { date: formatDateString }, | ||
@@ -697,3 +696,3 @@ verbose ? spinner : void 0 | ||
| "CMD_MSG_FETCH_CURRENCIES", | ||
| () => get_currencies_default(client), | ||
| () => get_currencies_default(client, date), | ||
| { date: formatDateString }, | ||
@@ -792,3 +791,3 @@ verbose ? spinner : void 0 | ||
| "CMD_MSG_FETCH_CURRENCIES", | ||
| () => get_currencies_default(client), | ||
| () => get_currencies_default(client, date), | ||
| { date: formatDateString }, | ||
@@ -795,0 +794,0 @@ verbose ? spinner : void 0 |
+1
-1
| { | ||
| "name": "@kabeep/forex-cli", | ||
| "description": "A Node.js Library to convert foreign exchange in terminal", | ||
| "version": "0.4.0", | ||
| "version": "0.4.1", | ||
| "type": "module", | ||
@@ -6,0 +6,0 @@ "main": "./dist/cli.js", |
77697
-0.02%927
-0.11%