for (const key of keys)
option.value += `'${key}',`;
option.value = option.value.slice(0, -1); // Remove trailing comma
- option.value += `).where('${keys[0]}', '${item[keys[0]]}').run()`;
+ option.value += `).where('${keys[0]}', '${item[keys[0]].replaceAll("'", "\\'")}').run()`;
option.textContent = keys ? item[keys[0]] : "No KEYS";
document.getElementById("itemSelect").appendChild(option);
if (i > 0) continue; // Only display the first item by default
for (const key of keys)
- extractedDataElement.innerHTML += `<p><strong>${key}:</strong> ${item[key] || 'N/A'}</p>`;
+ extractedDataElement.innerHTML += `<p><strong>${key}:</strong> ${!(key in item) ? 'false' : (item[key] === '' ? 'true' : item[key])}</p>`;
+
}
rawDataElement.innerHTML = `<pre>${JSON.stringify(itemData, null, 2)}</pre>`;
{
- "version": "0.0.32"
+ "version": "0.0.33"
}
\ No newline at end of file
for (const key of keys)
option.value += `'${key}',`;
option.value = option.value.slice(0, -1); // Remove trailing comma
- option.value += `).where('${keys[0]}', '${item[keys[0]]}').run()`;
+ option.value += `).where('${keys[0]}', '${item[keys[0]].replaceAll("'", "\\'")}').run()`;
option.textContent = keys ? item[keys[0]] : "No KEYS";
document.getElementById("itemSelect").appendChild(option);
if (i > 0) continue; // Only display the first item by default
for (const key of keys)
- extractedDataElement.innerHTML += `<p><strong>${key}:</strong> ${item[key] || 'N/A'}</p>`;
+ extractedDataElement.innerHTML += `<p><strong>${key}:</strong> ${!(key in item) ? 'false' : (item[key] === '' ? 'true' : item[key])}</p>`;
+
}
rawDataElement.innerHTML = `<pre>${JSON.stringify(itemData, null, 2)}</pre>`;
{
- "version": "0.0.32"
+ "version": "0.0.33"
}
\ No newline at end of file