trickle-cli 0.1.3 → 0.1.4
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/api-client.js +1 -1
- package/package.json +1 -1
- package/src/api-client.ts +1 -1
package/dist/api-client.js
CHANGED
|
@@ -157,7 +157,7 @@ async function fetchFunctionSamples() {
|
|
|
157
157
|
const samples = [];
|
|
158
158
|
for (const fn of functions) {
|
|
159
159
|
try {
|
|
160
|
-
const data = await fetchJson(`/api/types/${
|
|
160
|
+
const data = await fetchJson(`/api/types/${fn.id}`);
|
|
161
161
|
if (data.snapshots && data.snapshots.length > 0) {
|
|
162
162
|
const snap = data.snapshots[0];
|
|
163
163
|
if (snap.sample_input || snap.sample_output) {
|
package/package.json
CHANGED
package/src/api-client.ts
CHANGED
|
@@ -256,7 +256,7 @@ export async function fetchFunctionSamples(): Promise<FunctionSample[]> {
|
|
|
256
256
|
for (const fn of functions) {
|
|
257
257
|
try {
|
|
258
258
|
const data = await fetchJson<{ snapshots: Array<{ sample_input: unknown; sample_output: unknown }> }>(
|
|
259
|
-
`/api/types/${
|
|
259
|
+
`/api/types/${fn.id}`
|
|
260
260
|
);
|
|
261
261
|
if (data.snapshots && data.snapshots.length > 0) {
|
|
262
262
|
const snap = data.snapshots[0];
|