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,27 +1,53 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
|
2
|
+
"_args": [
|
3
|
+
[
|
4
|
+
{
|
5
|
+
"raw": "form-data@~2.1.1",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "form-data",
|
8
|
+
"name": "form-data",
|
9
|
+
"rawSpec": "~2.1.1",
|
10
|
+
"spec": ">=2.1.1 <2.2.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
13
|
+
"/Users/eshanker/Code/fsevents/node_modules/request"
|
14
|
+
]
|
15
|
+
],
|
16
|
+
"_from": "form-data@>=2.1.1 <2.2.0",
|
17
|
+
"_id": "form-data@2.1.2",
|
18
|
+
"_inCache": true,
|
4
19
|
"_location": "/form-data",
|
5
|
-
"_nodeVersion": "
|
20
|
+
"_nodeVersion": "6.4.0",
|
6
21
|
"_npmOperationalInternal": {
|
7
22
|
"host": "packages-12-west.internal.npmjs.com",
|
8
|
-
"tmp": "tmp/form-data-1.
|
23
|
+
"tmp": "tmp/form-data-2.1.2.tgz_1478577739404_0.6574864208232611"
|
9
24
|
},
|
10
25
|
"_npmUser": {
|
11
|
-
"
|
12
|
-
"
|
26
|
+
"name": "alexindigo",
|
27
|
+
"email": "iam@alexindigo.com"
|
13
28
|
},
|
14
|
-
"_npmVersion": "
|
29
|
+
"_npmVersion": "3.10.3",
|
15
30
|
"_phantomChildren": {},
|
31
|
+
"_requested": {
|
32
|
+
"raw": "form-data@~2.1.1",
|
33
|
+
"scope": null,
|
34
|
+
"escapedName": "form-data",
|
35
|
+
"name": "form-data",
|
36
|
+
"rawSpec": "~2.1.1",
|
37
|
+
"spec": ">=2.1.1 <2.2.0",
|
38
|
+
"type": "range"
|
39
|
+
},
|
16
40
|
"_requiredBy": [
|
17
41
|
"/request"
|
18
42
|
],
|
19
|
-
"_resolved": "https://registry.npmjs.org/form-data/-/form-data-1.
|
20
|
-
"_shasum": "
|
43
|
+
"_resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.2.tgz",
|
44
|
+
"_shasum": "89c3534008b97eada4cbb157d58f6f5df025eae4",
|
21
45
|
"_shrinkwrap": null,
|
46
|
+
"_spec": "form-data@~2.1.1",
|
47
|
+
"_where": "/Users/eshanker/Code/fsevents/node_modules/request",
|
22
48
|
"author": {
|
23
|
-
"email": "felix@debuggable.com",
|
24
49
|
"name": "Felix Geisendörfer",
|
50
|
+
"email": "felix@debuggable.com",
|
25
51
|
"url": "http://debuggable.com/"
|
26
52
|
},
|
27
53
|
"browser": "./lib/browser",
|
@@ -29,84 +55,91 @@
|
|
29
55
|
"url": "https://github.com/form-data/form-data/issues"
|
30
56
|
},
|
31
57
|
"dependencies": {
|
32
|
-
"
|
58
|
+
"asynckit": "^0.4.0",
|
33
59
|
"combined-stream": "^1.0.5",
|
34
|
-
"mime-types": "^2.1.
|
60
|
+
"mime-types": "^2.1.12"
|
35
61
|
},
|
36
62
|
"description": "A library to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.",
|
37
63
|
"devDependencies": {
|
38
|
-
"
|
39
|
-
"
|
40
|
-
"
|
41
|
-
"
|
64
|
+
"browserify": "^13.1.1",
|
65
|
+
"browserify-istanbul": "^2.0.0",
|
66
|
+
"coveralls": "^2.11.14",
|
67
|
+
"cross-spawn": "^4.0.2",
|
68
|
+
"eslint": "^3.9.1",
|
42
69
|
"fake": "^0.2.2",
|
43
70
|
"far": "^0.0.7",
|
44
71
|
"formidable": "^1.0.17",
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"
|
72
|
+
"in-publish": "^2.0.0",
|
73
|
+
"is-node-modern": "^1.0.0",
|
74
|
+
"istanbul": "^0.4.5",
|
75
|
+
"obake": "^0.1.2",
|
76
|
+
"phantomjs-prebuilt": "^2.1.13",
|
77
|
+
"pkgfiles": "^2.3.0",
|
78
|
+
"pre-commit": "^1.1.3",
|
79
|
+
"request": "2.76.0",
|
80
|
+
"rimraf": "^2.5.4",
|
81
|
+
"tape": "^4.6.2"
|
49
82
|
},
|
50
83
|
"directories": {},
|
51
84
|
"dist": {
|
52
|
-
"shasum": "
|
53
|
-
"tarball": "
|
85
|
+
"shasum": "89c3534008b97eada4cbb157d58f6f5df025eae4",
|
86
|
+
"tarball": "https://registry.npmjs.org/form-data/-/form-data-2.1.2.tgz"
|
54
87
|
},
|
55
88
|
"engines": {
|
56
|
-
"node": ">= 0.
|
89
|
+
"node": ">= 0.12"
|
57
90
|
},
|
58
|
-
"gitHead": "
|
91
|
+
"gitHead": "03444d21961a7a44cdc2eae11ee3630f6969023d",
|
59
92
|
"homepage": "https://github.com/form-data/form-data#readme",
|
60
93
|
"license": "MIT",
|
61
94
|
"main": "./lib/form_data",
|
62
95
|
"maintainers": [
|
63
|
-
{
|
64
|
-
"name": "felixge",
|
65
|
-
"email": "felix@debuggable.com"
|
66
|
-
},
|
67
|
-
{
|
68
|
-
"name": "idralyuk",
|
69
|
-
"email": "igor@buran.us"
|
70
|
-
},
|
71
96
|
{
|
72
97
|
"name": "alexindigo",
|
73
98
|
"email": "iam@alexindigo.com"
|
74
99
|
},
|
75
100
|
{
|
76
|
-
"name": "
|
77
|
-
"email": "
|
101
|
+
"name": "dylanpiercey",
|
102
|
+
"email": "pierceydylan@gmail.com"
|
78
103
|
},
|
79
104
|
{
|
80
|
-
"name": "
|
81
|
-
"email": "
|
105
|
+
"name": "felixge",
|
106
|
+
"email": "felix@debuggable.com"
|
82
107
|
},
|
83
108
|
{
|
84
|
-
"name": "
|
85
|
-
"email": "
|
109
|
+
"name": "mikeal",
|
110
|
+
"email": "mikeal.rogers@gmail.com"
|
86
111
|
}
|
87
112
|
],
|
88
113
|
"name": "form-data",
|
89
114
|
"optionalDependencies": {},
|
90
115
|
"pre-commit": [
|
91
|
-
"check",
|
92
116
|
"lint",
|
93
|
-
"test"
|
117
|
+
"ci-test",
|
118
|
+
"check"
|
94
119
|
],
|
95
|
-
"readme": "
|
96
|
-
"readmeFilename": "README.md",
|
120
|
+
"readme": "ERROR: No README data found!",
|
97
121
|
"repository": {
|
98
122
|
"type": "git",
|
99
123
|
"url": "git://github.com/form-data/form-data.git"
|
100
124
|
},
|
101
125
|
"scripts": {
|
126
|
+
"browser": "browserify -t browserify-istanbul test/run-browser.js | obake --coverage",
|
102
127
|
"check": "istanbul check-coverage coverage/coverage*.json",
|
103
|
-
"
|
128
|
+
"ci-lint": "is-node-modern 6 && npm run lint || is-node-not-modern 6",
|
129
|
+
"ci-test": "npm run test && npm run browser && npm run report",
|
104
130
|
"debug": "verbose=1 ./test/run.js",
|
105
|
-
"
|
106
|
-
"
|
131
|
+
"files": "pkgfiles --sort=name",
|
132
|
+
"get-version": "node -e \"console.log(require('./package.json').version)\"",
|
133
|
+
"lint": "eslint lib/*.js test/*.js test/integration/*.js",
|
134
|
+
"postpublish": "npm run restore-readme",
|
135
|
+
"posttest": "istanbul report lcov text",
|
107
136
|
"predebug": "rimraf coverage test/tmp",
|
137
|
+
"prepublish": "in-publish && npm run update-readme || not-in-publish",
|
108
138
|
"pretest": "rimraf coverage test/tmp",
|
109
|
-
"
|
139
|
+
"report": "istanbul report lcov text",
|
140
|
+
"restore-readme": "mv README.md.bak README.md",
|
141
|
+
"test": "istanbul cover test/run.js",
|
142
|
+
"update-readme": "sed -i.bak 's/\\/master\\.svg/\\/v'$(npm --silent run get-version)'.svg/g' README.md"
|
110
143
|
},
|
111
|
-
"version": "1.
|
144
|
+
"version": "2.1.2"
|
112
145
|
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
The ISC License
|
2
|
+
|
3
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
16
|
+
|
17
|
+
----
|
18
|
+
|
19
|
+
This library bundles a version of the `fs.realpath` and `fs.realpathSync`
|
20
|
+
methods from Node.js v0.10 under the terms of the Node.js MIT license.
|
21
|
+
|
22
|
+
Node's license follows, also included at the header of `old.js` which contains
|
23
|
+
the licensed code:
|
24
|
+
|
25
|
+
Copyright Joyent, Inc. and other Node contributors.
|
26
|
+
|
27
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
28
|
+
copy of this software and associated documentation files (the "Software"),
|
29
|
+
to deal in the Software without restriction, including without limitation
|
30
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
31
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
32
|
+
Software is furnished to do so, subject to the following conditions:
|
33
|
+
|
34
|
+
The above copyright notice and this permission notice shall be included in
|
35
|
+
all copies or substantial portions of the Software.
|
36
|
+
|
37
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
38
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
39
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
40
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
41
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
42
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
43
|
+
DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# fs.realpath
|
2
|
+
|
3
|
+
A backwards-compatible fs.realpath for Node v6 and above
|
4
|
+
|
5
|
+
In Node v6, the JavaScript implementation of fs.realpath was replaced
|
6
|
+
with a faster (but less resilient) native implementation. That raises
|
7
|
+
new and platform-specific errors and cannot handle long or excessively
|
8
|
+
symlink-looping paths.
|
9
|
+
|
10
|
+
This module handles those cases by detecting the new errors and
|
11
|
+
falling back to the JavaScript implementation. On versions of Node
|
12
|
+
prior to v6, it has no effect.
|
13
|
+
|
14
|
+
## USAGE
|
15
|
+
|
16
|
+
```js
|
17
|
+
var rp = require('fs.realpath')
|
18
|
+
|
19
|
+
// async version
|
20
|
+
rp.realpath(someLongAndLoopingPath, function (er, real) {
|
21
|
+
// the ELOOP was handled, but it was a bit slower
|
22
|
+
})
|
23
|
+
|
24
|
+
// sync version
|
25
|
+
var real = rp.realpathSync(someLongAndLoopingPath)
|
26
|
+
|
27
|
+
// monkeypatch at your own risk!
|
28
|
+
// This replaces the fs.realpath/fs.realpathSync builtins
|
29
|
+
rp.monkeypatch()
|
30
|
+
|
31
|
+
// un-do the monkeypatching
|
32
|
+
rp.unmonkeypatch()
|
33
|
+
```
|
@@ -0,0 +1,66 @@
|
|
1
|
+
module.exports = realpath
|
2
|
+
realpath.realpath = realpath
|
3
|
+
realpath.sync = realpathSync
|
4
|
+
realpath.realpathSync = realpathSync
|
5
|
+
realpath.monkeypatch = monkeypatch
|
6
|
+
realpath.unmonkeypatch = unmonkeypatch
|
7
|
+
|
8
|
+
var fs = require('fs')
|
9
|
+
var origRealpath = fs.realpath
|
10
|
+
var origRealpathSync = fs.realpathSync
|
11
|
+
|
12
|
+
var version = process.version
|
13
|
+
var ok = /^v[0-5]\./.test(version)
|
14
|
+
var old = require('./old.js')
|
15
|
+
|
16
|
+
function newError (er) {
|
17
|
+
return er && er.syscall === 'realpath' && (
|
18
|
+
er.code === 'ELOOP' ||
|
19
|
+
er.code === 'ENOMEM' ||
|
20
|
+
er.code === 'ENAMETOOLONG'
|
21
|
+
)
|
22
|
+
}
|
23
|
+
|
24
|
+
function realpath (p, cache, cb) {
|
25
|
+
if (ok) {
|
26
|
+
return origRealpath(p, cache, cb)
|
27
|
+
}
|
28
|
+
|
29
|
+
if (typeof cache === 'function') {
|
30
|
+
cb = cache
|
31
|
+
cache = null
|
32
|
+
}
|
33
|
+
origRealpath(p, cache, function (er, result) {
|
34
|
+
if (newError(er)) {
|
35
|
+
old.realpath(p, cache, cb)
|
36
|
+
} else {
|
37
|
+
cb(er, result)
|
38
|
+
}
|
39
|
+
})
|
40
|
+
}
|
41
|
+
|
42
|
+
function realpathSync (p, cache) {
|
43
|
+
if (ok) {
|
44
|
+
return origRealpathSync(p, cache)
|
45
|
+
}
|
46
|
+
|
47
|
+
try {
|
48
|
+
return origRealpathSync(p, cache)
|
49
|
+
} catch (er) {
|
50
|
+
if (newError(er)) {
|
51
|
+
return old.realpathSync(p, cache)
|
52
|
+
} else {
|
53
|
+
throw er
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
function monkeypatch () {
|
59
|
+
fs.realpath = realpath
|
60
|
+
fs.realpathSync = realpathSync
|
61
|
+
}
|
62
|
+
|
63
|
+
function unmonkeypatch () {
|
64
|
+
fs.realpath = origRealpath
|
65
|
+
fs.realpathSync = origRealpathSync
|
66
|
+
}
|
@@ -0,0 +1,303 @@
|
|
1
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
2
|
+
//
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
4
|
+
// copy of this software and associated documentation files (the
|
5
|
+
// "Software"), to deal in the Software without restriction, including
|
6
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
8
|
+
// persons to whom the Software is furnished to do so, subject to the
|
9
|
+
// following conditions:
|
10
|
+
//
|
11
|
+
// The above copyright notice and this permission notice shall be included
|
12
|
+
// in all copies or substantial portions of the Software.
|
13
|
+
//
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
15
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
17
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
18
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
19
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
20
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
|
+
|
22
|
+
var pathModule = require('path');
|
23
|
+
var isWindows = process.platform === 'win32';
|
24
|
+
var fs = require('fs');
|
25
|
+
|
26
|
+
// JavaScript implementation of realpath, ported from node pre-v6
|
27
|
+
|
28
|
+
var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
29
|
+
|
30
|
+
function rethrow() {
|
31
|
+
// Only enable in debug mode. A backtrace uses ~1000 bytes of heap space and
|
32
|
+
// is fairly slow to generate.
|
33
|
+
var callback;
|
34
|
+
if (DEBUG) {
|
35
|
+
var backtrace = new Error;
|
36
|
+
callback = debugCallback;
|
37
|
+
} else
|
38
|
+
callback = missingCallback;
|
39
|
+
|
40
|
+
return callback;
|
41
|
+
|
42
|
+
function debugCallback(err) {
|
43
|
+
if (err) {
|
44
|
+
backtrace.message = err.message;
|
45
|
+
err = backtrace;
|
46
|
+
missingCallback(err);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
function missingCallback(err) {
|
51
|
+
if (err) {
|
52
|
+
if (process.throwDeprecation)
|
53
|
+
throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
|
54
|
+
else if (!process.noDeprecation) {
|
55
|
+
var msg = 'fs: missing callback ' + (err.stack || err.message);
|
56
|
+
if (process.traceDeprecation)
|
57
|
+
console.trace(msg);
|
58
|
+
else
|
59
|
+
console.error(msg);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
function maybeCallback(cb) {
|
66
|
+
return typeof cb === 'function' ? cb : rethrow();
|
67
|
+
}
|
68
|
+
|
69
|
+
var normalize = pathModule.normalize;
|
70
|
+
|
71
|
+
// Regexp that finds the next partion of a (partial) path
|
72
|
+
// result is [base_with_slash, base], e.g. ['somedir/', 'somedir']
|
73
|
+
if (isWindows) {
|
74
|
+
var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
|
75
|
+
} else {
|
76
|
+
var nextPartRe = /(.*?)(?:[\/]+|$)/g;
|
77
|
+
}
|
78
|
+
|
79
|
+
// Regex to find the device root, including trailing slash. E.g. 'c:\\'.
|
80
|
+
if (isWindows) {
|
81
|
+
var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
|
82
|
+
} else {
|
83
|
+
var splitRootRe = /^[\/]*/;
|
84
|
+
}
|
85
|
+
|
86
|
+
exports.realpathSync = function realpathSync(p, cache) {
|
87
|
+
// make p is absolute
|
88
|
+
p = pathModule.resolve(p);
|
89
|
+
|
90
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
91
|
+
return cache[p];
|
92
|
+
}
|
93
|
+
|
94
|
+
var original = p,
|
95
|
+
seenLinks = {},
|
96
|
+
knownHard = {};
|
97
|
+
|
98
|
+
// current character position in p
|
99
|
+
var pos;
|
100
|
+
// the partial path so far, including a trailing slash if any
|
101
|
+
var current;
|
102
|
+
// the partial path without a trailing slash (except when pointing at a root)
|
103
|
+
var base;
|
104
|
+
// the partial path scanned in the previous round, with slash
|
105
|
+
var previous;
|
106
|
+
|
107
|
+
start();
|
108
|
+
|
109
|
+
function start() {
|
110
|
+
// Skip over roots
|
111
|
+
var m = splitRootRe.exec(p);
|
112
|
+
pos = m[0].length;
|
113
|
+
current = m[0];
|
114
|
+
base = m[0];
|
115
|
+
previous = '';
|
116
|
+
|
117
|
+
// On windows, check that the root exists. On unix there is no need.
|
118
|
+
if (isWindows && !knownHard[base]) {
|
119
|
+
fs.lstatSync(base);
|
120
|
+
knownHard[base] = true;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
// walk down the path, swapping out linked pathparts for their real
|
125
|
+
// values
|
126
|
+
// NB: p.length changes.
|
127
|
+
while (pos < p.length) {
|
128
|
+
// find the next part
|
129
|
+
nextPartRe.lastIndex = pos;
|
130
|
+
var result = nextPartRe.exec(p);
|
131
|
+
previous = current;
|
132
|
+
current += result[0];
|
133
|
+
base = previous + result[1];
|
134
|
+
pos = nextPartRe.lastIndex;
|
135
|
+
|
136
|
+
// continue if not a symlink
|
137
|
+
if (knownHard[base] || (cache && cache[base] === base)) {
|
138
|
+
continue;
|
139
|
+
}
|
140
|
+
|
141
|
+
var resolvedLink;
|
142
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
143
|
+
// some known symbolic link. no need to stat again.
|
144
|
+
resolvedLink = cache[base];
|
145
|
+
} else {
|
146
|
+
var stat = fs.lstatSync(base);
|
147
|
+
if (!stat.isSymbolicLink()) {
|
148
|
+
knownHard[base] = true;
|
149
|
+
if (cache) cache[base] = base;
|
150
|
+
continue;
|
151
|
+
}
|
152
|
+
|
153
|
+
// read the link if it wasn't read before
|
154
|
+
// dev/ino always return 0 on windows, so skip the check.
|
155
|
+
var linkTarget = null;
|
156
|
+
if (!isWindows) {
|
157
|
+
var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
|
158
|
+
if (seenLinks.hasOwnProperty(id)) {
|
159
|
+
linkTarget = seenLinks[id];
|
160
|
+
}
|
161
|
+
}
|
162
|
+
if (linkTarget === null) {
|
163
|
+
fs.statSync(base);
|
164
|
+
linkTarget = fs.readlinkSync(base);
|
165
|
+
}
|
166
|
+
resolvedLink = pathModule.resolve(previous, linkTarget);
|
167
|
+
// track this, if given a cache.
|
168
|
+
if (cache) cache[base] = resolvedLink;
|
169
|
+
if (!isWindows) seenLinks[id] = linkTarget;
|
170
|
+
}
|
171
|
+
|
172
|
+
// resolve the link, then start over
|
173
|
+
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
174
|
+
start();
|
175
|
+
}
|
176
|
+
|
177
|
+
if (cache) cache[original] = p;
|
178
|
+
|
179
|
+
return p;
|
180
|
+
};
|
181
|
+
|
182
|
+
|
183
|
+
exports.realpath = function realpath(p, cache, cb) {
|
184
|
+
if (typeof cb !== 'function') {
|
185
|
+
cb = maybeCallback(cache);
|
186
|
+
cache = null;
|
187
|
+
}
|
188
|
+
|
189
|
+
// make p is absolute
|
190
|
+
p = pathModule.resolve(p);
|
191
|
+
|
192
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
193
|
+
return process.nextTick(cb.bind(null, null, cache[p]));
|
194
|
+
}
|
195
|
+
|
196
|
+
var original = p,
|
197
|
+
seenLinks = {},
|
198
|
+
knownHard = {};
|
199
|
+
|
200
|
+
// current character position in p
|
201
|
+
var pos;
|
202
|
+
// the partial path so far, including a trailing slash if any
|
203
|
+
var current;
|
204
|
+
// the partial path without a trailing slash (except when pointing at a root)
|
205
|
+
var base;
|
206
|
+
// the partial path scanned in the previous round, with slash
|
207
|
+
var previous;
|
208
|
+
|
209
|
+
start();
|
210
|
+
|
211
|
+
function start() {
|
212
|
+
// Skip over roots
|
213
|
+
var m = splitRootRe.exec(p);
|
214
|
+
pos = m[0].length;
|
215
|
+
current = m[0];
|
216
|
+
base = m[0];
|
217
|
+
previous = '';
|
218
|
+
|
219
|
+
// On windows, check that the root exists. On unix there is no need.
|
220
|
+
if (isWindows && !knownHard[base]) {
|
221
|
+
fs.lstat(base, function(err) {
|
222
|
+
if (err) return cb(err);
|
223
|
+
knownHard[base] = true;
|
224
|
+
LOOP();
|
225
|
+
});
|
226
|
+
} else {
|
227
|
+
process.nextTick(LOOP);
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
// walk down the path, swapping out linked pathparts for their real
|
232
|
+
// values
|
233
|
+
function LOOP() {
|
234
|
+
// stop if scanned past end of path
|
235
|
+
if (pos >= p.length) {
|
236
|
+
if (cache) cache[original] = p;
|
237
|
+
return cb(null, p);
|
238
|
+
}
|
239
|
+
|
240
|
+
// find the next part
|
241
|
+
nextPartRe.lastIndex = pos;
|
242
|
+
var result = nextPartRe.exec(p);
|
243
|
+
previous = current;
|
244
|
+
current += result[0];
|
245
|
+
base = previous + result[1];
|
246
|
+
pos = nextPartRe.lastIndex;
|
247
|
+
|
248
|
+
// continue if not a symlink
|
249
|
+
if (knownHard[base] || (cache && cache[base] === base)) {
|
250
|
+
return process.nextTick(LOOP);
|
251
|
+
}
|
252
|
+
|
253
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
254
|
+
// known symbolic link. no need to stat again.
|
255
|
+
return gotResolvedLink(cache[base]);
|
256
|
+
}
|
257
|
+
|
258
|
+
return fs.lstat(base, gotStat);
|
259
|
+
}
|
260
|
+
|
261
|
+
function gotStat(err, stat) {
|
262
|
+
if (err) return cb(err);
|
263
|
+
|
264
|
+
// if not a symlink, skip to the next path part
|
265
|
+
if (!stat.isSymbolicLink()) {
|
266
|
+
knownHard[base] = true;
|
267
|
+
if (cache) cache[base] = base;
|
268
|
+
return process.nextTick(LOOP);
|
269
|
+
}
|
270
|
+
|
271
|
+
// stat & read the link if not read before
|
272
|
+
// call gotTarget as soon as the link target is known
|
273
|
+
// dev/ino always return 0 on windows, so skip the check.
|
274
|
+
if (!isWindows) {
|
275
|
+
var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
|
276
|
+
if (seenLinks.hasOwnProperty(id)) {
|
277
|
+
return gotTarget(null, seenLinks[id], base);
|
278
|
+
}
|
279
|
+
}
|
280
|
+
fs.stat(base, function(err) {
|
281
|
+
if (err) return cb(err);
|
282
|
+
|
283
|
+
fs.readlink(base, function(err, target) {
|
284
|
+
if (!isWindows) seenLinks[id] = target;
|
285
|
+
gotTarget(err, target);
|
286
|
+
});
|
287
|
+
});
|
288
|
+
}
|
289
|
+
|
290
|
+
function gotTarget(err, target, base) {
|
291
|
+
if (err) return cb(err);
|
292
|
+
|
293
|
+
var resolvedLink = pathModule.resolve(previous, target);
|
294
|
+
if (cache) cache[base] = resolvedLink;
|
295
|
+
gotResolvedLink(resolvedLink);
|
296
|
+
}
|
297
|
+
|
298
|
+
function gotResolvedLink(resolvedLink) {
|
299
|
+
// resolve the link, then start over
|
300
|
+
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
301
|
+
start();
|
302
|
+
}
|
303
|
+
};
|