stripe/stripe-node — pull request #97 by padolsey (2014-04-07 18:27:38+00:00)
Title: Throw exception on suspected incorrect arguments.

Adds the ability to throw an exception on incorrect arguments (like passing `amount` as `stripe.charges.refund(id, amount)`).

This can only be done by matching the connect-oauth-key (otherwise we can't tell the difference between an incorrectly passed string and a correctly passed oauth-key).

So, all auth keys passed as the last arg (to any method) must be of the form `/^(?:[a-z]{2}_)?[A-z0-9]{32}$/` (the LL_ is optional, not 100% sure if it should be). This also involves using correct auth-keys in all the relevant specs instead of stubs like auth123. (So the bulk of this commit is just correcting specs...).

cc @michelle