├── LICENSE ├── README.md ├── base.node.js ├── data ├── favicon.ico ├── index.html ├── mime_types.json ├── nodes.dat └── registrars.json ├── lib ├── Certificate.js ├── HttpConnection.js ├── Server.js ├── Storage │ ├── Data.js │ ├── Files.js │ ├── Names.js │ ├── Public.js │ └── Storage.js ├── index.js └── utils.js ├── node_modules ├── jsrsasign │ ├── Makefile │ ├── README.md │ ├── _t2.js │ ├── lib │ │ ├── footer.js │ │ ├── header.js │ │ └── jsrsasign.js │ └── package.json └── sqlite3 │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── appveyor.yml │ ├── binding.gyp │ ├── deps │ ├── common-sqlite.gypi │ ├── extract.py │ ├── sqlite-autoconf-3080701.tar.gz │ └── sqlite3.gyp │ ├── lib │ ├── binding │ │ ├── node-v11-darwin-x64 │ │ │ └── node_sqlite3.node │ │ └── node-v14-darwin-x64 │ │ │ └── node_sqlite3.node │ ├── index.js │ ├── sqlite3.js │ └── trace.js │ ├── node_modules │ ├── .bin │ │ └── node-pre-gyp │ ├── nan │ │ ├── .dntrc │ │ ├── CHANGELOG.md │ │ ├── LICENSE.md │ │ ├── appveyor.yml │ │ ├── build │ │ │ └── config.gypi │ │ ├── include_dirs.js │ │ ├── nan.h │ │ ├── nan.h.orig │ │ ├── nan_implementation_12_inl.h │ │ ├── nan_implementation_pre_12_inl.h │ │ ├── nan_new.h │ │ ├── nan_string_bytes.h │ │ └── package.json │ └── node-pre-gyp │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── appveyor.yml │ │ ├── bin │ │ ├── node-pre-gyp │ │ └── node-pre-gyp.cmd │ │ ├── lib │ │ ├── build.js │ │ ├── clean.js │ │ ├── info.js │ │ ├── install.js │ │ ├── node-pre-gyp.js │ │ ├── package.js │ │ ├── pre-binding.js │ │ ├── publish.js │ │ ├── rebuild.js │ │ ├── reinstall.js │ │ ├── reveal.js │ │ ├── testbinary.js │ │ ├── testpackage.js │ │ ├── unpublish.js │ │ └── util │ │ │ ├── abi_crosswalk.json │ │ │ ├── compile.js │ │ │ ├── nw-pre-gyp │ │ │ ├── index.html │ │ │ └── package.json │ │ │ ├── s3_setup.js │ │ │ └── versioning.js │ │ ├── node_modules │ │ ├── .bin │ │ │ ├── mkdirp │ │ │ ├── nopt │ │ │ ├── rc │ │ │ ├── rimraf │ │ │ └── semver │ │ ├── mkdirp │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── bin │ │ │ │ ├── cmd.js │ │ │ │ └── usage.txt │ │ │ ├── examples │ │ │ │ └── pow.js │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ └── minimist │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── example │ │ │ │ │ └── parse.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── readme.markdown │ │ │ │ │ └── test │ │ │ │ │ ├── dash.js │ │ │ │ │ ├── default_bool.js │ │ │ │ │ ├── dotted.js │ │ │ │ │ ├── long.js │ │ │ │ │ ├── parse.js │ │ │ │ │ ├── parse_modified.js │ │ │ │ │ ├── short.js │ │ │ │ │ └── whitespace.js │ │ │ ├── package.json │ │ │ ├── readme.markdown │ │ │ └── test │ │ │ │ ├── chmod.js │ │ │ │ ├── clobber.js │ │ │ │ ├── mkdirp.js │ │ │ │ ├── opts_fs.js │ │ │ │ ├── opts_fs_sync.js │ │ │ │ ├── perm.js │ │ │ │ ├── perm_sync.js │ │ │ │ ├── race.js │ │ │ │ ├── rel.js │ │ │ │ ├── return.js │ │ │ │ ├── return_sync.js │ │ │ │ ├── root.js │ │ │ │ ├── sync.js │ │ │ │ ├── umask.js │ │ │ │ └── umask_sync.js │ │ ├── nopt │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── bin │ │ │ │ └── nopt.js │ │ │ ├── examples │ │ │ │ └── my-program.js │ │ │ ├── lib │ │ │ │ └── nopt.js │ │ │ ├── node_modules │ │ │ │ └── abbrev │ │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── abbrev.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ └── basic.js │ │ ├── npmlog │ │ │ ├── .npmrc │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── example.js │ │ │ ├── log.js │ │ │ ├── node_modules │ │ │ │ └── ansi │ │ │ │ │ ├── .jshintrc │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── README.md │ │ │ │ │ ├── examples │ │ │ │ │ ├── beep │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── clear │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── cursorPosition.js │ │ │ │ │ └── progress │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── lib │ │ │ │ │ ├── ansi.js │ │ │ │ │ └── newlines.js │ │ │ │ │ └── package.json │ │ │ ├── package.json │ │ │ └── test │ │ │ │ └── basic.js │ │ ├── rc │ │ │ ├── .npmignore │ │ │ ├── LICENSE.APACHE2 │ │ │ ├── LICENSE.BSD │ │ │ ├── LICENSE.MIT │ │ │ ├── README.md │ │ │ ├── browser.js │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ └── utils.js │ │ │ ├── node_modules │ │ │ │ ├── deep-extend │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ ├── index.spec.js │ │ │ │ │ │ └── mocha.opts │ │ │ │ ├── ini │ │ │ │ │ ├── .npm-completion.tmp │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── ini.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ ├── bar.js │ │ │ │ │ │ ├── fixtures │ │ │ │ │ │ └── foo.ini │ │ │ │ │ │ └── foo.js │ │ │ │ ├── minimist │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── example │ │ │ │ │ │ └── parse.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── readme.markdown │ │ │ │ │ └── test │ │ │ │ │ │ ├── bool.js │ │ │ │ │ │ ├── dash.js │ │ │ │ │ │ ├── default_bool.js │ │ │ │ │ │ ├── dotted.js │ │ │ │ │ │ ├── long.js │ │ │ │ │ │ ├── num.js │ │ │ │ │ │ ├── parse.js │ │ │ │ │ │ ├── parse_modified.js │ │ │ │ │ │ ├── short.js │ │ │ │ │ │ └── whitespace.js │ │ │ │ └── strip-json-comments │ │ │ │ │ ├── cli.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── readme.md │ │ │ │ │ └── strip-json-comments.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── ini.js │ │ │ │ ├── nested-env-vars.js │ │ │ │ └── test.js │ │ ├── request │ │ │ ├── .eslintrc │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── disabled.appveyor.yml │ │ │ ├── examples │ │ │ │ └── README.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ ├── cookies.js │ │ │ │ ├── copy.js │ │ │ │ ├── debug.js │ │ │ │ └── helpers.js │ │ │ ├── node_modules │ │ │ │ ├── aws-sign2 │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── bl │ │ │ │ │ ├── .jshintrc │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── LICENSE.md │ │ │ │ │ ├── README.md │ │ │ │ │ ├── bl.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ └── readable-stream │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── duplex.js │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ ├── _stream_duplex.js │ │ │ │ │ │ │ ├── _stream_passthrough.js │ │ │ │ │ │ │ ├── _stream_readable.js │ │ │ │ │ │ │ ├── _stream_transform.js │ │ │ │ │ │ │ └── _stream_writable.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ ├── core-util-is │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ ├── float.patch │ │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ │ └── util.js │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ └── util.js │ │ │ │ │ │ │ ├── inherits │ │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ ├── inherits.js │ │ │ │ │ │ │ │ ├── inherits_browser.js │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ │ ├── isarray │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ ├── build │ │ │ │ │ │ │ │ │ └── build.js │ │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ └── string_decoder │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ ├── passthrough.js │ │ │ │ │ │ │ ├── readable.js │ │ │ │ │ │ │ ├── transform.js │ │ │ │ │ │ │ └── writable.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ ├── basic-test.js │ │ │ │ │ │ ├── sauce.js │ │ │ │ │ │ └── test.js │ │ │ │ ├── caseless │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test.js │ │ │ │ ├── combined-stream │ │ │ │ │ ├── License │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── lib │ │ │ │ │ │ └── combined_stream.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ └── delayed-stream │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── License │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ └── delayed_stream.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ ├── common.js │ │ │ │ │ │ │ ├── integration │ │ │ │ │ │ │ ├── test-delayed-http-upload.js │ │ │ │ │ │ │ ├── test-delayed-stream-auto-pause.js │ │ │ │ │ │ │ ├── test-delayed-stream-pause.js │ │ │ │ │ │ │ ├── test-delayed-stream.js │ │ │ │ │ │ │ ├── test-handle-source-errors.js │ │ │ │ │ │ │ ├── test-max-data-size.js │ │ │ │ │ │ │ ├── test-pipe-resumes.js │ │ │ │ │ │ │ └── test-proxy-readable.js │ │ │ │ │ │ │ └── run.js │ │ │ │ │ └── package.json │ │ │ │ ├── forever-agent │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── form-data │ │ │ │ │ ├── License │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── lib │ │ │ │ │ │ └── form_data.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── async │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ └── async.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ ├── mime-types │ │ │ │ │ │ │ ├── HISTORY.md │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ └── mime-db │ │ │ │ │ │ │ │ │ ├── HISTORY.md │ │ │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── db.json │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ └── mime │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── mime.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ ├── test.js │ │ │ │ │ │ │ └── types │ │ │ │ │ │ │ ├── mime.types │ │ │ │ │ │ │ └── node.types │ │ │ │ │ └── package.json │ │ │ │ ├── hawk │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── example │ │ │ │ │ │ └── usage.js │ │ │ │ │ ├── images │ │ │ │ │ │ ├── hawk.png │ │ │ │ │ │ └── logo.png │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── browser.js │ │ │ │ │ │ ├── client.js │ │ │ │ │ │ ├── crypto.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── server.js │ │ │ │ │ │ └── utils.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── boom │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── images │ │ │ │ │ │ │ │ └── boom.png │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ ├── cryptiles │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ ├── hoek │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── images │ │ │ │ │ │ │ │ └── hoek.png │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ ├── escape.js │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ ├── escaper.js │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ └── modules │ │ │ │ │ │ │ │ ├── test1.js │ │ │ │ │ │ │ │ ├── test2.js │ │ │ │ │ │ │ │ └── test3.js │ │ │ │ │ │ └── sntp │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── examples │ │ │ │ │ │ │ ├── offset.js │ │ │ │ │ │ │ └── time.js │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ ├── browser.js │ │ │ │ │ │ ├── client.js │ │ │ │ │ │ ├── crypto.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── message.js │ │ │ │ │ │ ├── readme.js │ │ │ │ │ │ ├── server.js │ │ │ │ │ │ ├── uri.js │ │ │ │ │ │ └── utils.js │ │ │ │ ├── http-signature │ │ │ │ │ ├── .dir-locals.el │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── http_signing.md │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── parser.js │ │ │ │ │ │ ├── signer.js │ │ │ │ │ │ ├── util.js │ │ │ │ │ │ └── verify.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── asn1 │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ ├── ber │ │ │ │ │ │ │ │ │ ├── errors.js │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ ├── reader.js │ │ │ │ │ │ │ │ │ ├── types.js │ │ │ │ │ │ │ │ │ └── writer.js │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── tst │ │ │ │ │ │ │ │ └── ber │ │ │ │ │ │ │ │ ├── reader.test.js │ │ │ │ │ │ │ │ └── writer.test.js │ │ │ │ │ │ ├── assert-plus │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── assert.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ └── ctype │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── CHANGELOG │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README │ │ │ │ │ │ │ ├── README.old │ │ │ │ │ │ │ ├── ctf.js │ │ │ │ │ │ │ ├── ctio.js │ │ │ │ │ │ │ ├── ctype.js │ │ │ │ │ │ │ ├── man │ │ │ │ │ │ │ └── man3ctype │ │ │ │ │ │ │ │ └── ctio.3ctype │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ ├── tools │ │ │ │ │ │ │ ├── jsl.conf │ │ │ │ │ │ │ └── jsstyle │ │ │ │ │ │ │ └── tst │ │ │ │ │ │ │ ├── ctf │ │ │ │ │ │ │ ├── float.json │ │ │ │ │ │ │ ├── int.json │ │ │ │ │ │ │ ├── psinfo.json │ │ │ │ │ │ │ ├── struct.json │ │ │ │ │ │ │ ├── tst.fail.js │ │ │ │ │ │ │ ├── tst.float.js │ │ │ │ │ │ │ ├── tst.int.js │ │ │ │ │ │ │ ├── tst.psinfo.js │ │ │ │ │ │ │ ├── tst.struct.js │ │ │ │ │ │ │ ├── tst.typedef.js │ │ │ │ │ │ │ └── typedef.json │ │ │ │ │ │ │ ├── ctio │ │ │ │ │ │ │ ├── float │ │ │ │ │ │ │ │ ├── tst.rfloat.js │ │ │ │ │ │ │ │ └── tst.wfloat.js │ │ │ │ │ │ │ ├── int │ │ │ │ │ │ │ │ ├── tst.64.js │ │ │ │ │ │ │ │ ├── tst.rint.js │ │ │ │ │ │ │ │ ├── tst.wbounds.js │ │ │ │ │ │ │ │ └── tst.wint.js │ │ │ │ │ │ │ └── uint │ │ │ │ │ │ │ │ ├── tst.64.js │ │ │ │ │ │ │ │ ├── tst.roundtrip.js │ │ │ │ │ │ │ │ ├── tst.ruint.js │ │ │ │ │ │ │ │ └── tst.wuint.js │ │ │ │ │ │ │ └── ctype │ │ │ │ │ │ │ ├── tst.basicr.js │ │ │ │ │ │ │ ├── tst.basicw.js │ │ │ │ │ │ │ ├── tst.char.js │ │ │ │ │ │ │ ├── tst.endian.js │ │ │ │ │ │ │ ├── tst.oldwrite.js │ │ │ │ │ │ │ ├── tst.readSize.js │ │ │ │ │ │ │ ├── tst.structw.js │ │ │ │ │ │ │ └── tst.writeStruct.js │ │ │ │ │ └── package.json │ │ │ │ ├── json-stringify-safe │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── package.json │ │ │ │ │ ├── stringify.js │ │ │ │ │ └── test.js │ │ │ │ ├── mime-types │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── SOURCES.md │ │ │ │ │ ├── component.json │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── custom.json │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── mime.json │ │ │ │ │ │ └── node.json │ │ │ │ │ └── package.json │ │ │ │ ├── node-uuid │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── LICENSE.md │ │ │ │ │ ├── README.md │ │ │ │ │ ├── benchmark │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── bench.gnu │ │ │ │ │ │ ├── bench.sh │ │ │ │ │ │ ├── benchmark-native.c │ │ │ │ │ │ └── benchmark.js │ │ │ │ │ ├── bin │ │ │ │ │ │ └── uuid │ │ │ │ │ ├── component.json │ │ │ │ │ ├── package.json │ │ │ │ │ ├── test │ │ │ │ │ │ ├── compare_v1.js │ │ │ │ │ │ ├── test.html │ │ │ │ │ │ └── test.js │ │ │ │ │ └── uuid.js │ │ │ │ ├── oauth-sign │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test.js │ │ │ │ ├── qs │ │ │ │ │ ├── .jshintignore │ │ │ │ │ ├── .jshintrc │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── CHANGELOG.md │ │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── parse.js │ │ │ │ │ │ ├── stringify.js │ │ │ │ │ │ └── utils.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ ├── parse.js │ │ │ │ │ │ └── stringify.js │ │ │ │ ├── stringstream │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── LICENSE.txt │ │ │ │ │ ├── README.md │ │ │ │ │ ├── example.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── stringstream.js │ │ │ │ ├── tough-cookie │ │ │ │ │ ├── .jshintrc │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── generate-pubsuffix.js │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── cookie.js │ │ │ │ │ │ ├── memstore.js │ │ │ │ │ │ ├── pubsuffix.js │ │ │ │ │ │ └── store.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ └── punycode │ │ │ │ │ │ │ ├── LICENSE-MIT.txt │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── punycode.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── public-suffix.txt │ │ │ │ │ └── test.js │ │ │ │ └── tunnel-agent │ │ │ │ │ ├── .jshintrc │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ ├── package.json │ │ │ ├── release.sh │ │ │ └── request.js │ │ ├── rimraf │ │ │ ├── AUTHORS │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── bin.js │ │ │ ├── package.json │ │ │ ├── rimraf.js │ │ │ └── test │ │ │ │ ├── run.sh │ │ │ │ ├── setup.sh │ │ │ │ ├── test-async.js │ │ │ │ └── test-sync.js │ │ ├── semver │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── bin │ │ │ │ └── semver │ │ │ ├── foot.js.txt │ │ │ ├── head.js.txt │ │ │ ├── package.json │ │ │ ├── semver.browser.js │ │ │ ├── semver.browser.js.gz │ │ │ ├── semver.js │ │ │ ├── semver.min.js │ │ │ ├── semver.min.js.gz │ │ │ └── test │ │ │ │ ├── amd.js │ │ │ │ ├── clean.js │ │ │ │ ├── gtr.js │ │ │ │ ├── index.js │ │ │ │ ├── ltr.js │ │ │ │ └── no-module.js │ │ ├── tar-pack │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ ├── debug │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── debug.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib │ │ │ │ │ │ └── debug.js │ │ │ │ │ └── package.json │ │ │ │ ├── fstream-ignore │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── example │ │ │ │ │ │ └── basic.js │ │ │ │ │ ├── ignore.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── inherits │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── inherits.js │ │ │ │ │ │ │ ├── inherits_browser.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ └── minimatch │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── minimatch.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ ├── lru-cache │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── CONTRIBUTORS │ │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ │ └── lru-cache.js │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ │ ├── basic.js │ │ │ │ │ │ │ │ │ ├── foreach.js │ │ │ │ │ │ │ │ │ └── memory-leak.js │ │ │ │ │ │ │ └── sigmund │ │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ ├── bench.js │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ ├── sigmund.js │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ └── basic.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ ├── basic.js │ │ │ │ │ │ │ ├── brace-expand.js │ │ │ │ │ │ │ ├── caching.js │ │ │ │ │ │ │ ├── defaults.js │ │ │ │ │ │ │ └── extglob-ending-with-state-char.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ ├── .ignore │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── 00-setup.js │ │ │ │ │ │ ├── basic.js │ │ │ │ │ │ ├── common.js │ │ │ │ │ │ ├── ignore-most.js │ │ │ │ │ │ ├── nested-ignores.js │ │ │ │ │ │ ├── unignore-child.js │ │ │ │ │ │ └── zz-cleanup.js │ │ │ │ ├── fstream │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── examples │ │ │ │ │ │ ├── filter-pipe.js │ │ │ │ │ │ ├── pipe.js │ │ │ │ │ │ ├── reader.js │ │ │ │ │ │ └── symlink-write.js │ │ │ │ │ ├── fstream.js │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── abstract.js │ │ │ │ │ │ ├── collect.js │ │ │ │ │ │ ├── dir-reader.js │ │ │ │ │ │ ├── dir-writer.js │ │ │ │ │ │ ├── file-reader.js │ │ │ │ │ │ ├── file-writer.js │ │ │ │ │ │ ├── get-type.js │ │ │ │ │ │ ├── link-reader.js │ │ │ │ │ │ ├── link-writer.js │ │ │ │ │ │ ├── proxy-reader.js │ │ │ │ │ │ ├── proxy-writer.js │ │ │ │ │ │ ├── reader.js │ │ │ │ │ │ ├── socket-reader.js │ │ │ │ │ │ └── writer.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── graceful-fs │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── fs.js │ │ │ │ │ │ │ ├── graceful-fs.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ ├── polyfills.js │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ ├── max-open.js │ │ │ │ │ │ │ │ ├── open.js │ │ │ │ │ │ │ │ ├── readdir-sort.js │ │ │ │ │ │ │ │ └── write-then-read.js │ │ │ │ │ │ └── inherits │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── inherits.js │ │ │ │ │ │ │ ├── inherits_browser.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test.js │ │ │ │ │ └── package.json │ │ │ │ ├── graceful-fs │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── graceful-fs.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ ├── open.js │ │ │ │ │ │ └── ulimit.js │ │ │ │ ├── once │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── once.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ └── once.js │ │ │ │ ├── readable-stream │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── duplex.js │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── _stream_duplex.js │ │ │ │ │ │ ├── _stream_passthrough.js │ │ │ │ │ │ ├── _stream_readable.js │ │ │ │ │ │ ├── _stream_transform.js │ │ │ │ │ │ └── _stream_writable.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── core-util-is │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── float.patch │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ └── util.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── util.js │ │ │ │ │ │ ├── inherits │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── inherits.js │ │ │ │ │ │ │ ├── inherits_browser.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ ├── isarray │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── build │ │ │ │ │ │ │ │ └── build.js │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ └── string_decoder │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── package.json │ │ │ │ │ ├── passthrough.js │ │ │ │ │ ├── readable.js │ │ │ │ │ ├── transform.js │ │ │ │ │ └── writable.js │ │ │ │ ├── tar │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── LICENCE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── examples │ │ │ │ │ │ ├── extracter.js │ │ │ │ │ │ ├── packer.js │ │ │ │ │ │ └── reader.js │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── buffer-entry.js │ │ │ │ │ │ ├── entry-writer.js │ │ │ │ │ │ ├── entry.js │ │ │ │ │ │ ├── extended-header-writer.js │ │ │ │ │ │ ├── extended-header.js │ │ │ │ │ │ ├── extract.js │ │ │ │ │ │ ├── global-header-writer.js │ │ │ │ │ │ ├── header.js │ │ │ │ │ │ ├── pack.js │ │ │ │ │ │ └── parse.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── block-stream │ │ │ │ │ │ │ ├── LICENCE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── bench │ │ │ │ │ │ │ │ ├── block-stream-pause.js │ │ │ │ │ │ │ │ ├── block-stream.js │ │ │ │ │ │ │ │ ├── dropper-pause.js │ │ │ │ │ │ │ │ └── dropper.js │ │ │ │ │ │ │ ├── block-stream.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ ├── basic.js │ │ │ │ │ │ │ │ ├── nopad-thorough.js │ │ │ │ │ │ │ │ ├── nopad.js │ │ │ │ │ │ │ │ ├── pause-resume.js │ │ │ │ │ │ │ │ ├── thorough.js │ │ │ │ │ │ │ │ └── two-stream.js │ │ │ │ │ │ └── inherits │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── inherits.js │ │ │ │ │ │ │ ├── inherits_browser.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── tar.js │ │ │ │ │ └── test │ │ │ │ │ │ ├── 00-setup-fixtures.js │ │ │ │ │ │ ├── extract.js │ │ │ │ │ │ ├── fixtures.tgz │ │ │ │ │ │ ├── header.js │ │ │ │ │ │ ├── pack-no-proprietary.js │ │ │ │ │ │ ├── pack.js │ │ │ │ │ │ ├── parse.js │ │ │ │ │ │ └── zz-cleanup.js │ │ │ │ └── uid-number │ │ │ │ │ ├── LICENCE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── get-uid-gid.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── uid-number.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── fixtures │ │ │ │ ├── packed-file.txt │ │ │ │ ├── packed.tar │ │ │ │ ├── packed.tar.gz │ │ │ │ └── to-pack │ │ │ │ │ ├── bar.txt │ │ │ │ │ └── foo.txt │ │ │ │ └── index.js │ │ └── tar │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── LICENCE │ │ │ ├── README.md │ │ │ ├── examples │ │ │ ├── extracter.js │ │ │ ├── packer.js │ │ │ └── reader.js │ │ │ ├── lib │ │ │ ├── buffer-entry.js │ │ │ ├── entry-writer.js │ │ │ ├── entry.js │ │ │ ├── extended-header-writer.js │ │ │ ├── extended-header.js │ │ │ ├── extract.js │ │ │ ├── global-header-writer.js │ │ │ ├── header.js │ │ │ ├── pack.js │ │ │ └── parse.js │ │ │ ├── node_modules │ │ │ ├── block-stream │ │ │ │ ├── LICENCE │ │ │ │ ├── README.md │ │ │ │ ├── bench │ │ │ │ │ ├── block-stream-pause.js │ │ │ │ │ ├── block-stream.js │ │ │ │ │ ├── dropper-pause.js │ │ │ │ │ └── dropper.js │ │ │ │ ├── block-stream.js │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ │ ├── basic.js │ │ │ │ │ ├── nopad-thorough.js │ │ │ │ │ ├── nopad.js │ │ │ │ │ ├── pause-resume.js │ │ │ │ │ ├── thorough.js │ │ │ │ │ └── two-stream.js │ │ │ ├── fstream │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── examples │ │ │ │ │ ├── filter-pipe.js │ │ │ │ │ ├── pipe.js │ │ │ │ │ ├── reader.js │ │ │ │ │ └── symlink-write.js │ │ │ │ ├── fstream.js │ │ │ │ ├── lib │ │ │ │ │ ├── abstract.js │ │ │ │ │ ├── collect.js │ │ │ │ │ ├── dir-reader.js │ │ │ │ │ ├── dir-writer.js │ │ │ │ │ ├── file-reader.js │ │ │ │ │ ├── file-writer.js │ │ │ │ │ ├── get-type.js │ │ │ │ │ ├── link-reader.js │ │ │ │ │ ├── link-writer.js │ │ │ │ │ ├── proxy-reader.js │ │ │ │ │ ├── proxy-writer.js │ │ │ │ │ ├── reader.js │ │ │ │ │ ├── socket-reader.js │ │ │ │ │ └── writer.js │ │ │ │ ├── node_modules │ │ │ │ │ └── graceful-fs │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── fs.js │ │ │ │ │ │ ├── graceful-fs.js │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ ├── polyfills.js │ │ │ │ │ │ └── test │ │ │ │ │ │ ├── max-open.js │ │ │ │ │ │ ├── open.js │ │ │ │ │ │ ├── readdir-sort.js │ │ │ │ │ │ └── write-then-read.js │ │ │ │ └── package.json │ │ │ └── inherits │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── inherits.js │ │ │ │ ├── inherits_browser.js │ │ │ │ ├── package.json │ │ │ │ └── test.js │ │ │ ├── package.json │ │ │ ├── tar.js │ │ │ └── test │ │ │ ├── 00-setup-fixtures.js │ │ │ ├── extract-move.js │ │ │ ├── extract.js │ │ │ ├── fixtures.tgz │ │ │ ├── header.js │ │ │ ├── pack-no-proprietary.js │ │ │ ├── pack.js │ │ │ ├── parse.js │ │ │ └── zz-cleanup.js │ │ └── package.json │ ├── package.json │ ├── sqlite3.js │ └── src │ ├── async.h │ ├── database.cc │ ├── database.h │ ├── gcc-preinclude.h │ ├── macros.h │ ├── node_sqlite3.cc │ ├── statement.cc │ ├── statement.h │ └── threading.h └── tests ├── Certificate.js └── tests.js /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Denis Glazkov 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 all 13 | 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 THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /base.node.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /** 4 | * base.network NodeJS-server 0.1 (c) 2015 Denis Glazkov | https://github.com/basenetwork/ 5 | * 6 | * http://base.network/ 7 | * 8 | */ 9 | 10 | //------- start node-server ----------- 11 | require("./lib/").startServer(process.argv); 12 | -------------------------------------------------------------------------------- /data/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/data/favicon.ico -------------------------------------------------------------------------------- /data/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | base.network - Independent Distributed Network 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /data/nodes.dat: -------------------------------------------------------------------------------- 1 | {"nid":"5.9.123.140/8080"} 2 | {"nid":"5.9.123.140/8081"} 3 | {"nid":"5.9.123.140/8082"} 4 | {"nid":"185.26.120.78/8494"} 5 | {"nid":"185.26.120.22/8678"} 6 | -------------------------------------------------------------------------------- /data/registrars.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "zone": "base", 4 | "zoneDNS": "base.network", 5 | "cert": "AA3Evvx1ARDVVyiPWZ1197l3MAOPe2U1FR7hjxQpL6TQmqf8dxEEoB/AV19Um49u9U7Lb8Lx9ujX2MurTd6qnWw=" 6 | } 7 | ] -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- 1 | var Server = require("./Server"); 2 | 3 | module.exports = { 4 | 5 | Server: Server, 6 | 7 | startServer: function(argv) { 8 | return new Server(argv); 9 | } 10 | }; -------------------------------------------------------------------------------- /node_modules/jsrsasign/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | echo aaa 3 | 4 | aaa: 5 | cat \ 6 | lib/header.js \ 7 | ../jsrsasign-latest-all-min.js \ 8 | ../../../../jsjws/_gitpg/jsjws/ext/json-sans-eval-min.js \ 9 | ../../../../jsjws/_gitpg/jsjws/jws-3.0.min.js \ 10 | ../../../../jsjws/_gitpg/jsjws/jwsjs-2.0.min.js \ 11 | lib/footer.js \ 12 | > lib/jsrsasign.js 13 | 14 | -------------------------------------------------------------------------------- /node_modules/jsrsasign/_t2.js: -------------------------------------------------------------------------------- 1 | var j = require('./jsrsasign'); 2 | 3 | var o1 = j.asn1.ASN1Util.newObject({int: {int: 1234567}}); 4 | console.log(o1.getEncodedHex()); 5 | 6 | -------------------------------------------------------------------------------- /node_modules/jsrsasign/lib/header.js: -------------------------------------------------------------------------------- 1 | 2 | var navigator = {}; 3 | navigator.uesrAgent = false; 4 | 5 | var window = {}; 6 | -------------------------------------------------------------------------------- /node_modules/sqlite3/deps/extract.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import tarfile 3 | import os 4 | 5 | tarball = os.path.abspath(sys.argv[1]) 6 | dirname = os.path.abspath(sys.argv[2]) 7 | tfile = tarfile.open(tarball,'r:gz'); 8 | tfile.extractall(dirname) 9 | sys.exit(0) 10 | -------------------------------------------------------------------------------- /node_modules/sqlite3/deps/sqlite-autoconf-3080701.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/node_modules/sqlite3/deps/sqlite-autoconf-3080701.tar.gz -------------------------------------------------------------------------------- /node_modules/sqlite3/lib/binding/node-v11-darwin-x64/node_sqlite3.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/node_modules/sqlite3/lib/binding/node-v11-darwin-x64/node_sqlite3.node -------------------------------------------------------------------------------- /node_modules/sqlite3/lib/binding/node-v14-darwin-x64/node_sqlite3.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/node_modules/sqlite3/lib/binding/node-v14-darwin-x64/node_sqlite3.node -------------------------------------------------------------------------------- /node_modules/sqlite3/lib/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./sqlite3'); 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/.bin/node-pre-gyp: -------------------------------------------------------------------------------- 1 | ../node-pre-gyp/bin/node-pre-gyp -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/nan/.dntrc: -------------------------------------------------------------------------------- 1 | ## DNT config file 2 | ## see https://github.com/rvagg/dnt 3 | 4 | NODE_VERSIONS="\ 5 | master \ 6 | v0.11.13 \ 7 | v0.10.30 \ 8 | v0.10.29 \ 9 | v0.10.28 \ 10 | v0.10.26 \ 11 | v0.10.25 \ 12 | v0.10.24 \ 13 | v0.10.23 \ 14 | v0.10.22 \ 15 | v0.10.21 \ 16 | v0.10.20 \ 17 | v0.10.19 \ 18 | v0.8.28 \ 19 | v0.8.27 \ 20 | v0.8.26 \ 21 | v0.8.24 \ 22 | " 23 | OUTPUT_PREFIX="nan-" 24 | TEST_CMD=" \ 25 | cd /dnt/ && \ 26 | npm install && \ 27 | node_modules/.bin/node-gyp --nodedir /usr/src/node/ rebuild --directory test && \ 28 | node_modules/.bin/tap --gc test/js/*-test.js \ 29 | " 30 | 31 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/nan/appveyor.yml: -------------------------------------------------------------------------------- 1 | # http://www.appveyor.com/docs/appveyor-yml 2 | 3 | # Test against these versions of Node.js. 4 | environment: 5 | matrix: 6 | - nodejs_version: "0.8" 7 | - nodejs_version: "0.10" 8 | - nodejs_version: "0.11" 9 | 10 | # Install scripts. (runs after repo cloning) 11 | install: 12 | # Get the latest stable version of Node 0.STABLE.latest 13 | - npm install npm 14 | - move node_modules npm 15 | - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) 16 | # Typical npm stuff. 17 | - npm/.bin/npm install 18 | - npm/.bin/npm run rebuild-tests 19 | 20 | # Post-install test scripts. 21 | test_script: 22 | # Output useful info for debugging. 23 | - node --version 24 | - npm --version 25 | - cmd: npm test 26 | 27 | # Don't actually build. 28 | build: off 29 | 30 | # Set build version format here instead of in the admin panel. 31 | version: "{build}" 32 | 33 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/nan/include_dirs.js: -------------------------------------------------------------------------------- 1 | console.log(require('path').relative('.', __dirname)); 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/appveyor.yml: -------------------------------------------------------------------------------- 1 | environment: 2 | matrix: 3 | - nodejs_version: 0.10.32 4 | - nodejs_version: 0.11.13 5 | 6 | platform: 7 | - x64 8 | - x86 9 | 10 | shallow_clone: true 11 | 12 | install: 13 | #- ps: Update-NodeJsInstallation $env:nodejs_version $env:Platform 14 | # http://help.appveyor.com/discussions/problems/618-nodejs-10030-doesnt-work-on-appveyor-cant-find-npm#comment_34002825 15 | - ps: Install-Product node $env:nodejs_version $env:Platform 16 | - node --version 17 | - npm --version 18 | - SET PATH=%APPDATA%\npm;%PATH% 19 | - npm update -g npm 20 | - npm --version 21 | - node -e "console.log(process.arch);" 22 | - SET PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH% 23 | - if "%PLATFORM%" == "x64" set PATH=C:\Python27-x64;%PATH% 24 | - if "%PLATFORM%" == "x86" SET PATH=C:\python27;%PATH% 25 | - npm install 26 | - npm test 27 | - .\scripts\test.bat 28 | 29 | build: off 30 | test: off 31 | deploy: off -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/bin/node-pre-gyp.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | node "%~dp0\node-pre-gyp" %* 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/lib/clean.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = exports = clean 3 | 4 | exports.usage = 'Removes the entire folder containing the compiled .node module' 5 | 6 | var fs = require('fs') 7 | , rm = require('rimraf') 8 | , path = require('path') 9 | , exists = require('fs').exists || require('path').exists 10 | , log = require('npmlog') 11 | , versioning = require('./util/versioning.js') 12 | 13 | function clean (gyp, argv, callback) { 14 | var package_json = JSON.parse(fs.readFileSync('./package.json')); 15 | var opts = versioning.evaluate(package_json, gyp.opts); 16 | var to_delete = opts.module_path; 17 | exists(to_delete, function(found) { 18 | if (found) { 19 | if (!gyp.opts.silent_clean) console.log('['+package_json.name+'] Removing "%s"', to_delete); 20 | return rm(to_delete, callback); 21 | } 22 | return callback(); 23 | }) 24 | } 25 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/lib/pre-binding.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | var versioning = require('../lib/util/versioning.js') 3 | var existsSync = require('fs').existsSync || require('path').existsSync; 4 | var path = require('path'); 5 | 6 | module.exports = exports; 7 | 8 | exports.usage = 'Finds the require path for the node-pre-gyp installed module' 9 | 10 | exports.validate = function(package_json) { 11 | versioning.validate_config(package_json); 12 | } 13 | 14 | exports.find = function(package_json_path,opts) { 15 | if (!existsSync(package_json_path)) { 16 | throw new Error("package.json does not exist at " + package_json_path); 17 | } 18 | var package_json = require(package_json_path); 19 | versioning.validate_config(package_json); 20 | opts = opts || {}; 21 | if (!opts.module_root) opts.module_root = path.dirname(package_json_path); 22 | var meta = versioning.evaluate(package_json,opts); 23 | return meta.module; 24 | } 25 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/lib/rebuild.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = exports = rebuild 3 | 4 | exports.usage = 'Runs "clean" and "build" at once' 5 | 6 | function rebuild (gyp, argv, callback) { 7 | gyp.todo.unshift( 8 | { name: 'clean', args: [] } 9 | , { name: 'build', args: ['rebuild'] } 10 | ) 11 | process.nextTick(callback) 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/lib/reinstall.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = exports = rebuild 3 | 4 | exports.usage = 'Runs "clean" and "install" at once' 5 | 6 | function rebuild (gyp, argv, callback) { 7 | gyp.todo.unshift( 8 | { name: 'clean', args: [] } 9 | , { name: 'install', args: [] } 10 | ) 11 | process.nextTick(callback) 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/lib/reveal.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = exports = reveal 3 | 4 | exports.usage = 'Reveals data on the versioned binary' 5 | 6 | var fs = require('fs') 7 | , path = require('path') 8 | , log = require('npmlog') 9 | , versioning = require('./util/versioning.js'); 10 | 11 | function unix_paths(key, val) { 12 | return val && val.replace ? val.replace(/\\/g, '/') : val; 13 | } 14 | 15 | function reveal(gyp, argv, callback) { 16 | var package_json = JSON.parse(fs.readFileSync('./package.json')); 17 | var opts = versioning.evaluate(package_json, gyp.opts); 18 | var hit = false; 19 | // if a second arg is passed look to see 20 | // if it is a known option 21 | var args = gyp.opts.argv.cooked; 22 | var find_val = args[args.indexOf('reveal')+1]; 23 | if (find_val && opts.hasOwnProperty(find_val)) { 24 | console.log(opts[find_val].replace(/\\/g, '/')); 25 | hit = true; 26 | } 27 | // otherwise return all options as json 28 | if (!hit) { 29 | console.log(JSON.stringify(opts,unix_paths,2)); 30 | } 31 | return callback(); 32 | } 33 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Node-webkit-based module test 6 | 22 | 23 | 24 |

Node-webkit-based module test

25 | 26 | 27 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "index.html", 3 | "name": "nw-pre-gyp-module-test", 4 | "description": "Node-webkit-based module test.", 5 | "version": "0.0.1", 6 | "window": { 7 | "show": false 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/s3_setup.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = exports; 3 | 4 | var url = require('url') 5 | 6 | var URI_REGEX="^(.*)\.(s3(?:-.*)?)\.amazonaws\.com$"; 7 | 8 | module.exports.detect = function(to,config) { 9 | var uri = url.parse(to); 10 | var hostname_matches = uri.hostname.match(URI_REGEX); 11 | 12 | config.prefix = (!uri.pathname || uri.pathname == '/') ? '' : uri.pathname.replace('/',''); 13 | 14 | if(!hostname_matches) { 15 | return; 16 | } 17 | 18 | if (!config.bucket) { 19 | config.bucket = hostname_matches[1]; 20 | } 21 | 22 | if (!config.region) { 23 | var s3_domain = hostname_matches[2]; 24 | if (s3_domain.slice(0,3) == 's3-' && 25 | s3_domain.length >= 3) { 26 | // it appears the region is explicit in the url 27 | config.region = s3_domain.replace('s3-',''); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin/mkdirp: -------------------------------------------------------------------------------- 1 | ../mkdirp/bin/cmd.js -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin/nopt: -------------------------------------------------------------------------------- 1 | ../nopt/bin/nopt.js -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin/rc: -------------------------------------------------------------------------------- 1 | ../rc/index.js -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin/rimraf: -------------------------------------------------------------------------------- 1 | ../rimraf/bin.js -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin/semver: -------------------------------------------------------------------------------- 1 | ../semver/bin/semver -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - "0.10" 6 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/bin/cmd.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var mkdirp = require('../'); 4 | var minimist = require('minimist'); 5 | var fs = require('fs'); 6 | 7 | var argv = minimist(process.argv.slice(2), { 8 | alias: { m: 'mode', h: 'help' }, 9 | string: [ 'mode' ] 10 | }); 11 | if (argv.help) { 12 | fs.createReadStream(__dirname + '/usage.txt').pipe(process.stdout); 13 | return; 14 | } 15 | 16 | var paths = argv._.slice(); 17 | var mode = argv.mode ? parseInt(argv.mode, 8) : undefined; 18 | 19 | (function next () { 20 | if (paths.length === 0) return; 21 | var p = paths.shift(); 22 | 23 | if (mode === undefined) mkdirp(p, cb) 24 | else mkdirp(p, mode, cb) 25 | 26 | function cb (err) { 27 | if (err) { 28 | console.error(err.message); 29 | process.exit(1); 30 | } 31 | else next(); 32 | } 33 | })(); 34 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/bin/usage.txt: -------------------------------------------------------------------------------- 1 | usage: mkdirp [DIR1,DIR2..] {OPTIONS} 2 | 3 | Create each supplied directory including any necessary parent directories that 4 | don't yet exist. 5 | 6 | If the directory already exists, do nothing. 7 | 8 | OPTIONS are: 9 | 10 | -m, --mode If a directory needs to be created, set the mode as an octal 11 | permission string. 12 | 13 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/examples/pow.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('mkdirp'); 2 | 3 | mkdirp('/tmp/foo/bar/baz', function (err) { 4 | if (err) console.error(err) 5 | else console.log('pow!') 6 | }); 7 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/LICENSE: -------------------------------------------------------------------------------- 1 | This software is released under the MIT license: 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 7 | the Software, and to permit persons to whom the Software is furnished to do so, 8 | subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | 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, FITNESS 15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/example/parse.js: -------------------------------------------------------------------------------- 1 | var argv = require('../')(process.argv.slice(2)); 2 | console.dir(argv); 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/test/dash.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('-', function (t) { 5 | t.plan(5); 6 | t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] }); 7 | t.deepEqual(parse([ '-' ]), { _: [ '-' ] }); 8 | t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] }); 9 | t.deepEqual( 10 | parse([ '-b', '-' ], { boolean: 'b' }), 11 | { b: true, _: [ '-' ] } 12 | ); 13 | t.deepEqual( 14 | parse([ '-s', '-' ], { string: 's' }), 15 | { s: '-', _: [] } 16 | ); 17 | }); 18 | 19 | test('-a -- b', function (t) { 20 | t.plan(3); 21 | t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] }); 22 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); 23 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); 24 | }); 25 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/test/default_bool.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var parse = require('../'); 3 | 4 | test('boolean default true', function (t) { 5 | var argv = parse([], { 6 | boolean: 'sometrue', 7 | default: { sometrue: true } 8 | }); 9 | t.equal(argv.sometrue, true); 10 | t.end(); 11 | }); 12 | 13 | test('boolean default false', function (t) { 14 | var argv = parse([], { 15 | boolean: 'somefalse', 16 | default: { somefalse: false } 17 | }); 18 | t.equal(argv.somefalse, false); 19 | t.end(); 20 | }); 21 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/test/dotted.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('dotted alias', function (t) { 5 | var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 6 | t.equal(argv.a.b, 22); 7 | t.equal(argv.aa.bb, 22); 8 | t.end(); 9 | }); 10 | 11 | test('dotted default', function (t) { 12 | var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 13 | t.equal(argv.a.b, 11); 14 | t.equal(argv.aa.bb, 11); 15 | t.end(); 16 | }); 17 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/test/long.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var parse = require('../'); 3 | 4 | test('long opts', function (t) { 5 | t.deepEqual( 6 | parse([ '--bool' ]), 7 | { bool : true, _ : [] }, 8 | 'long boolean' 9 | ); 10 | t.deepEqual( 11 | parse([ '--pow', 'xixxle' ]), 12 | { pow : 'xixxle', _ : [] }, 13 | 'long capture sp' 14 | ); 15 | t.deepEqual( 16 | parse([ '--pow=xixxle' ]), 17 | { pow : 'xixxle', _ : [] }, 18 | 'long capture eq' 19 | ); 20 | t.deepEqual( 21 | parse([ '--host', 'localhost', '--port', '555' ]), 22 | { host : 'localhost', port : 555, _ : [] }, 23 | 'long captures sp' 24 | ); 25 | t.deepEqual( 26 | parse([ '--host=localhost', '--port=555' ]), 27 | { host : 'localhost', port : 555, _ : [] }, 28 | 'long captures eq' 29 | ); 30 | t.end(); 31 | }); 32 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/test/parse_modified.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('parse with modifier functions' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); 8 | t.deepEqual(argv, { b: true, _: ['123'] }); 9 | }); 10 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/clobber.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../').mkdirp; 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | var ps = [ '', 'tmp' ]; 7 | 8 | for (var i = 0; i < 25; i++) { 9 | var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | ps.push(dir); 11 | } 12 | 13 | var file = ps.join('/'); 14 | 15 | // a file in the way 16 | var itw = ps.slice(0, 3).join('/'); 17 | 18 | 19 | test('clobber-pre', function (t) { 20 | console.error("about to write to "+itw) 21 | fs.writeFileSync(itw, 'I AM IN THE WAY, THE TRUTH, AND THE LIGHT.'); 22 | 23 | fs.stat(itw, function (er, stat) { 24 | t.ifError(er) 25 | t.ok(stat && stat.isFile(), 'should be file') 26 | t.end() 27 | }) 28 | }) 29 | 30 | test('clobber', function (t) { 31 | t.plan(2); 32 | mkdirp(file, 0755, function (err) { 33 | t.ok(err); 34 | t.equal(err.code, 'ENOTDIR'); 35 | t.end(); 36 | }); 37 | }); 38 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/mkdirp.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('woo', function (t) { 8 | t.plan(5); 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var file = '/tmp/' + [x,y,z].join('/'); 14 | 15 | mkdirp(file, 0755, function (err) { 16 | t.ifError(err); 17 | exists(file, function (ex) { 18 | t.ok(ex, 'file created'); 19 | fs.stat(file, function (err, stat) { 20 | t.ifError(err); 21 | t.equal(stat.mode & 0777, 0755); 22 | t.ok(stat.isDirectory(), 'target not a directory'); 23 | }) 24 | }) 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/opts_fs.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var test = require('tap').test; 4 | var mockfs = require('mock-fs'); 5 | 6 | test('opts.fs', function (t) { 7 | t.plan(5); 8 | 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var file = '/beep/boop/' + [x,y,z].join('/'); 14 | var xfs = mockfs.fs(); 15 | 16 | mkdirp(file, { fs: xfs, mode: 0755 }, function (err) { 17 | t.ifError(err); 18 | xfs.exists(file, function (ex) { 19 | t.ok(ex, 'created file'); 20 | xfs.stat(file, function (err, stat) { 21 | t.ifError(err); 22 | t.equal(stat.mode & 0777, 0755); 23 | t.ok(stat.isDirectory(), 'target not a directory'); 24 | }); 25 | }); 26 | }); 27 | }); 28 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/opts_fs_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var test = require('tap').test; 4 | var mockfs = require('mock-fs'); 5 | 6 | test('opts.fs sync', function (t) { 7 | t.plan(4); 8 | 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var file = '/beep/boop/' + [x,y,z].join('/'); 14 | var xfs = mockfs.fs(); 15 | 16 | mkdirp.sync(file, { fs: xfs, mode: 0755 }); 17 | xfs.exists(file, function (ex) { 18 | t.ok(ex, 'created file'); 19 | xfs.stat(file, function (err, stat) { 20 | t.ifError(err); 21 | t.equal(stat.mode & 0777, 0755); 22 | t.ok(stat.isDirectory(), 'target not a directory'); 23 | }); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/perm.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('async perm', function (t) { 8 | t.plan(5); 9 | var file = '/tmp/' + (Math.random() * (1<<30)).toString(16); 10 | 11 | mkdirp(file, 0755, function (err) { 12 | t.ifError(err); 13 | exists(file, function (ex) { 14 | t.ok(ex, 'file created'); 15 | fs.stat(file, function (err, stat) { 16 | t.ifError(err); 17 | t.equal(stat.mode & 0777, 0755); 18 | t.ok(stat.isDirectory(), 'target not a directory'); 19 | }) 20 | }) 21 | }); 22 | }); 23 | 24 | test('async root perm', function (t) { 25 | mkdirp('/tmp', 0755, function (err) { 26 | if (err) t.fail(err); 27 | t.end(); 28 | }); 29 | t.end(); 30 | }); 31 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/perm_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('sync perm', function (t) { 8 | t.plan(4); 9 | var file = '/tmp/' + (Math.random() * (1<<30)).toString(16) + '.json'; 10 | 11 | mkdirp.sync(file, 0755); 12 | exists(file, function (ex) { 13 | t.ok(ex, 'file created'); 14 | fs.stat(file, function (err, stat) { 15 | t.ifError(err); 16 | t.equal(stat.mode & 0777, 0755); 17 | t.ok(stat.isDirectory(), 'target not a directory'); 18 | }); 19 | }); 20 | }); 21 | 22 | test('sync root perm', function (t) { 23 | t.plan(3); 24 | 25 | var file = '/tmp'; 26 | mkdirp.sync(file, 0755); 27 | exists(file, function (ex) { 28 | t.ok(ex, 'file created'); 29 | fs.stat(file, function (err, stat) { 30 | t.ifError(err); 31 | t.ok(stat.isDirectory(), 'target not a directory'); 32 | }) 33 | }); 34 | }); 35 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/rel.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('rel', function (t) { 8 | t.plan(5); 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var cwd = process.cwd(); 14 | process.chdir('/tmp'); 15 | 16 | var file = [x,y,z].join('/'); 17 | 18 | mkdirp(file, 0755, function (err) { 19 | t.ifError(err); 20 | exists(file, function (ex) { 21 | t.ok(ex, 'file created'); 22 | fs.stat(file, function (err, stat) { 23 | t.ifError(err); 24 | process.chdir(cwd); 25 | t.equal(stat.mode & 0777, 0755); 26 | t.ok(stat.isDirectory(), 'target not a directory'); 27 | }) 28 | }) 29 | }); 30 | }); 31 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/return.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('return value', function (t) { 7 | t.plan(4); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | // should return the first dir created. 15 | // By this point, it would be profoundly surprising if /tmp didn't 16 | // already exist, since every other test makes things in there. 17 | mkdirp(file, function (err, made) { 18 | t.ifError(err); 19 | t.equal(made, '/tmp/' + x); 20 | mkdirp(file, function (err, made) { 21 | t.ifError(err); 22 | t.equal(made, null); 23 | }); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/return_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('return value', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | // should return the first dir created. 15 | // By this point, it would be profoundly surprising if /tmp didn't 16 | // already exist, since every other test makes things in there. 17 | // Note that this will throw on failure, which will fail the test. 18 | var made = mkdirp.sync(file); 19 | t.equal(made, '/tmp/' + x); 20 | 21 | // making the same file again should have no effect. 22 | made = mkdirp.sync(file); 23 | t.equal(made, null); 24 | }); 25 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/root.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('root', function (t) { 7 | // '/' on unix, 'c:/' on windows. 8 | var file = path.resolve('/'); 9 | 10 | mkdirp(file, 0755, function (err) { 11 | if (err) throw err 12 | fs.stat(file, function (er, stat) { 13 | if (er) throw er 14 | t.ok(stat.isDirectory(), 'target is a directory'); 15 | t.end(); 16 | }) 17 | }); 18 | }); 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('sync', function (t) { 8 | t.plan(4); 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var file = '/tmp/' + [x,y,z].join('/'); 14 | 15 | try { 16 | mkdirp.sync(file, 0755); 17 | } catch (err) { 18 | t.fail(err); 19 | return t.end(); 20 | } 21 | 22 | exists(file, function (ex) { 23 | t.ok(ex, 'file created'); 24 | fs.stat(file, function (err, stat) { 25 | t.ifError(err); 26 | t.equal(stat.mode & 0777, 0755); 27 | t.ok(stat.isDirectory(), 'target not a directory'); 28 | }); 29 | }); 30 | }); 31 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/umask.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('implicit mode from umask', function (t) { 8 | t.plan(5); 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var file = '/tmp/' + [x,y,z].join('/'); 14 | 15 | mkdirp(file, function (err) { 16 | t.ifError(err); 17 | exists(file, function (ex) { 18 | t.ok(ex, 'file created'); 19 | fs.stat(file, function (err, stat) { 20 | t.ifError(err); 21 | t.equal(stat.mode & 0777, 0777 & (~process.umask())); 22 | t.ok(stat.isDirectory(), 'target not a directory'); 23 | }); 24 | }) 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/test/umask_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | 7 | test('umask sync modes', function (t) { 8 | t.plan(4); 9 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | 13 | var file = '/tmp/' + [x,y,z].join('/'); 14 | 15 | try { 16 | mkdirp.sync(file); 17 | } catch (err) { 18 | t.fail(err); 19 | return t.end(); 20 | } 21 | 22 | exists(file, function (ex) { 23 | t.ok(ex, 'file created'); 24 | fs.stat(file, function (err, stat) { 25 | t.ifError(err); 26 | t.equal(stat.mode & 0777, (0777 & (~process.umask()))); 27 | t.ok(stat.isDirectory(), 'target not a directory'); 28 | }); 29 | }); 30 | }); 31 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/nopt/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/nopt/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 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/nopt/examples/my-program.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | //process.env.DEBUG_NOPT = 1 4 | 5 | // my-program.js 6 | var nopt = require("../lib/nopt") 7 | , Stream = require("stream").Stream 8 | , path = require("path") 9 | , knownOpts = { "foo" : [String, null] 10 | , "bar" : [Stream, Number] 11 | , "baz" : path 12 | , "bloo" : [ "big", "medium", "small" ] 13 | , "flag" : Boolean 14 | , "pick" : Boolean 15 | } 16 | , shortHands = { "foofoo" : ["--foo", "Mr. Foo"] 17 | , "b7" : ["--bar", "7"] 18 | , "m" : ["--bloo", "medium"] 19 | , "p" : ["--pick"] 20 | , "f" : ["--flag", "true"] 21 | , "g" : ["--flag"] 22 | , "s" : "--flag" 23 | } 24 | // everything is optional. 25 | // knownOpts and shorthands default to {} 26 | // arg list defaults to process.argv 27 | // slice defaults to 2 28 | , parsed = nopt(knownOpts, shortHands, process.argv, 2) 29 | 30 | console.log("parsed =\n"+ require("util").inspect(parsed)) 31 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | To get started, sign the 3 | Contributor License Agreement. 4 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/README.md: -------------------------------------------------------------------------------- 1 | # abbrev-js 2 | 3 | Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev). 4 | 5 | Usage: 6 | 7 | var abbrev = require("abbrev"); 8 | abbrev("foo", "fool", "folding", "flop"); 9 | 10 | // returns: 11 | { fl: 'flop' 12 | , flo: 'flop' 13 | , flop: 'flop' 14 | , fol: 'folding' 15 | , fold: 'folding' 16 | , foldi: 'folding' 17 | , foldin: 'folding' 18 | , folding: 'folding' 19 | , foo: 'foo' 20 | , fool: 'fool' 21 | } 22 | 23 | This is handy for command-line scripts, or other cases where you want to be able to accept shorthands. 24 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/.npmrc: -------------------------------------------------------------------------------- 1 | save-prefix = ~ 2 | proprietary-attribs = false 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/ansi/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "laxcomma": true, 3 | "asi": true 4 | } 5 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/ansi/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/ansi/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.3.0 / 2014-05-09 3 | ================== 4 | 5 | * package: remove "test" script and "devDependencies" 6 | * package: remove "engines" section 7 | * pacakge: remove "bin" section 8 | * package: beautify 9 | * examples: remove `starwars` example (#15) 10 | * Documented goto, horizontalAbsolute, and eraseLine methods in README.md (#12, @Jammerwoch) 11 | * add `.jshintrc` file 12 | 13 | < 0.3.0 14 | ======= 15 | 16 | * Prehistoric 17 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/ansi/examples/beep/index.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /** 4 | * Invokes the terminal "beep" sound once per second on every exact second. 5 | */ 6 | 7 | process.title = 'beep' 8 | 9 | var cursor = require('../../')(process.stdout) 10 | 11 | function beep () { 12 | cursor.beep() 13 | setTimeout(beep, 1000 - (new Date()).getMilliseconds()) 14 | } 15 | 16 | setTimeout(beep, 1000 - (new Date()).getMilliseconds()) 17 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/ansi/examples/clear/index.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /** 4 | * Like GNU ncurses "clear" command. 5 | * https://github.com/mscdex/node-ncurses/blob/master/deps/ncurses/progs/clear.c 6 | */ 7 | 8 | process.title = 'clear' 9 | 10 | function lf () { return '\n' } 11 | 12 | require('../../')(process.stdout) 13 | .write(Array.apply(null, Array(process.stdout.getWindowSize()[1])).map(lf).join('')) 14 | .eraseData(2) 15 | .goto(1, 1) 16 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/ansi/examples/cursorPosition.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var tty = require('tty') 4 | var cursor = require('../')(process.stdout) 5 | 6 | // listen for the queryPosition report on stdin 7 | process.stdin.resume() 8 | raw(true) 9 | 10 | process.stdin.once('data', function (b) { 11 | var match = /\[(\d+)\;(\d+)R$/.exec(b.toString()) 12 | if (match) { 13 | var xy = match.slice(1, 3).reverse().map(Number) 14 | console.error(xy) 15 | } 16 | 17 | // cleanup and close stdin 18 | raw(false) 19 | process.stdin.pause() 20 | }) 21 | 22 | 23 | // send the query position request code to stdout 24 | cursor.queryPosition() 25 | 26 | function raw (mode) { 27 | if (process.stdin.setRawMode) { 28 | process.stdin.setRawMode(mode) 29 | } else { 30 | tty.setRawMode(mode) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | node_modules/* 3 | npm_debug.log 4 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/LICENSE.APACHE2: -------------------------------------------------------------------------------- 1 | Apache License, Version 2.0 2 | 3 | Copyright (c) 2011 Dominic Tarr 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 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/LICENSE.MIT: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2011 Dominic Tarr 4 | 5 | Permission is hereby granted, free of charge, 6 | to any person obtaining a copy of this software and 7 | associated documentation files (the "Software"), to 8 | deal in the Software without restriction, including 9 | without limitation the rights to use, copy, modify, 10 | merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom 12 | the Software is furnished to do so, 13 | subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice 16 | shall be included in all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 20 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 21 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 22 | ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/browser.js: -------------------------------------------------------------------------------- 1 | 2 | // when this is loaded into the browser, 3 | // just use the defaults... 4 | 5 | module.exports = function (name, defaults) { 6 | return defaults 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/deep-extend/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/deep-extend/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Viacheslav Lotsmanov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | 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, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/deep-extend/README.md: -------------------------------------------------------------------------------- 1 | Node.JS module “Deep Extend” 2 | ============================ 3 | 4 | Recursive object extending. 5 | 6 | Install 7 | ----- 8 | 9 | npm install deep-extend 10 | 11 | Usage 12 | ----- 13 | 14 | var deepExtend = require('deep-extend'); 15 | var obj1 = { 16 | a: 1, 17 | b: 2, 18 | d: { 19 | a: 1, 20 | b: [], 21 | c: { test1: 123, test2: 321 } 22 | }, 23 | f: 5, 24 | g: 123 25 | }; 26 | var obj2 = { 27 | b: 3, 28 | c: 5, 29 | d: { 30 | b: { first: 'one', second: 'two' }, 31 | c: { test2: 222 } 32 | }, 33 | e: { one: 1, two: 2 }, 34 | f: [], 35 | g: (void 0) 36 | }; 37 | 38 | deepExtend(obj1, obj2); 39 | 40 | console.log(obj1); 41 | /* 42 | { a: 1, 43 | b: 3, 44 | d: 45 | { a: 1, 46 | b: { first: 'one', second: 'two' }, 47 | c: { test1: 123, test2: 222 } }, 48 | f: [], 49 | c: 5, 50 | e: { one: 1, two: 2 }, 51 | g: undefined } 52 | */ 53 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/deep-extend/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --reporter spec 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/ini/.npm-completion.tmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/ini/.npm-completion.tmp -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/ini/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/ini/test/bar.js: -------------------------------------------------------------------------------- 1 | //test that parse(stringify(obj) deepEqu 2 | 3 | var ini = require('../') 4 | var test = require('tap').test 5 | 6 | var data = { 7 | 'number': {count: 10}, 8 | 'string': {drink: 'white russian'}, 9 | 'boolean': {isTrue: true}, 10 | 'nested boolean': {theDude: {abides: true, rugCount: 1}} 11 | } 12 | 13 | 14 | test('parse(stringify(x)) deepEqual x', function (t) { 15 | 16 | for (var k in data) { 17 | var s = ini.stringify(data[k]) 18 | console.log(s, data[k]) 19 | t.deepEqual(ini.parse(s), data[k]) 20 | } 21 | 22 | t.end() 23 | }) 24 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/ini/test/fixtures/foo.ini: -------------------------------------------------------------------------------- 1 | o = p 2 | 3 | a with spaces = b c 4 | 5 | ; wrap in quotes to JSON-decode and preserve spaces 6 | " xa n p " = "\"\r\nyoyoyo\r\r\n" 7 | 8 | ; wrap in quotes to get a key with a bracket, not a section. 9 | "[disturbing]" = hey you never know 10 | 11 | ; Test arrays 12 | zr[] = deedee 13 | ar[] = one 14 | ar[] = three 15 | ; This should be included in the array 16 | ar = this is included 17 | 18 | ; Test resetting of a value (and not turn it into an array) 19 | br = cold 20 | br = warm 21 | 22 | ; a section 23 | [a] 24 | av = a val 25 | e = { o: p, a: { av: a val, b: { c: { e: "this [value]" } } } } 26 | j = "{ o: "p", a: { av: "a val", b: { c: { e: "this [value]" } } } }" 27 | "[]" = a square? 28 | 29 | ; Nested array 30 | cr[] = four 31 | cr[] = eight 32 | 33 | ; nested child without middle parent 34 | ; should create otherwise-empty a.b 35 | [a.b.c] 36 | e = 1 37 | j = 2 38 | 39 | ; dots in the section name should be literally interpreted 40 | [x\.y\.z] 41 | x.y.z = xyz 42 | 43 | [x\.y\.z.a\.b\.c] 44 | a.b.c = abc 45 | 46 | ; this next one is not a comment! it's escaped! 47 | nocomment = this\; this is not a comment 48 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/LICENSE: -------------------------------------------------------------------------------- 1 | This software is released under the MIT license: 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 7 | the Software, and to permit persons to whom the Software is furnished to do so, 8 | subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | 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, FITNESS 15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/example/parse.js: -------------------------------------------------------------------------------- 1 | var argv = require('../')(process.argv.slice(2)); 2 | console.dir(argv); 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/test/dash.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('-', function (t) { 5 | t.plan(5); 6 | t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] }); 7 | t.deepEqual(parse([ '-' ]), { _: [ '-' ] }); 8 | t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] }); 9 | t.deepEqual( 10 | parse([ '-b', '-' ], { boolean: 'b' }), 11 | { b: true, _: [ '-' ] } 12 | ); 13 | t.deepEqual( 14 | parse([ '-s', '-' ], { string: 's' }), 15 | { s: '-', _: [] } 16 | ); 17 | }); 18 | 19 | test('-a -- b', function (t) { 20 | t.plan(3); 21 | t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] }); 22 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); 23 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); 24 | }); 25 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/test/default_bool.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var parse = require('../'); 3 | 4 | test('boolean default true', function (t) { 5 | var argv = parse([], { 6 | boolean: 'sometrue', 7 | default: { sometrue: true } 8 | }); 9 | t.equal(argv.sometrue, true); 10 | t.end(); 11 | }); 12 | 13 | test('boolean default false', function (t) { 14 | var argv = parse([], { 15 | boolean: 'somefalse', 16 | default: { somefalse: false } 17 | }); 18 | t.equal(argv.somefalse, false); 19 | t.end(); 20 | }); 21 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/test/dotted.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('dotted alias', function (t) { 5 | var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 6 | t.equal(argv.a.b, 22); 7 | t.equal(argv.aa.bb, 22); 8 | t.end(); 9 | }); 10 | 11 | test('dotted default', function (t) { 12 | var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 13 | t.equal(argv.a.b, 11); 14 | t.equal(argv.aa.bb, 11); 15 | t.end(); 16 | }); 17 | 18 | test('dotted default with no alias', function (t) { 19 | var argv = parse('', {default: {'a.b': 11}}); 20 | t.equal(argv.a.b, 11); 21 | t.end(); 22 | }); 23 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/test/long.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var parse = require('../'); 3 | 4 | test('long opts', function (t) { 5 | t.deepEqual( 6 | parse([ '--bool' ]), 7 | { bool : true, _ : [] }, 8 | 'long boolean' 9 | ); 10 | t.deepEqual( 11 | parse([ '--pow', 'xixxle' ]), 12 | { pow : 'xixxle', _ : [] }, 13 | 'long capture sp' 14 | ); 15 | t.deepEqual( 16 | parse([ '--pow=xixxle' ]), 17 | { pow : 'xixxle', _ : [] }, 18 | 'long capture eq' 19 | ); 20 | t.deepEqual( 21 | parse([ '--host', 'localhost', '--port', '555' ]), 22 | { host : 'localhost', port : 555, _ : [] }, 23 | 'long captures sp' 24 | ); 25 | t.deepEqual( 26 | parse([ '--host=localhost', '--port=555' ]), 27 | { host : 'localhost', port : 555, _ : [] }, 28 | 'long captures eq' 29 | ); 30 | t.end(); 31 | }); 32 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/test/num.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('nums', function (t) { 5 | var argv = parse([ 6 | '-x', '1234', 7 | '-y', '5.67', 8 | '-z', '1e7', 9 | '-w', '10f', 10 | '--hex', '0xdeadbeef', 11 | '789' 12 | ]); 13 | t.deepEqual(argv, { 14 | x : 1234, 15 | y : 5.67, 16 | z : 1e7, 17 | w : '10f', 18 | hex : 0xdeadbeef, 19 | _ : [ 789 ] 20 | }); 21 | t.deepEqual(typeof argv.x, 'number'); 22 | t.deepEqual(typeof argv.y, 'number'); 23 | t.deepEqual(typeof argv.z, 'number'); 24 | t.deepEqual(typeof argv.w, 'string'); 25 | t.deepEqual(typeof argv.hex, 'number'); 26 | t.deepEqual(typeof argv._[0], 'number'); 27 | t.end(); 28 | }); 29 | 30 | test('already a number', function (t) { 31 | var argv = parse([ '-x', 1234, 789 ]); 32 | t.deepEqual(argv, { x : 1234, _ : [ 789 ] }); 33 | t.deepEqual(typeof argv.x, 'number'); 34 | t.deepEqual(typeof argv._[0], 'number'); 35 | t.end(); 36 | }); 37 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/test/parse_modified.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('parse with modifier functions' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); 8 | t.deepEqual(argv, { b: true, _: ['123'] }); 9 | }); 10 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/node_modules/strip-json-comments/cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 'use strict'; 3 | var fs = require('fs'); 4 | var strip = require('./strip-json-comments'); 5 | var input = process.argv[2]; 6 | 7 | 8 | function getStdin(cb) { 9 | var ret = ''; 10 | 11 | process.stdin.setEncoding('utf8'); 12 | 13 | process.stdin.on('data', function (data) { 14 | ret += data; 15 | }); 16 | 17 | process.stdin.on('end', function () { 18 | cb(ret); 19 | }); 20 | } 21 | 22 | if (process.argv.indexOf('-h') !== -1 || process.argv.indexOf('--help') !== -1) { 23 | console.log('strip-json-comments > '); 24 | console.log('or'); 25 | console.log('cat | strip-json-comments > '); 26 | return; 27 | } 28 | 29 | if (process.argv.indexOf('-v') !== -1 || process.argv.indexOf('--version') !== -1) { 30 | console.log(require('./package').version); 31 | return; 32 | } 33 | 34 | if (input) { 35 | process.stdout.write(strip(fs.readFileSync(input, 'utf8'))); 36 | return; 37 | } 38 | 39 | getStdin(function (data) { 40 | process.stdout.write(strip(data)); 41 | }); 42 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc/test/ini.js: -------------------------------------------------------------------------------- 1 | var cc =require('../lib/utils') 2 | var INI = require('ini') 3 | var assert = require('assert') 4 | 5 | function test(obj) { 6 | 7 | var _json, _ini 8 | var json = cc.parse (_json = JSON.stringify(obj)) 9 | var ini = cc.parse (_ini = INI.stringify(obj)) 10 | console.log(_ini, _json) 11 | assert.deepEqual(json, ini) 12 | } 13 | 14 | 15 | test({hello: true}) 16 | 17 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "node": true 4 | }, 5 | "rules": { 6 | // Disallow semi-colons, unless needed to disambiguate statement 7 | "semi": [2, "never"], 8 | // Require strings to use single quotes 9 | "quotes": [2, "single"], 10 | // Require curly braces for all control statements 11 | "curly": 2, 12 | // Disallow using variables and functions before they've been defined 13 | "no-use-before-define": 2, 14 | // Allow any case for variable naming 15 | "camelcase": 0, 16 | // Disallow unused variables, except as function arguments 17 | "no-unused-vars": [2, {"args":"none"}], 18 | // Allow leading underscores for method names 19 | // REASON: we use underscores to denote private methods 20 | "no-underscore-dangle": 0 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/.npmignore: -------------------------------------------------------------------------------- 1 | tests 2 | node_modules 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | webhooks: 6 | urls: https://webhooks.gitter.im/e/237280ed4796c19cc626 7 | on_success: change # options: [always|never|change] default: always 8 | on_failure: always # options: [always|never|change] default: always 9 | on_start: false # default: false 10 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/disabled.appveyor.yml: -------------------------------------------------------------------------------- 1 | # http://www.appveyor.com/docs/appveyor-yml 2 | 3 | # Fix line endings in Windows. (runs before repo cloning) 4 | init: 5 | - git config --global core.autocrlf input 6 | 7 | # Test against these versions of Node.js. 8 | environment: 9 | matrix: 10 | - nodejs_version: "0.10" 11 | - nodejs_version: "0.8" 12 | - nodejs_version: "0.11" 13 | 14 | # Allow failing jobs for bleeding-edge Node.js versions. 15 | matrix: 16 | allow_failures: 17 | - nodejs_version: "0.11" 18 | 19 | # Install scripts. (runs after repo cloning) 20 | install: 21 | # Get the latest stable version of Node 0.STABLE.latest 22 | - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) 23 | # Typical npm stuff. 24 | - npm install 25 | 26 | # Post-install test scripts. 27 | test_script: 28 | # Output useful info for debugging. 29 | - ps: "npm test # PowerShell" # Pass comment to PS for easier debugging 30 | - cmd: npm test 31 | 32 | # Don't actually build. 33 | build: off 34 | 35 | # Set build version format here instead of in the admin panel. 36 | version: "{build}" 37 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/lib/cookies.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | var tough = require('tough-cookie') 4 | 5 | var Cookie = tough.Cookie 6 | , CookieJar = tough.CookieJar 7 | 8 | 9 | exports.parse = function(str) { 10 | if (str && str.uri) { 11 | str = str.uri 12 | } 13 | if (typeof str !== 'string') { 14 | throw new Error('The cookie function only accepts STRING as param') 15 | } 16 | return Cookie.parse(str) 17 | } 18 | 19 | // Adapt the sometimes-Async api of tough.CookieJar to our requirements 20 | function RequestJar(store) { 21 | var self = this 22 | self._jar = new CookieJar(store) 23 | } 24 | RequestJar.prototype.setCookie = function(cookieOrStr, uri, options) { 25 | var self = this 26 | return self._jar.setCookieSync(cookieOrStr, uri, options || {}) 27 | } 28 | RequestJar.prototype.getCookieString = function(uri) { 29 | var self = this 30 | return self._jar.getCookieStringSync(uri) 31 | } 32 | RequestJar.prototype.getCookies = function(uri) { 33 | var self = this 34 | return self._jar.getCookiesSync(uri) 35 | } 36 | 37 | exports.jar = function(store) { 38 | return new RequestJar(store) 39 | } 40 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/lib/copy.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | module.exports = 4 | function copy (obj) { 5 | var o = {} 6 | Object.keys(obj).forEach(function (i) { 7 | o[i] = obj[i] 8 | }) 9 | return o 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/lib/debug.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | var util = require('util') 4 | , request = require('../index') 5 | 6 | 7 | module.exports = function debug() { 8 | if (request.debug) { 9 | console.error('REQUEST %s', util.format.apply(util, arguments)) 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/aws-sign2/README.md: -------------------------------------------------------------------------------- 1 | aws-sign 2 | ======== 3 | 4 | AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | - "0.10" 5 | branches: 6 | only: 7 | - master 8 | notifications: 9 | email: 10 | - rod@vagg.org 11 | script: npm test -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | ctor.super_ = superCtor 5 | ctor.prototype = Object.create(superCtor.prototype, { 6 | constructor: { 7 | value: ctor, 8 | enumerable: false, 9 | writable: true, 10 | configurable: true 11 | } 12 | }); 13 | }; 14 | } else { 15 | // old school shim for old browsers 16 | module.exports = function inherits(ctor, superCtor) { 17 | ctor.super_ = superCtor 18 | var TempCtor = function () {} 19 | TempCtor.prototype = superCtor.prototype 20 | ctor.prototype = new TempCtor() 21 | ctor.prototype.constructor = ctor 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/test.js: -------------------------------------------------------------------------------- 1 | var inherits = require('./inherits.js') 2 | var assert = require('assert') 3 | 4 | function test(c) { 5 | assert(c.constructor === Child) 6 | assert(c.constructor.super_ === Parent) 7 | assert(Object.getPrototypeOf(c) === Child.prototype) 8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype) 9 | assert(c instanceof Child) 10 | assert(c instanceof Parent) 11 | } 12 | 13 | function Child() { 14 | Parent.call(this) 15 | test(this) 16 | } 17 | 18 | function Parent() {} 19 | 20 | inherits(Child, Parent) 21 | 22 | var c = new Child 23 | test(c) 24 | 25 | console.log('ok') 26 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/README.md: -------------------------------------------------------------------------------- 1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core 2 | 3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details. 4 | 5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.** 6 | 7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version. -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | var Stream = require('stream'); // hack to fix a circular dependency issue when used with browserify 2 | exports = module.exports = require('./lib/_stream_readable.js'); 3 | exports.Stream = Stream; 4 | exports.Readable = exports; 5 | exports.Writable = require('./lib/_stream_writable.js'); 6 | exports.Duplex = require('./lib/_stream_duplex.js'); 7 | exports.Transform = require('./lib/_stream_transform.js'); 8 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 9 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/test/test.js: -------------------------------------------------------------------------------- 1 | require('./basic-test') 2 | 3 | if (!process.env.SAUCE_KEY || !process.env.SAUCE_USER) 4 | return console.log('SAUCE_KEY and/or SAUCE_USER not set, not running sauce tests') 5 | 6 | if (!/v0\.10/.test(process.version)) 7 | return console.log('Not Node v0.10.x, not running sauce tests') 8 | 9 | require('./sauce.js') -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/caseless/test.js: -------------------------------------------------------------------------------- 1 | var tape = require('tape') 2 | , caseless = require('./') 3 | ; 4 | 5 | tape('set get has', function (t) { 6 | var headers = {} 7 | , c = caseless(headers) 8 | ; 9 | t.plan(17) 10 | c.set('a-Header', 'asdf') 11 | t.equal(c.get('a-header'), 'asdf') 12 | t.equal(c.has('a-header'), 'a-Header') 13 | t.ok(!c.has('nothing')) 14 | // old bug where we used the wrong regex 15 | t.ok(!c.has('a-hea')) 16 | c.set('a-header', 'fdsa') 17 | t.equal(c.get('a-header'), 'fdsa') 18 | t.equal(c.get('a-Header'), 'fdsa') 19 | c.set('a-HEADER', 'more', false) 20 | t.equal(c.get('a-header'), 'fdsa,more') 21 | 22 | t.deepEqual(headers, {'a-Header': 'fdsa,more'}) 23 | c.swap('a-HEADER') 24 | t.deepEqual(headers, {'a-HEADER': 'fdsa,more'}) 25 | 26 | c.set('deleteme', 'foobar') 27 | t.ok(c.has('deleteme')) 28 | t.ok(c.del('deleteme')) 29 | t.notOk(c.has('deleteme')) 30 | t.notOk(c.has('idonotexist')) 31 | t.ok(c.del('idonotexist')) 32 | 33 | c.set('tva', 'test1') 34 | c.set('tva-header', 'test2') 35 | t.equal(c.has('tva'), 'tva') 36 | t.notOk(c.has('header')) 37 | 38 | t.equal(c.get('tva'), 'test1') 39 | 40 | }) 41 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Debuggable Limited 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 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/.npmignore: -------------------------------------------------------------------------------- 1 | *.un~ 2 | /node_modules/* 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/Makefile: -------------------------------------------------------------------------------- 1 | SHELL := /bin/bash 2 | 3 | test: 4 | @./test/run.js 5 | 6 | .PHONY: test 7 | 8 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/common.js: -------------------------------------------------------------------------------- 1 | var common = module.exports; 2 | 3 | common.DelayedStream = require('..'); 4 | common.assert = require('assert'); 5 | common.fake = require('fake'); 6 | common.PORT = 49252; 7 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var DelayedStream = common.DelayedStream; 4 | var http = require('http'); 5 | 6 | var UPLOAD = new Buffer(10 * 1024 * 1024); 7 | 8 | var server = http.createServer(function(req, res) { 9 | var delayed = DelayedStream.create(req, {maxDataSize: UPLOAD.length}); 10 | 11 | setTimeout(function() { 12 | res.writeHead(200); 13 | delayed.pipe(res); 14 | }, 10); 15 | }); 16 | server.listen(common.PORT, function() { 17 | var request = http.request({ 18 | method: 'POST', 19 | port: common.PORT, 20 | }); 21 | 22 | request.write(UPLOAD); 23 | request.end(); 24 | 25 | request.on('response', function(res) { 26 | var received = 0; 27 | res 28 | .on('data', function(chunk) { 29 | received += chunk.length; 30 | }) 31 | .on('end', function() { 32 | assert.equal(received, UPLOAD.length); 33 | server.close(); 34 | }); 35 | }); 36 | }); 37 | 38 | 39 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-auto-pause.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var fake = common.fake.create(); 4 | var DelayedStream = common.DelayedStream; 5 | var Stream = require('stream').Stream; 6 | 7 | (function testAutoPause() { 8 | var source = new Stream(); 9 | 10 | fake.expect(source, 'pause', 1); 11 | var delayedStream = DelayedStream.create(source); 12 | fake.verify(); 13 | })(); 14 | 15 | (function testDisableAutoPause() { 16 | var source = new Stream(); 17 | fake.expect(source, 'pause', 0); 18 | 19 | var delayedStream = DelayedStream.create(source, {pauseStream: false}); 20 | fake.verify(); 21 | })(); 22 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-pause.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var fake = common.fake.create(); 4 | var DelayedStream = common.DelayedStream; 5 | var Stream = require('stream').Stream; 6 | 7 | (function testDelayEventsUntilResume() { 8 | var source = new Stream(); 9 | var delayedStream = DelayedStream.create(source, {pauseStream: false}); 10 | 11 | fake.expect(source, 'pause'); 12 | delayedStream.pause(); 13 | fake.verify(); 14 | })(); 15 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var fake = common.fake.create(); 4 | var DelayedStream = common.DelayedStream; 5 | var Stream = require('stream').Stream; 6 | 7 | (function testHandleSourceErrors() { 8 | var source = new Stream(); 9 | var delayedStream = DelayedStream.create(source, {pauseStream: false}); 10 | 11 | // We deal with this by attaching a no-op listener to 'error' on the source 12 | // when creating a new DelayedStream. This way error events on the source 13 | // won't throw. 14 | source.emit('error', new Error('something went wrong')); 15 | })(); 16 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-max-data-size.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var fake = common.fake.create(); 4 | var DelayedStream = common.DelayedStream; 5 | var Stream = require('stream').Stream; 6 | 7 | (function testMaxDataSize() { 8 | var source = new Stream(); 9 | var delayedStream = DelayedStream.create(source, {maxDataSize: 1024, pauseStream: false}); 10 | 11 | source.emit('data', new Buffer(1024)); 12 | 13 | fake 14 | .expect(delayedStream, 'emit') 15 | .withArg(1, 'error'); 16 | source.emit('data', new Buffer(1)); 17 | fake.verify(); 18 | })(); 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-pipe-resumes.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var fake = common.fake.create(); 4 | var DelayedStream = common.DelayedStream; 5 | var Stream = require('stream').Stream; 6 | 7 | (function testPipeReleases() { 8 | var source = new Stream(); 9 | var delayedStream = DelayedStream.create(source, {pauseStream: false}); 10 | 11 | fake.expect(delayedStream, 'resume'); 12 | delayedStream.pipe(new Stream()); 13 | })(); 14 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-proxy-readable.js: -------------------------------------------------------------------------------- 1 | var common = require('../common'); 2 | var assert = common.assert; 3 | var fake = common.fake.create(); 4 | var DelayedStream = common.DelayedStream; 5 | var Stream = require('stream').Stream; 6 | 7 | (function testProxyReadableProperty() { 8 | var source = new Stream(); 9 | var delayedStream = DelayedStream.create(source, {pauseStream: false}); 10 | 11 | source.readable = fake.value('source.readable'); 12 | assert.strictEqual(delayedStream.readable, source.readable); 13 | })(); 14 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/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 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/forever-agent/README.md: -------------------------------------------------------------------------------- 1 | forever-agent 2 | ============= 3 | 4 | HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/node_modules/async/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/node_modules/async/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010-2014 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 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/node_modules/async/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "async", 3 | "repo": "caolan/async", 4 | "description": "Higher-order functions and common patterns for asynchronous code", 5 | "version": "0.1.23", 6 | "keywords": [], 7 | "dependencies": {}, 8 | "development": {}, 9 | "main": "lib/async.js", 10 | "scripts": [ "lib/async.js" ] 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/node_modules/mime-types/node_modules/mime-db/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * mime-db 3 | * Copyright(c) 2014 Jonathan Ong 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * Module exports. 9 | */ 10 | 11 | module.exports = require('./db.json') 12 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/node_modules/mime/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Benjamin Thomas, Robert Kieffer 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 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @node node_modules/lab/bin/lab 3 | test-cov: 4 | @node node_modules/lab/bin/lab -r threshold -t 100 5 | test-cov-html: 6 | @node node_modules/lab/bin/lab -r html -o coverage.html 7 | complexity: 8 | @node node_modules/complexity-report/src/cli.js -o complexity.md -f markdown lib 9 | 10 | .PHONY: test test-cov test-cov-html complexity 11 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/images/hawk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/images/hawk.png -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/images/logo.png -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/lib/index.js: -------------------------------------------------------------------------------- 1 | // Export sub-modules 2 | 3 | exports.error = exports.Error = require('boom'); 4 | exports.sntp = require('sntp'); 5 | 6 | exports.server = require('./server'); 7 | exports.client = require('./client'); 8 | exports.crypto = require('./crypto'); 9 | exports.utils = require('./utils'); 10 | 11 | exports.uri = { 12 | authenticate: exports.server.authenticateBewit, 13 | getBewit: exports.client.getBewit 14 | }; 15 | 16 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @node node_modules/lab/bin/lab 3 | test-cov: 4 | @node node_modules/lab/bin/lab -r threshold -t 100 5 | test-cov-html: 6 | @node node_modules/lab/bin/lab -r html -o coverage.html 7 | complexity: 8 | @node node_modules/complexity-report/src/cli.js -o complexity.md -f markdown lib 9 | 10 | .PHONY: test test-cov test-cov-html complexity 11 | 12 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/README.md: -------------------------------------------------------------------------------- 1 | 2 | ![boom Logo](https://raw.github.com/spumko/boom/master/images/boom.png) 3 | 4 | HTTP-friendly error objects 5 | 6 | [![Build Status](https://secure.travis-ci.org/spumko/boom.png)](http://travis-ci.org/spumko/boom) 7 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @./node_modules/.bin/lab 3 | test-cov: 4 | @./node_modules/.bin/lab -r threshold -t 100 5 | test-cov-html: 6 | @./node_modules/.bin/lab -r html -o coverage.html 7 | complexity: 8 | @./node_modules/.bin/cr -o complexity.md -f markdown lib 9 | 10 | .PHONY: test test-cov test-cov-html complexity 11 | 12 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md: -------------------------------------------------------------------------------- 1 | cryptiles 2 | ========= 3 | 4 | General purpose crypto utilities 5 | 6 | [![Build Status](https://secure.travis-ci.org/hueniverse/cryptiles.png)](http://travis-ci.org/hueniverse/cryptiles) 7 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | complexity.md 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @node node_modules/lab/bin/lab 3 | test-cov: 4 | @node node_modules/lab/bin/lab -r threshold -t 100 5 | test-cov-html: 6 | @node node_modules/lab/bin/lab -r html -o coverage.html 7 | complexity: 8 | @node node_modules/complexity-report/src/cli.js -o complexity.md -f markdown lib 9 | 10 | .PHONY: test test-cov test-cov-html complexity 11 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test1.js: -------------------------------------------------------------------------------- 1 | exports.x = 1; 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test2.js: -------------------------------------------------------------------------------- 1 | exports.y = 2; 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test3.js: -------------------------------------------------------------------------------- 1 | exports.z = 3; 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/sntp/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/sntp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/sntp/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @./node_modules/.bin/lab 3 | test-cov: 4 | @./node_modules/.bin/lab -r threshold -t 100 5 | test-cov-html: 6 | @./node_modules/.bin/lab -r html -o coverage.html 7 | complexity: 8 | @./node_modules/.bin/cr -o complexity.md -f markdown lib 9 | 10 | .PHONY: test test-cov test-cov-html complexity 11 | 12 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/sntp/examples/offset.js: -------------------------------------------------------------------------------- 1 | var Sntp = require('../lib'); 2 | 3 | // Request offset once 4 | 5 | Sntp.offset(function (err, offset) { 6 | 7 | console.log(offset); // New (served fresh) 8 | 9 | // Request offset again 10 | 11 | Sntp.offset(function (err, offset) { 12 | 13 | console.log(offset); // Identical (served from cache) 14 | }); 15 | }); 16 | 17 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js: -------------------------------------------------------------------------------- 1 | var Sntp = require('../lib'); 2 | 3 | // All options are optional 4 | 5 | var options = { 6 | host: 'nist1-sj.ustiming.org', // Defaults to pool.ntp.org 7 | port: 123, // Defaults to 123 (NTP) 8 | resolveReference: true, // Default to false (not resolving) 9 | timeout: 1000 // Defaults to zero (no timeout) 10 | }; 11 | 12 | // Request server time 13 | 14 | Sntp.time(options, function (err, time) { 15 | 16 | if (err) { 17 | console.log('Failed: ' + err.message); 18 | process.exit(1); 19 | } 20 | 21 | console.log(time); 22 | console.log('Local clock is off by: ' + time.t + ' milliseconds'); 23 | process.exit(0); 24 | }); 25 | 26 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/sntp/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/.dir-locals.el: -------------------------------------------------------------------------------- 1 | ((nil . ((indent-tabs-mode . nil) 2 | (tab-width . 8) 3 | (fill-column . 80))) 4 | (js-mode . ((js-indent-level . 2) 5 | (indent-tabs-mode . nil) 6 | ))) -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/.npmignore: -------------------------------------------------------------------------------- 1 | .gitmodules 2 | deps 3 | docs 4 | Makefile 5 | node_modules 6 | test 7 | tools -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Joyent, Inc. All rights reserved. 2 | Permission is hereby granted, free of charge, to any person obtaining a copy 3 | of this software and associated documentation files (the "Software"), to 4 | deal in the Software without restriction, including without limitation the 5 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 6 | sell copies of the Software, and to permit persons to whom the Software is 7 | furnished to do so, subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in 10 | all copies or substantial portions of the Software. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 17 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 18 | IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/lib/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Joyent, Inc. All rights reserved. 2 | 3 | var parser = require('./parser'); 4 | var signer = require('./signer'); 5 | var verify = require('./verify'); 6 | var util = require('./util'); 7 | 8 | 9 | 10 | ///--- API 11 | 12 | module.exports = { 13 | 14 | parse: parser.parseRequest, 15 | parseRequest: parser.parseRequest, 16 | 17 | sign: signer.signRequest, 18 | signRequest: signer.signRequest, 19 | 20 | sshKeyToPEM: util.sshKeyToPEM, 21 | sshKeyFingerprint: util.fingerprint, 22 | 23 | verify: verify.verifySignature, 24 | verifySignature: verify.verifySignature 25 | }; 26 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/asn1/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Mark Cavage, All rights reserved. 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 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/errors.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | 4 | module.exports = { 5 | 6 | newInvalidAsn1Error: function(msg) { 7 | var e = new Error(); 8 | e.name = 'InvalidAsn1Error'; 9 | e.message = msg || ''; 10 | return e; 11 | } 12 | 13 | }; 14 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | var errors = require('./errors'); 4 | var types = require('./types'); 5 | 6 | var Reader = require('./reader'); 7 | var Writer = require('./writer'); 8 | 9 | 10 | ///--- Exports 11 | 12 | module.exports = { 13 | 14 | Reader: Reader, 15 | 16 | Writer: Writer 17 | 18 | }; 19 | 20 | for (var t in types) { 21 | if (types.hasOwnProperty(t)) 22 | module.exports[t] = types[t]; 23 | } 24 | for (var e in errors) { 25 | if (errors.hasOwnProperty(e)) 26 | module.exports[e] = errors[e]; 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/types.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | 4 | module.exports = { 5 | EOC: 0, 6 | Boolean: 1, 7 | Integer: 2, 8 | BitString: 3, 9 | OctetString: 4, 10 | Null: 5, 11 | OID: 6, 12 | ObjectDescriptor: 7, 13 | External: 8, 14 | Real: 9, // float 15 | Enumeration: 10, 16 | PDV: 11, 17 | Utf8String: 12, 18 | RelativeOID: 13, 19 | Sequence: 16, 20 | Set: 17, 21 | NumericString: 18, 22 | PrintableString: 19, 23 | T61String: 20, 24 | VideotexString: 21, 25 | IA5String: 22, 26 | UTCTime: 23, 27 | GeneralizedTime: 24, 28 | GraphicString: 25, 29 | VisibleString: 26, 30 | GeneralString: 28, 31 | UniversalString: 29, 32 | CharacterString: 30, 33 | BMPString: 31, 34 | Constructor: 32, 35 | Context: 128 36 | }; 37 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | // If you have no idea what ASN.1 or BER is, see this: 4 | // ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc 5 | 6 | var Ber = require('./ber/index'); 7 | 8 | 9 | 10 | ///--- Exported API 11 | 12 | module.exports = { 13 | 14 | Ber: Ber, 15 | 16 | BerReader: Ber.Reader, 17 | 18 | BerWriter: Ber.Writer 19 | 20 | }; 21 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/assert-plus/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": { 3 | "name": "Mark Cavage", 4 | "email": "mcavage@gmail.com" 5 | }, 6 | "name": "assert-plus", 7 | "description": "Extra assertions on top of node's assert module", 8 | "version": "0.1.2", 9 | "main": "./assert.js", 10 | "dependencies": {}, 11 | "devDependencies": {}, 12 | "optionalDependencies": {}, 13 | "engines": { 14 | "node": ">=0.6" 15 | }, 16 | "_id": "assert-plus@0.1.2", 17 | "dist": { 18 | "shasum": "d93ffdbb67ac5507779be316a7d65146417beef8", 19 | "tarball": "http://registry.npmjs.org/assert-plus/-/assert-plus-0.1.2.tgz" 20 | }, 21 | "_npmVersion": "1.1.59", 22 | "_npmUser": { 23 | "name": "mcavage", 24 | "email": "mcavage@gmail.com" 25 | }, 26 | "maintainers": [ 27 | { 28 | "name": "mcavage", 29 | "email": "mcavage@gmail.com" 30 | } 31 | ], 32 | "directories": {}, 33 | "_shasum": "d93ffdbb67ac5507779be316a7d65146417beef8", 34 | "_from": "assert-plus@0.1.2", 35 | "_resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.2.tgz", 36 | "readme": "ERROR: No README data found!" 37 | } 38 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/.npmignore: -------------------------------------------------------------------------------- 1 | tst/ 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ctype", 3 | "version": "0.5.2", 4 | "description": "read and write binary structures and data types", 5 | "homepage": "https://github.com/rmustacc/node-ctype", 6 | "author": { 7 | "name": "Robert Mustacchi", 8 | "email": "rm@fingolfin.org" 9 | }, 10 | "engines": { 11 | "node": ">= 0.4" 12 | }, 13 | "main": "ctype.js", 14 | "_id": "ctype@0.5.2", 15 | "dist": { 16 | "shasum": "fe8091d468a373a0b0c9ff8bbfb3425c00973a1d", 17 | "tarball": "http://registry.npmjs.org/ctype/-/ctype-0.5.2.tgz" 18 | }, 19 | "_npmVersion": "1.1.59", 20 | "_npmUser": { 21 | "name": "rm", 22 | "email": "rm@fingolfin.org" 23 | }, 24 | "maintainers": [ 25 | { 26 | "name": "rm", 27 | "email": "rm@fingolfin.org" 28 | } 29 | ], 30 | "directories": {}, 31 | "_shasum": "fe8091d468a373a0b0c9ff8bbfb3425c00973a1d", 32 | "_from": "ctype@0.5.2", 33 | "_resolved": "https://registry.npmjs.org/ctype/-/ctype-0.5.2.tgz", 34 | "readme": "ERROR: No README data found!" 35 | } 36 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/float.json: -------------------------------------------------------------------------------- 1 | { "metadata": 2 | { 3 | "ctf2json_version": "1.0", 4 | "created_at": 1316563626, 5 | "derived_from": "/lib/libc.so", 6 | "ctf_version": 2, 7 | "requested_types": [ "float" ] 8 | }, 9 | "data": 10 | [ 11 | { "name": "float", "float": { "length": 4 } } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/int.json: -------------------------------------------------------------------------------- 1 | { "metadata": 2 | { 3 | "ctf2json_version": "1.0", 4 | "created_at": 1316563631, 5 | "derived_from": "/lib/libc.so", 6 | "ctf_version": 2, 7 | "requested_types": [ "int" ] 8 | }, 9 | "data": 10 | [ 11 | { "name": "int", "integer": { "length": 4, "signed": true } } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/struct.json: -------------------------------------------------------------------------------- 1 | { "metadata": 2 | { 3 | "ctf2json_version": "1.0", 4 | "created_at": 1316563648, 5 | "derived_from": "/lib/libc.so", 6 | "ctf_version": 2, 7 | "requested_types": [ "timestruc_t" ] 8 | }, 9 | "data": 10 | [ 11 | { "name": "long", "integer": { "length": 4, "signed": true } }, 12 | { "name": "time_t", "typedef": "long" }, 13 | { "name": "struct timespec", "struct": [ 14 | { "name": "tv_sec", "type": "time_t" }, 15 | { "name": "tv_nsec", "type": "long" } 16 | ] }, 17 | { "name": "timestruc_t", "typedef": "struct timespec" } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.float.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_ctype = require('../../ctype.js'); 3 | var mod_assert = require('assert'); 4 | 5 | function test() 6 | { 7 | var data, parser; 8 | 9 | data = JSON.parse(mod_fs.readFileSync('./float.json').toString()); 10 | parser = mod_ctype.parseCTF(data, { endian: 'big' }); 11 | mod_assert.deepEqual(parser.lstypes(), {}); 12 | } 13 | 14 | test(); 15 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.int.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_ctype = require('../../ctype.js'); 3 | var mod_assert = require('assert'); 4 | 5 | function test() 6 | { 7 | var data, parser; 8 | 9 | data = JSON.parse(mod_fs.readFileSync('./int.json').toString()); 10 | parser = mod_ctype.parseCTF(data, { endian: 'big' }); 11 | mod_assert.deepEqual(parser.lstypes(), { 'int': 'int32_t' }); 12 | } 13 | 14 | test(); 15 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.psinfo.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_ctype = require('../../ctype.js'); 3 | var mod_assert = require('assert'); 4 | 5 | /* 6 | * This is too unwieldly to actually write out. Just make sure we can parse it 7 | * without errrors. 8 | */ 9 | function test() 10 | { 11 | var data; 12 | 13 | data = JSON.parse(mod_fs.readFileSync('./psinfo.json').toString()); 14 | mod_ctype.parseCTF(data, { endian: 'big' }); 15 | } 16 | 17 | test(); 18 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.struct.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_ctype = require('../../ctype.js'); 3 | var mod_assert = require('assert'); 4 | 5 | function test() 6 | { 7 | var data, parser; 8 | 9 | data = JSON.parse(mod_fs.readFileSync('./struct.json').toString()); 10 | parser = mod_ctype.parseCTF(data, { endian: 'big' }); 11 | mod_assert.deepEqual(parser.lstypes(), { 'long': 'int32_t', 12 | 'time_t': 'long', 13 | 'timestruc_t': 'struct timespec', 14 | 'struct timespec': [ { 'tv_sec': { 'type': 'time_t' } }, 15 | { 'tv_nsec': { 'type': 'long' } } ] }); 16 | } 17 | 18 | test(); 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.typedef.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_ctype = require('../../ctype.js'); 3 | var mod_assert = require('assert'); 4 | 5 | function test() 6 | { 7 | var data, parser; 8 | 9 | data = JSON.parse(mod_fs.readFileSync('./typedef.json').toString()); 10 | parser = mod_ctype.parseCTF(data, { endian: 'big' }); 11 | mod_assert.deepEqual(parser.lstypes(), { 'bar_t': 'int', 12 | 'int': 'int32_t' }); 13 | } 14 | 15 | test(); 16 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/typedef.json: -------------------------------------------------------------------------------- 1 | { "metadata": 2 | { 3 | "ctf2json_version": "1.0", 4 | "created_at": 1316302348, 5 | "derived_from": "/lib/libc.so", 6 | "ctf_version": 2, 7 | "requested_types": [ "bar_t" ] 8 | }, 9 | "data": 10 | [ 11 | { "name": "int", "integer": { "length": 4, "signed": true } }, 12 | { "name": "bar_t", "typedef": "int" } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.oldwrite.js: -------------------------------------------------------------------------------- 1 | /* 2 | * A long overdue test to go through and verify that we can read and write 3 | * structures as well as nested structures. 4 | */ 5 | 6 | var mod_ctype = require('../../ctype.js'); 7 | var mod_assert = require('assert'); 8 | 9 | function test() 10 | { 11 | var parser, buf, data; 12 | parser = new mod_ctype.Parser({ 13 | endian: 'little' 14 | }); 15 | parser.typedef('point_t', [ 16 | { x: { type: 'uint8_t' } }, 17 | { y: { type: 'uint8_t' } } 18 | ]); 19 | buf = new Buffer(2); 20 | data = [ 21 | { point: { type: 'point_t', value: [ 23, 42 ] } } 22 | ]; 23 | parser.writeData(data, buf, 0); 24 | mod_assert.ok(buf[0] == 23); 25 | mod_assert.ok(buf[1] == 42); 26 | } 27 | 28 | test(); 29 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.structw.js: -------------------------------------------------------------------------------- 1 | /* 2 | * A long overdue test to go through and verify that we can read and write 3 | * structures as well as nested structures. 4 | */ 5 | 6 | var mod_ctype = require('../../ctype.js'); 7 | var mod_assert = require('assert'); 8 | 9 | function test() 10 | { 11 | var parser, buf, data; 12 | parser = new mod_ctype.Parser({ 13 | endian: 'little' 14 | }); 15 | parser.typedef('point_t', [ 16 | { x: { type: 'uint8_t' } }, 17 | { y: { type: 'uint8_t' } } 18 | ]); 19 | buf = new Buffer(2); 20 | data = [ 21 | { point: { type: 'point_t' } } 22 | ]; 23 | parser.writeData(data, buf, 0, [ [ 23, 42 ] ]); 24 | mod_assert.ok(buf[0] == 23); 25 | mod_assert.ok(buf[1] == 42); 26 | } 27 | 28 | test(); 29 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.writeStruct.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Test to verify that the offset is incremented when structures are written to. 3 | * Hopefully we will not regress issue #41 4 | */ 5 | 6 | var mod_ctype = require('../../ctype.js'); 7 | var mod_assert = require('assert'); 8 | 9 | function test() 10 | { 11 | var parser, buf, data; 12 | parser = new mod_ctype.Parser({ 13 | endian: 'little' 14 | }); 15 | parser.typedef('point_t', [ 16 | { x: { type: 'uint8_t' } }, 17 | { y: { type: 'uint8_t' } } 18 | ]); 19 | buf = new Buffer(4); 20 | data = [ 21 | { point1: { type: 'point_t' } }, 22 | { point2: { type: 'point_t' } } 23 | ]; 24 | parser.writeData(data, buf, 0, [ [ 23, 42 ], [ 91, 18 ] ]); 25 | mod_assert.ok(buf[0] == 23); 26 | mod_assert.ok(buf[1] == 42); 27 | mod_assert.ok(buf[2] == 91); 28 | mod_assert.ok(buf[3] == 18); 29 | } 30 | 31 | test(); 32 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/json-stringify-safe/stringify.js: -------------------------------------------------------------------------------- 1 | module.exports = stringify; 2 | 3 | function getSerialize (fn, decycle) { 4 | var seen = [], keys = []; 5 | decycle = decycle || function(key, value) { 6 | return '[Circular ' + getPath(value, seen, keys) + ']' 7 | }; 8 | return function(key, value) { 9 | var ret = value; 10 | if (typeof value === 'object' && value) { 11 | if (seen.indexOf(value) !== -1) 12 | ret = decycle(key, value); 13 | else { 14 | seen.push(value); 15 | keys.push(key); 16 | } 17 | } 18 | if (fn) ret = fn(key, ret); 19 | return ret; 20 | } 21 | } 22 | 23 | function getPath (value, seen, keys) { 24 | var index = seen.indexOf(value); 25 | var path = [ keys[index] ]; 26 | for (index--; index >= 0; index--) { 27 | if (seen[index][ path[0] ] === value) { 28 | value = seen[index]; 29 | path.unshift(keys[index]); 30 | } 31 | } 32 | return '~' + path.join('.'); 33 | } 34 | 35 | function stringify(obj, fn, spaces, decycle) { 36 | return JSON.stringify(obj, getSerialize(fn, decycle), spaces); 37 | } 38 | 39 | stringify.getSerialize = getSerialize; 40 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | build.js 3 | 4 | # OS generated files # 5 | ###################### 6 | .DS_Store* 7 | # Icon? 8 | ehthumbs.db 9 | Thumbs.db 10 | 11 | # Node.js # 12 | ########### 13 | node_modules 14 | npm-debug.log 15 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | matrix: 7 | allow_failures: 8 | - node_js: "0.11" 9 | fast_finish: true 10 | before_install: 11 | # remove build script deps before install 12 | - node -pe 'f="./package.json";p=require(f);d=p.devDependencies;for(k in d){if("co"===k.substr(0,2))delete d[k]}require("fs").writeFileSync(f,JSON.stringify(p,null,2))' 13 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: 3 | node --harmony-generators build.js 4 | 5 | test: 6 | node test/mime.js 7 | mocha --require should --reporter spec test/test.js 8 | 9 | .PHONY: build test 10 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mime-types", 3 | "description": "The ultimate javascript content-type utility.", 4 | "version": "0.1.0", 5 | "author": { 6 | "name": "Jonathan Ong", 7 | "email": "me@jongleberry.com", 8 | "url": "http://jongleberry.com", 9 | "twitter": "https://twitter.com/jongleberry" 10 | }, 11 | "repository": "expressjs/mime-types", 12 | "license": "MIT", 13 | "main": "lib/index.js", 14 | "scripts": ["lib/index.js"], 15 | "json": ["mime.json", "node.json", "custom.json"] 16 | } 17 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/lib/custom.json: -------------------------------------------------------------------------------- 1 | { 2 | "text/jade": [ 3 | "jade" 4 | ], 5 | "text/stylus": [ 6 | "stylus", 7 | "styl" 8 | ], 9 | "text/less": [ 10 | "less" 11 | ], 12 | "text/x-sass": [ 13 | "sass" 14 | ], 15 | "text/x-scss": [ 16 | "scss" 17 | ], 18 | "text/coffeescript": [ 19 | "coffee" 20 | ], 21 | "text/x-handlebars-template": [ 22 | "hbs" 23 | ], 24 | "text/jsx": [ 25 | "jsx" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/lib/node.json: -------------------------------------------------------------------------------- 1 | { 2 | "text/vtt": [ 3 | "vtt" 4 | ], 5 | "application/x-chrome-extension": [ 6 | "crx" 7 | ], 8 | "text/x-component": [ 9 | "htc" 10 | ], 11 | "text/cache-manifest": [ 12 | "manifest" 13 | ], 14 | "application/octet-stream": [ 15 | "buffer" 16 | ], 17 | "application/mp4": [ 18 | "m4p" 19 | ], 20 | "audio/mp4": [ 21 | "m4a" 22 | ], 23 | "video/MP2T": [ 24 | "ts" 25 | ], 26 | "application/x-web-app-manifest+json": [ 27 | "webapp" 28 | ], 29 | "text/x-lua": [ 30 | "lua" 31 | ], 32 | "application/x-lua-bytecode": [ 33 | "luac" 34 | ], 35 | "text/x-markdown": [ 36 | "markdown", 37 | "md", 38 | "mkd" 39 | ], 40 | "text/plain": [ 41 | "ini" 42 | ], 43 | "application/dash+xml": [ 44 | "mdp" 45 | ], 46 | "font/opentype": [ 47 | "otf" 48 | ], 49 | "application/json": [ 50 | "map" 51 | ], 52 | "application/xml": [ 53 | "xsd" 54 | ] 55 | } 56 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/node-uuid/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/node-uuid/LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010-2012 Robert Kieffer 2 | MIT License - http://opensource.org/licenses/mit-license.php 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/node-uuid/benchmark/benchmark-native.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test performance of native C UUID generation 3 | 4 | To Compile: cc -luuid benchmark-native.c -o benchmark-native 5 | */ 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | int main() { 13 | uuid_t myid; 14 | char buf[36+1]; 15 | int i; 16 | struct timeval t; 17 | double start, finish; 18 | 19 | gettimeofday(&t, NULL); 20 | start = t.tv_sec + t.tv_usec/1e6; 21 | 22 | int n = 2e5; 23 | for (i = 0; i < n; i++) { 24 | uuid_generate(myid); 25 | uuid_unparse(myid, buf); 26 | } 27 | 28 | gettimeofday(&t, NULL); 29 | finish = t.tv_sec + t.tv_usec/1e6; 30 | double dur = finish - start; 31 | 32 | printf("%d uuids/sec", (int)(n/dur)); 33 | return 0; 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/node-uuid/bin/uuid: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var path = require('path'); 4 | var uuid = require(path.join(__dirname, '..')); 5 | 6 | var arg = process.argv[2]; 7 | 8 | if ('--help' === arg) { 9 | console.log('\n USAGE: uuid [version] [options]\n\n'); 10 | console.log(' options:\n'); 11 | console.log(' --help Display this message and exit\n'); 12 | process.exit(0); 13 | } 14 | 15 | if (null == arg) { 16 | console.log(uuid()); 17 | process.exit(0); 18 | } 19 | 20 | if ('v1' !== arg && 'v4' !== arg) { 21 | console.error('Version must be RFC4122 version 1 or version 4, denoted as "v1" or "v4"'); 22 | process.exit(1); 23 | } 24 | 25 | console.log(uuid[arg]()); 26 | process.exit(0); 27 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/node-uuid/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-uuid", 3 | "repo": "broofa/node-uuid", 4 | "description": "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.", 5 | "version": "1.4.0", 6 | "author": "Robert Kieffer ", 7 | "contributors": [ 8 | {"name": "Christoph Tavan ", "github": "https://github.com/ctavan"} 9 | ], 10 | "keywords": ["uuid", "guid", "rfc4122"], 11 | "dependencies": {}, 12 | "development": {}, 13 | "main": "uuid.js", 14 | "scripts": [ 15 | "uuid.js" 16 | ], 17 | "license": "MIT" 18 | } -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/node-uuid/test/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/oauth-sign/README.md: -------------------------------------------------------------------------------- 1 | oauth-sign 2 | ========== 3 | 4 | OAuth 1 signing. Formerly a vendor lib in mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/.jshintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "node": true, 3 | 4 | "curly": true, 5 | "latedef": true, 6 | "quotmark": true, 7 | "undef": true, 8 | "unused": true, 9 | "trailing": true 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | complexity.md 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md). 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @node node_modules/lab/bin/lab -a code -L 3 | test-cov: 4 | @node node_modules/lab/bin/lab -a code -t 100 -L 5 | test-cov-html: 6 | @node node_modules/lab/bin/lab -a code -L -r html -o coverage.html 7 | 8 | .PHONY: test test-cov test-cov-html 9 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/'); 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/lib/index.js: -------------------------------------------------------------------------------- 1 | // Load modules 2 | 3 | var Stringify = require('./stringify'); 4 | var Parse = require('./parse'); 5 | 6 | 7 | // Declare internals 8 | 9 | var internals = {}; 10 | 11 | 12 | module.exports = { 13 | stringify: Stringify, 14 | parse: Parse 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/stringstream/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | 10 | pids 11 | logs 12 | results 13 | 14 | node_modules 15 | npm-debug.log -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/stringstream/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/stringstream/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2012 Michael Hart (michael.hart.au@gmail.com) 2 | 3 | This project is free software released under the MIT license: 4 | http://www.opensource.org/licenses/mit-license.php 5 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/stringstream/example.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs') 2 | var zlib = require('zlib') 3 | var strs = require('stringstream') 4 | 5 | var utf8Stream = fs.createReadStream('massiveLogFile.gz') 6 | .pipe(zlib.createGunzip()) 7 | .pipe(strs('utf8')) 8 | 9 | utf8Stream.pipe(process.stdout) 10 | 11 | // Stream from utf8 to hex to base64... Why not, ay. 12 | var hex64Stream = fs.createReadStream('myFile') 13 | .pipe(strs('utf8', 'hex')) 14 | .pipe(strs('hex', 'base64')) 15 | 16 | hex64Stream.pipe(process.stdout) 17 | 18 | // Deals with base64 correctly by aligning chunks 19 | var stream = fs.createReadStream('myFile').pipe(strs('base64')) 20 | 21 | var base64Str = '' 22 | 23 | stream.on('data', function(data) { base64Str += data }) 24 | stream.on('end', function() { 25 | console.log('My base64 encoded file is: ' + base64Str) // Wouldn't work with setEncoding() 26 | console.log('Original file is: ' + new Buffer(base64Str, 'base64')) 27 | }) 28 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .*.sw[nmop] 3 | npm-debug.log 4 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.11" 5 | matrix: 6 | fast_finish: true 7 | allow_failures: 8 | - node_js: 0.11 9 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/tunnel-agent/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "node": true, 3 | "asi": true, 4 | "laxcomma": true 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request/node_modules/tunnel-agent/README.md: -------------------------------------------------------------------------------- 1 | tunnel-agent 2 | ============ 3 | 4 | HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/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 | Yosef Dinerstein 7 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/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 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rimraf/README.md: -------------------------------------------------------------------------------- 1 | `rm -rf` for node. 2 | 3 | Install with `npm install rimraf`, or just drop rimraf.js somewhere. 4 | 5 | ## API 6 | 7 | `rimraf(f, callback)` 8 | 9 | The callback will be called with an error if there is one. Certain 10 | errors are handled for you: 11 | 12 | * Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of 13 | `opts.maxBusyTries` times before giving up. 14 | * `ENOENT` - If the file doesn't exist, rimraf will return 15 | successfully, since your desired outcome is already the case. 16 | 17 | ## rimraf.sync 18 | 19 | It can remove stuff synchronously, too. But that's not so good. Use 20 | the async API. It's better. 21 | 22 | ## CLI 23 | 24 | If installed with `npm install rimraf -g` it can be used as a global 25 | command `rimraf ` which is useful for cross platform support. 26 | 27 | ## mkdirp 28 | 29 | If you need to create a directory recursively, check out 30 | [mkdirp](https://github.com/substack/node-mkdirp). 31 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rimraf/bin.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var rimraf = require('./') 4 | 5 | var help = false 6 | var dashdash = false 7 | var args = process.argv.slice(2).filter(function(arg) { 8 | if (dashdash) 9 | return !!arg 10 | else if (arg === '--') 11 | dashdash = true 12 | else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/)) 13 | help = true 14 | else 15 | return !!arg 16 | }); 17 | 18 | if (help || args.length === 0) { 19 | // If they didn't ask for help, then this is not a "success" 20 | var log = help ? console.log : console.error 21 | log('Usage: rimraf ') 22 | log('') 23 | log(' Deletes all files and folders at "path" recursively.') 24 | log('') 25 | log('Options:') 26 | log('') 27 | log(' -h, --help Display this usage info') 28 | process.exit(help ? 0 : 1) 29 | } else { 30 | args.forEach(function(arg) { 31 | rimraf.sync(arg) 32 | }) 33 | } 34 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rimraf/test/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | code=0 4 | for i in test-*.js; do 5 | echo -n $i ... 6 | bash setup.sh 7 | node $i 8 | if [ -d target ]; then 9 | echo "fail" 10 | code=1 11 | else 12 | echo "pass" 13 | fi 14 | done 15 | rm -rf target 16 | exit $code 17 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/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 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/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 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rimraf/test/test-sync.js: -------------------------------------------------------------------------------- 1 | var rimraf = require("../rimraf") 2 | , path = require("path") 3 | rimraf.sync(path.join(__dirname, "target")) 4 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver/.npmignore: -------------------------------------------------------------------------------- 1 | # nada 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver/Makefile: -------------------------------------------------------------------------------- 1 | files = semver.browser.js \ 2 | semver.min.js \ 3 | semver.browser.js.gz \ 4 | semver.min.js.gz 5 | 6 | all: $(files) 7 | 8 | clean: 9 | rm -f $(files) 10 | 11 | semver.browser.js: head.js.txt semver.js foot.js.txt 12 | ( cat head.js.txt; \ 13 | cat semver.js | \ 14 | egrep -v '^ *\/\* nomin \*\/' | \ 15 | perl -pi -e 's/debug\([^\)]+\)//g'; \ 16 | cat foot.js.txt ) > semver.browser.js 17 | 18 | semver.min.js: semver.browser.js 19 | uglifyjs -m semver.min.js 20 | 21 | %.gz: % 22 | gzip --stdout -9 <$< >$@ 23 | 24 | .PHONY: all clean 25 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver/foot.js.txt: -------------------------------------------------------------------------------- 1 | 2 | })( 3 | typeof exports === 'object' ? exports : 4 | typeof define === 'function' && define.amd ? {} : 5 | semver = {} 6 | ); 7 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver/head.js.txt: -------------------------------------------------------------------------------- 1 | ;(function(exports) { 2 | 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver/semver.browser.js.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver/semver.browser.js.gz -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver/semver.min.js.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver/semver.min.js.gz -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver/test/amd.js: -------------------------------------------------------------------------------- 1 | var tap = require('tap'); 2 | var test = tap.test; 3 | 4 | test('amd', function(t) { 5 | global.define = define; 6 | define.amd = true; 7 | var defined = null; 8 | function define(stuff) { 9 | defined = stuff; 10 | } 11 | var fromRequire = require('../'); 12 | t.ok(defined, 'amd function called'); 13 | t.equal(fromRequire, defined, 'amd stuff same as require stuff'); 14 | t.end(); 15 | }); 16 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver/test/clean.js: -------------------------------------------------------------------------------- 1 | var tap = require('tap'); 2 | var test = tap.test; 3 | var semver = require('../semver.js'); 4 | var clean = semver.clean; 5 | 6 | test('\nclean tests', function(t) { 7 | // [range, version] 8 | // Version should be detectable despite extra characters 9 | [ 10 | ['1.2.3', '1.2.3'], 11 | [' 1.2.3 ', '1.2.3'], 12 | [' 1.2.3-4 ', '1.2.3-4'], 13 | [' 1.2.3-pre ', '1.2.3-pre'], 14 | [' =v1.2.3 ', '1.2.3'], 15 | ['v1.2.3', '1.2.3'], 16 | [' v1.2.3 ', '1.2.3'], 17 | ['\t1.2.3', '1.2.3'], 18 | ['>1.2.3', null], 19 | ['~1.2.3', null], 20 | ['<=1.2.3', null], 21 | ['1.2.x', null] 22 | ].forEach(function(tuple) { 23 | var range = tuple[0]; 24 | var version = tuple[1]; 25 | var msg = 'clean(' + range + ') = ' + version; 26 | t.equal(clean(range), version, msg); 27 | }); 28 | t.end(); 29 | }); 30 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver/test/no-module.js: -------------------------------------------------------------------------------- 1 | var tap = require('tap'); 2 | var test = tap.test; 3 | 4 | test('no module system', function(t) { 5 | var fs = require('fs'); 6 | var vm = require('vm'); 7 | var head = fs.readFileSync(require.resolve('../head.js.txt'), 'utf8'); 8 | var src = fs.readFileSync(require.resolve('../'), 'utf8'); 9 | var foot = fs.readFileSync(require.resolve('../foot.js.txt'), 'utf8'); 10 | vm.runInThisContext(head + src + foot, 'semver.js'); 11 | 12 | // just some basic poking to see if it did some stuff 13 | t.type(global.semver, 'object'); 14 | t.type(global.semver.SemVer, 'function'); 15 | t.type(global.semver.Range, 'function'); 16 | t.ok(global.semver.satisfies('1.2.3', '1.2')); 17 | t.end(); 18 | }); 19 | 20 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | 9 | pids 10 | logs 11 | results 12 | 13 | npm-debug.log 14 | node_modules 15 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/debug/index.js: -------------------------------------------------------------------------------- 1 | if ('undefined' == typeof window) { 2 | module.exports = require('./lib/debug'); 3 | } else { 4 | module.exports = require('./debug'); 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/.npmignore: -------------------------------------------------------------------------------- 1 | test/fixtures 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/README.md: -------------------------------------------------------------------------------- 1 | # fstream-ignore 2 | 3 | A fstream DirReader that filters out files that match globs in `.ignore` 4 | files throughout the tree, like how git ignores files based on a 5 | `.gitignore` file. 6 | 7 | Here's an example: 8 | 9 | ```javascript 10 | var Ignore = require("fstream-ignore") 11 | Ignore({ path: __dirname 12 | , ignoreFiles: [".ignore", ".gitignore"] 13 | }) 14 | .on("child", function (c) { 15 | console.error(c.path.substr(c.root.path.length + 1)) 16 | }) 17 | .pipe(tar.Pack()) 18 | .pipe(fs.createWriteStream("foo.tar")) 19 | ``` 20 | 21 | This will tar up the files in __dirname into `foo.tar`, ignoring 22 | anything matched by the globs in any .iginore or .gitignore file. 23 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/example/basic.js: -------------------------------------------------------------------------------- 1 | var Ignore = require("../") 2 | Ignore({ path: __dirname 3 | , ignoreFiles: [".ignore", ".gitignore"] 4 | }) 5 | .on("child", function (c) { 6 | console.error(c.path.substr(c.root.path.length + 1)) 7 | c.on("ignoreFile", onIgnoreFile) 8 | }) 9 | .on("ignoreFile", onIgnoreFile) 10 | 11 | function onIgnoreFile (e) { 12 | console.error("adding ignore file", e.path) 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | ctor.super_ = superCtor 5 | ctor.prototype = Object.create(superCtor.prototype, { 6 | constructor: { 7 | value: ctor, 8 | enumerable: false, 9 | writable: true, 10 | configurable: true 11 | } 12 | }); 13 | }; 14 | } else { 15 | // old school shim for old browsers 16 | module.exports = function inherits(ctor, superCtor) { 17 | ctor.super_ = superCtor 18 | var TempCtor = function () {} 19 | TempCtor.prototype = superCtor.prototype 20 | ctor.prototype = new TempCtor() 21 | ctor.prototype.constructor = ctor 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/inherits/test.js: -------------------------------------------------------------------------------- 1 | var inherits = require('./inherits.js') 2 | var assert = require('assert') 3 | 4 | function test(c) { 5 | assert(c.constructor === Child) 6 | assert(c.constructor.super_ === Parent) 7 | assert(Object.getPrototypeOf(c) === Child.prototype) 8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype) 9 | assert(c instanceof Child) 10 | assert(c instanceof Parent) 11 | } 12 | 13 | function Child() { 14 | Parent.call(this) 15 | test(this) 16 | } 17 | 18 | function Parent() {} 19 | 20 | inherits(Child, Parent) 21 | 22 | var c = new Child 23 | test(c) 24 | 25 | console.log('ok') 26 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/node_modules/lru-cache/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # Authors, sorted by whether or not they are me 2 | Isaac Z. Schlueter 3 | Brian Cottingham 4 | Carlos Brito Lage 5 | Jesse Dailey 6 | Kevin O'Hara 7 | Marco Rogers 8 | Mark Cavage 9 | Marko Mikulicic 10 | Nathan Rajlich 11 | Satheesh Natesan 12 | Trent Mick 13 | ashleybrener 14 | n4kz 15 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/node_modules/sigmund/test/basic.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test 2 | var sigmund = require('../sigmund.js') 3 | 4 | 5 | // occasionally there are duplicates 6 | // that's an acceptable edge-case. JSON.stringify and util.inspect 7 | // have some collision potential as well, though less, and collision 8 | // detection is expensive. 9 | var hash = '{abc/def/g{0h1i2{jkl' 10 | var obj1 = {a:'b',c:/def/,g:['h','i',{j:'',k:'l'}]} 11 | var obj2 = {a:'b',c:'/def/',g:['h','i','{jkl']} 12 | 13 | var obj3 = JSON.parse(JSON.stringify(obj1)) 14 | obj3.c = /def/ 15 | obj3.g[2].cycle = obj3 16 | var cycleHash = '{abc/def/g{0h1i2{jklcycle' 17 | 18 | test('basic', function (t) { 19 | t.equal(sigmund(obj1), hash) 20 | t.equal(sigmund(obj2), hash) 21 | t.equal(sigmund(obj3), cycleHash) 22 | t.end() 23 | }) 24 | 25 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/test/brace-expand.js: -------------------------------------------------------------------------------- 1 | var tap = require("tap") 2 | , minimatch = require("../") 3 | 4 | tap.test("brace expansion", function (t) { 5 | // [ pattern, [expanded] ] 6 | ; [ [ "a{b,c{d,e},{f,g}h}x{y,z}" 7 | , [ "abxy" 8 | , "abxz" 9 | , "acdxy" 10 | , "acdxz" 11 | , "acexy" 12 | , "acexz" 13 | , "afhxy" 14 | , "afhxz" 15 | , "aghxy" 16 | , "aghxz" ] ] 17 | , [ "a{1..5}b" 18 | , [ "a1b" 19 | , "a2b" 20 | , "a3b" 21 | , "a4b" 22 | , "a5b" ] ] 23 | , [ "a{b}c", ["a{b}c"] ] 24 | ].forEach(function (tc) { 25 | var p = tc[0] 26 | , expect = tc[1] 27 | t.equivalent(minimatch.braceExpand(p), expect, p) 28 | }) 29 | console.error("ending") 30 | t.end() 31 | }) 32 | 33 | 34 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/test/caching.js: -------------------------------------------------------------------------------- 1 | var Minimatch = require("../minimatch.js").Minimatch 2 | var tap = require("tap") 3 | tap.test("cache test", function (t) { 4 | var mm1 = new Minimatch("a?b") 5 | var mm2 = new Minimatch("a?b") 6 | t.equal(mm1, mm2, "should get the same object") 7 | // the lru should drop it after 100 entries 8 | for (var i = 0; i < 100; i ++) { 9 | new Minimatch("a"+i) 10 | } 11 | mm2 = new Minimatch("a?b") 12 | t.notEqual(mm1, mm2, "cache should have dropped") 13 | t.end() 14 | }) 15 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/test/extglob-ending-with-state-char.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test 2 | var minimatch = require('../') 3 | 4 | test('extglob ending with statechar', function(t) { 5 | t.notOk(minimatch('ax', 'a?(b*)')) 6 | t.ok(minimatch('ax', '?(a*|b)')) 7 | t.end() 8 | }) 9 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/test/.ignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | .*.swp 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/test/.npmignore: -------------------------------------------------------------------------------- 1 | */a 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/test/basic.js: -------------------------------------------------------------------------------- 1 | var IgnoreFile = require("../") 2 | 3 | // set the ignores just for this test 4 | var c = require("./common.js") 5 | c.ignores({ "a/.basic-ignore": ["b/", "aca"] }) 6 | 7 | // the files that we expect to not see 8 | var notAllowed = 9 | [ /^\/a\/b\/.*/ 10 | , /^\/a\/.*\/aca$/ ] 11 | 12 | 13 | require("tap").test("basic ignore rules", function (t) { 14 | t.pass("start") 15 | 16 | IgnoreFile({ path: __dirname + "/fixtures" 17 | , ignoreFiles: [".basic-ignore"] }) 18 | .on("ignoreFile", function (e) { 19 | console.error("ignore file!", e) 20 | }) 21 | .on("child", function (e) { 22 | var p = e.path.substr(e.root.path.length) 23 | notAllowed.forEach(function (na) { 24 | t.dissimilar(p, na) 25 | }) 26 | }) 27 | .on("close", t.end.bind(t)) 28 | }) 29 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/test/common.js: -------------------------------------------------------------------------------- 1 | if (require.main === module) { 2 | console.log("0..1") 3 | console.log("ok 1 trivial pass") 4 | return 5 | } 6 | 7 | var fs = require("fs") 8 | var path = require("path") 9 | var rimraf = require("rimraf") 10 | 11 | exports.ignores = ignores 12 | exports.writeIgnoreFile = writeIgnoreFile 13 | exports.writeIgnores = writeIgnores 14 | exports.clearIgnores = clearIgnores 15 | 16 | function writeIgnoreFile (file, rules) { 17 | file = path.resolve(__dirname, "fixtures", file) 18 | if (Array.isArray(rules)) { 19 | rules = rules.join("\n") 20 | } 21 | fs.writeFileSync(file, rules) 22 | console.error(file, rules) 23 | } 24 | 25 | function writeIgnores (set) { 26 | Object.keys(set).forEach(function (f) { 27 | writeIgnoreFile(f, set[f]) 28 | }) 29 | } 30 | 31 | function clearIgnores (set) { 32 | Object.keys(set).forEach(function (file) { 33 | fs.unlinkSync(path.resolve(__dirname, "fixtures", file)) 34 | }) 35 | } 36 | 37 | function ignores (set) { 38 | writeIgnores(set) 39 | process.on("exit", clearIgnores.bind(null, set)) 40 | } 41 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/test/unignore-child.js: -------------------------------------------------------------------------------- 1 | // ignore most things 2 | var IgnoreFile = require("../") 3 | 4 | // set the ignores just for this test 5 | var c = require("./common.js") 6 | c.ignores({ ".ignore": ["*", "a", "c", "!a/b/c/.abc", "!/c/b/a/cba"] }) 7 | 8 | // the only files we expect to see 9 | var expected = 10 | [ "/a/b/c/.abc" 11 | , "/a" 12 | , "/a/b" 13 | , "/a/b/c" 14 | , "/c/b/a/cba" 15 | , "/c" 16 | , "/c/b" 17 | , "/c/b/a" ] 18 | 19 | require("tap").test("basic ignore rules", function (t) { 20 | t.pass("start") 21 | 22 | IgnoreFile({ path: __dirname + "/fixtures" 23 | , ignoreFiles: [".ignore"] }) 24 | .on("child", function (e) { 25 | var p = e.path.substr(e.root.path.length) 26 | var i = expected.indexOf(p) 27 | if (i === -1) { 28 | t.fail("unexpected file found", {f: p}) 29 | } else { 30 | t.pass(p) 31 | expected.splice(i, 1) 32 | } 33 | }) 34 | .on("close", function () { 35 | t.notOk(expected.length, "all expected files should be seen") 36 | t.end() 37 | }) 38 | }) 39 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/test/zz-cleanup.js: -------------------------------------------------------------------------------- 1 | var tap = require("tap") 2 | , rimraf = require("rimraf") 3 | , path = require("path") 4 | 5 | tap.test("remove fixtures", function (t) { 6 | rimraf(path.resolve(__dirname, "fixtures"), function (er) { 7 | t.ifError(er, "remove fixtures") 8 | t.end() 9 | }) 10 | }) 11 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/.npmignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | node_modules/ 3 | examples/deep-copy/ 4 | examples/path/ 5 | examples/filter-copy/ 6 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/examples/symlink-write.js: -------------------------------------------------------------------------------- 1 | var fstream = require("../fstream.js") 2 | , closed = false 3 | 4 | fstream 5 | .Writer({ path: "path/to/symlink" 6 | , linkpath: "./file" 7 | , isSymbolicLink: true 8 | , mode: "0755" // octal strings supported 9 | }) 10 | .on("close", function () { 11 | closed = true 12 | var fs = require("fs") 13 | var s = fs.lstatSync("path/to/symlink") 14 | var isSym = s.isSymbolicLink() 15 | console.log((isSym?"":"not ") +"ok 1 should be symlink") 16 | var t = fs.readlinkSync("path/to/symlink") 17 | var isTarget = t === "./file" 18 | console.log((isTarget?"":"not ") +"ok 2 should link to ./file") 19 | }) 20 | .end() 21 | 22 | process.on("exit", function () { 23 | console.log((closed?"":"not ")+"ok 3 should be closed") 24 | }) 25 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/lib/get-type.js: -------------------------------------------------------------------------------- 1 | module.exports = getType 2 | 3 | function getType (st) { 4 | var types = 5 | [ "Directory" 6 | , "File" 7 | , "SymbolicLink" 8 | , "Link" // special for hardlinks from tarballs 9 | , "BlockDevice" 10 | , "CharacterDevice" 11 | , "FIFO" 12 | , "Socket" ] 13 | , type 14 | 15 | if (st.type && -1 !== types.indexOf(st.type)) { 16 | st[st.type] = true 17 | return st.type 18 | } 19 | 20 | for (var i = 0, l = types.length; i < l; i ++) { 21 | type = types[i] 22 | var is = st[type] || st["is" + type] 23 | if (typeof is === "function") is = is.call(st) 24 | if (is) { 25 | st[type] = true 26 | st.type = type 27 | return type 28 | } 29 | } 30 | 31 | return null 32 | } 33 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/graceful-fs/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/graceful-fs/fs.js: -------------------------------------------------------------------------------- 1 | // eeeeeevvvvviiiiiiillllll 2 | // more evil than monkey-patching the native builtin? 3 | // Not sure. 4 | 5 | var mod = require("module") 6 | var pre = '(function (exports, require, module, __filename, __dirname) { ' 7 | var post = '});' 8 | var src = pre + process.binding('natives').fs + post 9 | var vm = require('vm') 10 | var fn = vm.runInThisContext(src) 11 | return fn(exports, require, module, __filename, __dirname) 12 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/graceful-fs/test/open.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test 2 | var fs = require('../graceful-fs.js') 3 | 4 | test('graceful fs is monkeypatched fs', function (t) { 5 | t.equal(fs, require('../fs.js')) 6 | t.end() 7 | }) 8 | 9 | test('open an existing file works', function (t) { 10 | var fd = fs.openSync(__filename, 'r') 11 | fs.closeSync(fd) 12 | fs.open(__filename, 'r', function (er, fd) { 13 | if (er) throw er 14 | fs.close(fd, function (er) { 15 | if (er) throw er 16 | t.pass('works') 17 | t.end() 18 | }) 19 | }) 20 | }) 21 | 22 | test('open a non-existing file throws', function (t) { 23 | var er 24 | try { 25 | var fd = fs.openSync('this file does not exist', 'r') 26 | } catch (x) { 27 | er = x 28 | } 29 | t.ok(er, 'should throw') 30 | t.notOk(fd, 'should not get an fd') 31 | t.equal(er.code, 'ENOENT') 32 | 33 | fs.open('neither does this file', 'r', function (er, fd) { 34 | t.ok(er, 'should throw') 35 | t.notOk(fd, 'should not get an fd') 36 | t.equal(er.code, 'ENOENT') 37 | t.end() 38 | }) 39 | }) 40 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/graceful-fs/test/readdir-sort.js: -------------------------------------------------------------------------------- 1 | var test = require("tap").test 2 | var fs = require("../fs.js") 3 | 4 | var readdir = fs.readdir 5 | fs.readdir = function(path, cb) { 6 | process.nextTick(function() { 7 | cb(null, ["b", "z", "a"]) 8 | }) 9 | } 10 | 11 | var g = require("../") 12 | 13 | test("readdir reorder", function (t) { 14 | g.readdir("whatevers", function (er, files) { 15 | if (er) 16 | throw er 17 | t.same(files, [ "a", "b", "z" ]) 18 | t.end() 19 | }) 20 | }) 21 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/graceful-fs/test/write-then-read.js: -------------------------------------------------------------------------------- 1 | var fs = require('../'); 2 | var rimraf = require('rimraf'); 3 | var mkdirp = require('mkdirp'); 4 | var test = require('tap').test; 5 | var p = require('path').resolve(__dirname, 'files'); 6 | 7 | // Make sure to reserve the stderr fd 8 | process.stderr.write(''); 9 | 10 | var num = 4097; 11 | var paths = new Array(num); 12 | 13 | test('make files', function (t) { 14 | rimraf.sync(p); 15 | mkdirp.sync(p); 16 | 17 | for (var i = 0; i < num; ++i) { 18 | paths[i] = 'files/file-' + i; 19 | fs.writeFileSync(paths[i], 'content'); 20 | } 21 | 22 | t.end(); 23 | }) 24 | 25 | test('read files', function (t) { 26 | // now read them 27 | var done = 0; 28 | for (var i = 0; i < num; ++i) { 29 | fs.readFile(paths[i], function(err, data) { 30 | if (err) 31 | throw err; 32 | 33 | ++done; 34 | if (done === num) { 35 | t.pass('success'); 36 | t.end() 37 | } 38 | }); 39 | } 40 | }); 41 | 42 | test('cleanup', function (t) { 43 | rimraf.sync(p); 44 | t.end(); 45 | }); 46 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | ctor.super_ = superCtor 5 | ctor.prototype = Object.create(superCtor.prototype, { 6 | constructor: { 7 | value: ctor, 8 | enumerable: false, 9 | writable: true, 10 | configurable: true 11 | } 12 | }); 13 | }; 14 | } else { 15 | // old school shim for old browsers 16 | module.exports = function inherits(ctor, superCtor) { 17 | ctor.super_ = superCtor 18 | var TempCtor = function () {} 19 | TempCtor.prototype = superCtor.prototype 20 | ctor.prototype = new TempCtor() 21 | ctor.prototype.constructor = ctor 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/inherits/test.js: -------------------------------------------------------------------------------- 1 | var inherits = require('./inherits.js') 2 | var assert = require('assert') 3 | 4 | function test(c) { 5 | assert(c.constructor === Child) 6 | assert(c.constructor.super_ === Parent) 7 | assert(Object.getPrototypeOf(c) === Child.prototype) 8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype) 9 | assert(c instanceof Child) 10 | assert(c instanceof Parent) 11 | } 12 | 13 | function Child() { 14 | Parent.call(this) 15 | test(this) 16 | } 17 | 18 | function Parent() {} 19 | 20 | inherits(Child, Parent) 21 | 22 | var c = new Child 23 | test(c) 24 | 25 | console.log('ok') 26 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/graceful-fs/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/once/README.md: -------------------------------------------------------------------------------- 1 | # once 2 | 3 | Only call a function once. 4 | 5 | ## usage 6 | 7 | ```javascript 8 | var once = require('once') 9 | 10 | function load (file, cb) { 11 | cb = once(cb) 12 | loader.load('file') 13 | loader.once('load', cb) 14 | loader.once('error', cb) 15 | } 16 | ``` 17 | 18 | Or add to the Function.prototype in a responsible way: 19 | 20 | ```javascript 21 | // only has to be done once 22 | require('once').proto() 23 | 24 | function load (file, cb) { 25 | cb = cb.once() 26 | loader.load('file') 27 | loader.once('load', cb) 28 | loader.once('error', cb) 29 | } 30 | ``` 31 | 32 | Ironically, the prototype feature makes this module twice as 33 | complicated as necessary. 34 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/once/once.js: -------------------------------------------------------------------------------- 1 | module.exports = once 2 | 3 | once.proto = once(function () { 4 | Object.defineProperty(Function.prototype, 'once', { 5 | value: function () { 6 | return once(this) 7 | }, 8 | configurable: true 9 | }) 10 | }) 11 | 12 | function once (fn) { 13 | var called = false 14 | return function () { 15 | if (called) return 16 | called = true 17 | return fn.apply(this, arguments) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/once/test/once.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test 2 | var once = require('../once.js') 3 | 4 | test('once', function (t) { 5 | var f = 0 6 | var foo = once(function (g) { 7 | t.equal(f, 0) 8 | f ++ 9 | return f + g + this 10 | }) 11 | for (var i = 0; i < 1E3; i++) { 12 | t.same(f, i === 0 ? 0 : 1) 13 | var g = foo.call(1, 1) 14 | t.same(g, i === 0 ? 3 : undefined) 15 | t.same(f, 1) 16 | } 17 | t.end() 18 | }) 19 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | ctor.super_ = superCtor 5 | ctor.prototype = Object.create(superCtor.prototype, { 6 | constructor: { 7 | value: ctor, 8 | enumerable: false, 9 | writable: true, 10 | configurable: true 11 | } 12 | }); 13 | }; 14 | } else { 15 | // old school shim for old browsers 16 | module.exports = function inherits(ctor, superCtor) { 17 | ctor.super_ = superCtor 18 | var TempCtor = function () {} 19 | TempCtor.prototype = superCtor.prototype 20 | ctor.prototype = new TempCtor() 21 | ctor.prototype.constructor = ctor 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/test.js: -------------------------------------------------------------------------------- 1 | var inherits = require('./inherits.js') 2 | var assert = require('assert') 3 | 4 | function test(c) { 5 | assert(c.constructor === Child) 6 | assert(c.constructor.super_ === Parent) 7 | assert(Object.getPrototypeOf(c) === Child.prototype) 8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype) 9 | assert(c instanceof Child) 10 | assert(c instanceof Parent) 11 | } 12 | 13 | function Child() { 14 | Parent.call(this) 15 | test(this) 16 | } 17 | 18 | function Parent() {} 19 | 20 | inherits(Child, Parent) 21 | 22 | var c = new Child 23 | test(c) 24 | 25 | console.log('ok') 26 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/string_decoder/README.md: -------------------------------------------------------------------------------- 1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core 2 | 3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details. 4 | 5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.** 6 | 7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version. -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | var Stream = require('stream'); // hack to fix a circular dependency issue when used with browserify 2 | exports = module.exports = require('./lib/_stream_readable.js'); 3 | exports.Stream = Stream; 4 | exports.Readable = exports; 5 | exports.Writable = require('./lib/_stream_writable.js'); 6 | exports.Duplex = require('./lib/_stream_duplex.js'); 7 | exports.Transform = require('./lib/_stream_transform.js'); 8 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 9 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/.npmignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | node_modules 3 | examples/extract/ 4 | test/tmp/ 5 | test/fixtures/ 6 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/examples/extracter.js: -------------------------------------------------------------------------------- 1 | var tar = require("../tar.js") 2 | , fs = require("fs") 3 | 4 | fs.createReadStream(__dirname + "/../test/fixtures/c.tar") 5 | .pipe(tar.Extract({ path: __dirname + "/extract" })) 6 | .on("error", function (er) { 7 | console.error("error here") 8 | }) 9 | .on("end", function () { 10 | console.error("done") 11 | }) 12 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/examples/packer.js: -------------------------------------------------------------------------------- 1 | var tar = require("../tar.js") 2 | , fstream = require("fstream") 3 | , fs = require("fs") 4 | 5 | var dir_destination = fs.createWriteStream('dir.tar') 6 | 7 | // This must be a "directory" 8 | fstream.Reader({ path: __dirname, type: "Directory" }) 9 | .pipe(tar.Pack({ noProprietary: true })) 10 | .pipe(dir_destination) -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/lib/buffer-entry.js: -------------------------------------------------------------------------------- 1 | // just like the Entry class, but it buffers the contents 2 | // 3 | // XXX It would be good to set a maximum BufferEntry filesize, 4 | // since it eats up memory. In normal operation, 5 | // these are only for long filenames or link names, which are 6 | // rarely very big. 7 | 8 | module.exports = BufferEntry 9 | 10 | var inherits = require("inherits") 11 | , Entry = require("./entry.js") 12 | 13 | function BufferEntry () { 14 | Entry.apply(this, arguments) 15 | this._buffer = new Buffer(this.props.size) 16 | this._offset = 0 17 | this.body = "" 18 | this.on("end", function () { 19 | this.body = this._buffer.toString().slice(0, -1) 20 | }) 21 | } 22 | 23 | inherits(BufferEntry, Entry) 24 | 25 | // collect the bytes as they come in. 26 | BufferEntry.prototype.write = function (c) { 27 | c.copy(this._buffer, this._offset) 28 | this._offset += c.length 29 | Entry.prototype.write.call(this, c) 30 | } 31 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/lib/global-header-writer.js: -------------------------------------------------------------------------------- 1 | module.exports = GlobalHeaderWriter 2 | 3 | var ExtendedHeaderWriter = require("./extended-header-writer.js") 4 | , inherits = require("inherits") 5 | 6 | inherits(GlobalHeaderWriter, ExtendedHeaderWriter) 7 | 8 | function GlobalHeaderWriter (props) { 9 | if (!(this instanceof GlobalHeaderWriter)) { 10 | return new GlobalHeaderWriter(props) 11 | } 12 | ExtendedHeaderWriter.call(this, props) 13 | this.props.type = "g" 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/node_modules/block-stream/README.md: -------------------------------------------------------------------------------- 1 | # block-stream 2 | 3 | A stream of blocks. 4 | 5 | Write data into it, and it'll output data in buffer blocks the size you 6 | specify, padding with zeroes if necessary. 7 | 8 | ```javascript 9 | var block = new BlockStream(512) 10 | fs.createReadStream("some-file").pipe(block) 11 | block.pipe(fs.createWriteStream("block-file")) 12 | ``` 13 | 14 | When `.end()` or `.flush()` is called, it'll pad the block with zeroes. 15 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/node_modules/block-stream/test/basic.js: -------------------------------------------------------------------------------- 1 | var tap = require("tap") 2 | , BlockStream = require("../block-stream.js") 3 | 4 | tap.test("basic test", function (t) { 5 | var b = new BlockStream(16) 6 | var fs = require("fs") 7 | var fstr = fs.createReadStream(__filename, {encoding: "utf8"}) 8 | fstr.pipe(b) 9 | 10 | var stat 11 | t.doesNotThrow(function () { 12 | stat = fs.statSync(__filename) 13 | }, "stat should not throw") 14 | 15 | var totalBytes = 0 16 | b.on("data", function (c) { 17 | t.equal(c.length, 16, "chunks should be 16 bytes long") 18 | t.type(c, Buffer, "chunks should be buffer objects") 19 | totalBytes += c.length 20 | }) 21 | b.on("end", function () { 22 | var expectedBytes = stat.size + (16 - stat.size % 16) 23 | t.equal(totalBytes, expectedBytes, "Should be multiple of 16") 24 | t.end() 25 | }) 26 | 27 | }) 28 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | ctor.super_ = superCtor 5 | ctor.prototype = Object.create(superCtor.prototype, { 6 | constructor: { 7 | value: ctor, 8 | enumerable: false, 9 | writable: true, 10 | configurable: true 11 | } 12 | }); 13 | }; 14 | } else { 15 | // old school shim for old browsers 16 | module.exports = function inherits(ctor, superCtor) { 17 | ctor.super_ = superCtor 18 | var TempCtor = function () {} 19 | TempCtor.prototype = superCtor.prototype 20 | ctor.prototype = new TempCtor() 21 | ctor.prototype.constructor = ctor 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/node_modules/inherits/test.js: -------------------------------------------------------------------------------- 1 | var inherits = require('./inherits.js') 2 | var assert = require('assert') 3 | 4 | function test(c) { 5 | assert(c.constructor === Child) 6 | assert(c.constructor.super_ === Parent) 7 | assert(Object.getPrototypeOf(c) === Child.prototype) 8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype) 9 | assert(c instanceof Child) 10 | assert(c instanceof Parent) 11 | } 12 | 13 | function Child() { 14 | Parent.call(this) 15 | test(this) 16 | } 17 | 18 | function Parent() {} 19 | 20 | inherits(Child, Parent) 21 | 22 | var c = new Child 23 | test(c) 24 | 25 | console.log('ok') 26 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/test/fixtures.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/test/fixtures.tgz -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/test/zz-cleanup.js: -------------------------------------------------------------------------------- 1 | // clean up the fixtures 2 | 3 | var tap = require("tap") 4 | , rimraf = require("rimraf") 5 | , test = tap.test 6 | , path = require("path") 7 | 8 | test("clean fixtures", function (t) { 9 | rimraf(path.resolve(__dirname, "fixtures"), function (er) { 10 | t.ifError(er, "rimraf ./fixtures/") 11 | t.end() 12 | }) 13 | }) 14 | 15 | test("clean tmp", function (t) { 16 | rimraf(path.resolve(__dirname, "tmp"), function (er) { 17 | t.ifError(er, "rimraf ./tmp/") 18 | t.end() 19 | }) 20 | }) 21 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/uid-number/README.md: -------------------------------------------------------------------------------- 1 | Use this module to convert a username/groupname to a uid/gid number. 2 | 3 | Usage: 4 | 5 | ``` 6 | npm install uid-number 7 | ``` 8 | 9 | Then, in your node program: 10 | 11 | ```javascript 12 | var uidNumber = require("uid-number") 13 | uidNumber("isaacs", function (er, uid, gid) { 14 | // gid is null because we didn't ask for a group name 15 | // uid === 24561 because that's my number. 16 | }) 17 | ``` 18 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/uid-number/get-uid-gid.js: -------------------------------------------------------------------------------- 1 | if (module !== require.main) { 2 | throw new Error("This file should not be loaded with require()") 3 | } 4 | 5 | if (!process.getuid || !process.getgid) { 6 | throw new Error("this file should not be called without uid/gid support") 7 | } 8 | 9 | var argv = process.argv.slice(2) 10 | , user = argv[0] || process.getuid() 11 | , group = argv[1] || process.getgid() 12 | 13 | if (!isNaN(user)) user = +user 14 | if (!isNaN(group)) group = +group 15 | 16 | console.error([user, group]) 17 | 18 | try { 19 | process.setgid(group) 20 | process.setuid(user) 21 | console.log(JSON.stringify({uid:+process.getuid(), gid:+process.getgid()})) 22 | } catch (ex) { 23 | console.log(JSON.stringify({error:ex.message,errno:ex.errno})) 24 | } 25 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/test/fixtures/packed-file.txt: -------------------------------------------------------------------------------- 1 | bar -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/test/fixtures/packed.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basenetwork/base.server-node/8aa9d3c1fadd34d2e4a97401bbad5add7717f4a3/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/test/fixtures/packed.tar.gz -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/test/fixtures/to-pack/bar.txt: -------------------------------------------------------------------------------- 1 | baz -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack/test/fixtures/to-pack/foo.txt: -------------------------------------------------------------------------------- 1 | bar -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar/.npmignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | node_modules 3 | examples/extract/ 4 | test/tmp/ 5 | test/fixtures/ 6 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.10 4 | - 0.11 5 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar/examples/extracter.js: -------------------------------------------------------------------------------- 1 | var tar = require("../tar.js") 2 | , fs = require("fs") 3 | 4 | 5 | function onError(err) { 6 | console.error('An error occurred:', err) 7 | } 8 | 9 | function onEnd() { 10 | console.log('Extracted!') 11 | } 12 | 13 | var extractor = tar.Extract({path: __dirname + "/extract"}) 14 | .on('error', onError) 15 | .on('end', onEnd); 16 | 17 | fs.createReadStream(__dirname + "/../test/fixtures/c.tar") 18 | .on('error', onError) 19 | .pipe(extractor); 20 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar/examples/packer.js: -------------------------------------------------------------------------------- 1 | var tar = require("../tar.js") 2 | , fstream = require("fstream") 3 | , fs = require("fs") 4 | 5 | var dirDest = fs.createWriteStream('dir.tar') 6 | 7 | 8 | function onError(err) { 9 | console.error('An error occurred:', err) 10 | } 11 | 12 | function onEnd() { 13 | console.log('Packed!') 14 | } 15 | 16 | var packer = tar.Pack({ noProprietary: true }) 17 | .on('error', onError) 18 | .on('end', onEnd); 19 | 20 | // This must be a "directory" 21 | fstream.Reader({ path: __dirname, type: "Directory" }) 22 | .on('error', onError) 23 | .pipe(packer) 24 | .pipe(dirDest) 25 | -------------------------------------------------------------------------------- /node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar/examples/reader.js: -------------------------------------------------------------------------------- 1 | var tar = require("../tar.js") 2 | , fs = require("fs") 3 | 4 | fs.createReadStream(__dirname + "/../test/fixtures/c.tar") 5 | .pipe(tar.Parse()) 6 | .on("extendedHeader", function (e) { 7 | console.error("extended pax header", e.props) 8 | e.on("end", function () { 9 | console.error("extended pax fields:", e.fields) 10 | }) 11 | }) 12 | .on("ignoredEntry", function (e) { 13 | console.error("ignoredEntry?!?", e.props) 14 | }) 15 | .on("longLinkpath", function (e) { 16 | console.error("longLinkpath entry", e.props) 17 | e.on("end", function () { 18 | console.error("value=%j", e.body.toString()) 19 | }) 20 | }) 21 | .on("longPath", function (e) { 22 | console.error("longPath entry", e.props) 23 | e.on("end", function () { 24 | console.error("value=%j", e.body.toString()) 25 | }) 26 | }) 27 | .on("entry", function (e) { 28 | console.error("entry", e.props) 29 | e.on("data", function (c) { 30 | console.error(" >>>" + c.toString().replace(/\n/g, "\\n")) 31 | }) 32 | e.on("end", function () { 33 | console.error(" <<