fsevents 1.0.15 → 1.1.1
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/fsevents.js +3 -0
- package/install.js +7 -0
- package/lib/binding/Release/node-v48-darwin-x64/fse.node +0 -0
- package/node_modules/abbrev/abbrev.js +0 -1
- package/node_modules/abbrev/package.json +32 -21
- package/node_modules/ansi-regex/index.js +1 -1
- package/node_modules/ansi-regex/package.json +61 -42
- package/node_modules/ansi-regex/readme.md +10 -2
- package/node_modules/ansi-styles/package.json +27 -19
- package/node_modules/aproba/README.md +33 -3
- package/node_modules/aproba/index.js +71 -30
- package/node_modules/aproba/package.json +30 -22
- package/node_modules/are-we-there-yet/package.json +14 -6
- package/node_modules/asn1/package.json +16 -8
- package/node_modules/assert-plus/package.json +16 -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 +15 -7
- package/node_modules/aws4/README.md +9 -0
- package/node_modules/aws4/aws4.js +21 -7
- package/node_modules/aws4/package.json +62 -54
- package/node_modules/balanced-match/package.json +27 -19
- package/node_modules/bcrypt-pbkdf/README.md +39 -0
- package/node_modules/bcrypt-pbkdf/index.js +556 -0
- package/node_modules/bcrypt-pbkdf/package.json +84 -0
- package/node_modules/block-stream/package.json +15 -7
- package/node_modules/boom/package.json +14 -6
- package/node_modules/brace-expansion/index.js +10 -0
- package/node_modules/brace-expansion/package.json +35 -27
- package/node_modules/buffer-shims/package.json +16 -7
- package/node_modules/caseless/package.json +18 -10
- package/node_modules/chalk/package.json +30 -22
- package/node_modules/code-point-at/index.js +3 -4
- package/node_modules/code-point-at/package.json +40 -30
- package/node_modules/code-point-at/readme.md +2 -4
- package/node_modules/combined-stream/package.json +15 -7
- package/node_modules/commander/package.json +16 -8
- package/node_modules/concat-map/package.json +30 -22
- package/node_modules/console-control-strings/package.json +15 -7
- package/node_modules/core-util-is/package.json +22 -14
- package/node_modules/cryptiles/package.json +14 -6
- 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/node_modules/assert-plus/package.json +16 -8
- package/node_modules/dashdash/package.json +33 -24
- package/node_modules/debug/package.json +20 -12
- package/node_modules/deep-extend/package.json +23 -15
- package/node_modules/delayed-stream/package.json +15 -7
- package/node_modules/delegates/package.json +14 -6
- package/node_modules/ecc-jsbn/package.json +17 -9
- package/node_modules/escape-string-regexp/package.json +20 -12
- package/node_modules/extend/package.json +16 -8
- package/node_modules/extsprintf/package.json +14 -6
- package/node_modules/forever-agent/package.json +15 -7
- 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 +68 -52
- package/node_modules/fs.realpath/package.json +19 -11
- package/node_modules/fstream/package.json +15 -7
- package/node_modules/fstream-ignore/package.json +15 -7
- package/node_modules/gauge/CHANGELOG.md +24 -0
- package/node_modules/gauge/README.md +4 -0
- package/node_modules/gauge/index.js +16 -9
- package/node_modules/gauge/package.json +37 -29
- package/node_modules/generate-function/package.json +16 -8
- package/node_modules/generate-object-property/package.json +14 -6
- package/node_modules/getpass/node_modules/assert-plus/package.json +16 -8
- package/node_modules/getpass/package.json +16 -8
- package/node_modules/glob/README.md +3 -0
- package/node_modules/glob/common.js +6 -1
- package/node_modules/glob/glob.js +23 -14
- package/node_modules/glob/package.json +29 -21
- package/node_modules/glob/sync.js +29 -11
- package/node_modules/graceful-fs/README.md +1 -1
- package/node_modules/graceful-fs/graceful-fs.js +23 -14
- package/node_modules/graceful-fs/package.json +35 -27
- package/node_modules/graceful-fs/polyfills.js +99 -21
- package/node_modules/graceful-readlink/package.json +14 -6
- package/node_modules/har-validator/package.json +16 -8
- package/node_modules/has-ansi/package.json +29 -21
- package/node_modules/has-unicode/package.json +18 -10
- package/node_modules/hawk/package.json +18 -10
- package/node_modules/hoek/package.json +14 -6
- package/node_modules/http-signature/package.json +14 -6
- package/node_modules/inflight/inflight.js +22 -12
- package/node_modules/inflight/package.json +28 -20
- package/node_modules/inherits/inherits.js +7 -1
- package/node_modules/inherits/package.json +41 -21
- package/node_modules/ini/package.json +15 -7
- package/node_modules/is-fullwidth-code-point/package.json +27 -19
- package/node_modules/is-my-json-valid/index.js +10 -0
- package/node_modules/is-my-json-valid/package.json +36 -20
- package/node_modules/is-my-json-valid/test/misc.js +24 -0
- package/node_modules/is-property/package.json +19 -11
- package/node_modules/is-typedarray/package.json +16 -8
- package/node_modules/isarray/package.json +28 -20
- package/node_modules/isstream/package.json +19 -11
- package/node_modules/jodid25519/package.json +18 -10
- package/node_modules/jsbn/index.js +8 -9
- package/node_modules/jsbn/package.json +30 -18
- 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 +32 -18
- package/node_modules/json-stringify-safe/package.json +18 -10
- package/node_modules/{async/LICENSE → jsonpointer/LICENSE.md} +3 -1
- package/node_modules/jsonpointer/README.md +17 -10
- package/node_modules/jsonpointer/jsonpointer.js +73 -56
- package/node_modules/jsonpointer/package.json +47 -26
- package/node_modules/jsprim/CHANGES.md +4 -0
- package/node_modules/jsprim/package.json +25 -17
- package/node_modules/mime-db/HISTORY.md +50 -0
- package/node_modules/mime-db/db.json +126 -2
- package/node_modules/mime-db/package.json +43 -30
- 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 +32 -19
- package/node_modules/minimatch/minimatch.js +19 -20
- package/node_modules/minimatch/package.json +25 -17
- package/node_modules/minimist/package.json +24 -16
- package/node_modules/mkdirp/package.json +21 -13
- package/node_modules/ms/package.json +14 -6
- package/node_modules/node-pre-gyp/CHANGELOG.md +20 -0
- package/node_modules/node-pre-gyp/README.md +574 -0
- package/node_modules/node-pre-gyp/appveyor.yml +19 -9
- package/node_modules/node-pre-gyp/lib/install.js +31 -7
- package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +3 -1
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +140 -0
- package/node_modules/node-pre-gyp/package.json +52 -48
- package/node_modules/nopt/package.json +19 -11
- package/node_modules/npmlog/CHANGELOG.md +9 -0
- package/node_modules/npmlog/README.md +7 -1
- package/node_modules/npmlog/log.js +12 -8
- package/node_modules/npmlog/package.json +30 -22
- package/node_modules/number-is-nan/package.json +39 -30
- package/node_modules/number-is-nan/readme.md +1 -3
- package/node_modules/oauth-sign/package.json +15 -7
- package/node_modules/object-assign/index.js +11 -4
- package/node_modules/object-assign/package.json +42 -30
- package/node_modules/object-assign/readme.md +8 -3
- package/node_modules/once/README.md +28 -0
- package/node_modules/once/once.js +21 -0
- package/node_modules/once/package.json +31 -20
- package/node_modules/path-is-absolute/index.js +5 -5
- package/node_modules/path-is-absolute/package.json +45 -31
- package/node_modules/path-is-absolute/readme.md +19 -11
- package/node_modules/pinkie/package.json +18 -10
- package/node_modules/pinkie-promise/package.json +18 -10
- package/node_modules/process-nextick-args/package.json +16 -8
- 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 -15
- package/node_modules/qs/CHANGELOG.md +36 -0
- package/node_modules/qs/README.md +431 -0
- package/node_modules/qs/dist/qs.js +167 -67
- 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 +31 -32
- package/node_modules/qs/lib/stringify.js +83 -20
- package/node_modules/qs/lib/utils.js +23 -7
- package/node_modules/qs/package.json +40 -30
- package/node_modules/qs/test/.eslintrc +10 -0
- package/node_modules/qs/test/index.js +2 -0
- package/node_modules/qs/test/parse.js +108 -47
- package/node_modules/qs/test/stringify.js +261 -28
- package/node_modules/qs/test/utils.js +13 -0
- package/node_modules/rc/node_modules/minimist/package.json +24 -16
- package/node_modules/rc/package.json +35 -23
- package/node_modules/readable-stream/.npmignore +1 -0
- package/node_modules/readable-stream/.travis.yml +2 -7
- package/node_modules/readable-stream/README.md +6 -2
- package/node_modules/readable-stream/lib/_stream_readable.js +158 -110
- package/node_modules/readable-stream/lib/_stream_transform.js +7 -5
- package/node_modules/readable-stream/lib/_stream_writable.js +35 -7
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +64 -0
- package/node_modules/readable-stream/package.json +34 -26
- package/node_modules/request/CHANGELOG.md +49 -18
- package/node_modules/request/README.md +3 -2
- package/node_modules/request/index.js +2 -3
- package/node_modules/request/lib/auth.js +1 -1
- package/node_modules/request/lib/helpers.js +4 -13
- 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 +50 -31
- package/node_modules/request/request.js +84 -43
- package/node_modules/rimraf/package.json +28 -20
- package/node_modules/rimraf/rimraf.js +2 -2
- package/node_modules/semver/README.md +4 -0
- package/node_modules/semver/package.json +27 -19
- package/node_modules/semver/semver.js +14 -5
- package/node_modules/set-blocking/package.json +21 -13
- package/node_modules/signal-exit/CHANGELOG.md +10 -0
- package/node_modules/signal-exit/LICENSE.txt +2 -0
- package/node_modules/signal-exit/index.js +9 -0
- package/node_modules/signal-exit/package.json +32 -24
- package/node_modules/signal-exit/signals.js +5 -4
- package/node_modules/sntp/package.json +16 -8
- package/node_modules/sshpk/README.md +214 -3
- package/node_modules/sshpk/bin/sshpk-conv +6 -0
- package/node_modules/sshpk/lib/certificate.js +291 -0
- package/node_modules/sshpk/lib/errors.js +14 -1
- package/node_modules/sshpk/lib/fingerprint.js +28 -7
- package/node_modules/sshpk/lib/formats/openssh-cert.js +289 -0
- package/node_modules/sshpk/lib/formats/pem.js +2 -2
- package/node_modules/sshpk/lib/formats/pkcs8.js +2 -7
- package/node_modules/sshpk/lib/formats/ssh-private.js +140 -17
- 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 +277 -0
- package/node_modules/sshpk/lib/index.js +13 -1
- package/node_modules/sshpk/lib/key.js +1 -0
- 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 +43 -1
- package/node_modules/sshpk/node_modules/assert-plus/package.json +16 -8
- package/node_modules/sshpk/package.json +32 -22
- package/node_modules/string-width/index.js +5 -0
- package/node_modules/string-width/package.json +49 -36
- package/node_modules/string-width/readme.md +4 -3
- package/node_modules/string_decoder/package.json +19 -11
- package/node_modules/stringstream/package.json +18 -10
- package/node_modules/strip-ansi/package.json +29 -21
- package/node_modules/strip-json-comments/index.js +70 -0
- package/node_modules/strip-json-comments/package.json +49 -43
- package/node_modules/strip-json-comments/readme.md +12 -28
- package/node_modules/supports-color/package.json +26 -18
- package/node_modules/tar/package.json +19 -11
- 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/tar-pack/node_modules/once/README.md +51 -0
- package/node_modules/tar-pack/node_modules/once/once.js +21 -0
- package/node_modules/tar-pack/node_modules/once/package.json +96 -0
- package/node_modules/tar-pack/node_modules/readable-stream/.npmignore +8 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/.travis.yml +4 -7
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/LICENSE +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/README.md +2 -2
- package/node_modules/tar-pack/node_modules/readable-stream/doc/stream.md +2015 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/duplex.js +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_duplex.js +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_passthrough.js +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_readable.js +164 -107
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_transform.js +3 -3
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_writable.js +25 -15
- package/node_modules/tar-pack/node_modules/readable-stream/lib/internal/streams/BufferList.js +64 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/package.json +50 -30
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/passthrough.js +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/readable.js +4 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/transform.js +0 -0
- package/node_modules/{bl → tar-pack}/node_modules/readable-stream/writable.js +0 -0
- package/node_modules/tar-pack/package.json +39 -22
- package/node_modules/tar-pack/test/index.js +43 -1
- 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 +50 -35
- package/node_modules/tunnel-agent/package.json +15 -7
- package/node_modules/tweetnacl/AUTHORS.md +28 -0
- package/node_modules/tweetnacl/CHANGELOG.md +93 -0
- package/node_modules/tweetnacl/LICENSE +24 -0
- package/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +20 -0
- package/node_modules/tweetnacl/README.md +57 -61
- package/node_modules/tweetnacl/nacl-fast.js +22 -52
- package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
- package/node_modules/tweetnacl/nacl.d.ts +98 -0
- package/node_modules/tweetnacl/nacl.js +21 -51
- package/node_modules/tweetnacl/nacl.min.js +1 -1
- package/node_modules/tweetnacl/package.json +47 -46
- package/node_modules/uid-number/package.json +15 -7
- package/node_modules/util-deprecate/package.json +21 -13
- 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/uuid/LICENSE.md +21 -0
- 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 +14 -6
- package/node_modules/wide-align/package.json +19 -11
- package/node_modules/wrappy/package.json +17 -8
- package/node_modules/xtend/package.json +29 -21
- package/package.json +2 -2
- package/node_modules/async/CHANGELOG.md +0 -125
- 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 -149
- 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 -243
- package/node_modules/bl/node_modules/readable-stream/.npmignore +0 -5
- package/node_modules/bl/node_modules/readable-stream/.zuul.yml +0 -1
- package/node_modules/bl/node_modules/readable-stream/doc/stream.markdown +0 -1760
- package/node_modules/bl/package.json +0 -96
- package/node_modules/bl/test/test.js +0 -640
- 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/gauge/CHANGELOG.md~ +0 -123
- package/node_modules/gauge/README.md~ +0 -393
- package/node_modules/has-color/index.js +0 -32
- package/node_modules/has-color/package.json +0 -97
- package/node_modules/has-color/readme.md +0 -30
- 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/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 -105
- 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/CHANGELOG.md~ +0 -31
- package/node_modules/qs/.jscs.json +0 -176
- package/node_modules/qs/CONTRIBUTING.md +0 -1
- package/node_modules/readable-stream/doc/stream.md +0 -1772
- package/node_modules/request/.eslintrc +0 -45
- package/node_modules/request/.npmignore +0 -6
- package/node_modules/request/.travis.yml +0 -21
- package/node_modules/request/CONTRIBUTING.md +0 -81
- package/node_modules/request/codecov.yml +0 -2
- package/node_modules/strip-json-comments/cli.js +0 -41
- package/node_modules/strip-json-comments/strip-json-comments.js +0 -73
@@ -13,17 +13,39 @@ var versioning = require('./util/versioning.js');
|
|
13
13
|
var testbinary = require('./testbinary.js');
|
14
14
|
var clean = require('./clean.js');
|
15
15
|
|
16
|
+
var npgVersion = 'unknown';
|
17
|
+
try {
|
18
|
+
// Read own package.json to get the current node-pre-pyp version.
|
19
|
+
var ownPackageJSON = fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8');
|
20
|
+
npgVersion = JSON.parse(ownPackageJSON).version;
|
21
|
+
} catch (e) {}
|
22
|
+
|
16
23
|
function download(uri,opts,callback) {
|
17
24
|
log.http('GET', uri);
|
18
25
|
|
19
26
|
var req = null;
|
27
|
+
|
28
|
+
// Try getting version info from the currently running npm.
|
29
|
+
var envVersionInfo = process.env.npm_config_user_agent ||
|
30
|
+
'node ' + process.version;
|
31
|
+
|
20
32
|
var requestOpts = {
|
21
33
|
uri: uri.replace('+','%2B'),
|
22
34
|
headers: {
|
23
|
-
'User-Agent': 'node-pre-gyp (
|
35
|
+
'User-Agent': 'node-pre-gyp (v' + npgVersion + ', ' + envVersionInfo + ')'
|
24
36
|
}
|
25
37
|
};
|
26
38
|
|
39
|
+
if (opts.cafile) {
|
40
|
+
try {
|
41
|
+
requestOpts.ca = fs.readFileSync(opts.cafile);
|
42
|
+
} catch (e) {
|
43
|
+
return callback(e);
|
44
|
+
}
|
45
|
+
} else if (opts.ca) {
|
46
|
+
requestOpts.ca = opts.ca;
|
47
|
+
}
|
48
|
+
|
27
49
|
var proxyUrl = opts.proxy ||
|
28
50
|
process.env.http_proxy ||
|
29
51
|
process.env.HTTP_PROXY ||
|
@@ -95,11 +117,9 @@ function place_binary(from,to,opts,callback) {
|
|
95
117
|
req.on('response', function(res) {
|
96
118
|
if (res.statusCode !== 200) {
|
97
119
|
badDownload = true;
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
return callback(new Error(res.statusCode + ' status code downloading tarball ' + from));
|
102
|
-
}
|
120
|
+
var err = new Error(res.statusCode + ' status code downloading tarball ' + from);
|
121
|
+
err.statusCode = res.statusCode;
|
122
|
+
return callback(err);
|
103
123
|
}
|
104
124
|
// start unzipping and untaring
|
105
125
|
req.pipe(gunzip).pipe(extracter);
|
@@ -117,7 +137,7 @@ function print_fallback_error(err,opts,package_json) {
|
|
117
137
|
var full_message = "Pre-built binaries not found for " + package_json.name + "@" + package_json.version;
|
118
138
|
full_message += " and " + opts.runtime + "@" + (opts.target || process.versions.node) + " (" + opts.node_abi + " ABI)";
|
119
139
|
full_message += fallback_message;
|
120
|
-
log.error("Tried to download: " + opts.hosted_tarball);
|
140
|
+
log.error("Tried to download(" + err.statusCode + "): " + opts.hosted_tarball);
|
121
141
|
log.error(full_message);
|
122
142
|
log.http(err.message);
|
123
143
|
}
|
@@ -149,6 +169,10 @@ function install(gyp, argv, callback) {
|
|
149
169
|
} catch (err) {
|
150
170
|
return callback(err);
|
151
171
|
}
|
172
|
+
|
173
|
+
opts.ca = gyp.opts.ca;
|
174
|
+
opts.cafile = gyp.opts.cafile;
|
175
|
+
|
152
176
|
var from = opts.hosted_tarball;
|
153
177
|
var to = opts.module_path;
|
154
178
|
var binary_module = path.join(to,opts.module_name + '.node');
|
@@ -13,6 +13,8 @@ module.exports = exports;
|
|
13
13
|
var path = require('path');
|
14
14
|
var nopt = require('nopt');
|
15
15
|
var log = require('npmlog');
|
16
|
+
log.disableProgress();
|
17
|
+
|
16
18
|
var EE = require('events').EventEmitter;
|
17
19
|
var inherits = require('util').inherits;
|
18
20
|
var commands = [
|
@@ -57,7 +59,7 @@ var proto = Run.prototype;
|
|
57
59
|
* Export the contents of the package.json.
|
58
60
|
*/
|
59
61
|
|
60
|
-
proto.package = require('../package');
|
62
|
+
proto.package = require('../package.json');
|
61
63
|
|
62
64
|
/**
|
63
65
|
* nopt configuration definitions
|
@@ -795,6 +795,14 @@
|
|
795
795
|
"node_abi": 11,
|
796
796
|
"v8": "3.14"
|
797
797
|
},
|
798
|
+
"0.10.47": {
|
799
|
+
"node_abi": 11,
|
800
|
+
"v8": "3.14"
|
801
|
+
},
|
802
|
+
"0.10.48": {
|
803
|
+
"node_abi": 11,
|
804
|
+
"v8": "3.14"
|
805
|
+
},
|
798
806
|
"0.11.0": {
|
799
807
|
"node_abi": 12,
|
800
808
|
"v8": "3.17"
|
@@ -927,6 +935,18 @@
|
|
927
935
|
"node_abi": 14,
|
928
936
|
"v8": "3.28"
|
929
937
|
},
|
938
|
+
"0.12.16": {
|
939
|
+
"node_abi": 14,
|
940
|
+
"v8": "3.28"
|
941
|
+
},
|
942
|
+
"0.12.17": {
|
943
|
+
"node_abi": 14,
|
944
|
+
"v8": "3.28"
|
945
|
+
},
|
946
|
+
"0.12.18": {
|
947
|
+
"node_abi": 14,
|
948
|
+
"v8": "3.28"
|
949
|
+
},
|
930
950
|
"1.0.0": {
|
931
951
|
"node_abi": 42,
|
932
952
|
"v8": "3.31"
|
@@ -1175,6 +1195,42 @@
|
|
1175
1195
|
"node_abi": 46,
|
1176
1196
|
"v8": "4.5"
|
1177
1197
|
},
|
1198
|
+
"4.4.7": {
|
1199
|
+
"node_abi": 46,
|
1200
|
+
"v8": "4.5"
|
1201
|
+
},
|
1202
|
+
"4.5.0": {
|
1203
|
+
"node_abi": 46,
|
1204
|
+
"v8": "4.5"
|
1205
|
+
},
|
1206
|
+
"4.6.0": {
|
1207
|
+
"node_abi": 46,
|
1208
|
+
"v8": "4.5"
|
1209
|
+
},
|
1210
|
+
"4.6.1": {
|
1211
|
+
"node_abi": 46,
|
1212
|
+
"v8": "4.5"
|
1213
|
+
},
|
1214
|
+
"4.6.2": {
|
1215
|
+
"node_abi": 46,
|
1216
|
+
"v8": "4.5"
|
1217
|
+
},
|
1218
|
+
"4.7.0": {
|
1219
|
+
"node_abi": 46,
|
1220
|
+
"v8": "4.5"
|
1221
|
+
},
|
1222
|
+
"4.7.1": {
|
1223
|
+
"node_abi": 46,
|
1224
|
+
"v8": "4.5"
|
1225
|
+
},
|
1226
|
+
"4.7.2": {
|
1227
|
+
"node_abi": 46,
|
1228
|
+
"v8": "4.5"
|
1229
|
+
},
|
1230
|
+
"4.7.3": {
|
1231
|
+
"node_abi": 46,
|
1232
|
+
"v8": "4.5"
|
1233
|
+
},
|
1178
1234
|
"5.0.0": {
|
1179
1235
|
"node_abi": 47,
|
1180
1236
|
"v8": "4.6"
|
@@ -1270,5 +1326,89 @@
|
|
1270
1326
|
"6.2.2": {
|
1271
1327
|
"node_abi": 48,
|
1272
1328
|
"v8": "5.0"
|
1329
|
+
},
|
1330
|
+
"6.3.0": {
|
1331
|
+
"node_abi": 48,
|
1332
|
+
"v8": "5.0"
|
1333
|
+
},
|
1334
|
+
"6.3.1": {
|
1335
|
+
"node_abi": 48,
|
1336
|
+
"v8": "5.0"
|
1337
|
+
},
|
1338
|
+
"6.4.0": {
|
1339
|
+
"node_abi": 48,
|
1340
|
+
"v8": "5.0"
|
1341
|
+
},
|
1342
|
+
"6.5.0": {
|
1343
|
+
"node_abi": 48,
|
1344
|
+
"v8": "5.1"
|
1345
|
+
},
|
1346
|
+
"6.6.0": {
|
1347
|
+
"node_abi": 48,
|
1348
|
+
"v8": "5.1"
|
1349
|
+
},
|
1350
|
+
"6.7.0": {
|
1351
|
+
"node_abi": 48,
|
1352
|
+
"v8": "5.1"
|
1353
|
+
},
|
1354
|
+
"6.8.0": {
|
1355
|
+
"node_abi": 48,
|
1356
|
+
"v8": "5.1"
|
1357
|
+
},
|
1358
|
+
"6.8.1": {
|
1359
|
+
"node_abi": 48,
|
1360
|
+
"v8": "5.1"
|
1361
|
+
},
|
1362
|
+
"6.9.0": {
|
1363
|
+
"node_abi": 48,
|
1364
|
+
"v8": "5.1"
|
1365
|
+
},
|
1366
|
+
"6.9.1": {
|
1367
|
+
"node_abi": 48,
|
1368
|
+
"v8": "5.1"
|
1369
|
+
},
|
1370
|
+
"6.9.2": {
|
1371
|
+
"node_abi": 48,
|
1372
|
+
"v8": "5.1"
|
1373
|
+
},
|
1374
|
+
"6.9.3": {
|
1375
|
+
"node_abi": 48,
|
1376
|
+
"v8": "5.1"
|
1377
|
+
},
|
1378
|
+
"6.9.4": {
|
1379
|
+
"node_abi": 48,
|
1380
|
+
"v8": "5.1"
|
1381
|
+
},
|
1382
|
+
"6.9.5": {
|
1383
|
+
"node_abi": 48,
|
1384
|
+
"v8": "5.1"
|
1385
|
+
},
|
1386
|
+
"7.0.0": {
|
1387
|
+
"node_abi": 51,
|
1388
|
+
"v8": "5.4"
|
1389
|
+
},
|
1390
|
+
"7.1.0": {
|
1391
|
+
"node_abi": 51,
|
1392
|
+
"v8": "5.4"
|
1393
|
+
},
|
1394
|
+
"7.2.0": {
|
1395
|
+
"node_abi": 51,
|
1396
|
+
"v8": "5.4"
|
1397
|
+
},
|
1398
|
+
"7.2.1": {
|
1399
|
+
"node_abi": 51,
|
1400
|
+
"v8": "5.4"
|
1401
|
+
},
|
1402
|
+
"7.3.0": {
|
1403
|
+
"node_abi": 51,
|
1404
|
+
"v8": "5.4"
|
1405
|
+
},
|
1406
|
+
"7.4.0": {
|
1407
|
+
"node_abi": 51,
|
1408
|
+
"v8": "5.4"
|
1409
|
+
},
|
1410
|
+
"7.5.0": {
|
1411
|
+
"node_abi": 51,
|
1412
|
+
"v8": "5.4"
|
1273
1413
|
}
|
1274
1414
|
}
|
@@ -1,45 +1,53 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "node-pre-gyp@^0.6.29",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "node-pre-gyp",
|
8
|
+
"name": "node-pre-gyp",
|
9
|
+
"rawSpec": "^0.6.29",
|
10
|
+
"spec": ">=0.6.29 <0.7.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "node-pre-gyp@>=0.6.29 <0.7.0",
|
9
|
-
"_id": "node-pre-gyp@0.6.
|
17
|
+
"_id": "node-pre-gyp@0.6.33",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/node-pre-gyp",
|
13
|
-
"_nodeVersion": "4.
|
20
|
+
"_nodeVersion": "4.7.2",
|
14
21
|
"_npmOperationalInternal": {
|
15
22
|
"host": "packages-12-west.internal.npmjs.com",
|
16
|
-
"tmp": "tmp/node-pre-gyp-0.6.
|
23
|
+
"tmp": "tmp/node-pre-gyp-0.6.33.tgz_1486012902452_0.33904882124625146"
|
17
24
|
},
|
18
25
|
"_npmUser": {
|
19
|
-
"
|
20
|
-
"
|
26
|
+
"name": "springmeyer",
|
27
|
+
"email": "dane@mapbox.com"
|
21
28
|
},
|
22
|
-
"_npmVersion": "2.15.
|
29
|
+
"_npmVersion": "2.15.11",
|
23
30
|
"_phantomChildren": {},
|
24
31
|
"_requested": {
|
25
|
-
"name": "node-pre-gyp",
|
26
32
|
"raw": "node-pre-gyp@^0.6.29",
|
27
|
-
"rawSpec": "^0.6.29",
|
28
33
|
"scope": null,
|
34
|
+
"escapedName": "node-pre-gyp",
|
35
|
+
"name": "node-pre-gyp",
|
36
|
+
"rawSpec": "^0.6.29",
|
29
37
|
"spec": ">=0.6.29 <0.7.0",
|
30
38
|
"type": "range"
|
31
39
|
},
|
32
40
|
"_requiredBy": [
|
33
41
|
"/"
|
34
42
|
],
|
35
|
-
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.
|
36
|
-
"_shasum": "
|
43
|
+
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.33.tgz",
|
44
|
+
"_shasum": "640ac55198f6a925972e0c16c4ac26a034d5ecc9",
|
37
45
|
"_shrinkwrap": null,
|
38
46
|
"_spec": "node-pre-gyp@^0.6.29",
|
39
47
|
"_where": "/Users/eshanker/Code/fsevents",
|
40
48
|
"author": {
|
41
|
-
"
|
42
|
-
"
|
49
|
+
"name": "Dane Springmeyer",
|
50
|
+
"email": "dane@mapbox.com"
|
43
51
|
},
|
44
52
|
"bin": {
|
45
53
|
"node-pre-gyp": "./bin/node-pre-gyp"
|
@@ -48,69 +56,65 @@
|
|
48
56
|
"url": "https://github.com/mapbox/node-pre-gyp/issues"
|
49
57
|
},
|
50
58
|
"dependencies": {
|
51
|
-
"mkdirp": "~0.5.
|
52
|
-
"nopt": "~3.0.
|
53
|
-
"npmlog": "
|
54
|
-
"rc": "~1.1.
|
55
|
-
"request": "2.
|
56
|
-
"rimraf": "~2.5.
|
57
|
-
"semver": "~5.
|
58
|
-
"tar": "~2.2.
|
59
|
-
"tar-pack": "~3.
|
59
|
+
"mkdirp": "~0.5.1",
|
60
|
+
"nopt": "~3.0.6",
|
61
|
+
"npmlog": "^4.0.1",
|
62
|
+
"rc": "~1.1.6",
|
63
|
+
"request": "^2.79.0",
|
64
|
+
"rimraf": "~2.5.4",
|
65
|
+
"semver": "~5.3.0",
|
66
|
+
"tar": "~2.2.1",
|
67
|
+
"tar-pack": "~3.3.0"
|
60
68
|
},
|
61
69
|
"description": "Node.js native addon binary install tool",
|
62
70
|
"devDependencies": {
|
63
|
-
"aws-sdk": "2.
|
64
|
-
"jshint": "2.
|
65
|
-
"mocha": "2.
|
66
|
-
"retire": "1.
|
71
|
+
"aws-sdk": "^2.7.7",
|
72
|
+
"jshint": "^2.9.4",
|
73
|
+
"mocha": "^3.2.0",
|
74
|
+
"retire": "^1.2.10"
|
67
75
|
},
|
68
76
|
"directories": {},
|
69
77
|
"dist": {
|
70
|
-
"shasum": "
|
71
|
-
"tarball": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.
|
78
|
+
"shasum": "640ac55198f6a925972e0c16c4ac26a034d5ecc9",
|
79
|
+
"tarball": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.33.tgz"
|
72
80
|
},
|
73
|
-
"gitHead": "
|
81
|
+
"gitHead": "a597beb973e690e82452946c380fd8e94f40d3f5",
|
74
82
|
"homepage": "https://github.com/mapbox/node-pre-gyp#readme",
|
75
83
|
"jshintConfig": {
|
76
|
-
"globalstrict": true,
|
77
|
-
"mocha": true,
|
78
|
-
"noarg": true,
|
79
84
|
"node": true,
|
85
|
+
"globalstrict": true,
|
80
86
|
"undef": true,
|
81
|
-
"unused": true
|
87
|
+
"unused": true,
|
88
|
+
"noarg": true,
|
89
|
+
"mocha": true
|
82
90
|
},
|
83
91
|
"keywords": [
|
92
|
+
"native",
|
84
93
|
"addon",
|
85
|
-
"
|
86
|
-
"bindings",
|
94
|
+
"module",
|
87
95
|
"c",
|
88
96
|
"c++",
|
89
|
-
"
|
90
|
-
"
|
97
|
+
"bindings",
|
98
|
+
"binary"
|
91
99
|
],
|
92
100
|
"license": "BSD-3-Clause",
|
93
101
|
"main": "./lib/node-pre-gyp.js",
|
94
102
|
"maintainers": [
|
95
|
-
{
|
96
|
-
"name": "springmeyer",
|
97
|
-
"email": "dane@dbsgeo.com"
|
98
|
-
},
|
99
103
|
{
|
100
104
|
"name": "bergwerkgis",
|
101
105
|
"email": "wb@bergwerk-gis.at"
|
102
106
|
},
|
103
107
|
{
|
104
|
-
"name": "
|
105
|
-
"email": "
|
108
|
+
"name": "kkaefer",
|
109
|
+
"email": "mail@kkaefer.com"
|
106
110
|
},
|
107
111
|
{
|
108
|
-
"name": "
|
109
|
-
"email": "
|
112
|
+
"name": "springmeyer",
|
113
|
+
"email": "dane@mapbox.com"
|
110
114
|
},
|
111
115
|
{
|
112
116
|
"name": "yhahn",
|
113
|
-
"email": "young@
|
117
|
+
"email": "young@mapbox.com"
|
114
118
|
}
|
115
119
|
],
|
116
120
|
"name": "node-pre-gyp",
|
@@ -125,5 +129,5 @@
|
|
125
129
|
"test": "jshint lib lib/util scripts bin/node-pre-gyp && mocha -R spec --timeout 500000",
|
126
130
|
"update-crosswalk": "node scripts/abi_crosswalk.js"
|
127
131
|
},
|
128
|
-
"version": "0.6.
|
132
|
+
"version": "0.6.33"
|
129
133
|
}
|
@@ -1,28 +1,36 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "nopt@~3.0.6",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "nopt",
|
8
|
+
"name": "nopt",
|
9
|
+
"rawSpec": "~3.0.6",
|
10
|
+
"spec": ">=3.0.6 <3.1.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/node-pre-gyp"
|
6
14
|
]
|
7
15
|
],
|
8
|
-
"_from": "nopt@>=3.0.
|
16
|
+
"_from": "nopt@>=3.0.6 <3.1.0",
|
9
17
|
"_id": "nopt@3.0.6",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/nopt",
|
13
20
|
"_nodeVersion": "4.2.1",
|
14
21
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
22
|
+
"name": "othiym23",
|
23
|
+
"email": "ogd@aoaioxxysz.net"
|
17
24
|
},
|
18
25
|
"_npmVersion": "2.14.10",
|
19
26
|
"_phantomChildren": {},
|
20
27
|
"_requested": {
|
21
|
-
"
|
22
|
-
"raw": "nopt@~3.0.1",
|
23
|
-
"rawSpec": "~3.0.1",
|
28
|
+
"raw": "nopt@~3.0.6",
|
24
29
|
"scope": null,
|
25
|
-
"
|
30
|
+
"escapedName": "nopt",
|
31
|
+
"name": "nopt",
|
32
|
+
"rawSpec": "~3.0.6",
|
33
|
+
"spec": ">=3.0.6 <3.1.0",
|
26
34
|
"type": "range"
|
27
35
|
},
|
28
36
|
"_requiredBy": [
|
@@ -31,11 +39,11 @@
|
|
31
39
|
"_resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
|
32
40
|
"_shasum": "c6465dbf08abcd4db359317f79ac68a646b28ff9",
|
33
41
|
"_shrinkwrap": null,
|
34
|
-
"_spec": "nopt@~3.0.
|
42
|
+
"_spec": "nopt@~3.0.6",
|
35
43
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/node-pre-gyp",
|
36
44
|
"author": {
|
37
|
-
"email": "i@izs.me",
|
38
45
|
"name": "Isaac Z. Schlueter",
|
46
|
+
"email": "i@izs.me",
|
39
47
|
"url": "http://blog.izs.me/"
|
40
48
|
},
|
41
49
|
"bin": {
|
@@ -1,3 +1,12 @@
|
|
1
|
+
### v4.0.1
|
2
|
+
|
3
|
+
* Fix bugs where `log.progressEnabled` got out of sync with how `gauge` kept
|
4
|
+
track of these things resulting in a progressbar that couldn't be disabled.
|
5
|
+
|
6
|
+
### v4.0.0
|
7
|
+
|
8
|
+
* Allow creating log levels that are an empty string or 0.
|
9
|
+
|
1
10
|
### v3.1.2
|
2
11
|
|
3
12
|
* Update to `gauge@1.6.0` adding support for default values for template
|
@@ -10,9 +10,15 @@ to outputs other than streams, then you can change the `log.stream`
|
|
10
10
|
member, or you can just listen to the events that it emits, and do
|
11
11
|
whatever you want with them.
|
12
12
|
|
13
|
-
#
|
13
|
+
# Installation
|
14
14
|
|
15
|
+
```console
|
16
|
+
npm install npmlog --save
|
15
17
|
```
|
18
|
+
|
19
|
+
# Basic Usage
|
20
|
+
|
21
|
+
```javascript
|
16
22
|
var log = require('npmlog')
|
17
23
|
|
18
24
|
// additional stuff ---------------------------+
|
@@ -39,6 +39,7 @@ log.disableColor = function () {
|
|
39
39
|
log.level = 'info'
|
40
40
|
|
41
41
|
log.gauge = new Gauge(stream, {
|
42
|
+
enabled: false, // no progress bars unless asked
|
42
43
|
theme: {hasColor: log.useColor()},
|
43
44
|
template: [
|
44
45
|
{type: 'progressbar', length: 20},
|
@@ -51,8 +52,9 @@ log.gauge = new Gauge(stream, {
|
|
51
52
|
|
52
53
|
log.tracker = new Progress.TrackerGroup()
|
53
54
|
|
54
|
-
//
|
55
|
-
|
55
|
+
// we track this separately as we may need to temporarily disable the
|
56
|
+
// display of the status bar for our own loggy purposes.
|
57
|
+
log.progressEnabled = log.gauge.isEnabled()
|
56
58
|
|
57
59
|
var unicodeEnabled
|
58
60
|
|
@@ -77,15 +79,13 @@ log.setGaugeTemplate = function (template) {
|
|
77
79
|
log.enableProgress = function () {
|
78
80
|
if (this.progressEnabled) return
|
79
81
|
this.progressEnabled = true
|
80
|
-
if (this._pause) return
|
81
82
|
this.tracker.on('change', this.showProgress)
|
83
|
+
if (this._pause) return
|
82
84
|
this.gauge.enable()
|
83
|
-
this.showProgress()
|
84
85
|
}
|
85
86
|
|
86
87
|
log.disableProgress = function () {
|
87
88
|
if (!this.progressEnabled) return
|
88
|
-
this.clearProgress()
|
89
89
|
this.progressEnabled = false
|
90
90
|
this.tracker.removeListener('change', this.showProgress)
|
91
91
|
this.gauge.disable()
|
@@ -147,6 +147,7 @@ log.showProgress = function (name, completed) {
|
|
147
147
|
// temporarily stop emitting, but don't drop
|
148
148
|
log.pause = function () {
|
149
149
|
this._paused = true
|
150
|
+
if (this.progressEnabled) this.gauge.disable()
|
150
151
|
}
|
151
152
|
|
152
153
|
log.resume = function () {
|
@@ -158,7 +159,7 @@ log.resume = function () {
|
|
158
159
|
b.forEach(function (m) {
|
159
160
|
this.emitLog(m)
|
160
161
|
}, this)
|
161
|
-
if (this.progressEnabled) this.
|
162
|
+
if (this.progressEnabled) this.gauge.enable()
|
162
163
|
}
|
163
164
|
|
164
165
|
log._buffer = []
|
@@ -219,7 +220,9 @@ log.emitLog = function (m) {
|
|
219
220
|
if (l < this.levels[this.level]) return
|
220
221
|
if (l > 0 && !isFinite(l)) return
|
221
222
|
|
222
|
-
|
223
|
+
// If 'disp' is null or undefined, use the lvl as a default
|
224
|
+
// Allows: '', 0 as valid disp
|
225
|
+
var disp = log.disp[m.level] != null ? log.disp[m.level] : m.level
|
223
226
|
this.clearProgress()
|
224
227
|
m.message.split(/\r?\n/).forEach(function (line) {
|
225
228
|
if (this.heading) {
|
@@ -264,7 +267,8 @@ log.write = function (msg, style) {
|
|
264
267
|
}
|
265
268
|
|
266
269
|
log.addLevel = function (lvl, n, style, disp) {
|
267
|
-
|
270
|
+
// If 'disp' is null or undefined, use the lvl as a default
|
271
|
+
if (disp == null) disp = lvl
|
268
272
|
this.levels[lvl] = n
|
269
273
|
this.style[lvl] = style
|
270
274
|
if (!this[lvl]) {
|