Skip to content

Commit

Permalink
Merge pull request #25 from FAA-Aviation-Data-Portal/dependency-updates
Browse files Browse the repository at this point in the history
Dependency updates
  • Loading branch information
corys authored Jul 12, 2023
2 parents 5ee7bef + 726013a commit efeaa47
Show file tree
Hide file tree
Showing 5 changed files with 1,516 additions and 1,442 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v2
Expand Down
56 changes: 17 additions & 39 deletions example.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,20 @@
const aeronavCharts = require('./index.js')

aeronavCharts.vfr.sectionals().then(results => {
console.log(results[0])
})
// aeronavCharts.vfr.terminalArea().then(results => {
// console.log(results[0])
// })
// aeronavCharts.vfr.helicopter().then(results => {
// console.log(results[0])
// })
// aeronavCharts.vfr.grandCanyon().then(results => {
// console.log(results[0])
// })
// aeronavCharts.vfr.planning().then(results => {
// console.log(results[0])
// })
// aeronavCharts.vfr.caribbean().then(results => {
// console.log(results[0])
// })
const logCharts = (charts) => Object.values(charts).map(chart => console.log(chart))

// aeronavCharts.ifr.enrouteLow().then(results => {
// console.log(results[0])
// })
// aeronavCharts.ifr.enrouteHigh().then(results => {
// console.log(results[0])
// })
// aeronavCharts.ifr.enrouteLowHighAlaska().then(results => {
// console.log(results[0])
// })
// aeronavCharts.ifr.enrouteArea().then(results => {
// console.log(results[0])
// })
// aeronavCharts.ifr.enrouteHawaiiPacific().then(results => {
// console.log(results[0])
// })
// aeronavCharts.ifr.planning().then(results => {
// console.log(results[0])
// })
// aeronavCharts.ifr.gulf().then(results => {
// console.log(results[0])
// })
aeronavCharts.vfr.sectionals().then(logCharts)
// aeronavCharts.vfr.terminalArea().then(logCharts)
// aeronavCharts.vfr.helicopter().then(logCharts)
// aeronavCharts.vfr.grandCanyon().then(logCharts)
// aeronavCharts.vfr.planning().then(logCharts)
// aeronavCharts.vfr.caribbean().then(logCharts)
// aeronavCharts.vfr.all().then(logCharts)

// aeronavCharts.ifr.enrouteLow().then(logCharts)
// aeronavCharts.ifr.enrouteHigh().then(logCharts)
// aeronavCharts.ifr.enrouteLowHighAlaska().then(logCharts)
// aeronavCharts.ifr.enrouteArea().then(logCharts)
// aeronavCharts.ifr.enrouteHawaiiPacific().then(logCharts)
// aeronavCharts.ifr.planning().then(logCharts)
// aeronavCharts.ifr.gulf().then(logCharts)
// aeronavCharts.ifr.all().then(logCharts)
4 changes: 2 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ exports.parseVfrTable = (html, tableSelector, nthChild) => {
const splitter = currentEdition.children[0].data.match('–')
? ' – '
: ' - '
;[ currentSequenceNumber, currentReleaseDate ] = currentEdition.children[0].data.split(splitter)
;[currentSequenceNumber, currentReleaseDate] = currentEdition.children[0].data.split(splitter)
} else {
currentSequenceNumber = null
currentReleaseDate = currentEdition.children[0].data
Expand All @@ -56,7 +56,7 @@ exports.parseVfrTable = (html, tableSelector, nthChild) => {
const splitter = currentEdition.children[0].data.match('–')
? ' – '
: ' - '
;[ nextSequenceNumber, nextReleaseDate ] = nextEditionTitle.split(splitter)
;[nextSequenceNumber, nextReleaseDate] = nextEditionTitle.split(splitter)
} else {
nextSequenceNumber = null
nextReleaseDate = nextEditionTitle
Expand Down
Loading

0 comments on commit efeaa47

Please sign in to comment.