canopy-charts
Advanced tools
Comparing version 0.0.26 to 0.0.28
{ | ||
"name": "canopy-charts", | ||
"version": "0.0.26", | ||
"version": "0.0.28", | ||
"description": "Canopy Charts API wrapper", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle.js", |
@@ -26,5 +26,6 @@ import { TableColumn } from "./types"; | ||
async dataTable(chartId: string) { | ||
async dataTable(chartId: string, apiKey?: string) { | ||
const apiKeyParam = apiKey ? `&apiKey=${apiKey}` : ""; | ||
return await fetch( | ||
`http://${process.env.REACT_APP_API_HOSTNAME}/data-table?id=${chartId}`, | ||
`http://${process.env.REACT_APP_API_HOSTNAME}/data-table?id=${chartId}${apiKeyParam}`, | ||
{ | ||
@@ -31,0 +32,0 @@ method: "get", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2108
367133