fsevents 1.0.15 → 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/lib/binding/Release/node-v48-darwin-x64/fse.node +0 -0
- package/node_modules/abbrev/package.json +16 -8
- package/node_modules/ansi-regex/package.json +31 -23
- package/node_modules/ansi-styles/package.json +27 -19
- package/node_modules/aproba/package.json +16 -8
- 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 +8 -3
- 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 +559 -0
- package/node_modules/bcrypt-pbkdf/package.json +72 -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/node_modules/supports-color/index.js +50 -0
- package/node_modules/{supports-color → chalk/node_modules/supports-color}/license +0 -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 +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 +14 -0
- package/node_modules/gauge/README.md +4 -0
- package/node_modules/gauge/index.js +7 -3
- package/node_modules/gauge/package.json +37 -28
- 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/package.json +15 -7
- 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 +34 -0
- package/node_modules/mime-db/db.json +86 -1
- package/node_modules/mime-db/package.json +43 -31
- package/node_modules/mime-types/HISTORY.md +13 -0
- package/node_modules/mime-types/index.js +8 -8
- package/node_modules/mime-types/package.json +31 -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 +16 -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 +2 -0
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +88 -0
- package/node_modules/node-pre-gyp/package.json +48 -40
- 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/package.json +22 -14
- 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 +24 -0
- package/node_modules/qs/README.md +398 -0
- package/node_modules/qs/dist/qs.js +138 -51
- 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 +23 -24
- package/node_modules/qs/lib/stringify.js +63 -13
- package/node_modules/qs/lib/utils.js +22 -6
- package/node_modules/qs/package.json +40 -30
- package/node_modules/qs/test/.eslintrc +9 -0
- package/node_modules/qs/test/index.js +2 -0
- package/node_modules/qs/test/parse.js +81 -45
- package/node_modules/qs/test/stringify.js +260 -27
- 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 +21 -13
- 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 +255 -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 +31 -21
- 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/package.json +27 -19
- 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 +52 -45
- package/node_modules/supports-color/readme.md +14 -6
- 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 +1 -1
- 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/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
@@ -173,6 +173,9 @@
|
|
173
173
|
"application/cfw": {
|
174
174
|
"source": "iana"
|
175
175
|
},
|
176
|
+
"application/clue_info+xml": {
|
177
|
+
"source": "iana"
|
178
|
+
},
|
176
179
|
"application/cms": {
|
177
180
|
"source": "iana"
|
178
181
|
},
|
@@ -241,6 +244,13 @@
|
|
241
244
|
"application/dicom": {
|
242
245
|
"source": "iana"
|
243
246
|
},
|
247
|
+
"application/dicom+json": {
|
248
|
+
"source": "iana",
|
249
|
+
"compressible": true
|
250
|
+
},
|
251
|
+
"application/dicom+xml": {
|
252
|
+
"source": "iana"
|
253
|
+
},
|
244
254
|
"application/dii": {
|
245
255
|
"source": "iana"
|
246
256
|
},
|
@@ -357,6 +367,10 @@
|
|
357
367
|
"application/framework-attributes+xml": {
|
358
368
|
"source": "iana"
|
359
369
|
},
|
370
|
+
"application/geo+json": {
|
371
|
+
"source": "iana",
|
372
|
+
"compressible": true
|
373
|
+
},
|
360
374
|
"application/gml+xml": {
|
361
375
|
"source": "apache",
|
362
376
|
"extensions": ["gml"]
|
@@ -511,6 +525,9 @@
|
|
511
525
|
"compressible": true,
|
512
526
|
"extensions": ["jsonld"]
|
513
527
|
},
|
528
|
+
"application/lgr+xml": {
|
529
|
+
"source": "iana"
|
530
|
+
},
|
514
531
|
"application/link-format": {
|
515
532
|
"source": "iana"
|
516
533
|
},
|
@@ -1316,6 +1333,9 @@
|
|
1316
1333
|
"source": "apache",
|
1317
1334
|
"extensions": ["azw"]
|
1318
1335
|
},
|
1336
|
+
"application/vnd.amazon.mobi8-ebook": {
|
1337
|
+
"source": "iana"
|
1338
|
+
},
|
1319
1339
|
"application/vnd.americandynamics.acc": {
|
1320
1340
|
"source": "iana",
|
1321
1341
|
"extensions": ["acc"]
|
@@ -1446,6 +1466,9 @@
|
|
1446
1466
|
"source": "iana",
|
1447
1467
|
"extensions": ["cdxml"]
|
1448
1468
|
},
|
1469
|
+
"application/vnd.chess-pgn": {
|
1470
|
+
"source": "iana"
|
1471
|
+
},
|
1449
1472
|
"application/vnd.chipnuts.karaoke-mmd": {
|
1450
1473
|
"source": "iana",
|
1451
1474
|
"extensions": ["mmd"]
|
@@ -1495,6 +1518,9 @@
|
|
1495
1518
|
"source": "iana",
|
1496
1519
|
"compressible": true
|
1497
1520
|
},
|
1521
|
+
"application/vnd.comicbook+zip": {
|
1522
|
+
"source": "iana"
|
1523
|
+
},
|
1498
1524
|
"application/vnd.commerce-battelle": {
|
1499
1525
|
"source": "iana"
|
1500
1526
|
},
|
@@ -1578,6 +1604,9 @@
|
|
1578
1604
|
"application/vnd.cybank": {
|
1579
1605
|
"source": "iana"
|
1580
1606
|
},
|
1607
|
+
"application/vnd.d2l.coursepackage1p0+zip": {
|
1608
|
+
"source": "iana"
|
1609
|
+
},
|
1581
1610
|
"application/vnd.dart": {
|
1582
1611
|
"source": "iana",
|
1583
1612
|
"compressible": true,
|
@@ -1798,6 +1827,9 @@
|
|
1798
1827
|
"application/vnd.ericsson.quickcall": {
|
1799
1828
|
"source": "iana"
|
1800
1829
|
},
|
1830
|
+
"application/vnd.espass-espass+zip": {
|
1831
|
+
"source": "iana"
|
1832
|
+
},
|
1801
1833
|
"application/vnd.eszigno3+xml": {
|
1802
1834
|
"source": "iana",
|
1803
1835
|
"extensions": ["es3","et3"]
|
@@ -2809,6 +2841,10 @@
|
|
2809
2841
|
"application/vnd.ncd.reference": {
|
2810
2842
|
"source": "iana"
|
2811
2843
|
},
|
2844
|
+
"application/vnd.nearst.inv+json": {
|
2845
|
+
"source": "iana",
|
2846
|
+
"compressible": true
|
2847
|
+
},
|
2812
2848
|
"application/vnd.nervana": {
|
2813
2849
|
"source": "iana"
|
2814
2850
|
},
|
@@ -3115,6 +3151,13 @@
|
|
3115
3151
|
"application/vnd.oma.group-usage-list+xml": {
|
3116
3152
|
"source": "iana"
|
3117
3153
|
},
|
3154
|
+
"application/vnd.oma.lwm2m+json": {
|
3155
|
+
"source": "iana",
|
3156
|
+
"compressible": true
|
3157
|
+
},
|
3158
|
+
"application/vnd.oma.lwm2m+tlv": {
|
3159
|
+
"source": "iana"
|
3160
|
+
},
|
3118
3161
|
"application/vnd.oma.pal+xml": {
|
3119
3162
|
"source": "iana"
|
3120
3163
|
},
|
@@ -3170,6 +3213,9 @@
|
|
3170
3213
|
"source": "apache",
|
3171
3214
|
"extensions": ["oxt"]
|
3172
3215
|
},
|
3216
|
+
"application/vnd.openstreetmap.data+xml": {
|
3217
|
+
"source": "iana"
|
3218
|
+
},
|
3173
3219
|
"application/vnd.openxmlformats-officedocument.custom-properties+xml": {
|
3174
3220
|
"source": "iana"
|
3175
3221
|
},
|
@@ -3540,6 +3586,9 @@
|
|
3540
3586
|
"application/vnd.qualcomm.brew-app-res": {
|
3541
3587
|
"source": "iana"
|
3542
3588
|
},
|
3589
|
+
"application/vnd.quarantainenet": {
|
3590
|
+
"source": "iana"
|
3591
|
+
},
|
3543
3592
|
"application/vnd.quark.quarkxpress": {
|
3544
3593
|
"source": "iana",
|
3545
3594
|
"extensions": ["qxd","qxt","qwd","qwt","qxl","qxb"]
|
@@ -3598,6 +3647,9 @@
|
|
3598
3647
|
"application/vnd.rapid": {
|
3599
3648
|
"source": "iana"
|
3600
3649
|
},
|
3650
|
+
"application/vnd.rar": {
|
3651
|
+
"source": "iana"
|
3652
|
+
},
|
3601
3653
|
"application/vnd.realvnc.bed": {
|
3602
3654
|
"source": "iana",
|
3603
3655
|
"extensions": ["bed"]
|
@@ -3907,6 +3959,9 @@
|
|
3907
3959
|
"source": "iana",
|
3908
3960
|
"extensions": ["tmo"]
|
3909
3961
|
},
|
3962
|
+
"application/vnd.tri.onesource": {
|
3963
|
+
"source": "iana"
|
3964
|
+
},
|
3910
3965
|
"application/vnd.trid.tpt": {
|
3911
3966
|
"source": "iana",
|
3912
3967
|
"extensions": ["tpt"]
|
@@ -4830,6 +4885,13 @@
|
|
4830
4885
|
"source": "iana",
|
4831
4886
|
"extensions": ["yang"]
|
4832
4887
|
},
|
4888
|
+
"application/yang-data+json": {
|
4889
|
+
"source": "iana",
|
4890
|
+
"compressible": true
|
4891
|
+
},
|
4892
|
+
"application/yang-data+xml": {
|
4893
|
+
"source": "iana"
|
4894
|
+
},
|
4833
4895
|
"application/yin+xml": {
|
4834
4896
|
"source": "iana",
|
4835
4897
|
"extensions": ["yin"]
|
@@ -5062,6 +5124,10 @@
|
|
5062
5124
|
"audio/mobile-xmf": {
|
5063
5125
|
"source": "iana"
|
5064
5126
|
},
|
5127
|
+
"audio/mp3": {
|
5128
|
+
"compressible": false,
|
5129
|
+
"extensions": ["mp3"]
|
5130
|
+
},
|
5065
5131
|
"audio/mp4": {
|
5066
5132
|
"source": "iana",
|
5067
5133
|
"compressible": false,
|
@@ -5425,7 +5491,7 @@
|
|
5425
5491
|
"extensions": ["otf"]
|
5426
5492
|
},
|
5427
5493
|
"image/bmp": {
|
5428
|
-
"source": "
|
5494
|
+
"source": "iana",
|
5429
5495
|
"compressible": true,
|
5430
5496
|
"extensions": ["bmp"]
|
5431
5497
|
},
|
@@ -5433,6 +5499,12 @@
|
|
5433
5499
|
"source": "iana",
|
5434
5500
|
"extensions": ["cgm"]
|
5435
5501
|
},
|
5502
|
+
"image/dicom-rle": {
|
5503
|
+
"source": "iana"
|
5504
|
+
},
|
5505
|
+
"image/emf": {
|
5506
|
+
"source": "iana"
|
5507
|
+
},
|
5436
5508
|
"image/fits": {
|
5437
5509
|
"source": "iana"
|
5438
5510
|
},
|
@@ -5449,6 +5521,9 @@
|
|
5449
5521
|
"source": "iana",
|
5450
5522
|
"extensions": ["ief"]
|
5451
5523
|
},
|
5524
|
+
"image/jls": {
|
5525
|
+
"source": "iana"
|
5526
|
+
},
|
5452
5527
|
"image/jp2": {
|
5453
5528
|
"source": "iana"
|
5454
5529
|
},
|
@@ -5619,6 +5694,9 @@
|
|
5619
5694
|
"source": "apache",
|
5620
5695
|
"extensions": ["webp"]
|
5621
5696
|
},
|
5697
|
+
"image/wmf": {
|
5698
|
+
"source": "iana"
|
5699
|
+
},
|
5622
5700
|
"image/x-3ds": {
|
5623
5701
|
"source": "apache",
|
5624
5702
|
"extensions": ["3ds"]
|
@@ -5765,6 +5843,10 @@
|
|
5765
5843
|
"message/vnd.wfa.wsc": {
|
5766
5844
|
"source": "iana"
|
5767
5845
|
},
|
5846
|
+
"model/gltf+json": {
|
5847
|
+
"source": "iana",
|
5848
|
+
"compressible": true
|
5849
|
+
},
|
5768
5850
|
"model/iges": {
|
5769
5851
|
"source": "iana",
|
5770
5852
|
"compressible": false,
|
@@ -6092,6 +6174,9 @@
|
|
6092
6174
|
"text/vnd.abc": {
|
6093
6175
|
"source": "iana"
|
6094
6176
|
},
|
6177
|
+
"text/vnd.ascii-art": {
|
6178
|
+
"source": "iana"
|
6179
|
+
},
|
6095
6180
|
"text/vnd.curl": {
|
6096
6181
|
"source": "iana",
|
6097
6182
|
"extensions": ["curl"]
|
@@ -1,41 +1,48 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "mime-db@~1.25.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "mime-db",
|
8
|
+
"name": "mime-db",
|
9
|
+
"rawSpec": "~1.25.0",
|
10
|
+
"spec": ">=1.25.0 <1.26.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/mime-types"
|
6
14
|
]
|
7
15
|
],
|
8
|
-
"_from": "mime-db@>=1.
|
9
|
-
"_id": "mime-db@1.
|
16
|
+
"_from": "mime-db@>=1.25.0 <1.26.0",
|
17
|
+
"_id": "mime-db@1.25.0",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/mime-db",
|
13
|
-
"_nodeVersion": "4.4.3",
|
14
20
|
"_npmOperationalInternal": {
|
15
|
-
"host": "packages-
|
16
|
-
"tmp": "tmp/mime-db-1.
|
21
|
+
"host": "packages-12-west.internal.npmjs.com",
|
22
|
+
"tmp": "tmp/mime-db-1.25.0.tgz_1478915345127_0.22604371700435877"
|
17
23
|
},
|
18
24
|
"_npmUser": {
|
19
|
-
"
|
20
|
-
"
|
25
|
+
"name": "dougwilson",
|
26
|
+
"email": "doug@somethingdoug.com"
|
21
27
|
},
|
22
|
-
"_npmVersion": "
|
28
|
+
"_npmVersion": "1.4.28",
|
23
29
|
"_phantomChildren": {},
|
24
30
|
"_requested": {
|
25
|
-
"
|
26
|
-
"raw": "mime-db@~1.23.0",
|
27
|
-
"rawSpec": "~1.23.0",
|
31
|
+
"raw": "mime-db@~1.25.0",
|
28
32
|
"scope": null,
|
29
|
-
"
|
33
|
+
"escapedName": "mime-db",
|
34
|
+
"name": "mime-db",
|
35
|
+
"rawSpec": "~1.25.0",
|
36
|
+
"spec": ">=1.25.0 <1.26.0",
|
30
37
|
"type": "range"
|
31
38
|
},
|
32
39
|
"_requiredBy": [
|
33
40
|
"/mime-types"
|
34
41
|
],
|
35
|
-
"_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.
|
36
|
-
"_shasum": "
|
42
|
+
"_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.25.0.tgz",
|
43
|
+
"_shasum": "c18dbd7c73a5dbf6f44a024dc0d165a1e7b1c392",
|
37
44
|
"_shrinkwrap": null,
|
38
|
-
"_spec": "mime-db@~1.
|
45
|
+
"_spec": "mime-db@~1.25.0",
|
39
46
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/mime-types",
|
40
47
|
"bugs": {
|
41
48
|
"url": "https://github.com/jshttp/mime-db/issues"
|
@@ -59,20 +66,24 @@
|
|
59
66
|
"dependencies": {},
|
60
67
|
"description": "Media Type Database",
|
61
68
|
"devDependencies": {
|
62
|
-
"bluebird": "3.
|
69
|
+
"bluebird": "3.4.6",
|
63
70
|
"co": "4.6.0",
|
64
71
|
"cogent": "1.0.1",
|
65
|
-
"csv-parse": "1.1.
|
72
|
+
"csv-parse": "1.1.7",
|
73
|
+
"eslint": "3.9.1",
|
74
|
+
"eslint-config-standard": "6.2.1",
|
75
|
+
"eslint-plugin-promise": "3.3.0",
|
76
|
+
"eslint-plugin-standard": "2.0.1",
|
66
77
|
"gnode": "0.1.2",
|
67
|
-
"istanbul": "0.4.
|
78
|
+
"istanbul": "0.4.5",
|
68
79
|
"mocha": "1.21.5",
|
69
|
-
"raw-body": "2.1.
|
80
|
+
"raw-body": "2.1.7",
|
70
81
|
"stream-to-array": "2.3.0"
|
71
82
|
},
|
72
83
|
"directories": {},
|
73
84
|
"dist": {
|
74
|
-
"shasum": "
|
75
|
-
"tarball": "https://registry.npmjs.org/mime-db/-/mime-db-1.
|
85
|
+
"shasum": "c18dbd7c73a5dbf6f44a024dc0d165a1e7b1c392",
|
86
|
+
"tarball": "https://registry.npmjs.org/mime-db/-/mime-db-1.25.0.tgz"
|
76
87
|
},
|
77
88
|
"engines": {
|
78
89
|
"node": ">= 0.6"
|
@@ -84,16 +95,16 @@
|
|
84
95
|
"db.json",
|
85
96
|
"index.js"
|
86
97
|
],
|
87
|
-
"gitHead": "
|
88
|
-
"homepage": "https://github.com/jshttp/mime-db
|
98
|
+
"gitHead": "9a2c710e347b4a7f030aae0d15afc0a06d1c8a37",
|
99
|
+
"homepage": "https://github.com/jshttp/mime-db",
|
89
100
|
"keywords": [
|
90
|
-
"charset",
|
91
|
-
"charsets",
|
92
|
-
"database",
|
93
|
-
"db",
|
94
101
|
"mime",
|
102
|
+
"db",
|
95
103
|
"type",
|
96
|
-
"types"
|
104
|
+
"types",
|
105
|
+
"database",
|
106
|
+
"charset",
|
107
|
+
"charsets"
|
97
108
|
],
|
98
109
|
"license": "MIT",
|
99
110
|
"maintainers": [
|
@@ -116,10 +127,11 @@
|
|
116
127
|
"scripts": {
|
117
128
|
"build": "node scripts/build",
|
118
129
|
"fetch": "gnode scripts/fetch-apache && gnode scripts/fetch-iana && gnode scripts/fetch-nginx",
|
130
|
+
"lint": "eslint .",
|
119
131
|
"test": "mocha --reporter spec --bail --check-leaks test/",
|
120
132
|
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
|
121
133
|
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
|
122
134
|
"update": "npm run fetch && npm run build"
|
123
135
|
},
|
124
|
-
"version": "1.
|
136
|
+
"version": "1.25.0"
|
125
137
|
}
|
@@ -1,3 +1,16 @@
|
|
1
|
+
2.1.13 / 2016-11-18
|
2
|
+
===================
|
3
|
+
|
4
|
+
* deps: mime-db@~1.25.0
|
5
|
+
- Add new mime types
|
6
|
+
|
7
|
+
2.1.12 / 2016-09-18
|
8
|
+
===================
|
9
|
+
|
10
|
+
* deps: mime-db@~1.24.0
|
11
|
+
- Add new mime types
|
12
|
+
- Add `audio/mp3`
|
13
|
+
|
1
14
|
2.1.11 / 2016-05-01
|
2
15
|
===================
|
3
16
|
|
@@ -46,7 +46,7 @@ populateMaps(exports.extensions, exports.types)
|
|
46
46
|
* @return {boolean|string}
|
47
47
|
*/
|
48
48
|
|
49
|
-
function charset(type) {
|
49
|
+
function charset (type) {
|
50
50
|
if (!type || typeof type !== 'string') {
|
51
51
|
return false
|
52
52
|
}
|
@@ -74,7 +74,7 @@ function charset(type) {
|
|
74
74
|
* @return {boolean|string}
|
75
75
|
*/
|
76
76
|
|
77
|
-
function contentType(str) {
|
77
|
+
function contentType (str) {
|
78
78
|
// TODO: should this even be in this module?
|
79
79
|
if (!str || typeof str !== 'string') {
|
80
80
|
return false
|
@@ -104,7 +104,7 @@ function contentType(str) {
|
|
104
104
|
* @return {boolean|string}
|
105
105
|
*/
|
106
106
|
|
107
|
-
function extension(type) {
|
107
|
+
function extension (type) {
|
108
108
|
if (!type || typeof type !== 'string') {
|
109
109
|
return false
|
110
110
|
}
|
@@ -129,7 +129,7 @@ function extension(type) {
|
|
129
129
|
* @return {boolean|string}
|
130
130
|
*/
|
131
131
|
|
132
|
-
function lookup(path) {
|
132
|
+
function lookup (path) {
|
133
133
|
if (!path || typeof path !== 'string') {
|
134
134
|
return false
|
135
135
|
}
|
@@ -151,11 +151,11 @@ function lookup(path) {
|
|
151
151
|
* @private
|
152
152
|
*/
|
153
153
|
|
154
|
-
function populateMaps(extensions, types) {
|
154
|
+
function populateMaps (extensions, types) {
|
155
155
|
// source preference (least -> most)
|
156
156
|
var preference = ['nginx', 'apache', undefined, 'iana']
|
157
157
|
|
158
|
-
Object.keys(db).forEach(function forEachMimeType(type) {
|
158
|
+
Object.keys(db).forEach(function forEachMimeType (type) {
|
159
159
|
var mime = db[type]
|
160
160
|
var exts = mime.extensions
|
161
161
|
|
@@ -174,8 +174,8 @@ function populateMaps(extensions, types) {
|
|
174
174
|
var from = preference.indexOf(db[types[extension]].source)
|
175
175
|
var to = preference.indexOf(mime.source)
|
176
176
|
|
177
|
-
if (types[extension] !== 'application/octet-stream'
|
178
|
-
|
177
|
+
if (types[extension] !== 'application/octet-stream' &&
|
178
|
+
from > to || (from === to && types[extension].substr(0, 12) === 'application/')) {
|
179
179
|
// skip the remapping
|
180
180
|
continue
|
181
181
|
}
|
@@ -1,31 +1,38 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "mime-types@~2.1.7",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "mime-types",
|
8
|
+
"name": "mime-types",
|
9
|
+
"rawSpec": "~2.1.7",
|
10
|
+
"spec": ">=2.1.7 <2.2.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/request"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "mime-types@>=2.1.7 <2.2.0",
|
9
|
-
"_id": "mime-types@2.1.
|
17
|
+
"_id": "mime-types@2.1.13",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/mime-types",
|
13
|
-
"_nodeVersion": "4.4.3",
|
14
20
|
"_npmOperationalInternal": {
|
15
21
|
"host": "packages-12-west.internal.npmjs.com",
|
16
|
-
"tmp": "tmp/mime-types-2.1.
|
22
|
+
"tmp": "tmp/mime-types-2.1.13.tgz_1479505166253_0.5666956284549087"
|
17
23
|
},
|
18
24
|
"_npmUser": {
|
19
|
-
"
|
20
|
-
"
|
25
|
+
"name": "dougwilson",
|
26
|
+
"email": "doug@somethingdoug.com"
|
21
27
|
},
|
22
|
-
"_npmVersion": "
|
28
|
+
"_npmVersion": "1.4.28",
|
23
29
|
"_phantomChildren": {},
|
24
30
|
"_requested": {
|
25
|
-
"name": "mime-types",
|
26
31
|
"raw": "mime-types@~2.1.7",
|
27
|
-
"rawSpec": "~2.1.7",
|
28
32
|
"scope": null,
|
33
|
+
"escapedName": "mime-types",
|
34
|
+
"name": "mime-types",
|
35
|
+
"rawSpec": "~2.1.7",
|
29
36
|
"spec": ">=2.1.7 <2.2.0",
|
30
37
|
"type": "range"
|
31
38
|
},
|
@@ -33,8 +40,8 @@
|
|
33
40
|
"/form-data",
|
34
41
|
"/request"
|
35
42
|
],
|
36
|
-
"_resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.
|
37
|
-
"_shasum": "
|
43
|
+
"_resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.13.tgz",
|
44
|
+
"_shasum": "e07aaa9c6c6b9a7ca3012c69003ad25a39e92a88",
|
38
45
|
"_shrinkwrap": null,
|
39
46
|
"_spec": "mime-types@~2.1.7",
|
40
47
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/request",
|
@@ -58,17 +65,21 @@
|
|
58
65
|
}
|
59
66
|
],
|
60
67
|
"dependencies": {
|
61
|
-
"mime-db": "~1.
|
68
|
+
"mime-db": "~1.25.0"
|
62
69
|
},
|
63
70
|
"description": "The ultimate javascript content-type utility.",
|
64
71
|
"devDependencies": {
|
65
|
-
"
|
72
|
+
"eslint": "3.10.2",
|
73
|
+
"eslint-config-standard": "6.2.1",
|
74
|
+
"eslint-plugin-promise": "3.4.0",
|
75
|
+
"eslint-plugin-standard": "2.0.1",
|
76
|
+
"istanbul": "0.4.5",
|
66
77
|
"mocha": "1.21.5"
|
67
78
|
},
|
68
79
|
"directories": {},
|
69
80
|
"dist": {
|
70
|
-
"shasum": "
|
71
|
-
"tarball": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.
|
81
|
+
"shasum": "e07aaa9c6c6b9a7ca3012c69003ad25a39e92a88",
|
82
|
+
"tarball": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.13.tgz"
|
72
83
|
},
|
73
84
|
"engines": {
|
74
85
|
"node": ">= 0.6"
|
@@ -78,8 +89,8 @@
|
|
78
89
|
"LICENSE",
|
79
90
|
"index.js"
|
80
91
|
],
|
81
|
-
"gitHead": "
|
82
|
-
"homepage": "https://github.com/jshttp/mime-types
|
92
|
+
"gitHead": "83e91a5aea93858bc95ec95a99309592cba0ffe3",
|
93
|
+
"homepage": "https://github.com/jshttp/mime-types",
|
83
94
|
"keywords": [
|
84
95
|
"mime",
|
85
96
|
"types"
|
@@ -107,9 +118,10 @@
|
|
107
118
|
"url": "git+https://github.com/jshttp/mime-types.git"
|
108
119
|
},
|
109
120
|
"scripts": {
|
121
|
+
"lint": "eslint .",
|
110
122
|
"test": "mocha --reporter spec test/test.js",
|
111
123
|
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/test.js",
|
112
124
|
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot test/test.js"
|
113
125
|
},
|
114
|
-
"version": "2.1.
|
126
|
+
"version": "2.1.13"
|
115
127
|
}
|
@@ -9,6 +9,14 @@ try {
|
|
9
9
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}
|
10
10
|
var expand = require('brace-expansion')
|
11
11
|
|
12
|
+
var plTypes = {
|
13
|
+
'!': { open: '(?:(?!(?:', close: '))[^/]*?)'},
|
14
|
+
'?': { open: '(?:', close: ')?' },
|
15
|
+
'+': { open: '(?:', close: ')+' },
|
16
|
+
'*': { open: '(?:', close: ')*' },
|
17
|
+
'@': { open: '(?:', close: ')' }
|
18
|
+
}
|
19
|
+
|
12
20
|
// any single thing other than /
|
13
21
|
// don't need to escape / when using new RegExp()
|
14
22
|
var qmark = '[^/]'
|
@@ -277,7 +285,6 @@ function parse (pattern, isSub) {
|
|
277
285
|
// ? => one single character
|
278
286
|
var patternListStack = []
|
279
287
|
var negativeLists = []
|
280
|
-
var plType
|
281
288
|
var stateChar
|
282
289
|
var inClass = false
|
283
290
|
var reClassStart = -1
|
@@ -376,11 +383,12 @@ function parse (pattern, isSub) {
|
|
376
383
|
continue
|
377
384
|
}
|
378
385
|
|
379
|
-
plType = stateChar
|
380
386
|
patternListStack.push({
|
381
|
-
type:
|
387
|
+
type: stateChar,
|
382
388
|
start: i - 1,
|
383
|
-
reStart: re.length
|
389
|
+
reStart: re.length,
|
390
|
+
open: plTypes[stateChar].open,
|
391
|
+
close: plTypes[stateChar].close
|
384
392
|
})
|
385
393
|
// negation is (?:(?!js)[^/]*)
|
386
394
|
re += stateChar === '!' ? '(?:(?!(?:' : '(?:'
|
@@ -396,24 +404,14 @@ function parse (pattern, isSub) {
|
|
396
404
|
|
397
405
|
clearStateChar()
|
398
406
|
hasMagic = true
|
399
|
-
re += ')'
|
400
407
|
var pl = patternListStack.pop()
|
401
|
-
plType = pl.type
|
402
408
|
// negation is (?:(?!js)[^/]*)
|
403
409
|
// The others are (?:<pattern>)<type>
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
re += ')[^/]*?)'
|
408
|
-
pl.reEnd = re.length
|
409
|
-
break
|
410
|
-
case '?':
|
411
|
-
case '+':
|
412
|
-
case '*':
|
413
|
-
re += plType
|
414
|
-
break
|
415
|
-
case '@': break // the default anyway
|
410
|
+
re += pl.close
|
411
|
+
if (pl.type === '!') {
|
412
|
+
negativeLists.push(pl)
|
416
413
|
}
|
414
|
+
pl.reEnd = re.length
|
417
415
|
continue
|
418
416
|
|
419
417
|
case '|':
|
@@ -520,7 +518,8 @@ function parse (pattern, isSub) {
|
|
520
518
|
// Go through and escape them, taking care not to double-escape any
|
521
519
|
// | chars that were already escaped.
|
522
520
|
for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
|
523
|
-
var tail = re.slice(pl.reStart +
|
521
|
+
var tail = re.slice(pl.reStart + pl.open.length)
|
522
|
+
this.debug('setting tail', re, pl)
|
524
523
|
// maybe some even number of \, then maybe 1 \, followed by a |
|
525
524
|
tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function (_, $1, $2) {
|
526
525
|
if (!$2) {
|
@@ -537,7 +536,7 @@ function parse (pattern, isSub) {
|
|
537
536
|
return $1 + $1 + $2 + '|'
|
538
537
|
})
|
539
538
|
|
540
|
-
this.debug('tail=%j\n %s', tail, tail)
|
539
|
+
this.debug('tail=%j\n %s', tail, tail, pl, re)
|
541
540
|
var t = pl.type === '*' ? star
|
542
541
|
: pl.type === '?' ? qmark
|
543
542
|
: '\\' + pl.type
|