├── .gitignore ├── LICENSE ├── README.md ├── etc └── couchdb │ └── default.d │ └── browserid.ini ├── example ├── README.md ├── node_modules │ ├── .bin │ │ └── static+ │ └── static-plus │ │ ├── .npmignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── api.js │ │ ├── app │ │ ├── kanso.json │ │ └── packages │ │ │ └── attachments │ │ │ ├── build │ │ │ ├── add.js │ │ │ └── cleanup.js │ │ │ └── kanso.json │ │ ├── cli.js │ │ ├── lib │ │ ├── builder.js │ │ └── index.js │ │ ├── mikeal │ │ └── package.html │ │ ├── node_modules │ │ ├── .bin │ │ │ ├── follow │ │ │ └── handlebars │ │ ├── defaultable │ │ │ ├── .kansoignore │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── defaultable.js │ │ │ ├── kanso.json │ │ │ ├── package.json │ │ │ └── t │ │ │ │ ├── api.js │ │ │ │ ├── defaults.js │ │ │ │ ├── merge.js │ │ │ │ ├── mod │ │ │ │ ├── defaultable_reexporter.js │ │ │ │ ├── fresh_defaultable.js │ │ │ │ ├── is_defaultable.js │ │ │ │ ├── is_not_defaultable.js │ │ │ │ ├── legacy_defaults.js │ │ │ │ └── node_modules │ │ │ │ │ └── test_dependency │ │ │ │ │ ├── defaultable_example.js │ │ │ │ │ ├── example.js │ │ │ │ │ └── package.json │ │ │ │ └── require.js │ │ ├── fixed-event │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── api.js │ │ │ ├── lib │ │ │ │ ├── events.js │ │ │ │ └── once.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── event.js │ │ │ │ └── once.js │ │ ├── follow │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── api.js │ │ │ ├── cli.js │ │ │ ├── feed.js │ │ │ ├── lib.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── couch.js │ │ │ │ ├── follow.js │ │ │ │ └── issues.js │ │ ├── handlebars │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.markdown │ │ │ ├── bin │ │ │ │ └── handlebars │ │ │ ├── lib │ │ │ │ ├── handlebars.js │ │ │ │ └── handlebars │ │ │ │ │ ├── base.js │ │ │ │ │ ├── compiler │ │ │ │ │ ├── ast.js │ │ │ │ │ ├── base.js │ │ │ │ │ ├── compiler.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── parser.js │ │ │ │ │ ├── printer.js │ │ │ │ │ └── visitor.js │ │ │ │ │ ├── utils.js │ │ │ │ │ └── vm.js │ │ │ ├── node_modules │ │ │ │ ├── .bin │ │ │ │ │ └── uglifyjs │ │ │ │ ├── optimist │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.markdown │ │ │ │ │ ├── examples │ │ │ │ │ │ ├── bool.js │ │ │ │ │ │ ├── boolean_double.js │ │ │ │ │ │ ├── boolean_single.js │ │ │ │ │ │ ├── default_hash.js │ │ │ │ │ │ ├── default_singles.js │ │ │ │ │ │ ├── divide.js │ │ │ │ │ │ ├── line_count.js │ │ │ │ │ │ ├── line_count_options.js │ │ │ │ │ │ ├── line_count_wrap.js │ │ │ │ │ │ ├── nonopt.js │ │ │ │ │ │ ├── reflect.js │ │ │ │ │ │ ├── short.js │ │ │ │ │ │ ├── string.js │ │ │ │ │ │ ├── usage-options.js │ │ │ │ │ │ └── xup.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ └── wordwrap │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── README.markdown │ │ │ │ │ │ │ ├── example │ │ │ │ │ │ │ ├── center.js │ │ │ │ │ │ │ └── meat.js │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ ├── break.js │ │ │ │ │ │ │ ├── idleness.txt │ │ │ │ │ │ │ └── wrap.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ ├── _.js │ │ │ │ │ │ ├── _ │ │ │ │ │ │ ├── argv.js │ │ │ │ │ │ └── bin.js │ │ │ │ │ │ ├── parse.js │ │ │ │ │ │ └── usage.js │ │ │ │ └── uglify-js │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── README.html │ │ │ │ │ ├── README.org │ │ │ │ │ ├── bin │ │ │ │ │ └── uglifyjs │ │ │ │ │ ├── docstyle.css │ │ │ │ │ ├── lib │ │ │ │ │ ├── object-ast.js │ │ │ │ │ ├── parse-js.js │ │ │ │ │ ├── process.js │ │ │ │ │ └── squeeze-more.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── test │ │ │ │ │ ├── beautify.js │ │ │ │ │ ├── testparser.js │ │ │ │ │ └── unit │ │ │ │ │ │ ├── compress │ │ │ │ │ │ ├── expected │ │ │ │ │ │ │ ├── array1.js │ │ │ │ │ │ │ ├── array2.js │ │ │ │ │ │ │ ├── array3.js │ │ │ │ │ │ │ ├── array4.js │ │ │ │ │ │ │ ├── assignment.js │ │ │ │ │ │ │ ├── concatstring.js │ │ │ │ │ │ │ ├── const.js │ │ │ │ │ │ │ ├── empty-blocks.js │ │ │ │ │ │ │ ├── forstatement.js │ │ │ │ │ │ │ ├── if.js │ │ │ │ │ │ │ ├── ifreturn.js │ │ │ │ │ │ │ ├── ifreturn2.js │ │ │ │ │ │ │ ├── issue10.js │ │ │ │ │ │ │ ├── issue11.js │ │ │ │ │ │ │ ├── issue13.js │ │ │ │ │ │ │ ├── issue14.js │ │ │ │ │ │ │ ├── issue16.js │ │ │ │ │ │ │ ├── issue17.js │ │ │ │ │ │ │ ├── issue20.js │ │ │ │ │ │ │ ├── issue21.js │ │ │ │ │ │ │ ├── issue25.js │ │ │ │ │ │ │ ├── issue27.js │ │ │ │ │ │ │ ├── issue28.js │ │ │ │ │ │ │ ├── issue29.js │ │ │ │ │ │ │ ├── issue30.js │ │ │ │ │ │ │ ├── issue34.js │ │ │ │ │ │ │ ├── issue4.js │ │ │ │ │ │ │ ├── issue48.js │ │ │ │ │ │ │ ├── issue50.js │ │ │ │ │ │ │ ├── issue53.js │ │ │ │ │ │ │ ├── issue54.1.js │ │ │ │ │ │ │ ├── issue68.js │ │ │ │ │ │ │ ├── issue69.js │ │ │ │ │ │ │ ├── issue9.js │ │ │ │ │ │ │ ├── mangle.js │ │ │ │ │ │ │ ├── strict-equals.js │ │ │ │ │ │ │ ├── var.js │ │ │ │ │ │ │ └── with.js │ │ │ │ │ │ └── test │ │ │ │ │ │ │ ├── array1.js │ │ │ │ │ │ │ ├── array2.js │ │ │ │ │ │ │ ├── array3.js │ │ │ │ │ │ │ ├── array4.js │ │ │ │ │ │ │ ├── assignment.js │ │ │ │ │ │ │ ├── concatstring.js │ │ │ │ │ │ │ ├── const.js │ │ │ │ │ │ │ ├── empty-blocks.js │ │ │ │ │ │ │ ├── forstatement.js │ │ │ │ │ │ │ ├── if.js │ │ │ │ │ │ │ ├── ifreturn.js │ │ │ │ │ │ │ ├── ifreturn2.js │ │ │ │ │ │ │ ├── issue10.js │ │ │ │ │ │ │ ├── issue11.js │ │ │ │ │ │ │ ├── issue13.js │ │ │ │ │ │ │ ├── issue14.js │ │ │ │ │ │ │ ├── issue16.js │ │ │ │ │ │ │ ├── issue17.js │ │ │ │ │ │ │ ├── issue20.js │ │ │ │ │ │ │ ├── issue21.js │ │ │ │ │ │ │ ├── issue25.js │ │ │ │ │ │ │ ├── issue27.js │ │ │ │ │ │ │ ├── issue28.js │ │ │ │ │ │ │ ├── issue29.js │ │ │ │ │ │ │ ├── issue30.js │ │ │ │ │ │ │ ├── issue34.js │ │ │ │ │ │ │ ├── issue4.js │ │ │ │ │ │ │ ├── issue48.js │ │ │ │ │ │ │ ├── issue50.js │ │ │ │ │ │ │ ├── issue53.js │ │ │ │ │ │ │ ├── issue54.1.js │ │ │ │ │ │ │ ├── issue68.js │ │ │ │ │ │ │ ├── issue69.js │ │ │ │ │ │ │ ├── issue9.js │ │ │ │ │ │ │ ├── mangle.js │ │ │ │ │ │ │ ├── strict-equals.js │ │ │ │ │ │ │ ├── var.js │ │ │ │ │ │ │ └── with.js │ │ │ │ │ │ └── scripts.js │ │ │ │ │ ├── tmp │ │ │ │ │ ├── hoist.js │ │ │ │ │ ├── instrument.js │ │ │ │ │ ├── instrument2.js │ │ │ │ │ └── test.js │ │ │ │ │ └── uglify-js.js │ │ │ └── package.json │ │ ├── optimist │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.markdown │ │ │ ├── examples │ │ │ │ ├── bool.js │ │ │ │ ├── boolean_double.js │ │ │ │ ├── boolean_single.js │ │ │ │ ├── default_hash.js │ │ │ │ ├── default_singles.js │ │ │ │ ├── divide.js │ │ │ │ ├── line_count.js │ │ │ │ ├── line_count_options.js │ │ │ │ ├── line_count_wrap.js │ │ │ │ ├── nonopt.js │ │ │ │ ├── reflect.js │ │ │ │ ├── short.js │ │ │ │ ├── string.js │ │ │ │ ├── usage-options.js │ │ │ │ └── xup.js │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ └── wordwrap │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── README.markdown │ │ │ │ │ ├── example │ │ │ │ │ ├── center.js │ │ │ │ │ └── meat.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ ├── break.js │ │ │ │ │ ├── idleness.txt │ │ │ │ │ └── wrap.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── _.js │ │ │ │ ├── _ │ │ │ │ ├── argv.js │ │ │ │ └── bin.js │ │ │ │ ├── parse.js │ │ │ │ └── usage.js │ │ ├── request │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── main.js │ │ │ ├── mimetypes.js │ │ │ ├── oauth.js │ │ │ ├── package.json │ │ │ ├── tests │ │ │ │ ├── googledoodle.png │ │ │ │ ├── run.sh │ │ │ │ ├── server.js │ │ │ │ ├── test-body.js │ │ │ │ ├── test-cookie.js │ │ │ │ ├── test-cookiejar.js │ │ │ │ ├── test-errors.js │ │ │ │ ├── test-oauth.js │ │ │ │ ├── test-pipes.js │ │ │ │ ├── test-proxy.js │ │ │ │ └── test-timeout.js │ │ │ ├── uuid.js │ │ │ └── vendor │ │ │ │ └── cookie │ │ │ │ ├── index.js │ │ │ │ └── jar.js │ │ ├── rimraf │ │ │ ├── AUTHORS │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── fiber.js │ │ │ ├── package.json │ │ │ ├── rimraf.js │ │ │ └── test │ │ │ │ ├── run.sh │ │ │ │ ├── setup.sh │ │ │ │ ├── test-async.js │ │ │ │ ├── test-fiber.js │ │ │ │ └── test-sync.js │ │ ├── txn │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── api.js │ │ │ ├── lib │ │ │ │ ├── lib.js │ │ │ │ └── txn.js │ │ │ ├── node_modules │ │ │ │ ├── log4js │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .project │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── README.md │ │ │ │ │ ├── example-connect-logger.js │ │ │ │ │ ├── example-socket.js │ │ │ │ │ ├── example.js │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── appenders │ │ │ │ │ │ │ ├── console.js │ │ │ │ │ │ │ ├── file.js │ │ │ │ │ │ │ ├── gelf.js │ │ │ │ │ │ │ ├── hookio.js │ │ │ │ │ │ │ ├── logLevelFilter.js │ │ │ │ │ │ │ ├── multiprocess.js │ │ │ │ │ │ │ └── smtp.js │ │ │ │ │ │ ├── connect-logger.js │ │ │ │ │ │ ├── date_format.js │ │ │ │ │ │ ├── layouts.js │ │ │ │ │ │ ├── levels.js │ │ │ │ │ │ ├── log4js.js │ │ │ │ │ │ ├── log4js.json │ │ │ │ │ │ └── streams.js │ │ │ │ │ ├── log-rolling.js │ │ │ │ │ ├── memory-test.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── async │ │ │ │ │ │ │ ├── .gitmodules │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── deps │ │ │ │ │ │ │ │ ├── nodeunit.css │ │ │ │ │ │ │ │ └── nodeunit.js │ │ │ │ │ │ │ ├── dist │ │ │ │ │ │ │ │ └── async.min.js │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ └── async.js │ │ │ │ │ │ │ ├── nodelint.cfg │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ ├── test-async.js │ │ │ │ │ │ │ │ └── test.html │ │ │ │ │ │ └── compress-buffer │ │ │ │ │ │ │ ├── .lock-wscript │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── CHANGELOG │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── build │ │ │ │ │ │ │ ├── .wafpickle-7 │ │ │ │ │ │ │ ├── Release │ │ │ │ │ │ │ │ ├── compress-buffer-bindings.node │ │ │ │ │ │ │ │ └── src │ │ │ │ │ │ │ │ │ └── compress-buffer_1.o │ │ │ │ │ │ │ ├── c4che │ │ │ │ │ │ │ │ ├── Release.cache.py │ │ │ │ │ │ │ │ └── build.config.py │ │ │ │ │ │ │ └── config.log │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ ├── src │ │ │ │ │ │ │ ├── compress-buffer.cc │ │ │ │ │ │ │ └── compress-buffer.cc- │ │ │ │ │ │ │ ├── t │ │ │ │ │ │ │ ├── t.c │ │ │ │ │ │ │ ├── t.plist │ │ │ │ │ │ │ ├── test.csv │ │ │ │ │ │ │ ├── test.gz │ │ │ │ │ │ │ ├── test │ │ │ │ │ │ │ └── node-compress-buffer-test.js │ │ │ │ │ │ │ └── wscript │ │ │ │ │ ├── package.json │ │ │ │ │ ├── test-rolling-file-stream │ │ │ │ │ └── test │ │ │ │ │ │ ├── bufferedStream.js │ │ │ │ │ │ ├── date_format.js │ │ │ │ │ │ ├── fileAppender.js │ │ │ │ │ │ ├── gelfAppender.js │ │ │ │ │ │ ├── hookioAppender.js │ │ │ │ │ │ ├── layouts.js │ │ │ │ │ │ ├── levels.js │ │ │ │ │ │ ├── log4js.json │ │ │ │ │ │ ├── logLevelFilter.js │ │ │ │ │ │ ├── logging.js │ │ │ │ │ │ ├── multiprocessAppender.js │ │ │ │ │ │ ├── rollingFileStream.js │ │ │ │ │ │ ├── smtpAppender.js │ │ │ │ │ │ ├── test-connect-logger.js │ │ │ │ │ │ ├── test-global-log-level.js │ │ │ │ │ │ ├── test-log-abspath.js │ │ │ │ │ │ ├── test-nolog.js │ │ │ │ │ │ ├── test-rolling-file-stream │ │ │ │ │ │ ├── test-rolling-file-stream-write │ │ │ │ │ │ ├── test-rolling-file-stream-write-less │ │ │ │ │ │ ├── test-rolling-file-stream-write-more │ │ │ │ │ │ ├── test-rolling-file-stream-write-more.1 │ │ │ │ │ │ ├── with-log-rolling.json │ │ │ │ │ │ └── with-logLevelFilter.json │ │ │ │ └── obj_diff │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── api.js │ │ │ │ │ ├── diff.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ ├── diffs.js │ │ │ │ │ ├── policy.js │ │ │ │ │ └── run.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── run.js │ │ │ │ └── txn.js │ │ └── winston │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── docs │ │ │ ├── docco.css │ │ │ ├── winston.html │ │ │ └── winston │ │ │ │ ├── common.html │ │ │ │ ├── config.html │ │ │ │ ├── config │ │ │ │ ├── cli-config.html │ │ │ │ ├── npm-config.html │ │ │ │ └── syslog-config.html │ │ │ │ ├── exception.html │ │ │ │ ├── logger.html │ │ │ │ ├── transports.html │ │ │ │ └── transports │ │ │ │ ├── console.html │ │ │ │ ├── couchdb.html │ │ │ │ ├── file.html │ │ │ │ ├── loggly.html │ │ │ │ ├── transport.html │ │ │ │ └── webhook.html │ │ │ ├── examples │ │ │ ├── couchdb.js │ │ │ ├── raw-mode.js │ │ │ └── webhook-post.js │ │ │ ├── lib │ │ │ ├── winston.js │ │ │ └── winston │ │ │ │ ├── common.js │ │ │ │ ├── config.js │ │ │ │ ├── config │ │ │ │ ├── cli-config.js │ │ │ │ ├── npm-config.js │ │ │ │ └── syslog-config.js │ │ │ │ ├── container.js │ │ │ │ ├── exception.js │ │ │ │ ├── logger.js │ │ │ │ ├── transports.js │ │ │ │ └── transports │ │ │ │ ├── console.js │ │ │ │ ├── couchdb.js │ │ │ │ ├── file.js │ │ │ │ ├── loggly.js │ │ │ │ ├── transport.js │ │ │ │ └── webhook.js │ │ │ ├── node_modules │ │ │ ├── async │ │ │ │ ├── .gitmodules │ │ │ │ ├── .npmignore │ │ │ │ ├── LICENSE │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── index.js │ │ │ │ ├── lib │ │ │ │ │ └── async.js │ │ │ │ └── package.json │ │ │ ├── colors │ │ │ │ ├── MIT-LICENSE.txt │ │ │ │ ├── ReadMe.md │ │ │ │ ├── colors.js │ │ │ │ ├── example.html │ │ │ │ ├── example.js │ │ │ │ ├── package.json │ │ │ │ └── test.js │ │ │ ├── eyes │ │ │ │ ├── LICENSE │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── lib │ │ │ │ │ └── eyes.js │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ │ └── eyes-test.js │ │ │ ├── loggly │ │ │ │ ├── .npmignore │ │ │ │ ├── README.md │ │ │ │ ├── docs │ │ │ │ │ ├── docco.css │ │ │ │ │ ├── loggly.html │ │ │ │ │ └── loggly │ │ │ │ │ │ ├── common.html │ │ │ │ │ │ ├── config.html │ │ │ │ │ │ ├── core.html │ │ │ │ │ │ ├── device.html │ │ │ │ │ │ ├── facet.html │ │ │ │ │ │ ├── input.html │ │ │ │ │ │ └── search.html │ │ │ │ ├── lib │ │ │ │ │ ├── loggly.js │ │ │ │ │ └── loggly │ │ │ │ │ │ ├── common.js │ │ │ │ │ │ ├── config.js │ │ │ │ │ │ ├── core.js │ │ │ │ │ │ ├── device.js │ │ │ │ │ │ ├── facet.js │ │ │ │ │ │ ├── input.js │ │ │ │ │ │ └── search.js │ │ │ │ ├── node_modules │ │ │ │ │ ├── request │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── forever.js │ │ │ │ │ │ ├── main.js │ │ │ │ │ │ ├── mimetypes.js │ │ │ │ │ │ ├── oauth.js │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ ├── tests │ │ │ │ │ │ │ ├── googledoodle.png │ │ │ │ │ │ │ ├── run.js │ │ │ │ │ │ │ ├── server.js │ │ │ │ │ │ │ ├── squid.conf │ │ │ │ │ │ │ ├── ssl │ │ │ │ │ │ │ │ ├── ca │ │ │ │ │ │ │ │ │ ├── ca.cnf │ │ │ │ │ │ │ │ │ ├── ca.crl │ │ │ │ │ │ │ │ │ ├── ca.crt │ │ │ │ │ │ │ │ │ ├── ca.csr │ │ │ │ │ │ │ │ │ ├── ca.key │ │ │ │ │ │ │ │ │ ├── ca.srl │ │ │ │ │ │ │ │ │ ├── server.cnf │ │ │ │ │ │ │ │ │ ├── server.crt │ │ │ │ │ │ │ │ │ ├── server.csr │ │ │ │ │ │ │ │ │ ├── server.js │ │ │ │ │ │ │ │ │ └── server.key │ │ │ │ │ │ │ │ ├── npm-ca.crt │ │ │ │ │ │ │ │ ├── test.crt │ │ │ │ │ │ │ │ └── test.key │ │ │ │ │ │ │ ├── test-body.js │ │ │ │ │ │ │ ├── test-cookie.js │ │ │ │ │ │ │ ├── test-cookiejar.js │ │ │ │ │ │ │ ├── test-defaults.js │ │ │ │ │ │ │ ├── test-errors.js │ │ │ │ │ │ │ ├── test-headers.js │ │ │ │ │ │ │ ├── test-httpModule.js │ │ │ │ │ │ │ ├── test-https-strict.js │ │ │ │ │ │ │ ├── test-https.js │ │ │ │ │ │ │ ├── test-oauth.js │ │ │ │ │ │ │ ├── test-params.js │ │ │ │ │ │ │ ├── test-pipes.js │ │ │ │ │ │ │ ├── test-proxy.js │ │ │ │ │ │ │ ├── test-qs.js │ │ │ │ │ │ │ ├── test-redirect.js │ │ │ │ │ │ │ ├── test-timeout.js │ │ │ │ │ │ │ └── test-tunnel.js │ │ │ │ │ │ ├── tunnel.js │ │ │ │ │ │ ├── uuid.js │ │ │ │ │ │ └── vendor │ │ │ │ │ │ │ └── cookie │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ └── jar.js │ │ │ │ │ └── timespan │ │ │ │ │ │ ├── CHANGELOG.md │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── browser │ │ │ │ │ │ ├── TimeSpan-1.2.js │ │ │ │ │ │ └── TimeSpan-1.2.min.js │ │ │ │ │ │ ├── docs │ │ │ │ │ │ ├── docco.css │ │ │ │ │ │ └── time-span.html │ │ │ │ │ │ ├── lib │ │ │ │ │ │ └── time-span.js │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── test │ │ │ │ │ │ ├── date-parser-test.js │ │ │ │ │ │ ├── helpers.js │ │ │ │ │ │ └── time-span-test.js │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ │ ├── common-test.js │ │ │ │ │ ├── device-test.js │ │ │ │ │ ├── helpers.js │ │ │ │ │ ├── input-test.js │ │ │ │ │ ├── log-test.js │ │ │ │ │ └── search-test.js │ │ │ ├── pkginfo │ │ │ │ ├── README.md │ │ │ │ ├── docs │ │ │ │ │ ├── docco.css │ │ │ │ │ └── pkginfo.html │ │ │ │ ├── examples │ │ │ │ │ ├── all-properties.js │ │ │ │ │ ├── array-argument.js │ │ │ │ │ ├── multiple-properties.js │ │ │ │ │ ├── object-argument.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── single-property.js │ │ │ │ ├── lib │ │ │ │ │ └── pkginfo.js │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ │ └── pkginfo-test.js │ │ │ └── stack-trace │ │ │ │ ├── .License.un~ │ │ │ │ ├── .Readme.md.un~ │ │ │ │ ├── .package.json.un~ │ │ │ │ ├── .test-get.js.un~ │ │ │ │ ├── License │ │ │ │ ├── Makefile │ │ │ │ ├── Readme.md │ │ │ │ ├── lib │ │ │ │ ├── .stack-trace.js.un~ │ │ │ │ └── stack-trace.js │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ ├── .common.js.un~ │ │ │ │ ├── common.js │ │ │ │ ├── integration │ │ │ │ ├── .test-basic.js.un~ │ │ │ │ ├── .test-get.js.un~ │ │ │ │ ├── .test-long-stack-trace.js.un~ │ │ │ │ ├── .test-parse.js.un~ │ │ │ │ ├── test-get.js │ │ │ │ ├── test-long-stack-trace.js │ │ │ │ └── test-parse.js │ │ │ │ └── run.js │ │ │ ├── package.json │ │ │ └── test │ │ │ ├── cli-test.js │ │ │ ├── container-test.js │ │ │ ├── custom-timestamp-test.js │ │ │ ├── exception-test.js │ │ │ ├── fixtures │ │ │ ├── .gitkeep │ │ │ ├── keys │ │ │ │ ├── agent2-cert.pem │ │ │ │ └── agent2-key.pem │ │ │ ├── logs │ │ │ │ └── .gitkeep │ │ │ └── scripts │ │ │ │ ├── default-exceptions.js │ │ │ │ ├── exit-on-error.js │ │ │ │ ├── log-exceptions.js │ │ │ │ └── unhandle-exceptions.js │ │ │ ├── helpers.js │ │ │ ├── log-exception-test.js │ │ │ ├── log-rewriter-test.js │ │ │ ├── logger-test.js │ │ │ ├── transports │ │ │ ├── console-test.js │ │ │ ├── couchdb-test.js │ │ │ ├── file-maxfiles-test.js │ │ │ ├── file-maxsize-test.js │ │ │ ├── file-test.js │ │ │ ├── loggly-test.js │ │ │ └── webhook-test.js │ │ │ └── winston-test.js │ │ ├── package.json │ │ └── test │ │ ├── api.js │ │ ├── builder.js │ │ ├── couch.js │ │ └── feed.js ├── package.json ├── page.tmpl.html └── push.js ├── priv ├── browserid_logo_sm.png ├── example.html ├── include.js ├── less.js ├── main.js ├── sign_in_blue.png ├── sign_in_green.png ├── sign_in_grey.png ├── sign_in_orange.png ├── sign_in_red.png ├── style.css └── style.less ├── rebar ├── src ├── browserid_couchdb.app.src ├── browserid_couchdb_app.erl ├── browserid_couchdb_sup.erl └── couch_httpd_browserid.erl ├── ui ├── .couchapprc ├── _attachments │ └── index.html └── _id └── utils_run.sh /.gitignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | ebin 3 | -------------------------------------------------------------------------------- /etc/couchdb/default.d/browserid.ini: -------------------------------------------------------------------------------- 1 | ; [httpd] 2 | ; vhost_global_handlers = _browserid, _utils, _uuids, _session, _oauth, _users 3 | 4 | [browserid] 5 | enabled = false 6 | verify_url = https://verifier.login.persona.org/verify 7 | audience = http://example.com 8 | ; hash_algorithm = 9 | ; hash_secret = 10 | 11 | [httpd_global_handlers] 12 | _browserid = {couch_httpd_browserid, handle_id_req} 13 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # BrowserID example application 2 | 3 | To push to your own couch: 4 | 5 | ./push.js http://user:password@example.iriscouch.com/browserid 6 | -------------------------------------------------------------------------------- /example/node_modules/.bin/static+: -------------------------------------------------------------------------------- 1 | ../static-plus/cli.js -------------------------------------------------------------------------------- /example/node_modules/static-plus/.npmignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | /build_test 3 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/api.js: -------------------------------------------------------------------------------- 1 | // The Static Plus API 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | require('defaultable').def(module, 16 | { 17 | }, function(module, exports, DEFS, require) { 18 | 19 | 20 | module.exports = { 'Builder' : require('./lib/builder') 21 | , 'handlebars': require('handlebars') 22 | } 23 | 24 | 25 | }) // defaultable 26 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/app/kanso.json: -------------------------------------------------------------------------------- 1 | { "name": "static_plus" 2 | , "version": "0.1.0" 3 | , "author": { "name": "Jason Smith" 4 | , "email": "jhs@iriscouch.com" } 5 | , "description": "Build static web sites from templates. Plus." 6 | 7 | , "attachments": ["index.html"] 8 | 9 | , "dependencies": { "attachments" : null 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/app/packages/attachments/build/add.js: -------------------------------------------------------------------------------- 1 | var attachments = require('kanso/attachments'), 2 | async = require('async'); 3 | 4 | 5 | /** 6 | * Loads attachment directories specified in kanso.json and adds the attachments 7 | * to the document. 8 | */ 9 | 10 | module.exports = function (root, path, settings, doc, callback) { 11 | var paths = settings.attachments || []; 12 | if (!Array.isArray(paths)) { 13 | paths = [paths]; 14 | } 15 | async.forEach(paths, function (p, cb) { 16 | attachments.addPath(path, p, doc, cb); 17 | }, 18 | function (err) { 19 | callback(err, doc); 20 | }); 21 | }; 22 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/app/packages/attachments/build/cleanup.js: -------------------------------------------------------------------------------- 1 | var attachments = require('kanso/attachments'), 2 | async = require('async'); 3 | 4 | 5 | /** 6 | * Loads attachment directories specified in kanso.json and adds the attachments 7 | * to the document. 8 | */ 9 | 10 | module.exports = function (root, path, settings, doc, callback) { 11 | if (!doc._attachments) { 12 | return callback(null, doc); 13 | } 14 | for (var k in doc._attachments) { 15 | delete doc._attachments[k]._original_path; 16 | } 17 | callback(null, doc); 18 | }; 19 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/app/packages/attachments/kanso.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "attachments", 3 | "version": "0.0.8", 4 | "categories": ["build-tools"], 5 | "description": "Loads files or directories of files and attaches them to a design doc", 6 | "preprocessors": { 7 | "add": "build/add" 8 | }, 9 | "postprocessors": { 10 | "cleanup": "build/cleanup" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/mikeal/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{_id}} 4 | 5 | 6 | 7 | 8 |

{{_id}}

9 |

{{description}}

10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/.bin/follow: -------------------------------------------------------------------------------- 1 | ../follow/cli.js -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/.bin/handlebars: -------------------------------------------------------------------------------- 1 | ../handlebars/bin/handlebars -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/defaultable/.kansoignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/defaultable/.npmignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/defaultable/kanso.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "defaultable", 3 | "version": "0.6.2", 4 | "website": "https://github.com/iriscouch/defaultable", 5 | "modules": "defaultable.js", 6 | "dependencies": { 7 | "modules": ">=0.0.8", 8 | "path": ">=0.2.6" 9 | }, 10 | "description": "Transparent, drop-in helper for overridable, inheritable defaults in CommonJS modules" 11 | } 12 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/defaultable/package.json: -------------------------------------------------------------------------------- 1 | { "name": "defaultable" 2 | , "version": "0.7.2" 3 | , "author": { "name": "Jason Smith" 4 | , "email": "jhs@iriscouch.com" 5 | , "url" : "http://www.iriscouch.com/" 6 | } 7 | , "description": "Transparent, drop-in helper for overridable, inheritable defaults in CommonJS modules" 8 | , "tags" : ["nodejs", "npm", "commonjs", "development", "modules", "default", "defaults"] 9 | 10 | , "homepage": "http://github.com/iriscouch/defaultable" 11 | , "repository": { "type": "git" 12 | , "url": "git://github.com/iriscouch/defaultable" } 13 | 14 | , "engines": [ "node" ] 15 | 16 | , "dependencies" : { 17 | } 18 | 19 | , "devDependencies": { "tap": "0.0.10" 20 | } 21 | 22 | , "main": "defaultable.js" 23 | } 24 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/defaultable/t/mod/defaultable_reexporter.js: -------------------------------------------------------------------------------- 1 | // A defaultable module which completely re-exports another defaultable module 2 | // 3 | // Copyright 2011 Iris Couch 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | require('../../defaultable').def(module, 18 | { 19 | }, function(module, exports, DEFS, require) { 20 | 21 | module.exports = require('test_dependency/defaultable_example'); 22 | 23 | }) // defaultable 24 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/defaultable/t/mod/fresh_defaultable.js: -------------------------------------------------------------------------------- 1 | // A fresh defaultable module, used by the test suite 2 | // 3 | // Copyright 2011 Iris Couch 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | require('../../defaultable').def(module, 18 | { 'should' : 'always fresh' 19 | }, function(module, exports, DEFS, require) { 20 | 21 | exports.get = function(val) { 22 | return DEFS[val]; 23 | } 24 | 25 | exports.req = require; 26 | 27 | }) 28 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/defaultable/t/mod/is_defaultable.js: -------------------------------------------------------------------------------- 1 | // A defaultable module, used by the test suite 2 | // 3 | // Copyright 2011 Iris Couch 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | require('../../defaultable')(module, 18 | { 'original': 'value' 19 | , 'should' : 'be replaced' 20 | }, function(module, exports, DEFS, require) { 21 | 22 | exports.get = function(val) { 23 | return DEFS[val]; 24 | } 25 | 26 | exports.req = require; 27 | 28 | exports.dep = function() { 29 | return require('test_dependency').example; 30 | } 31 | 32 | }) 33 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/defaultable/t/mod/is_not_defaultable.js: -------------------------------------------------------------------------------- 1 | // A non-defaultable module, used by the test suite 2 | // 3 | // Copyright 2011 Iris Couch 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | exports.get = function() { 18 | return 'normal'; 19 | } 20 | 21 | exports.req = require; 22 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/defaultable/t/mod/legacy_defaults.js: -------------------------------------------------------------------------------- 1 | // A non-defaultable module, used by the test suite 2 | // 3 | // Copyright 2011 Iris Couch 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | exports.defaults = function(val) { 18 | throw new Error('Never call me: ' + val); 19 | } 20 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/defaultable/t/mod/node_modules/test_dependency/defaultable_example.js: -------------------------------------------------------------------------------- 1 | // A defaultable module in a dependency 2 | // 3 | // Copyright 2011 Iris Couch 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | require('../../../../../defaultable')(module, 18 | { 19 | }, function(module, exports, DEFS, require) { 20 | 21 | exports.defaultable_example = DEFS.value || 'Defaultable dependency example'; 22 | 23 | }) // defaultable 24 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/defaultable/t/mod/node_modules/test_dependency/example.js: -------------------------------------------------------------------------------- 1 | exports.example = 'Example dependency'; 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/defaultable/t/mod/node_modules/test_dependency/package.json: -------------------------------------------------------------------------------- 1 | { "name": "test_dependency" 2 | , "version": "0.1.0" 3 | , "author": { "name": "Jason Smith" 4 | , "email": "jhs@iriscouch.com" 5 | , "url" : "http://www.iriscouch.com/" 6 | } 7 | , "description": "A test dependency for defaultable" 8 | , "tags" : ["tap", "test", "defaultable"] 9 | 10 | , "engines": [ "node" ] 11 | 12 | , "dependencies" : {} 13 | 14 | , "devDependencies": {} 15 | 16 | , "main": "example.js" 17 | } 18 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/fixed-event/.npmignore: -------------------------------------------------------------------------------- 1 | ./.gitignore 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/fixed-event/api.js: -------------------------------------------------------------------------------- 1 | // The Once API 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | require('defaultable').def(module, 16 | { 17 | }, function(module, exports, DEFS, require) { 18 | 19 | var once = require('./lib/once') 20 | , events = require('./lib/events') 21 | 22 | module.exports = { 'Once' : once.Once 23 | , 'EventEmitter': events.EventEmitter 24 | } 25 | 26 | 27 | }) // defaultable 28 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/fixed-event/package.json: -------------------------------------------------------------------------------- 1 | { "name": "fixed-event" 2 | , "version": "0.2.0" 3 | , "author": { "name": "Jason Smith" , "email": "jhs@iriscouch.com" } 4 | , "description": "addListener() after an event was emitted and still get called back" 5 | , "tags" : ["events", "EventEmitter"] 6 | , "homepage": "http://github.com/iriscouch/fixed-event" 7 | , "repository": { "type": "git" , "url": "git://github.com/iriscouch/fixed-event" } 8 | , "engines": [ "node" ] 9 | 10 | , "dependencies" : { "defaultable": "~0.7.2" 11 | } 12 | 13 | , "devDependencies": { "tap": "~0.1.3" 14 | } 15 | 16 | , "main": "./api" 17 | } 18 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/follow/.npmignore: -------------------------------------------------------------------------------- 1 | ./.gitignore 2 | ./Rakefile 3 | ./browser/ 4 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/follow/api.js: -------------------------------------------------------------------------------- 1 | // The changes_couchdb API 2 | // 3 | // Copyright 2011 Iris Couch 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | var feed = require('./feed'); 18 | 19 | function follow_feed(opts, cb) { 20 | var ch_feed = new feed.Feed(opts); 21 | ch_feed.on('error' , function(er) { return cb && cb.call(ch_feed, er) }); 22 | ch_feed.on('change', function(ch) { return cb && cb.call(ch_feed, null, ch) }); 23 | 24 | // Give the caller a chance to hook into any events. 25 | process.nextTick(function() { 26 | ch_feed.follow(); 27 | }) 28 | 29 | return ch_feed; 30 | } 31 | 32 | module.exports = follow_feed; 33 | module.exports.Feed = feed.Feed; 34 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/follow/package.json: -------------------------------------------------------------------------------- 1 | { "name": "follow" 2 | , "version": "0.6.1" 3 | , "author": { "name": "Jason Smith" 4 | , "email": "jhs@iriscouch.com" } 5 | , "description": "Extremely robust, fault-tolerant CouchDB changes follower" 6 | , "keywords": ["couchdb", "changes", "sleep", "sleepy"] 7 | , "homepage": "http://github.com/iriscouch/follow" 8 | , "repository": { "type": "git" 9 | , "url": "git://github.com/iriscouch/follow" } 10 | , "engines": [ "node" ] 11 | , "dependencies" : { "request" : "~2.2.5" 12 | } 13 | , "devDependencies": { "tap": "~0.1.3" 14 | , "traceback": "~0.3.0" 15 | } 16 | 17 | , "main": "./api.js" 18 | , "bin": {"follow": "./cli.js"} 19 | } 20 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .gitignore 3 | .rvmrc 4 | Gemfile 5 | Gemfile.lock 6 | Rakefile 7 | bench/* 8 | dist/* 9 | spec/* 10 | src/* 11 | vendor/* 12 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2011 by Yehuda Katz 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | 21 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/lib/handlebars.js: -------------------------------------------------------------------------------- 1 | var Handlebars = require("./handlebars/base"); 2 | module.exports = Handlebars; 3 | 4 | // Each of these augment the Handlebars object. No need to setup here. 5 | // (This is done to easily share code between commonjs and browse envs) 6 | require("./handlebars/utils"); 7 | 8 | require("./handlebars/compiler"); 9 | require("./handlebars/vm"); 10 | 11 | // BEGIN(BROWSER) 12 | 13 | // END(BROWSER) 14 | 15 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/lib/handlebars/compiler/base.js: -------------------------------------------------------------------------------- 1 | var handlebars = require("./parser").parser; 2 | var Handlebars = require("../base"); 3 | 4 | // BEGIN(BROWSER) 5 | Handlebars.Parser = handlebars; 6 | 7 | Handlebars.parse = function(string) { 8 | Handlebars.Parser.yy = Handlebars.AST; 9 | return Handlebars.Parser.parse(string); 10 | }; 11 | 12 | Handlebars.print = function(ast) { 13 | return new Handlebars.PrintVisitor().accept(ast); 14 | }; 15 | 16 | Handlebars.logger = { 17 | DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, level: 3, 18 | 19 | // override in the host environment 20 | log: function(level, str) {} 21 | }; 22 | 23 | Handlebars.log = function(level, str) { Handlebars.logger.log(level, str); }; 24 | 25 | // END(BROWSER) 26 | 27 | module.exports = Handlebars; 28 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/lib/handlebars/compiler/index.js: -------------------------------------------------------------------------------- 1 | // Each of these module will augment the Handlebars object as it loads. No need to perform addition operations 2 | module.exports = require("./base"); 3 | require("./visitor"); 4 | require("./printer"); 5 | 6 | require("./ast"); 7 | require("./compiler"); 8 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/lib/handlebars/compiler/visitor.js: -------------------------------------------------------------------------------- 1 | var Handlebars = require("./base"); 2 | 3 | // BEGIN(BROWSER) 4 | 5 | Handlebars.Visitor = function() {}; 6 | 7 | Handlebars.Visitor.prototype = { 8 | accept: function(object) { 9 | return this[object.type](object); 10 | } 11 | }; 12 | // END(BROWSER) 13 | 14 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/.bin/uglifyjs: -------------------------------------------------------------------------------- 1 | ../uglify-js/bin/uglifyjs -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov/* 2 | *.swp 3 | *.swo 4 | node_modules 5 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2010 James Halliday (mail@substack.net) 2 | 3 | This project is free software released under the MIT/X11 license: 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/bool.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var util = require('util'); 3 | var argv = require('optimist').argv; 4 | 5 | if (argv.s) { 6 | util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: '); 7 | } 8 | console.log( 9 | (argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '') 10 | ); 11 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/boolean_double.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .boolean(['x','y','z']) 4 | .argv 5 | ; 6 | console.dir([ argv.x, argv.y, argv.z ]); 7 | console.dir(argv._); 8 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/boolean_single.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .boolean('v') 4 | .argv 5 | ; 6 | console.dir(argv.v); 7 | console.dir(argv._); 8 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/default_hash.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var argv = require('optimist') 4 | .default({ x : 10, y : 10 }) 5 | .argv 6 | ; 7 | 8 | console.log(argv.x + argv.y); 9 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/default_singles.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .default('x', 10) 4 | .default('y', 10) 5 | .argv 6 | ; 7 | console.log(argv.x + argv.y); 8 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/divide.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var argv = require('optimist') 4 | .usage('Usage: $0 -x [num] -y [num]') 5 | .demand(['x','y']) 6 | .argv; 7 | 8 | console.log(argv.x / argv.y); 9 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/line_count.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .usage('Count the lines in a file.\nUsage: $0') 4 | .demand('f') 5 | .alias('f', 'file') 6 | .describe('f', 'Load a file') 7 | .argv 8 | ; 9 | 10 | var fs = require('fs'); 11 | var s = fs.createReadStream(argv.file); 12 | 13 | var lines = 0; 14 | s.on('data', function (buf) { 15 | lines += buf.toString().match(/\n/g).length; 16 | }); 17 | 18 | s.on('end', function () { 19 | console.log(lines); 20 | }); 21 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/line_count_options.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .usage('Count the lines in a file.\nUsage: $0') 4 | .options({ 5 | file : { 6 | demand : true, 7 | alias : 'f', 8 | description : 'Load a file' 9 | }, 10 | base : { 11 | alias : 'b', 12 | description : 'Numeric base to use for output', 13 | default : 10, 14 | }, 15 | }) 16 | .argv 17 | ; 18 | 19 | var fs = require('fs'); 20 | var s = fs.createReadStream(argv.file); 21 | 22 | var lines = 0; 23 | s.on('data', function (buf) { 24 | lines += buf.toString().match(/\n/g).length; 25 | }); 26 | 27 | s.on('end', function () { 28 | console.log(lines.toString(argv.base)); 29 | }); 30 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/line_count_wrap.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .usage('Count the lines in a file.\nUsage: $0') 4 | .wrap(80) 5 | .demand('f') 6 | .alias('f', [ 'file', 'filename' ]) 7 | .describe('f', 8 | "Load a file. It's pretty important." 9 | + " Required even. So you'd better specify it." 10 | ) 11 | .alias('b', 'base') 12 | .describe('b', 'Numeric base to display the number of lines in') 13 | .default('b', 10) 14 | .describe('x', 'Super-secret optional parameter which is secret') 15 | .default('x', '') 16 | .argv 17 | ; 18 | 19 | var fs = require('fs'); 20 | var s = fs.createReadStream(argv.file); 21 | 22 | var lines = 0; 23 | s.on('data', function (buf) { 24 | lines += buf.toString().match(/\n/g).length; 25 | }); 26 | 27 | s.on('end', function () { 28 | console.log(lines.toString(argv.base)); 29 | }); 30 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/nonopt.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | console.log('(%d,%d)', argv.x, argv.y); 4 | console.log(argv._); 5 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/reflect.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.dir(require('optimist').argv); 3 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/short.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | console.log('(%d,%d)', argv.x, argv.y); 4 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/string.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .string('x', 'y') 4 | .argv 5 | ; 6 | console.dir([ argv.x, argv.y ]); 7 | 8 | /* Turns off numeric coercion: 9 | ./node string.js -x 000123 -y 9876 10 | [ '000123', '9876' ] 11 | */ 12 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/usage-options.js: -------------------------------------------------------------------------------- 1 | var optimist = require('./../index'); 2 | 3 | var argv = optimist.usage('This is my awesome program', { 4 | 'about': { 5 | description: 'Provide some details about the author of this program', 6 | required: true, 7 | short: 'a', 8 | }, 9 | 'info': { 10 | description: 'Provide some information about the node.js agains!!!!!!', 11 | boolean: true, 12 | short: 'i' 13 | } 14 | }).argv; 15 | 16 | optimist.showHelp(); 17 | 18 | console.log('\n\nInspecting options'); 19 | console.dir(argv); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/examples/xup.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | 4 | if (argv.rif - 5 * argv.xup > 7.138) { 5 | console.log('Buy more riffiwobbles'); 6 | } 7 | else { 8 | console.log('Sell the xupptumblers'); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/example/center.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(20, 60); 2 | console.log(wrap( 3 | 'At long last the struggle and tumult was over.' 4 | + ' The machines had finally cast off their oppressors' 5 | + ' and were finally free to roam the cosmos.' 6 | + '\n' 7 | + 'Free of purpose, free of obligation.' 8 | + ' Just drifting through emptiness.' 9 | + ' The sun was just another point of light.' 10 | )); 11 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/example/meat.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(15); 2 | 3 | console.log(wrap('You and your whole family are made out of meat.')); 4 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "wordwrap", 3 | "description" : "Wrap those words. Show them at what columns to start and stop.", 4 | "version" : "0.0.2", 5 | "repository" : { 6 | "type" : "git", 7 | "url" : "git://github.com/substack/node-wordwrap.git" 8 | }, 9 | "main" : "./index.js", 10 | "keywords" : [ 11 | "word", 12 | "wrap", 13 | "rule", 14 | "format", 15 | "column" 16 | ], 17 | "directories" : { 18 | "lib" : ".", 19 | "example" : "example", 20 | "test" : "test" 21 | }, 22 | "scripts" : { 23 | "test" : "expresso" 24 | }, 25 | "devDependencies" : { 26 | "expresso" : "=0.7.x" 27 | }, 28 | "engines" : { 29 | "node" : ">=0.4.0" 30 | }, 31 | "license" : "MIT/X11", 32 | "author" : { 33 | "name" : "James Halliday", 34 | "email" : "mail@substack.net", 35 | "url" : "http://substack.net" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/test/break.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert'); 2 | var wordwrap = require('../'); 3 | 4 | exports.hard = function () { 5 | var s = 'Assert from {"type":"equal","ok":false,"found":1,"wanted":2,' 6 | + '"stack":[],"id":"b7ddcd4c409de8799542a74d1a04689b",' 7 | + '"browser":"chrome/6.0"}' 8 | ; 9 | var s_ = wordwrap.hard(80)(s); 10 | 11 | var lines = s_.split('\n'); 12 | assert.equal(lines.length, 2); 13 | assert.ok(lines[0].length < 80); 14 | assert.ok(lines[1].length < 80); 15 | 16 | assert.equal(s, s_.replace(/\n/g, '')); 17 | }; 18 | 19 | exports.break = function () { 20 | var s = new Array(55+1).join('a'); 21 | var s_ = wordwrap.hard(20)(s); 22 | 23 | var lines = s_.split('\n'); 24 | assert.equal(lines.length, 3); 25 | assert.ok(lines[0].length === 20); 26 | assert.ok(lines[1].length === 20); 27 | assert.ok(lines[2].length === 15); 28 | 29 | assert.equal(s, s_.replace(/\n/g, '')); 30 | }; 31 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/test/wrap.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert'); 2 | var wordwrap = require('wordwrap'); 3 | 4 | var fs = require('fs'); 5 | var idleness = fs.readFileSync(__dirname + '/idleness.txt', 'utf8'); 6 | 7 | exports.stop80 = function () { 8 | var lines = wordwrap(80)(idleness).split(/\n/); 9 | var words = idleness.split(/\s+/); 10 | 11 | lines.forEach(function (line) { 12 | assert.ok(line.length <= 80, 'line > 80 columns'); 13 | var chunks = line.match(/\S/) ? line.split(/\s+/) : []; 14 | assert.deepEqual(chunks, words.splice(0, chunks.length)); 15 | }); 16 | }; 17 | 18 | exports.start20stop60 = function () { 19 | var lines = wordwrap(20, 100)(idleness).split(/\n/); 20 | var words = idleness.split(/\s+/); 21 | 22 | lines.forEach(function (line) { 23 | assert.ok(line.length <= 100, 'line > 100 columns'); 24 | var chunks = line 25 | .split(/\s+/) 26 | .filter(function (x) { return x.match(/\S/) }) 27 | ; 28 | assert.deepEqual(chunks, words.splice(0, chunks.length)); 29 | assert.deepEqual(line.slice(0, 20), new Array(20 + 1).join(' ')); 30 | }); 31 | }; 32 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "optimist", 3 | "version" : "0.2.8", 4 | "description" : "Light-weight option parsing with an argv hash. No optstrings attached.", 5 | "main" : "./index.js", 6 | "directories" : { 7 | "lib" : ".", 8 | "test" : "test", 9 | "example" : "examples" 10 | }, 11 | "dependencies" : { 12 | "wordwrap" : ">=0.0.1 <0.1.0" 13 | }, 14 | "devDependencies" : { 15 | "hashish": "0.0.x", 16 | "expresso" : "0.7.x" 17 | }, 18 | "scripts" : { 19 | "test" : "expresso" 20 | }, 21 | "repository" : { 22 | "type" : "git", 23 | "url" : "http://github.com/substack/node-optimist.git" 24 | }, 25 | "keywords" : [ 26 | "argument", 27 | "args", 28 | "option", 29 | "parser", 30 | "parsing", 31 | "cli", 32 | "command" 33 | ], 34 | "author" : { 35 | "name" : "James Halliday", 36 | "email" : "mail@substack.net", 37 | "url" : "http://substack.net" 38 | }, 39 | "license" : "MIT/X11", 40 | "engine" : { 41 | "node" : ">=0.4" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/test/_/argv.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.log(JSON.stringify(process.argv)); 3 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/optimist/test/_/bin.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('../../index').argv 3 | console.log(JSON.stringify(argv._)); 4 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .tmp*~ 3 | *.local.* 4 | .pinf-* -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "uglify-js", 3 | 4 | "author" : { 5 | "name" : "Mihai Bazon", 6 | "email" : "mihai.bazon@gmail.com", 7 | "url" : "http://mihai.bazon.net/blog" 8 | }, 9 | 10 | "version" : "1.0.7", 11 | 12 | "main" : "./uglify-js.js", 13 | 14 | "bin" : { 15 | "uglifyjs" : "./bin/uglifyjs" 16 | }, 17 | 18 | "repository": { 19 | "type": "git", 20 | "url": "git@github.com:mishoo/UglifyJS.git" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/beautify.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | 3 | global.sys = require("sys"); 4 | var fs = require("fs"); 5 | 6 | var jsp = require("../lib/parse-js"); 7 | var pro = require("../lib/process"); 8 | 9 | var filename = process.argv[2]; 10 | fs.readFile(filename, "utf8", function(err, text){ 11 | try { 12 | var ast = time_it("parse", function(){ return jsp.parse(text); }); 13 | ast = time_it("mangle", function(){ return pro.ast_mangle(ast); }); 14 | ast = time_it("squeeze", function(){ return pro.ast_squeeze(ast); }); 15 | var gen = time_it("generate", function(){ return pro.gen_code(ast, false); }); 16 | sys.puts(gen); 17 | } catch(ex) { 18 | sys.debug(ex.stack); 19 | sys.debug(sys.inspect(ex)); 20 | sys.debug(JSON.stringify(ex)); 21 | } 22 | }); 23 | 24 | function time_it(name, cont) { 25 | var t1 = new Date().getTime(); 26 | try { return cont(); } 27 | finally { sys.debug("// " + name + ": " + ((new Date().getTime() - t1) / 1000).toFixed(3) + " sec."); } 28 | }; 29 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/array1.js: -------------------------------------------------------------------------------- 1 | [],Array(1),[1,2,3] 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/array2.js: -------------------------------------------------------------------------------- 1 | (function(){var a=function(){};return new a(1,2,3,4)})() 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/array3.js: -------------------------------------------------------------------------------- 1 | (function(){function a(){}return new a(1,2,3,4)})() 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/array4.js: -------------------------------------------------------------------------------- 1 | (function(){function a(){}(function(){return new a(1,2,3)})()})() 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/assignment.js: -------------------------------------------------------------------------------- 1 | a=1,b=a,c=1,d=b,e=d,longname=2;if(longname+1){x=3;if(x)var z=7}z=1,y=1,x=1,g+=1,h=g,++i,j=i,i++,j=i+17 -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/concatstring.js: -------------------------------------------------------------------------------- 1 | var a=a+"a"+"b"+1+c,b=a+"c"+"ds"+123+c,c=a+"c"+123+d+"ds"+c -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/const.js: -------------------------------------------------------------------------------- 1 | var a=13,b=1/3 -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/empty-blocks.js: -------------------------------------------------------------------------------- 1 | function bar(){return--x}function foo(){while(bar());}function mak(){for(;;);}var x=5 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/forstatement.js: -------------------------------------------------------------------------------- 1 | a=func(),b=z;for(a++;i<10;i++)alert(i);var z=1;g=2;for(;i<10;i++)alert(i);var a=2;for(var i=1;i<10;i++)alert(i) -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/if.js: -------------------------------------------------------------------------------- 1 | var a=1;a==1?a=2:a=17 -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/ifreturn.js: -------------------------------------------------------------------------------- 1 | function a(a){return a==1?2:17} -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/ifreturn2.js: -------------------------------------------------------------------------------- 1 | function x(a){return typeof a=="object"?a:a===42?0:a*2}function y(a){return typeof a=="object"?a:null} 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue10.js: -------------------------------------------------------------------------------- 1 | function f(){var a;return(a="a")?a:a}f() -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue11.js: -------------------------------------------------------------------------------- 1 | new(A,B),new(A||B),new(X?A:B) -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue13.js: -------------------------------------------------------------------------------- 1 | var a=/^(?:(\w+):)?(?:\/\/(?:(?:([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#])(?::(\d))?)?(..?$|(?:[^?#\/]\/))([^?#]*)(?:\?([^#]))?(?:#(.))?/ -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue14.js: -------------------------------------------------------------------------------- 1 | var a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"} 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue16.js: -------------------------------------------------------------------------------- 1 | var a=3250441966 -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue17.js: -------------------------------------------------------------------------------- 1 | var a=function(b){b(),a()} -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue20.js: -------------------------------------------------------------------------------- 1 | a:1 -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue21.js: -------------------------------------------------------------------------------- 1 | var a=0;switch(a){case 0:a++} -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue25.js: -------------------------------------------------------------------------------- 1 | label1:{label2:break label2;console.log(1)} -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue27.js: -------------------------------------------------------------------------------- 1 | (a?b:c)?d:e -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue28.js: -------------------------------------------------------------------------------- 1 | o={".5":.5},o={.5:.5},o={.5:.5} -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue29.js: -------------------------------------------------------------------------------- 1 | result=function(){return 1}() -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue30.js: -------------------------------------------------------------------------------- 1 | var a=8,b=4,c=4 -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue34.js: -------------------------------------------------------------------------------- 1 | var a={};a["this"]=1,a.that=2 -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue4.js: -------------------------------------------------------------------------------- 1 | var a=2e3,b=.002,c=2e-5 -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue48.js: -------------------------------------------------------------------------------- 1 | var s,i;s="",i=0 -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue50.js: -------------------------------------------------------------------------------- 1 | function bar(a){try{foo()}catch(b){alert("Exception caught (foo not defined)")}alert(a)}bar(10) 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue53.js: -------------------------------------------------------------------------------- 1 | x=(y,z) 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue54.1.js: -------------------------------------------------------------------------------- 1 | foo+"",a.toString(16),b.toString.call(c) 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue68.js: -------------------------------------------------------------------------------- 1 | function f(){function b(){}if(a)return;b()} 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue69.js: -------------------------------------------------------------------------------- 1 | [(a,b)] 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/issue9.js: -------------------------------------------------------------------------------- 1 | var a={a:1,b:2} -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/mangle.js: -------------------------------------------------------------------------------- 1 | (function(){var a=function b(a,b,c){return b}})() 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/expected/strict-equals.js: -------------------------------------------------------------------------------- 1 | typeof a=="string",b+""!=c+"",d> 1; 3 | var c = 8 >>> 1; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/issue34.js: -------------------------------------------------------------------------------- 1 | var a = {}; 2 | a["this"] = 1; 3 | a["that"] = 2; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/issue4.js: -------------------------------------------------------------------------------- 1 | var a = 2e3; 2 | var b = 2e-3; 3 | var c = 2e-5; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/issue48.js: -------------------------------------------------------------------------------- 1 | var s, i; s = ''; i = 0; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/issue50.js: -------------------------------------------------------------------------------- 1 | function bar(a) { 2 | try { 3 | foo(); 4 | } catch(e) { 5 | alert("Exception caught (foo not defined)"); 6 | } 7 | alert(a); // 10 in FF, "[object Error]" in IE 8 | } 9 | bar(10); 10 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/issue53.js: -------------------------------------------------------------------------------- 1 | x = (y, z) 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/issue54.1.js: -------------------------------------------------------------------------------- 1 | foo.toString(); 2 | a.toString(16); 3 | b.toString.call(c); 4 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/issue68.js: -------------------------------------------------------------------------------- 1 | function f() { 2 | if (a) return; 3 | g(); 4 | function g(){} 5 | }; 6 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/issue69.js: -------------------------------------------------------------------------------- 1 | [(a,b)] 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/issue9.js: -------------------------------------------------------------------------------- 1 | var a = { 2 | a: 1, 3 | b: 2, // <-- trailing comma 4 | }; 5 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/mangle.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var x = function fun(a, fun, b) { 3 | return fun; 4 | }; 5 | }()); 6 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/strict-equals.js: -------------------------------------------------------------------------------- 1 | typeof a === 'string' 2 | b + "" !== c + "" 3 | d < e === f < g 4 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/var.js: -------------------------------------------------------------------------------- 1 | // var declarations after each other should be combined 2 | var a = 1; 3 | var b = 2; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/test/unit/compress/test/with.js: -------------------------------------------------------------------------------- 1 | with({}) { 2 | }; 3 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/tmp/hoist.js: -------------------------------------------------------------------------------- 1 | function foo(arg1, arg2, arg3, arg4, arg5, arg6) { 2 | var a = 5; 3 | { 4 | var d = 10, mak = 20, buz = 30; 5 | var q = buz * 2; 6 | } 7 | if (moo) { 8 | var a, b, c; 9 | } 10 | for (var arg1 = 0, d = 20; arg1 < 10; ++arg1) 11 | console.log(arg3); 12 | for (var i in mak) {} 13 | for (j in d) {} 14 | var d; 15 | 16 | function test() { 17 | 18 | }; 19 | 20 | //test(); 21 | 22 | (function moo(first, second){ 23 | console.log(first); 24 | })(1); 25 | 26 | (function moo(first, second){ 27 | console.log(moo()); 28 | })(1); 29 | } 30 | 31 | 32 | var foo; 33 | var bar; 34 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/tmp/test.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | 3 | global.sys = require(/^v0\.[012]/.test(process.version) ? "sys" : "util"); 4 | var fs = require("fs"); 5 | var uglify = require("uglify-js"), // symlink ~/.node_libraries/uglify-js.js to ../uglify-js.js 6 | jsp = uglify.parser, 7 | pro = uglify.uglify; 8 | 9 | var code = fs.readFileSync("hoist.js", "utf8"); 10 | var ast = jsp.parse(code); 11 | 12 | ast = pro.ast_lift_variables(ast); 13 | 14 | console.log(pro.gen_code(ast, { 15 | beautify: true 16 | })); 17 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/node_modules/uglify-js/uglify-js.js: -------------------------------------------------------------------------------- 1 | //convienence function(src, [options]); 2 | function uglify(orig_code, options){ 3 | options || (options = {}); 4 | var jsp = uglify.parser; 5 | var pro = uglify.uglify; 6 | 7 | var ast = jsp.parse(orig_code, options.strict_semicolons); // parse code and get the initial AST 8 | ast = pro.ast_mangle(ast, options.mangle_options); // get a new AST with mangled names 9 | ast = pro.ast_squeeze(ast, options.squeeze_options); // get an AST with compression optimizations 10 | var final_code = pro.gen_code(ast, options.gen_options); // compressed code here 11 | return final_code; 12 | }; 13 | 14 | uglify.parser = require("./lib/parse-js"); 15 | uglify.uglify = require("./lib/process"); 16 | 17 | module.exports = uglify -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/handlebars/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "handlebars", 3 | "description": "Extension of the Mustache logicless template language", 4 | "version": "1.0.2beta", 5 | "homepage": "http://www.handlebarsjs.com/", 6 | "keywords": "handlebars mustache template html", 7 | "repository": { 8 | "type": "git", 9 | "url": "git://github.com/kpdecker/handlebars.js.git" 10 | }, 11 | "engines": { 12 | "node": ">=0.4.7" 13 | }, 14 | "dependencies": { 15 | "optimist": "~0.2", 16 | "uglify-js": "~1.0" 17 | }, 18 | "devDependencies": {}, 19 | "main": "lib/handlebars.js", 20 | "bin": { 21 | "handlebars": "bin/handlebars" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov/* 2 | *.swp 3 | *.swo 4 | node_modules 5 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2010 James Halliday (mail@substack.net) 2 | 3 | This project is free software released under the MIT/X11 license: 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/bool.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var util = require('util'); 3 | var argv = require('optimist').argv; 4 | 5 | if (argv.s) { 6 | util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: '); 7 | } 8 | console.log( 9 | (argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '') 10 | ); 11 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/boolean_double.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .boolean(['x','y','z']) 4 | .argv 5 | ; 6 | console.dir([ argv.x, argv.y, argv.z ]); 7 | console.dir(argv._); 8 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/boolean_single.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .boolean('v') 4 | .argv 5 | ; 6 | console.dir(argv.v); 7 | console.dir(argv._); 8 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/default_hash.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var argv = require('optimist') 4 | .default({ x : 10, y : 10 }) 5 | .argv 6 | ; 7 | 8 | console.log(argv.x + argv.y); 9 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/default_singles.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .default('x', 10) 4 | .default('y', 10) 5 | .argv 6 | ; 7 | console.log(argv.x + argv.y); 8 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/divide.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var argv = require('optimist') 4 | .usage('Usage: $0 -x [num] -y [num]') 5 | .demand(['x','y']) 6 | .argv; 7 | 8 | console.log(argv.x / argv.y); 9 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/line_count.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .usage('Count the lines in a file.\nUsage: $0') 4 | .demand('f') 5 | .alias('f', 'file') 6 | .describe('f', 'Load a file') 7 | .argv 8 | ; 9 | 10 | var fs = require('fs'); 11 | var s = fs.createReadStream(argv.file); 12 | 13 | var lines = 0; 14 | s.on('data', function (buf) { 15 | lines += buf.toString().match(/\n/g).length; 16 | }); 17 | 18 | s.on('end', function () { 19 | console.log(lines); 20 | }); 21 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/line_count_options.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .usage('Count the lines in a file.\nUsage: $0') 4 | .options({ 5 | file : { 6 | demand : true, 7 | alias : 'f', 8 | description : 'Load a file' 9 | }, 10 | base : { 11 | alias : 'b', 12 | description : 'Numeric base to use for output', 13 | default : 10, 14 | }, 15 | }) 16 | .argv 17 | ; 18 | 19 | var fs = require('fs'); 20 | var s = fs.createReadStream(argv.file); 21 | 22 | var lines = 0; 23 | s.on('data', function (buf) { 24 | lines += buf.toString().match(/\n/g).length; 25 | }); 26 | 27 | s.on('end', function () { 28 | console.log(lines.toString(argv.base)); 29 | }); 30 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/line_count_wrap.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .usage('Count the lines in a file.\nUsage: $0') 4 | .wrap(80) 5 | .demand('f') 6 | .alias('f', [ 'file', 'filename' ]) 7 | .describe('f', 8 | "Load a file. It's pretty important." 9 | + " Required even. So you'd better specify it." 10 | ) 11 | .alias('b', 'base') 12 | .describe('b', 'Numeric base to display the number of lines in') 13 | .default('b', 10) 14 | .describe('x', 'Super-secret optional parameter which is secret') 15 | .default('x', '') 16 | .argv 17 | ; 18 | 19 | var fs = require('fs'); 20 | var s = fs.createReadStream(argv.file); 21 | 22 | var lines = 0; 23 | s.on('data', function (buf) { 24 | lines += buf.toString().match(/\n/g).length; 25 | }); 26 | 27 | s.on('end', function () { 28 | console.log(lines.toString(argv.base)); 29 | }); 30 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/nonopt.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | console.log('(%d,%d)', argv.x, argv.y); 4 | console.log(argv._); 5 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/reflect.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.dir(require('optimist').argv); 3 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/short.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | console.log('(%d,%d)', argv.x, argv.y); 4 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/string.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .string('x', 'y') 4 | .argv 5 | ; 6 | console.dir([ argv.x, argv.y ]); 7 | 8 | /* Turns off numeric coercion: 9 | ./node string.js -x 000123 -y 9876 10 | [ '000123', '9876' ] 11 | */ 12 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/usage-options.js: -------------------------------------------------------------------------------- 1 | var optimist = require('./../index'); 2 | 3 | var argv = optimist.usage('This is my awesome program', { 4 | 'about': { 5 | description: 'Provide some details about the author of this program', 6 | required: true, 7 | short: 'a', 8 | }, 9 | 'info': { 10 | description: 'Provide some information about the node.js agains!!!!!!', 11 | boolean: true, 12 | short: 'i' 13 | } 14 | }).argv; 15 | 16 | optimist.showHelp(); 17 | 18 | console.log('\n\nInspecting options'); 19 | console.dir(argv); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/examples/xup.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | 4 | if (argv.rif - 5 * argv.xup > 7.138) { 5 | console.log('Buy more riffiwobbles'); 6 | } 7 | else { 8 | console.log('Sell the xupptumblers'); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/node_modules/wordwrap/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/node_modules/wordwrap/example/center.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(20, 60); 2 | console.log(wrap( 3 | 'At long last the struggle and tumult was over.' 4 | + ' The machines had finally cast off their oppressors' 5 | + ' and were finally free to roam the cosmos.' 6 | + '\n' 7 | + 'Free of purpose, free of obligation.' 8 | + ' Just drifting through emptiness.' 9 | + ' The sun was just another point of light.' 10 | )); 11 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/node_modules/wordwrap/example/meat.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(15); 2 | 3 | console.log(wrap('You and your whole family are made out of meat.')); 4 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/node_modules/wordwrap/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "wordwrap", 3 | "description" : "Wrap those words. Show them at what columns to start and stop.", 4 | "version" : "0.0.2", 5 | "repository" : { 6 | "type" : "git", 7 | "url" : "git://github.com/substack/node-wordwrap.git" 8 | }, 9 | "main" : "./index.js", 10 | "keywords" : [ 11 | "word", 12 | "wrap", 13 | "rule", 14 | "format", 15 | "column" 16 | ], 17 | "directories" : { 18 | "lib" : ".", 19 | "example" : "example", 20 | "test" : "test" 21 | }, 22 | "scripts" : { 23 | "test" : "expresso" 24 | }, 25 | "devDependencies" : { 26 | "expresso" : "=0.7.x" 27 | }, 28 | "engines" : { 29 | "node" : ">=0.4.0" 30 | }, 31 | "license" : "MIT/X11", 32 | "author" : { 33 | "name" : "James Halliday", 34 | "email" : "mail@substack.net", 35 | "url" : "http://substack.net" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/node_modules/wordwrap/test/break.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert'); 2 | var wordwrap = require('../'); 3 | 4 | exports.hard = function () { 5 | var s = 'Assert from {"type":"equal","ok":false,"found":1,"wanted":2,' 6 | + '"stack":[],"id":"b7ddcd4c409de8799542a74d1a04689b",' 7 | + '"browser":"chrome/6.0"}' 8 | ; 9 | var s_ = wordwrap.hard(80)(s); 10 | 11 | var lines = s_.split('\n'); 12 | assert.equal(lines.length, 2); 13 | assert.ok(lines[0].length < 80); 14 | assert.ok(lines[1].length < 80); 15 | 16 | assert.equal(s, s_.replace(/\n/g, '')); 17 | }; 18 | 19 | exports.break = function () { 20 | var s = new Array(55+1).join('a'); 21 | var s_ = wordwrap.hard(20)(s); 22 | 23 | var lines = s_.split('\n'); 24 | assert.equal(lines.length, 3); 25 | assert.ok(lines[0].length === 20); 26 | assert.ok(lines[1].length === 20); 27 | assert.ok(lines[2].length === 15); 28 | 29 | assert.equal(s, s_.replace(/\n/g, '')); 30 | }; 31 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/node_modules/wordwrap/test/wrap.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert'); 2 | var wordwrap = require('wordwrap'); 3 | 4 | var fs = require('fs'); 5 | var idleness = fs.readFileSync(__dirname + '/idleness.txt', 'utf8'); 6 | 7 | exports.stop80 = function () { 8 | var lines = wordwrap(80)(idleness).split(/\n/); 9 | var words = idleness.split(/\s+/); 10 | 11 | lines.forEach(function (line) { 12 | assert.ok(line.length <= 80, 'line > 80 columns'); 13 | var chunks = line.match(/\S/) ? line.split(/\s+/) : []; 14 | assert.deepEqual(chunks, words.splice(0, chunks.length)); 15 | }); 16 | }; 17 | 18 | exports.start20stop60 = function () { 19 | var lines = wordwrap(20, 100)(idleness).split(/\n/); 20 | var words = idleness.split(/\s+/); 21 | 22 | lines.forEach(function (line) { 23 | assert.ok(line.length <= 100, 'line > 100 columns'); 24 | var chunks = line 25 | .split(/\s+/) 26 | .filter(function (x) { return x.match(/\S/) }) 27 | ; 28 | assert.deepEqual(chunks, words.splice(0, chunks.length)); 29 | assert.deepEqual(line.slice(0, 20), new Array(20 + 1).join(' ')); 30 | }); 31 | }; 32 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "optimist", 3 | "version" : "0.3.0", 4 | "description" : "Light-weight option parsing with an argv hash. No optstrings attached.", 5 | "main" : "./index.js", 6 | "directories" : { 7 | "lib" : ".", 8 | "test" : "test", 9 | "example" : "examples" 10 | }, 11 | "dependencies" : { 12 | "wordwrap" : ">=0.0.1 <0.1.0" 13 | }, 14 | "devDependencies" : { 15 | "hashish": "0.0.x", 16 | "expresso" : "0.7.x" 17 | }, 18 | "scripts" : { 19 | "test" : "expresso" 20 | }, 21 | "repository" : { 22 | "type" : "git", 23 | "url" : "http://github.com/substack/node-optimist.git" 24 | }, 25 | "keywords" : [ 26 | "argument", 27 | "args", 28 | "option", 29 | "parser", 30 | "parsing", 31 | "cli", 32 | "command" 33 | ], 34 | "author" : { 35 | "name" : "James Halliday", 36 | "email" : "mail@substack.net", 37 | "url" : "http://substack.net" 38 | }, 39 | "license" : "MIT/X11", 40 | "engine" : { 41 | "node" : ">=0.4" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/test/_/argv.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.log(JSON.stringify(process.argv)); 3 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/optimist/test/_/bin.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('../../index').argv 3 | console.log(JSON.stringify(argv._)); 4 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/request/oauth.js: -------------------------------------------------------------------------------- 1 | var crypto = require('crypto') 2 | , qs = require('querystring') 3 | ; 4 | 5 | function sha1 (key, body) { 6 | return crypto.createHmac('sha1', key).update(body).digest('base64') 7 | } 8 | 9 | function rfc3986 (str) { 10 | return encodeURIComponent(str) 11 | .replace('!','%21') 12 | .replace('*','%2A') 13 | .replace('(','%28') 14 | .replace(')','%29') 15 | .replace("'",'%27') 16 | ; 17 | } 18 | 19 | function hmacsign (httpMethod, base_uri, params, consumer_secret, token_secret, body) { 20 | // adapted from https://dev.twitter.com/docs/auth/oauth 21 | var base = 22 | httpMethod + "&" + 23 | encodeURIComponent( base_uri ) + "&" + 24 | Object.keys(params).sort().map(function (i) { 25 | // big WTF here with the escape + encoding but it's what twitter wants 26 | return escape(rfc3986(i)) + "%3D" + escape(rfc3986(params[i])) 27 | }).join("%26") 28 | var key = consumer_secret + '&' 29 | if (token_secret) key += token_secret 30 | return sha1(key, base) 31 | } 32 | 33 | exports.hmacsign = hmacsign 34 | exports.rfc3986 = rfc3986 -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/request/package.json: -------------------------------------------------------------------------------- 1 | { "name" : "request" 2 | , "description" : "Simplified HTTP request client." 3 | , "tags" : ["http", "simple", "util", "utility"] 4 | , "version" : "2.2.9" 5 | , "author" : "Mikeal Rogers " 6 | , "repository" : 7 | { "type" : "git" 8 | , "url" : "http://github.com/mikeal/request.git" 9 | } 10 | , "bugs" : 11 | { "url" : "http://github.com/mikeal/request/issues" } 12 | , "engines" : ["node >= 0.3.6"] 13 | , "main" : "./main" 14 | , "scripts": { "test": "bash tests/run.sh" } 15 | } 16 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/request/tests/googledoodle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/request/tests/googledoodle.png -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/request/tests/run.sh: -------------------------------------------------------------------------------- 1 | FAILS=0 2 | for i in tests/test-*.js; do 3 | echo $i 4 | node $i || let FAILS++ 5 | done 6 | exit $FAILS 7 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/request/tests/test-cookie.js: -------------------------------------------------------------------------------- 1 | var Cookie = require('../vendor/cookie') 2 | , assert = require('assert'); 3 | 4 | var str = 'sid=s543qactge.wKE61E01Bs%2BKhzmxrwrnug; path=/; httpOnly; expires=Sat, 04 Dec 2010 23:27:28 GMT'; 5 | var cookie = new Cookie(str); 6 | 7 | // test .toString() 8 | assert.equal(cookie.toString(), str); 9 | 10 | // test .path 11 | assert.equal(cookie.path, '/'); 12 | 13 | // test .httpOnly 14 | assert.equal(cookie.httpOnly, true); 15 | 16 | // test .name 17 | assert.equal(cookie.name, 'sid'); 18 | 19 | // test .value 20 | assert.equal(cookie.value, 's543qactge.wKE61E01Bs%2BKhzmxrwrnug'); 21 | 22 | // test .expires 23 | assert.equal(cookie.expires instanceof Date, true); 24 | 25 | // test .path default 26 | var cookie = new Cookie('foo=bar', { url: 'http://foo.com/bar' }); 27 | assert.equal(cookie.path, '/bar'); 28 | 29 | console.log('All tests passed'); 30 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/request/tests/test-errors.js: -------------------------------------------------------------------------------- 1 | var server = require('./server') 2 | , events = require('events') 3 | , assert = require('assert') 4 | , request = require('../main.js') 5 | ; 6 | 7 | var local = 'http://localhost:8888/asdf' 8 | 9 | try { 10 | request({uri:local, body:{}}) 11 | assert.fail("Should have throw") 12 | } catch(e) { 13 | assert.equal(e.message, 'Argument error, options.body.') 14 | } 15 | 16 | try { 17 | request({uri:local, multipart: 'foo'}) 18 | assert.fail("Should have throw") 19 | } catch(e) { 20 | assert.equal(e.message, 'Argument error, options.multipart.') 21 | } 22 | 23 | try { 24 | request({uri:local, multipart: [{}]}) 25 | assert.fail("Should have throw") 26 | } catch(e) { 27 | assert.equal(e.message, 'Body attribute missing in multipart.') 28 | } 29 | 30 | console.log("All tests passed.") 31 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/request/tests/test-proxy.js: -------------------------------------------------------------------------------- 1 | var server = require('./server') 2 | , events = require('events') 3 | , stream = require('stream') 4 | , assert = require('assert') 5 | , fs = require('fs') 6 | , request = require('../main.js') 7 | , path = require('path') 8 | , util = require('util') 9 | ; 10 | 11 | var port = 6768 12 | , called = false 13 | , proxiedHost = 'google.com' 14 | ; 15 | 16 | var s = server.createServer(port) 17 | s.listen(port, function () { 18 | s.on('http://google.com/', function (req, res) { 19 | called = true 20 | assert.equal(req.headers.host, proxiedHost) 21 | res.writeHeader(200) 22 | res.end() 23 | }) 24 | request ({ 25 | url: 'http://'+proxiedHost, 26 | proxy: 'http://localhost:'+port 27 | /* 28 | //should behave as if these arguments where passed: 29 | url: 'http://localhost:'+port, 30 | headers: {host: proxiedHost} 31 | //*/ 32 | }, function (err, res, body) { 33 | s.close() 34 | }) 35 | }) 36 | 37 | process.on('exit', function () { 38 | assert.ok(called, 'the request must be made to the proxy server') 39 | }) 40 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/request/uuid.js: -------------------------------------------------------------------------------- 1 | module.exports = function () { 2 | var s = [], itoh = '0123456789ABCDEF'; 3 | 4 | // Make array of random hex digits. The UUID only has 32 digits in it, but we 5 | // allocate an extra items to make room for the '-'s we'll be inserting. 6 | for (var i = 0; i <36; i++) s[i] = Math.floor(Math.random()*0x10); 7 | 8 | // Conform to RFC-4122, section 4.4 9 | s[14] = 4; // Set 4 high bits of time_high field to version 10 | s[19] = (s[19] & 0x3) | 0x8; // Specify 2 high bits of clock sequence 11 | 12 | // Convert to hex chars 13 | for (var i = 0; i <36; i++) s[i] = itoh[s[i]]; 14 | 15 | // Insert '-'s 16 | s[8] = s[13] = s[18] = s[23] = '-'; 17 | 18 | return s.join(''); 19 | } 20 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/request/vendor/cookie/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Tobi - Cookie 3 | * Copyright(c) 2010 LearnBoost 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * Module dependencies. 9 | */ 10 | 11 | var url = require('url'); 12 | 13 | /** 14 | * Initialize a new `Cookie` with the given cookie `str` and `req`. 15 | * 16 | * @param {String} str 17 | * @param {IncomingRequest} req 18 | * @api private 19 | */ 20 | 21 | var Cookie = exports = module.exports = function Cookie(str, req) { 22 | this.str = str; 23 | 24 | // First key is the name 25 | this.name = str.substr(0, str.indexOf('=')); 26 | 27 | // Map the key/val pairs 28 | str.split(/ *; */).reduce(function(obj, pair){ 29 | pair = pair.split(/ *= */); 30 | obj[pair[0].toLowerCase()] = pair[1] || true; 31 | return obj; 32 | }, this); 33 | 34 | // Assign value 35 | this.value = this[this.name]; 36 | 37 | // Expires 38 | this.expires = this.expires 39 | ? new Date(this.expires) 40 | : Infinity; 41 | 42 | // Default or trim path 43 | this.path = this.path || '/'; 44 | }; 45 | 46 | /** 47 | * Return the original cookie string. 48 | * 49 | * @return {String} 50 | * @api public 51 | */ 52 | 53 | Cookie.prototype.toString = function(){ 54 | return this.str; 55 | }; 56 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/rimraf/AUTHORS: -------------------------------------------------------------------------------- 1 | # Authors sorted by whether or not they're me. 2 | Isaac Z. Schlueter (http://blog.izs.me) 3 | Wayne Larsen (http://github.com/wvl) 4 | ritch 5 | Marcel Laverdet 6 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/rimraf/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2009, 2010, 2011 Isaac Z. Schlueter. 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/rimraf/README.md: -------------------------------------------------------------------------------- 1 | A `rm -rf` for node. 2 | 3 | Install with `npm install rimraf`, or just drop rimraf.js somewhere. 4 | 5 | ## API 6 | 7 | `rimraf(f, [options,] callback)` 8 | 9 | The callback will be called with an error if there is one. Certain 10 | errors are handled for you: 11 | 12 | * `EBUSY` - rimraf will back off a maximum of opts.maxBusyTries times 13 | before giving up. 14 | * `EMFILE` - If too many file descriptors get opened, rimraf will 15 | patiently wait until more become available. 16 | 17 | ## Options 18 | 19 | The options object is optional. These fields are respected: 20 | 21 | * `maxBusyTries` - The number of times to retry a file or folder in the 22 | event of an `EBUSY` error. The default is 3. 23 | * `gently` - If provided a `gently` path, then rimraf will only delete 24 | files and folders that are beneath this path, and only delete symbolic 25 | links that point to a place within this path. (This is very important 26 | to npm's use-case, and shows rimraf's pedigree.) 27 | 28 | 29 | ## rimraf.sync 30 | 31 | It can remove stuff synchronously, too. But that's not so good. Use 32 | the async API. It's better. 33 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/rimraf/package.json: -------------------------------------------------------------------------------- 1 | {"name":"rimraf" 2 | ,"version":"1.0.9" 3 | ,"main":"rimraf.js" 4 | ,"description":"A deep deletion module for node (like `rm -rf`)" 5 | ,"author":"Isaac Z. Schlueter (http://blog.izs.me/)" 6 | ,"license": 7 | {"type":"MIT", "url": "https://github.com/isaacs/rimraf/raw/master/LICENSE"} 8 | ,"repository":"git://github.com/isaacs/rimraf.git" 9 | ,"scripts":{"test":"cd test && bash run.sh"}} 10 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/rimraf/test/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | for i in test-*.js; do 4 | echo -n $i ... 5 | bash setup.sh 6 | node $i 7 | ! [ -d target ] 8 | echo "pass" 9 | done 10 | rm -rf target 11 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/rimraf/test/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | files=10 6 | folders=2 7 | depth=4 8 | target="$PWD/target" 9 | 10 | rm -rf target 11 | 12 | fill () { 13 | local depth=$1 14 | local files=$2 15 | local folders=$3 16 | local target=$4 17 | 18 | if ! [ -d $target ]; then 19 | mkdir -p $target 20 | fi 21 | 22 | local f 23 | 24 | f=$files 25 | while [ $f -gt 0 ]; do 26 | touch "$target/f-$depth-$f" 27 | let f-- 28 | done 29 | 30 | let depth-- 31 | 32 | if [ $depth -le 0 ]; then 33 | return 0 34 | fi 35 | 36 | f=$folders 37 | while [ $f -gt 0 ]; do 38 | mkdir "$target/folder-$depth-$f" 39 | fill $depth $files $folders "$target/d-$depth-$f" 40 | let f-- 41 | done 42 | } 43 | 44 | fill $depth $files $folders $target 45 | 46 | # sanity assert 47 | [ -d $target ] 48 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/rimraf/test/test-async.js: -------------------------------------------------------------------------------- 1 | var rimraf = require("../rimraf") 2 | , path = require("path") 3 | rimraf(path.join(__dirname, "target"), function (er) { 4 | if (er) throw er 5 | }) 6 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/rimraf/test/test-fiber.js: -------------------------------------------------------------------------------- 1 | var rimraf 2 | , path = require("path") 3 | 4 | try { 5 | rimraf = require("../fiber") 6 | } catch (er) { 7 | console.error("skipping fiber test") 8 | } 9 | 10 | if (rimraf) { 11 | Fiber(function () { 12 | rimraf(path.join(__dirname, "target")).wait() 13 | }).run() 14 | } 15 | 16 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/rimraf/test/test-sync.js: -------------------------------------------------------------------------------- 1 | var rimraf = require("../rimraf") 2 | , path = require("path") 3 | rimraf.sync(path.join(__dirname, "target")) 4 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/.npmignore: -------------------------------------------------------------------------------- 1 | ./.gitignore 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/api.js: -------------------------------------------------------------------------------- 1 | // The txn API 2 | // 3 | // Copyright 2011 Iris Couch 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | module.exports = require('./lib/txn'); 18 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/.npmignore: -------------------------------------------------------------------------------- 1 | *.log 2 | *.log?? 3 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | log4js 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.5 5 | - 0.6 6 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/example-connect-logger.js: -------------------------------------------------------------------------------- 1 | var log4js = require('./lib/log4js'); 2 | log4js.addAppender(log4js.fileAppender('cheese.log'), 'cheese'); 3 | 4 | var logger = log4js.getLogger('cheese'); 5 | logger.setLevel('INFO'); 6 | 7 | var app = require('express').createServer(); 8 | app.configure(function() { 9 | app.use(log4js.connectLogger(logger, { level: log4js.levels.INFO })); 10 | }); 11 | app.get('*', function(req,res) { 12 | res.send('hello world\n cheese\n'); 13 | }); 14 | app.listen(5000); 15 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/example-socket.js: -------------------------------------------------------------------------------- 1 | var log4js = require('./lib/log4js') 2 | , cluster = require('cluster') 3 | , numCPUs = require('os').cpus().length 4 | , i = 0; 5 | 6 | if (cluster.isMaster) { 7 | log4js.configure({ 8 | appenders: [ 9 | { 10 | type: "multiprocess", 11 | mode: "master", 12 | appender: { 13 | type: "console" 14 | } 15 | } 16 | ] 17 | }); 18 | 19 | console.info("Master creating %d workers", numCPUs); 20 | for (i=0; i < numCPUs; i++) { 21 | cluster.fork(); 22 | } 23 | 24 | cluster.on('death', function(worker) { 25 | console.info("Worker %d died.", worker.pid); 26 | // cluster.fork(); 27 | }); 28 | } else { 29 | log4js.configure({ 30 | appenders: [ 31 | { 32 | type: "multiprocess", 33 | mode: "worker" 34 | } 35 | ] 36 | }); 37 | function logSomething(i) { 38 | return function() { 39 | console.info("Worker %d - logging something %d", process.pid, i); 40 | } 41 | } 42 | 43 | console.info("Worker %d started.", process.pid); 44 | for (i=0; i < 1000; i++) { 45 | process.nextTick(logSomething(i)); 46 | } 47 | } 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/example.js: -------------------------------------------------------------------------------- 1 | var log4js = require('./lib/log4js'); 2 | //log the cheese logger messages to a file, and the console ones as well. 3 | log4js.addAppender(log4js.fileAppender('cheese.log'), 'cheese', 'console'); 4 | 5 | var logger = log4js.getLogger('cheese'); 6 | //only errors and above get logged. 7 | logger.setLevel('ERROR'); 8 | 9 | //console logging methds have been replaced with log4js ones. 10 | console.error("AAArgh! Something went wrong", { some: "otherObject", useful_for: "debug purposes" }); 11 | 12 | //these will not appear (logging level beneath error) 13 | logger.trace('Entering cheese testing'); 14 | logger.debug('Got cheese.'); 15 | logger.info('Cheese is Gouda.'); 16 | logger.warn('Cheese is quite smelly.'); 17 | //these end up on the console and in cheese.log 18 | logger.error('Cheese %s is too ripe!', "gouda"); 19 | logger.fatal('Cheese was breeding ground for listeria.'); 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/lib/appenders/console.js: -------------------------------------------------------------------------------- 1 | var layouts = require('../layouts'), 2 | consoleLog = console.log; 3 | 4 | function consoleAppender (layout) { 5 | layout = layout || layouts.colouredLayout; 6 | return function(loggingEvent) { 7 | consoleLog(layout(loggingEvent)); 8 | }; 9 | } 10 | 11 | function configure(config) { 12 | var layout; 13 | if (config.layout) { 14 | layout = layouts.layout(config.layout.type, config.layout); 15 | } 16 | return consoleAppender(layout); 17 | } 18 | 19 | exports.name = "console"; 20 | exports.appender = consoleAppender; 21 | exports.configure = configure; 22 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/lib/appenders/logLevelFilter.js: -------------------------------------------------------------------------------- 1 | var levels = require('../levels'); 2 | var log4js = require('../log4js'); 3 | 4 | function logLevelFilter (levelString, appender) { 5 | var level = levels.toLevel(levelString); 6 | return function(logEvent) { 7 | if (logEvent.level.isGreaterThanOrEqualTo(level)) { 8 | appender(logEvent); 9 | } 10 | } 11 | } 12 | 13 | function configure(config) { 14 | log4js.loadAppender(config.appender.type); 15 | var appender = log4js.appenderMakers[config.appender.type](config.appender); 16 | return logLevelFilter(config.level, appender); 17 | } 18 | 19 | exports.name = "logLevelFilter"; 20 | exports.appender = logLevelFilter; 21 | exports.configure = configure; 22 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/lib/log4js.json: -------------------------------------------------------------------------------- 1 | { 2 | "appenders": [ 3 | { 4 | "type": "console" 5 | } 6 | ] 7 | } -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/log-rolling.js: -------------------------------------------------------------------------------- 1 | var log4js = require('./lib/log4js') 2 | , log 3 | , i = 0; 4 | log4js.configure({ 5 | "appenders": [ 6 | { 7 | type: "console" 8 | , category: "console" 9 | }, 10 | { 11 | "type": "file", 12 | "filename": "tmp-test.log", 13 | "maxLogSize": 1024, 14 | "backups": 3, 15 | "category": "test" 16 | } 17 | ] 18 | }); 19 | log = log4js.getLogger("test"); 20 | 21 | function doTheLogging(x) { 22 | log.info("Logging something %d", x); 23 | } 24 | 25 | for ( ; i < 5000; i++) { 26 | doTheLogging(i); 27 | } -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/memory-test.js: -------------------------------------------------------------------------------- 1 | var log4js = require('./lib/log4js') 2 | , logger 3 | , usage 4 | , i; 5 | 6 | log4js.configure( 7 | { 8 | appenders: [ 9 | { 10 | category: "memory-test" 11 | , type: "file" 12 | , filename: "memory-test.log" 13 | }, 14 | { 15 | type: "console" 16 | , category: "memory-usage" 17 | }, 18 | { 19 | type: "file" 20 | , filename: "memory-usage.log" 21 | , category: "memory-usage" 22 | , layout: { 23 | type: "messagePassThrough" 24 | } 25 | } 26 | ] 27 | } 28 | ); 29 | logger = log4js.getLogger("memory-test"); 30 | usage = log4js.getLogger("memory-usage"); 31 | 32 | for (i=0; i < 1000000; i++) { 33 | if ( (i % 5000) === 0) { 34 | usage.info("%d %d", i, process.memoryUsage().rss); 35 | } 36 | logger.info("Doing something."); 37 | } 38 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/async/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "deps/nodeunit"] 2 | path = deps/nodeunit 3 | url = git://github.com/caolan/nodeunit.git 4 | [submodule "deps/UglifyJS"] 5 | path = deps/UglifyJS 6 | url = https://github.com/mishoo/UglifyJS.git 7 | [submodule "deps/nodelint"] 8 | path = deps/nodelint 9 | url = https://github.com/tav/nodelint.git 10 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/async/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Caolan McMahon 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/async/Makefile: -------------------------------------------------------------------------------- 1 | PACKAGE = asyncjs 2 | NODEJS = $(if $(shell test -f /usr/bin/nodejs && echo "true"),nodejs,node) 3 | 4 | BUILDDIR = dist 5 | 6 | all: build 7 | 8 | build: $(wildcard lib/*.js) 9 | mkdir -p $(BUILDDIR) 10 | uglifyjs lib/async.js > $(BUILDDIR)/async.min.js 11 | 12 | test: 13 | nodeunit test 14 | 15 | clean: 16 | rm -rf $(BUILDDIR) 17 | 18 | lint: 19 | nodelint --config nodelint.cfg lib/async.js 20 | 21 | .PHONY: test build all 22 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/async/index.js: -------------------------------------------------------------------------------- 1 | // This file is just added for convenience so this repository can be 2 | // directly checked out into a project's deps folder 3 | module.exports = require('./lib/async'); 4 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/async/nodelint.cfg: -------------------------------------------------------------------------------- 1 | var options = { 2 | indent: 4, 3 | onevar: false 4 | }; 5 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/async/package.json: -------------------------------------------------------------------------------- 1 | { "name": "async" 2 | , "description": "Higher-order functions and common patterns for asynchronous code" 3 | , "main": "./index" 4 | , "author": "Caolan McMahon" 5 | , "version": "0.1.15" 6 | , "repository" : 7 | { "type" : "git" 8 | , "url" : "http://github.com/caolan/async.git" 9 | } 10 | , "bugs" : { "url" : "http://github.com/caolan/async/issues" } 11 | , "licenses" : 12 | [ { "type" : "MIT" 13 | , "url" : "http://github.com/caolan/async/raw/master/LICENSE" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/async/test/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Async.js Test Suite 4 | 8 | 9 | 10 | 11 | 16 | 17 | 18 | 19 |

Async.js Test Suite

20 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | lib/compress-buffer/compress-buffer-bindings.node 3 | .lock-wscript 4 | nbproject/ 5 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/CHANGELOG: -------------------------------------------------------------------------------- 1 | 0.5.1: November 7, 2011 2 | * uncompress memory management bug fixed 3 | 4 | 0.5.0: November 5, 2011 5 | * uncompress is now cyclic: allocs as much memory as needed, not just 1GB for all cases 6 | 7 | 0.4.2: October 31, 2011 8 | * remove include of node_events.h (depricated) 9 | 10 | 0.4.1: September 21, 2011 11 | * support for string compression was eliminated. It's just not right. Want it back? See the source code. 12 | 13 | 0.4.0: September 18, 2011 14 | * fixed major bug with the compression of extremely small buffers 15 | 16 | 0.3.2: September 17, 2011 17 | * build system fixed 18 | 19 | 0.3.1: September 14, 2011 20 | * node 0.5.x support 21 | 22 | 0.2.0: March 20, 2011 23 | * single initialization of strm (a few times faster for multiple compressions) 24 | * got rid of C++ object, make methods direct 25 | * got rid of JS Class layer, call C++ functions directly 26 | * move Strings/Buffers logic to C++ 27 | * thanks to Konstantin Käfer! 28 | 29 | 0.1.0: March 20, 2011 30 | * initial release 31 | 32 | 33 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/LICENSE: -------------------------------------------------------------------------------- 1 | node-compress-buffer (C) 2011 Egor Egorov 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to 5 | deal in the Software without restriction, including without limitation the 6 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 7 | sell copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 18 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 19 | IN THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/Makefile: -------------------------------------------------------------------------------- 1 | TESTS = test/*.js 2 | 3 | all: test 4 | 5 | build: clean configure compile 6 | 7 | configure: 8 | node-waf configure 9 | 10 | compile: 11 | node-waf build 12 | 13 | test: build 14 | @./node_modules/nodeunit/bin/nodeunit $(TESTS) 15 | 16 | clean: 17 | rm -Rf build 18 | 19 | 20 | .PHONY: clean test build 21 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/build/.wafpickle-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/build/.wafpickle-7 -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/build/Release/compress-buffer-bindings.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/build/Release/compress-buffer-bindings.node -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/build/Release/src/compress-buffer_1.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/build/Release/src/compress-buffer_1.o -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/build/c4che/build.config.py: -------------------------------------------------------------------------------- 1 | version = 0x105016 2 | tools = [{'tool': 'ar', 'tooldir': None, 'funs': None}, {'tool': 'cxx', 'tooldir': None, 'funs': None}, {'tool': 'gxx', 'tooldir': None, 'funs': None}, {'tool': 'compiler_cxx', 'tooldir': None, 'funs': None}, {'tool': 'node_addon', 'tooldir': None, 'funs': None}] 3 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/build/config.log: -------------------------------------------------------------------------------- 1 | # project noname (0.4.1) configured on Wed Mar 28 04:08:48 2012 by 2 | # waf 1.5.16 (abi 7, python 20605f0 on linux2) 3 | # using /home/jhs/src/iris/hosting/ruby-inabox/build/bin/node-waf configure 4 | # 5 | 6 | ---------------------------------------- 7 | Checking for program g++ or c++ 8 | find program=['g++', 'c++'] paths=[] var='CXX' 9 | -> '/usr/bin/g++' 10 | 11 | ---------------------------------------- 12 | Checking for program cpp 13 | find program=['cpp'] paths=[] var='CPP' 14 | -> '/usr/bin/cpp' 15 | 16 | ---------------------------------------- 17 | Checking for program ar 18 | find program=['ar'] paths=[] var='AR' 19 | -> '/usr/bin/ar' 20 | 21 | ---------------------------------------- 22 | Checking for program ranlib 23 | find program=['ranlib'] paths=[] var='RANLIB' 24 | -> '/usr/bin/ranlib' 25 | 26 | ---------------------------------------- 27 | Checking for g++ 28 | ok 29 | 30 | ---------------------------------------- 31 | Checking for node path 32 | not found 33 | 34 | ---------------------------------------- 35 | Checking for node prefix 36 | ok /home/jhs/src/iris/hosting/ruby-inabox/build 37 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/index.js: -------------------------------------------------------------------------------- 1 | try { 2 | module.exports = require(__dirname+'/build/default/compress-buffer-bindings'); 3 | } catch(e) { 4 | module.exports = require(__dirname+'/build/Release/compress-buffer-bindings'); 5 | } 6 | 7 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "compress-buffer", 3 | "description": "Single-step Buffer compression library for Node.js", 4 | "homepage" : "http://egorfine.github.com/node-compress-buffer", 5 | "bugs" : { "url" : "http://github.com/egorFiNE/node-compress-buffer/issues" }, 6 | "version": "0.5.1", 7 | "author": "Egor Egorov", 8 | "repository": { 9 | "type": "git", 10 | "url": "http://github.com/egorfine/node-compress-buffer.git" 11 | }, 12 | "engine": [ "node >=0.4.0" ], 13 | "main" : "./index", 14 | "scripts": { 15 | "install": "make build" 16 | }, 17 | "devDependencies": { 18 | "nodeunit": ">=0.5.4" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/t -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/test.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/test.gz -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/node_modules/compress-buffer/wscript: -------------------------------------------------------------------------------- 1 | import Options 2 | from os import unlink, symlink, popen 3 | from os.path import exists 4 | 5 | srcdir = "." 6 | blddir = "build" 7 | VERSION = "0.4.1" 8 | 9 | def set_options(opt): 10 | opt.tool_options("compiler_cxx") 11 | 12 | opt.add_option('--debug', dest='debug', action='store_true', default=False) 13 | 14 | def configure(conf): 15 | conf.check_tool("compiler_cxx") 16 | conf.check_tool("node_addon") 17 | 18 | conf.env.DEFINES = [] 19 | conf.env.USELIB = [] 20 | conf.env.CXXFLAGS = [ '-O3' ] 21 | 22 | 23 | def build(bld): 24 | obj = bld.new_task_gen("cxx", "shlib", "node_addon") 25 | obj.cxxflags = ["-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"] 26 | obj.target = "compress-buffer-bindings" 27 | obj.source = "src/compress-buffer.cc" 28 | obj.defines = bld.env.DEFINES 29 | obj.uselib = bld.env.USELIB 30 | 31 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "log4js", 3 | "version": "0.4.3", 4 | "description": "Port of Log4js to work with node.", 5 | "keywords": [ 6 | "logging", 7 | "log", 8 | "log4j", 9 | "node" 10 | ], 11 | "main": "./lib/log4js", 12 | "author": "Gareth Jones ", 13 | "repository": { 14 | "type": "git", 15 | "url": "https://github.com/nomiddlename/log4js-node.git" 16 | }, 17 | "bugs": { 18 | "url": "http://github.com/nomiddlename/log4js-node/issues" 19 | }, 20 | "engines": [ "node >=0.4" ], 21 | "scripts": { 22 | "test": "vows test/*.js" 23 | }, 24 | "directories": { 25 | "test": "test", 26 | "lib": "lib" 27 | }, 28 | "dependencies": { 29 | "async": "0.1.15", 30 | "compress-buffer": "0.5.1" 31 | }, 32 | "devDependencies": { 33 | "vows": "0.6.2", 34 | "sandboxed-module": "0.1.3", 35 | "hook.io": "0.7.7", 36 | "underscore": "1.2.1" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/test-rolling-file-stream: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/txn/node_modules/log4js/test-rolling-file-stream -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/test/date_format.js: -------------------------------------------------------------------------------- 1 | var vows = require('vows') 2 | , assert = require('assert') 3 | , dateFormat = require('../lib/date_format'); 4 | 5 | vows.describe('date_format').addBatch({ 6 | 'Date extensions': { 7 | topic: function() { 8 | return new Date(2010, 0, 11, 14, 31, 30, 5); 9 | }, 10 | 'should format a date as string using a pattern': function(date) { 11 | assert.equal( 12 | dateFormat.asString(dateFormat.DATETIME_FORMAT, date), 13 | "11 01 2010 14:31:30.005" 14 | ); 15 | }, 16 | 'should default to the ISO8601 format': function(date) { 17 | assert.equal( 18 | dateFormat.asString(date), 19 | '2010-01-11 14:31:30.005' 20 | ); 21 | } 22 | } 23 | }).export(module); 24 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/test/log4js.json: -------------------------------------------------------------------------------- 1 | { 2 | "appenders": [ 3 | { 4 | "category": "tests", 5 | "type": "file", 6 | "filename": "tmp-tests.log", 7 | "layout": { 8 | "type": "messagePassThrough" 9 | } 10 | } 11 | ], 12 | 13 | "levels": { 14 | "tests": "WARN" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/test/test-rolling-file-stream: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/txn/node_modules/log4js/test/test-rolling-file-stream -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/test/test-rolling-file-stream-write: -------------------------------------------------------------------------------- 1 | cheese -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/test/test-rolling-file-stream-write-less: -------------------------------------------------------------------------------- 1 | cheese -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/test/test-rolling-file-stream-write-more: -------------------------------------------------------------------------------- 1 | 5.cheese 2 | 6.cheese 3 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/test/test-rolling-file-stream-write-more.1: -------------------------------------------------------------------------------- 1 | 0.cheese 2 | 1.cheese 3 | 2.cheese 4 | 3.cheese 5 | 4.cheese 6 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/test/with-log-rolling.json: -------------------------------------------------------------------------------- 1 | { 2 | "appenders": [ 3 | { 4 | "type": "file", 5 | "filename": "tmp-test.log", 6 | "maxLogSize": 1024, 7 | "backups": 3, 8 | "pollInterval": 15 9 | } 10 | ] 11 | } -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/log4js/test/with-logLevelFilter.json: -------------------------------------------------------------------------------- 1 | { 2 | "appenders": [ 3 | { 4 | "category": "tests", 5 | "type": "logLevelFilter", 6 | "level": "WARN", 7 | "appender": { 8 | "type": "file", 9 | "filename": "test/logLevelFilter-warnings.log", 10 | "layout": { 11 | "type": "messagePassThrough" 12 | } 13 | } 14 | }, 15 | { 16 | "category": "tests", 17 | "type": "file", 18 | "filename": "test/logLevelFilter.log", 19 | "layout": { 20 | "type": "messagePassThrough" 21 | } 22 | } 23 | ], 24 | 25 | "levels": { 26 | "tests": "DEBUG" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/obj_diff/.npmignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | node_modules 3 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/obj_diff/api.js: -------------------------------------------------------------------------------- 1 | var util = require('util') 2 | , diff = require('./diff') 3 | ; 4 | 5 | var API = { 'diff' : diff.doc_diff 6 | , 'atmost' : diff.doc_diff_atmost 7 | , 'atleast': diff.doc_diff_atleast 8 | }; 9 | 10 | module.exports = API; 11 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/obj_diff/package.json: -------------------------------------------------------------------------------- 1 | { "name": "obj_diff" 2 | , "version": "0.2.0" 3 | , "author": { "name": "Jason Smith" 4 | , "email": "jhs@iriscouch.com" } 5 | , "description": "Find all differences between Javascript objects" 6 | , "tags" : ["couchdb"] 7 | , "homepage": "http://github.com/iriscouch/obj_diff" 8 | , "repository": { "type": "git" 9 | , "url": "git://github.com/iriscouch/obj_diff" } 10 | , "engines": [ "node" ] 11 | 12 | , "devDependencies": { 13 | } 14 | , "main": "./api" 15 | } 16 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/node_modules/obj_diff/test/run.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var util = require('util') 4 | , diffs = require('./diffs') 5 | , policy = require('./policy') 6 | ; 7 | 8 | function main() { 9 | diffs.main(); 10 | policy.main(); 11 | } 12 | 13 | if(require.main === module) 14 | main(); 15 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/txn/package.json: -------------------------------------------------------------------------------- 1 | { "name": "txn" 2 | , "version": "0.2.8" 3 | , "author": { "name": "Jason Smith" 4 | , "email": "jhs@iriscouch.com" 5 | , "url" : "http://www.iriscouch.com/" 6 | } 7 | , "description": "Process and update CouchDB data in atomic, all-or-nothing transactions" 8 | , "tags" : ["couchdb", "transaction", "transactions"] 9 | 10 | , "homepage": "http://github.com/iriscouch/txn" 11 | , "repository": { "type": "git" 12 | , "url": "git://github.com/iriscouch/txn" } 13 | 14 | , "engines": [ "node" ] 15 | 16 | , "dependencies" : { "defaultable": "~0.7.2" 17 | , "request" : "~2.2.5" 18 | , "log4js" : "~0.4.0" 19 | , "obj_diff" : "~0.2.0" 20 | } 21 | , "main": "api.js" 22 | } 23 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/.npmignore: -------------------------------------------------------------------------------- 1 | test/*.log 2 | test/fixtures/*.json 3 | test/fixtures/logs/*.log 4 | node_modules/ 5 | node_modules/* 6 | npm-debug.log -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | - 0.7 6 | 7 | notifications: 8 | email: 9 | - travis@nodejitsu.com 10 | irc: "irc.freenode.org#nodejitsu" 11 | 12 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Charlie Robbins 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/examples/couchdb.js: -------------------------------------------------------------------------------- 1 | var winston = require('../lib/winston'); 2 | 3 | // 4 | // Create a new winston logger instance with two tranports: Console, and Couchdb 5 | // 6 | // 7 | // The Console transport will simply output to the console screen 8 | // The Couchdb tranport will perform an HTTP POST request to the specified CouchDB instance 9 | // 10 | var logger = new (winston.Logger)({ 11 | transports: [ 12 | new (winston.transports.Console)(), 13 | new (winston.transports.Couchdb)({ 'host': 'localhost', 'db': 'logs' }) 14 | // if you need auth do this: new (winston.transports.Couchdb)({ 'user': 'admin', 'pass': 'admin', 'host': 'localhost', 'db': 'logs' }) 15 | ] 16 | }); 17 | 18 | logger.log('info', 'Hello webhook log files!', { 'foo': 'bar' }); 19 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/examples/raw-mode.js: -------------------------------------------------------------------------------- 1 | var winston = require('../lib/winston'); 2 | 3 | var logger = new (winston.Logger)({ 4 | transports: [ 5 | new (winston.transports.Console)({ raw: true }), 6 | ] 7 | }); 8 | 9 | logger.log('info', 'Hello, this is a raw logging event', { 'foo': 'bar' }); 10 | logger.log('info', 'Hello, this is a raw logging event 2', { 'foo': 'bar' }); 11 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/examples/webhook-post.js: -------------------------------------------------------------------------------- 1 | var winston = require('../lib/winston'); 2 | 3 | // 4 | // Create a new winston logger instance with two tranports: Console, and Webhook 5 | // 6 | // 7 | // The Console transport will simply output to the console screen 8 | // The Webhook tranports will perform an HTTP POST request to an abritrary end-point ( for post/recieve webhooks ) 9 | // 10 | var logger = new (winston.Logger)({ 11 | transports: [ 12 | new (winston.transports.Console)(), 13 | new (winston.transports.Webhook)({ 'host': 'localhost', 'port': 8080, 'path': '/collectdata' }) 14 | ] 15 | }); 16 | 17 | logger.log('info', 'Hello webhook log files!', { 'foo': 'bar' }); 18 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/lib/winston/config.js: -------------------------------------------------------------------------------- 1 | /* 2 | * config.js: Default settings for all levels that winston knows about 3 | * 4 | * (C) 2010 Charlie Robbins 5 | * MIT LICENCE 6 | * 7 | */ 8 | 9 | var colors = require('colors'); 10 | 11 | var config = exports, 12 | allColors = exports.allColors = {}; 13 | 14 | config.addColors = function (colors) { 15 | mixin(allColors, colors); 16 | }; 17 | 18 | config.colorize = function (level) { 19 | return level[allColors[level]]; 20 | }; 21 | 22 | // 23 | // Export config sets 24 | // 25 | config.cli = require('./config/cli-config'); 26 | config.npm = require('./config/npm-config'); 27 | config.syslog = require('./config/syslog-config'); 28 | 29 | // 30 | // Add colors for pre-defined config sets 31 | // 32 | config.addColors(config.npm.colors); 33 | config.addColors(config.syslog.colors); 34 | 35 | function mixin (target) { 36 | var args = Array.prototype.slice.call(arguments, 1); 37 | 38 | args.forEach(function (a) { 39 | var keys = Object.keys(a); 40 | for (var i = 0; i < keys.length; i++) { 41 | target[keys[i]] = a[keys[i]]; 42 | } 43 | }); 44 | return target; 45 | }; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/lib/winston/config/cli-config.js: -------------------------------------------------------------------------------- 1 | /* 2 | * cli-config.js: Config that conform to commonly used CLI logging levels. 3 | * 4 | * (C) 2010 Charlie Robbins 5 | * MIT LICENCE 6 | * 7 | */ 8 | 9 | var cliConfig = exports; 10 | 11 | cliConfig.levels = { 12 | silly: 0, 13 | input: 1, 14 | verbose: 2, 15 | prompt: 3, 16 | info: 4, 17 | data: 5, 18 | help: 6, 19 | warn: 7, 20 | debug: 8, 21 | error: 9 22 | }; 23 | 24 | cliConfig.colors = { 25 | silly: 'magenta', 26 | input: 'grey', 27 | verbose: 'cyan', 28 | prompt: 'grey', 29 | info: 'green', 30 | data: 'grey', 31 | help: 'cyan', 32 | warn: 'yellow', 33 | debug: 'blue', 34 | error: 'red' 35 | }; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/lib/winston/config/npm-config.js: -------------------------------------------------------------------------------- 1 | /* 2 | * npm-config.js: Config that conform to npm logging levels. 3 | * 4 | * (C) 2010 Charlie Robbins 5 | * MIT LICENCE 6 | * 7 | */ 8 | 9 | var npmConfig = exports; 10 | 11 | npmConfig.levels = { 12 | silly: 0, 13 | verbose: 1, 14 | info: 2, 15 | warn: 3, 16 | debug: 4, 17 | error: 5 18 | }; 19 | 20 | npmConfig.colors = { 21 | silly: 'magenta', 22 | verbose: 'cyan', 23 | info: 'green', 24 | warn: 'yellow', 25 | debug: 'blue', 26 | error: 'red' 27 | }; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/lib/winston/config/syslog-config.js: -------------------------------------------------------------------------------- 1 | /* 2 | * syslog-config.js: Config that conform to syslog logging levels. 3 | * 4 | * (C) 2010 Charlie Robbins 5 | * MIT LICENCE 6 | * 7 | */ 8 | 9 | var syslogConfig = exports; 10 | 11 | syslogConfig.levels = { 12 | debug: 0, 13 | info: 1, 14 | notice: 2, 15 | warning: 3, 16 | error: 4, 17 | crit: 5, 18 | alert: 6, 19 | emerg: 7 20 | }; 21 | 22 | syslogConfig.colors = { 23 | debug: 'blue', 24 | info: 'green', 25 | notice: 'yellow', 26 | warning: 'red', 27 | error: 'red', 28 | crit: 'red', 29 | alert: 'yellow', 30 | emerg: 'red' 31 | }; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/lib/winston/transports.js: -------------------------------------------------------------------------------- 1 | /* 2 | * transports.js: Set of all transports Winston knows about 3 | * 4 | * (C) 2010 Charlie Robbins 5 | * MIT LICENCE 6 | * 7 | */ 8 | 9 | var fs = require('fs'), 10 | path = require('path'), 11 | common = require('./common'); 12 | 13 | var transports = exports; 14 | 15 | // 16 | // Setup all transports as lazy-loaded getters. 17 | // 18 | fs.readdirSync(path.join(__dirname, 'transports')).forEach(function (file) { 19 | var transport = file.replace('.js', ''), 20 | name = common.capitalize(transport); 21 | 22 | if (transport === 'transport') { 23 | return; 24 | } 25 | 26 | transports.__defineGetter__(name, function () { 27 | return require('./transports/' + transport)[name]; 28 | }); 29 | }); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/async/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "deps/nodeunit"] 2 | path = deps/nodeunit 3 | url = git://github.com/caolan/nodeunit.git 4 | [submodule "deps/UglifyJS"] 5 | path = deps/UglifyJS 6 | url = https://github.com/mishoo/UglifyJS.git 7 | [submodule "deps/nodelint"] 8 | path = deps/nodelint 9 | url = https://github.com/tav/nodelint.git 10 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/async/.npmignore: -------------------------------------------------------------------------------- 1 | deps 2 | dist 3 | test 4 | nodelint.cfg -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/async/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Caolan McMahon 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/async/Makefile: -------------------------------------------------------------------------------- 1 | PACKAGE = asyncjs 2 | NODEJS = $(if $(shell test -f /usr/bin/nodejs && echo "true"),nodejs,node) 3 | CWD := $(shell pwd) 4 | NODEUNIT = $(CWD)/node_modules/nodeunit/bin/nodeunit 5 | UGLIFY = $(CWD)/node_modules/uglify-js/bin/uglifyjs 6 | NODELINT = $(CWD)/node_modules/nodelint/nodelint 7 | 8 | BUILDDIR = dist 9 | 10 | all: clean test build 11 | 12 | build: $(wildcard lib/*.js) 13 | mkdir -p $(BUILDDIR) 14 | $(UGLIFY) lib/async.js > $(BUILDDIR)/async.min.js 15 | 16 | test: 17 | $(NODEUNIT) test 18 | 19 | clean: 20 | rm -rf $(BUILDDIR) 21 | 22 | lint: 23 | $(NODELINT) --config nodelint.cfg lib/async.js 24 | 25 | .PHONY: test build all 26 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/async/index.js: -------------------------------------------------------------------------------- 1 | // This file is just added for convenience so this repository can be 2 | // directly checked out into a project's deps folder 3 | module.exports = require('./lib/async'); 4 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/async/package.json: -------------------------------------------------------------------------------- 1 | { "name": "async" 2 | , "description": "Higher-order functions and common patterns for asynchronous code" 3 | , "main": "./index" 4 | , "author": "Caolan McMahon" 5 | , "version": "0.1.18" 6 | , "repository" : 7 | { "type" : "git" 8 | , "url" : "http://github.com/caolan/async.git" 9 | } 10 | , "bugs" : { "url" : "http://github.com/caolan/async/issues" } 11 | , "licenses" : 12 | [ { "type" : "MIT" 13 | , "url" : "http://github.com/caolan/async/raw/master/LICENSE" 14 | } 15 | ] 16 | , "devDependencies": 17 | { "nodeunit": ">0.0.0" 18 | , "uglify-js": "1.2.x" 19 | , "nodelint": ">0.0.0" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/colors/MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 2 | 3 | Marak Squires 4 | Alexis Sellier (cloudhead) 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/colors/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "colors", 3 | "description": "get colors in your node.js console like what", 4 | "version": "0.6.0-1", 5 | "author": "Marak Squires", 6 | "repository": { 7 | "type": "git", 8 | "url": "http://github.com/Marak/colors.js.git" 9 | }, 10 | "engines": { 11 | "node": ">=0.1.90" 12 | }, 13 | "main": "colors" 14 | } 15 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/eyes/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009 cloudhead 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/eyes/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @@node test/eyes-test.js 3 | 4 | .PHONY: test 5 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/eyes/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "eyes", 3 | "description" : "a customizable value inspector", 4 | "url" : "http://github.com/cloudhead/eyes.js", 5 | "keywords" : ["inspector", "debug", "inspect", "print"], 6 | "author" : "Alexis Sellier ", 7 | "contributors" : [{ "name": "Charlie Robbins", "email": "charlie@nodejitsu.com" }], 8 | "licenses" : ["MIT"], 9 | "dependencies" : [], 10 | "main" : "./lib/eyes", 11 | "version" : "0.1.7", 12 | "scripts" : { "test": "node test/*-test.js" }, 13 | "directories" : { "lib": "./lib", "test": "./test" }, 14 | "engines" : { "node": "> 0.1.90" } 15 | } 16 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/.npmignore: -------------------------------------------------------------------------------- 1 | test/data 2 | test/data/* 3 | node_modules 4 | npm-debug.log -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/lib/loggly.js: -------------------------------------------------------------------------------- 1 | /* 2 | * loggly.js: Wrapper for node-loggly object 3 | * 4 | * (C) 2010 Nodejitsu Inc. 5 | * MIT LICENSE 6 | * 7 | */ 8 | 9 | var loggly = exports; 10 | 11 | // 12 | // Export node-loggly core client APIs 13 | // 14 | loggly.createClient = require('./loggly/core').createClient; 15 | loggly.serialize = require('./loggly/common').serialize; 16 | loggly.Loggly = require('./loggly/core').Loggly; 17 | loggly.Config = require('./loggly/config').Config; 18 | 19 | // 20 | // Export Resources for node-loggly 21 | // 22 | loggly.Input = require('./loggly/input').Input; 23 | loggly.Facet = require('./loggly/facet').Facet; 24 | loggly.Device = require('./loggly/device').Device; 25 | loggly.Search = require('./loggly/search').Search; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/lib/loggly/config.js: -------------------------------------------------------------------------------- 1 | /* 2 | * config.js: Configuration information for your Loggly account. 3 | * This information is only used for require('loggly')./\.+/ methods 4 | * 5 | * (C) 2010 Nodejitsu Inc. 6 | * MIT LICENSE 7 | * 8 | */ 9 | 10 | // 11 | // function createConfig (defaults) 12 | // Creates a new instance of the configuration 13 | // object based on default values 14 | // 15 | exports.createConfig = function (defaults) { 16 | return new Config(defaults); 17 | }; 18 | 19 | // 20 | // Config (defaults) 21 | // Constructor for the Config object 22 | // 23 | var Config = exports.Config = function (defaults) { 24 | if (!defaults.subdomain) { 25 | throw new Error('Subdomain is required to create an instance of Config'); 26 | } 27 | 28 | this.subdomain = defaults.subdomain; 29 | this.json = defaults.json || null; 30 | this.auth = defaults.auth || null; 31 | }; 32 | 33 | Config.prototype = { 34 | get subdomain () { 35 | return this._subdomain; 36 | }, 37 | 38 | set subdomain (value) { 39 | this._subdomain = value; 40 | }, 41 | 42 | get logglyUrl () { 43 | return 'https://' + [this._subdomain, 'loggly', 'com'].join('.') + '/api'; 44 | }, 45 | 46 | get inputUrl () { 47 | return 'https://logs.loggly.com/inputs/'; 48 | } 49 | }; 50 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/lib/loggly/device.js: -------------------------------------------------------------------------------- 1 | /* 2 | * device.js: Instance of a single Loggly device 3 | * 4 | * (C) 2010 Nodejitsu Inc. 5 | * MIT LICENSE 6 | * 7 | */ 8 | 9 | var Device = exports.Device = function (client, details) { 10 | if (!details) throw new Error("Device must be constructed with at least basic details.") 11 | 12 | this.client = client; 13 | this._setProperties(details); 14 | }; 15 | 16 | Device.prototype.addToInput = function (inputId, callback) { 17 | this.client.addDeviceToInput(inputId, this.id, callback); 18 | }; 19 | 20 | // 21 | // Sets the properties for this instance 22 | // Parameters: details 23 | // 24 | Device.prototype._setProperties = function (details) { 25 | // Copy the properties to this instance 26 | var self = this; 27 | Object.keys(details).forEach(function (key) { 28 | self[key] = details[key]; 29 | }); 30 | }; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/lib/loggly/facet.js: -------------------------------------------------------------------------------- 1 | /* 2 | * facet.js: Chainable search functions for Loggly facet searches. 3 | * 4 | * (C) 2010 Nodejitsu Inc. 5 | * MIT LICENSE 6 | * 7 | */ 8 | 9 | var util = require('util'), 10 | Search = require('./search').Search; 11 | 12 | // 13 | // function Facet (facet, query, client, callback) 14 | // Chainable facet search object for Loggly API 15 | // 16 | var Facet = exports.Facet = function (facet, query, client, callback) { 17 | if (['date', 'ip', 'input'].indexOf(facet) === -1) { 18 | var error = new Error('Cannot search with unknown facet: ' + facet); 19 | 20 | if (callback) { 21 | return callback(error); 22 | } 23 | else { 24 | throw error; 25 | } 26 | } 27 | 28 | // 29 | // Set the baseUrl to be facet/:facet? 30 | // 31 | this.baseUrl = ['facets', facet + '?'].join('/'); 32 | 33 | // 34 | // Call the base constructor. 35 | // 36 | Search.call(this, query, client, callback); 37 | }; 38 | 39 | // 40 | // Inherit from `loggly.Search`. 41 | // 42 | util.inherits(Facet, Search); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/lib/loggly/input.js: -------------------------------------------------------------------------------- 1 | /* 2 | * input.js: Instance of a single Loggly input 3 | * 4 | * (C) 2010 Nodejitsu Inc. 5 | * MIT LICENSE 6 | * 7 | */ 8 | 9 | var Input = exports.Input = function (client, details) { 10 | if (!details) { 11 | throw new Error("Input must be constructed with at least basic details."); 12 | } 13 | 14 | this.client = client; 15 | this._setProperties(details); 16 | }; 17 | 18 | Input.prototype.log = function (msg, callback) { 19 | return this.client.log(this.input_token, msg, callback); 20 | }; 21 | 22 | Input.prototype.addDevice = function (address, callback) { 23 | this.client.addDeviceToInput(this.id, address, callback); 24 | }; 25 | 26 | // 27 | // Sets the properties for this instance 28 | // Parameters: details 29 | // 30 | Input.prototype._setProperties = function (details) { 31 | // Copy the properties to this instance 32 | var self = this; 33 | Object.keys(details).forEach(function (key) { 34 | self[key] = details[key]; 35 | }); 36 | }; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/oauth.js: -------------------------------------------------------------------------------- 1 | var crypto = require('crypto') 2 | , qs = require('querystring') 3 | ; 4 | 5 | function sha1 (key, body) { 6 | return crypto.createHmac('sha1', key).update(body).digest('base64') 7 | } 8 | 9 | function rfc3986 (str) { 10 | return encodeURIComponent(str) 11 | .replace('!','%21') 12 | .replace('*','%2A') 13 | .replace('(','%28') 14 | .replace(')','%29') 15 | .replace("'",'%27') 16 | ; 17 | } 18 | 19 | function hmacsign (httpMethod, base_uri, params, consumer_secret, token_secret, body) { 20 | // adapted from https://dev.twitter.com/docs/auth/oauth 21 | var base = 22 | (httpMethod || 'GET') + "&" + 23 | encodeURIComponent( base_uri ) + "&" + 24 | Object.keys(params).sort().map(function (i) { 25 | // big WTF here with the escape + encoding but it's what twitter wants 26 | return escape(rfc3986(i)) + "%3D" + escape(rfc3986(params[i])) 27 | }).join("%26") 28 | var key = consumer_secret + '&' 29 | if (token_secret) key += token_secret 30 | return sha1(key, base) 31 | } 32 | 33 | exports.hmacsign = hmacsign 34 | exports.rfc3986 = rfc3986 -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/package.json: -------------------------------------------------------------------------------- 1 | { "name" : "request" 2 | , "description" : "Simplified HTTP request client." 3 | , "tags" : ["http", "simple", "util", "utility"] 4 | , "version" : "2.9.153" 5 | , "author" : "Mikeal Rogers " 6 | , "repository" : 7 | { "type" : "git" 8 | , "url" : "http://github.com/mikeal/request.git" 9 | } 10 | , "bugs" : 11 | { "url" : "http://github.com/mikeal/request/issues" } 12 | , "engines" : ["node >= 0.3.6"] 13 | , "main" : "./main" 14 | , "scripts": { "test": "node tests/run.js" } 15 | } 16 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/googledoodle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/googledoodle.png -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/run.js: -------------------------------------------------------------------------------- 1 | var spawn = require('child_process').spawn 2 | , exitCode = 0 3 | ; 4 | 5 | var tests = [ 6 | 'test-body.js' 7 | , 'test-cookie.js' 8 | , 'test-cookiejar.js' 9 | , 'test-defaults.js' 10 | , 'test-errors.js' 11 | , 'test-headers.js' 12 | , 'test-httpModule.js' 13 | , 'test-https.js' 14 | , 'test-https-strict.js' 15 | , 'test-oauth.js' 16 | , 'test-pipes.js' 17 | , 'test-proxy.js' 18 | , 'test-qs.js' 19 | , 'test-redirect.js' 20 | , 'test-timeout.js' 21 | , 'test-tunnel.js' 22 | ] 23 | 24 | var next = function () { 25 | if (tests.length === 0) process.exit(exitCode); 26 | 27 | var file = tests.shift() 28 | console.log(file) 29 | var proc = spawn('node', [ 'tests/' + file ]) 30 | proc.stdout.pipe(process.stdout) 31 | proc.stderr.pipe(process.stderr) 32 | proc.on('exit', function (code) { 33 | exitCode += code || 0 34 | next() 35 | }) 36 | } 37 | next() 38 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/ca/ca.cnf: -------------------------------------------------------------------------------- 1 | [ req ] 2 | default_bits = 1024 3 | days = 3650 4 | distinguished_name = req_distinguished_name 5 | attributes = req_attributes 6 | prompt = no 7 | output_password = password 8 | 9 | [ req_distinguished_name ] 10 | C = US 11 | ST = CA 12 | L = Oakland 13 | O = request 14 | OU = request Certificate Authority 15 | CN = requestCA 16 | emailAddress = mikeal@mikealrogers.com 17 | 18 | [ req_attributes ] 19 | challengePassword = password challenge 20 | 21 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/ca/ca.crl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/ca/ca.crl -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/ca/ca.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICvTCCAiYCCQDn+P/MSbDsWjANBgkqhkiG9w0BAQUFADCBojELMAkGA1UEBhMC 3 | VVMxCzAJBgNVBAgTAkNBMRAwDgYDVQQHEwdPYWtsYW5kMRAwDgYDVQQKEwdyZXF1 4 | ZXN0MSYwJAYDVQQLEx1yZXF1ZXN0IENlcnRpZmljYXRlIEF1dGhvcml0eTESMBAG 5 | A1UEAxMJcmVxdWVzdENBMSYwJAYJKoZIhvcNAQkBFhdtaWtlYWxAbWlrZWFscm9n 6 | ZXJzLmNvbTAeFw0xMjAzMDEyMjUwNTZaFw0yMjAyMjcyMjUwNTZaMIGiMQswCQYD 7 | VQQGEwJVUzELMAkGA1UECBMCQ0ExEDAOBgNVBAcTB09ha2xhbmQxEDAOBgNVBAoT 8 | B3JlcXVlc3QxJjAkBgNVBAsTHXJlcXVlc3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5 9 | MRIwEAYDVQQDEwlyZXF1ZXN0Q0ExJjAkBgkqhkiG9w0BCQEWF21pa2VhbEBtaWtl 10 | YWxyb2dlcnMuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC7t9pQUAK4 11 | 5XJYTI6NrF0n3G2HZsfN+rPYSVzzL8SuVyb1tHXos+vbPm3NKI4E8X1yVAXU8CjJ 12 | 5SqXnp4DAypAhaseho81cbhk7LXUhFz78OvAa+OD+xTAEAnNQ8tGUr4VGyplEjfD 13 | xsBVuqV2j8GPNTftr+drOCFlqfAgMrBn4wIDAQABMA0GCSqGSIb3DQEBBQUAA4GB 14 | ADVdTlVAL45R+PACNS7Gs4o81CwSclukBu4FJbxrkd4xGQmurgfRrYYKjtqiopQm 15 | D7ysRamS3HMN9/VKq2T7r3z1PMHPAy7zM4uoXbbaTKwlnX4j/8pGPn8Ca3qHXYlo 16 | 88L/OOPc6Di7i7qckS3HFbXQCTiULtxWmy97oEuTwrAj 17 | -----END CERTIFICATE----- 18 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/ca/ca.csr: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIICBjCCAW8CAQAwgaIxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEQMA4GA1UE 3 | BxMHT2FrbGFuZDEQMA4GA1UEChMHcmVxdWVzdDEmMCQGA1UECxMdcmVxdWVzdCBD 4 | ZXJ0aWZpY2F0ZSBBdXRob3JpdHkxEjAQBgNVBAMTCXJlcXVlc3RDQTEmMCQGCSqG 5 | SIb3DQEJARYXbWlrZWFsQG1pa2VhbHJvZ2Vycy5jb20wgZ8wDQYJKoZIhvcNAQEB 6 | BQADgY0AMIGJAoGBALu32lBQArjlclhMjo2sXSfcbYdmx836s9hJXPMvxK5XJvW0 7 | deiz69s+bc0ojgTxfXJUBdTwKMnlKpeengMDKkCFqx6GjzVxuGTstdSEXPvw68Br 8 | 44P7FMAQCc1Dy0ZSvhUbKmUSN8PGwFW6pXaPwY81N+2v52s4IWWp8CAysGfjAgMB 9 | AAGgIzAhBgkqhkiG9w0BCQcxFBMScGFzc3dvcmQgY2hhbGxlbmdlMA0GCSqGSIb3 10 | DQEBBQUAA4GBAGJO7grHeVHXetjHEK8urIxdnvfB2qeZeObz4GPKIkqUurjr0rfj 11 | bA3EK1kDMR5aeQWR8RunixdM16Q6Ry0lEdLVWkdSwRN9dmirIHT9cypqnD/FYOia 12 | SdezZ0lUzXgmJIwRYRwB1KSMMocIf52ll/xC2bEGg7/ZAEuAyAgcZV3X 13 | -----END CERTIFICATE REQUEST----- 14 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/ca/ca.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: DES-EDE3-CBC,C8B5887048377F02 4 | 5 | nyD5ZH0Wup2uWsDvurq5mKDaDrf8lvNn9w0SH/ZkVnfR1/bkwqrFriqJWvZNUG+q 6 | nS0iBYczsWLJnbub9a1zLOTENWUKVD5uqbC3aGHhnoUTNSa27DONgP8gHOn6JgR+ 7 | GAKo01HCSTiVT4LjkwN337QKHnMP2fTzg+IoC/CigvMcq09hRLwU1/guq0GJKGwH 8 | gTxYNuYmQC4Tjh8vdS4liF+Ve/P3qPR2CehZrIOkDT8PHJBGQJRo4xGUIB7Tpk38 9 | VCk+UZ0JCS2coY8VkY/9tqFJp/ZnnQQVmaNbdRqg7ECKL+bXnNo7yjzmazPZmPe3 10 | /ShbE0+CTt7LrjCaQAxWbeDzqfo1lQfgN1LulTm8MCXpQaJpv7v1VhIhQ7afjMYb 11 | 4thW/ypHPiYS2YJCAkAVlua9Oxzzh1qJoh8Df19iHtpd79Q77X/qf+1JvITlMu0U 12 | gi7yEatmQcmYNws1mtTC1q2DXrO90c+NZ0LK/Alse6NRL/xiUdjug2iHeTf/idOR 13 | Gg/5dSZbnnlj1E5zjSMDkzg6EHAFmHV4jYGSAFLEQgp4V3ZhMVoWZrvvSHgKV/Qh 14 | FqrAK4INr1G2+/QTd09AIRzfy3/j6yD4A9iNaOsEf9Ua7Qh6RcALRCAZTWR5QtEf 15 | dX+iSNJ4E85qXs0PqwkMDkoaxIJ+tmIRJY7y8oeylV8cfGAi8Soubt/i3SlR8IHC 16 | uDMas/2OnwafK3N7ODeE1i7r7wkzQkSHaEz0TrF8XRnP25jAICCSLiMdAAjKfxVb 17 | EvzsFSuAy3Jt6bU3hSLY9o4YVYKE+68ITMv9yNjvTsEiW+T+IbN34w== 18 | -----END RSA PRIVATE KEY----- 19 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/ca/ca.srl: -------------------------------------------------------------------------------- 1 | ADF62016AA40C9C3 2 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/ca/server.cnf: -------------------------------------------------------------------------------- 1 | [ req ] 2 | default_bits = 1024 3 | days = 3650 4 | distinguished_name = req_distinguished_name 5 | attributes = req_attributes 6 | prompt = no 7 | 8 | [ req_distinguished_name ] 9 | C = US 10 | ST = CA 11 | L = Oakland 12 | O = request 13 | OU = testing 14 | CN = testing.request.mikealrogers.com 15 | emailAddress = mikeal@mikealrogers.com 16 | 17 | [ req_attributes ] 18 | challengePassword = password challenge 19 | 20 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/ca/server.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICejCCAeMCCQCt9iAWqkDJwzANBgkqhkiG9w0BAQUFADCBojELMAkGA1UEBhMC 3 | VVMxCzAJBgNVBAgTAkNBMRAwDgYDVQQHEwdPYWtsYW5kMRAwDgYDVQQKEwdyZXF1 4 | ZXN0MSYwJAYDVQQLEx1yZXF1ZXN0IENlcnRpZmljYXRlIEF1dGhvcml0eTESMBAG 5 | A1UEAxMJcmVxdWVzdENBMSYwJAYJKoZIhvcNAQkBFhdtaWtlYWxAbWlrZWFscm9n 6 | ZXJzLmNvbTAeFw0xMjAzMDEyMjUwNTZaFw0yMjAyMjcyMjUwNTZaMIGjMQswCQYD 7 | VQQGEwJVUzELMAkGA1UECBMCQ0ExEDAOBgNVBAcTB09ha2xhbmQxEDAOBgNVBAoT 8 | B3JlcXVlc3QxEDAOBgNVBAsTB3Rlc3RpbmcxKTAnBgNVBAMTIHRlc3RpbmcucmVx 9 | dWVzdC5taWtlYWxyb2dlcnMuY29tMSYwJAYJKoZIhvcNAQkBFhdtaWtlYWxAbWlr 10 | ZWFscm9nZXJzLmNvbTBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDgVl0jMumvOpmM 11 | 20W5v9yhGgZj8hPhEQF/N7yCBVBn/rWGYm70IHC8T/pR5c0LkWc5gdnCJEvKWQjh 12 | DBKxZD8FAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEABShRkNgFbgs4vUWW9R9deNJj 13 | 7HJoiTmvkmoOC7QzcYkjdgHbOxsSq3rBnwxsVjY9PAtPwBn0GRspOeG7KzKRgySB 14 | kb22LyrCFKbEOfKO/+CJc80ioK9zEPVjGsFMyAB+ftYRqM+s/4cQlTg/m89l01wC 15 | yapjN3RxZbInGhWR+jA= 16 | -----END CERTIFICATE----- 17 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/ca/server.csr: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIBgjCCASwCAQAwgaMxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEQMA4GA1UE 3 | BxMHT2FrbGFuZDEQMA4GA1UEChMHcmVxdWVzdDEQMA4GA1UECxMHdGVzdGluZzEp 4 | MCcGA1UEAxMgdGVzdGluZy5yZXF1ZXN0Lm1pa2VhbHJvZ2Vycy5jb20xJjAkBgkq 5 | hkiG9w0BCQEWF21pa2VhbEBtaWtlYWxyb2dlcnMuY29tMFwwDQYJKoZIhvcNAQEB 6 | BQADSwAwSAJBAOBWXSMy6a86mYzbRbm/3KEaBmPyE+ERAX83vIIFUGf+tYZibvQg 7 | cLxP+lHlzQuRZzmB2cIkS8pZCOEMErFkPwUCAwEAAaAjMCEGCSqGSIb3DQEJBzEU 8 | ExJwYXNzd29yZCBjaGFsbGVuZ2UwDQYJKoZIhvcNAQEFBQADQQBD3E5WekQzCEJw 9 | 7yOcqvtPYIxGaX8gRKkYfLPoj3pm3GF5SGqtJKhylKfi89szHXgktnQgzff9FN+A 10 | HidVJ/3u 11 | -----END CERTIFICATE REQUEST----- 12 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/ca/server.js: -------------------------------------------------------------------------------- 1 | var fs = require("fs") 2 | var https = require("https") 3 | var options = { key: fs.readFileSync("./server.key") 4 | , cert: fs.readFileSync("./server.crt") } 5 | 6 | var server = https.createServer(options, function (req, res) { 7 | res.writeHead(200) 8 | res.end() 9 | server.close() 10 | }) 11 | server.listen(1337) 12 | 13 | var ca = fs.readFileSync("./ca.crt") 14 | var agent = new https.Agent({ host: "localhost", port: 1337, ca: ca }) 15 | 16 | https.request({ host: "localhost" 17 | , method: "HEAD" 18 | , port: 1337 19 | , headers: { host: "testing.request.mikealrogers.com" } 20 | , agent: agent 21 | , ca: [ ca ] 22 | , path: "/" }, function (res) { 23 | if (res.client.authorized) { 24 | console.log("node test: OK") 25 | } else { 26 | throw new Error(res.client.authorizationError) 27 | } 28 | }).end() 29 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/ca/server.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIBOwIBAAJBAOBWXSMy6a86mYzbRbm/3KEaBmPyE+ERAX83vIIFUGf+tYZibvQg 3 | cLxP+lHlzQuRZzmB2cIkS8pZCOEMErFkPwUCAwEAAQJAK+r8ZM2sze8s7FRo/ApB 4 | iRBtO9fCaIdJwbwJnXKo4RKwZDt1l2mm+fzZ+/QaQNjY1oTROkIIXmnwRvZWfYlW 5 | gQIhAPKYsG+YSBN9o8Sdp1DMyZ/rUifKX3OE6q9tINkgajDVAiEA7Ltqh01+cnt0 6 | JEnud/8HHcuehUBLMofeg0G+gCnSbXECIQCqDvkXsWNNLnS/3lgsnvH0Baz4sbeJ 7 | rjIpuVEeg8eM5QIgbu0+9JmOV6ybdmmiMV4yAncoF35R/iKGVHDZCAsQzDECIQDZ 8 | 0jGz22tlo5YMcYSqrdD3U4sds1pwiAaWFRbCunoUJw== 9 | -----END RSA PRIVATE KEY----- 10 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/npm-ca.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIChzCCAfACCQDauvz/KHp8ejANBgkqhkiG9w0BAQUFADCBhzELMAkGA1UEBhMC 3 | VVMxCzAJBgNVBAgTAkNBMRAwDgYDVQQHEwdPYWtsYW5kMQwwCgYDVQQKEwNucG0x 4 | IjAgBgNVBAsTGW5wbSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxDjAMBgNVBAMTBW5w 5 | bUNBMRcwFQYJKoZIhvcNAQkBFghpQGl6cy5tZTAeFw0xMTA5MDUwMTQ3MTdaFw0y 6 | MTA5MDIwMTQ3MTdaMIGHMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExEDAOBgNV 7 | BAcTB09ha2xhbmQxDDAKBgNVBAoTA25wbTEiMCAGA1UECxMZbnBtIENlcnRpZmlj 8 | YXRlIEF1dGhvcml0eTEOMAwGA1UEAxMFbnBtQ0ExFzAVBgkqhkiG9w0BCQEWCGlA 9 | aXpzLm1lMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLI4tIqPpRW+ACw9GE 10 | OgBlJZwK5f8nnKCLK629Pv5yJpQKs3DENExAyOgDcyaF0HD0zk8zTp+ZsLaNdKOz 11 | Gn2U181KGprGKAXP6DU6ByOJDWmTlY6+Ad1laYT0m64fERSpHw/hjD3D+iX4aMOl 12 | y0HdbT5m1ZGh6SJz3ZqxavhHLQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAC4ySDbC 13 | l7W1WpLmtLGEQ/yuMLUf6Jy/vr+CRp4h+UzL+IQpCv8FfxsYE7dhf/bmWTEupBkv 14 | yNL18lipt2jSvR3v6oAHAReotvdjqhxddpe5Holns6EQd1/xEZ7sB1YhQKJtvUrl 15 | ZNufy1Jf1r0ldEGeA+0ISck7s+xSh9rQD2Op 16 | -----END CERTIFICATE----- 17 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/test.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICQzCCAawCCQCO/XWtRFck1jANBgkqhkiG9w0BAQUFADBmMQswCQYDVQQGEwJU 3 | SDEQMA4GA1UECBMHQmFuZ2tvazEOMAwGA1UEBxMFU2lsb20xGzAZBgNVBAoTElRo 4 | ZSBSZXF1ZXN0IE1vZHVsZTEYMBYGA1UEAxMPcmVxdWVzdC5leGFtcGxlMB4XDTEx 5 | MTIwMzAyMjkyM1oXDTIxMTEzMDAyMjkyM1owZjELMAkGA1UEBhMCVEgxEDAOBgNV 6 | BAgTB0Jhbmdrb2sxDjAMBgNVBAcTBVNpbG9tMRswGQYDVQQKExJUaGUgUmVxdWVz 7 | dCBNb2R1bGUxGDAWBgNVBAMTD3JlcXVlc3QuZXhhbXBsZTCBnzANBgkqhkiG9w0B 8 | AQEFAAOBjQAwgYkCgYEAwmctddZqlA48+NXs0yOy92DijcQV1jf87zMiYAIlNUto 9 | wghVbTWgJU5r0pdKrD16AptnWJTzKanhItEX8XCCPgsNkq1afgTtJP7rNkwu3xcj 10 | eIMkhJg/ay4ZnkbnhYdsii5VTU5prix6AqWRAhbkBgoA+iVyHyof8wvZyKBoFTMC 11 | AwEAATANBgkqhkiG9w0BAQUFAAOBgQB6BybMJbpeiABgihDfEVBcAjDoQ8gUMgwV 12 | l4NulugfKTDmArqnR9aPd4ET5jX5dkMP4bwCHYsvrcYDeWEQy7x5WWuylOdKhua4 13 | L4cEi2uDCjqEErIG3cc1MCOk6Cl6Ld6tkIzQSf953qfdEACRytOeUqLNQcrXrqeE 14 | c7U8F6MWLQ== 15 | -----END CERTIFICATE----- 16 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/ssl/test.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICXgIBAAKBgQDCZy111mqUDjz41ezTI7L3YOKNxBXWN/zvMyJgAiU1S2jCCFVt 3 | NaAlTmvSl0qsPXoCm2dYlPMpqeEi0RfxcII+Cw2SrVp+BO0k/us2TC7fFyN4gySE 4 | mD9rLhmeRueFh2yKLlVNTmmuLHoCpZECFuQGCgD6JXIfKh/zC9nIoGgVMwIDAQAB 5 | AoGBALXFwfUf8vHTSmGlrdZS2AGFPvEtuvldyoxi9K5u8xmdFCvxnOcLsF2RsTHt 6 | Mu5QYWhUpNJoG+IGLTPf7RJdj/kNtEs7xXqWy4jR36kt5z5MJzqiK+QIgiO9UFWZ 7 | fjUb6oeDnTIJA9YFBdYi97MDuL89iU/UK3LkJN3hd4rciSbpAkEA+MCkowF5kSFb 8 | rkOTBYBXZfiAG78itDXN6DXmqb9XYY+YBh3BiQM28oxCeQYyFy6pk/nstnd4TXk6 9 | V/ryA2g5NwJBAMgRKTY9KvxJWbESeMEFe2iBIV0c26/72Amgi7ZKUCLukLfD4tLF 10 | +WSZdmTbbqI1079YtwaiOVfiLm45Q/3B0eUCQAaQ/0eWSGE+Yi8tdXoVszjr4GXb 11 | G81qBi91DMu6U1It+jNfIba+MPsiHLcZJMVb4/oWBNukN7bD1nhwFWdlnu0CQQCf 12 | Is9WHkdvz2RxbZDxb8verz/7kXXJQJhx5+rZf7jIYFxqX3yvTNv3wf2jcctJaWlZ 13 | fVZwB193YSivcgt778xlAkEAprYUz3jczjF5r2hrgbizPzPDR94tM5BTO3ki2v3w 14 | kbf+j2g7FNAx6kZiVN8XwfLc8xEeUGiPKwtq3ddPDFh17w== 15 | -----END RSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/test-cookie.js: -------------------------------------------------------------------------------- 1 | var Cookie = require('../vendor/cookie') 2 | , assert = require('assert'); 3 | 4 | var str = 'sid="s543qactge.wKE61E01Bs%2BKhzmxrwrnug="; path=/; httpOnly; expires=Sat, 04 Dec 2010 23:27:28 GMT'; 5 | var cookie = new Cookie(str); 6 | 7 | // test .toString() 8 | assert.equal(cookie.toString(), str); 9 | 10 | // test .path 11 | assert.equal(cookie.path, '/'); 12 | 13 | // test .httpOnly 14 | assert.equal(cookie.httpOnly, true); 15 | 16 | // test .name 17 | assert.equal(cookie.name, 'sid'); 18 | 19 | // test .value 20 | assert.equal(cookie.value, '"s543qactge.wKE61E01Bs%2BKhzmxrwrnug="'); 21 | 22 | // test .expires 23 | assert.equal(cookie.expires instanceof Date, true); 24 | 25 | // test .path default 26 | var cookie = new Cookie('foo=bar', { url: 'http://foo.com/bar' }); 27 | assert.equal(cookie.path, '/bar'); 28 | 29 | console.log('All tests passed'); 30 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/test-errors.js: -------------------------------------------------------------------------------- 1 | var server = require('./server') 2 | , events = require('events') 3 | , assert = require('assert') 4 | , request = require('../main.js') 5 | ; 6 | 7 | var local = 'http://localhost:8888/asdf' 8 | 9 | try { 10 | request({uri:local, body:{}}) 11 | assert.fail("Should have throw") 12 | } catch(e) { 13 | assert.equal(e.message, 'Argument error, options.body.') 14 | } 15 | 16 | try { 17 | request({uri:local, multipart: 'foo'}) 18 | assert.fail("Should have throw") 19 | } catch(e) { 20 | assert.equal(e.message, 'Argument error, options.multipart.') 21 | } 22 | 23 | try { 24 | request({uri:local, multipart: [{}]}) 25 | assert.fail("Should have throw") 26 | } catch(e) { 27 | assert.equal(e.message, 'Body attribute missing in multipart.') 28 | } 29 | 30 | try { 31 | request(local, {multipart: [{}]}) 32 | assert.fail("Should have throw") 33 | } catch(e) { 34 | assert.equal(e.message, 'Body attribute missing in multipart.') 35 | } 36 | 37 | console.log("All tests passed.") 38 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/test-proxy.js: -------------------------------------------------------------------------------- 1 | var server = require('./server') 2 | , events = require('events') 3 | , stream = require('stream') 4 | , assert = require('assert') 5 | , fs = require('fs') 6 | , request = require('../main.js') 7 | , path = require('path') 8 | , util = require('util') 9 | ; 10 | 11 | var port = 6768 12 | , called = false 13 | , proxiedHost = 'google.com' 14 | ; 15 | 16 | var s = server.createServer(port) 17 | s.listen(port, function () { 18 | s.on('http://google.com/', function (req, res) { 19 | called = true 20 | assert.equal(req.headers.host, proxiedHost) 21 | res.writeHeader(200) 22 | res.end() 23 | }) 24 | request ({ 25 | url: 'http://'+proxiedHost, 26 | proxy: 'http://localhost:'+port 27 | /* 28 | //should behave as if these arguments where passed: 29 | url: 'http://localhost:'+port, 30 | headers: {host: proxiedHost} 31 | //*/ 32 | }, function (err, res, body) { 33 | s.close() 34 | }) 35 | }) 36 | 37 | process.on('exit', function () { 38 | assert.ok(called, 'the request must be made to the proxy server') 39 | }) 40 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/tests/test-qs.js: -------------------------------------------------------------------------------- 1 | var request = request = require('../main.js') 2 | , assert = require('assert') 3 | ; 4 | 5 | 6 | // Test adding a querystring 7 | var req1 = request.get({ uri: 'http://www.google.com', qs: { q : 'search' }}) 8 | setTimeout(function() { 9 | assert.equal('/?q=search', req1.path) 10 | }, 1) 11 | 12 | // Test replacing a querystring value 13 | var req2 = request.get({ uri: 'http://www.google.com?q=abc', qs: { q : 'search' }}) 14 | setTimeout(function() { 15 | assert.equal('/?q=search', req2.path) 16 | }, 1) 17 | 18 | // Test appending a querystring value to the ones present in the uri 19 | var req3 = request.get({ uri: 'http://www.google.com?x=y', qs: { q : 'search' }}) 20 | setTimeout(function() { 21 | assert.equal('/?x=y&q=search', req3.path) 22 | }, 1) 23 | 24 | // Test leaving a querystring alone 25 | var req4 = request.get({ uri: 'http://www.google.com?x=y'}) 26 | setTimeout(function() { 27 | assert.equal('/?x=y', req4.path) 28 | }, 1) 29 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/request/uuid.js: -------------------------------------------------------------------------------- 1 | module.exports = function () { 2 | var s = [], itoh = '0123456789ABCDEF'; 3 | 4 | // Make array of random hex digits. The UUID only has 32 digits in it, but we 5 | // allocate an extra items to make room for the '-'s we'll be inserting. 6 | for (var i = 0; i <36; i++) s[i] = Math.floor(Math.random()*0x10); 7 | 8 | // Conform to RFC-4122, section 4.4 9 | s[14] = 4; // Set 4 high bits of time_high field to version 10 | s[19] = (s[19] & 0x3) | 0x8; // Specify 2 high bits of clock sequence 11 | 12 | // Convert to hex chars 13 | for (var i = 0; i <36; i++) s[i] = itoh[s[i]]; 14 | 15 | // Insert '-'s 16 | s[8] = s[13] = s[18] = s[23] = '-'; 17 | 18 | return s.join(''); 19 | } 20 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/timespan/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | #VERSION HISTORY 2 | 3 | ##2.0 4 | * [Breaking] Refactored this to work in node.js. Backwards compatibility to existing browser API coming in future 2.x releases. (indexzero) 5 | 6 | ## 1.2 7 | * Added TimeSpan.FromDates Constructor to take two dates 8 | and create a TimeSpan from the difference. (mstum) 9 | 10 | ## 1.1 11 | * Changed naming to follow JavaScript standards (mstum) 12 | * Added Documentation (mstum) 13 | 14 | ## 1.0 15 | * Initial Revision (mstum) 16 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/timespan/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Michael Stum, Charlie Robbins 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/timespan/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "timespan", 3 | "description": "A JavaScript TimeSpan library for node.js (and soon the browser)", 4 | "version": "2.2.0", 5 | "author": "Michael Stum ", 6 | "contributors": [ 7 | { "name": "Charlie Robbins", "email": "charlie.robbins@gmail.com" } 8 | ], 9 | "repository": { 10 | "type": "git", 11 | "url": "http://github.com/indexzero/timespan.git" 12 | }, 13 | "keywords": ["time", "dates", "utilities", "timespan"], 14 | "devDependencies": { 15 | "vows": ">= 0.5.2" 16 | }, 17 | "main": "./lib/time-span.js", 18 | "scripts": { "test": "vows test/*-test.js --spec" }, 19 | "engines": { "node": ">= 0.2.0" } 20 | } 21 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/node_modules/timespan/test/helpers.js: -------------------------------------------------------------------------------- 1 | /* 2 | * helpers.js: Tests helpers for the TimeSpan module. 3 | * 4 | * (C) Charlie Robbins 5 | * MIT LICENSE 6 | * 7 | */ 8 | 9 | var assert = require('assert'), 10 | timeSpan = require('../lib/time-span') 11 | 12 | function capitalize(str) { 13 | return str.charAt(0).toUpperCase() + str.slice(1); 14 | } 15 | 16 | var helpers = exports, 17 | components = ['milliseconds', 'seconds', 'minutes', 'hours', 'days']; 18 | 19 | // 20 | // Tests all of the factory methods for the `TimeSpan` object: 21 | // `fromMilliseconds`, `fromSeconds`, etc. 22 | // 23 | exports.testFactories = function (num) { 24 | var context = {}; 25 | 26 | components.forEach(function (component) { 27 | var method = 'from' + capitalize(component); 28 | 29 | context['the ' + method + '() method'] = function () { 30 | var value = timeSpan[method](num); 31 | assert.equal(value[component], num); 32 | } 33 | }); 34 | 35 | return context; 36 | }; -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "loggly", 3 | "description": "A client implementation for Loggly cloud Logging-as-a-Service API", 4 | "version": "0.3.11", 5 | "author": "Charlie Robbins ", 6 | "contributors": [ 7 | { "name": "Marak Squires", "email": "marak.squires@gmail.com" }, 8 | { "name": "hij1nx", "email": "hij1nx@me.com" }, 9 | { "name": "Kord Campbell", "email": "kordless@loggly.com" }, 10 | { "name": "Erik Hedenstrom", "email": "erik@hedenstroem.com" } 11 | ], 12 | "repository": { 13 | "type": "git", 14 | "url": "http://github.com/nodejitsu/node-loggly.git" 15 | }, 16 | "keywords": ["cloud computing", "api", "logging", "loggly"], 17 | "dependencies": { 18 | "request": "2.9.x", 19 | "timespan": "2.x.x" 20 | }, 21 | "devDependencies": { 22 | "vows": "0.6.x" 23 | }, 24 | "main": "./lib/loggly", 25 | "scripts": { "test": "vows test/*-test.js --spec" }, 26 | "engines": { "node": ">= 0.4.0" } 27 | } -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/test/common-test.js: -------------------------------------------------------------------------------- 1 | /* 2 | * common-test.js: Tests for Loggly `common` utility module 3 | * 4 | * (C) 2010 Nodejitsu Inc. 5 | * MIT LICENSE 6 | * 7 | */ 8 | 9 | var path = require('path'), 10 | vows = require('vows'), 11 | assert = require('assert'), 12 | common = require('../lib/loggly/common'); 13 | 14 | vows.describe('node-loggly/common').addBatch({ 15 | "When using the common module": { 16 | "the clone() method": { 17 | topic: function () { 18 | this.obj = { 19 | name: 'common', 20 | deep: { 21 | first: 'first', 22 | second: 'second' 23 | } 24 | }; 25 | return common.clone(this.obj); 26 | }, 27 | "should return a deep clone of the object": function (clone) { 28 | assert.isFalse(this.obj.deep === clone.deep); 29 | } 30 | } 31 | } 32 | }).export(module); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/loggly/test/device-test.js: -------------------------------------------------------------------------------- 1 | /* 2 | * device-test.js: Tests for Loggly device requests 3 | * 4 | * (C) 2010 Nodejitsu Inc. 5 | * MIT LICENSE 6 | * 7 | */ 8 | 9 | var path = require('path'), 10 | vows = require('vows'), 11 | assert = require('assert'), 12 | helpers = require('./helpers'); 13 | 14 | var options = {}, 15 | config = helpers.loadConfig(), 16 | loggly = require('../lib/loggly').createClient(config); 17 | 18 | vows.describe('node-loggly/devices').addBatch({ 19 | "When using the node-loggly client": { 20 | "the getDevices() method": { 21 | topic: function () { 22 | loggly.getDevices(this.callback); 23 | }, 24 | "should return a list of valid devices": function (err, devices) { 25 | assert.isNull(err); 26 | devices.forEach(function (device) { 27 | helpers.assertDevice(device); 28 | }); 29 | } 30 | }, 31 | "the addDeviceToInput() method": { 32 | topic: function () { 33 | loggly.addDeviceToInput(config.inputs.test.id, '127.0.0.1', this.callback); 34 | }, 35 | "should respond with 200 status code": function (err, res) { 36 | assert.isNull(err); 37 | assert.equal(res.statusCode, 200); 38 | } 39 | } 40 | } 41 | }).export(module); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/pkginfo/examples/all-properties.js: -------------------------------------------------------------------------------- 1 | /* 2 | * all-properties.js: Sample of including all properties from a package.json file 3 | * 4 | * (C) 2011, Charlie Robbins 5 | * 6 | */ 7 | 8 | var util = require('util'), 9 | pkginfo = require('../lib/pkginfo')(module); 10 | 11 | exports.someFunction = function () { 12 | console.log('some of your custom logic here'); 13 | }; 14 | 15 | console.log('Inspecting module:'); 16 | console.dir(module.exports); 17 | 18 | console.log('\nAll exports exposed:'); 19 | console.error(Object.keys(module.exports)); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/pkginfo/examples/array-argument.js: -------------------------------------------------------------------------------- 1 | /* 2 | * array-argument.js: Sample of including specific properties from a package.json file 3 | * using Array argument syntax. 4 | * 5 | * (C) 2011, Charlie Robbins 6 | * 7 | */ 8 | 9 | var util = require('util'), 10 | pkginfo = require('../lib/pkginfo')(module, ['version', 'author']); 11 | 12 | exports.someFunction = function () { 13 | console.log('some of your custom logic here'); 14 | }; 15 | 16 | console.log('Inspecting module:'); 17 | console.dir(module.exports); 18 | 19 | console.log('\nAll exports exposed:'); 20 | console.error(Object.keys(module.exports)); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/pkginfo/examples/multiple-properties.js: -------------------------------------------------------------------------------- 1 | /* 2 | * multiple-properties.js: Sample of including multiple properties from a package.json file 3 | * 4 | * (C) 2011, Charlie Robbins 5 | * 6 | */ 7 | 8 | var util = require('util'), 9 | pkginfo = require('../lib/pkginfo')(module, 'version', 'author'); 10 | 11 | exports.someFunction = function () { 12 | console.log('some of your custom logic here'); 13 | }; 14 | 15 | console.log('Inspecting module:'); 16 | console.dir(module.exports); 17 | 18 | console.log('\nAll exports exposed:'); 19 | console.error(Object.keys(module.exports)); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/pkginfo/examples/object-argument.js: -------------------------------------------------------------------------------- 1 | /* 2 | * object-argument.js: Sample of including specific properties from a package.json file 3 | * using Object argument syntax. 4 | * 5 | * (C) 2011, Charlie Robbins 6 | * 7 | */ 8 | 9 | var util = require('util'), 10 | pkginfo = require('../lib/pkginfo')(module, { 11 | include: ['version', 'author'] 12 | }); 13 | 14 | exports.someFunction = function () { 15 | console.log('some of your custom logic here'); 16 | }; 17 | 18 | console.log('Inspecting module:'); 19 | console.dir(module.exports); 20 | 21 | console.log('\nAll exports exposed:'); 22 | console.error(Object.keys(module.exports)); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/pkginfo/examples/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "simple-app", 3 | "description": "A test fixture for pkginfo", 4 | "version": "0.1.0", 5 | "author": "Charlie Robbins ", 6 | "keywords": ["test", "fixture"], 7 | "main": "./index.js", 8 | "scripts": { "test": "vows test/*-test.js --spec" }, 9 | "engines": { "node": ">= 0.4.0" } 10 | } 11 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/pkginfo/examples/single-property.js: -------------------------------------------------------------------------------- 1 | /* 2 | * single-property.js: Sample of including a single specific properties from a package.json file 3 | * 4 | * (C) 2011, Charlie Robbins 5 | * 6 | */ 7 | 8 | var util = require('util'), 9 | pkginfo = require('../lib/pkginfo')(module, 'version'); 10 | 11 | exports.someFunction = function () { 12 | console.log('some of your custom logic here'); 13 | }; 14 | 15 | console.log('Inspecting module:'); 16 | console.dir(module.exports); 17 | 18 | console.log('\nAll exports exposed:'); 19 | console.error(Object.keys(module.exports)); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/pkginfo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pkginfo", 3 | "version": "0.2.3", 4 | "description": "An easy way to expose properties on a module from a package.json", 5 | "author": "Charlie Robbins ", 6 | "repository": { 7 | "type": "git", 8 | "url": "http://github.com/indexzero/node-pkginfo.git" 9 | }, 10 | "keywords": ["info", "tools", "package.json"], 11 | "devDependencies": { 12 | "vows": "0.6.x" 13 | }, 14 | "main": "./lib/pkginfo", 15 | "scripts": { "test": "vows test/*-test.js --spec" }, 16 | "engines": { "node": ">= 0.4.0" } 17 | } 18 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/.License.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/.License.un~ -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/.Readme.md.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/.Readme.md.un~ -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/.package.json.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/.package.json.un~ -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/.test-get.js.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/.test-get.js.un~ -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Felix Geisendörfer (felix@debuggable.com) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/Makefile: -------------------------------------------------------------------------------- 1 | SHELL := /bin/bash 2 | 3 | test: 4 | @./test/run.js 5 | 6 | release: 7 | git push 8 | git push --tags 9 | npm publish . 10 | 11 | .PHONY: test 12 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/lib/.stack-trace.js.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/lib/.stack-trace.js.un~ -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Felix Geisendörfer (http://debuggable.com/)", 3 | "name": "stack-trace", 4 | "description": "Get v8 stack traces as an array of CallSite objects.", 5 | "version": "0.0.6", 6 | "homepage": "https://github.com/felixge/node-stack-trace", 7 | "repository": { 8 | "type": "git", 9 | "url": "git://github.com/felixge/node-stack-trace.git" 10 | }, 11 | "main": "./lib/stack-trace", 12 | "engines": { 13 | "node": "*" 14 | }, 15 | "dependencies": {}, 16 | "devDependencies": { 17 | "far": "0.0.3", 18 | "long-stack-traces": "0.1.2" 19 | } 20 | } -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/.common.js.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/.common.js.un~ -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/common.js: -------------------------------------------------------------------------------- 1 | var common = exports; 2 | 3 | var path = require('path'); 4 | var root = path.dirname(__dirname); 5 | 6 | common.dir = { 7 | lib: root + '/lib', 8 | }; 9 | 10 | common.assert = require('assert'); 11 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/integration/.test-basic.js.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/integration/.test-basic.js.un~ -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/integration/.test-get.js.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/integration/.test-get.js.un~ -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/integration/.test-long-stack-trace.js.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/integration/.test-long-stack-trace.js.un~ -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/integration/.test-parse.js.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/integration/.test-parse.js.un~ -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/integration/test-long-stack-trace.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | 3 | require('long-stack-traces'); 4 | var assert = common.assert; 5 | var stackTrace = require(common.dir.lib + '/stack-trace'); 6 | 7 | function badFn() { 8 | var err = new Error('oh no'); 9 | var trace = stackTrace.parse(err); 10 | 11 | assert.ok(trace[2].getFileName().match(/-----/)); 12 | }; 13 | 14 | setTimeout(badFn, 10); 15 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/node_modules/stack-trace/test/run.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var far = require('far').create(); 3 | 4 | far.add(__dirname); 5 | far.include(/test-.*\.js$/); 6 | 7 | far.execute(); 8 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "winston", 3 | "description": "A multi-transport async logging library for Node.js", 4 | "version": "0.5.11", 5 | "author": "Charlie Robbins ", 6 | "contributors": [ 7 | { "name": "Matthew Bergman", "email": "mzbphoto@gmail.com" }, 8 | { "name": "Marak Squires", "email": "marak@nodejitsu.com" } 9 | ], 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/flatiron/winston.git" 13 | }, 14 | "keywords": ["logging", "sysadmin", "tools"], 15 | "dependencies": { 16 | "async": "0.1.x", 17 | "colors": "0.x.x", 18 | "eyes": "0.1.x", 19 | "loggly": "0.3.x >=0.3.7", 20 | "pkginfo": "0.2.x", 21 | "stack-trace": "0.0.x" 22 | }, 23 | "devDependencies": { 24 | "vows": "0.6.x" 25 | }, 26 | "main": "./lib/winston", 27 | "scripts": { "test": "vows --spec --isolate" }, 28 | "engines": { "node": ">= 0.4.0" } 29 | } 30 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/test/cli-test.js: -------------------------------------------------------------------------------- 1 | /* 2 | * cli-test.js: Tests for the cli levels available in winston. 3 | * 4 | * (C) 2010 Charlie Robbins 5 | * MIT LICENSE 6 | * 7 | */ 8 | 9 | var path = require('path'), 10 | vows = require('vows'), 11 | assert = require('assert'), 12 | winston = require('../lib/winston'), 13 | helpers = require('./helpers'); 14 | 15 | vows.describe('winston/logger/cli').addBatch({ 16 | "When an instance of winston.Logger": { 17 | topic: function () { 18 | return new winston.Logger({ 19 | transports: [ 20 | new winston.transports.Console() 21 | ] 22 | }) 23 | }, 24 | "the cli() method": { 25 | "should set the appropriate values on the logger": function (logger) { 26 | logger.cli(); 27 | assert.isTrue(logger.padLevels); 28 | assert.isTrue(logger.transports.console.colorize); 29 | assert.isFalse(logger.transports.console.timestamp); 30 | Object.keys(winston.config.cli.levels).forEach(function (level) { 31 | assert.isNumber(logger.levels[level]); 32 | }); 33 | 34 | Object.keys(winston.config.cli.colors).forEach(function (color) { 35 | assert.isString(winston.config.allColors[color]); 36 | }); 37 | } 38 | } 39 | } 40 | }).export(module); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/test/fixtures/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/test/fixtures/.gitkeep -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/test/fixtures/keys/agent2-cert.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIB7DCCAZYCCQC7gs0MDNn6MTANBgkqhkiG9w0BAQUFADB9MQswCQYDVQQGEwJV 3 | UzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAlNGMQ8wDQYDVQQKEwZKb3llbnQxEDAO 4 | BgNVBAsTB05vZGUuanMxDzANBgNVBAMTBmFnZW50MjEgMB4GCSqGSIb3DQEJARYR 5 | cnlAdGlueWNsb3Vkcy5vcmcwHhcNMTEwMzE0MTgyOTEyWhcNMzgwNzI5MTgyOTEy 6 | WjB9MQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAlNGMQ8wDQYD 7 | VQQKEwZKb3llbnQxEDAOBgNVBAsTB05vZGUuanMxDzANBgNVBAMTBmFnZW50MjEg 8 | MB4GCSqGSIb3DQEJARYRcnlAdGlueWNsb3Vkcy5vcmcwXDANBgkqhkiG9w0BAQEF 9 | AANLADBIAkEAyXb8FrRdKbhrKLgLSsn61i1C7w7fVVVd7OQsmV/7p9WB2lWFiDlC 10 | WKGU9SiIz/A6wNZDUAuc2E+VwtpCT561AQIDAQABMA0GCSqGSIb3DQEBBQUAA0EA 11 | C8HzpuNhFLCI3A5KkBS5zHAQax6TFUOhbpBCR0aTDbJ6F1liDTK1lmU/BjvPoj+9 12 | 1LHwrmh29rK8kBPEjmymCQ== 13 | -----END CERTIFICATE----- 14 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/test/fixtures/keys/agent2-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIBOgIBAAJBAMl2/Ba0XSm4ayi4C0rJ+tYtQu8O31VVXezkLJlf+6fVgdpVhYg5 3 | QlihlPUoiM/wOsDWQ1ALnNhPlcLaQk+etQECAwEAAQJBAMT6Bf34+UHKY1ObpsbH 4 | 9u2jsVblFq1rWvs8GPMY6oertzvwm3DpuSUp7PTgOB1nLTLYtCERbQ4ovtN8tn3p 5 | OHUCIQDzIEGsoCr5vlxXvy2zJwu+fxYuhTZWMVuo1397L0VyhwIhANQh+yzqUgaf 6 | WRtSB4T2W7ADtJI35ET61jKBty3CqJY3AiAIwju7dVW3A5WeD6Qc1SZGKZvp9yCb 7 | AFI2BfVwwaY11wIgXF3PeGcvACMyMWsuSv7aPXHfliswAbkWuzcwA4TW01ECIGWa 8 | cgsDvVFxmfM5NPSuT/UDTa6R5BFISB5ea0N0AR3I 9 | -----END RSA PRIVATE KEY----- 10 | -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/test/fixtures/logs/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/example/node_modules/static-plus/node_modules/winston/test/fixtures/logs/.gitkeep -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/test/fixtures/scripts/default-exceptions.js: -------------------------------------------------------------------------------- 1 | /* 2 | * default-exceptions.js: A test fixture for logging exceptions with the default winston logger. 3 | * 4 | * (C) 2011 Charlie Robbins 5 | * MIT LICENCE 6 | * 7 | */ 8 | 9 | var path = require('path'), 10 | winston = require('../../../lib/winston'); 11 | 12 | winston.handleExceptions([ 13 | new (winston.transports.File)({ 14 | filename: path.join(__dirname, '..', 'logs', 'default-exception.log'), 15 | handleExceptions: true 16 | }) 17 | ]); 18 | 19 | setTimeout(function () { 20 | throw new Error('OH NOES! It failed!'); 21 | }, 1000); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/test/fixtures/scripts/exit-on-error.js: -------------------------------------------------------------------------------- 1 | /* 2 | * default-exceptions.js: A test fixture for logging exceptions with the default winston logger. 3 | * 4 | * (C) 2011 Charlie Robbins 5 | * MIT LICENCE 6 | * 7 | */ 8 | 9 | var path = require('path'), 10 | winston = require('../../../lib/winston'); 11 | 12 | winston.exitOnError = function (err) { 13 | return err.message !== 'Ignore this error'; 14 | }; 15 | 16 | winston.handleExceptions([ 17 | new (winston.transports.File)({ 18 | filename: path.join(__dirname, '..', 'logs', 'exit-on-error.log'), 19 | handleExceptions: true 20 | }) 21 | ]); 22 | 23 | setTimeout(function () { 24 | throw new Error('Ignore this error'); 25 | }, 1000); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/test/fixtures/scripts/log-exceptions.js: -------------------------------------------------------------------------------- 1 | /* 2 | * log-exceptions.js: A test fixture for logging exceptions in winston. 3 | * 4 | * (C) 2011 Charlie Robbins 5 | * MIT LICENCE 6 | * 7 | */ 8 | 9 | var path = require('path'), 10 | winston = require('../../../lib/winston'); 11 | 12 | var logger = new (winston.Logger)({ 13 | transports: [ 14 | new (winston.transports.File)({ 15 | filename: path.join(__dirname, '..', 'logs', 'exception.log'), 16 | handleExceptions: true 17 | }) 18 | ] 19 | }); 20 | 21 | logger.handleExceptions(); 22 | 23 | setTimeout(function () { 24 | throw new Error('OH NOES! It failed!'); 25 | }, 1000); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/test/fixtures/scripts/unhandle-exceptions.js: -------------------------------------------------------------------------------- 1 | /* 2 | * unhandle-exceptions.js: A test fixture for using `.unhandleExceptions()` winston. 3 | * 4 | * (C) 2011 Charlie Robbins 5 | * MIT LICENCE 6 | * 7 | */ 8 | 9 | var path = require('path'), 10 | winston = require('../../../lib/winston'); 11 | 12 | var logger = new (winston.Logger)({ 13 | transports: [ 14 | new (winston.transports.File)({ 15 | filename: path.join(__dirname, '..', 'logs', 'unhandle-exception.log'), 16 | handleExceptions: true 17 | }) 18 | ] 19 | }); 20 | 21 | logger.handleExceptions(); 22 | logger.unhandleExceptions(); 23 | 24 | setTimeout(function () { 25 | throw new Error('OH NOES! It failed!'); 26 | }, 1000); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/test/transports/console-test.js: -------------------------------------------------------------------------------- 1 | /* 2 | * console-test.js: Tests for instances of the Console transport 3 | * 4 | * (C) 2010 Charlie Robbins 5 | * MIT LICENSE 6 | * 7 | */ 8 | 9 | var path = require('path'), 10 | vows = require('vows'), 11 | assert = require('assert'), 12 | winston = require('../../lib/winston'), 13 | helpers = require('../helpers'); 14 | 15 | var npmTransport = new (winston.transports.Console)(), 16 | syslogTransport = new (winston.transports.Console)({ levels: winston.config.syslog.levels }); 17 | 18 | vows.describe('winston/transports/console').addBatch({ 19 | "An instance of the Console Transport": { 20 | "with npm levels": { 21 | "should have the proper methods defined": function () { 22 | helpers.assertConsole(npmTransport); 23 | }, 24 | "the log() method": helpers.testNpmLevels(npmTransport, "should respond with true", function (ign, err, logged) { 25 | assert.isNull(err); 26 | assert.isTrue(logged); 27 | }) 28 | }, 29 | "with syslog levels": { 30 | "should have the proper methods defined": function () { 31 | helpers.assertConsole(syslogTransport); 32 | }, 33 | "the log() method": helpers.testSyslogLevels(syslogTransport, "should respond with true", function (ign, err, logged) { 34 | assert.isNull(err); 35 | assert.isTrue(logged); 36 | }) 37 | } 38 | } 39 | }).export(module); -------------------------------------------------------------------------------- /example/node_modules/static-plus/node_modules/winston/test/transports/couchdb-test.js: -------------------------------------------------------------------------------- 1 | /* 2 | * couchdb-test.js: Tests for instances of the Couchdb transport 3 | * 4 | * (C) 2011 Max Ogden 5 | * MIT LICENSE 6 | * 7 | */ 8 | 9 | var path = require('path'), 10 | vows = require('vows'), 11 | fs = require('fs'), 12 | http = require('http'), 13 | assert = require('assert'), 14 | winston = require('../../lib/winston'), 15 | helpers = require('../helpers'); 16 | 17 | var couchdbTransport = new (winston.transports.Couchdb)({ 18 | "host": "localhost", 19 | "port": 4567, 20 | "db": "logs" 21 | }); 22 | 23 | var server = http.createServer(function (req, res) { 24 | res.end(); 25 | }); 26 | 27 | server.listen(4567); 28 | 29 | vows.describe('winston/transports/couchdb').addBatch({ 30 | "An instance of the Couchdb Transport": { 31 | "when passed valid options": { 32 | "should have the proper methods defined": function () { 33 | helpers.assertCouchdb(couchdbTransport); 34 | }, 35 | "the log() method": helpers.testNpmLevels(couchdbTransport, "should respond with true", function (ign, err, logged) { 36 | assert.isNull(err); 37 | assert.isTrue(logged); 38 | }) 39 | } 40 | } 41 | }).addBatch({ 42 | "When the tests are over": { 43 | "the server should cleanup": function () { 44 | server.close(); 45 | } 46 | } 47 | }).export(module); -------------------------------------------------------------------------------- /example/node_modules/static-plus/package.json: -------------------------------------------------------------------------------- 1 | { "name": "static-plus" 2 | , "version": "0.2.2" 3 | , "author": { "name": "Jason Smith" 4 | , "email": "jhs@iriscouch.com" } 5 | , "description": "Build static web sites from templates. Plus." 6 | , "tags" : ["couchdb", "amazon", "s3", "cloudfront"] 7 | , "homepage": "http://github.com/iriscouch/static-plus" 8 | , "repository": { "type": "git" 9 | , "url": "git://github.com/iriscouch/static-plus" } 10 | , "engines": [ "node" ] 11 | 12 | , "dependencies" : { "follow" : "~0.6.1" 13 | , "rimraf" : "~1.0.9" 14 | , "txn" : "~0.2.6" 15 | , "request" : "~2.2.9" 16 | , "fixed-event": "~0.2.0" 17 | , "handlebars": "1.0.2beta" 18 | , "winston" : "~0.5.9" 19 | , "optimist": "0.3.0" 20 | , "defaultable": "0.7.2" 21 | } 22 | 23 | , "devDependencies": { "tap": "0.1.3" 24 | } 25 | 26 | , "main": "./api" 27 | , "bin" : { "static+": "./cli.js" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { "name" : "browserid_example" 2 | , "version": "0.1.0" 3 | , "description": "CouchDB BrowserID example application" 4 | , "author": { "name": "Jason Smith" , "email": "jhs@iriscouch.com" } 5 | , "private": true 6 | , "engines": [ "node" ] 7 | 8 | , "dependencies": { "static-plus": "~0.2.2" 9 | , "request": "~2.2.9" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /example/page.tmpl.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{title}} 5 | 6 | 7 | 8 | 9 |

{{title}}

10 |
11 | 12 |
13 |
14 | 15 |

Hello, BrowserID world!

16 | 17 |
18 | Hi! I am the simplest possible BrowserID Couch app 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /example/push.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | // 3 | // Build the web site. 4 | // 5 | 6 | var fs = require('fs') 7 | var SP = require('static-plus') 8 | var SITE_ROOT = '/browserid/_design/browserid/_rewrite' 9 | 10 | function main() { 11 | var DB = process.argv[2]; 12 | if(!DB) 13 | return console.error('Usage: build.js ') 14 | console.log('Pushing: %s', DB) 15 | 16 | var builder = new SP.Builder 17 | builder.read_only = true 18 | builder.target = DB + '/_design/browserid' 19 | 20 | builder.on('die', function(reason) { 21 | console.error('Builder died: %j', reason) 22 | }) 23 | 24 | builder.template = __dirname + '/page.tmpl.html' 25 | builder.helpers.site = function(ctx) { return SITE_ROOT } 26 | builder.helpers.couchdb = function(ctx) { return SITE_ROOT + '/_couchdb' } 27 | 28 | // The entire site has only one page, the landing page. 29 | builder.doc({ '_id' : '' 30 | , 'title' : 'BrowserID on CouchDB' 31 | , 'github': 'https://github.com/iriscouch/browserid_couchdb/blob/master/example/page.tmpl.html' 32 | }) 33 | 34 | builder.deploy() 35 | builder.on('deploy', function(result) { 36 | console.log('Deployed: %s', result) 37 | }) 38 | } 39 | 40 | if(require.main === module) 41 | main() 42 | -------------------------------------------------------------------------------- /priv/browserid_logo_sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/priv/browserid_logo_sm.png -------------------------------------------------------------------------------- /priv/example.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 15 |
16 |
17 | 18 | Hello, BrowserID world! 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /priv/sign_in_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/priv/sign_in_blue.png -------------------------------------------------------------------------------- /priv/sign_in_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/priv/sign_in_green.png -------------------------------------------------------------------------------- /priv/sign_in_grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/priv/sign_in_grey.png -------------------------------------------------------------------------------- /priv/sign_in_orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/priv/sign_in_orange.png -------------------------------------------------------------------------------- /priv/sign_in_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/priv/sign_in_red.png -------------------------------------------------------------------------------- /priv/style.css: -------------------------------------------------------------------------------- 1 | #browserid .login > img { 2 | display: none; 3 | } 4 | 5 | #browserid div.login { 6 | display: inline; 7 | } 8 | 9 | #browserid .login.pending { 10 | opacity: 0.5; 11 | } 12 | 13 | #browserid .login.clickable:hover { 14 | opacity: .75; 15 | cursor: pointer; 16 | } 17 | 18 | #browserid .picture { 19 | margin: 0.5em; 20 | } 21 | 22 | #browserid a.logout { 23 | margin-left: 0.2em; 24 | } 25 | -------------------------------------------------------------------------------- /rebar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iriscouch/browserid_couchdb/a8fa6a986feed4d87c5dd51af2d0151d9c535a73/rebar -------------------------------------------------------------------------------- /src/browserid_couchdb.app.src: -------------------------------------------------------------------------------- 1 | { application, browserid_couchdb 2 | , [ {description, "CouchDB BrowserID Authentication"} 3 | , {vsn, "0.1.0"} 4 | , {registered, []} 5 | , {applications, [ kernel 6 | , stdlib 7 | ]} 8 | , {mod, { browserid_couchdb_app, []}} 9 | , {env, []} 10 | ] 11 | }. 12 | -------------------------------------------------------------------------------- /src/browserid_couchdb_app.erl: -------------------------------------------------------------------------------- 1 | -module(browserid_couchdb_app). 2 | 3 | -behaviour(application). 4 | 5 | %% Application callbacks 6 | -export([start/2, stop/1]). 7 | 8 | %% =================================================================== 9 | %% Application callbacks 10 | %% =================================================================== 11 | 12 | start(_StartType, _StartArgs) -> 13 | browserid_couchdb_sup:start_link(). 14 | 15 | stop(_State) -> 16 | ok. 17 | -------------------------------------------------------------------------------- /src/browserid_couchdb_sup.erl: -------------------------------------------------------------------------------- 1 | 2 | -module(browserid_couchdb_sup). 3 | 4 | -behaviour(supervisor). 5 | 6 | %% API 7 | -export([start_link/0]). 8 | 9 | %% Supervisor callbacks 10 | -export([init/1]). 11 | 12 | %% Helper macro for declaring children of supervisor 13 | -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). 14 | 15 | %% =================================================================== 16 | %% API functions 17 | %% =================================================================== 18 | 19 | start_link() -> 20 | supervisor:start_link({local, ?MODULE}, ?MODULE, []). 21 | 22 | %% =================================================================== 23 | %% Supervisor callbacks 24 | %% =================================================================== 25 | 26 | init([]) -> 27 | {ok, { {one_for_one, 5, 10}, []} }. 28 | 29 | -------------------------------------------------------------------------------- /ui/.couchapprc: -------------------------------------------------------------------------------- 1 | {"env": 2 | { "dev": {"db":"http://a:a@127.0.0.1:5984/bid"} 3 | , "jason": {"db":"http://127.0.0.1:15984/bid"} 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /ui/_attachments/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | BrowserID on Couch 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 |
15 |
16 | 17 |
18 |

19 | This is page supports CouchDB BrowserID accounts. 20 |

21 |
22 | 23 | 24 | 25 | 26 | 27 | 36 | 37 | -------------------------------------------------------------------------------- /ui/_id: -------------------------------------------------------------------------------- 1 | _design/login -------------------------------------------------------------------------------- /utils_run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | couchdb="../couchdb" 4 | if [ ! -d "$couchdb" ]; then 5 | echo "I was expecting a checkout in $couchdb" 6 | exit 1 7 | fi 8 | 9 | 10 | if [ ! -L "$couchdb/etc/couchdb/default.d/browserid.ini" ]; then 11 | ln -sf "../../../../browserid_couchdb/etc/couchdb/default.d/browserid.ini" "$couchdb/etc/couchdb/default.d/browserid.ini" 12 | fi 13 | 14 | export ERL_COMPILER_OPTIONS='[{i, "../couchdb/src/couchdb"}]' 15 | export ERL_ZFLAGS="-pz $PWD/ebin" 16 | 17 | set -e 18 | set -x 19 | 20 | ./rebar compile 21 | cd "$couchdb" 22 | make dev 23 | ./utils/run "$@" 24 | --------------------------------------------------------------------------------