@orth/cli 0.2.25 → 0.2.26

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.
@@ -62,7 +62,7 @@ async function apiCommand(slug, path, options) {
62
62
  const isFree = endpointPrice === 0 || endpointPrice === "free" || endpointPrice === "0";
63
63
  const priceDisplay = typeof endpointPrice === 'string'
64
64
  ? endpointPrice
65
- : `$${parseFloat((Number(endpointPrice) / 1000000).toFixed(4))}`;
65
+ : `$${parseFloat(Number(endpointPrice).toFixed(4))}`;
66
66
  console.log(chalk_1.default.bold("Price: ") +
67
67
  (isFree ? chalk_1.default.green("free") : chalk_1.default.yellow(priceDisplay)));
68
68
  }
@@ -150,7 +150,7 @@ async function apiCommand(slug, path, options) {
150
150
  ? chalk_1.default.green("free")
151
151
  : typeof ep === 'string'
152
152
  ? chalk_1.default.dim(ep)
153
- : chalk_1.default.dim(`$${parseFloat((Number(ep) / 1000000).toFixed(4))}`);
153
+ : chalk_1.default.dim(`$${parseFloat(Number(ep).toFixed(4))}`);
154
154
  console.log(`${method} ${chalk_1.default.white(endpoint.path)} ${price}`);
155
155
  if (endpoint.description) {
156
156
  console.log(chalk_1.default.gray(` ${endpoint.description.slice(0, 80)}${endpoint.description.length > 80 ? "..." : ""}`));
@@ -178,7 +178,7 @@ async function apiCommand(slug, path, options) {
178
178
  ? chalk_1.default.green("free")
179
179
  : typeof ep2 === 'string'
180
180
  ? chalk_1.default.dim(ep2)
181
- : chalk_1.default.dim(`$${parseFloat((Number(ep2) / 1000000).toFixed(4))}`);
181
+ : chalk_1.default.dim(`$${parseFloat(Number(ep2).toFixed(4))}`);
182
182
  console.log(`${method} ${chalk_1.default.white(endpoint.path)} ${price}`);
183
183
  if (endpoint.description) {
184
184
  console.log(chalk_1.default.gray(` ${endpoint.description.slice(0, 80)}${endpoint.description.length > 80 ? "..." : ""}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orth/cli",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "description": "CLI to access all APIs and skills on the Orthogonal platform",
5
5
  "main": "dist/index.js",
6
6
  "bin": {