Skip to content

Commit c56ecd8

Browse files
committed
Full API response
1 parent e349e18 commit c56ecd8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class OpenCageServer {
9494
` Timezone: ${r.timezone.name}\n` +
9595
` Currency: ${r.currency.name} (${r.currency.iso_code})`)
9696
.join('\n\n')}` +
97-
`\n\nLink to the full API response:\n${url}\nCopy/paste this link to view the full response.`,
97+
`\n\nThe full API response:\n${JSON.stringify(data, null, 2)}`,
9898
},
9999
],
100100
};
@@ -164,7 +164,7 @@ export class OpenCageServer {
164164
`Flag: ${info.flag}\n` +
165165
`Timezone: ${info.timezone.name}\n` +
166166
`Currency: ${info.currency.name} (${info.currency.iso_code})\n` +
167-
`\n\nLink to the full API response:\n${url}\nCopy/paste this link to view the full response.`,
167+
`\n\nThe full API response:\n${JSON.stringify(data, null, 2)}`,
168168
},
169169
],
170170
};

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class OpenCageServer {
164164
` Currency: ${r.currency.name} (${r.currency.iso_code})`,
165165
)
166166
.join('\n\n')}` +
167-
`\n\nLink to the full API response:\n${url}\nCopy/paste this link to view the full response.`,
167+
`\n\nThe full API response:\n${JSON.stringify(data, null, 2)}`,
168168
},
169169
],
170170
};
@@ -245,7 +245,7 @@ export class OpenCageServer {
245245
`Flag: ${info.flag}\n` +
246246
`Timezone: ${info.timezone.name}\n` +
247247
`Currency: ${info.currency.name} (${info.currency.iso_code})\n` +
248-
`\n\nLink to the full API response:\n${url}\nCopy/paste this link to view the full response.`,
248+
`\n\nThe full API response:\n${JSON.stringify(data, null, 2)}`,
249249
},
250250
],
251251
};

0 commit comments

Comments
 (0)