fsevents 1.0.11 → 1.0.17
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/.npmignore +1 -3
- package/.travis.yml +7 -5
- package/ISSUE_TEMPLATE.md +8 -0
- 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/fsevents.cc +2 -2
- 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/lib/binding/Release/node-v48-darwin-x64/fse.node +0 -0
- 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/abbrev/package.json +90 -0
- package/node_modules/{lodash.repeat/LICENSE → ansi-regex/license} +5 -7
- package/node_modules/ansi-regex/package.json +47 -21
- package/node_modules/{lodash.padstart/LICENSE → ansi-styles/license} +5 -7
- package/node_modules/ansi-styles/package.json +44 -19
- 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 +96 -0
- package/node_modules/are-we-there-yet/package.json +31 -6
- package/node_modules/asn1/package.json +31 -5
- package/node_modules/assert-plus/package.json +33 -8
- package/node_modules/{node-uuid/LICENSE.md → asynckit/LICENSE} +1 -1
- package/node_modules/asynckit/README.md +233 -0
- package/node_modules/asynckit/bench.js +76 -0
- package/node_modules/asynckit/index.js +6 -0
- package/node_modules/asynckit/lib/abort.js +29 -0
- package/node_modules/asynckit/lib/async.js +34 -0
- package/node_modules/asynckit/lib/defer.js +26 -0
- package/node_modules/asynckit/lib/iterate.js +75 -0
- package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/node_modules/asynckit/lib/state.js +37 -0
- package/node_modules/asynckit/lib/streamify.js +141 -0
- package/node_modules/asynckit/lib/terminator.js +29 -0
- package/node_modules/asynckit/package.json +126 -0
- package/node_modules/asynckit/parallel.js +43 -0
- package/node_modules/asynckit/serial.js +17 -0
- package/node_modules/asynckit/serialOrdered.js +75 -0
- package/node_modules/asynckit/stream.js +21 -0
- package/node_modules/aws-sign2/package.json +31 -5
- package/node_modules/aws4/README.md +9 -0
- package/node_modules/aws4/aws4.js +9 -4
- package/node_modules/aws4/lru.js +96 -0
- package/node_modules/aws4/package.json +79 -56
- package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → balanced-match}/.npmignore +2 -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/{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/balanced-match/package.json +110 -0
- package/node_modules/bcrypt-pbkdf/README.md +39 -0
- package/node_modules/bcrypt-pbkdf/index.js +559 -0
- package/node_modules/bcrypt-pbkdf/package.json +72 -0
- package/node_modules/block-stream/package.json +47 -14
- package/node_modules/boom/package.json +30 -4
- package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/README.md +0 -0
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/index.js +10 -0
- package/node_modules/brace-expansion/package.json +112 -0
- 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 +86 -0
- package/node_modules/buffer-shims/readme.md +21 -0
- package/node_modules/caseless/package.json +34 -8
- package/node_modules/{lodash.pad/LICENSE → chalk/license} +5 -7
- package/node_modules/chalk/node_modules/supports-color/index.js +50 -0
- package/node_modules/chalk/node_modules/supports-color/license +21 -0
- package/node_modules/chalk/node_modules/supports-color/package.json +113 -0
- package/node_modules/chalk/node_modules/supports-color/readme.md +36 -0
- package/node_modules/chalk/package.json +47 -22
- package/node_modules/code-point-at/index.js +32 -0
- package/node_modules/code-point-at/license +21 -0
- package/node_modules/code-point-at/package.json +106 -0
- package/node_modules/code-point-at/readme.md +32 -0
- package/node_modules/combined-stream/package.json +31 -5
- package/node_modules/commander/History.md +261 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/package.json +32 -6
- 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/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/package.json +47 -21
- 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/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 +96 -0
- package/node_modules/core-util-is/package.json +38 -11
- package/node_modules/cryptiles/package.json +30 -4
- package/node_modules/dashdash/CHANGES.md +364 -0
- package/node_modules/dashdash/LICENSE.txt +24 -0
- package/node_modules/dashdash/etc/dashdash.bash_completion.in +4 -3
- package/node_modules/dashdash/lib/dashdash.js +34 -1
- package/node_modules/dashdash/node_modules/assert-plus/package.json +33 -8
- package/node_modules/dashdash/package.json +49 -23
- package/node_modules/debug/package.json +36 -10
- 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 +40 -15
- package/node_modules/delayed-stream/package.json +31 -5
- package/node_modules/delegates/package.json +31 -6
- package/node_modules/ecc-jsbn/package.json +33 -7
- package/node_modules/escape-string-regexp/license +21 -0
- package/node_modules/escape-string-regexp/package.json +37 -12
- package/node_modules/extend/package.json +32 -6
- package/node_modules/extsprintf/package.json +30 -5
- package/node_modules/forever-agent/package.json +31 -5
- package/node_modules/form-data/README.md +7 -8
- package/node_modules/form-data/lib/browser.js +1 -1
- package/node_modules/form-data/lib/form_data.js +101 -72
- package/node_modules/form-data/lib/populate.js +6 -5
- package/node_modules/form-data/package.json +80 -47
- 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 +94 -0
- package/node_modules/fstream/.travis.yml +4 -4
- package/node_modules/fstream/lib/collect.js +2 -0
- package/node_modules/fstream/package.json +46 -16
- package/node_modules/fstream-ignore/package.json +54 -18
- package/node_modules/gauge/CHANGELOG.md +145 -0
- package/node_modules/gauge/README.md +321 -88
- 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 +230 -0
- package/node_modules/gauge/package.json +82 -27
- 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 +32 -6
- package/node_modules/generate-object-property/package.json +30 -4
- 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 +115 -0
- package/node_modules/getpass/package.json +90 -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 +3 -0
- package/node_modules/glob/changelog.md +67 -0
- package/node_modules/{rimraf/node_modules/glob → glob}/common.js +6 -1
- package/node_modules/{rimraf/node_modules/glob → glob}/glob.js +25 -15
- package/node_modules/glob/package.json +111 -0
- package/node_modules/{rimraf/node_modules/glob → glob}/sync.js +31 -12
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +83 -3
- package/node_modules/graceful-fs/graceful-fs.js +23 -14
- package/node_modules/graceful-fs/package.json +50 -24
- package/node_modules/graceful-fs/polyfills.js +99 -21
- package/node_modules/graceful-readlink/package.json +30 -4
- package/node_modules/har-validator/LICENSE +13 -0
- package/node_modules/har-validator/package.json +32 -6
- package/node_modules/has-ansi/license +21 -0
- package/node_modules/has-ansi/package.json +45 -19
- package/node_modules/has-unicode/index.js +3 -8
- package/node_modules/has-unicode/package.json +50 -18
- package/node_modules/hawk/package.json +34 -8
- package/node_modules/hoek/package.json +30 -4
- package/node_modules/http-signature/package.json +30 -4
- 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/inflight/inflight.js +54 -0
- package/node_modules/inflight/package.json +105 -0
- package/node_modules/inherits/inherits.js +7 -1
- package/node_modules/inherits/package.json +53 -26
- package/node_modules/{node-pre-gyp/node_modules/nopt → ini}/LICENSE +0 -0
- package/node_modules/ini/package.json +32 -7
- 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 +108 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/is-my-json-valid/index.js +10 -0
- package/node_modules/is-my-json-valid/package.json +52 -19
- package/node_modules/is-my-json-valid/test/misc.js +24 -0
- package/node_modules/is-property/package.json +35 -9
- package/node_modules/is-typedarray/package.json +32 -6
- package/node_modules/isarray/package.json +44 -17
- package/node_modules/isstream/package.json +35 -9
- package/node_modules/jodid25519/package.json +33 -7
- package/node_modules/jsbn/package.json +30 -4
- package/node_modules/json-schema/lib/links.js +17 -3
- package/node_modules/json-schema/lib/validate.js +18 -5
- package/node_modules/json-schema/package.json +44 -12
- package/node_modules/json-stringify-safe/package.json +34 -8
- package/node_modules/jsonpointer/LICENSE.md +21 -0
- package/node_modules/jsonpointer/README.md +17 -10
- package/node_modules/jsonpointer/jsonpointer.js +73 -56
- package/node_modules/jsonpointer/package.json +57 -18
- package/node_modules/jsprim/CHANGES.md +9 -0
- package/node_modules/jsprim/README.md +13 -4
- package/node_modules/jsprim/lib/jsprim.js +12 -2
- package/node_modules/jsprim/package.json +44 -14
- package/node_modules/mime-db/HISTORY.md +55 -0
- package/node_modules/mime-db/db.json +139 -2
- package/node_modules/mime-db/package.json +56 -27
- package/node_modules/mime-types/HISTORY.md +19 -0
- package/node_modules/mime-types/index.js +8 -8
- package/node_modules/mime-types/package.json +48 -19
- package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → minimatch}/LICENSE +0 -0
- package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/README.md +2 -9
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch → minimatch}/minimatch.js +34 -23
- package/node_modules/minimatch/package.json +98 -0
- package/node_modules/minimist/package.json +24 -16
- package/node_modules/mkdirp/package.json +25 -15
- package/node_modules/ms/History.md +66 -0
- package/node_modules/ms/package.json +29 -3
- package/node_modules/node-pre-gyp/CHANGELOG.md +37 -0
- package/node_modules/node-pre-gyp/README.md +34 -30
- package/node_modules/node-pre-gyp/appveyor.yml +20 -10
- package/node_modules/node-pre-gyp/lib/install.js +42 -8
- package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +2 -0
- package/node_modules/node-pre-gyp/lib/testbinary.js +9 -9
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +172 -0
- package/node_modules/node-pre-gyp/package.json +55 -57
- 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}/package.json +32 -6
- package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/test/basic.js +0 -0
- package/node_modules/npmlog/CHANGELOG.md +45 -0
- package/node_modules/npmlog/README.md +23 -2
- package/node_modules/npmlog/log.js +109 -58
- package/node_modules/npmlog/package.json +54 -20
- 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 +103 -0
- package/node_modules/number-is-nan/readme.md +28 -0
- package/node_modules/oauth-sign/package.json +47 -15
- package/node_modules/object-assign/index.js +83 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +114 -0
- package/node_modules/object-assign/readme.md +56 -0
- package/node_modules/{rimraf/node_modules/glob/node_modules/once/node_modules/wrappy → once}/LICENSE +0 -0
- package/node_modules/once/README.md +28 -0
- package/node_modules/once/once.js +21 -0
- package/node_modules/once/package.json +47 -16
- package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/index.js +5 -5
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/path-is-absolute/package.json +111 -0
- package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/readme.md +19 -11
- package/node_modules/pinkie/license +21 -0
- package/node_modules/pinkie/package.json +35 -10
- package/node_modules/pinkie-promise/index.js +1 -1
- package/node_modules/pinkie-promise/license +21 -0
- package/node_modules/pinkie-promise/package.json +46 -16
- package/node_modules/process-nextick-args/index.js +31 -8
- package/node_modules/process-nextick-args/package.json +44 -13
- package/node_modules/punycode/LICENSE-MIT.txt +20 -0
- package/node_modules/punycode/README.md +176 -0
- package/node_modules/punycode/package.json +127 -0
- package/node_modules/punycode/punycode.js +533 -0
- package/node_modules/qs/.eslintrc +15 -13
- package/node_modules/qs/CHANGELOG.md +34 -0
- package/node_modules/qs/README.md +66 -3
- package/node_modules/qs/dist/qs.js +196 -97
- package/node_modules/qs/lib/formats.js +18 -0
- package/node_modules/qs/lib/index.js +6 -4
- package/node_modules/qs/lib/parse.js +48 -46
- package/node_modules/qs/lib/stringify.js +90 -33
- package/node_modules/qs/lib/utils.js +28 -10
- package/node_modules/qs/package.json +57 -24
- package/node_modules/qs/test/.eslintrc +9 -0
- package/node_modules/qs/test/index.js +2 -0
- package/node_modules/qs/test/parse.js +100 -34
- package/node_modules/qs/test/stringify.js +315 -12
- package/node_modules/qs/test/utils.js +13 -0
- package/node_modules/rc/node_modules/minimist/package.json +40 -14
- package/node_modules/rc/package.json +34 -9
- package/node_modules/readable-stream/.npmignore +5 -1
- package/node_modules/readable-stream/.travis.yml +4 -7
- package/node_modules/readable-stream/README.md +6 -2
- package/node_modules/readable-stream/lib/_stream_readable.js +173 -112
- package/node_modules/readable-stream/lib/_stream_transform.js +9 -7
- package/node_modules/readable-stream/lib/_stream_writable.js +57 -19
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +64 -0
- package/node_modules/readable-stream/package.json +59 -22
- package/node_modules/readable-stream/readable.js +4 -0
- package/node_modules/request/CHANGELOG.md +93 -24
- package/node_modules/request/README.md +12 -8
- package/node_modules/request/index.js +8 -8
- package/node_modules/request/lib/auth.js +1 -1
- package/node_modules/request/lib/helpers.js +7 -16
- package/node_modules/request/lib/multipart.js +1 -1
- package/node_modules/request/lib/oauth.js +1 -1
- package/node_modules/request/lib/redirect.js +5 -1
- package/node_modules/request/package.json +79 -38
- package/node_modules/request/request.js +140 -84
- package/node_modules/rimraf/package.json +44 -19
- package/node_modules/rimraf/rimraf.js +12 -4
- package/node_modules/semver/README.md +31 -8
- package/node_modules/semver/package.json +48 -14
- package/node_modules/semver/range.bnf +1 -1
- package/node_modules/semver/semver.js +21 -6
- 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 +106 -0
- package/node_modules/signal-exit/CHANGELOG.md +27 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +40 -0
- package/node_modules/signal-exit/index.js +157 -0
- package/node_modules/signal-exit/package.json +106 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/sntp/package.json +32 -6
- package/node_modules/sshpk/.travis.yml +3 -3
- package/node_modules/sshpk/README.md +237 -7
- package/node_modules/sshpk/bin/sshpk-conv +20 -2
- package/node_modules/sshpk/bin/sshpk-sign +16 -1
- package/node_modules/sshpk/lib/certificate.js +291 -0
- package/node_modules/sshpk/lib/errors.js +27 -1
- package/node_modules/sshpk/lib/fingerprint.js +28 -7
- package/node_modules/sshpk/lib/formats/auto.js +8 -8
- package/node_modules/sshpk/lib/formats/openssh-cert.js +289 -0
- package/node_modules/sshpk/lib/formats/pem.js +41 -7
- package/node_modules/sshpk/lib/formats/pkcs1.js +4 -4
- package/node_modules/sshpk/lib/formats/pkcs8.js +6 -11
- package/node_modules/sshpk/lib/formats/rfc4253.js +2 -2
- package/node_modules/sshpk/lib/formats/ssh-private.js +143 -20
- package/node_modules/sshpk/lib/formats/ssh.js +2 -2
- package/node_modules/sshpk/lib/formats/x509-pem.js +77 -0
- package/node_modules/sshpk/lib/formats/x509.js +484 -0
- package/node_modules/sshpk/lib/identity.js +255 -0
- package/node_modules/sshpk/lib/index.js +14 -1
- package/node_modules/sshpk/lib/key.js +21 -17
- package/node_modules/sshpk/lib/private-key.js +19 -12
- package/node_modules/sshpk/lib/signature.js +14 -6
- package/node_modules/sshpk/lib/ssh-buffer.js +24 -0
- package/node_modules/sshpk/lib/utils.js +82 -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 +115 -0
- package/node_modules/sshpk/package.json +63 -35
- package/node_modules/string-width/index.js +37 -0
- package/node_modules/string-width/license +21 -0
- package/node_modules/string-width/package.json +124 -0
- package/node_modules/string-width/readme.md +42 -0
- package/node_modules/string_decoder/package.json +35 -8
- package/node_modules/stringstream/package.json +34 -8
- package/node_modules/strip-ansi/license +21 -0
- package/node_modules/strip-ansi/package.json +49 -22
- package/node_modules/strip-json-comments/license +21 -0
- package/node_modules/strip-json-comments/package.json +43 -17
- package/node_modules/supports-color/cli.js +28 -0
- package/node_modules/supports-color/index.js +2 -20
- package/node_modules/supports-color/package.json +61 -36
- package/node_modules/supports-color/readme.md +14 -6
- package/node_modules/tar/package.json +31 -5
- package/node_modules/tar-pack/README.md +4 -1
- package/node_modules/tar-pack/index.js +17 -12
- package/node_modules/tar-pack/node_modules/once/LICENSE +15 -0
- package/node_modules/{rimraf/node_modules/glob → tar-pack}/node_modules/once/README.md +0 -0
- package/node_modules/{rimraf/node_modules/glob → tar-pack}/node_modules/once/once.js +0 -0
- package/node_modules/{rimraf/node_modules/glob → tar-pack}/node_modules/once/package.json +34 -9
- package/node_modules/tar-pack/node_modules/readable-stream/.npmignore +8 -0
- package/node_modules/tar-pack/node_modules/readable-stream/.travis.yml +49 -0
- package/node_modules/tar-pack/node_modules/readable-stream/LICENSE +18 -0
- package/node_modules/tar-pack/node_modules/readable-stream/README.md +36 -0
- package/node_modules/tar-pack/node_modules/readable-stream/doc/stream.md +2015 -0
- package/node_modules/tar-pack/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/tar-pack/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/tar-pack/node_modules/readable-stream/lib/_stream_duplex.js +75 -0
- package/node_modules/tar-pack/node_modules/readable-stream/lib/_stream_passthrough.js +26 -0
- package/node_modules/tar-pack/node_modules/readable-stream/lib/_stream_readable.js +937 -0
- package/node_modules/tar-pack/node_modules/readable-stream/lib/_stream_transform.js +180 -0
- package/node_modules/tar-pack/node_modules/readable-stream/lib/_stream_writable.js +526 -0
- package/node_modules/tar-pack/node_modules/readable-stream/lib/internal/streams/BufferList.js +64 -0
- package/node_modules/tar-pack/node_modules/readable-stream/package.json +125 -0
- package/node_modules/tar-pack/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/tar-pack/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/tar-pack/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/tar-pack/node_modules/readable-stream/writable.js +1 -0
- package/node_modules/tar-pack/package.json +54 -20
- package/node_modules/tar-pack/test/index.js +43 -1
- package/node_modules/tough-cookie/LICENSE +27 -0
- package/node_modules/tough-cookie/README.md +17 -3
- package/node_modules/tough-cookie/lib/cookie.js +6 -12
- package/node_modules/tough-cookie/package.json +62 -30
- package/node_modules/tunnel-agent/package.json +46 -13
- package/node_modules/tweetnacl/AUTHORS.md +28 -0
- package/node_modules/tweetnacl/CHANGELOG.md +40 -0
- package/node_modules/tweetnacl/LICENSE +24 -0
- package/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +20 -0
- package/node_modules/tweetnacl/README.md +33 -19
- package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
- package/node_modules/tweetnacl/nacl.d.ts +98 -0
- package/node_modules/tweetnacl/nacl.min.js +1 -1
- package/node_modules/tweetnacl/package.json +44 -17
- package/node_modules/uid-number/package.json +32 -7
- package/node_modules/util-deprecate/package.json +37 -10
- package/node_modules/uuid/.npmignore +8 -0
- package/node_modules/uuid/.travis.yml +5 -0
- package/node_modules/uuid/AUTHORS +5 -0
- package/node_modules/uuid/HISTORY.md +28 -0
- package/node_modules/{lodash.padend/LICENSE → uuid/LICENSE.md} +1 -3
- package/node_modules/uuid/README.md +132 -0
- package/node_modules/{node-uuid → uuid}/bin/uuid +0 -0
- package/node_modules/uuid/index.js +8 -0
- package/node_modules/uuid/lib/bytesToUuid.js +23 -0
- package/node_modules/uuid/lib/rng-browser.js +33 -0
- package/node_modules/uuid/lib/rng.js +10 -0
- package/node_modules/uuid/package.json +122 -0
- package/node_modules/uuid/test/mocha.opts +3 -0
- package/node_modules/uuid/test/test.js +96 -0
- package/node_modules/uuid/v1.js +103 -0
- package/node_modules/uuid/v4.js +29 -0
- package/node_modules/verror/package.json +30 -5
- 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 +93 -0
- package/node_modules/wide-align/test/align.js +37 -0
- package/node_modules/wrappy/package.json +55 -16
- package/node_modules/xtend/package.json +45 -19
- package/package.json +3 -3
- 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/async/README.md +0 -1877
- package/node_modules/async/dist/async.js +0 -1265
- package/node_modules/async/dist/async.min.js +0 -2
- package/node_modules/async/lib/async.js +0 -1265
- package/node_modules/async/package.json +0 -131
- 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/bl/.jshintrc +0 -59
- package/node_modules/bl/.npmignore +0 -1
- package/node_modules/bl/.travis.yml +0 -13
- package/node_modules/bl/LICENSE.md +0 -13
- package/node_modules/bl/README.md +0 -200
- package/node_modules/bl/bl.js +0 -227
- package/node_modules/bl/package.json +0 -72
- package/node_modules/bl/test/test.js +0 -571
- 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/form-data/.dockerignore +0 -7
- package/node_modules/form-data/.editorconfig +0 -10
- package/node_modules/form-data/.eslintignore +0 -1
- package/node_modules/form-data/.eslintrc +0 -64
- package/node_modules/form-data/wercker.yml +0 -36
- 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/minimatch.js +0 -912
- 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/index.js +0 -191
- 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/inherits/test.js +0 -25
- package/node_modules/jsonpointer/.travis.yml +0 -10
- package/node_modules/jsonpointer/test.js +0 -98
- 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/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/node-uuid/.npmignore +0 -4
- package/node_modules/node-uuid/README.md +0 -254
- package/node_modules/node-uuid/benchmark/README.md +0 -53
- package/node_modules/node-uuid/benchmark/bench.gnu +0 -174
- package/node_modules/node-uuid/benchmark/bench.sh +0 -34
- package/node_modules/node-uuid/benchmark/benchmark-native.c +0 -34
- package/node_modules/node-uuid/benchmark/benchmark.js +0 -84
- package/node_modules/node-uuid/bower.json +0 -23
- package/node_modules/node-uuid/component.json +0 -25
- package/node_modules/node-uuid/package.json +0 -87
- package/node_modules/node-uuid/test/compare_v1.js +0 -63
- package/node_modules/node-uuid/test/test.html +0 -17
- package/node_modules/node-uuid/test/test.js +0 -231
- package/node_modules/node-uuid/uuid.js +0 -272
- 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/bower.json +0 -22
- package/node_modules/qs/component.json +0 -15
- package/node_modules/readable-stream/.zuul.yml +0 -1
- package/node_modules/readable-stream/doc/stream.markdown +0 -1760
- package/node_modules/request/.eslintrc +0 -45
- package/node_modules/request/.npmignore +0 -6
- package/node_modules/request/.travis.yml +0 -15
- package/node_modules/request/CONTRIBUTING.md +0 -44
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +0 -17
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/inflight.js +0 -44
- 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/node_modules/brace-expansion/.npmignore +0 -3
- 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/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/package.json +0 -80
- 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/minimatch/node_modules/brace-expansion/package.json +0 -86
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +0 -67
- 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/path-is-absolute/package.json +0 -79
- 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
@@ -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[](https://travis-ci.org/isaacs/node-lru-cache) [](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,59 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"predef": [ ]
|
3
|
-
, "bitwise": false
|
4
|
-
, "camelcase": false
|
5
|
-
, "curly": false
|
6
|
-
, "eqeqeq": false
|
7
|
-
, "forin": false
|
8
|
-
, "immed": false
|
9
|
-
, "latedef": false
|
10
|
-
, "noarg": true
|
11
|
-
, "noempty": true
|
12
|
-
, "nonew": true
|
13
|
-
, "plusplus": false
|
14
|
-
, "quotmark": true
|
15
|
-
, "regexp": false
|
16
|
-
, "undef": true
|
17
|
-
, "unused": true
|
18
|
-
, "strict": false
|
19
|
-
, "trailing": true
|
20
|
-
, "maxlen": 120
|
21
|
-
, "asi": true
|
22
|
-
, "boss": true
|
23
|
-
, "debug": true
|
24
|
-
, "eqnull": true
|
25
|
-
, "esnext": true
|
26
|
-
, "evil": true
|
27
|
-
, "expr": true
|
28
|
-
, "funcscope": false
|
29
|
-
, "globalstrict": false
|
30
|
-
, "iterator": false
|
31
|
-
, "lastsemic": true
|
32
|
-
, "laxbreak": true
|
33
|
-
, "laxcomma": true
|
34
|
-
, "loopfunc": true
|
35
|
-
, "multistr": false
|
36
|
-
, "onecase": false
|
37
|
-
, "proto": false
|
38
|
-
, "regexdash": false
|
39
|
-
, "scripturl": true
|
40
|
-
, "smarttabs": false
|
41
|
-
, "shadow": false
|
42
|
-
, "sub": true
|
43
|
-
, "supernew": false
|
44
|
-
, "validthis": true
|
45
|
-
, "browser": true
|
46
|
-
, "couch": false
|
47
|
-
, "devel": false
|
48
|
-
, "dojo": false
|
49
|
-
, "mootools": false
|
50
|
-
, "node": true
|
51
|
-
, "nonstandard": true
|
52
|
-
, "prototypejs": false
|
53
|
-
, "rhino": false
|
54
|
-
, "worker": true
|
55
|
-
, "wsh": false
|
56
|
-
, "nomen": false
|
57
|
-
, "onevar": false
|
58
|
-
, "passfail": false
|
59
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
node_modules/
|
@@ -1,13 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
=====================
|
3
|
-
|
4
|
-
Copyright (c) 2014 bl contributors
|
5
|
-
----------------------------------
|
6
|
-
|
7
|
-
*bl contributors listed at <https://github.com/rvagg/bl#contributors>*
|
8
|
-
|
9
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|