Skip to content

Commit

Permalink
Fix up linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Aug 17, 2022
1 parent 9ea10a4 commit 090e910
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const fp = require('fastify-plugin')
let LRU = require("tiny-lru");
let LRU = require('tiny-lru')
const routes = require('./lib/routes')
const { compileQuery } = require('graphql-jit')
const { Factory } = require('single-user-cache')
Expand Down Expand Up @@ -45,6 +45,7 @@ const { kLoaders, kFactory, kSubscriptionFactory, kHooks } = require('./lib/symb
const { preParsingHandler, preValidationHandler, preExecutionHandler, onResolutionHandler, onGatewayReplaceSchemaHandler } = require('./lib/handlers')

// Required for module bundlers
// istanbul ignore next
LRU = typeof LRU === 'function' ? LRU : LRU.default

function buildCache (opts) {
Expand Down
5 changes: 3 additions & 2 deletions lib/persistedQueryDefaults.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
'use strict'

const crypto = require('crypto')
let LRU = require("tiny-lru")
let LRU = require('tiny-lru')

// Required for module bundlers
LRU = typeof LRU === "function" ? LRU : LRU.default
// istanbul ignore next
LRU = typeof LRU === 'function' ? LRU : LRU.default

const persistedQueryDefaults = {
prepared: (persistedQueries) => ({
Expand Down

0 comments on commit 090e910

Please sign in to comment.