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
@@ -1,27 +1,35 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "boom@2.x.x",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "boom",
|
8
|
+
"name": "boom",
|
9
|
+
"rawSpec": "2.x.x",
|
10
|
+
"spec": ">=2.0.0 <3.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/hawk"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "boom@>=2.0.0 <3.0.0",
|
9
17
|
"_id": "boom@2.10.1",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/boom",
|
13
20
|
"_nodeVersion": "0.10.40",
|
14
21
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
22
|
+
"name": "arb",
|
23
|
+
"email": "arbretz@gmail.com"
|
17
24
|
},
|
18
25
|
"_npmVersion": "2.11.1",
|
19
26
|
"_phantomChildren": {},
|
20
27
|
"_requested": {
|
21
|
-
"name": "boom",
|
22
28
|
"raw": "boom@2.x.x",
|
23
|
-
"rawSpec": "2.x.x",
|
24
29
|
"scope": null,
|
30
|
+
"escapedName": "boom",
|
31
|
+
"name": "boom",
|
32
|
+
"rawSpec": "2.x.x",
|
25
33
|
"spec": ">=2.0.0 <3.0.0",
|
26
34
|
"type": "range"
|
27
35
|
},
|
@@ -66,6 +66,16 @@ function expandTop(str) {
|
|
66
66
|
if (!str)
|
67
67
|
return [];
|
68
68
|
|
69
|
+
// I don't know why Bash 4.3 does this, but it does.
|
70
|
+
// Anything starting with {} will have the first two bytes preserved
|
71
|
+
// but *only* at the top level, so {},a}b will not expand to anything,
|
72
|
+
// but a{},b}c will be expanded to [a}c,abc].
|
73
|
+
// One could argue that this is a bug in Bash, but since the goal of
|
74
|
+
// this module is to match Bash's rules, we escape a leading {}
|
75
|
+
if (str.substr(0, 2) === '{}') {
|
76
|
+
str = '\\{\\}' + str.substr(2);
|
77
|
+
}
|
78
|
+
|
69
79
|
return expand(escapeBraces(str), true).map(unescapeBraces);
|
70
80
|
}
|
71
81
|
|
@@ -1,45 +1,53 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "brace-expansion@^1.0.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "brace-expansion",
|
8
|
+
"name": "brace-expansion",
|
9
|
+
"rawSpec": "^1.0.0",
|
10
|
+
"spec": ">=1.0.0 <2.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/minimatch"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "brace-expansion@>=1.0.0 <2.0.0",
|
9
|
-
"_id": "brace-expansion@1.1.
|
17
|
+
"_id": "brace-expansion@1.1.6",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/brace-expansion",
|
13
|
-
"_nodeVersion": "4.4.
|
20
|
+
"_nodeVersion": "4.4.7",
|
14
21
|
"_npmOperationalInternal": {
|
15
22
|
"host": "packages-16-east.internal.npmjs.com",
|
16
|
-
"tmp": "tmp/brace-expansion-1.1.
|
23
|
+
"tmp": "tmp/brace-expansion-1.1.6.tgz_1469047715600_0.9362958471756428"
|
17
24
|
},
|
18
25
|
"_npmUser": {
|
19
|
-
"
|
20
|
-
"
|
26
|
+
"name": "juliangruber",
|
27
|
+
"email": "julian@juliangruber.com"
|
21
28
|
},
|
22
|
-
"_npmVersion": "2.15.
|
29
|
+
"_npmVersion": "2.15.8",
|
23
30
|
"_phantomChildren": {},
|
24
31
|
"_requested": {
|
25
|
-
"name": "brace-expansion",
|
26
32
|
"raw": "brace-expansion@^1.0.0",
|
27
|
-
"rawSpec": "^1.0.0",
|
28
33
|
"scope": null,
|
34
|
+
"escapedName": "brace-expansion",
|
35
|
+
"name": "brace-expansion",
|
36
|
+
"rawSpec": "^1.0.0",
|
29
37
|
"spec": ">=1.0.0 <2.0.0",
|
30
38
|
"type": "range"
|
31
39
|
},
|
32
40
|
"_requiredBy": [
|
33
41
|
"/minimatch"
|
34
42
|
],
|
35
|
-
"_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.
|
36
|
-
"_shasum": "
|
43
|
+
"_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.6.tgz",
|
44
|
+
"_shasum": "7197d7eaa9b87e648390ea61fc66c84427420df9",
|
37
45
|
"_shrinkwrap": null,
|
38
46
|
"_spec": "brace-expansion@^1.0.0",
|
39
47
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/minimatch",
|
40
48
|
"author": {
|
41
|
-
"email": "mail@juliangruber.com",
|
42
49
|
"name": "Julian Gruber",
|
50
|
+
"email": "mail@juliangruber.com",
|
43
51
|
"url": "http://juliangruber.com"
|
44
52
|
},
|
45
53
|
"bugs": {
|
@@ -51,14 +59,14 @@
|
|
51
59
|
},
|
52
60
|
"description": "Brace expansion as known from sh/bash",
|
53
61
|
"devDependencies": {
|
54
|
-
"tape": "4.
|
62
|
+
"tape": "^4.6.0"
|
55
63
|
},
|
56
64
|
"directories": {},
|
57
65
|
"dist": {
|
58
|
-
"shasum": "
|
59
|
-
"tarball": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.
|
66
|
+
"shasum": "7197d7eaa9b87e648390ea61fc66c84427420df9",
|
67
|
+
"tarball": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.6.tgz"
|
60
68
|
},
|
61
|
-
"gitHead": "
|
69
|
+
"gitHead": "791262fa06625e9c5594cde529a21d82086af5f2",
|
62
70
|
"homepage": "https://github.com/juliangruber/brace-expansion",
|
63
71
|
"keywords": [],
|
64
72
|
"license": "MIT",
|
@@ -85,20 +93,20 @@
|
|
85
93
|
"test": "tape test/*.js"
|
86
94
|
},
|
87
95
|
"testling": {
|
96
|
+
"files": "test/*.js",
|
88
97
|
"browsers": [
|
89
|
-
"
|
90
|
-
"chrome/25..latest",
|
91
|
-
"chrome/canary",
|
98
|
+
"ie/8..latest",
|
92
99
|
"firefox/20..latest",
|
93
100
|
"firefox/nightly",
|
94
|
-
"
|
95
|
-
"
|
96
|
-
"iphone/6.0..latest",
|
101
|
+
"chrome/25..latest",
|
102
|
+
"chrome/canary",
|
97
103
|
"opera/12..latest",
|
98
104
|
"opera/next",
|
99
|
-
"safari/5.1..latest"
|
100
|
-
|
101
|
-
|
105
|
+
"safari/5.1..latest",
|
106
|
+
"ipad/6.0..latest",
|
107
|
+
"iphone/6.0..latest",
|
108
|
+
"android-browser/4.2..latest"
|
109
|
+
]
|
102
110
|
},
|
103
|
-
"version": "1.1.
|
111
|
+
"version": "1.1.6"
|
104
112
|
}
|
@@ -1,14 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "buffer-shims@^1.0.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "buffer-shims",
|
8
|
+
"name": "buffer-shims",
|
9
|
+
"rawSpec": "^1.0.0",
|
10
|
+
"spec": ">=1.0.0 <2.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/readable-stream"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "buffer-shims@>=1.0.0 <2.0.0",
|
9
17
|
"_id": "buffer-shims@1.0.0",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/buffer-shims",
|
13
20
|
"_nodeVersion": "5.11.0",
|
14
21
|
"_npmOperationalInternal": {
|
@@ -16,21 +23,23 @@
|
|
16
23
|
"tmp": "tmp/buffer-shims-1.0.0.tgz_1462560889323_0.8640750856138766"
|
17
24
|
},
|
18
25
|
"_npmUser": {
|
19
|
-
"
|
20
|
-
"
|
26
|
+
"name": "cwmma",
|
27
|
+
"email": "calvin.metcalf@gmail.com"
|
21
28
|
},
|
22
29
|
"_npmVersion": "3.8.6",
|
23
30
|
"_phantomChildren": {},
|
24
31
|
"_requested": {
|
25
|
-
"name": "buffer-shims",
|
26
32
|
"raw": "buffer-shims@^1.0.0",
|
27
|
-
"rawSpec": "^1.0.0",
|
28
33
|
"scope": null,
|
34
|
+
"escapedName": "buffer-shims",
|
35
|
+
"name": "buffer-shims",
|
36
|
+
"rawSpec": "^1.0.0",
|
29
37
|
"spec": ">=1.0.0 <2.0.0",
|
30
38
|
"type": "range"
|
31
39
|
},
|
32
40
|
"_requiredBy": [
|
33
|
-
"/readable-stream"
|
41
|
+
"/readable-stream",
|
42
|
+
"/tar-pack/readable-stream"
|
34
43
|
],
|
35
44
|
"_resolved": "https://registry.npmjs.org/buffer-shims/-/buffer-shims-1.0.0.tgz",
|
36
45
|
"_shasum": "9978ce317388c649ad8793028c3477ef044a8b51",
|
@@ -1,27 +1,35 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "caseless@~0.11.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "caseless",
|
8
|
+
"name": "caseless",
|
9
|
+
"rawSpec": "~0.11.0",
|
10
|
+
"spec": ">=0.11.0 <0.12.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/request"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "caseless@>=0.11.0 <0.12.0",
|
9
17
|
"_id": "caseless@0.11.0",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/caseless",
|
13
20
|
"_nodeVersion": "1.8.1",
|
14
21
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
22
|
+
"name": "mikeal",
|
23
|
+
"email": "mikeal.rogers@gmail.com"
|
17
24
|
},
|
18
25
|
"_npmVersion": "2.8.3",
|
19
26
|
"_phantomChildren": {},
|
20
27
|
"_requested": {
|
21
|
-
"name": "caseless",
|
22
28
|
"raw": "caseless@~0.11.0",
|
23
|
-
"rawSpec": "~0.11.0",
|
24
29
|
"scope": null,
|
30
|
+
"escapedName": "caseless",
|
31
|
+
"name": "caseless",
|
32
|
+
"rawSpec": "~0.11.0",
|
25
33
|
"spec": ">=0.11.0 <0.12.0",
|
26
34
|
"type": "range"
|
27
35
|
},
|
@@ -34,8 +42,8 @@
|
|
34
42
|
"_spec": "caseless@~0.11.0",
|
35
43
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/request",
|
36
44
|
"author": {
|
37
|
-
"
|
38
|
-
"
|
45
|
+
"name": "Mikeal Rogers",
|
46
|
+
"email": "mikeal.rogers@gmail.com"
|
39
47
|
},
|
40
48
|
"bugs": {
|
41
49
|
"url": "https://github.com/mikeal/caseless/issues"
|
@@ -53,9 +61,9 @@
|
|
53
61
|
"gitHead": "c578232a02cc2b46b6da8851caf57fdbfac89ff5",
|
54
62
|
"homepage": "https://github.com/mikeal/caseless#readme",
|
55
63
|
"keywords": [
|
56
|
-
"caseless",
|
57
64
|
"headers",
|
58
|
-
"http"
|
65
|
+
"http",
|
66
|
+
"caseless"
|
59
67
|
],
|
60
68
|
"license": "Apache-2.0",
|
61
69
|
"main": "index.js",
|
@@ -0,0 +1,50 @@
|
|
1
|
+
'use strict';
|
2
|
+
var argv = process.argv;
|
3
|
+
|
4
|
+
var terminator = argv.indexOf('--');
|
5
|
+
var hasFlag = function (flag) {
|
6
|
+
flag = '--' + flag;
|
7
|
+
var pos = argv.indexOf(flag);
|
8
|
+
return pos !== -1 && (terminator !== -1 ? pos < terminator : true);
|
9
|
+
};
|
10
|
+
|
11
|
+
module.exports = (function () {
|
12
|
+
if ('FORCE_COLOR' in process.env) {
|
13
|
+
return true;
|
14
|
+
}
|
15
|
+
|
16
|
+
if (hasFlag('no-color') ||
|
17
|
+
hasFlag('no-colors') ||
|
18
|
+
hasFlag('color=false')) {
|
19
|
+
return false;
|
20
|
+
}
|
21
|
+
|
22
|
+
if (hasFlag('color') ||
|
23
|
+
hasFlag('colors') ||
|
24
|
+
hasFlag('color=true') ||
|
25
|
+
hasFlag('color=always')) {
|
26
|
+
return true;
|
27
|
+
}
|
28
|
+
|
29
|
+
if (process.stdout && !process.stdout.isTTY) {
|
30
|
+
return false;
|
31
|
+
}
|
32
|
+
|
33
|
+
if (process.platform === 'win32') {
|
34
|
+
return true;
|
35
|
+
}
|
36
|
+
|
37
|
+
if ('COLORTERM' in process.env) {
|
38
|
+
return true;
|
39
|
+
}
|
40
|
+
|
41
|
+
if (process.env.TERM === 'dumb') {
|
42
|
+
return false;
|
43
|
+
}
|
44
|
+
|
45
|
+
if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) {
|
46
|
+
return true;
|
47
|
+
}
|
48
|
+
|
49
|
+
return false;
|
50
|
+
})();
|
File without changes
|
@@ -0,0 +1,113 @@
|
|
1
|
+
{
|
2
|
+
"_args": [
|
3
|
+
[
|
4
|
+
{
|
5
|
+
"raw": "supports-color@^2.0.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "supports-color",
|
8
|
+
"name": "supports-color",
|
9
|
+
"rawSpec": "^2.0.0",
|
10
|
+
"spec": ">=2.0.0 <3.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
13
|
+
"/Users/eshanker/Code/fsevents/node_modules/chalk"
|
14
|
+
]
|
15
|
+
],
|
16
|
+
"_from": "supports-color@>=2.0.0 <3.0.0",
|
17
|
+
"_id": "supports-color@2.0.0",
|
18
|
+
"_inCache": true,
|
19
|
+
"_location": "/chalk/supports-color",
|
20
|
+
"_nodeVersion": "0.12.5",
|
21
|
+
"_npmUser": {
|
22
|
+
"name": "sindresorhus",
|
23
|
+
"email": "sindresorhus@gmail.com"
|
24
|
+
},
|
25
|
+
"_npmVersion": "2.11.2",
|
26
|
+
"_phantomChildren": {},
|
27
|
+
"_requested": {
|
28
|
+
"raw": "supports-color@^2.0.0",
|
29
|
+
"scope": null,
|
30
|
+
"escapedName": "supports-color",
|
31
|
+
"name": "supports-color",
|
32
|
+
"rawSpec": "^2.0.0",
|
33
|
+
"spec": ">=2.0.0 <3.0.0",
|
34
|
+
"type": "range"
|
35
|
+
},
|
36
|
+
"_requiredBy": [
|
37
|
+
"/chalk"
|
38
|
+
],
|
39
|
+
"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
|
40
|
+
"_shasum": "535d045ce6b6363fa40117084629995e9df324c7",
|
41
|
+
"_shrinkwrap": null,
|
42
|
+
"_spec": "supports-color@^2.0.0",
|
43
|
+
"_where": "/Users/eshanker/Code/fsevents/node_modules/chalk",
|
44
|
+
"author": {
|
45
|
+
"name": "Sindre Sorhus",
|
46
|
+
"email": "sindresorhus@gmail.com",
|
47
|
+
"url": "sindresorhus.com"
|
48
|
+
},
|
49
|
+
"bugs": {
|
50
|
+
"url": "https://github.com/chalk/supports-color/issues"
|
51
|
+
},
|
52
|
+
"dependencies": {},
|
53
|
+
"description": "Detect whether a terminal supports color",
|
54
|
+
"devDependencies": {
|
55
|
+
"mocha": "*",
|
56
|
+
"require-uncached": "^1.0.2"
|
57
|
+
},
|
58
|
+
"directories": {},
|
59
|
+
"dist": {
|
60
|
+
"shasum": "535d045ce6b6363fa40117084629995e9df324c7",
|
61
|
+
"tarball": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz"
|
62
|
+
},
|
63
|
+
"engines": {
|
64
|
+
"node": ">=0.8.0"
|
65
|
+
},
|
66
|
+
"files": [
|
67
|
+
"index.js"
|
68
|
+
],
|
69
|
+
"gitHead": "8400d98ade32b2adffd50902c06d9e725a5c6588",
|
70
|
+
"homepage": "https://github.com/chalk/supports-color",
|
71
|
+
"keywords": [
|
72
|
+
"color",
|
73
|
+
"colour",
|
74
|
+
"colors",
|
75
|
+
"terminal",
|
76
|
+
"console",
|
77
|
+
"cli",
|
78
|
+
"ansi",
|
79
|
+
"styles",
|
80
|
+
"tty",
|
81
|
+
"rgb",
|
82
|
+
"256",
|
83
|
+
"shell",
|
84
|
+
"xterm",
|
85
|
+
"command-line",
|
86
|
+
"support",
|
87
|
+
"supports",
|
88
|
+
"capability",
|
89
|
+
"detect"
|
90
|
+
],
|
91
|
+
"license": "MIT",
|
92
|
+
"maintainers": [
|
93
|
+
{
|
94
|
+
"name": "sindresorhus",
|
95
|
+
"email": "sindresorhus@gmail.com"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"name": "jbnicolai",
|
99
|
+
"email": "jappelman@xebia.com"
|
100
|
+
}
|
101
|
+
],
|
102
|
+
"name": "supports-color",
|
103
|
+
"optionalDependencies": {},
|
104
|
+
"readme": "ERROR: No README data found!",
|
105
|
+
"repository": {
|
106
|
+
"type": "git",
|
107
|
+
"url": "git+https://github.com/chalk/supports-color.git"
|
108
|
+
},
|
109
|
+
"scripts": {
|
110
|
+
"test": "mocha"
|
111
|
+
},
|
112
|
+
"version": "2.0.0"
|
113
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# supports-color [](https://travis-ci.org/chalk/supports-color)
|
2
|
+
|
3
|
+
> Detect whether a terminal supports color
|
4
|
+
|
5
|
+
|
6
|
+
## Install
|
7
|
+
|
8
|
+
```
|
9
|
+
$ npm install --save supports-color
|
10
|
+
```
|
11
|
+
|
12
|
+
|
13
|
+
## Usage
|
14
|
+
|
15
|
+
```js
|
16
|
+
var supportsColor = require('supports-color');
|
17
|
+
|
18
|
+
if (supportsColor) {
|
19
|
+
console.log('Terminal supports color');
|
20
|
+
}
|
21
|
+
```
|
22
|
+
|
23
|
+
It obeys the `--color` and `--no-color` CLI flags.
|
24
|
+
|
25
|
+
For situations where using `--color` is not possible, add an environment variable `FORCE_COLOR` with any value to force color. Trumps `--no-color`.
|
26
|
+
|
27
|
+
|
28
|
+
## Related
|
29
|
+
|
30
|
+
- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module
|
31
|
+
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
|
32
|
+
|
33
|
+
|
34
|
+
## License
|
35
|
+
|
36
|
+
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
@@ -1,14 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "chalk@^1.1.1",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "chalk",
|
8
|
+
"name": "chalk",
|
9
|
+
"rawSpec": "^1.1.1",
|
10
|
+
"spec": ">=1.1.1 <2.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/har-validator"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "chalk@>=1.1.1 <2.0.0",
|
9
17
|
"_id": "chalk@1.1.3",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/chalk",
|
13
20
|
"_nodeVersion": "0.10.32",
|
14
21
|
"_npmOperationalInternal": {
|
@@ -16,16 +23,17 @@
|
|
16
23
|
"tmp": "tmp/chalk-1.1.3.tgz_1459210604109_0.3892582862172276"
|
17
24
|
},
|
18
25
|
"_npmUser": {
|
19
|
-
"
|
20
|
-
"
|
26
|
+
"name": "qix",
|
27
|
+
"email": "i.am.qix@gmail.com"
|
21
28
|
},
|
22
29
|
"_npmVersion": "2.14.2",
|
23
30
|
"_phantomChildren": {},
|
24
31
|
"_requested": {
|
25
|
-
"name": "chalk",
|
26
32
|
"raw": "chalk@^1.1.1",
|
27
|
-
"rawSpec": "^1.1.1",
|
28
33
|
"scope": null,
|
34
|
+
"escapedName": "chalk",
|
35
|
+
"name": "chalk",
|
36
|
+
"rawSpec": "^1.1.1",
|
29
37
|
"spec": ">=1.1.1 <2.0.0",
|
30
38
|
"type": "range"
|
31
39
|
},
|
@@ -72,27 +80,27 @@
|
|
72
80
|
"gitHead": "0d8d8c204eb87a4038219131ad4d8369c9f59d24",
|
73
81
|
"homepage": "https://github.com/chalk/chalk#readme",
|
74
82
|
"keywords": [
|
75
|
-
"256",
|
76
|
-
"ansi",
|
77
|
-
"cli",
|
78
83
|
"color",
|
79
|
-
"colors",
|
80
84
|
"colour",
|
81
|
-
"
|
85
|
+
"colors",
|
86
|
+
"terminal",
|
82
87
|
"console",
|
83
|
-
"
|
84
|
-
"log",
|
85
|
-
"logging",
|
86
|
-
"rgb",
|
87
|
-
"shell",
|
88
|
-
"str",
|
88
|
+
"cli",
|
89
89
|
"string",
|
90
|
+
"str",
|
91
|
+
"ansi",
|
90
92
|
"style",
|
91
93
|
"styles",
|
92
|
-
"terminal",
|
93
|
-
"text",
|
94
94
|
"tty",
|
95
|
-
"
|
95
|
+
"formatting",
|
96
|
+
"rgb",
|
97
|
+
"256",
|
98
|
+
"shell",
|
99
|
+
"xterm",
|
100
|
+
"log",
|
101
|
+
"logging",
|
102
|
+
"command-line",
|
103
|
+
"text"
|
96
104
|
],
|
97
105
|
"license": "MIT",
|
98
106
|
"maintainers": [
|
@@ -125,8 +133,8 @@
|
|
125
133
|
"version": "1.1.3",
|
126
134
|
"xo": {
|
127
135
|
"envs": [
|
128
|
-
"
|
129
|
-
"
|
136
|
+
"node",
|
137
|
+
"mocha"
|
130
138
|
]
|
131
139
|
}
|
132
140
|
}
|
@@ -1,6 +1,5 @@
|
|
1
|
+
/* eslint-disable babel/new-cap, xo/throw-new-error */
|
1
2
|
'use strict';
|
2
|
-
var numberIsNan = require('number-is-nan');
|
3
|
-
|
4
3
|
module.exports = function (str, pos) {
|
5
4
|
if (str === null || str === undefined) {
|
6
5
|
throw TypeError();
|
@@ -11,7 +10,7 @@ module.exports = function (str, pos) {
|
|
11
10
|
var size = str.length;
|
12
11
|
var i = pos ? Number(pos) : 0;
|
13
12
|
|
14
|
-
if (
|
13
|
+
if (Number.isNaN(i)) {
|
15
14
|
i = 0;
|
16
15
|
}
|
17
16
|
|
@@ -25,7 +24,7 @@ module.exports = function (str, pos) {
|
|
25
24
|
var second = str.charCodeAt(i + 1);
|
26
25
|
|
27
26
|
if (second >= 0xDC00 && second <= 0xDFFF) {
|
28
|
-
return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
|
27
|
+
return ((first - 0xD800) * 0x400) + second - 0xDC00 + 0x10000;
|
29
28
|
}
|
30
29
|
}
|
31
30
|
|