@dayofweek/dcli 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/dist/client.js +1 -5
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -91,11 +91,7 @@ export class DayOfWeekClient {
91
91
  }
92
92
  // ── Schema ────────────────────────────────────────────────────────────────
93
93
  async getSchema() {
94
- // Schema endpoint doesn't require auth
95
- const res = await fetch(`${this.baseUrl}/schema`);
96
- if (!res.ok)
97
- throw new ApiError(res.status, await res.text());
98
- return res.json();
94
+ return this.get("/schema");
99
95
  }
100
96
  // ── HTTP helpers ──────────────────────────────────────────────────────────
101
97
  async get(path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dayofweek/dcli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "CLI for the Day of Week AgTech platform — read data and submit proposals for review",
5
5
  "license": "MIT",
6
6
  "type": "module",