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
@@ -1,9 +1,11 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
1
3
|
var should = require('should');
|
2
|
-
var extend = require('../index');
|
4
|
+
var extend = require('../index'); // it must be ./lib/deep-extend.js
|
3
5
|
|
4
|
-
describe('deep-extend', function() {
|
6
|
+
describe('deep-extend', function () {
|
5
7
|
|
6
|
-
it('can extend on 1 level', function() {
|
8
|
+
it('can extend on 1 level', function () {
|
7
9
|
var a = { hello: 1 };
|
8
10
|
var b = { world: 2 };
|
9
11
|
extend(a, b);
|
@@ -13,7 +15,7 @@ describe('deep-extend', function() {
|
|
13
15
|
});
|
14
16
|
});
|
15
17
|
|
16
|
-
it('can extend on 2 levels', function() {
|
18
|
+
it('can extend on 2 levels', function () {
|
17
19
|
var a = { person: { name: 'John' } };
|
18
20
|
var b = { person: { age: 30 } };
|
19
21
|
extend(a, b);
|
@@ -22,7 +24,7 @@ describe('deep-extend', function() {
|
|
22
24
|
});
|
23
25
|
});
|
24
26
|
|
25
|
-
it('can extend with Buffer values', function() {
|
27
|
+
it('can extend with Buffer values', function () {
|
26
28
|
var a = { hello: 1 };
|
27
29
|
var b = { value: new Buffer('world') };
|
28
30
|
extend(a, b);
|
@@ -54,4 +56,165 @@ describe('deep-extend', function() {
|
|
54
56
|
b.d.getTime().should.not.eql( a.d.getTime() );
|
55
57
|
});
|
56
58
|
|
59
|
+
it('RegExp objects', function () {
|
60
|
+
var a = { d: new RegExp() };
|
61
|
+
var b = extend({}, a);
|
62
|
+
b.d.should.instanceOf(RegExp);
|
63
|
+
});
|
64
|
+
|
65
|
+
it('RegExp object is cloned', function () {
|
66
|
+
var a = { d: new RegExp('b', 'g') };
|
67
|
+
var b = extend({}, a);
|
68
|
+
b.d.test('abc');
|
69
|
+
b.d.lastIndex.should.not.eql( a.d.lastIndex );
|
70
|
+
});
|
71
|
+
|
72
|
+
it('doesn\'t change sources', function () {
|
73
|
+
var a = {a: [1]};
|
74
|
+
var b = {a: [2]};
|
75
|
+
var c = {c: 3};
|
76
|
+
var d = extend({}, a, b, c);
|
77
|
+
|
78
|
+
a.should.eql({a: [1]});
|
79
|
+
b.should.eql({a: [2]});
|
80
|
+
c.should.eql({c: 3});
|
81
|
+
});
|
82
|
+
|
83
|
+
it('example from README.md', function () {
|
84
|
+
var obj1 = {
|
85
|
+
a: 1,
|
86
|
+
b: 2,
|
87
|
+
d: {
|
88
|
+
a: 1,
|
89
|
+
b: [],
|
90
|
+
c: { test1: 123, test2: 321 }
|
91
|
+
},
|
92
|
+
f: 5,
|
93
|
+
g: 123,
|
94
|
+
i: 321,
|
95
|
+
j: [1, 2]
|
96
|
+
};
|
97
|
+
var obj2 = {
|
98
|
+
b: 3,
|
99
|
+
c: 5,
|
100
|
+
d: {
|
101
|
+
b: { first: 'one', second: 'two' },
|
102
|
+
c: { test2: 222 }
|
103
|
+
},
|
104
|
+
e: { one: 1, two: 2 },
|
105
|
+
f: [],
|
106
|
+
g: (void 0),
|
107
|
+
h: /abc/g,
|
108
|
+
i: null,
|
109
|
+
j: [3, 4]
|
110
|
+
};
|
111
|
+
|
112
|
+
extend(obj1, obj2);
|
113
|
+
|
114
|
+
obj1.should.eql({
|
115
|
+
a: 1,
|
116
|
+
b: 3,
|
117
|
+
d: {
|
118
|
+
a: 1,
|
119
|
+
b: { first: 'one', second: 'two' },
|
120
|
+
c: { test1: 123, test2: 222 }
|
121
|
+
},
|
122
|
+
f: [],
|
123
|
+
g: undefined,
|
124
|
+
c: 5,
|
125
|
+
e: { one: 1, two: 2 },
|
126
|
+
h: /abc/g,
|
127
|
+
i: null,
|
128
|
+
j: [3, 4]
|
129
|
+
});
|
130
|
+
|
131
|
+
('g' in obj1).should.eql(true);
|
132
|
+
('x' in obj1).should.eql(false);
|
133
|
+
});
|
134
|
+
|
135
|
+
it('clone arrays instead of extend', function () {
|
136
|
+
extend({a: [1, 2, 3]}, {a: [2, 3]}).should.eql({a: [2, 3]});
|
137
|
+
});
|
138
|
+
|
139
|
+
it('recursive clone objects and special objects in cloned arrays', function () {
|
140
|
+
var obj1 = {
|
141
|
+
x: 1,
|
142
|
+
y: new Buffer('foo')
|
143
|
+
};
|
144
|
+
var b = new Buffer('bar');
|
145
|
+
var obj2 = {
|
146
|
+
x: 1,
|
147
|
+
y: [2, 4, obj1, b],
|
148
|
+
z: new Buffer('test')
|
149
|
+
};
|
150
|
+
var foo = {
|
151
|
+
a: [obj2, obj2]
|
152
|
+
};
|
153
|
+
var bar = extend({}, foo);
|
154
|
+
bar.a[0].x = 2;
|
155
|
+
bar.a[0].z.write('text', 'utf-8');
|
156
|
+
bar.a[1].x = 3;
|
157
|
+
bar.a[1].z.write('lel', 'utf-8');
|
158
|
+
bar.a[0].y[0] = 3;
|
159
|
+
bar.a[0].y[2].x = 5;
|
160
|
+
bar.a[0].y[2].y.write('heh', 'utf-8');
|
161
|
+
bar.a[0].y[3].write('ho', 'utf-8');
|
162
|
+
bar.a[1].y[1] = 3;
|
163
|
+
bar.a[1].y[2].y.write('nah', 'utf-8');
|
164
|
+
bar.a[1].y[3].write('he', 'utf-8');
|
165
|
+
|
166
|
+
obj2.x.should.eql(1);
|
167
|
+
obj2.z.toString().should.eql('test');
|
168
|
+
bar.a[0].x.should.eql(2);
|
169
|
+
bar.a[0].z.toString().should.eql('text');
|
170
|
+
bar.a[1].x.should.eql(3);
|
171
|
+
bar.a[1].z.toString().should.eql('lelt');
|
172
|
+
obj1.x.should.eql(1);
|
173
|
+
obj1.y.toString().should.eql('foo');
|
174
|
+
b.toString().should.eql('bar');
|
175
|
+
|
176
|
+
bar.a[0].y[0].should.eql(3);
|
177
|
+
bar.a[0].y[1].should.eql(4);
|
178
|
+
bar.a[0].y[2].x.should.eql(5);
|
179
|
+
bar.a[0].y[2].y.toString().should.eql('heh');
|
180
|
+
bar.a[0].y[3].toString().should.eql('hor');
|
181
|
+
|
182
|
+
bar.a[1].y[0].should.eql(2);
|
183
|
+
bar.a[1].y[1].should.eql(3);
|
184
|
+
bar.a[1].y[2].x.should.eql(1);
|
185
|
+
bar.a[1].y[2].y.toString().should.eql('nah');
|
186
|
+
bar.a[1].y[3].toString().should.eql('her');
|
187
|
+
|
188
|
+
foo.a.length.should.eql(2);
|
189
|
+
bar.a.length.should.eql(2);
|
190
|
+
Object.keys(obj2).should.eql(['x', 'y', 'z']);
|
191
|
+
Object.keys(bar.a[0]).should.eql(['x', 'y', 'z']);
|
192
|
+
Object.keys(bar.a[1]).should.eql(['x', 'y', 'z']);
|
193
|
+
obj2.y.length.should.eql(4);
|
194
|
+
bar.a[0].y.length.should.eql(4);
|
195
|
+
bar.a[1].y.length.should.eql(4);
|
196
|
+
Object.keys(obj2.y[2]).should.eql(['x', 'y']);
|
197
|
+
Object.keys(bar.a[0].y[2]).should.eql(['x', 'y']);
|
198
|
+
Object.keys(bar.a[1].y[2]).should.eql(['x', 'y']);
|
199
|
+
});
|
200
|
+
|
201
|
+
it('checking keys for hasOwnPrototype', function () {
|
202
|
+
var A = function () {
|
203
|
+
this.x = 1;
|
204
|
+
this.y = 2;
|
205
|
+
};
|
206
|
+
A.prototype.z = 3;
|
207
|
+
var foo = new A();
|
208
|
+
extend({x: 123}, foo).should.eql({
|
209
|
+
x: 1,
|
210
|
+
y: 2
|
211
|
+
});
|
212
|
+
foo.z = 5;
|
213
|
+
extend({x: 123}, foo, {y: 22}).should.eql({
|
214
|
+
x: 1,
|
215
|
+
y: 22,
|
216
|
+
z: 5
|
217
|
+
});
|
218
|
+
});
|
219
|
+
|
57
220
|
});
|
@@ -45,8 +45,7 @@
|
|
45
45
|
],
|
46
46
|
"name": "delegates",
|
47
47
|
"optionalDependencies": {},
|
48
|
-
"readme": "
|
49
|
-
"readmeFilename": "Readme.md",
|
48
|
+
"readme": "ERROR: No README data found!",
|
50
49
|
"repository": {
|
51
50
|
"type": "git",
|
52
51
|
"url": "git://github.com/visionmedia/node-delegates.git"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014 Jeremie Miller
|
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.
|
@@ -0,0 +1,8 @@
|
|
1
|
+
ecc-jsbn
|
2
|
+
========
|
3
|
+
|
4
|
+
ECC package based on [jsbn](https://github.com/andyperlitch/jsbn) from [Tom Wu](http://www-cs-students.stanford.edu/~tjw/).
|
5
|
+
|
6
|
+
This is a subset of the same interface as the [node compiled module](https://github.com/quartzjer/ecc), but works in the browser too.
|
7
|
+
|
8
|
+
Also uses point compression now from [https://github.com/kaielvin](https://github.com/kaielvin/jsbn-ec-point-compression).
|
@@ -0,0 +1,57 @@
|
|
1
|
+
var crypto = require("crypto");
|
2
|
+
var BigInteger = require("jsbn").BigInteger;
|
3
|
+
var ECPointFp = require("./lib/ec.js").ECPointFp;
|
4
|
+
exports.ECCurves = require("./lib/sec.js");
|
5
|
+
|
6
|
+
// zero prepad
|
7
|
+
function unstupid(hex,len)
|
8
|
+
{
|
9
|
+
return (hex.length >= len) ? hex : unstupid("0"+hex,len);
|
10
|
+
}
|
11
|
+
|
12
|
+
exports.ECKey = function(curve, key, isPublic)
|
13
|
+
{
|
14
|
+
var priv;
|
15
|
+
var c = curve();
|
16
|
+
var n = c.getN();
|
17
|
+
var bytes = Math.floor(n.bitLength()/8);
|
18
|
+
|
19
|
+
if(key)
|
20
|
+
{
|
21
|
+
if(isPublic)
|
22
|
+
{
|
23
|
+
var curve = c.getCurve();
|
24
|
+
// var x = key.slice(1,bytes+1); // skip the 04 for uncompressed format
|
25
|
+
// var y = key.slice(bytes+1);
|
26
|
+
// this.P = new ECPointFp(curve,
|
27
|
+
// curve.fromBigInteger(new BigInteger(x.toString("hex"), 16)),
|
28
|
+
// curve.fromBigInteger(new BigInteger(y.toString("hex"), 16)));
|
29
|
+
this.P = curve.decodePointHex(key.toString("hex"));
|
30
|
+
}else{
|
31
|
+
if(key.length != bytes) return false;
|
32
|
+
priv = new BigInteger(key.toString("hex"), 16);
|
33
|
+
}
|
34
|
+
}else{
|
35
|
+
var n1 = n.subtract(BigInteger.ONE);
|
36
|
+
var r = new BigInteger(crypto.randomBytes(n.bitLength()));
|
37
|
+
priv = r.mod(n1).add(BigInteger.ONE);
|
38
|
+
this.P = c.getG().multiply(priv);
|
39
|
+
}
|
40
|
+
if(this.P)
|
41
|
+
{
|
42
|
+
// var pubhex = unstupid(this.P.getX().toBigInteger().toString(16),bytes*2)+unstupid(this.P.getY().toBigInteger().toString(16),bytes*2);
|
43
|
+
// this.PublicKey = new Buffer("04"+pubhex,"hex");
|
44
|
+
this.PublicKey = new Buffer(c.getCurve().encodeCompressedPointHex(this.P),"hex");
|
45
|
+
}
|
46
|
+
if(priv)
|
47
|
+
{
|
48
|
+
this.PrivateKey = new Buffer(unstupid(priv.toString(16),bytes*2),"hex");
|
49
|
+
this.deriveSharedSecret = function(key)
|
50
|
+
{
|
51
|
+
if(!key || !key.P) return false;
|
52
|
+
var S = key.P.multiply(priv);
|
53
|
+
return new Buffer(unstupid(S.getX().toBigInteger().toString(16),bytes*2),"hex");
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
Licensing
|
2
|
+
---------
|
3
|
+
|
4
|
+
This software is covered under the following copyright:
|
5
|
+
|
6
|
+
/*
|
7
|
+
* Copyright (c) 2003-2005 Tom Wu
|
8
|
+
* All Rights Reserved.
|
9
|
+
*
|
10
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
11
|
+
* a copy of this software and associated documentation files (the
|
12
|
+
* "Software"), to deal in the Software without restriction, including
|
13
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
14
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
15
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
16
|
+
* the following conditions:
|
17
|
+
*
|
18
|
+
* The above copyright notice and this permission notice shall be
|
19
|
+
* included in all copies or substantial portions of the Software.
|
20
|
+
*
|
21
|
+
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
22
|
+
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
23
|
+
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
24
|
+
*
|
25
|
+
* IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
|
26
|
+
* INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
|
27
|
+
* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
|
28
|
+
* THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
|
29
|
+
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
30
|
+
*
|
31
|
+
* In addition, the following condition applies:
|
32
|
+
*
|
33
|
+
* All redistributions must retain an intact copy of this copyright notice
|
34
|
+
* and disclaimer.
|
35
|
+
*/
|
36
|
+
|
37
|
+
Address all questions regarding this license to:
|
38
|
+
|
39
|
+
Tom Wu
|
40
|
+
tjw@cs.Stanford.EDU
|