Skip to content
This repository was archived by the owner on Nov 4, 2025. It is now read-only.

Commit 3bf5810

Browse files
author
Juha Mustonen
committed
Updated packages to fix vulnerabilities
1 parent 1f5bf64 commit 3bf5810

4 files changed

Lines changed: 790 additions & 41 deletions

File tree

gulpfile.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

lib/sheets.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,7 @@ Sheets.prototype.getRange = function(id, sheetId, rangeInfo) {
192192
// Retrieve cells (returns in one array)
193193
return self.getCells(id, sheetId)
194194
.then(function(cells) {
195-
var currentRow = parseInt(_.first(cells).row, 10);
196195
var currentColumn = _.first(cells).column;
197-
var currentColIndex = self.columnLetters.indexOf(currentColumn);
198196
var row = [];
199197

200198
// Convert rows string presentation into integer
@@ -204,9 +202,9 @@ Sheets.prototype.getRange = function(id, sheetId, rangeInfo) {
204202

205203
// Get used columns from cells to pickup start and stop
206204
// NOTE: .sort() does not work with numbers
207-
var cellColumnLetters = _.pluck(cells, 'column').sort();
205+
var cellColumnLetters = _.map(cells, 'column').sort();
208206
var cellRowNumbers = _.chain(cells)
209-
.pluck('row')
207+
.map('row')
210208
.sortBy()
211209
.value();
212210

@@ -228,7 +226,7 @@ Sheets.prototype.getRange = function(id, sheetId, rangeInfo) {
228226
currentPadColumn = self.columnLetters[columnIndex];
229227
// Try to find the cell based on current row and column
230228
// if not found, place empty content there instead
231-
cell = _.findWhere(cells, { row: currentPadRow, column: currentPadColumn });
229+
cell = _.find(cells, { row: currentPadRow, column: currentPadColumn });
232230
if (cell) {
233231
row.push(cell);
234232
} else {

0 commit comments

Comments
 (0)