Skip to content

Commit

Permalink
Update minimum node version to 16
Browse files Browse the repository at this point in the history
Also update dependencies
  • Loading branch information
corys committed Nov 3, 2023
1 parent c12bc73 commit 37bb599
Show file tree
Hide file tree
Showing 3 changed files with 8,676 additions and 1,988 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const determineElementLocations = headerRow => {
const headers = headerRow.split(' ').filter(x => x !== 'FT' && x.length > 0)

const indices = {}
headers.map((header, headerIndex) => {
headers.forEach((header, headerIndex) => {
const index = headerRow.indexOf(` ${header}`) + 1
const lastIndex =
headerIndex === 0
Expand All @@ -121,7 +121,7 @@ const parseDataBlock = dataBlock => {
for (const row of data) {
const station = row.slice(0, 3)
parsed[station] = {}
Object.keys(elementLocations).map(k => {
Object.keys(elementLocations).forEach(k => {
const [ start, end ] = elementLocations[k]
parsed[station][k] = parseElement(row.slice(start, end))
})
Expand Down
Loading

0 comments on commit 37bb599

Please sign in to comment.