Skip to content

Commit

Permalink
fix: inject plugin opts to warmup ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Nov 2, 2022
1 parent 97757ed commit c935fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/js/firewall/middleware.js
Expand Up @@ -7,7 +7,7 @@ import {getCtx} from '../als.js'
import {checkTarball} from './tarball.js'
import {logger} from '../logger.js'

const warmupPipeline = (pipeline, opts) => pipeline.forEach(([plugin]) => plugin.warmup?.(opts))
const warmupPipeline = (pipeline, opts) => pipeline.forEach(([plugin, _opts]) => plugin.warmup?.({...opts, ..._opts }))

const warmupDepPackuments = (name, deps, boundContext, rules) => {
const {cache, registry, authorization, entrypoint, pipeline} = boundContext
Expand Down

0 comments on commit c935fb4

Please sign in to comment.