0.1.0 • Published 9 years ago

connect-puffin v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Puffin.js

This is a work in progress but should be fully functional.

Options

end: function that appears last (overwritten by define.end()) repeat: prerequisites will repeat

Definition Step

define(options, key1[, key2[, ..., keyN]], function)

rules cannot begin with an . rules with same names as convenience functions outlined in _Build Step below are overwritten in object context, but can still be queued using and() / or()

Build Step

if rules have not yet been defined, they can not be queued in object context, but can still be queued using and() / or()

Execution

TODOs

auth.clone() ctx.statuses allow middleware to be defined allow middleware to be called from runtime constructor route.use(auth('some', 'middleware')) route.use(auth('some', 'middleware')) Define this differently, allowing the use of arrays. define.middleware(). passing string as error creates { message: string, fn: 'foo.bar.baz' } auth.not.foo() auth.parse(results, next) auth.passport(property, ppfn), auth.define.passport(property, ppfn) write unit tests x auth.invert() x auth.define.always() auth.define.independent() x ctx.passing(), ctx.failing(), ctx.status() x auth.or(fn), auth.and(fn) x .catch() with no function will just push undefined to status array