argon/node-apn — pull request #18 by keithnlarsen (2011-12-30 03:11:21+00:00)
Title: Changes to support Keys and Certs stored in a database

Hey,

I'm using your library in a project of mine (its great, thanks!), and I need to pass in the keys and certs instead of reading them in from the file system. Basically I work for a large company with multiple apps that will send notifications to Apple and Google and whoever else and we need support for these keys in a database rather than a file system. So I changed your library to support this, really it was a very simple change, but I also fixed up a bunch of issues brought up my jslint during my testing. Just syntax things, like missing semi-colons, or missing "var" declarations. Also I Capitalized the exports that are new'd when instantiated as thats sort of a defacto standard javascript thing (ref: http://javascript.crockford.com/code.html). So now "device" would be "Device", I did leave the non-capitalized exports to make sure its backwards compatible. So the long and the short of it is, the changes I made should not affect current use of the library, you'd only notice the changes if you want to take advantage of them.

Anyway, I've love it if you could include these changes in your library, and if so, I'd also love to help you write some tests cases etc. for the library.

Cheers,
Keith.