Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fdesjardins/terminal-procedures
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: FAA-Aviation-Data-Portal/terminal-procedures
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 17 commits
  • 4 files changed
  • 3 contributors

Commits on Oct 14, 2020

  1. Copy the full SHA
    18bd85a View commit details
  2. Copy the full SHA
    2174296 View commit details

Commits on Oct 16, 2020

  1. Copy the full SHA
    6501f7c View commit details
  2. Improved parsing

    * Added example
    marchchad committed Oct 16, 2020
    Copy the full SHA
    c6b833a View commit details

Commits on Oct 19, 2020

  1. Copy the full SHA
    f4b012d View commit details

Commits on Oct 27, 2020

  1. Copy the full SHA
    1de1d1e View commit details

Commits on Oct 29, 2020

  1. Query for term procs now supports getting next cycle

    * Defaults to current cycle when next is not available
    marchchad committed Oct 29, 2020
    Copy the full SHA
    4497ae2 View commit details
  2. Merge branch 'NextCycle'

    marchchad committed Oct 29, 2020
    Copy the full SHA
    9ae37a2 View commit details

Commits on Oct 12, 2021

  1. Copy the full SHA
    56e4c6d View commit details

Commits on Oct 22, 2021

  1. Merge pull request #7 from FAA-Aviation-Data-Portal/retry

    Add timeout and retry to superagent requests
    corys authored Oct 22, 2021
    Copy the full SHA
    82fce52 View commit details

Commits on Jan 22, 2022

  1. Copy the full SHA
    7b0de98 View commit details

Commits on Jan 25, 2022

  1. Copy the full SHA
    cc8f30e View commit details
  2. Add response timeout settings

    corys committed Jan 25, 2022
    Copy the full SHA
    f3e3992 View commit details

Commits on Jan 26, 2022

  1. Adjust timeouts

    corys committed Jan 26, 2022
    Copy the full SHA
    974bf8d View commit details
  2. Merge pull request #8 from FAA-Aviation-Data-Portal/happy-new-year

    Fix effectiveStartDate being after effectiveEndDate
    corys authored Jan 26, 2022
    Copy the full SHA
    3f62562 View commit details

Commits on Jan 27, 2022

  1. Merge pull request #9 from FAA-Aviation-Data-Portal/request-errors

    Add response timeout limits to requests
    corys authored Jan 27, 2022
    Copy the full SHA
    4b826ec View commit details

Commits on Aug 19, 2024

  1. Copy the full SHA
    34c8978 View commit details
Showing with 332 additions and 44 deletions.
  1. +56 −3 example.js
  2. +267 −37 index.js
  3. +5 −4 package.json
  4. +4 −0 readme.md
59 changes: 56 additions & 3 deletions example.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,67 @@
const terminalProcedures = require('./')

terminalProcedures.fetchCurrentCycle().then(r => console.log(r))
// Should log current cycle effective object
terminalProcedures.fetchCycle().then(c => {
console.log('current cycle effective object, no param')
console.dir(c)
})

// Should log current cycle effective object
terminalProcedures.fetchCycle('Current').then(c => {
console.log('current cycle effective object, with param')
console.dir(c)
})

// Should log next cycle effective object
terminalProcedures.fetchCycle('Next').then(c => {
console.log('next cycle effective object, with param')
console.dir(c)
})

// Should log current cycle code
terminalProcedures.fetchCurrentCycleCode().then(c => {
console.log('current cycle code')
console.log(c)
})

// Should log the current cycle effective dates
terminalProcedures.getCycleEffectiveDates().then(c => {
console.log('the current cycle effective dates, no param')
console.log(c)
})
// Should log the current cycle effective dates
terminalProcedures.getCycleEffectiveDates('Current').then(c => {
console.log('the current cycle effective dates, with param')
console.log(c)
})
// Should log the next cycle effective dates
terminalProcedures.getCycleEffectiveDates('Next').then(c => {
console.log('the next cycle effective dates')
console.log(c)
})

// Should log the current cycle effective dates
terminalProcedures.currentCycleEffectiveDates().then(c => {
console.log('the current cycle effective dates')
console.log(c)
})

terminalProcedures.list('PANC').then(results => {
// Also try updating the Flag property to include one or more of the following:
// A for only those that were Added since the last effective date
// C for only those that were Changed since the last effective date
// D for only those that were Deleted since the last effective date
// Leave empty to get all regardless of if they've been added or changed
// The `getNextCycle` option will get the next cycle if it is available when set to true
// If it is omitted or set to false, the current cycle will be queried
terminalProcedures.list('PANC', { flag: [ ], getNextCycle: true, }).then(results => {
console.log(results)
const out = results.map(tp => {
return {
name: tp.procedure.name,
type: tp.type,
url: tp.procedure.url
url: tp.procedure.url,
effectiveStartDate: tp.effectiveStartDate,
effectiveEndDate: tp.effectiveEndDate,
}
})
console.log(
Loading