1
0
mirror of synced 2025-12-25 02:17:36 -05:00

fix: use named export for all-versions (#20478)

* fix: use named export for all-versions

* run prettier
This commit is contained in:
Mike Surowiec
2021-07-22 15:29:00 -04:00
committed by GitHub
parent 7b9800bfc1
commit 9386571aa4
50 changed files with 284 additions and 237 deletions

View File

@@ -1,7 +1,7 @@
import fs from 'fs'
import path from 'path'
import readJsonFile from '../../lib/read-json-file.js'
import allVersions from '../../lib/all-versions.js'
import { allVersions } from '../../lib/all-versions.js'
const previews = readJsonFile('./lib/graphql/static/previews.json')
const upcomingChanges = readJsonFile('./lib/graphql/static/upcoming-changes.json')
const changelog = readJsonFile('./lib/graphql/static/changelog.json')

View File

@@ -1,7 +1,7 @@
import { defaults } from 'lodash-es'
import webhookPayloads from '../../lib/webhooks/index.js'
import nonEnterpriseDefaultVersion from '../../lib/non-enterprise-default-version.js'
import allVersions from '../../lib/all-versions.js'
import { allVersions } from '../../lib/all-versions.js'
export default function webhooksContext(req, res, next) {
const currentVersionObj = allVersions[req.context.currentVersion]