fsevents 1.0.12 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fsevents might be problematic. Click here for more details.
- package/.npmignore +1 -3
- package/.travis.yml +6 -5
- package/build/.target.mk +49 -0
- package/build/Makefile +352 -0
- package/build/action_after_build.target.mk +32 -0
- package/build/binding.Makefile +6 -0
- package/build/fse.target.mk +169 -0
- package/build/gyp-mac-tool +612 -0
- package/lib/binding/Release/node-v11-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v46-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v47-darwin-x64/fse.node +0 -0
- package/node_modules/abbrev/package.json +82 -0
- package/node_modules/{lodash.repeat/LICENSE → ansi-regex/license} +5 -7
- package/node_modules/ansi-regex/package.json +20 -2
- package/node_modules/{lodash.padstart/LICENSE → ansi-styles/license} +5 -7
- package/node_modules/ansi-styles/package.json +21 -4
- package/node_modules/aproba/LICENSE +14 -0
- package/node_modules/aproba/README.md +59 -0
- package/node_modules/aproba/index.js +62 -0
- package/node_modules/aproba/package.json +88 -0
- package/node_modules/are-we-there-yet/package.json +21 -4
- package/node_modules/asn1/package.json +19 -1
- package/node_modules/assert-plus/package.json +21 -4
- package/node_modules/async/CHANGELOG.md +125 -0
- package/node_modules/async/LICENSE +19 -0
- package/node_modules/async/package.json +20 -2
- package/node_modules/aws-sign2/package.json +20 -2
- package/node_modules/aws4/aws4.js +1 -1
- package/node_modules/aws4/lru.js +96 -0
- package/node_modules/aws4/package.json +31 -16
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → balanced-match}/.npmignore +2 -0
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/README.md +5 -3
- package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/index.js +9 -1
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/package.json +35 -13
- package/node_modules/bl/README.md +3 -3
- package/node_modules/bl/bl.js +54 -38
- package/node_modules/bl/node_modules/readable-stream/.npmignore +5 -0
- package/node_modules/bl/node_modules/readable-stream/.travis.yml +52 -0
- package/node_modules/bl/node_modules/readable-stream/LICENSE +18 -0
- package/node_modules/bl/node_modules/readable-stream/README.md +36 -0
- package/node_modules/bl/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/bl/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +75 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +26 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +880 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +180 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +516 -0
- package/node_modules/bl/node_modules/readable-stream/package.json +105 -0
- package/node_modules/bl/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/bl/node_modules/readable-stream/readable.js +12 -0
- package/node_modules/bl/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/bl/node_modules/readable-stream/writable.js +1 -0
- package/node_modules/bl/package.json +39 -15
- package/node_modules/bl/test/test.js +71 -2
- package/node_modules/block-stream/package.json +37 -12
- package/node_modules/boom/package.json +20 -2
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/package.json +34 -16
- package/node_modules/buffer-shims/index.js +108 -0
- package/node_modules/buffer-shims/license.md +19 -0
- package/node_modules/buffer-shims/package.json +77 -0
- package/node_modules/buffer-shims/readme.md +21 -0
- package/node_modules/caseless/package.json +20 -2
- package/node_modules/{lodash.pad/LICENSE → chalk/license} +5 -7
- package/node_modules/chalk/package.json +21 -4
- package/node_modules/code-point-at/index.js +33 -0
- package/node_modules/{lodash.padend/LICENSE → code-point-at/license} +5 -7
- package/node_modules/code-point-at/package.json +96 -0
- package/node_modules/code-point-at/readme.md +34 -0
- package/node_modules/combined-stream/package.json +20 -2
- package/node_modules/commander/History.md +261 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/package.json +20 -2
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/package.json +21 -3
- package/node_modules/console-control-strings/LICENSE +13 -0
- package/node_modules/console-control-strings/README.md +145 -0
- package/node_modules/console-control-strings/README.md~ +140 -0
- package/node_modules/console-control-strings/index.js +125 -0
- package/node_modules/console-control-strings/package.json +88 -0
- package/node_modules/core-util-is/package.json +21 -2
- package/node_modules/cryptiles/package.json +20 -2
- package/node_modules/dashdash/lib/dashdash.js +34 -1
- package/node_modules/dashdash/node_modules/assert-plus/package.json +21 -4
- package/node_modules/dashdash/package.json +29 -12
- package/node_modules/debug/package.json +20 -2
- package/node_modules/deep-extend/CHANGELOG.md +21 -0
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → deep-extend}/LICENSE +3 -1
- package/node_modules/deep-extend/package.json +21 -4
- package/node_modules/delayed-stream/package.json +20 -2
- package/node_modules/delegates/package.json +21 -4
- package/node_modules/ecc-jsbn/package.json +20 -2
- package/node_modules/escape-string-regexp/license +21 -0
- package/node_modules/escape-string-regexp/package.json +21 -4
- package/node_modules/extend/package.json +20 -2
- package/node_modules/extsprintf/package.json +20 -3
- package/node_modules/forever-agent/package.json +20 -2
- package/node_modules/form-data/package.json +21 -4
- package/node_modules/fs.realpath/LICENSE +43 -0
- package/node_modules/fs.realpath/README.md +33 -0
- package/node_modules/fs.realpath/index.js +66 -0
- package/node_modules/fs.realpath/old.js +303 -0
- package/node_modules/fs.realpath/package.json +86 -0
- package/node_modules/fstream/.travis.yml +4 -4
- package/node_modules/fstream/lib/collect.js +2 -0
- package/node_modules/fstream/package.json +37 -15
- package/node_modules/fstream-ignore/package.json +45 -17
- package/node_modules/gauge/CHANGELOG.md +131 -0
- package/node_modules/gauge/CHANGELOG.md~ +123 -0
- package/node_modules/gauge/README.md +317 -88
- package/node_modules/gauge/README.md~ +393 -0
- package/node_modules/gauge/base-theme.js +14 -0
- package/node_modules/gauge/error.js +24 -0
- package/node_modules/gauge/has-color.js +12 -0
- package/node_modules/gauge/index.js +226 -0
- package/node_modules/gauge/package.json +67 -21
- package/node_modules/gauge/plumbing.js +47 -0
- package/node_modules/gauge/process.js +3 -0
- package/node_modules/gauge/progress-bar.js +29 -219
- package/node_modules/gauge/render-template.js +181 -0
- package/node_modules/gauge/set-immediate.js +7 -0
- package/node_modules/gauge/set-interval.js +3 -0
- package/node_modules/gauge/spin.js +5 -0
- package/node_modules/gauge/template-item.js +73 -0
- package/node_modules/gauge/theme-set.js +115 -0
- package/node_modules/gauge/themes.js +54 -0
- package/node_modules/gauge/wide-truncate.js +25 -0
- package/node_modules/generate-function/package.json +20 -2
- package/node_modules/generate-object-property/package.json +20 -2
- package/node_modules/getpass/.npmignore +8 -0
- package/node_modules/getpass/.travis.yml +9 -0
- package/node_modules/getpass/LICENSE +18 -0
- package/node_modules/getpass/README.md +32 -0
- package/node_modules/getpass/lib/index.js +123 -0
- package/node_modules/getpass/node_modules/assert-plus/AUTHORS +6 -0
- package/node_modules/getpass/node_modules/assert-plus/CHANGES.md +14 -0
- package/node_modules/getpass/node_modules/assert-plus/README.md +162 -0
- package/node_modules/getpass/node_modules/assert-plus/assert.js +211 -0
- package/node_modules/getpass/node_modules/assert-plus/package.json +107 -0
- package/node_modules/getpass/package.json +82 -0
- package/node_modules/glob/changelog.md +67 -0
- package/node_modules/{rimraf/node_modules/glob → glob}/glob.js +2 -1
- package/node_modules/glob/package.json +103 -0
- package/node_modules/{rimraf/node_modules/glob → glob}/sync.js +2 -1
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +82 -2
- package/node_modules/graceful-fs/package.json +30 -12
- package/node_modules/graceful-readlink/package.json +20 -2
- package/node_modules/har-validator/LICENSE +13 -0
- package/node_modules/har-validator/package.json +20 -2
- package/node_modules/has-ansi/license +21 -0
- package/node_modules/has-ansi/package.json +20 -2
- package/node_modules/has-color/index.js +32 -0
- package/node_modules/has-color/package.json +97 -0
- package/node_modules/has-color/readme.md +30 -0
- package/node_modules/has-unicode/index.js +3 -8
- package/node_modules/has-unicode/package.json +36 -12
- package/node_modules/hawk/package.json +20 -2
- package/node_modules/hoek/package.json +20 -2
- package/node_modules/http-signature/package.json +20 -2
- package/node_modules/inflight/package.json +97 -0
- package/node_modules/inherits/package.json +16 -9
- package/node_modules/ini/package.json +21 -4
- package/node_modules/is-fullwidth-code-point/index.js +46 -0
- package/node_modules/is-fullwidth-code-point/license +21 -0
- package/node_modules/is-fullwidth-code-point/package.json +100 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/is-my-json-valid/package.json +21 -4
- package/node_modules/is-property/package.json +20 -2
- package/node_modules/is-typedarray/package.json +20 -2
- package/node_modules/isarray/package.json +21 -2
- package/node_modules/isstream/package.json +20 -2
- package/node_modules/jodid25519/package.json +19 -1
- package/node_modules/jsbn/package.json +19 -1
- package/node_modules/json-schema/package.json +20 -2
- package/node_modules/json-stringify-safe/package.json +20 -2
- package/node_modules/jsonpointer/package.json +19 -1
- package/node_modules/jsprim/CHANGES.md +5 -0
- package/node_modules/jsprim/README.md +13 -4
- package/node_modules/jsprim/lib/jsprim.js +12 -2
- package/node_modules/jsprim/package.json +33 -11
- package/node_modules/mime-db/HISTORY.md +21 -0
- package/node_modules/mime-db/db.json +53 -1
- package/node_modules/mime-db/package.json +36 -19
- package/node_modules/mime-types/HISTORY.md +6 -0
- package/node_modules/mime-types/package.json +33 -16
- package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/README.md +2 -9
- package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/minimatch.js +15 -3
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch → minimatch}/package.json +37 -14
- package/node_modules/mkdirp/package.json +10 -8
- package/node_modules/ms/History.md +66 -0
- package/node_modules/ms/package.json +19 -1
- package/node_modules/node-pre-gyp/CHANGELOG.md +21 -0
- package/node_modules/node-pre-gyp/appveyor.yml +2 -2
- package/node_modules/node-pre-gyp/lib/install.js +12 -2
- package/node_modules/node-pre-gyp/lib/testbinary.js +9 -9
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +84 -0
- package/node_modules/node-pre-gyp/package.json +21 -31
- package/node_modules/node-uuid/package.json +20 -2
- package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/package.json +21 -3
- package/node_modules/npmlog/CHANGELOG.md +36 -0
- package/node_modules/npmlog/CHANGELOG.md~ +31 -0
- package/node_modules/npmlog/README.md +16 -1
- package/node_modules/npmlog/log.js +97 -50
- package/node_modules/npmlog/package.json +43 -17
- package/node_modules/number-is-nan/index.js +4 -0
- package/node_modules/number-is-nan/license +21 -0
- package/node_modules/number-is-nan/package.json +94 -0
- package/node_modules/number-is-nan/readme.md +30 -0
- package/node_modules/oauth-sign/package.json +36 -12
- package/node_modules/object-assign/index.js +83 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +106 -0
- package/node_modules/object-assign/readme.md +56 -0
- package/node_modules/once/package.json +22 -2
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/package.json +22 -4
- package/node_modules/pinkie/license +21 -0
- package/node_modules/pinkie/package.json +21 -4
- package/node_modules/pinkie-promise/index.js +1 -1
- package/node_modules/pinkie-promise/license +21 -0
- package/node_modules/pinkie-promise/package.json +32 -10
- package/node_modules/process-nextick-args/index.js +31 -8
- package/node_modules/process-nextick-args/package.json +33 -10
- package/node_modules/qs/.eslintrc +5 -3
- package/node_modules/qs/.jscs.json +176 -0
- package/node_modules/qs/CHANGELOG.md +10 -0
- package/node_modules/qs/dist/qs.js +75 -63
- package/node_modules/qs/lib/parse.js +32 -29
- package/node_modules/qs/lib/stringify.js +37 -30
- package/node_modules/qs/lib/utils.js +6 -4
- package/node_modules/qs/package.json +41 -18
- package/node_modules/qs/test/parse.js +30 -0
- package/node_modules/qs/test/stringify.js +70 -0
- package/node_modules/rc/node_modules/minimist/package.json +20 -2
- package/node_modules/rc/package.json +21 -4
- package/node_modules/readable-stream/.npmignore +4 -1
- package/node_modules/readable-stream/.travis.yml +2 -0
- package/node_modules/readable-stream/README.md +2 -2
- package/node_modules/readable-stream/doc/stream.md +1772 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +33 -20
- package/node_modules/readable-stream/lib/_stream_transform.js +3 -3
- package/node_modules/readable-stream/lib/_stream_writable.js +25 -15
- package/node_modules/readable-stream/package.json +44 -15
- package/node_modules/readable-stream/readable.js +4 -0
- package/node_modules/request/.eslintrc +1 -1
- package/node_modules/request/.travis.yml +9 -3
- package/node_modules/request/CHANGELOG.md +46 -8
- package/node_modules/request/CONTRIBUTING.md +41 -4
- package/node_modules/request/README.md +9 -6
- package/node_modules/request/codecov.yml +2 -0
- package/node_modules/request/index.js +6 -5
- package/node_modules/request/lib/helpers.js +3 -3
- package/node_modules/request/package.json +52 -30
- package/node_modules/request/request.js +58 -43
- package/node_modules/rimraf/package.json +33 -16
- package/node_modules/rimraf/rimraf.js +10 -2
- package/node_modules/semver/README.md +27 -8
- package/node_modules/semver/package.json +38 -12
- package/node_modules/semver/range.bnf +1 -1
- package/node_modules/semver/semver.js +7 -1
- package/node_modules/set-blocking/CHANGELOG.md +26 -0
- package/node_modules/set-blocking/LICENSE.txt +14 -0
- package/node_modules/set-blocking/README.md +31 -0
- package/node_modules/set-blocking/index.js +7 -0
- package/node_modules/set-blocking/package.json +98 -0
- package/node_modules/signal-exit/CHANGELOG.md +17 -0
- package/node_modules/signal-exit/LICENSE.txt +14 -0
- package/node_modules/signal-exit/README.md +40 -0
- package/node_modules/signal-exit/index.js +148 -0
- package/node_modules/signal-exit/package.json +98 -0
- package/node_modules/signal-exit/signals.js +52 -0
- package/node_modules/sntp/package.json +20 -2
- package/node_modules/sshpk/.travis.yml +3 -3
- package/node_modules/sshpk/README.md +26 -7
- package/node_modules/sshpk/bin/sshpk-conv +14 -2
- package/node_modules/sshpk/bin/sshpk-sign +16 -1
- package/node_modules/sshpk/lib/errors.js +14 -1
- package/node_modules/sshpk/lib/formats/auto.js +8 -8
- package/node_modules/sshpk/lib/formats/pem.js +39 -5
- package/node_modules/sshpk/lib/formats/pkcs1.js +4 -4
- package/node_modules/sshpk/lib/formats/pkcs8.js +4 -4
- package/node_modules/sshpk/lib/formats/rfc4253.js +2 -2
- package/node_modules/sshpk/lib/formats/ssh-private.js +3 -3
- package/node_modules/sshpk/lib/formats/ssh.js +2 -2
- package/node_modules/sshpk/lib/index.js +2 -1
- package/node_modules/sshpk/lib/key.js +20 -17
- package/node_modules/sshpk/lib/private-key.js +19 -12
- package/node_modules/sshpk/lib/utils.js +40 -1
- package/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
- package/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +14 -0
- package/node_modules/sshpk/node_modules/assert-plus/README.md +162 -0
- package/node_modules/sshpk/node_modules/assert-plus/assert.js +211 -0
- package/node_modules/sshpk/node_modules/assert-plus/package.json +107 -0
- package/node_modules/sshpk/package.json +48 -30
- package/node_modules/string-width/index.js +32 -0
- package/node_modules/string-width/license +21 -0
- package/node_modules/string-width/package.json +111 -0
- package/node_modules/string-width/readme.md +41 -0
- package/node_modules/string_decoder/package.json +21 -2
- package/node_modules/stringstream/package.json +20 -2
- package/node_modules/strip-ansi/license +21 -0
- package/node_modules/strip-ansi/package.json +24 -5
- package/node_modules/strip-json-comments/license +21 -0
- package/node_modules/strip-json-comments/package.json +20 -2
- package/node_modules/supports-color/license +21 -0
- package/node_modules/supports-color/package.json +20 -2
- package/node_modules/tar/package.json +20 -2
- package/node_modules/tar-pack/package.json +34 -17
- package/node_modules/tough-cookie/LICENSE +27 -0
- package/node_modules/tough-cookie/package.json +21 -4
- package/node_modules/tunnel-agent/package.json +35 -10
- package/node_modules/tweetnacl/CHANGELOG.md +0 -53
- package/node_modules/tweetnacl/README.md +42 -24
- package/node_modules/tweetnacl/nacl-fast.js +52 -22
- package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
- package/node_modules/tweetnacl/nacl.js +51 -21
- package/node_modules/tweetnacl/nacl.min.js +1 -1
- package/node_modules/tweetnacl/package.json +56 -30
- package/node_modules/uid-number/package.json +21 -4
- package/node_modules/util-deprecate/package.json +21 -2
- package/node_modules/verror/package.json +20 -3
- package/node_modules/wide-align/.npmignore +5 -0
- package/node_modules/wide-align/LICENSE +14 -0
- package/node_modules/wide-align/README.md +47 -0
- package/node_modules/wide-align/align.js +65 -0
- package/node_modules/wide-align/package.json +85 -0
- package/node_modules/wide-align/test/align.js +37 -0
- package/node_modules/wrappy/package.json +44 -14
- package/node_modules/xtend/package.json +20 -2
- package/package.json +2 -2
- package/node_modules/ansi/.jshintrc +0 -4
- package/node_modules/ansi/History.md +0 -23
- package/node_modules/ansi/LICENSE +0 -24
- package/node_modules/ansi/README.md +0 -98
- package/node_modules/ansi/examples/beep/index.js +0 -16
- package/node_modules/ansi/examples/clear/index.js +0 -15
- package/node_modules/ansi/examples/cursorPosition.js +0 -32
- package/node_modules/ansi/examples/progress/index.js +0 -87
- package/node_modules/ansi/lib/ansi.js +0 -405
- package/node_modules/ansi/lib/newlines.js +0 -71
- package/node_modules/ansi/package.json +0 -69
- package/node_modules/aws4/node_modules/lru-cache/README.md +0 -142
- package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +0 -469
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/README.md +0 -60
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/map.js +0 -9
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/package.json +0 -60
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/pseudomap.js +0 -113
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/test/basic.js +0 -86
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.npmignore +0 -4
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.travis.yml +0 -7
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/CONTRIBUTING.md +0 -4
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/README.md +0 -204
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/package.json +0 -60
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/test/basic.js +0 -188
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/yallist.js +0 -360
- package/node_modules/aws4/node_modules/lru-cache/package.json +0 -78
- package/node_modules/block-stream/bench/block-stream-pause.js +0 -70
- package/node_modules/block-stream/bench/block-stream.js +0 -68
- package/node_modules/block-stream/bench/dropper-pause.js +0 -70
- package/node_modules/block-stream/bench/dropper.js +0 -68
- package/node_modules/block-stream/test/basic.js +0 -27
- package/node_modules/block-stream/test/nopad-thorough.js +0 -68
- package/node_modules/block-stream/test/nopad.js +0 -57
- package/node_modules/block-stream/test/pause-resume.js +0 -73
- package/node_modules/block-stream/test/thorough.js +0 -68
- package/node_modules/block-stream/test/two-stream.js +0 -59
- package/node_modules/fstream-ignore/.npmignore +0 -1
- package/node_modules/fstream-ignore/example/basic.js +0 -13
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -3
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -3
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -89
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -80
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -91
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -86
- package/node_modules/fstream-ignore/node_modules/minimatch/package.json +0 -67
- package/node_modules/fstream-ignore/test/.ignore +0 -2
- package/node_modules/fstream-ignore/test/.npmignore +0 -1
- package/node_modules/fstream-ignore/test/00-setup.js +0 -71
- package/node_modules/fstream-ignore/test/basic.js +0 -28
- package/node_modules/fstream-ignore/test/common.js +0 -40
- package/node_modules/fstream-ignore/test/ignore-most.js +0 -41
- package/node_modules/fstream-ignore/test/nested-ignores.js +0 -51
- package/node_modules/fstream-ignore/test/read-file-order.js +0 -81
- package/node_modules/fstream-ignore/test/unignore-child.js +0 -38
- package/node_modules/fstream-ignore/test/zz-cleanup.js +0 -10
- package/node_modules/gauge/.npmignore +0 -32
- package/node_modules/gauge/example.png +0 -0
- package/node_modules/gauge/test/progress-bar.js +0 -176
- package/node_modules/has-unicode/.npmignore +0 -32
- package/node_modules/has-unicode/test/index.js +0 -26
- package/node_modules/lodash.pad/README.md +0 -18
- package/node_modules/lodash.pad/index.js +0 -296
- package/node_modules/lodash.pad/package.json +0 -91
- package/node_modules/lodash.padend/README.md +0 -18
- package/node_modules/lodash.padend/index.js +0 -285
- package/node_modules/lodash.padend/package.json +0 -91
- package/node_modules/lodash.padstart/README.md +0 -18
- package/node_modules/lodash.padstart/index.js +0 -285
- package/node_modules/lodash.padstart/package.json +0 -91
- package/node_modules/lodash.repeat/README.md +0 -18
- package/node_modules/lodash.repeat/index.js +0 -215
- package/node_modules/lodash.repeat/package.json +0 -92
- package/node_modules/lodash.tostring/LICENSE +0 -23
- package/node_modules/lodash.tostring/README.md +0 -18
- package/node_modules/lodash.tostring/index.js +0 -164
- package/node_modules/lodash.tostring/package.json +0 -91
- package/node_modules/node-pre-gyp/README.md +0 -570
- package/node_modules/node-pre-gyp/node_modules/nopt/.npmignore +0 -1
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.npmignore +0 -4
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.travis.yml +0 -5
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md +0 -3
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/package.json +0 -56
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/test.js +0 -47
- package/node_modules/npmlog/.nyc_output/64996.json +0 -1
- package/node_modules/npmlog/.nyc_output/64998.json +0 -1
- package/node_modules/npmlog/.nyc_output/65000.json +0 -1
- package/node_modules/npmlog/.travis.yml +0 -14
- package/node_modules/npmlog/example.js +0 -39
- package/node_modules/npmlog/test/basic.js +0 -235
- package/node_modules/npmlog/test/progress.js +0 -131
- package/node_modules/oauth-sign/test.js +0 -89
- package/node_modules/qs/.npmignore +0 -18
- package/node_modules/qs/.travis.yml +0 -69
- package/node_modules/qs/README.md +0 -335
- package/node_modules/qs/bower.json +0 -22
- package/node_modules/qs/component.json +0 -15
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +0 -17
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +0 -36
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +0 -59
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +0 -51
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +0 -68
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js +0 -97
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +0 -16
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +0 -42
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +0 -1
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +0 -59
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +0 -25
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -216
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -912
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -122
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -191
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -3
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -50
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -62
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -6
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -13
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -39
- package/node_modules/rimraf/node_modules/glob/node_modules/once/README.md +0 -51
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -36
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +0 -59
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -51
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/rimraf/node_modules/glob/node_modules/once/once.js +0 -21
- package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +0 -71
- package/node_modules/rimraf/node_modules/glob/package.json +0 -85
- package/node_modules/semver/.npmignore +0 -4
- package/node_modules/semver/.travis.yml +0 -5
- package/node_modules/semver/test/big-numbers.js +0 -31
- package/node_modules/semver/test/clean.js +0 -29
- package/node_modules/semver/test/gtr.js +0 -173
- package/node_modules/semver/test/index.js +0 -698
- package/node_modules/semver/test/ltr.js +0 -181
- package/node_modules/semver/test/major-minor-patch.js +0 -72
- package/node_modules/tunnel-agent/.jshintrc +0 -5
- package/node_modules/tweetnacl/COPYING.txt +0 -9
- package/node_modules/wrappy/test/basic.js +0 -51
- package/test/fsevents.js +0 -27
- package/test/function.js +0 -93
- /package/node_modules/{aws4/node_modules/lru-cache/node_modules/pseudomap → abbrev}/LICENSE +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → abbrev}/README.md +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → abbrev}/abbrev.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/LICENSE.md +0 -0
- /package/node_modules/{readable-stream → bl/node_modules/readable-stream}/.zuul.yml +0 -0
- /package/node_modules/{readable-stream → bl/node_modules/readable-stream}/doc/stream.markdown +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/README.md +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/index.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/.travis.yml +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/LICENSE +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/README.markdown +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/example/map.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/index.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/test/map.js +0 -0
- /package/node_modules/{aws4/node_modules/lru-cache/node_modules/yallist → glob}/LICENSE +0 -0
- /package/node_modules/{rimraf/node_modules/glob → glob}/README.md +0 -0
- /package/node_modules/{rimraf/node_modules/glob → glob}/common.js +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/LICENSE +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/README.md +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/inflight.js +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → ini}/LICENSE +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → minimatch}/LICENSE +0 -0
- /package/node_modules/{ansi → nopt}/.npmignore +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/.travis.yml +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → nopt}/LICENSE +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/README.md +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/bin/nopt.js +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/examples/my-program.js +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/lib/nopt.js +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/test/basic.js +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/once/node_modules/wrappy → once}/LICENSE +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/index.js +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/readme.md +0 -0
@@ -1,360 +0,0 @@
|
|
1
|
-
module.exports = Yallist
|
2
|
-
|
3
|
-
Yallist.Node = Node
|
4
|
-
Yallist.create = Yallist
|
5
|
-
|
6
|
-
function Yallist (list) {
|
7
|
-
var self = this
|
8
|
-
if (!(self instanceof Yallist)) {
|
9
|
-
self = new Yallist()
|
10
|
-
}
|
11
|
-
|
12
|
-
self.tail = null
|
13
|
-
self.head = null
|
14
|
-
self.length = 0
|
15
|
-
|
16
|
-
if (list && typeof list.forEach === 'function') {
|
17
|
-
list.forEach(function (item) {
|
18
|
-
self.push(item)
|
19
|
-
})
|
20
|
-
} else if (arguments.length > 0) {
|
21
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
22
|
-
self.push(arguments[i])
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
return self
|
27
|
-
}
|
28
|
-
|
29
|
-
Yallist.prototype.removeNode = function (node) {
|
30
|
-
if (node.list !== this) {
|
31
|
-
throw new Error('removing node which does not belong to this list')
|
32
|
-
}
|
33
|
-
|
34
|
-
var next = node.next
|
35
|
-
var prev = node.prev
|
36
|
-
|
37
|
-
if (next) {
|
38
|
-
next.prev = prev
|
39
|
-
}
|
40
|
-
|
41
|
-
if (prev) {
|
42
|
-
prev.next = next
|
43
|
-
}
|
44
|
-
|
45
|
-
if (node === this.head) {
|
46
|
-
this.head = next
|
47
|
-
}
|
48
|
-
if (node === this.tail) {
|
49
|
-
this.tail = prev
|
50
|
-
}
|
51
|
-
|
52
|
-
node.list.length --
|
53
|
-
node.next = null
|
54
|
-
node.prev = null
|
55
|
-
node.list = null
|
56
|
-
}
|
57
|
-
|
58
|
-
Yallist.prototype.unshiftNode = function (node) {
|
59
|
-
if (node === this.head) {
|
60
|
-
return
|
61
|
-
}
|
62
|
-
|
63
|
-
if (node.list) {
|
64
|
-
node.list.removeNode(node)
|
65
|
-
}
|
66
|
-
|
67
|
-
var head = this.head
|
68
|
-
node.list = this
|
69
|
-
node.next = head
|
70
|
-
if (head) {
|
71
|
-
head.prev = node
|
72
|
-
}
|
73
|
-
|
74
|
-
this.head = node
|
75
|
-
if (!this.tail) {
|
76
|
-
this.tail = node
|
77
|
-
}
|
78
|
-
this.length ++
|
79
|
-
}
|
80
|
-
|
81
|
-
Yallist.prototype.pushNode = function (node) {
|
82
|
-
if (node === this.tail) {
|
83
|
-
return
|
84
|
-
}
|
85
|
-
|
86
|
-
if (node.list) {
|
87
|
-
node.list.removeNode(node)
|
88
|
-
}
|
89
|
-
|
90
|
-
var tail = this.tail
|
91
|
-
node.list = this
|
92
|
-
node.prev = tail
|
93
|
-
if (tail) {
|
94
|
-
tail.next = node
|
95
|
-
}
|
96
|
-
|
97
|
-
this.tail = node
|
98
|
-
if (!this.head) {
|
99
|
-
this.head = node
|
100
|
-
}
|
101
|
-
this.length ++
|
102
|
-
}
|
103
|
-
|
104
|
-
Yallist.prototype.push = function () {
|
105
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
106
|
-
push(this, arguments[i])
|
107
|
-
}
|
108
|
-
return this.length
|
109
|
-
}
|
110
|
-
|
111
|
-
Yallist.prototype.unshift = function () {
|
112
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
113
|
-
unshift(this, arguments[i])
|
114
|
-
}
|
115
|
-
return this.length
|
116
|
-
}
|
117
|
-
|
118
|
-
Yallist.prototype.pop = function () {
|
119
|
-
if (!this.tail)
|
120
|
-
return undefined
|
121
|
-
|
122
|
-
var res = this.tail.value
|
123
|
-
this.tail = this.tail.prev
|
124
|
-
this.tail.next = null
|
125
|
-
this.length --
|
126
|
-
return res
|
127
|
-
}
|
128
|
-
|
129
|
-
Yallist.prototype.shift = function () {
|
130
|
-
if (!this.head)
|
131
|
-
return undefined
|
132
|
-
|
133
|
-
var res = this.head.value
|
134
|
-
this.head = this.head.next
|
135
|
-
this.head.prev = null
|
136
|
-
this.length --
|
137
|
-
return res
|
138
|
-
}
|
139
|
-
|
140
|
-
Yallist.prototype.forEach = function (fn, thisp) {
|
141
|
-
thisp = thisp || this
|
142
|
-
for (var walker = this.head, i = 0; walker !== null; i++) {
|
143
|
-
fn.call(thisp, walker.value, i, this)
|
144
|
-
walker = walker.next
|
145
|
-
}
|
146
|
-
}
|
147
|
-
|
148
|
-
Yallist.prototype.forEachReverse = function (fn, thisp) {
|
149
|
-
thisp = thisp || this
|
150
|
-
for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
|
151
|
-
fn.call(thisp, walker.value, i, this)
|
152
|
-
walker = walker.prev
|
153
|
-
}
|
154
|
-
}
|
155
|
-
|
156
|
-
Yallist.prototype.get = function (n) {
|
157
|
-
for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
|
158
|
-
// abort out of the list early if we hit a cycle
|
159
|
-
walker = walker.next
|
160
|
-
}
|
161
|
-
if (i === n && walker !== null) {
|
162
|
-
return walker.value
|
163
|
-
}
|
164
|
-
}
|
165
|
-
|
166
|
-
Yallist.prototype.getReverse = function (n) {
|
167
|
-
for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
|
168
|
-
// abort out of the list early if we hit a cycle
|
169
|
-
walker = walker.prev
|
170
|
-
}
|
171
|
-
if (i === n && walker !== null) {
|
172
|
-
return walker.value
|
173
|
-
}
|
174
|
-
}
|
175
|
-
|
176
|
-
Yallist.prototype.map = function (fn, thisp) {
|
177
|
-
thisp = thisp || this
|
178
|
-
var res = new Yallist()
|
179
|
-
for (var walker = this.head; walker !== null; ) {
|
180
|
-
res.push(fn.call(thisp, walker.value, this))
|
181
|
-
walker = walker.next
|
182
|
-
}
|
183
|
-
return res
|
184
|
-
}
|
185
|
-
|
186
|
-
Yallist.prototype.mapReverse = function (fn, thisp) {
|
187
|
-
thisp = thisp || this
|
188
|
-
var res = new Yallist()
|
189
|
-
for (var walker = this.tail; walker !== null;) {
|
190
|
-
res.push(fn.call(thisp, walker.value, this))
|
191
|
-
walker = walker.prev
|
192
|
-
}
|
193
|
-
return res
|
194
|
-
}
|
195
|
-
|
196
|
-
Yallist.prototype.reduce = function (fn, initial) {
|
197
|
-
var acc
|
198
|
-
var walker = this.head
|
199
|
-
if (arguments.length > 1) {
|
200
|
-
acc = initial
|
201
|
-
} else if (this.head) {
|
202
|
-
walker = this.head.next
|
203
|
-
acc = this.head.value
|
204
|
-
} else {
|
205
|
-
throw new TypeError('Reduce of empty list with no initial value')
|
206
|
-
}
|
207
|
-
|
208
|
-
for (var i = 0; walker !== null; i++) {
|
209
|
-
acc = fn(acc, walker.value, i)
|
210
|
-
walker = walker.next
|
211
|
-
}
|
212
|
-
|
213
|
-
return acc
|
214
|
-
}
|
215
|
-
|
216
|
-
Yallist.prototype.reduceReverse = function (fn, initial) {
|
217
|
-
var acc
|
218
|
-
var walker = this.tail
|
219
|
-
if (arguments.length > 1) {
|
220
|
-
acc = initial
|
221
|
-
} else if (this.tail) {
|
222
|
-
walker = this.tail.prev
|
223
|
-
acc = this.tail.value
|
224
|
-
} else {
|
225
|
-
throw new TypeError('Reduce of empty list with no initial value')
|
226
|
-
}
|
227
|
-
|
228
|
-
for (var i = this.length - 1; walker !== null; i--) {
|
229
|
-
acc = fn(acc, walker.value, i)
|
230
|
-
walker = walker.prev
|
231
|
-
}
|
232
|
-
|
233
|
-
return acc
|
234
|
-
}
|
235
|
-
|
236
|
-
Yallist.prototype.toArray = function () {
|
237
|
-
var arr = new Array(this.length)
|
238
|
-
for (var i = 0, walker = this.head; walker !== null; i++) {
|
239
|
-
arr[i] = walker.value
|
240
|
-
walker = walker.next
|
241
|
-
}
|
242
|
-
return arr
|
243
|
-
}
|
244
|
-
|
245
|
-
Yallist.prototype.toArrayReverse = function () {
|
246
|
-
var arr = new Array(this.length)
|
247
|
-
for (var i = 0, walker = this.tail; walker !== null; i++) {
|
248
|
-
arr[i] = walker.value
|
249
|
-
walker = walker.prev
|
250
|
-
}
|
251
|
-
return arr
|
252
|
-
}
|
253
|
-
|
254
|
-
Yallist.prototype.slice = function (from, to) {
|
255
|
-
to = to || this.length
|
256
|
-
if (to < 0) {
|
257
|
-
to += this.length
|
258
|
-
}
|
259
|
-
from = from || 0
|
260
|
-
if (from < 0) {
|
261
|
-
from += this.length
|
262
|
-
}
|
263
|
-
var ret = new Yallist()
|
264
|
-
if (to < from || to < 0) {
|
265
|
-
return ret
|
266
|
-
}
|
267
|
-
if (from < 0) {
|
268
|
-
from = 0
|
269
|
-
}
|
270
|
-
if (to > this.length) {
|
271
|
-
to = this.length
|
272
|
-
}
|
273
|
-
for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
|
274
|
-
walker = walker.next
|
275
|
-
}
|
276
|
-
for (; walker !== null && i < to; i++, walker = walker.next) {
|
277
|
-
ret.push(walker.value)
|
278
|
-
}
|
279
|
-
return ret
|
280
|
-
}
|
281
|
-
|
282
|
-
Yallist.prototype.sliceReverse = function (from, to) {
|
283
|
-
to = to || this.length
|
284
|
-
if (to < 0) {
|
285
|
-
to += this.length
|
286
|
-
}
|
287
|
-
from = from || 0
|
288
|
-
if (from < 0) {
|
289
|
-
from += this.length
|
290
|
-
}
|
291
|
-
var ret = new Yallist()
|
292
|
-
if (to < from || to < 0) {
|
293
|
-
return ret
|
294
|
-
}
|
295
|
-
if (from < 0) {
|
296
|
-
from = 0
|
297
|
-
}
|
298
|
-
if (to > this.length) {
|
299
|
-
to = this.length
|
300
|
-
}
|
301
|
-
for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
|
302
|
-
walker = walker.prev
|
303
|
-
}
|
304
|
-
for (; walker !== null && i > from; i--, walker = walker.prev) {
|
305
|
-
ret.push(walker.value)
|
306
|
-
}
|
307
|
-
return ret
|
308
|
-
}
|
309
|
-
|
310
|
-
Yallist.prototype.reverse = function () {
|
311
|
-
var head = this.head
|
312
|
-
var tail = this.tail
|
313
|
-
for (var walker = head; walker !== null; walker = walker.prev) {
|
314
|
-
var p = walker.prev
|
315
|
-
walker.prev = walker.next
|
316
|
-
walker.next = p
|
317
|
-
}
|
318
|
-
this.head = tail
|
319
|
-
this.tail = head
|
320
|
-
return this
|
321
|
-
}
|
322
|
-
|
323
|
-
function push (self, item) {
|
324
|
-
self.tail = new Node(item, self.tail, null, self)
|
325
|
-
if (!self.head) {
|
326
|
-
self.head = self.tail
|
327
|
-
}
|
328
|
-
self.length ++
|
329
|
-
}
|
330
|
-
|
331
|
-
function unshift (self, item) {
|
332
|
-
self.head = new Node(item, null, self.head, self)
|
333
|
-
if (!self.tail) {
|
334
|
-
self.tail = self.head
|
335
|
-
}
|
336
|
-
self.length ++
|
337
|
-
}
|
338
|
-
|
339
|
-
function Node (value, prev, next, list) {
|
340
|
-
if (!(this instanceof Node)) {
|
341
|
-
return new Node(value, prev, next, list)
|
342
|
-
}
|
343
|
-
|
344
|
-
this.list = list
|
345
|
-
this.value = value
|
346
|
-
|
347
|
-
if (prev) {
|
348
|
-
prev.next = this
|
349
|
-
this.prev = prev
|
350
|
-
} else {
|
351
|
-
this.prev = null
|
352
|
-
}
|
353
|
-
|
354
|
-
if (next) {
|
355
|
-
next.prev = this
|
356
|
-
this.next = next
|
357
|
-
} else {
|
358
|
-
this.next = null
|
359
|
-
}
|
360
|
-
}
|
@@ -1,78 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"_from": "lru-cache@^4.0.0",
|
3
|
-
"_id": "lru-cache@4.0.1",
|
4
|
-
"_location": "/aws4/lru-cache",
|
5
|
-
"_nodeVersion": "5.6.0",
|
6
|
-
"_npmOperationalInternal": {
|
7
|
-
"host": "packages-12-west.internal.npmjs.com",
|
8
|
-
"tmp": "tmp/lru-cache-4.0.1.tgz_1458667372415_0.8005518841091543"
|
9
|
-
},
|
10
|
-
"_npmUser": {
|
11
|
-
"email": "i@izs.me",
|
12
|
-
"name": "isaacs"
|
13
|
-
},
|
14
|
-
"_npmVersion": "3.7.3",
|
15
|
-
"_phantomChildren": {},
|
16
|
-
"_requiredBy": [
|
17
|
-
"/aws4"
|
18
|
-
],
|
19
|
-
"_resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.1.tgz",
|
20
|
-
"_shasum": "1343955edaf2e37d9b9e7ee7241e27c4b9fb72be",
|
21
|
-
"_shrinkwrap": null,
|
22
|
-
"author": {
|
23
|
-
"email": "i@izs.me",
|
24
|
-
"name": "Isaac Z. Schlueter"
|
25
|
-
},
|
26
|
-
"bugs": {
|
27
|
-
"url": "https://github.com/isaacs/node-lru-cache/issues"
|
28
|
-
},
|
29
|
-
"dependencies": {
|
30
|
-
"pseudomap": "^1.0.1",
|
31
|
-
"yallist": "^2.0.0"
|
32
|
-
},
|
33
|
-
"description": "A cache object that deletes the least-recently-used items.",
|
34
|
-
"devDependencies": {
|
35
|
-
"standard": "^5.4.1",
|
36
|
-
"tap": "^5.1.1"
|
37
|
-
},
|
38
|
-
"directories": {},
|
39
|
-
"dist": {
|
40
|
-
"shasum": "1343955edaf2e37d9b9e7ee7241e27c4b9fb72be",
|
41
|
-
"tarball": "http://registry.npmjs.org/lru-cache/-/lru-cache-4.0.1.tgz"
|
42
|
-
},
|
43
|
-
"files": [
|
44
|
-
"lib/lru-cache.js"
|
45
|
-
],
|
46
|
-
"gitHead": "6cd8c8a43cf56c585bdb696faae94f9836cb9e28",
|
47
|
-
"homepage": "https://github.com/isaacs/node-lru-cache#readme",
|
48
|
-
"keywords": [
|
49
|
-
"cache",
|
50
|
-
"lru",
|
51
|
-
"mru"
|
52
|
-
],
|
53
|
-
"license": "ISC",
|
54
|
-
"main": "lib/lru-cache.js",
|
55
|
-
"maintainers": [
|
56
|
-
{
|
57
|
-
"name": "isaacs",
|
58
|
-
"email": "isaacs@npmjs.com"
|
59
|
-
},
|
60
|
-
{
|
61
|
-
"name": "othiym23",
|
62
|
-
"email": "ogd@aoaioxxysz.net"
|
63
|
-
}
|
64
|
-
],
|
65
|
-
"name": "lru-cache",
|
66
|
-
"optionalDependencies": {},
|
67
|
-
"readme": "# lru cache\n\nA cache object that deletes the least-recently-used items.\n\n[![Build Status](https://travis-ci.org/isaacs/node-lru-cache.svg?branch=master)](https://travis-ci.org/isaacs/node-lru-cache) [![Coverage Status](https://coveralls.io/repos/isaacs/node-lru-cache/badge.svg?service=github)](https://coveralls.io/github/isaacs/node-lru-cache)\n\n## Usage:\n\n```javascript\nvar LRU = require(\"lru-cache\")\n , options = { max: 500\n , length: function (n, key) { return n * 2 + key.length }\n , dispose: function (key, n) { n.close() }\n , maxAge: 1000 * 60 * 60 }\n , cache = LRU(options)\n , otherCache = LRU(50) // sets just the max size\n\ncache.set(\"key\", \"value\")\ncache.get(\"key\") // \"value\"\n\n// non-string keys ARE fully supported\nvar someObject = {}\ncache.set(someObject, 'a value')\ncache.set('[object Object]', 'a different value')\nassert.equal(cache.get(someObject), 'a value')\n\ncache.reset() // empty the cache\n```\n\nIf you put more stuff in it, then items will fall out.\n\nIf you try to put an oversized thing in it, then it'll fall out right\naway.\n\n## Options\n\n* `max` The maximum size of the cache, checked by applying the length\n function to all values in the cache. Not setting this is kind of\n silly, since that's the whole purpose of this lib, but it defaults\n to `Infinity`.\n* `maxAge` Maximum age in ms. Items are not pro-actively pruned out\n as they age, but if you try to get an item that is too old, it'll\n drop it and return undefined instead of giving it to you.\n* `length` Function that is used to calculate the length of stored\n items. If you're storing strings or buffers, then you probably want\n to do something like `function(n, key){return n.length}`. The default is\n `function(){return 1}`, which is fine if you want to store `max`\n like-sized things. They item is passed as the first argument, and\n the key is passed as the second argumnet.\n* `dispose` Function that is called on items when they are dropped\n from the cache. This can be handy if you want to close file\n descriptors or do other cleanup tasks when items are no longer\n accessible. Called with `key, value`. It's called *before*\n actually removing the item from the internal cache, so if you want\n to immediately put it back in, you'll have to do that in a\n `nextTick` or `setTimeout` callback or it won't do anything.\n* `stale` By default, if you set a `maxAge`, it'll only actually pull\n stale items out of the cache when you `get(key)`. (That is, it's\n not pre-emptively doing a `setTimeout` or anything.) If you set\n `stale:true`, it'll return the stale value before deleting it. If\n you don't set this, then it'll return `undefined` when you try to\n get a stale entry, as if it had already been deleted.\n\n## API\n\n* `set(key, value, maxAge)`\n* `get(key) => value`\n\n Both of these will update the \"recently used\"-ness of the key.\n They do what you think. `maxAge` is optional and overrides the\n cache `maxAge` option if provided.\n\n If the key is not found, `get()` will return `undefined`.\n\n The key and val can be any value.\n\n* `peek(key)`\n\n Returns the key value (or `undefined` if not found) without\n updating the \"recently used\"-ness of the key.\n\n (If you find yourself using this a lot, you *might* be using the\n wrong sort of data structure, but there are some use cases where\n it's handy.)\n\n* `del(key)`\n\n Deletes a key out of the cache.\n\n* `reset()`\n\n Clear the cache entirely, throwing away all values.\n\n* `has(key)`\n\n Check if a key is in the cache, without updating the recent-ness\n or deleting it for being stale.\n\n* `forEach(function(value,key,cache), [thisp])`\n\n Just like `Array.prototype.forEach`. Iterates over all the keys\n in the cache, in order of recent-ness. (Ie, more recently used\n items are iterated over first.)\n\n* `rforEach(function(value,key,cache), [thisp])`\n\n The same as `cache.forEach(...)` but items are iterated over in\n reverse order. (ie, less recently used items are iterated over\n first.)\n\n* `keys()`\n\n Return an array of the keys in the cache.\n\n* `values()`\n\n Return an array of the values in the cache.\n\n* `length`\n\n Return total length of objects in cache taking into account\n `length` options function.\n\n* `itemCount`\n\n Return total quantity of objects currently in cache. Note, that\n `stale` (see options) items are returned as part of this item\n count.\n\n* `dump()`\n\n Return an array of the cache entries ready for serialization and usage\n with 'destinationCache.load(arr)`.\n\n* `load(cacheEntriesArray)`\n\n Loads another cache entries array, obtained with `sourceCache.dump()`,\n into the cache. The destination cache is reset before loading new entries\n\n* `prune()`\n\n Manually iterates over the entire cache proactively pruning old entries\n",
|
68
|
-
"readmeFilename": "README.md",
|
69
|
-
"repository": {
|
70
|
-
"type": "git",
|
71
|
-
"url": "git://github.com/isaacs/node-lru-cache.git"
|
72
|
-
},
|
73
|
-
"scripts": {
|
74
|
-
"posttest": "standard test/*.js lib/*.js",
|
75
|
-
"test": "tap test --branches=100 --functions=100 --lines=100 --statements=100"
|
76
|
-
},
|
77
|
-
"version": "4.0.1"
|
78
|
-
}
|
@@ -1,70 +0,0 @@
|
|
1
|
-
var BlockStream = require("../block-stream.js")
|
2
|
-
|
3
|
-
var blockSizes = [16, 25, 1024]
|
4
|
-
, writeSizes = [4, 8, 15, 16, 17, 64, 100]
|
5
|
-
, writeCounts = [1, 10, 100]
|
6
|
-
, tap = require("tap")
|
7
|
-
|
8
|
-
writeCounts.forEach(function (writeCount) {
|
9
|
-
blockSizes.forEach(function (blockSize) {
|
10
|
-
writeSizes.forEach(function (writeSize) {
|
11
|
-
tap.test("writeSize=" + writeSize +
|
12
|
-
" blockSize="+blockSize +
|
13
|
-
" writeCount="+writeCount, function (t) {
|
14
|
-
var f = new BlockStream(blockSize, {nopad: true })
|
15
|
-
|
16
|
-
var actualChunks = 0
|
17
|
-
var actualBytes = 0
|
18
|
-
var timeouts = 0
|
19
|
-
|
20
|
-
f.on("data", function (c) {
|
21
|
-
timeouts ++
|
22
|
-
|
23
|
-
actualChunks ++
|
24
|
-
actualBytes += c.length
|
25
|
-
|
26
|
-
// make sure that no data gets corrupted, and basic sanity
|
27
|
-
var before = c.toString()
|
28
|
-
// simulate a slow write operation
|
29
|
-
f.pause()
|
30
|
-
setTimeout(function () {
|
31
|
-
timeouts --
|
32
|
-
|
33
|
-
var after = c.toString()
|
34
|
-
t.equal(after, before, "should not change data")
|
35
|
-
|
36
|
-
// now corrupt it, to find leaks.
|
37
|
-
for (var i = 0; i < c.length; i ++) {
|
38
|
-
c[i] = "x".charCodeAt(0)
|
39
|
-
}
|
40
|
-
f.resume()
|
41
|
-
}, 100)
|
42
|
-
})
|
43
|
-
|
44
|
-
f.on("end", function () {
|
45
|
-
// round up to the nearest block size
|
46
|
-
var expectChunks = Math.ceil(writeSize * writeCount * 2 / blockSize)
|
47
|
-
var expectBytes = writeSize * writeCount * 2
|
48
|
-
t.equal(actualBytes, expectBytes,
|
49
|
-
"bytes=" + expectBytes + " writeSize=" + writeSize)
|
50
|
-
t.equal(actualChunks, expectChunks,
|
51
|
-
"chunks=" + expectChunks + " writeSize=" + writeSize)
|
52
|
-
|
53
|
-
// wait for all the timeout checks to finish, then end the test
|
54
|
-
setTimeout(function WAIT () {
|
55
|
-
if (timeouts > 0) return setTimeout(WAIT)
|
56
|
-
t.end()
|
57
|
-
}, 100)
|
58
|
-
})
|
59
|
-
|
60
|
-
for (var i = 0; i < writeCount; i ++) {
|
61
|
-
var a = new Buffer(writeSize);
|
62
|
-
for (var j = 0; j < writeSize; j ++) a[j] = "a".charCodeAt(0)
|
63
|
-
var b = new Buffer(writeSize);
|
64
|
-
for (var j = 0; j < writeSize; j ++) b[j] = "b".charCodeAt(0)
|
65
|
-
f.write(a)
|
66
|
-
f.write(b)
|
67
|
-
}
|
68
|
-
f.end()
|
69
|
-
})
|
70
|
-
}) }) })
|
@@ -1,68 +0,0 @@
|
|
1
|
-
var BlockStream = require("../block-stream.js")
|
2
|
-
|
3
|
-
var blockSizes = [16, 25, 1024]
|
4
|
-
, writeSizes = [4, 8, 15, 16, 17, 64, 100]
|
5
|
-
, writeCounts = [1, 10, 100]
|
6
|
-
, tap = require("tap")
|
7
|
-
|
8
|
-
writeCounts.forEach(function (writeCount) {
|
9
|
-
blockSizes.forEach(function (blockSize) {
|
10
|
-
writeSizes.forEach(function (writeSize) {
|
11
|
-
tap.test("writeSize=" + writeSize +
|
12
|
-
" blockSize="+blockSize +
|
13
|
-
" writeCount="+writeCount, function (t) {
|
14
|
-
var f = new BlockStream(blockSize, {nopad: true })
|
15
|
-
|
16
|
-
var actualChunks = 0
|
17
|
-
var actualBytes = 0
|
18
|
-
var timeouts = 0
|
19
|
-
|
20
|
-
f.on("data", function (c) {
|
21
|
-
timeouts ++
|
22
|
-
|
23
|
-
actualChunks ++
|
24
|
-
actualBytes += c.length
|
25
|
-
|
26
|
-
// make sure that no data gets corrupted, and basic sanity
|
27
|
-
var before = c.toString()
|
28
|
-
// simulate a slow write operation
|
29
|
-
setTimeout(function () {
|
30
|
-
timeouts --
|
31
|
-
|
32
|
-
var after = c.toString()
|
33
|
-
t.equal(after, before, "should not change data")
|
34
|
-
|
35
|
-
// now corrupt it, to find leaks.
|
36
|
-
for (var i = 0; i < c.length; i ++) {
|
37
|
-
c[i] = "x".charCodeAt(0)
|
38
|
-
}
|
39
|
-
}, 100)
|
40
|
-
})
|
41
|
-
|
42
|
-
f.on("end", function () {
|
43
|
-
// round up to the nearest block size
|
44
|
-
var expectChunks = Math.ceil(writeSize * writeCount * 2 / blockSize)
|
45
|
-
var expectBytes = writeSize * writeCount * 2
|
46
|
-
t.equal(actualBytes, expectBytes,
|
47
|
-
"bytes=" + expectBytes + " writeSize=" + writeSize)
|
48
|
-
t.equal(actualChunks, expectChunks,
|
49
|
-
"chunks=" + expectChunks + " writeSize=" + writeSize)
|
50
|
-
|
51
|
-
// wait for all the timeout checks to finish, then end the test
|
52
|
-
setTimeout(function WAIT () {
|
53
|
-
if (timeouts > 0) return setTimeout(WAIT)
|
54
|
-
t.end()
|
55
|
-
}, 100)
|
56
|
-
})
|
57
|
-
|
58
|
-
for (var i = 0; i < writeCount; i ++) {
|
59
|
-
var a = new Buffer(writeSize);
|
60
|
-
for (var j = 0; j < writeSize; j ++) a[j] = "a".charCodeAt(0)
|
61
|
-
var b = new Buffer(writeSize);
|
62
|
-
for (var j = 0; j < writeSize; j ++) b[j] = "b".charCodeAt(0)
|
63
|
-
f.write(a)
|
64
|
-
f.write(b)
|
65
|
-
}
|
66
|
-
f.end()
|
67
|
-
})
|
68
|
-
}) }) })
|
@@ -1,70 +0,0 @@
|
|
1
|
-
var BlockStream = require("dropper")
|
2
|
-
|
3
|
-
var blockSizes = [16, 25, 1024]
|
4
|
-
, writeSizes = [4, 8, 15, 16, 17, 64, 100]
|
5
|
-
, writeCounts = [1, 10, 100]
|
6
|
-
, tap = require("tap")
|
7
|
-
|
8
|
-
writeCounts.forEach(function (writeCount) {
|
9
|
-
blockSizes.forEach(function (blockSize) {
|
10
|
-
writeSizes.forEach(function (writeSize) {
|
11
|
-
tap.test("writeSize=" + writeSize +
|
12
|
-
" blockSize="+blockSize +
|
13
|
-
" writeCount="+writeCount, function (t) {
|
14
|
-
var f = new BlockStream(blockSize, {nopad: true })
|
15
|
-
|
16
|
-
var actualChunks = 0
|
17
|
-
var actualBytes = 0
|
18
|
-
var timeouts = 0
|
19
|
-
|
20
|
-
f.on("data", function (c) {
|
21
|
-
timeouts ++
|
22
|
-
|
23
|
-
actualChunks ++
|
24
|
-
actualBytes += c.length
|
25
|
-
|
26
|
-
// make sure that no data gets corrupted, and basic sanity
|
27
|
-
var before = c.toString()
|
28
|
-
// simulate a slow write operation
|
29
|
-
f.pause()
|
30
|
-
setTimeout(function () {
|
31
|
-
timeouts --
|
32
|
-
|
33
|
-
var after = c.toString()
|
34
|
-
t.equal(after, before, "should not change data")
|
35
|
-
|
36
|
-
// now corrupt it, to find leaks.
|
37
|
-
for (var i = 0; i < c.length; i ++) {
|
38
|
-
c[i] = "x".charCodeAt(0)
|
39
|
-
}
|
40
|
-
f.resume()
|
41
|
-
}, 100)
|
42
|
-
})
|
43
|
-
|
44
|
-
f.on("end", function () {
|
45
|
-
// round up to the nearest block size
|
46
|
-
var expectChunks = Math.ceil(writeSize * writeCount * 2 / blockSize)
|
47
|
-
var expectBytes = writeSize * writeCount * 2
|
48
|
-
t.equal(actualBytes, expectBytes,
|
49
|
-
"bytes=" + expectBytes + " writeSize=" + writeSize)
|
50
|
-
t.equal(actualChunks, expectChunks,
|
51
|
-
"chunks=" + expectChunks + " writeSize=" + writeSize)
|
52
|
-
|
53
|
-
// wait for all the timeout checks to finish, then end the test
|
54
|
-
setTimeout(function WAIT () {
|
55
|
-
if (timeouts > 0) return setTimeout(WAIT)
|
56
|
-
t.end()
|
57
|
-
}, 100)
|
58
|
-
})
|
59
|
-
|
60
|
-
for (var i = 0; i < writeCount; i ++) {
|
61
|
-
var a = new Buffer(writeSize);
|
62
|
-
for (var j = 0; j < writeSize; j ++) a[j] = "a".charCodeAt(0)
|
63
|
-
var b = new Buffer(writeSize);
|
64
|
-
for (var j = 0; j < writeSize; j ++) b[j] = "b".charCodeAt(0)
|
65
|
-
f.write(a)
|
66
|
-
f.write(b)
|
67
|
-
}
|
68
|
-
f.end()
|
69
|
-
})
|
70
|
-
}) }) })
|