Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Oct 18, 2013
  1. 0.3.2

    authored
  2. Merge pull request #12 from Empeeric/master

    authored
    A bit more of a fix
Commits on Oct 15, 2013
  1. @refack

    A bit more of a fix

    refack authored
  2. 0.3.1

    authored
  3. Merge pull request #11 from Empeeric/master

    authored
    I need this for sync functions
Commits on Oct 12, 2013
  1. @refack

    I need this for sync functions

    refack authored
Commits on Jul 9, 2012
  1. Merge pull request #7 from STRML/master

    authored
    Updated documentation for post callbacks.
  2. @STRML

    Updated documentation for 'post'

    STRML authored
    Post hooks now use a 'next' callback, updated documentation to make
    this clear and to explain the order of flow when using post callbacks.
Commits on Jul 7, 2012
  1. 0.3.0

    authored
  2. Merge pull request #5 from STRML/master

    authored
    Fix for Issue #2
  3. @STRML

    Fix for issue #2

    STRML authored
    Hooks now intercept callbacks so that post handlers can be run before
    the callback.
    
    This is especially useful in Mongoose, where virtual async methods are
    not supported.  The only clean way to implement them is via a
    post('init') handler.
Commits on Apr 17, 2012
  1. 0.2.1

    authored
  2. Merge pull request #6 from aheckmann/ignoreUndefined

    authored
    treat undefined the same as null
Commits on Apr 16, 2012
  1. @aheckmann

    treat undefined the same as null

    aheckmann authored
    so we can next(undefined) or next(null) or next()
Commits on Feb 25, 2012
  1. 0.2.0

    authored
  2. Merge pull request #3 from aheckmann/nextTwice

    authored
    fixed calling next() 2x after throwing
Commits on Feb 24, 2012
  1. @aheckmann
Commits on Jul 20, 2011
Commits on Jun 14, 2011
  1. Version bump to v0.1.9

    authored
  2. Made the callback to a method hook the first place to look for an err…

    authored
    …or handler. Otherwise, the fallback is now the error handler you set up in #hook or lazy #pre. After these two options, the final fallback is throwing the Error.
  3. Now, lazy hook creation via #pre can pass an errorHandler along to th…

    authored
    …e hook creation method #hook
  4. Removed last error handler fallback, which makes the error handler th…

    authored
    …e target method. Instead just throw an error if you get to that point.
  5. Version bump to v0.1.8

    authored
  6. Improved error handling, so if it falls back to calling the hook as t…

    authored
    …he error handler, it does so with the object's scope. Throws an error if we reach that fallback check, and the hook's arity is 0.
Commits on Jun 7, 2011
  1. Version bump to v0.1.7

    authored
  2. Now, `next(null)` -- when the target method has a node-like function …

    authored
    …(err, ...) calback as its last argument -- proceeds down the middleware chain without mutating the hook arguments.
Commits on Jun 3, 2011
  1. Version bump to v0.1.6

    authored
  2. Moved the isAsync middleware argument in `pre` and `post` from the 3r…

    authored
    …d to 2nd argument for better readability.
Commits on May 22, 2011
  1. Updated the README.

    authored
  2. Version bump to v0.1.5

    authored
  3. Now each next() and done() only executes its logic once, no matter ho…

    authored
    …w many times it may be called within the same pre or post.
  4. Version bump to v0.1.4

    authored
Something went wrong with that request. Please try again.