fix: use named export for all-versions (#20478)
* fix: use named export for all-versions * run prettier
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user