fsevents 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fsevents might be problematic. Click here for more details.
- package/Readme.md +12 -13
- package/node_modules/ansi/package.json +1 -2
- package/node_modules/are-we-there-yet/package.json +1 -2
- package/node_modules/asn1/.travis.yml +4 -0
- package/node_modules/asn1/lib/ber/reader.js +27 -33
- package/node_modules/asn1/lib/ber/writer.js +10 -11
- package/node_modules/asn1/package.json +21 -19
- package/node_modules/asn1/tst/ber/reader.test.js +36 -0
- package/node_modules/asn1/tst/ber/writer.test.js +74 -0
- package/node_modules/assert-plus/package.json +1 -0
- package/node_modules/{ctype → bl/node_modules/readable-stream/node_modules/core-util-is}/LICENSE +1 -6
- package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +11 -11
- package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/package.json +17 -12
- package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/test.js +68 -0
- package/node_modules/boom/package.json +1 -1
- package/node_modules/commander/package.json +1 -1
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/lib/util.js +11 -11
- package/node_modules/core-util-is/package.json +17 -12
- package/node_modules/core-util-is/test.js +68 -0
- package/node_modules/dashdash/README.md +508 -0
- package/node_modules/dashdash/lib/dashdash.js +813 -0
- package/node_modules/dashdash/package.json +87 -0
- package/node_modules/deep-extend/LICENSE +1 -1
- package/node_modules/deep-extend/README.md +89 -52
- package/node_modules/deep-extend/index.js +1 -90
- package/node_modules/deep-extend/lib/deep-extend.js +144 -0
- package/node_modules/deep-extend/package.json +47 -16
- package/node_modules/deep-extend/test/index.spec.js +168 -5
- package/node_modules/delegates/package.json +1 -2
- package/node_modules/ecc-jsbn/.npmignore +15 -0
- package/node_modules/ecc-jsbn/LICENSE +21 -0
- package/node_modules/ecc-jsbn/README.md +8 -0
- package/node_modules/ecc-jsbn/index.js +57 -0
- package/node_modules/ecc-jsbn/lib/LICENSE-jsbn +40 -0
- package/node_modules/ecc-jsbn/lib/ec.js +561 -0
- package/node_modules/ecc-jsbn/lib/sec.js +170 -0
- package/node_modules/ecc-jsbn/package.json +63 -0
- package/node_modules/ecc-jsbn/test.js +14 -0
- package/node_modules/extsprintf/.gitmodules +6 -0
- package/node_modules/{path-is-absolute/license → extsprintf/LICENSE} +2 -4
- package/node_modules/extsprintf/Makefile +23 -0
- package/node_modules/extsprintf/Makefile.deps +39 -0
- package/node_modules/extsprintf/Makefile.targ +285 -0
- package/node_modules/extsprintf/README.md +39 -0
- package/node_modules/extsprintf/examples/simple.js +2 -0
- package/node_modules/{ctype/tools/jsl.conf → extsprintf/jsl.node.conf} +71 -63
- package/node_modules/extsprintf/lib/extsprintf.js +166 -0
- package/node_modules/extsprintf/package.json +48 -0
- package/node_modules/fstream/package.json +1 -2
- package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/package.json +4 -22
- package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/package.json +3 -21
- package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/package.json +4 -23
- package/node_modules/fstream-ignore/node_modules/minimatch/package.json +4 -24
- package/node_modules/fstream-ignore/package.json +1 -2
- package/node_modules/gauge/package.json +1 -2
- package/node_modules/har-validator/package.json +15 -15
- package/node_modules/has-unicode/package.json +1 -2
- package/node_modules/hawk/dist/client.js +340 -0
- package/node_modules/hawk/lib/browser.js +14 -20
- package/node_modules/hawk/package.json +10 -10
- package/node_modules/hawk/test/browser.js +134 -101
- package/node_modules/hawk/test/index.js +61 -61
- package/node_modules/hawk/test/server.js +72 -84
- package/node_modules/hawk/test/uri.js +52 -63
- package/node_modules/http-signature/CHANGES.md +39 -0
- package/node_modules/http-signature/http_signing.md +16 -17
- package/node_modules/http-signature/lib/index.js +6 -4
- package/node_modules/http-signature/lib/parser.js +43 -29
- package/node_modules/http-signature/lib/signer.js +290 -74
- package/node_modules/http-signature/lib/utils.js +112 -0
- package/node_modules/http-signature/lib/verify.js +47 -15
- package/node_modules/http-signature/package.json +20 -14
- package/node_modules/is-my-json-valid/index.js +16 -14
- package/node_modules/is-my-json-valid/package.json +16 -12
- package/node_modules/is-typedarray/LICENSE.md +18 -0
- package/node_modules/is-typedarray/README.md +16 -0
- package/node_modules/is-typedarray/index.js +41 -0
- package/node_modules/is-typedarray/package.json +63 -0
- package/node_modules/is-typedarray/test.js +34 -0
- package/node_modules/jodid25519/.npmignore +11 -0
- package/node_modules/jodid25519/.travis.yml +7 -0
- package/node_modules/jodid25519/AUTHORS.md +3 -0
- package/node_modules/jodid25519/LICENSE +23 -0
- package/node_modules/jodid25519/README.md +51 -0
- package/node_modules/jodid25519/almond.0 +42 -0
- package/node_modules/jodid25519/almond.1 +13 -0
- package/node_modules/jodid25519/index.js +35 -0
- package/node_modules/jodid25519/jsdoc.json +19 -0
- package/node_modules/jodid25519/lib/core.js +481 -0
- package/node_modules/jodid25519/lib/curve255.js +221 -0
- package/node_modules/jodid25519/lib/dh.js +111 -0
- package/node_modules/jodid25519/lib/eddsa.js +573 -0
- package/node_modules/jodid25519/lib/utils.js +198 -0
- package/node_modules/jodid25519/package.json +77 -0
- package/node_modules/jsbn/.npmignore +2 -0
- package/node_modules/jsbn/LICENSE +40 -0
- package/node_modules/jsbn/README.md +175 -0
- package/node_modules/jsbn/example.html +12 -0
- package/node_modules/jsbn/example.js +3 -0
- package/node_modules/jsbn/index.js +1358 -0
- package/node_modules/jsbn/package.json +60 -0
- package/node_modules/json-schema/README.md +5 -0
- package/node_modules/json-schema/draft-00/hyper-schema +68 -0
- package/node_modules/json-schema/draft-00/json-ref +26 -0
- package/node_modules/json-schema/draft-00/links +33 -0
- package/node_modules/json-schema/draft-00/schema +155 -0
- package/node_modules/json-schema/draft-01/hyper-schema +68 -0
- package/node_modules/json-schema/draft-01/json-ref +26 -0
- package/node_modules/json-schema/draft-01/links +33 -0
- package/node_modules/json-schema/draft-01/schema +155 -0
- package/node_modules/json-schema/draft-02/hyper-schema +68 -0
- package/node_modules/json-schema/draft-02/json-ref +26 -0
- package/node_modules/json-schema/draft-02/links +35 -0
- package/node_modules/json-schema/draft-02/schema +166 -0
- package/node_modules/json-schema/draft-03/examples/address +20 -0
- package/node_modules/json-schema/draft-03/examples/calendar +53 -0
- package/node_modules/json-schema/draft-03/examples/card +105 -0
- package/node_modules/json-schema/draft-03/examples/geo +8 -0
- package/node_modules/json-schema/draft-03/examples/interfaces +23 -0
- package/node_modules/json-schema/draft-03/hyper-schema +60 -0
- package/node_modules/json-schema/draft-03/json-ref +26 -0
- package/node_modules/json-schema/draft-03/links +35 -0
- package/node_modules/json-schema/draft-03/schema +174 -0
- package/node_modules/json-schema/draft-04/hyper-schema +60 -0
- package/node_modules/json-schema/draft-04/links +41 -0
- package/node_modules/json-schema/draft-04/schema +189 -0
- package/node_modules/json-schema/draft-zyp-json-schema-03.xml +1120 -0
- package/node_modules/json-schema/draft-zyp-json-schema-04.xml +1072 -0
- package/node_modules/json-schema/lib/links.js +52 -0
- package/node_modules/json-schema/lib/validate.js +260 -0
- package/node_modules/json-schema/package.json +67 -0
- package/node_modules/json-schema/test/tests.js +95 -0
- package/node_modules/jsprim/CHANGES.md +30 -0
- package/node_modules/jsprim/LICENSE +19 -0
- package/node_modules/jsprim/README.md +228 -0
- package/node_modules/jsprim/lib/jsprim.js +478 -0
- package/node_modules/jsprim/package.json +54 -0
- package/node_modules/lodash._basetostring/package.json +1 -2
- package/node_modules/lodash._createpadding/package.json +1 -2
- package/node_modules/lodash.pad/package.json +1 -2
- package/node_modules/lodash.padleft/package.json +1 -2
- package/node_modules/lodash.padright/package.json +1 -2
- package/node_modules/lodash.repeat/package.json +1 -2
- package/node_modules/node-pre-gyp/CHANGELOG.md +8 -0
- package/node_modules/node-pre-gyp/README.md +570 -0
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +4 -0
- package/node_modules/node-pre-gyp/node_modules/nopt/lib/nopt.js +2 -1
- package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/package.json +30 -37
- package/node_modules/node-pre-gyp/node_modules/nopt/package.json +37 -57
- package/node_modules/node-pre-gyp/node_modules/nopt/test/basic.js +22 -0
- package/node_modules/node-pre-gyp/package.json +17 -17
- package/node_modules/node-uuid/.npmignore +2 -0
- package/node_modules/node-uuid/README.md +12 -1
- package/node_modules/node-uuid/bower.json +1 -1
- package/node_modules/node-uuid/component.json +11 -4
- package/node_modules/node-uuid/package.json +25 -12
- package/node_modules/node-uuid/test/test.js +3 -0
- package/node_modules/node-uuid/uuid.js +70 -45
- package/node_modules/npmlog/.travis.yml +14 -0
- package/node_modules/npmlog/log.js +3 -0
- package/node_modules/npmlog/package.json +23 -20
- package/node_modules/npmlog/test/basic.js +8 -1
- package/node_modules/once/package.json +2 -3
- package/node_modules/pinkie/index.js +23 -7
- package/node_modules/pinkie/package.json +22 -15
- package/node_modules/pinkie/readme.md +17 -9
- package/node_modules/pinkie-promise/package.json +16 -14
- package/node_modules/pinkie-promise/readme.md +5 -3
- package/node_modules/rc/README.md +1 -1
- package/node_modules/rc/index.js +1 -1
- package/node_modules/rc/node_modules/minimist/package.json +1 -1
- package/node_modules/rc/package.json +12 -12
- package/node_modules/request/.eslintrc +1 -1
- package/node_modules/request/.travis.yml +4 -4
- package/node_modules/request/CHANGELOG.md +25 -0
- package/node_modules/request/README.md +12 -13
- package/node_modules/request/lib/har.js +84 -75
- package/node_modules/request/lib/redirect.js +2 -3
- package/node_modules/request/lib/tunnel.js +13 -18
- package/node_modules/request/package.json +17 -16
- package/node_modules/request/request.js +16 -59
- package/node_modules/rimraf/README.md +7 -2
- package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/package.json +5 -25
- package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/package.json +5 -25
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +16 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +42 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +23 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +58 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +25 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +3 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +122 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +8 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +191 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +2 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +3 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +6 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +80 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +5 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +38 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +79 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +56 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +13 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +90 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +81 -0
- package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/package.json +3 -21
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +36 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +58 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +51 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +70 -0
- package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/package.json +4 -22
- package/node_modules/rimraf/node_modules/glob/package.json +2 -20
- package/node_modules/rimraf/package.json +10 -10
- package/node_modules/semver/README.md +25 -1
- package/node_modules/semver/package.json +10 -10
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/semver.js +0 -12
- package/node_modules/sshpk/.npmignore +8 -0
- package/node_modules/sshpk/.travis.yml +11 -0
- package/node_modules/sshpk/LICENSE +18 -0
- package/node_modules/sshpk/README.md +436 -0
- package/node_modules/sshpk/bin/sshpk-conv +183 -0
- package/node_modules/sshpk/lib/algs.js +168 -0
- package/node_modules/sshpk/lib/dhe.js +312 -0
- package/node_modules/sshpk/lib/ed-compat.js +94 -0
- package/node_modules/sshpk/lib/errors.js +58 -0
- package/node_modules/sshpk/lib/fingerprint.js +140 -0
- package/node_modules/sshpk/lib/formats/auto.js +73 -0
- package/node_modules/sshpk/lib/formats/pem.js +152 -0
- package/node_modules/sshpk/lib/formats/pkcs1.js +320 -0
- package/node_modules/sshpk/lib/formats/pkcs8.js +510 -0
- package/node_modules/sshpk/lib/formats/rfc4253.js +145 -0
- package/node_modules/sshpk/lib/formats/ssh-private.js +138 -0
- package/node_modules/sshpk/lib/formats/ssh.js +114 -0
- package/node_modules/sshpk/lib/index.js +25 -0
- package/node_modules/sshpk/lib/key.js +260 -0
- package/node_modules/sshpk/lib/private-key.js +224 -0
- package/node_modules/sshpk/lib/signature.js +237 -0
- package/node_modules/sshpk/lib/ssh-buffer.js +123 -0
- package/node_modules/sshpk/lib/utils.js +207 -0
- package/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
- package/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +8 -0
- package/node_modules/sshpk/node_modules/assert-plus/README.md +155 -0
- package/node_modules/sshpk/node_modules/assert-plus/assert.js +206 -0
- package/node_modules/sshpk/node_modules/assert-plus/package.json +88 -0
- package/node_modules/sshpk/package.json +92 -0
- package/node_modules/strip-json-comments/cli.js +2 -2
- package/node_modules/strip-json-comments/package.json +13 -12
- package/node_modules/strip-json-comments/readme.md +11 -5
- package/node_modules/strip-json-comments/strip-json-comments.js +16 -7
- package/node_modules/tar/package.json +1 -2
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +11 -11
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/package.json +17 -12
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/test.js +68 -0
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/package.json +1 -1
- package/node_modules/tar-pack/node_modules/rimraf/package.json +1 -2
- package/node_modules/tar-pack/package.json +1 -2
- package/node_modules/tough-cookie/lib/cookie.js +1 -1
- package/node_modules/tough-cookie/package.json +7 -7
- package/node_modules/tweetnacl/.npmignore +4 -0
- package/node_modules/tweetnacl/CHANGELOG.md +128 -0
- package/node_modules/tweetnacl/README.md +463 -0
- package/node_modules/tweetnacl/nacl-fast.js +2418 -0
- package/node_modules/tweetnacl/nacl-fast.min.js +2 -0
- package/node_modules/tweetnacl/nacl.js +1205 -0
- package/node_modules/tweetnacl/nacl.min.js +1 -0
- package/node_modules/tweetnacl/package.json +101 -0
- package/node_modules/uid-number/package.json +2 -3
- package/node_modules/verror/.gitmodules +0 -0
- package/node_modules/verror/LICENSE +19 -0
- package/node_modules/verror/Makefile +35 -0
- package/node_modules/verror/Makefile.targ +285 -0
- package/node_modules/verror/README.md +120 -0
- package/node_modules/verror/examples/levels-verror.js +36 -0
- package/node_modules/verror/examples/levels-werror.js +34 -0
- package/node_modules/verror/examples/varargs.js +6 -0
- package/node_modules/verror/examples/verror.js +13 -0
- package/node_modules/verror/examples/werror.js +14 -0
- package/node_modules/verror/jsl.node.conf +139 -0
- package/node_modules/verror/lib/verror.js +157 -0
- package/node_modules/verror/package.json +51 -0
- package/node_modules/verror/tests/tst.inherit.js +100 -0
- package/node_modules/verror/tests/tst.verror.js +156 -0
- package/node_modules/verror/tests/tst.werror.js +179 -0
- package/package.json +3 -3
- package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/util.js +0 -106
- package/node_modules/core-util-is/util.js +0 -106
- package/node_modules/ctype/.npmignore +0 -1
- package/node_modules/ctype/CHANGELOG +0 -78
- package/node_modules/ctype/README +0 -82
- package/node_modules/ctype/README.old +0 -298
- package/node_modules/ctype/ctf.js +0 -245
- package/node_modules/ctype/ctio.js +0 -1485
- package/node_modules/ctype/ctype.js +0 -944
- package/node_modules/ctype/man/man3ctype/ctio.3ctype +0 -241
- package/node_modules/ctype/package.json +0 -51
- package/node_modules/ctype/tools/jsstyle +0 -839
- package/node_modules/http-signature/lib/util.js +0 -306
- package/node_modules/inflight/node_modules/once/package.json +0 -86
- package/node_modules/inflight/node_modules/once/test/once.js +0 -23
- package/node_modules/rimraf/node_modules/glob/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/once/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/once/README.md +0 -51
- package/node_modules/rimraf/node_modules/once/once.js +0 -21
- package/node_modules/rimraf/node_modules/once/package.json +0 -84
- package/node_modules/rimraf/node_modules/once/test/once.js +0 -23
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/util.js +0 -106
- package/node_modules/wrappy/LICENSE +0 -15
- /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/.npmignore +0 -0
- /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/README.md +0 -0
- /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/example.js +0 -0
- /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/index.js +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.npmignore +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.travis.yml +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/LICENSE.md +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/Makefile +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/README.md +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/example.js +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/index.js +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/test/balanced.js +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/.travis.yml +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/LICENSE +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/README.markdown +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/example/map.js +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/index.js +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/test/map.js +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/.npmignore +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/.travis.yml +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/CONTRIBUTING.md +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/LICENSE +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/README.md +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/abbrev.js +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/test.js +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/.eslintrc +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/LICENSE +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/README.md +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/inflight.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/LICENSE +0 -0
- /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/README.md +0 -0
- /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/test/basic.js +0 -0
- /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/wrappy.js +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/test.js +0 -0
- /package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/README.md +0 -0
- /package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/minimatch.js +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob}/node_modules/once/README.md +0 -0
- /package/node_modules/{inflight/node_modules/once → rimraf/node_modules/glob/node_modules/once/node_modules/wrappy}/LICENSE +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob}/node_modules/once/once.js +0 -0
- /package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/index.js +0 -0
- /package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/readme.md +0 -0
- /package/node_modules/{deep-extend → verror}/.npmignore +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
!function(r){"use strict";function n(r,n){return r<<n|r>>>32-n}function e(r,n){var e=255&r[n+3];return e=e<<8|255&r[n+2],e=e<<8|255&r[n+1],e<<8|255&r[n+0]}function t(r,n){var e=r[n]<<24|r[n+1]<<16|r[n+2]<<8|r[n+3],t=r[n+4]<<24|r[n+5]<<16|r[n+6]<<8|r[n+7];return new lr(e,t)}function o(r,n,e){var t;for(t=0;4>t;t++)r[n+t]=255&e,e>>>=8}function i(r,n,e){r[n]=e.hi>>24&255,r[n+1]=e.hi>>16&255,r[n+2]=e.hi>>8&255,r[n+3]=255&e.hi,r[n+4]=e.lo>>24&255,r[n+5]=e.lo>>16&255,r[n+6]=e.lo>>8&255,r[n+7]=255&e.lo}function a(r,n,e,t,o){var i,a=0;for(i=0;o>i;i++)a|=r[n+i]^e[t+i];return(1&a-1>>>8)-1}function f(r,n,e,t){return a(r,n,e,t,16)}function u(r,n,e,t){return a(r,n,e,t,32)}function c(r,t,i,a,f){var u,c,w,y=new Uint32Array(16),s=new Uint32Array(16),l=new Uint32Array(16),h=new Uint32Array(4);for(u=0;4>u;u++)s[5*u]=e(a,4*u),s[1+u]=e(i,4*u),s[6+u]=e(t,4*u),s[11+u]=e(i,16+4*u);for(u=0;16>u;u++)l[u]=s[u];for(u=0;20>u;u++){for(c=0;4>c;c++){for(w=0;4>w;w++)h[w]=s[(5*c+4*w)%16];for(h[1]^=n(h[0]+h[3]|0,7),h[2]^=n(h[1]+h[0]|0,9),h[3]^=n(h[2]+h[1]|0,13),h[0]^=n(h[3]+h[2]|0,18),w=0;4>w;w++)y[4*c+(c+w)%4]=h[w]}for(w=0;16>w;w++)s[w]=y[w]}if(f){for(u=0;16>u;u++)s[u]=s[u]+l[u]|0;for(u=0;4>u;u++)s[5*u]=s[5*u]-e(a,4*u)|0,s[6+u]=s[6+u]-e(t,4*u)|0;for(u=0;4>u;u++)o(r,4*u,s[5*u]),o(r,16+4*u,s[6+u])}else for(u=0;16>u;u++)o(r,4*u,s[u]+l[u]|0)}function w(r,n,e,t){return c(r,n,e,t,!1),0}function y(r,n,e,t){return c(r,n,e,t,!0),0}function s(r,n,e,t,o,i,a){var f,u,c=new Uint8Array(16),y=new Uint8Array(64);if(!o)return 0;for(u=0;16>u;u++)c[u]=0;for(u=0;8>u;u++)c[u]=i[u];for(;o>=64;){for(w(y,c,a,Br),u=0;64>u;u++)r[n+u]=(e?e[t+u]:0)^y[u];for(f=1,u=8;16>u;u++)f=f+(255&c[u])|0,c[u]=255&f,f>>>=8;o-=64,n+=64,e&&(t+=64)}if(o>0)for(w(y,c,a,Br),u=0;o>u;u++)r[n+u]=(e?e[t+u]:0)^y[u];return 0}function l(r,n,e,t,o){return s(r,n,null,0,e,t,o)}function h(r,n,e,t,o){var i=new Uint8Array(32);return y(i,t,o,Br),l(r,n,e,t.subarray(16),i)}function g(r,n,e,t,o,i,a){var f=new Uint8Array(32);return y(f,i,a,Br),s(r,n,e,t,o,i.subarray(16),f)}function p(r,n){var e,t=0;for(e=0;17>e;e++)t=t+(r[e]+n[e]|0)|0,r[e]=255&t,t>>>=8}function v(r,n,e,t,o,i){var a,f,u,c,w=new Uint32Array(17),y=new Uint32Array(17),s=new Uint32Array(17),l=new Uint32Array(17),h=new Uint32Array(17);for(u=0;17>u;u++)y[u]=s[u]=0;for(u=0;16>u;u++)y[u]=i[u];for(y[3]&=15,y[4]&=252,y[7]&=15,y[8]&=252,y[11]&=15,y[12]&=252,y[15]&=15;o>0;){for(u=0;17>u;u++)l[u]=0;for(u=0;16>u&&o>u;++u)l[u]=e[t+u];for(l[u]=1,t+=u,o-=u,p(s,l),f=0;17>f;f++)for(w[f]=0,u=0;17>u;u++)w[f]=w[f]+s[u]*(f>=u?y[f-u]:320*y[f+17-u]|0)|0|0;for(f=0;17>f;f++)s[f]=w[f];for(c=0,u=0;16>u;u++)c=c+s[u]|0,s[u]=255&c,c>>>=8;for(c=c+s[16]|0,s[16]=3&c,c=5*(c>>>2)|0,u=0;16>u;u++)c=c+s[u]|0,s[u]=255&c,c>>>=8;c=c+s[16]|0,s[16]=c}for(u=0;17>u;u++)h[u]=s[u];for(p(s,Sr),a=0|-(s[16]>>>7),u=0;17>u;u++)s[u]^=a&(h[u]^s[u]);for(u=0;16>u;u++)l[u]=i[u+16];for(l[16]=0,p(s,l),u=0;16>u;u++)r[n+u]=s[u];return 0}function b(r,n,e,t,o,i){var a=new Uint8Array(16);return v(a,0,e,t,o,i),f(r,n,a,0)}function A(r,n,e,t,o){var i;if(32>e)return-1;for(g(r,0,n,0,e,t,o),v(r,16,r,32,e-32,r),i=0;16>i;i++)r[i]=0;return 0}function U(r,n,e,t,o){var i,a=new Uint8Array(32);if(32>e)return-1;if(h(a,0,32,t,o),0!==b(n,16,n,32,e-32,a))return-1;for(g(r,0,n,0,e,t,o),i=0;32>i;i++)r[i]=0;return 0}function _(r,n){var e;for(e=0;16>e;e++)r[e]=0|n[e]}function d(r){var n,e;for(e=0;16>e;e++)r[e]+=65536,n=Math.floor(r[e]/65536),r[(e+1)*(15>e?1:0)]+=n-1+37*(n-1)*(15===e?1:0),r[e]-=65536*n}function E(r,n,e){for(var t,o=~(e-1),i=0;16>i;i++)t=o&(r[i]^n[i]),r[i]^=t,n[i]^=t}function x(r,n){var e,t,o,i=hr(),a=hr();for(e=0;16>e;e++)a[e]=n[e];for(d(a),d(a),d(a),t=0;2>t;t++){for(i[0]=a[0]-65517,e=1;15>e;e++)i[e]=a[e]-65535-(i[e-1]>>16&1),i[e-1]&=65535;i[15]=a[15]-32767-(i[14]>>16&1),o=i[15]>>16&1,i[14]&=65535,E(a,i,1-o)}for(e=0;16>e;e++)r[2*e]=255&a[e],r[2*e+1]=a[e]>>8}function m(r,n){var e=new Uint8Array(32),t=new Uint8Array(32);return x(e,r),x(t,n),u(e,0,t,0)}function B(r){var n=new Uint8Array(32);return x(n,r),1&n[0]}function S(r,n){var e;for(e=0;16>e;e++)r[e]=n[2*e]+(n[2*e+1]<<8);r[15]&=32767}function K(r,n,e){var t;for(t=0;16>t;t++)r[t]=n[t]+e[t]|0}function T(r,n,e){var t;for(t=0;16>t;t++)r[t]=n[t]-e[t]|0}function Y(r,n,e){var t,o,i=new Float64Array(31);for(t=0;31>t;t++)i[t]=0;for(t=0;16>t;t++)for(o=0;16>o;o++)i[t+o]+=n[t]*e[o];for(t=0;15>t;t++)i[t]+=38*i[t+16];for(t=0;16>t;t++)r[t]=i[t];d(r),d(r)}function L(r,n){Y(r,n,n)}function C(r,n){var e,t=hr();for(e=0;16>e;e++)t[e]=n[e];for(e=253;e>=0;e--)L(t,t),2!==e&&4!==e&&Y(t,t,n);for(e=0;16>e;e++)r[e]=t[e]}function R(r,n){var e,t=hr();for(e=0;16>e;e++)t[e]=n[e];for(e=250;e>=0;e--)L(t,t),1!==e&&Y(t,t,n);for(e=0;16>e;e++)r[e]=t[e]}function k(r,n,e){var t,o,i=new Uint8Array(32),a=new Float64Array(80),f=hr(),u=hr(),c=hr(),w=hr(),y=hr(),s=hr();for(o=0;31>o;o++)i[o]=n[o];for(i[31]=127&n[31]|64,i[0]&=248,S(a,e),o=0;16>o;o++)u[o]=a[o],w[o]=f[o]=c[o]=0;for(f[0]=w[0]=1,o=254;o>=0;--o)t=i[o>>>3]>>>(7&o)&1,E(f,u,t),E(c,w,t),K(y,f,c),T(f,f,c),K(c,u,w),T(u,u,w),L(w,y),L(s,f),Y(f,c,f),Y(c,u,y),K(y,f,c),T(f,f,c),L(u,f),T(c,w,s),Y(f,c,Ur),K(f,f,w),Y(c,c,f),Y(f,w,s),Y(w,u,a),L(u,y),E(f,u,t),E(c,w,t);for(o=0;16>o;o++)a[o+16]=f[o],a[o+32]=c[o],a[o+48]=u[o],a[o+64]=w[o];var l=a.subarray(32),h=a.subarray(16);return C(l,l),Y(h,h,l),x(r,h),0}function z(r,n){return k(r,n,vr)}function P(r,n){return gr(n,32),z(r,n)}function O(r,n,e){var t=new Uint8Array(32);return k(t,e,n),y(r,pr,t,Br)}function F(r,n,e,t,o,i){var a=new Uint8Array(32);return O(a,o,i),Kr(r,n,e,t,a)}function N(r,n,e,t,o,i){var a=new Uint8Array(32);return O(a,o,i),Tr(r,n,e,t,a)}function M(){var r,n,e,t=0,o=0,i=0,a=0,f=65535;for(e=0;e<arguments.length;e++)r=arguments[e].lo,n=arguments[e].hi,t+=r&f,o+=r>>>16,i+=n&f,a+=n>>>16;return o+=t>>>16,i+=o>>>16,a+=i>>>16,new lr(i&f|a<<16,t&f|o<<16)}function j(r,n){return new lr(r.hi>>>n,r.lo>>>n|r.hi<<32-n)}function G(){var r,n=0,e=0;for(r=0;r<arguments.length;r++)n^=arguments[r].lo,e^=arguments[r].hi;return new lr(e,n)}function I(r,n){var e,t,o=32-n;return 32>n?(e=r.hi>>>n|r.lo<<o,t=r.lo>>>n|r.hi<<o):64>n&&(e=r.lo>>>n|r.hi<<o,t=r.hi>>>n|r.lo<<o),new lr(e,t)}function Z(r,n,e){var t=r.hi&n.hi^~r.hi&e.hi,o=r.lo&n.lo^~r.lo&e.lo;return new lr(t,o)}function V(r,n,e){var t=r.hi&n.hi^r.hi&e.hi^n.hi&e.hi,o=r.lo&n.lo^r.lo&e.lo^n.lo&e.lo;return new lr(t,o)}function q(r){return G(I(r,28),I(r,34),I(r,39))}function X(r){return G(I(r,14),I(r,18),I(r,41))}function D(r){return G(I(r,1),I(r,8),j(r,7))}function H(r){return G(I(r,19),I(r,61),j(r,6))}function J(r,n,e){var o,a,f,u=[],c=[],w=[],y=[];for(a=0;8>a;a++)u[a]=w[a]=t(r,8*a);for(var s=0;e>=128;){for(a=0;16>a;a++)y[a]=t(n,8*a+s);for(a=0;80>a;a++){for(f=0;8>f;f++)c[f]=w[f];for(o=M(w[7],X(w[4]),Z(w[4],w[5],w[6]),Yr[a],y[a%16]),c[7]=M(o,q(w[0]),V(w[0],w[1],w[2])),c[3]=M(c[3],o),f=0;8>f;f++)w[(f+1)%8]=c[f];if(a%16===15)for(f=0;16>f;f++)y[f]=M(y[f],y[(f+9)%16],D(y[(f+1)%16]),H(y[(f+14)%16]))}for(a=0;8>a;a++)w[a]=M(w[a],u[a]),u[a]=w[a];s+=128,e-=128}for(a=0;8>a;a++)i(r,8*a,u[a]);return e}function Q(r,n,e){var t,o=new Uint8Array(64),a=new Uint8Array(256),f=e;for(t=0;64>t;t++)o[t]=Lr[t];for(J(o,n,e),e%=128,t=0;256>t;t++)a[t]=0;for(t=0;e>t;t++)a[t]=n[f-e+t];for(a[e]=128,e=256-128*(112>e?1:0),a[e-9]=0,i(a,e-8,new lr(f/536870912|0,f<<3)),J(o,a,e),t=0;64>t;t++)r[t]=o[t];return 0}function W(r,n){var e=hr(),t=hr(),o=hr(),i=hr(),a=hr(),f=hr(),u=hr(),c=hr(),w=hr();T(e,r[1],r[0]),T(w,n[1],n[0]),Y(e,e,w),K(t,r[0],r[1]),K(w,n[0],n[1]),Y(t,t,w),Y(o,r[3],n[3]),Y(o,o,dr),Y(i,r[2],n[2]),K(i,i,i),T(a,t,e),T(f,i,o),K(u,i,o),K(c,t,e),Y(r[0],a,f),Y(r[1],c,u),Y(r[2],u,f),Y(r[3],a,c)}function $(r,n,e){var t;for(t=0;4>t;t++)E(r[t],n[t],e)}function rr(r,n){var e=hr(),t=hr(),o=hr();C(o,n[2]),Y(e,n[0],o),Y(t,n[1],o),x(r,t),r[31]^=B(e)<<7}function nr(r,n,e){var t,o;for(_(r[0],br),_(r[1],Ar),_(r[2],Ar),_(r[3],br),o=255;o>=0;--o)t=e[o/8|0]>>(7&o)&1,$(r,n,t),W(n,r),W(r,r),$(r,n,t)}function er(r,n){var e=[hr(),hr(),hr(),hr()];_(e[0],Er),_(e[1],xr),_(e[2],Ar),Y(e[3],Er,xr),nr(r,e,n)}function tr(r,n,e){var t,o=new Uint8Array(64),i=[hr(),hr(),hr(),hr()];for(e||gr(n,32),Q(o,n,32),o[0]&=248,o[31]&=127,o[31]|=64,er(i,o),rr(r,i),t=0;32>t;t++)n[t+32]=r[t];return 0}function or(r,n){var e,t,o,i;for(t=63;t>=32;--t){for(e=0,o=t-32,i=t-12;i>o;++o)n[o]+=e-16*n[t]*Cr[o-(t-32)],e=n[o]+128>>8,n[o]-=256*e;n[o]+=e,n[t]=0}for(e=0,o=0;32>o;o++)n[o]+=e-(n[31]>>4)*Cr[o],e=n[o]>>8,n[o]&=255;for(o=0;32>o;o++)n[o]-=e*Cr[o];for(t=0;32>t;t++)n[t+1]+=n[t]>>8,r[t]=255&n[t]}function ir(r){var n,e=new Float64Array(64);for(n=0;64>n;n++)e[n]=r[n];for(n=0;64>n;n++)r[n]=0;or(r,e)}function ar(r,n,e,t){var o,i,a=new Uint8Array(64),f=new Uint8Array(64),u=new Uint8Array(64),c=new Float64Array(64),w=[hr(),hr(),hr(),hr()];Q(a,t,32),a[0]&=248,a[31]&=127,a[31]|=64;var y=e+64;for(o=0;e>o;o++)r[64+o]=n[o];for(o=0;32>o;o++)r[32+o]=a[32+o];for(Q(u,r.subarray(32),e+32),ir(u),er(w,u),rr(r,w),o=32;64>o;o++)r[o]=t[o];for(Q(f,r,e+64),ir(f),o=0;64>o;o++)c[o]=0;for(o=0;32>o;o++)c[o]=u[o];for(o=0;32>o;o++)for(i=0;32>i;i++)c[o+i]+=f[o]*a[i];return or(r.subarray(32),c),y}function fr(r,n){var e=hr(),t=hr(),o=hr(),i=hr(),a=hr(),f=hr(),u=hr();return _(r[2],Ar),S(r[1],n),L(o,r[1]),Y(i,o,_r),T(o,o,r[2]),K(i,r[2],i),L(a,i),L(f,a),Y(u,f,a),Y(e,u,o),Y(e,e,i),R(e,e),Y(e,e,o),Y(e,e,i),Y(e,e,i),Y(r[0],e,i),L(t,r[0]),Y(t,t,i),m(t,o)&&Y(r[0],r[0],mr),L(t,r[0]),Y(t,t,i),m(t,o)?-1:(B(r[0])===n[31]>>7&&T(r[0],br,r[0]),Y(r[3],r[0],r[1]),0)}function ur(r,n,e,t){var o,i,a=new Uint8Array(32),f=new Uint8Array(64),c=[hr(),hr(),hr(),hr()],w=[hr(),hr(),hr(),hr()];if(i=-1,64>e)return-1;if(fr(w,t))return-1;for(o=0;e>o;o++)r[o]=n[o];for(o=0;32>o;o++)r[o+32]=t[o];if(Q(f,r,e),ir(f),nr(c,w,f),er(w,n.subarray(32)),W(c,w),rr(a,c),e-=64,u(n,0,a,0)){for(o=0;e>o;o++)r[o]=0;return-1}for(o=0;e>o;o++)r[o]=n[o+64];return i=e}function cr(r,n){if(r.length!==Rr)throw new Error("bad key size");if(n.length!==kr)throw new Error("bad nonce size")}function wr(r,n){if(r.length!==Nr)throw new Error("bad public key size");if(n.length!==Mr)throw new Error("bad secret key size")}function yr(){var r,n;for(n=0;n<arguments.length;n++)if("[object Uint8Array]"!==(r=Object.prototype.toString.call(arguments[n])))throw new TypeError("unexpected type "+r+", use Uint8Array")}function sr(r){for(var n=0;n<r.length;n++)r[n]=0}var lr=function(r,n){this.hi=0|r,this.lo=0|n},hr=function(r){var n,e=new Float64Array(16);if(r)for(n=0;n<r.length;n++)e[n]=r[n];return e},gr=function(){throw new Error("no PRNG")},pr=new Uint8Array(16),vr=new Uint8Array(32);vr[0]=9;var br=hr(),Ar=hr([1]),Ur=hr([56129,1]),_r=hr([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),dr=hr([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),Er=hr([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),xr=hr([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),mr=hr([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]),Br=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]),Sr=new Uint32Array([5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252]),Kr=A,Tr=U,Yr=[new lr(1116352408,3609767458),new lr(1899447441,602891725),new lr(3049323471,3964484399),new lr(3921009573,2173295548),new lr(961987163,4081628472),new lr(1508970993,3053834265),new lr(2453635748,2937671579),new lr(2870763221,3664609560),new lr(3624381080,2734883394),new lr(310598401,1164996542),new lr(607225278,1323610764),new lr(1426881987,3590304994),new lr(1925078388,4068182383),new lr(2162078206,991336113),new lr(2614888103,633803317),new lr(3248222580,3479774868),new lr(3835390401,2666613458),new lr(4022224774,944711139),new lr(264347078,2341262773),new lr(604807628,2007800933),new lr(770255983,1495990901),new lr(1249150122,1856431235),new lr(1555081692,3175218132),new lr(1996064986,2198950837),new lr(2554220882,3999719339),new lr(2821834349,766784016),new lr(2952996808,2566594879),new lr(3210313671,3203337956),new lr(3336571891,1034457026),new lr(3584528711,2466948901),new lr(113926993,3758326383),new lr(338241895,168717936),new lr(666307205,1188179964),new lr(773529912,1546045734),new lr(1294757372,1522805485),new lr(1396182291,2643833823),new lr(1695183700,2343527390),new lr(1986661051,1014477480),new lr(2177026350,1206759142),new lr(2456956037,344077627),new lr(2730485921,1290863460),new lr(2820302411,3158454273),new lr(3259730800,3505952657),new lr(3345764771,106217008),new lr(3516065817,3606008344),new lr(3600352804,1432725776),new lr(4094571909,1467031594),new lr(275423344,851169720),new lr(430227734,3100823752),new lr(506948616,1363258195),new lr(659060556,3750685593),new lr(883997877,3785050280),new lr(958139571,3318307427),new lr(1322822218,3812723403),new lr(1537002063,2003034995),new lr(1747873779,3602036899),new lr(1955562222,1575990012),new lr(2024104815,1125592928),new lr(2227730452,2716904306),new lr(2361852424,442776044),new lr(2428436474,593698344),new lr(2756734187,3733110249),new lr(3204031479,2999351573),new lr(3329325298,3815920427),new lr(3391569614,3928383900),new lr(3515267271,566280711),new lr(3940187606,3454069534),new lr(4118630271,4000239992),new lr(116418474,1914138554),new lr(174292421,2731055270),new lr(289380356,3203993006),new lr(460393269,320620315),new lr(685471733,587496836),new lr(852142971,1086792851),new lr(1017036298,365543100),new lr(1126000580,2618297676),new lr(1288033470,3409855158),new lr(1501505948,4234509866),new lr(1607167915,987167468),new lr(1816402316,1246189591)],Lr=new Uint8Array([106,9,230,103,243,188,201,8,187,103,174,133,132,202,167,59,60,110,243,114,254,148,248,43,165,79,245,58,95,29,54,241,81,14,82,127,173,230,130,209,155,5,104,140,43,62,108,31,31,131,217,171,251,65,189,107,91,224,205,25,19,126,33,121]),Cr=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),Rr=32,kr=24,zr=32,Pr=16,Or=32,Fr=32,Nr=32,Mr=32,jr=32,Gr=kr,Ir=zr,Zr=Pr,Vr=64,qr=32,Xr=64,Dr=32,Hr=64;r.lowlevel={crypto_core_hsalsa20:y,crypto_stream_xor:g,crypto_stream:h,crypto_stream_salsa20_xor:s,crypto_stream_salsa20:l,crypto_onetimeauth:v,crypto_onetimeauth_verify:b,crypto_verify_16:f,crypto_verify_32:u,crypto_secretbox:A,crypto_secretbox_open:U,crypto_scalarmult:k,crypto_scalarmult_base:z,crypto_box_beforenm:O,crypto_box_afternm:Kr,crypto_box:F,crypto_box_open:N,crypto_box_keypair:P,crypto_hash:Q,crypto_sign:ar,crypto_sign_keypair:tr,crypto_sign_open:ur,crypto_secretbox_KEYBYTES:Rr,crypto_secretbox_NONCEBYTES:kr,crypto_secretbox_ZEROBYTES:zr,crypto_secretbox_BOXZEROBYTES:Pr,crypto_scalarmult_BYTES:Or,crypto_scalarmult_SCALARBYTES:Fr,crypto_box_PUBLICKEYBYTES:Nr,crypto_box_SECRETKEYBYTES:Mr,crypto_box_BEFORENMBYTES:jr,crypto_box_NONCEBYTES:Gr,crypto_box_ZEROBYTES:Ir,crypto_box_BOXZEROBYTES:Zr,crypto_sign_BYTES:Vr,crypto_sign_PUBLICKEYBYTES:qr,crypto_sign_SECRETKEYBYTES:Xr,crypto_sign_SEEDBYTES:Dr,crypto_hash_BYTES:Hr},r.util={},r.util.decodeUTF8=function(r){var n,e=unescape(encodeURIComponent(r)),t=new Uint8Array(e.length);for(n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t},r.util.encodeUTF8=function(r){var n,e=[];for(n=0;n<r.length;n++)e.push(String.fromCharCode(r[n]));return decodeURIComponent(escape(e.join("")))},r.util.encodeBase64=function(r){if("undefined"==typeof btoa)return new Buffer(r).toString("base64");var n,e=[],t=r.length;for(n=0;t>n;n++)e.push(String.fromCharCode(r[n]));return btoa(e.join(""))},r.util.decodeBase64=function(r){if("undefined"==typeof atob)return new Uint8Array(Array.prototype.slice.call(new Buffer(r,"base64"),0));var n,e=atob(r),t=new Uint8Array(e.length);for(n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t},r.randomBytes=function(r){var n=new Uint8Array(r);return gr(n,r),n},r.secretbox=function(r,n,e){yr(r,n,e),cr(e,n);for(var t=new Uint8Array(zr+r.length),o=new Uint8Array(t.length),i=0;i<r.length;i++)t[i+zr]=r[i];return A(o,t,t.length,n,e),o.subarray(Pr)},r.secretbox.open=function(r,n,e){yr(r,n,e),cr(e,n);for(var t=new Uint8Array(Pr+r.length),o=new Uint8Array(t.length),i=0;i<r.length;i++)t[i+Pr]=r[i];return t.length<32?!1:0!==U(o,t,t.length,n,e)?!1:o.subarray(zr)},r.secretbox.keyLength=Rr,r.secretbox.nonceLength=kr,r.secretbox.overheadLength=Pr,r.scalarMult=function(r,n){if(yr(r,n),r.length!==Fr)throw new Error("bad n size");if(n.length!==Or)throw new Error("bad p size");var e=new Uint8Array(Or);return k(e,r,n),e},r.scalarMult.base=function(r){if(yr(r),r.length!==Fr)throw new Error("bad n size");var n=new Uint8Array(Or);return z(n,r),n},r.scalarMult.scalarLength=Fr,r.scalarMult.groupElementLength=Or,r.box=function(n,e,t,o){var i=r.box.before(t,o);return r.secretbox(n,e,i)},r.box.before=function(r,n){yr(r,n),wr(r,n);var e=new Uint8Array(jr);return O(e,r,n),e},r.box.after=r.secretbox,r.box.open=function(n,e,t,o){var i=r.box.before(t,o);return r.secretbox.open(n,e,i)},r.box.open.after=r.secretbox.open,r.box.keyPair=function(){var r=new Uint8Array(Nr),n=new Uint8Array(Mr);return P(r,n),{publicKey:r,secretKey:n}},r.box.keyPair.fromSecretKey=function(r){if(yr(r),r.length!==Mr)throw new Error("bad secret key size");var n=new Uint8Array(Nr);return z(n,r),{publicKey:n,secretKey:new Uint8Array(r)}},r.box.publicKeyLength=Nr,r.box.secretKeyLength=Mr,r.box.sharedKeyLength=jr,r.box.nonceLength=Gr,r.box.overheadLength=r.secretbox.overheadLength,r.sign=function(r,n){if(yr(r,n),n.length!==Xr)throw new Error("bad secret key size");var e=new Uint8Array(Vr+r.length);return ar(e,r,r.length,n),e},r.sign.open=function(r,n){if(2!==arguments.length)throw new Error("nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?");if(yr(r,n),n.length!==qr)throw new Error("bad public key size");var e=new Uint8Array(r.length),t=ur(e,r,r.length,n);if(0>t)return null;for(var o=new Uint8Array(t),i=0;i<o.length;i++)o[i]=e[i];return o},r.sign.detached=function(n,e){for(var t=r.sign(n,e),o=new Uint8Array(Vr),i=0;i<o.length;i++)o[i]=t[i];return o},r.sign.detached.verify=function(r,n,e){if(yr(r,n,e),n.length!==Vr)throw new Error("bad signature size");if(e.length!==qr)throw new Error("bad public key size");var t,o=new Uint8Array(Vr+r.length),i=new Uint8Array(Vr+r.length);for(t=0;Vr>t;t++)o[t]=n[t];for(t=0;t<r.length;t++)o[t+Vr]=r[t];return ur(i,o,o.length,e)>=0},r.sign.keyPair=function(){var r=new Uint8Array(qr),n=new Uint8Array(Xr);return tr(r,n),{publicKey:r,secretKey:n}},r.sign.keyPair.fromSecretKey=function(r){if(yr(r),r.length!==Xr)throw new Error("bad secret key size");for(var n=new Uint8Array(qr),e=0;e<n.length;e++)n[e]=r[32+e];return{publicKey:n,secretKey:new Uint8Array(r)}},r.sign.keyPair.fromSeed=function(r){if(yr(r),r.length!==Dr)throw new Error("bad seed size");for(var n=new Uint8Array(qr),e=new Uint8Array(Xr),t=0;32>t;t++)e[t]=r[t];return tr(n,e,!0),{publicKey:n,secretKey:e}},r.sign.publicKeyLength=qr,r.sign.secretKeyLength=Xr,r.sign.seedLength=Dr,r.sign.signatureLength=Vr,r.hash=function(r){yr(r);var n=new Uint8Array(Hr);return Q(n,r,r.length),n},r.hash.hashLength=Hr,r.verify=function(r,n){return yr(r,n),0===r.length||0===n.length?!1:r.length!==n.length?!1:0===a(r,0,n,0,r.length)?!0:!1},r.setPRNG=function(r){gr=r},function(){var n;"undefined"!=typeof window?(window.crypto&&window.crypto.getRandomValues?n=window.crypto:window.msCrypto&&window.msCrypto.getRandomValues&&(n=window.msCrypto),n&&r.setPRNG(function(r,e){var t,o=new Uint8Array(e);for(n.getRandomValues(o),t=0;e>t;t++)r[t]=o[t];sr(o)})):"undefined"!=typeof require&&(n=require("crypto"),n&&r.setPRNG(function(r,e){var t,o=n.randomBytes(e);for(t=0;e>t;t++)r[t]=o[t];sr(o)}))}()}("undefined"!=typeof module&&module.exports?module.exports:window.nacl=window.nacl||{});
|
@@ -0,0 +1,101 @@
|
|
1
|
+
{
|
2
|
+
"_from": "tweetnacl@>=0.13.0 <1.0.0",
|
3
|
+
"_id": "tweetnacl@0.13.2",
|
4
|
+
"_location": "/tweetnacl",
|
5
|
+
"_nodeVersion": "0.12.7",
|
6
|
+
"_npmUser": {
|
7
|
+
"email": "dmitry@codingrobots.com",
|
8
|
+
"name": "dchest"
|
9
|
+
},
|
10
|
+
"_npmVersion": "2.12.1",
|
11
|
+
"_phantomChildren": {},
|
12
|
+
"_requiredBy": [
|
13
|
+
"/sshpk"
|
14
|
+
],
|
15
|
+
"_resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.13.2.tgz",
|
16
|
+
"_shasum": "453161770469d45cd266c36404e2bc99a8fa9944",
|
17
|
+
"author": {
|
18
|
+
"name": "TweetNaCl-js contributors"
|
19
|
+
},
|
20
|
+
"browser": {
|
21
|
+
"buffer": false,
|
22
|
+
"crypto": false
|
23
|
+
},
|
24
|
+
"bugs": {
|
25
|
+
"url": "https://github.com/dchest/tweetnacl-js/issues"
|
26
|
+
},
|
27
|
+
"dependencies": {},
|
28
|
+
"description": "Port of TweetNaCl cryptographic library to JavaScript",
|
29
|
+
"devDependencies": {
|
30
|
+
"browserify": "^10.1.3",
|
31
|
+
"eslint": "^1.4.3",
|
32
|
+
"faucet": "0.0.1",
|
33
|
+
"tap-browser-color": "^0.1.2",
|
34
|
+
"tape": "^4.0.0",
|
35
|
+
"testling": "^1.7.1",
|
36
|
+
"uglify-js": "^2.4.21"
|
37
|
+
},
|
38
|
+
"directories": {
|
39
|
+
"test": "test"
|
40
|
+
},
|
41
|
+
"dist": {
|
42
|
+
"shasum": "453161770469d45cd266c36404e2bc99a8fa9944",
|
43
|
+
"tarball": "http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.13.2.tgz"
|
44
|
+
},
|
45
|
+
"gitHead": "f093f0c34fbab5caf51f3ed9a48149c37041abb3",
|
46
|
+
"homepage": "https://dchest.github.io/tweetnacl-js",
|
47
|
+
"keywords": [
|
48
|
+
"crypto",
|
49
|
+
"cryptography",
|
50
|
+
"curve25519",
|
51
|
+
"ed25519",
|
52
|
+
"encrypt",
|
53
|
+
"hash",
|
54
|
+
"key",
|
55
|
+
"nacl",
|
56
|
+
"poly1305",
|
57
|
+
"public",
|
58
|
+
"salsa20",
|
59
|
+
"signatures"
|
60
|
+
],
|
61
|
+
"license": "CC0-1.0",
|
62
|
+
"main": "nacl-fast.js",
|
63
|
+
"maintainers": [
|
64
|
+
{
|
65
|
+
"name": "dchest",
|
66
|
+
"email": "dmitry@codingrobots.com"
|
67
|
+
}
|
68
|
+
],
|
69
|
+
"name": "tweetnacl",
|
70
|
+
"optionalDependencies": {},
|
71
|
+
"readme": "ERROR: No README data found!",
|
72
|
+
"repository": {
|
73
|
+
"type": "git",
|
74
|
+
"url": "git+https://github.com/dchest/tweetnacl-js.git"
|
75
|
+
},
|
76
|
+
"scripts": {
|
77
|
+
"bench": "node test/benchmark/bench.js",
|
78
|
+
"browser": "browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null",
|
79
|
+
"browser-quick": "browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null",
|
80
|
+
"build": "uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js",
|
81
|
+
"chrome": "browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet",
|
82
|
+
"firefox": "browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet",
|
83
|
+
"lint": "eslint nacl.js nacl-fast.js test/*.js test/benchmark/*.js",
|
84
|
+
"test": "tape test/*.js | faucet",
|
85
|
+
"testall": "make -C test/c && tape test/*.js test/c/*.js | faucet",
|
86
|
+
"testling": "browserify test/browser/testling_init.js test/*.js | testling | faucet"
|
87
|
+
},
|
88
|
+
"testling": {
|
89
|
+
"browsers": [
|
90
|
+
"android-browser/latest",
|
91
|
+
"chrome/22..latest",
|
92
|
+
"firefox/16..latest",
|
93
|
+
"ipad/6..latest",
|
94
|
+
"iphone/6..latest",
|
95
|
+
"opera/11.0..latest",
|
96
|
+
"safari/latest"
|
97
|
+
],
|
98
|
+
"files": "test/*.js"
|
99
|
+
},
|
100
|
+
"version": "0.13.2"
|
101
|
+
}
|
@@ -35,7 +35,7 @@
|
|
35
35
|
"engines": {
|
36
36
|
"node": "*"
|
37
37
|
},
|
38
|
-
"homepage": "https://github.com/isaacs/uid-number
|
38
|
+
"homepage": "https://github.com/isaacs/uid-number",
|
39
39
|
"license": "BSD",
|
40
40
|
"main": "uid-number.js",
|
41
41
|
"maintainers": [
|
@@ -46,8 +46,7 @@
|
|
46
46
|
],
|
47
47
|
"name": "uid-number",
|
48
48
|
"optionalDependencies": {},
|
49
|
-
"readme": "
|
50
|
-
"readmeFilename": "README.md",
|
49
|
+
"readme": "ERROR: No README data found!",
|
51
50
|
"repository": {
|
52
51
|
"type": "git",
|
53
52
|
"url": "git://github.com/isaacs/uid-number.git"
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2012, Joyent, Inc. 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
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
|
3
|
+
#
|
4
|
+
# Makefile: top-level Makefile
|
5
|
+
#
|
6
|
+
# This Makefile contains only repo-specific logic and uses included makefiles
|
7
|
+
# to supply common targets (javascriptlint, jsstyle, restdown, etc.), which are
|
8
|
+
# used by other repos as well.
|
9
|
+
#
|
10
|
+
|
11
|
+
#
|
12
|
+
# Tools
|
13
|
+
#
|
14
|
+
NPM = npm
|
15
|
+
|
16
|
+
#
|
17
|
+
# Files
|
18
|
+
#
|
19
|
+
JS_FILES := $(shell find lib examples tests -name '*.js')
|
20
|
+
JSL_FILES_NODE = $(JS_FILES)
|
21
|
+
JSSTYLE_FILES = $(JS_FILES)
|
22
|
+
JSL_CONF_NODE = jsl.node.conf
|
23
|
+
|
24
|
+
.PHONY: all
|
25
|
+
all:
|
26
|
+
$(NPM) install
|
27
|
+
|
28
|
+
.PHONY: test
|
29
|
+
test:
|
30
|
+
node tests/tst.inherit.js
|
31
|
+
node tests/tst.verror.js
|
32
|
+
node tests/tst.werror.js
|
33
|
+
@echo all tests passed
|
34
|
+
|
35
|
+
include ./Makefile.targ
|
@@ -0,0 +1,285 @@
|
|
1
|
+
# -*- mode: makefile -*-
|
2
|
+
#
|
3
|
+
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
|
4
|
+
#
|
5
|
+
# Makefile.targ: common targets.
|
6
|
+
#
|
7
|
+
# NOTE: This makefile comes from the "eng" repo. It's designed to be dropped
|
8
|
+
# into other repos as-is without requiring any modifications. If you find
|
9
|
+
# yourself changing this file, you should instead update the original copy in
|
10
|
+
# eng.git and then update your repo to use the new version.
|
11
|
+
#
|
12
|
+
# This Makefile defines several useful targets and rules. You can use it by
|
13
|
+
# including it from a Makefile that specifies some of the variables below.
|
14
|
+
#
|
15
|
+
# Targets defined in this Makefile:
|
16
|
+
#
|
17
|
+
# check Checks JavaScript files for lint and style
|
18
|
+
# Checks bash scripts for syntax
|
19
|
+
# Checks SMF manifests for validity against the SMF DTD
|
20
|
+
#
|
21
|
+
# clean Removes built files
|
22
|
+
#
|
23
|
+
# docs Builds restdown documentation in docs/
|
24
|
+
#
|
25
|
+
# prepush Depends on "check" and "test"
|
26
|
+
#
|
27
|
+
# test Does nothing (you should override this)
|
28
|
+
#
|
29
|
+
# xref Generates cscope (source cross-reference index)
|
30
|
+
#
|
31
|
+
# For details on what these targets are supposed to do, see the Joyent
|
32
|
+
# Engineering Guide.
|
33
|
+
#
|
34
|
+
# To make use of these targets, you'll need to set some of these variables. Any
|
35
|
+
# variables left unset will simply not be used.
|
36
|
+
#
|
37
|
+
# BASH_FILES Bash scripts to check for syntax
|
38
|
+
# (paths relative to top-level Makefile)
|
39
|
+
#
|
40
|
+
# CLEAN_FILES Files to remove as part of the "clean" target. Note
|
41
|
+
# that files generated by targets in this Makefile are
|
42
|
+
# automatically included in CLEAN_FILES. These include
|
43
|
+
# restdown-generated HTML and JSON files.
|
44
|
+
#
|
45
|
+
# DOC_FILES Restdown (documentation source) files. These are
|
46
|
+
# assumed to be contained in "docs/", and must NOT
|
47
|
+
# contain the "docs/" prefix.
|
48
|
+
#
|
49
|
+
# JSL_CONF_NODE Specify JavaScriptLint configuration files
|
50
|
+
# JSL_CONF_WEB (paths relative to top-level Makefile)
|
51
|
+
#
|
52
|
+
# Node.js and Web configuration files are separate
|
53
|
+
# because you'll usually want different global variable
|
54
|
+
# configurations. If no file is specified, none is given
|
55
|
+
# to jsl, which causes it to use a default configuration,
|
56
|
+
# which probably isn't what you want.
|
57
|
+
#
|
58
|
+
# JSL_FILES_NODE JavaScript files to check with Node config file.
|
59
|
+
# JSL_FILES_WEB JavaScript files to check with Web config file.
|
60
|
+
#
|
61
|
+
# You can also override these variables:
|
62
|
+
#
|
63
|
+
# BASH Path to bash (default: bash)
|
64
|
+
#
|
65
|
+
# CSCOPE_DIRS Directories to search for source files for the cscope
|
66
|
+
# index. (default: ".")
|
67
|
+
#
|
68
|
+
# JSL Path to JavaScriptLint (default: "jsl")
|
69
|
+
#
|
70
|
+
# JSL_FLAGS_NODE Additional flags to pass through to JSL
|
71
|
+
# JSL_FLAGS_WEB
|
72
|
+
# JSL_FLAGS
|
73
|
+
#
|
74
|
+
# JSSTYLE Path to jsstyle (default: jsstyle)
|
75
|
+
#
|
76
|
+
# JSSTYLE_FLAGS Additional flags to pass through to jsstyle
|
77
|
+
#
|
78
|
+
|
79
|
+
#
|
80
|
+
# Defaults for the various tools we use.
|
81
|
+
#
|
82
|
+
BASH ?= bash
|
83
|
+
BASHSTYLE ?= tools/bashstyle
|
84
|
+
CP ?= cp
|
85
|
+
CSCOPE ?= cscope
|
86
|
+
CSCOPE_DIRS ?= .
|
87
|
+
JSL ?= jsl
|
88
|
+
JSSTYLE ?= jsstyle
|
89
|
+
MKDIR ?= mkdir -p
|
90
|
+
MV ?= mv
|
91
|
+
RESTDOWN_FLAGS ?=
|
92
|
+
RMTREE ?= rm -rf
|
93
|
+
JSL_FLAGS ?= --nologo --nosummary
|
94
|
+
|
95
|
+
ifeq ($(shell uname -s),SunOS)
|
96
|
+
TAR ?= gtar
|
97
|
+
else
|
98
|
+
TAR ?= tar
|
99
|
+
endif
|
100
|
+
|
101
|
+
|
102
|
+
#
|
103
|
+
# Defaults for other fixed values.
|
104
|
+
#
|
105
|
+
BUILD = build
|
106
|
+
DISTCLEAN_FILES += $(BUILD)
|
107
|
+
DOC_BUILD = $(BUILD)/docs/public
|
108
|
+
|
109
|
+
#
|
110
|
+
# Configure JSL_FLAGS_{NODE,WEB} based on JSL_CONF_{NODE,WEB}.
|
111
|
+
#
|
112
|
+
ifneq ($(origin JSL_CONF_NODE), undefined)
|
113
|
+
JSL_FLAGS_NODE += --conf=$(JSL_CONF_NODE)
|
114
|
+
endif
|
115
|
+
|
116
|
+
ifneq ($(origin JSL_CONF_WEB), undefined)
|
117
|
+
JSL_FLAGS_WEB += --conf=$(JSL_CONF_WEB)
|
118
|
+
endif
|
119
|
+
|
120
|
+
#
|
121
|
+
# Targets. For descriptions on what these are supposed to do, see the
|
122
|
+
# Joyent Engineering Guide.
|
123
|
+
#
|
124
|
+
|
125
|
+
#
|
126
|
+
# Instruct make to keep around temporary files. We have rules below that
|
127
|
+
# automatically update git submodules as needed, but they employ a deps/*/.git
|
128
|
+
# temporary file. Without this directive, make tries to remove these .git
|
129
|
+
# directories after the build has completed.
|
130
|
+
#
|
131
|
+
.SECONDARY: $($(wildcard deps/*):%=%/.git)
|
132
|
+
|
133
|
+
#
|
134
|
+
# This rule enables other rules that use files from a git submodule to have
|
135
|
+
# those files depend on deps/module/.git and have "make" automatically check
|
136
|
+
# out the submodule as needed.
|
137
|
+
#
|
138
|
+
deps/%/.git:
|
139
|
+
git submodule update --init deps/$*
|
140
|
+
|
141
|
+
#
|
142
|
+
# These recipes make heavy use of dynamically-created phony targets. The parent
|
143
|
+
# Makefile defines a list of input files like BASH_FILES. We then say that each
|
144
|
+
# of these files depends on a fake target called filename.bashchk, and then we
|
145
|
+
# define a pattern rule for those targets that runs bash in check-syntax-only
|
146
|
+
# mode. This mechanism has the nice properties that if you specify zero files,
|
147
|
+
# the rule becomes a noop (unlike a single rule to check all bash files, which
|
148
|
+
# would invoke bash with zero files), and you can check individual files from
|
149
|
+
# the command line with "make filename.bashchk".
|
150
|
+
#
|
151
|
+
.PHONY: check-bash
|
152
|
+
check-bash: $(BASH_FILES:%=%.bashchk) $(BASH_FILES:%=%.bashstyle)
|
153
|
+
|
154
|
+
%.bashchk: %
|
155
|
+
$(BASH) -n $^
|
156
|
+
|
157
|
+
%.bashstyle: %
|
158
|
+
$(BASHSTYLE) $^
|
159
|
+
|
160
|
+
.PHONY: check-jsl check-jsl-node check-jsl-web
|
161
|
+
check-jsl: check-jsl-node check-jsl-web
|
162
|
+
|
163
|
+
check-jsl-node: $(JSL_FILES_NODE:%=%.jslnodechk)
|
164
|
+
|
165
|
+
check-jsl-web: $(JSL_FILES_WEB:%=%.jslwebchk)
|
166
|
+
|
167
|
+
%.jslnodechk: % $(JSL_EXEC)
|
168
|
+
$(JSL) $(JSL_FLAGS) $(JSL_FLAGS_NODE) $<
|
169
|
+
|
170
|
+
%.jslwebchk: % $(JSL_EXEC)
|
171
|
+
$(JSL) $(JSL_FLAGS) $(JSL_FLAGS_WEB) $<
|
172
|
+
|
173
|
+
.PHONY: check-jsstyle
|
174
|
+
check-jsstyle: $(JSSTYLE_FILES:%=%.jsstylechk)
|
175
|
+
|
176
|
+
%.jsstylechk: % $(JSSTYLE_EXEC)
|
177
|
+
$(JSSTYLE) $(JSSTYLE_FLAGS) $<
|
178
|
+
|
179
|
+
.PHONY: check
|
180
|
+
check: check-jsl check-jsstyle check-bash
|
181
|
+
@echo check ok
|
182
|
+
|
183
|
+
.PHONY: clean
|
184
|
+
clean::
|
185
|
+
-$(RMTREE) $(CLEAN_FILES)
|
186
|
+
|
187
|
+
.PHONY: distclean
|
188
|
+
distclean:: clean
|
189
|
+
-$(RMTREE) $(DISTCLEAN_FILES)
|
190
|
+
|
191
|
+
CSCOPE_FILES = cscope.in.out cscope.out cscope.po.out
|
192
|
+
CLEAN_FILES += $(CSCOPE_FILES)
|
193
|
+
|
194
|
+
.PHONY: xref
|
195
|
+
xref: cscope.files
|
196
|
+
$(CSCOPE) -bqR
|
197
|
+
|
198
|
+
.PHONY: cscope.files
|
199
|
+
cscope.files:
|
200
|
+
find $(CSCOPE_DIRS) -name '*.c' -o -name '*.h' -o -name '*.cc' \
|
201
|
+
-o -name '*.js' -o -name '*.s' -o -name '*.cpp' > $@
|
202
|
+
|
203
|
+
#
|
204
|
+
# The "docs" target is complicated because we do several things here:
|
205
|
+
#
|
206
|
+
# (1) Use restdown to build HTML and JSON files from each of DOC_FILES.
|
207
|
+
#
|
208
|
+
# (2) Copy these files into $(DOC_BUILD) (build/docs/public), which
|
209
|
+
# functions as a complete copy of the documentation that could be
|
210
|
+
# mirrored or served over HTTP.
|
211
|
+
#
|
212
|
+
# (3) Then copy any directories and media from docs/media into
|
213
|
+
# $(DOC_BUILD)/media. This allows projects to include their own media,
|
214
|
+
# including files that will override same-named files provided by
|
215
|
+
# restdown.
|
216
|
+
#
|
217
|
+
# Step (3) is the surprisingly complex part: in order to do this, we need to
|
218
|
+
# identify the subdirectories in docs/media, recreate them in
|
219
|
+
# $(DOC_BUILD)/media, then do the same with the files.
|
220
|
+
#
|
221
|
+
DOC_MEDIA_DIRS := $(shell find docs/media -type d 2>/dev/null | grep -v "^docs/media$$")
|
222
|
+
DOC_MEDIA_DIRS := $(DOC_MEDIA_DIRS:docs/media/%=%)
|
223
|
+
DOC_MEDIA_DIRS_BUILD := $(DOC_MEDIA_DIRS:%=$(DOC_BUILD)/media/%)
|
224
|
+
|
225
|
+
DOC_MEDIA_FILES := $(shell find docs/media -type f 2>/dev/null)
|
226
|
+
DOC_MEDIA_FILES := $(DOC_MEDIA_FILES:docs/media/%=%)
|
227
|
+
DOC_MEDIA_FILES_BUILD := $(DOC_MEDIA_FILES:%=$(DOC_BUILD)/media/%)
|
228
|
+
|
229
|
+
#
|
230
|
+
# Like the other targets, "docs" just depends on the final files we want to
|
231
|
+
# create in $(DOC_BUILD), leveraging other targets and recipes to define how
|
232
|
+
# to get there.
|
233
|
+
#
|
234
|
+
.PHONY: docs
|
235
|
+
docs: \
|
236
|
+
$(DOC_FILES:%.restdown=$(DOC_BUILD)/%.html) \
|
237
|
+
$(DOC_FILES:%.restdown=$(DOC_BUILD)/%.json) \
|
238
|
+
$(DOC_MEDIA_FILES_BUILD)
|
239
|
+
|
240
|
+
#
|
241
|
+
# We keep the intermediate files so that the next build can see whether the
|
242
|
+
# files in DOC_BUILD are up to date.
|
243
|
+
#
|
244
|
+
.PRECIOUS: \
|
245
|
+
$(DOC_FILES:%.restdown=docs/%.html) \
|
246
|
+
$(DOC_FILES:%.restdown=docs/%json)
|
247
|
+
|
248
|
+
#
|
249
|
+
# We do clean those intermediate files, as well as all of DOC_BUILD.
|
250
|
+
#
|
251
|
+
CLEAN_FILES += \
|
252
|
+
$(DOC_BUILD) \
|
253
|
+
$(DOC_FILES:%.restdown=docs/%.html) \
|
254
|
+
$(DOC_FILES:%.restdown=docs/%.json)
|
255
|
+
|
256
|
+
#
|
257
|
+
# Before installing the files, we must make sure the directories exist. The |
|
258
|
+
# syntax tells make that the dependency need only exist, not be up to date.
|
259
|
+
# Otherwise, it might try to rebuild spuriously because the directory itself
|
260
|
+
# appears out of date.
|
261
|
+
#
|
262
|
+
$(DOC_MEDIA_FILES_BUILD): | $(DOC_MEDIA_DIRS_BUILD)
|
263
|
+
|
264
|
+
$(DOC_BUILD)/%: docs/% | $(DOC_BUILD)
|
265
|
+
$(CP) $< $@
|
266
|
+
|
267
|
+
docs/%.json docs/%.html: docs/%.restdown | $(DOC_BUILD) $(RESTDOWN_EXEC)
|
268
|
+
$(RESTDOWN) $(RESTDOWN_FLAGS) -m $(DOC_BUILD) $<
|
269
|
+
|
270
|
+
$(DOC_BUILD):
|
271
|
+
$(MKDIR) $@
|
272
|
+
|
273
|
+
$(DOC_MEDIA_DIRS_BUILD):
|
274
|
+
$(MKDIR) $@
|
275
|
+
|
276
|
+
#
|
277
|
+
# The default "test" target does nothing. This should usually be overridden by
|
278
|
+
# the parent Makefile. It's included here so we can define "prepush" without
|
279
|
+
# requiring the repo to define "test".
|
280
|
+
#
|
281
|
+
.PHONY: test
|
282
|
+
test:
|
283
|
+
|
284
|
+
.PHONY: prepush
|
285
|
+
prepush: check test
|
@@ -0,0 +1,120 @@
|
|
1
|
+
# verror: richer JavaScript errors
|
2
|
+
|
3
|
+
This module provides two classes: VError, for accretive errors, and WError, for
|
4
|
+
wrapping errors. Both support printf-style error messages using extsprintf.
|
5
|
+
|
6
|
+
## Printf-style errors
|
7
|
+
|
8
|
+
At the most basic level, VError is just like JavaScript's Error class, but with
|
9
|
+
printf-style arguments:
|
10
|
+
|
11
|
+
var verror = require('verror');
|
12
|
+
|
13
|
+
var opname = 'read';
|
14
|
+
var err = new verror.VError('"%s" operation failed', opname);
|
15
|
+
console.log(err.message);
|
16
|
+
console.log(err.stack);
|
17
|
+
|
18
|
+
This prints:
|
19
|
+
|
20
|
+
"read" operation failed
|
21
|
+
"read" operation failed
|
22
|
+
at Object.<anonymous> (/Users/dap/node-verror/examples/varargs.js:4:11)
|
23
|
+
at Module._compile (module.js:449:26)
|
24
|
+
at Object.Module._extensions..js (module.js:467:10)
|
25
|
+
at Module.load (module.js:356:32)
|
26
|
+
at Function.Module._load (module.js:312:12)
|
27
|
+
at Module.runMain (module.js:492:10)
|
28
|
+
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
|
29
|
+
|
30
|
+
|
31
|
+
## VError for accretive error messages
|
32
|
+
|
33
|
+
More interestingly, you can use VError to build up an error describing what
|
34
|
+
happened at various levels in the stack. For example, suppose you have a
|
35
|
+
request handler that stats a file and fails if it doesn't exist:
|
36
|
+
|
37
|
+
var fs = require('fs');
|
38
|
+
var verror = require('verror');
|
39
|
+
|
40
|
+
function checkFile(filename, callback) {
|
41
|
+
fs.stat(filename, function (err) {
|
42
|
+
if (err)
|
43
|
+
/* Annotate the "stat" error with what we were doing. */
|
44
|
+
return (callback(new verror.VError(err,
|
45
|
+
'failed to check "%s"', filename)));
|
46
|
+
|
47
|
+
/* ... */
|
48
|
+
});
|
49
|
+
}
|
50
|
+
|
51
|
+
function handleRequest(filename, callback) {
|
52
|
+
checkFile('/nonexistent', function (err) {
|
53
|
+
if (err) {
|
54
|
+
/* Annotate the "checkFile" error with what we were doing. */
|
55
|
+
return (callback(new verror.VError(err, 'request failed')));
|
56
|
+
}
|
57
|
+
|
58
|
+
/* ... */
|
59
|
+
});
|
60
|
+
}
|
61
|
+
|
62
|
+
handleRequest('/nonexistent', function (err) {
|
63
|
+
if (err)
|
64
|
+
console.log(err.message);
|
65
|
+
/* ... */
|
66
|
+
});
|
67
|
+
|
68
|
+
Since the file "/nonexistent" doesn't exist, this prints out:
|
69
|
+
|
70
|
+
request failed: failed to check "/nonexistent": ENOENT, stat '/nonexistent'
|
71
|
+
|
72
|
+
The idea here is that the lowest level (Node's "fs.stat" function) generates an
|
73
|
+
arbitrary error, and each higher level (request handler and stat callback)
|
74
|
+
creates a new VError that annotates the previous error with what it was doing,
|
75
|
+
so that the result is a clear message explaining what failed at each level.
|
76
|
+
|
77
|
+
This plays nicely with extsprintf's "%r" specifier, which prints out a
|
78
|
+
Java-style stacktrace with the whole chain of exceptions:
|
79
|
+
|
80
|
+
EXCEPTION: VError: request failed: failed to check "/nonexistent": ENOENT, stat '/nonexistent'
|
81
|
+
at /Users/dap/work/node-verror/examples/levels.js:21:21
|
82
|
+
at /Users/dap/work/node-verror/examples/levels.js:9:12
|
83
|
+
at Object.oncomplete (fs.js:297:15)
|
84
|
+
Caused by: EXCEPTION: VError: failed to check "/nonexistent": ENOENT, stat '/nonexistent'
|
85
|
+
at /Users/dap/work/node-verror/examples/levels.js:9:21
|
86
|
+
at Object.oncomplete (fs.js:297:15)
|
87
|
+
Caused by: EXCEPTION: Error: Error: ENOENT, stat '/nonexistent'
|
88
|
+
|
89
|
+
|
90
|
+
## WError for wrapped errors
|
91
|
+
|
92
|
+
Sometimes you don't want an Error's "message" field to include the details of
|
93
|
+
all of the low-level errors, but you still want to be able to get at them
|
94
|
+
programmatically. For example, in an HTTP server, you probably don't want to
|
95
|
+
spew all of the low-level errors back to the client, but you do want to include
|
96
|
+
them in the audit log entry for the request. In that case, you can use a
|
97
|
+
WError, which is created exactly like VError (and also supports both
|
98
|
+
printf-style arguments and an optional cause), but the resulting "message" only
|
99
|
+
contains the top-level error. It's also more verbose, including the class
|
100
|
+
associated with each error in the cause chain. Using the same example above,
|
101
|
+
but replacing the VError in handleRequest with WError, we get this output:
|
102
|
+
|
103
|
+
request failed
|
104
|
+
|
105
|
+
That's what we wanted -- just a high-level summary for the client. But we can
|
106
|
+
get the object's toString() for the full details:
|
107
|
+
|
108
|
+
WError: request failed; caused by WError: failed to check "/nonexistent";
|
109
|
+
caused by Error: ENOENT, stat '/nonexistent'
|
110
|
+
|
111
|
+
# Contributing
|
112
|
+
|
113
|
+
Contributions welcome. Code should be "make check" clean. To run "make check",
|
114
|
+
you'll need these tools:
|
115
|
+
|
116
|
+
* https://github.com/davepacheco/jsstyle
|
117
|
+
* https://github.com/davepacheco/javascriptlint
|
118
|
+
|
119
|
+
If you're changing something non-trivial or user-facing, you may want to submit
|
120
|
+
an issue first.
|
@@ -0,0 +1,36 @@
|
|
1
|
+
var extsprintf = require('extsprintf');
|
2
|
+
var fs = require('fs');
|
3
|
+
var verror = require('../lib/verror');
|
4
|
+
|
5
|
+
function checkFile(filename, callback) {
|
6
|
+
fs.stat(filename, function (err) {
|
7
|
+
if (err)
|
8
|
+
/* Annotate the "stat" error with what we were doing. */
|
9
|
+
return (callback(new verror.VError(err,
|
10
|
+
'failed to check "%s"', filename)));
|
11
|
+
|
12
|
+
/* ... */
|
13
|
+
return (callback());
|
14
|
+
});
|
15
|
+
}
|
16
|
+
|
17
|
+
function handleRequest(filename, callback) {
|
18
|
+
checkFile('/nonexistent', function (err) {
|
19
|
+
if (err)
|
20
|
+
/* Annotate the "checkFile" error. */
|
21
|
+
return (callback(new verror.VError(
|
22
|
+
err, 'request failed')));
|
23
|
+
|
24
|
+
/* ... */
|
25
|
+
return (callback());
|
26
|
+
});
|
27
|
+
}
|
28
|
+
|
29
|
+
handleRequest('/nonexistent', function (err) {
|
30
|
+
if (err) {
|
31
|
+
console.log(err.message);
|
32
|
+
console.log(extsprintf.sprintf('%r', err));
|
33
|
+
}
|
34
|
+
|
35
|
+
/* ... */
|
36
|
+
});
|