Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/google_sheets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/google_sheets",
"version": "0.5.6",
"version": "0.5.7",
"description": "Pipedream Google_sheets Components",
"main": "google_sheets.app.mjs",
"keywords": [
Expand Down
10 changes: 9 additions & 1 deletion components/google_sheets/sources/common/new-updates.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ export default {
_setSheetValues(id, sheetValues) {
this.db.set(id, sheetValues);
},
indexToColumnLabel(index) {
let columnLabel = "";
while (index >= 0) {
columnLabel = String.fromCharCode((index % 26) + 65) + columnLabel;
index = Math.floor(index / 26) - 1;
}
return columnLabel;
},
getContentChanges(colCount, newValues, oldValues, changes, i) {
// loop through comparing the values of each cell
for (let j = 0; j < colCount; j++) {
Expand All @@ -82,7 +90,7 @@ export default {
: "";
if (newValue !== oldValue) {
changes.push({
cell: `${String.fromCharCode(j + 65)}:${i + 1}`,
cell: `${this.indexToColumnLabel(j)}:${i + 1}`,
previous_value: oldValue,
new_value: newValue,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
type: "source",
name: "New Updates (Shared Drive, Instant)",
description: "Emit new event each time a row or cell is updated in a spreadsheet in a shared drive",
version: "0.1.3",
version: "0.1.4",
dedupe: "unique",
props: {
...httpBase.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
type: "source",
name: "New Updates (Instant)",
description: "Emit new event each time a row or cell is updated in a spreadsheet. To use this source with a spreadsheet in a [Shared Drive](https://support.google.com/a/users/answer/9310351), use the **New Updates (Shared Drive, Instant)** source instead.",
version: "0.1.3",
version: "0.1.4",
dedupe: "unique",
props: {
...httpBase.props,
Expand Down