Skip to content

Conversation

@delvedor
Copy link
Member

@delvedor delvedor commented Mar 18, 2017

In the previous PR (#9) we added the ovverride support to create a plugin inheritance chain.
Sometimes, for some reason, the user needs to disable the override if he has set one.

With this PR we support that.

Example:

const server = { my: 'server' }
const app = boot(server)

app.override = function (s) {
  return Object.create(s)
}

first[Symbol.for('skip-override')] = true
app.use(first)

function first (s, opts, cb) {
  // some code
  cb()
}

If this is 👍 for you, I can proceed to update the docs.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs :).

@mcollina mcollina merged commit eacf5ad into master Mar 19, 2017
@mcollina mcollina deleted the skip-override branch March 19, 2017 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants