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
@@ -30,7 +30,21 @@ test('stringify()', function (t) {
|
|
30
30
|
});
|
31
31
|
|
32
32
|
t.test('stringifies an array value', function (st) {
|
33
|
-
st.equal(
|
33
|
+
st.equal(
|
34
|
+
qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'indices' }),
|
35
|
+
'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d',
|
36
|
+
'indices => indices'
|
37
|
+
);
|
38
|
+
st.equal(
|
39
|
+
qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'brackets' }),
|
40
|
+
'a%5B%5D=b&a%5B%5D=c&a%5B%5D=d',
|
41
|
+
'brackets => brackets'
|
42
|
+
);
|
43
|
+
st.equal(
|
44
|
+
qs.stringify({ a: ['b', 'c', 'd'] }),
|
45
|
+
'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d',
|
46
|
+
'default => indices'
|
47
|
+
);
|
34
48
|
st.end();
|
35
49
|
});
|
36
50
|
|
@@ -39,7 +53,6 @@ test('stringify()', function (t) {
|
|
39
53
|
st.end();
|
40
54
|
});
|
41
55
|
|
42
|
-
|
43
56
|
t.test('omits nested nulls when asked', function (st) {
|
44
57
|
st.equal(qs.stringify({ a: { b: 'c', d: null } }, { skipNulls: true }), 'a%5Bb%5D=c');
|
45
58
|
st.end();
|
@@ -51,29 +64,149 @@ test('stringify()', function (t) {
|
|
51
64
|
});
|
52
65
|
|
53
66
|
t.test('stringifies a nested array value', function (st) {
|
67
|
+
st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { arrayFormat: 'indices' }), 'a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d');
|
68
|
+
st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { arrayFormat: 'brackets' }), 'a%5Bb%5D%5B%5D=c&a%5Bb%5D%5B%5D=d');
|
54
69
|
st.equal(qs.stringify({ a: { b: ['c', 'd'] } }), 'a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d');
|
55
70
|
st.end();
|
56
71
|
});
|
57
72
|
|
58
73
|
t.test('stringifies a nested array value with dots notation', function (st) {
|
59
|
-
st.equal(
|
74
|
+
st.equal(
|
75
|
+
qs.stringify(
|
76
|
+
{ a: { b: ['c', 'd'] } },
|
77
|
+
{ allowDots: true, encode: false, arrayFormat: 'indices' }
|
78
|
+
),
|
79
|
+
'a.b[0]=c&a.b[1]=d',
|
80
|
+
'indices: stringifies with dots + indices'
|
81
|
+
);
|
82
|
+
st.equal(
|
83
|
+
qs.stringify(
|
84
|
+
{ a: { b: ['c', 'd'] } },
|
85
|
+
{ allowDots: true, encode: false, arrayFormat: 'brackets' }
|
86
|
+
),
|
87
|
+
'a.b[]=c&a.b[]=d',
|
88
|
+
'brackets: stringifies with dots + brackets'
|
89
|
+
);
|
90
|
+
st.equal(
|
91
|
+
qs.stringify(
|
92
|
+
{ a: { b: ['c', 'd'] } },
|
93
|
+
{ allowDots: true, encode: false }
|
94
|
+
),
|
95
|
+
'a.b[0]=c&a.b[1]=d',
|
96
|
+
'default: stringifies with dots + indices'
|
97
|
+
);
|
60
98
|
st.end();
|
61
99
|
});
|
62
100
|
|
63
101
|
t.test('stringifies an object inside an array', function (st) {
|
64
|
-
st.equal(
|
65
|
-
|
102
|
+
st.equal(
|
103
|
+
qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'indices' }),
|
104
|
+
'a%5B0%5D%5Bb%5D=c',
|
105
|
+
'indices => brackets'
|
106
|
+
);
|
107
|
+
st.equal(
|
108
|
+
qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'brackets' }),
|
109
|
+
'a%5B%5D%5Bb%5D=c',
|
110
|
+
'brackets => brackets'
|
111
|
+
);
|
112
|
+
st.equal(
|
113
|
+
qs.stringify({ a: [{ b: 'c' }] }),
|
114
|
+
'a%5B0%5D%5Bb%5D=c',
|
115
|
+
'default => indices'
|
116
|
+
);
|
117
|
+
|
118
|
+
st.equal(
|
119
|
+
qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'indices' }),
|
120
|
+
'a%5B0%5D%5Bb%5D%5Bc%5D%5B0%5D=1',
|
121
|
+
'indices => indices'
|
122
|
+
);
|
123
|
+
|
124
|
+
st.equal(
|
125
|
+
qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'brackets' }),
|
126
|
+
'a%5B%5D%5Bb%5D%5Bc%5D%5B%5D=1',
|
127
|
+
'brackets => brackets'
|
128
|
+
);
|
129
|
+
|
130
|
+
st.equal(
|
131
|
+
qs.stringify({ a: [{ b: { c: [1] } }] }),
|
132
|
+
'a%5B0%5D%5Bb%5D%5Bc%5D%5B0%5D=1',
|
133
|
+
'default => indices'
|
134
|
+
);
|
135
|
+
|
66
136
|
st.end();
|
67
137
|
});
|
68
138
|
|
69
139
|
t.test('stringifies an array with mixed objects and primitives', function (st) {
|
70
|
-
st.equal(
|
140
|
+
st.equal(
|
141
|
+
qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encode: false, arrayFormat: 'indices' }),
|
142
|
+
'a[0][b]=1&a[1]=2&a[2]=3',
|
143
|
+
'indices => indices'
|
144
|
+
);
|
145
|
+
st.equal(
|
146
|
+
qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encode: false, arrayFormat: 'brackets' }),
|
147
|
+
'a[][b]=1&a[]=2&a[]=3',
|
148
|
+
'brackets => brackets'
|
149
|
+
);
|
150
|
+
st.equal(
|
151
|
+
qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encode: false }),
|
152
|
+
'a[0][b]=1&a[1]=2&a[2]=3',
|
153
|
+
'default => indices'
|
154
|
+
);
|
155
|
+
|
71
156
|
st.end();
|
72
157
|
});
|
73
158
|
|
74
159
|
t.test('stringifies an object inside an array with dots notation', function (st) {
|
75
|
-
st.equal(
|
76
|
-
|
160
|
+
st.equal(
|
161
|
+
qs.stringify(
|
162
|
+
{ a: [{ b: 'c' }] },
|
163
|
+
{ allowDots: true, encode: false, arrayFormat: 'indices' }
|
164
|
+
),
|
165
|
+
'a[0].b=c',
|
166
|
+
'indices => indices'
|
167
|
+
);
|
168
|
+
st.equal(
|
169
|
+
qs.stringify(
|
170
|
+
{ a: [{ b: 'c' }] },
|
171
|
+
{ allowDots: true, encode: false, arrayFormat: 'brackets' }
|
172
|
+
),
|
173
|
+
'a[].b=c',
|
174
|
+
'brackets => brackets'
|
175
|
+
);
|
176
|
+
st.equal(
|
177
|
+
qs.stringify(
|
178
|
+
{ a: [{ b: 'c' }] },
|
179
|
+
{ allowDots: true, encode: false }
|
180
|
+
),
|
181
|
+
'a[0].b=c',
|
182
|
+
'default => indices'
|
183
|
+
);
|
184
|
+
|
185
|
+
st.equal(
|
186
|
+
qs.stringify(
|
187
|
+
{ a: [{ b: { c: [1] } }] },
|
188
|
+
{ allowDots: true, encode: false, arrayFormat: 'indices' }
|
189
|
+
),
|
190
|
+
'a[0].b.c[0]=1',
|
191
|
+
'indices => indices'
|
192
|
+
);
|
193
|
+
st.equal(
|
194
|
+
qs.stringify(
|
195
|
+
{ a: [{ b: { c: [1] } }] },
|
196
|
+
{ allowDots: true, encode: false, arrayFormat: 'brackets' }
|
197
|
+
),
|
198
|
+
'a[].b.c[]=1',
|
199
|
+
'brackets => brackets'
|
200
|
+
);
|
201
|
+
st.equal(
|
202
|
+
qs.stringify(
|
203
|
+
{ a: [{ b: { c: [1] } }] },
|
204
|
+
{ allowDots: true, encode: false }
|
205
|
+
),
|
206
|
+
'a[0].b.c[0]=1',
|
207
|
+
'default => indices'
|
208
|
+
);
|
209
|
+
|
77
210
|
st.end();
|
78
211
|
});
|
79
212
|
|
@@ -126,7 +259,7 @@ test('stringify()', function (t) {
|
|
126
259
|
st.end();
|
127
260
|
});
|
128
261
|
|
129
|
-
t.test('stringifies
|
262
|
+
t.test('stringifies a null object', { skip: !Object.create }, function (st) {
|
130
263
|
var obj = Object.create(null);
|
131
264
|
obj.a = 'b';
|
132
265
|
st.equal(qs.stringify(obj), 'a=b');
|
@@ -141,10 +274,8 @@ test('stringify()', function (t) {
|
|
141
274
|
st.end();
|
142
275
|
});
|
143
276
|
|
144
|
-
t.test('stringifies an object with
|
145
|
-
var obj = {
|
146
|
-
a: Object.create(null)
|
147
|
-
};
|
277
|
+
t.test('stringifies an object with a null object as a child', { skip: !Object.create }, function (st) {
|
278
|
+
var obj = { a: Object.create(null) };
|
148
279
|
|
149
280
|
obj.a.b = 'c';
|
150
281
|
st.equal(qs.stringify(obj), 'a%5Bb%5D=c');
|
@@ -216,7 +347,32 @@ test('stringify()', function (t) {
|
|
216
347
|
t.test('selects properties when filter=array', function (st) {
|
217
348
|
st.equal(qs.stringify({ a: 'b' }, { filter: ['a'] }), 'a=b');
|
218
349
|
st.equal(qs.stringify({ a: 1 }, { filter: [] }), '');
|
219
|
-
|
350
|
+
|
351
|
+
st.equal(
|
352
|
+
qs.stringify(
|
353
|
+
{ a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' },
|
354
|
+
{ filter: ['a', 'b', 0, 2], arrayFormat: 'indices' }
|
355
|
+
),
|
356
|
+
'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3',
|
357
|
+
'indices => indices'
|
358
|
+
);
|
359
|
+
st.equal(
|
360
|
+
qs.stringify(
|
361
|
+
{ a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' },
|
362
|
+
{ filter: ['a', 'b', 0, 2], arrayFormat: 'brackets' }
|
363
|
+
),
|
364
|
+
'a%5Bb%5D%5B%5D=1&a%5Bb%5D%5B%5D=3',
|
365
|
+
'brackets => brackets'
|
366
|
+
);
|
367
|
+
st.equal(
|
368
|
+
qs.stringify(
|
369
|
+
{ a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' },
|
370
|
+
{ filter: ['a', 'b', 0, 2] }
|
371
|
+
),
|
372
|
+
'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3',
|
373
|
+
'default => indices'
|
374
|
+
);
|
375
|
+
|
220
376
|
st.end();
|
221
377
|
});
|
222
378
|
|
@@ -224,12 +380,12 @@ test('stringify()', function (t) {
|
|
224
380
|
var calls = 0;
|
225
381
|
var obj = { a: 'b', c: 'd', e: { f: new Date(1257894000000) } };
|
226
382
|
var filterFunc = function (prefix, value) {
|
227
|
-
calls
|
383
|
+
calls += 1;
|
228
384
|
if (calls === 1) {
|
229
385
|
st.equal(prefix, '', 'prefix is empty');
|
230
386
|
st.equal(value, obj);
|
231
387
|
} else if (prefix === 'c') {
|
232
|
-
return;
|
388
|
+
return void 0;
|
233
389
|
} else if (value instanceof Date) {
|
234
390
|
st.equal(prefix, 'e[f]');
|
235
391
|
return value.getTime();
|
@@ -250,28 +406,44 @@ test('stringify()', function (t) {
|
|
250
406
|
});
|
251
407
|
|
252
408
|
t.test('can sort the keys', function (st) {
|
253
|
-
var sort = function (a, b) {
|
409
|
+
var sort = function (a, b) {
|
410
|
+
return a.localeCompare(b);
|
411
|
+
};
|
254
412
|
st.equal(qs.stringify({ a: 'c', z: 'y', b: 'f' }, { sort: sort }), 'a=c&b=f&z=y');
|
255
413
|
st.equal(qs.stringify({ a: 'c', z: { j: 'a', i: 'b' }, b: 'f' }, { sort: sort }), 'a=c&b=f&z%5Bi%5D=b&z%5Bj%5D=a');
|
256
414
|
st.end();
|
257
415
|
});
|
258
416
|
|
259
417
|
t.test('can sort the keys at depth 3 or more too', function (st) {
|
260
|
-
var sort = function (a, b) {
|
261
|
-
|
262
|
-
|
418
|
+
var sort = function (a, b) {
|
419
|
+
return a.localeCompare(b);
|
420
|
+
};
|
421
|
+
st.equal(
|
422
|
+
qs.stringify(
|
423
|
+
{ a: 'a', z: { zj: { zjb: 'zjb', zja: 'zja' }, zi: { zib: 'zib', zia: 'zia' } }, b: 'b' },
|
424
|
+
{ sort: sort, encode: false }
|
425
|
+
),
|
426
|
+
'a=a&b=b&z[zi][zia]=zia&z[zi][zib]=zib&z[zj][zja]=zja&z[zj][zjb]=zjb'
|
427
|
+
);
|
428
|
+
st.equal(
|
429
|
+
qs.stringify(
|
430
|
+
{ a: 'a', z: { zj: { zjb: 'zjb', zja: 'zja' }, zi: { zib: 'zib', zia: 'zia' } }, b: 'b' },
|
431
|
+
{ sort: null, encode: false }
|
432
|
+
),
|
433
|
+
'a=a&z[zj][zjb]=zjb&z[zj][zja]=zja&z[zi][zib]=zib&z[zi][zia]=zia&b=b'
|
434
|
+
);
|
263
435
|
st.end();
|
264
436
|
});
|
265
437
|
|
266
438
|
t.test('can stringify with custom encoding', function (st) {
|
267
|
-
st.equal(qs.stringify({ 県: '大阪府', '': ''}, {
|
439
|
+
st.equal(qs.stringify({ 県: '大阪府', '': '' }, {
|
268
440
|
encoder: function (str) {
|
269
441
|
if (str.length === 0) {
|
270
442
|
return '';
|
271
443
|
}
|
272
444
|
var buf = iconv.encode(str, 'shiftjis');
|
273
445
|
var result = [];
|
274
|
-
for (var i=0; i < buf.length; ++i) {
|
446
|
+
for (var i = 0; i < buf.length; ++i) {
|
275
447
|
result.push(buf.readUInt8(i).toString(16));
|
276
448
|
}
|
277
449
|
return '%' + result.join('%');
|
@@ -282,16 +454,12 @@ test('stringify()', function (t) {
|
|
282
454
|
|
283
455
|
t.test('throws error with wrong encoder', function (st) {
|
284
456
|
st.throws(function () {
|
285
|
-
qs.stringify({}, {
|
286
|
-
encoder: 'string'
|
287
|
-
});
|
457
|
+
qs.stringify({}, { encoder: 'string' });
|
288
458
|
}, new TypeError('Encoder has to be a function.'));
|
289
459
|
st.end();
|
290
460
|
});
|
291
461
|
|
292
|
-
t.test('can use custom encoder for a buffer object', {
|
293
|
-
skip: typeof Buffer === 'undefined'
|
294
|
-
}, function (st) {
|
462
|
+
t.test('can use custom encoder for a buffer object', { skip: typeof Buffer === 'undefined' }, function (st) {
|
295
463
|
st.equal(qs.stringify({ a: new Buffer([1]) }, {
|
296
464
|
encoder: function (buffer) {
|
297
465
|
if (typeof buffer === 'string') {
|
@@ -302,4 +470,69 @@ test('stringify()', function (t) {
|
|
302
470
|
}), 'a=b');
|
303
471
|
st.end();
|
304
472
|
});
|
473
|
+
|
474
|
+
t.test('serializeDate option', function (st) {
|
475
|
+
var date = new Date();
|
476
|
+
st.equal(
|
477
|
+
qs.stringify({ a: date }),
|
478
|
+
'a=' + date.toISOString().replace(/:/g, '%3A'),
|
479
|
+
'default is toISOString'
|
480
|
+
);
|
481
|
+
|
482
|
+
var mutatedDate = new Date();
|
483
|
+
mutatedDate.toISOString = function () {
|
484
|
+
throw new SyntaxError();
|
485
|
+
};
|
486
|
+
st.throws(function () {
|
487
|
+
mutatedDate.toISOString();
|
488
|
+
}, SyntaxError);
|
489
|
+
st.equal(
|
490
|
+
qs.stringify({ a: mutatedDate }),
|
491
|
+
'a=' + Date.prototype.toISOString.call(mutatedDate).replace(/:/g, '%3A'),
|
492
|
+
'toISOString works even when method is not locally present'
|
493
|
+
);
|
494
|
+
|
495
|
+
var specificDate = new Date(6);
|
496
|
+
st.equal(
|
497
|
+
qs.stringify(
|
498
|
+
{ a: specificDate },
|
499
|
+
{ serializeDate: function (d) { return d.getTime() * 7; } }
|
500
|
+
),
|
501
|
+
'a=42',
|
502
|
+
'custom serializeDate function called'
|
503
|
+
);
|
504
|
+
|
505
|
+
st.end();
|
506
|
+
});
|
507
|
+
|
508
|
+
t.test('RFC 1738 spaces serialization', function (st) {
|
509
|
+
st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC1738 }), 'a=b+c');
|
510
|
+
st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC1738 }), 'a+b=c+d');
|
511
|
+
st.end();
|
512
|
+
});
|
513
|
+
|
514
|
+
t.test('RFC 3986 spaces serialization', function (st) {
|
515
|
+
st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC3986 }), 'a=b%20c');
|
516
|
+
st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC3986 }), 'a%20b=c%20d');
|
517
|
+
st.end();
|
518
|
+
});
|
519
|
+
|
520
|
+
t.test('Backward compatibility to RFC 3986', function (st) {
|
521
|
+
st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c');
|
522
|
+
st.end();
|
523
|
+
});
|
524
|
+
|
525
|
+
t.test('Edge cases and unknown formats', function (st) {
|
526
|
+
['UFO1234', false, 1234, null, {}, []].forEach(
|
527
|
+
function (format) {
|
528
|
+
st.throws(
|
529
|
+
function () {
|
530
|
+
qs.stringify({ a: 'b c' }, { format: format });
|
531
|
+
},
|
532
|
+
new TypeError('Unknown format option provided.')
|
533
|
+
);
|
534
|
+
}
|
535
|
+
);
|
536
|
+
st.end();
|
537
|
+
});
|
305
538
|
});
|
@@ -5,5 +5,18 @@ var utils = require('../lib/utils');
|
|
5
5
|
|
6
6
|
test('merge()', function (t) {
|
7
7
|
t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key');
|
8
|
+
|
9
|
+
var oneMerged = utils.merge({ foo: 'bar' }, { foo: { first: '123' } });
|
10
|
+
t.deepEqual(oneMerged, { foo: ['bar', { first: '123' }] }, 'merges a standalone and an object into an array');
|
11
|
+
|
12
|
+
var twoMerged = utils.merge({ foo: ['bar', { first: '123' }] }, { foo: { second: '456' } });
|
13
|
+
t.deepEqual(twoMerged, { foo: { 0: 'bar', 1: { first: '123' }, second: '456' } }, 'merges a standalone and two objects into an array');
|
14
|
+
|
15
|
+
var sandwiched = utils.merge({ foo: ['bar', { first: '123', second: '456' }] }, { foo: 'baz' });
|
16
|
+
t.deepEqual(sandwiched, { foo: ['bar', { first: '123', second: '456' }, 'baz'] }, 'merges an object sandwiched by two standalones into an array');
|
17
|
+
|
18
|
+
var nestedArrays = utils.merge({ foo: ['baz'] }, { foo: ['bar', 'xyzzy'] });
|
19
|
+
t.deepEqual(nestedArrays, { foo: ['baz', 'bar', 'xyzzy'] });
|
20
|
+
|
8
21
|
t.end();
|
9
22
|
});
|
@@ -1,27 +1,35 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "minimist@^1.2.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "minimist",
|
8
|
+
"name": "minimist",
|
9
|
+
"rawSpec": "^1.2.0",
|
10
|
+
"spec": ">=1.2.0 <2.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/rc"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "minimist@>=1.2.0 <2.0.0",
|
9
17
|
"_id": "minimist@1.2.0",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/rc/minimist",
|
13
20
|
"_nodeVersion": "2.4.0",
|
14
21
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
22
|
+
"name": "substack",
|
23
|
+
"email": "substack@gmail.com"
|
17
24
|
},
|
18
25
|
"_npmVersion": "3.2.2",
|
19
26
|
"_phantomChildren": {},
|
20
27
|
"_requested": {
|
21
|
-
"name": "minimist",
|
22
28
|
"raw": "minimist@^1.2.0",
|
23
|
-
"rawSpec": "^1.2.0",
|
24
29
|
"scope": null,
|
30
|
+
"escapedName": "minimist",
|
31
|
+
"name": "minimist",
|
32
|
+
"rawSpec": "^1.2.0",
|
25
33
|
"spec": ">=1.2.0 <2.0.0",
|
26
34
|
"type": "range"
|
27
35
|
},
|
@@ -34,8 +42,8 @@
|
|
34
42
|
"_spec": "minimist@^1.2.0",
|
35
43
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/rc",
|
36
44
|
"author": {
|
37
|
-
"email": "mail@substack.net",
|
38
45
|
"name": "James Halliday",
|
46
|
+
"email": "mail@substack.net",
|
39
47
|
"url": "http://substack.net"
|
40
48
|
},
|
41
49
|
"bugs": {
|
@@ -58,8 +66,8 @@
|
|
58
66
|
"keywords": [
|
59
67
|
"argv",
|
60
68
|
"getopt",
|
61
|
-
"
|
62
|
-
"
|
69
|
+
"parser",
|
70
|
+
"optimist"
|
63
71
|
],
|
64
72
|
"license": "MIT",
|
65
73
|
"main": "index.js",
|
@@ -81,17 +89,17 @@
|
|
81
89
|
"test": "tap test/*.js"
|
82
90
|
},
|
83
91
|
"testling": {
|
92
|
+
"files": "test/*.js",
|
84
93
|
"browsers": [
|
85
|
-
"
|
86
|
-
"chrome/latest",
|
94
|
+
"ie/6..latest",
|
87
95
|
"ff/5",
|
88
96
|
"firefox/latest",
|
89
|
-
"
|
90
|
-
"
|
97
|
+
"chrome/10",
|
98
|
+
"chrome/latest",
|
91
99
|
"safari/5.1",
|
92
|
-
"safari/latest"
|
93
|
-
|
94
|
-
|
100
|
+
"safari/latest",
|
101
|
+
"opera/12"
|
102
|
+
]
|
95
103
|
},
|
96
104
|
"version": "1.2.0"
|
97
105
|
}
|
@@ -1,41 +1,53 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "rc@~1.1.6",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "rc",
|
8
|
+
"name": "rc",
|
9
|
+
"rawSpec": "~1.1.6",
|
10
|
+
"spec": ">=1.1.6 <1.2.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/node-pre-gyp"
|
6
14
|
]
|
7
15
|
],
|
8
|
-
"_from": "rc@>=1.1.
|
9
|
-
"_id": "rc@1.1.
|
16
|
+
"_from": "rc@>=1.1.6 <1.2.0",
|
17
|
+
"_id": "rc@1.1.7",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/rc",
|
13
|
-
"_nodeVersion": "
|
20
|
+
"_nodeVersion": "6.9.4",
|
21
|
+
"_npmOperationalInternal": {
|
22
|
+
"host": "packages-18-east.internal.npmjs.com",
|
23
|
+
"tmp": "tmp/rc-1.1.7.tgz_1487322919345_0.9128507312852889"
|
24
|
+
},
|
14
25
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
26
|
+
"name": "dominictarr",
|
27
|
+
"email": "dominic.tarr@gmail.com"
|
17
28
|
},
|
18
|
-
"_npmVersion": "3.
|
29
|
+
"_npmVersion": "3.10.10",
|
19
30
|
"_phantomChildren": {},
|
20
31
|
"_requested": {
|
21
|
-
"
|
22
|
-
"raw": "rc@~1.1.0",
|
23
|
-
"rawSpec": "~1.1.0",
|
32
|
+
"raw": "rc@~1.1.6",
|
24
33
|
"scope": null,
|
25
|
-
"
|
34
|
+
"escapedName": "rc",
|
35
|
+
"name": "rc",
|
36
|
+
"rawSpec": "~1.1.6",
|
37
|
+
"spec": ">=1.1.6 <1.2.0",
|
26
38
|
"type": "range"
|
27
39
|
},
|
28
40
|
"_requiredBy": [
|
29
41
|
"/node-pre-gyp"
|
30
42
|
],
|
31
|
-
"_resolved": "https://registry.npmjs.org/rc/-/rc-1.1.
|
32
|
-
"_shasum": "
|
43
|
+
"_resolved": "https://registry.npmjs.org/rc/-/rc-1.1.7.tgz",
|
44
|
+
"_shasum": "c5ea564bb07aff9fd3a5b32e906c1d3a65940fea",
|
33
45
|
"_shrinkwrap": null,
|
34
|
-
"_spec": "rc@~1.1.
|
46
|
+
"_spec": "rc@~1.1.6",
|
35
47
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/node-pre-gyp",
|
36
48
|
"author": {
|
37
|
-
"email": "dominic.tarr@gmail.com",
|
38
49
|
"name": "Dominic Tarr",
|
50
|
+
"email": "dominic.tarr@gmail.com",
|
39
51
|
"url": "dominictarr.com"
|
40
52
|
},
|
41
53
|
"bin": {
|
@@ -49,22 +61,22 @@
|
|
49
61
|
"deep-extend": "~0.4.0",
|
50
62
|
"ini": "~1.3.0",
|
51
63
|
"minimist": "^1.2.0",
|
52
|
-
"strip-json-comments": "~
|
64
|
+
"strip-json-comments": "~2.0.1"
|
53
65
|
},
|
54
66
|
"description": "hardwired configuration loader",
|
55
67
|
"devDependencies": {},
|
56
68
|
"directories": {},
|
57
69
|
"dist": {
|
58
|
-
"shasum": "
|
59
|
-
"tarball": "https://registry.npmjs.org/rc/-/rc-1.1.
|
70
|
+
"shasum": "c5ea564bb07aff9fd3a5b32e906c1d3a65940fea",
|
71
|
+
"tarball": "https://registry.npmjs.org/rc/-/rc-1.1.7.tgz"
|
60
72
|
},
|
61
|
-
"gitHead": "
|
73
|
+
"gitHead": "13bca1296fa95cd7795d30681652b2b7499d85d3",
|
62
74
|
"homepage": "https://github.com/dominictarr/rc#readme",
|
63
75
|
"keywords": [
|
64
76
|
"config",
|
65
|
-
"defaults",
|
66
77
|
"rc",
|
67
|
-
"unix"
|
78
|
+
"unix",
|
79
|
+
"defaults"
|
68
80
|
],
|
69
81
|
"license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
|
70
82
|
"main": "index.js",
|
@@ -84,5 +96,5 @@
|
|
84
96
|
"scripts": {
|
85
97
|
"test": "set -e; node test/test.js; node test/ini.js; node test/nested-env-vars.js"
|
86
98
|
},
|
87
|
-
"version": "1.1.
|
99
|
+
"version": "1.1.7"
|
88
100
|
}
|
@@ -7,9 +7,6 @@ notifications:
|
|
7
7
|
email: false
|
8
8
|
matrix:
|
9
9
|
fast_finish: true
|
10
|
-
allow_failures:
|
11
|
-
- env: TASK=browser BROWSER_NAME=ipad BROWSER_VERSION="6.0..latest"
|
12
|
-
- env: TASK=browser BROWSER_NAME=iphone BROWSER_VERSION="6.0..latest"
|
13
10
|
include:
|
14
11
|
- node_js: '0.8'
|
15
12
|
env: TASK=test
|
@@ -29,6 +26,8 @@ matrix:
|
|
29
26
|
env: TASK=test
|
30
27
|
- node_js: 5
|
31
28
|
env: TASK=test
|
29
|
+
- node_js: 6
|
30
|
+
env: TASK=test
|
32
31
|
- node_js: 5
|
33
32
|
env: TASK=browser BROWSER_NAME=android BROWSER_VERSION="4.0..latest"
|
34
33
|
- node_js: 5
|
@@ -39,10 +38,6 @@ matrix:
|
|
39
38
|
env: TASK=browser BROWSER_NAME=chrome BROWSER_VERSION="-3..latest"
|
40
39
|
- node_js: 5
|
41
40
|
env: TASK=browser BROWSER_NAME=firefox BROWSER_VERSION="-3..latest"
|
42
|
-
- node_js: 5
|
43
|
-
env: TASK=browser BROWSER_NAME=ipad BROWSER_VERSION="6.0..latest"
|
44
|
-
- node_js: 5
|
45
|
-
env: TASK=browser BROWSER_NAME=iphone BROWSER_VERSION="6.0..latest"
|
46
41
|
- node_js: 5
|
47
42
|
env: TASK=browser BROWSER_NAME=safari BROWSER_VERSION="5..latest"
|
48
43
|
- node_js: 5
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# readable-stream
|
2
2
|
|
3
|
-
***Node-core
|
3
|
+
***Node-core v7.0.0 streams for userland*** [](https://travis-ci.org/nodejs/readable-stream)
|
4
4
|
|
5
5
|
|
6
6
|
[](https://nodei.co/npm/readable-stream/)
|
@@ -16,7 +16,9 @@ npm install --save readable-stream
|
|
16
16
|
***Node-core streams for userland***
|
17
17
|
|
18
18
|
This package is a mirror of the Streams2 and Streams3 implementations in
|
19
|
-
Node-core
|
19
|
+
Node-core.
|
20
|
+
|
21
|
+
Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v7.1.0/docs/api/).
|
20
22
|
|
21
23
|
If you want to guarantee a stable streams base, regardless of what version of
|
22
24
|
Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core, for background see [this blogpost](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html).
|
@@ -34,3 +36,5 @@ As of version 2.0.0 **readable-stream** uses semantic versioning.
|
|
34
36
|
* **Sam Newman** ([@sonewman](https://github.com/sonewman)) <newmansam@outlook.com>
|
35
37
|
* **Mathias Buus** ([@mafintosh](https://github.com/mafintosh)) <mathiasbuus@gmail.com>
|
36
38
|
* **Domenic Denicola** ([@domenic](https://github.com/domenic)) <d@domenic.me>
|
39
|
+
* **Matteo Collina** ([@mcollina](https://github.com/mcollina)) <matteo.collina@gmail.com>
|
40
|
+
- Release GPG key: 3ABC01543F22DD2239285CDD818674489FBC127E
|