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,56 +1,67 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
5
|
-
|
4
|
+
{
|
5
|
+
"raw": "number-is-nan@^1.0.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "number-is-nan",
|
8
|
+
"name": "number-is-nan",
|
9
|
+
"rawSpec": "^1.0.0",
|
10
|
+
"spec": ">=1.0.0 <2.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
13
|
+
"/Users/eshanker/Code/fsevents/node_modules/is-fullwidth-code-point"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "number-is-nan@>=1.0.0 <2.0.0",
|
9
|
-
"_id": "number-is-nan@1.0.
|
17
|
+
"_id": "number-is-nan@1.0.1",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/number-is-nan",
|
13
|
-
"_nodeVersion": "
|
20
|
+
"_nodeVersion": "4.5.0",
|
21
|
+
"_npmOperationalInternal": {
|
22
|
+
"host": "packages-12-west.internal.npmjs.com",
|
23
|
+
"tmp": "tmp/number-is-nan-1.0.1.tgz_1475212313367_0.9480371843092144"
|
24
|
+
},
|
14
25
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
26
|
+
"name": "sindresorhus",
|
27
|
+
"email": "sindresorhus@gmail.com"
|
17
28
|
},
|
18
|
-
"_npmVersion": "2.
|
29
|
+
"_npmVersion": "2.15.9",
|
19
30
|
"_phantomChildren": {},
|
20
31
|
"_requested": {
|
21
|
-
"name": "number-is-nan",
|
22
32
|
"raw": "number-is-nan@^1.0.0",
|
23
|
-
"rawSpec": "^1.0.0",
|
24
33
|
"scope": null,
|
34
|
+
"escapedName": "number-is-nan",
|
35
|
+
"name": "number-is-nan",
|
36
|
+
"rawSpec": "^1.0.0",
|
25
37
|
"spec": ">=1.0.0 <2.0.0",
|
26
38
|
"type": "range"
|
27
39
|
},
|
28
40
|
"_requiredBy": [
|
29
|
-
"/code-point-at",
|
30
41
|
"/is-fullwidth-code-point"
|
31
42
|
],
|
32
|
-
"_resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.
|
33
|
-
"_shasum": "
|
43
|
+
"_resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
|
44
|
+
"_shasum": "097b602b53422a522c1afb8790318336941a011d",
|
34
45
|
"_shrinkwrap": null,
|
35
46
|
"_spec": "number-is-nan@^1.0.0",
|
36
|
-
"_where": "/Users/eshanker/Code/fsevents/node_modules/code-point
|
47
|
+
"_where": "/Users/eshanker/Code/fsevents/node_modules/is-fullwidth-code-point",
|
37
48
|
"author": {
|
38
|
-
"email": "sindresorhus@gmail.com",
|
39
49
|
"name": "Sindre Sorhus",
|
50
|
+
"email": "sindresorhus@gmail.com",
|
40
51
|
"url": "sindresorhus.com"
|
41
52
|
},
|
42
53
|
"bugs": {
|
43
54
|
"url": "https://github.com/sindresorhus/number-is-nan/issues"
|
44
55
|
},
|
45
56
|
"dependencies": {},
|
46
|
-
"description": "
|
57
|
+
"description": "ES2015 Number.isNaN() ponyfill",
|
47
58
|
"devDependencies": {
|
48
|
-
"ava": "
|
59
|
+
"ava": "*"
|
49
60
|
},
|
50
61
|
"directories": {},
|
51
62
|
"dist": {
|
52
|
-
"shasum": "
|
53
|
-
"tarball": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.
|
63
|
+
"shasum": "097b602b53422a522c1afb8790318336941a011d",
|
64
|
+
"tarball": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz"
|
54
65
|
},
|
55
66
|
"engines": {
|
56
67
|
"node": ">=0.10.0"
|
@@ -58,20 +69,18 @@
|
|
58
69
|
"files": [
|
59
70
|
"index.js"
|
60
71
|
],
|
61
|
-
"gitHead": "
|
72
|
+
"gitHead": "ed9cdac3f428cc929b61bb230da42c87477af4b9",
|
62
73
|
"homepage": "https://github.com/sindresorhus/number-is-nan#readme",
|
63
74
|
"keywords": [
|
64
|
-
"ecmascript",
|
65
75
|
"es2015",
|
66
|
-
"
|
67
|
-
"
|
76
|
+
"ecmascript",
|
77
|
+
"ponyfill",
|
78
|
+
"polyfill",
|
79
|
+
"shim",
|
80
|
+
"number",
|
68
81
|
"is",
|
69
82
|
"nan",
|
70
|
-
"not"
|
71
|
-
"number",
|
72
|
-
"polyfill",
|
73
|
-
"ponyfill",
|
74
|
-
"shim"
|
83
|
+
"not"
|
75
84
|
],
|
76
85
|
"license": "MIT",
|
77
86
|
"maintainers": [
|
@@ -88,7 +97,7 @@
|
|
88
97
|
"url": "git+https://github.com/sindresorhus/number-is-nan.git"
|
89
98
|
},
|
90
99
|
"scripts": {
|
91
|
-
"test": "
|
100
|
+
"test": "ava"
|
92
101
|
},
|
93
|
-
"version": "1.0.
|
102
|
+
"version": "1.0.1"
|
94
103
|
}
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# number-is-nan [](https://travis-ci.org/sindresorhus/number-is-nan)
|
2
2
|
|
3
|
-
>
|
4
|
-
|
5
|
-
> Ponyfill: A polyfill that doesn't overwrite the native method
|
3
|
+
> ES2015 [`Number.isNaN()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN) [ponyfill](https://ponyfill.com)
|
6
4
|
|
7
5
|
|
8
6
|
## Install
|
@@ -1,14 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "oauth-sign@~0.8.1",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "oauth-sign",
|
8
|
+
"name": "oauth-sign",
|
9
|
+
"rawSpec": "~0.8.1",
|
10
|
+
"spec": ">=0.8.1 <0.9.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/request"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "oauth-sign@>=0.8.1 <0.9.0",
|
9
17
|
"_id": "oauth-sign@0.8.2",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/oauth-sign",
|
13
20
|
"_nodeVersion": "5.9.0",
|
14
21
|
"_npmOperationalInternal": {
|
@@ -16,16 +23,17 @@
|
|
16
23
|
"tmp": "tmp/oauth-sign-0.8.2.tgz_1462396399020_0.8175400267355144"
|
17
24
|
},
|
18
25
|
"_npmUser": {
|
19
|
-
"
|
20
|
-
"
|
26
|
+
"name": "simov",
|
27
|
+
"email": "simeonvelichkov@gmail.com"
|
21
28
|
},
|
22
29
|
"_npmVersion": "2.15.3",
|
23
30
|
"_phantomChildren": {},
|
24
31
|
"_requested": {
|
25
|
-
"name": "oauth-sign",
|
26
32
|
"raw": "oauth-sign@~0.8.1",
|
27
|
-
"rawSpec": "~0.8.1",
|
28
33
|
"scope": null,
|
34
|
+
"escapedName": "oauth-sign",
|
35
|
+
"name": "oauth-sign",
|
36
|
+
"rawSpec": "~0.8.1",
|
29
37
|
"spec": ">=0.8.1 <0.9.0",
|
30
38
|
"type": "range"
|
31
39
|
},
|
@@ -38,8 +46,8 @@
|
|
38
46
|
"_spec": "oauth-sign@~0.8.1",
|
39
47
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/request",
|
40
48
|
"author": {
|
41
|
-
"email": "mikeal.rogers@gmail.com",
|
42
49
|
"name": "Mikeal Rogers",
|
50
|
+
"email": "mikeal.rogers@gmail.com",
|
43
51
|
"url": "http://www.futurealoof.com"
|
44
52
|
},
|
45
53
|
"bugs": {
|
@@ -1,14 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "object-assign@^4.1.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "object-assign",
|
8
|
+
"name": "object-assign",
|
9
|
+
"rawSpec": "^4.1.0",
|
10
|
+
"spec": ">=4.1.0 <5.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/gauge"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "object-assign@>=4.1.0 <5.0.0",
|
9
17
|
"_id": "object-assign@4.1.0",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/object-assign",
|
13
20
|
"_nodeVersion": "4.1.0",
|
14
21
|
"_npmOperationalInternal": {
|
@@ -16,16 +23,17 @@
|
|
16
23
|
"tmp": "tmp/object-assign-4.1.0.tgz_1462212593641_0.3332549517508596"
|
17
24
|
},
|
18
25
|
"_npmUser": {
|
19
|
-
"
|
20
|
-
"
|
26
|
+
"name": "spicyj",
|
27
|
+
"email": "ben@benalpert.com"
|
21
28
|
},
|
22
29
|
"_npmVersion": "2.14.19",
|
23
30
|
"_phantomChildren": {},
|
24
31
|
"_requested": {
|
25
|
-
"name": "object-assign",
|
26
32
|
"raw": "object-assign@^4.1.0",
|
27
|
-
"rawSpec": "^4.1.0",
|
28
33
|
"scope": null,
|
34
|
+
"escapedName": "object-assign",
|
35
|
+
"name": "object-assign",
|
36
|
+
"rawSpec": "^4.1.0",
|
29
37
|
"spec": ">=4.1.0 <5.0.0",
|
30
38
|
"type": "range"
|
31
39
|
},
|
@@ -38,8 +46,8 @@
|
|
38
46
|
"_spec": "object-assign@^4.1.0",
|
39
47
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/gauge",
|
40
48
|
"author": {
|
41
|
-
"email": "sindresorhus@gmail.com",
|
42
49
|
"name": "Sindre Sorhus",
|
50
|
+
"email": "sindresorhus@gmail.com",
|
43
51
|
"url": "sindresorhus.com"
|
44
52
|
},
|
45
53
|
"bugs": {
|
@@ -67,18 +75,18 @@
|
|
67
75
|
"gitHead": "72fe21c86911758f3342fdf41c2a57860d5829bc",
|
68
76
|
"homepage": "https://github.com/sindresorhus/object-assign#readme",
|
69
77
|
"keywords": [
|
78
|
+
"object",
|
70
79
|
"assign",
|
71
|
-
"browser",
|
72
|
-
"ecmascript",
|
73
|
-
"es2015",
|
74
80
|
"extend",
|
81
|
+
"properties",
|
82
|
+
"es2015",
|
83
|
+
"ecmascript",
|
75
84
|
"harmony",
|
76
|
-
"object",
|
77
|
-
"polyfill",
|
78
85
|
"ponyfill",
|
79
86
|
"prollyfill",
|
80
|
-
"
|
81
|
-
"shim"
|
87
|
+
"polyfill",
|
88
|
+
"shim",
|
89
|
+
"browser"
|
82
90
|
],
|
83
91
|
"license": "MIT",
|
84
92
|
"maintainers": [
|
@@ -49,3 +49,31 @@ function load (cb) {
|
|
49
49
|
})
|
50
50
|
}
|
51
51
|
```
|
52
|
+
|
53
|
+
## `once.strict(func)`
|
54
|
+
|
55
|
+
Throw an error if the function is called twice.
|
56
|
+
|
57
|
+
Some functions are expected to be called only once. Using `once` for them would
|
58
|
+
potentially hide logical errors.
|
59
|
+
|
60
|
+
In the example below, the `greet` function has to call the callback only once:
|
61
|
+
|
62
|
+
```javascript
|
63
|
+
function greet (name, cb) {
|
64
|
+
// return is missing from the if statement
|
65
|
+
// when no name is passed, the callback is called twice
|
66
|
+
if (!name) cb('Hello anonymous')
|
67
|
+
cb('Hello ' + name)
|
68
|
+
}
|
69
|
+
|
70
|
+
function log (msg) {
|
71
|
+
console.log(msg)
|
72
|
+
}
|
73
|
+
|
74
|
+
// this will print 'Hello anonymous' but the logical error will be missed
|
75
|
+
greet(null, once(msg))
|
76
|
+
|
77
|
+
// once.strict will print 'Hello anonymous' and throw an error when the callback will be called the second time
|
78
|
+
greet(null, once.strict(msg))
|
79
|
+
```
|
@@ -1,5 +1,6 @@
|
|
1
1
|
var wrappy = require('wrappy')
|
2
2
|
module.exports = wrappy(once)
|
3
|
+
module.exports.strict = wrappy(onceStrict)
|
3
4
|
|
4
5
|
once.proto = once(function () {
|
5
6
|
Object.defineProperty(Function.prototype, 'once', {
|
@@ -8,6 +9,13 @@ once.proto = once(function () {
|
|
8
9
|
},
|
9
10
|
configurable: true
|
10
11
|
})
|
12
|
+
|
13
|
+
Object.defineProperty(Function.prototype, 'onceStrict', {
|
14
|
+
value: function () {
|
15
|
+
return onceStrict(this)
|
16
|
+
},
|
17
|
+
configurable: true
|
18
|
+
})
|
11
19
|
})
|
12
20
|
|
13
21
|
function once (fn) {
|
@@ -19,3 +27,16 @@ function once (fn) {
|
|
19
27
|
f.called = false
|
20
28
|
return f
|
21
29
|
}
|
30
|
+
|
31
|
+
function onceStrict (fn) {
|
32
|
+
var f = function () {
|
33
|
+
if (f.called)
|
34
|
+
throw new Error(f.onceError)
|
35
|
+
f.called = true
|
36
|
+
return f.value = fn.apply(this, arguments)
|
37
|
+
}
|
38
|
+
var name = fn.name || 'Function wrapped with `once`'
|
39
|
+
f.onceError = name + " shouldn't be called more than once"
|
40
|
+
f.called = false
|
41
|
+
return f
|
42
|
+
}
|
@@ -1,43 +1,54 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "once@^1.3.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "once",
|
8
|
+
"name": "once",
|
9
|
+
"rawSpec": "^1.3.0",
|
10
|
+
"spec": ">=1.3.0 <2.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
5
13
|
"/Users/eshanker/Code/fsevents/node_modules/glob"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "once@>=1.3.0 <2.0.0",
|
9
|
-
"_id": "once@1.
|
17
|
+
"_id": "once@1.4.0",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/once",
|
13
|
-
"_nodeVersion": "
|
20
|
+
"_nodeVersion": "6.5.0",
|
21
|
+
"_npmOperationalInternal": {
|
22
|
+
"host": "packages-12-west.internal.npmjs.com",
|
23
|
+
"tmp": "tmp/once-1.4.0.tgz_1473196269128_0.537820661207661"
|
24
|
+
},
|
14
25
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
26
|
+
"name": "isaacs",
|
27
|
+
"email": "i@izs.me"
|
17
28
|
},
|
18
|
-
"_npmVersion": "3.
|
29
|
+
"_npmVersion": "3.10.7",
|
19
30
|
"_phantomChildren": {},
|
20
31
|
"_requested": {
|
21
|
-
"name": "once",
|
22
32
|
"raw": "once@^1.3.0",
|
23
|
-
"rawSpec": "^1.3.0",
|
24
33
|
"scope": null,
|
34
|
+
"escapedName": "once",
|
35
|
+
"name": "once",
|
36
|
+
"rawSpec": "^1.3.0",
|
25
37
|
"spec": ">=1.3.0 <2.0.0",
|
26
38
|
"type": "range"
|
27
39
|
},
|
28
40
|
"_requiredBy": [
|
29
41
|
"/glob",
|
30
|
-
"/inflight"
|
31
|
-
"/tar-pack"
|
42
|
+
"/inflight"
|
32
43
|
],
|
33
|
-
"_resolved": "https://registry.npmjs.org/once/-/once-1.
|
34
|
-
"_shasum": "
|
44
|
+
"_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
45
|
+
"_shasum": "583b1aa775961d4b113ac17d9c50baef9dd76bd1",
|
35
46
|
"_shrinkwrap": null,
|
36
47
|
"_spec": "once@^1.3.0",
|
37
48
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/glob",
|
38
49
|
"author": {
|
39
|
-
"email": "i@izs.me",
|
40
50
|
"name": "Isaac Z. Schlueter",
|
51
|
+
"email": "i@izs.me",
|
41
52
|
"url": "http://blog.izs.me/"
|
42
53
|
},
|
43
54
|
"bugs": {
|
@@ -48,23 +59,23 @@
|
|
48
59
|
},
|
49
60
|
"description": "Run a function exactly one time",
|
50
61
|
"devDependencies": {
|
51
|
-
"tap": "^
|
62
|
+
"tap": "^7.0.1"
|
52
63
|
},
|
53
64
|
"directories": {
|
54
65
|
"test": "test"
|
55
66
|
},
|
56
67
|
"dist": {
|
57
|
-
"shasum": "
|
58
|
-
"tarball": "https://registry.npmjs.org/once/-/once-1.
|
68
|
+
"shasum": "583b1aa775961d4b113ac17d9c50baef9dd76bd1",
|
69
|
+
"tarball": "https://registry.npmjs.org/once/-/once-1.4.0.tgz"
|
59
70
|
},
|
60
71
|
"files": [
|
61
72
|
"once.js"
|
62
73
|
],
|
63
|
-
"gitHead": "
|
74
|
+
"gitHead": "0e614d9f5a7e6f0305c625f6b581f6d80b33b8a6",
|
64
75
|
"homepage": "https://github.com/isaacs/once#readme",
|
65
76
|
"keywords": [
|
66
|
-
"function",
|
67
77
|
"once",
|
78
|
+
"function",
|
68
79
|
"one",
|
69
80
|
"single"
|
70
81
|
],
|
@@ -86,5 +97,5 @@
|
|
86
97
|
"scripts": {
|
87
98
|
"test": "tap test/*.js"
|
88
99
|
},
|
89
|
-
"version": "1.
|
100
|
+
"version": "1.4.0"
|
90
101
|
}
|
@@ -2,18 +2,18 @@
|
|
2
2
|
|
3
3
|
function posix(path) {
|
4
4
|
return path.charAt(0) === '/';
|
5
|
-
}
|
5
|
+
}
|
6
6
|
|
7
7
|
function win32(path) {
|
8
|
-
// https://github.com/
|
8
|
+
// https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56
|
9
9
|
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
10
10
|
var result = splitDeviceRe.exec(path);
|
11
11
|
var device = result[1] || '';
|
12
|
-
var isUnc =
|
12
|
+
var isUnc = Boolean(device && device.charAt(1) !== ':');
|
13
13
|
|
14
14
|
// UNC paths are always absolute
|
15
|
-
return
|
16
|
-
}
|
15
|
+
return Boolean(result[2] || isUnc);
|
16
|
+
}
|
17
17
|
|
18
18
|
module.exports = process.platform === 'win32' ? win32 : posix;
|
19
19
|
module.exports.posix = posix;
|
@@ -1,41 +1,53 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
|
4
|
+
{
|
5
|
+
"raw": "path-is-absolute@^1.0.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "path-is-absolute",
|
8
|
+
"name": "path-is-absolute",
|
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/glob"
|
6
14
|
]
|
7
15
|
],
|
8
16
|
"_from": "path-is-absolute@>=1.0.0 <2.0.0",
|
9
|
-
"_id": "path-is-absolute@1.0.
|
17
|
+
"_id": "path-is-absolute@1.0.1",
|
10
18
|
"_inCache": true,
|
11
|
-
"_installable": true,
|
12
19
|
"_location": "/path-is-absolute",
|
13
|
-
"_nodeVersion": "
|
20
|
+
"_nodeVersion": "6.6.0",
|
21
|
+
"_npmOperationalInternal": {
|
22
|
+
"host": "packages-12-west.internal.npmjs.com",
|
23
|
+
"tmp": "tmp/path-is-absolute-1.0.1.tgz_1475210523565_0.9876507974695414"
|
24
|
+
},
|
14
25
|
"_npmUser": {
|
15
|
-
"
|
16
|
-
"
|
26
|
+
"name": "sindresorhus",
|
27
|
+
"email": "sindresorhus@gmail.com"
|
17
28
|
},
|
18
|
-
"_npmVersion": "
|
29
|
+
"_npmVersion": "3.10.3",
|
19
30
|
"_phantomChildren": {},
|
20
31
|
"_requested": {
|
21
|
-
"name": "path-is-absolute",
|
22
32
|
"raw": "path-is-absolute@^1.0.0",
|
23
|
-
"rawSpec": "^1.0.0",
|
24
33
|
"scope": null,
|
34
|
+
"escapedName": "path-is-absolute",
|
35
|
+
"name": "path-is-absolute",
|
36
|
+
"rawSpec": "^1.0.0",
|
25
37
|
"spec": ">=1.0.0 <2.0.0",
|
26
38
|
"type": "range"
|
27
39
|
},
|
28
40
|
"_requiredBy": [
|
29
41
|
"/glob"
|
30
42
|
],
|
31
|
-
"_resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.
|
32
|
-
"_shasum": "
|
43
|
+
"_resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
44
|
+
"_shasum": "174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f",
|
33
45
|
"_shrinkwrap": null,
|
34
46
|
"_spec": "path-is-absolute@^1.0.0",
|
35
47
|
"_where": "/Users/eshanker/Code/fsevents/node_modules/glob",
|
36
48
|
"author": {
|
37
|
-
"email": "sindresorhus@gmail.com",
|
38
49
|
"name": "Sindre Sorhus",
|
50
|
+
"email": "sindresorhus@gmail.com",
|
39
51
|
"url": "sindresorhus.com"
|
40
52
|
},
|
41
53
|
"bugs": {
|
@@ -43,11 +55,13 @@
|
|
43
55
|
},
|
44
56
|
"dependencies": {},
|
45
57
|
"description": "Node.js 0.12 path.isAbsolute() ponyfill",
|
46
|
-
"devDependencies": {
|
58
|
+
"devDependencies": {
|
59
|
+
"xo": "^0.16.0"
|
60
|
+
},
|
47
61
|
"directories": {},
|
48
62
|
"dist": {
|
49
|
-
"shasum": "
|
50
|
-
"tarball": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.
|
63
|
+
"shasum": "174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f",
|
64
|
+
"tarball": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz"
|
51
65
|
},
|
52
66
|
"engines": {
|
53
67
|
"node": ">=0.10.0"
|
@@ -55,26 +69,26 @@
|
|
55
69
|
"files": [
|
56
70
|
"index.js"
|
57
71
|
],
|
58
|
-
"gitHead": "
|
59
|
-
"homepage": "https://github.com/sindresorhus/path-is-absolute",
|
72
|
+
"gitHead": "edc91d348b21dac2ab65ea2fbec2868e2eff5eb6",
|
73
|
+
"homepage": "https://github.com/sindresorhus/path-is-absolute#readme",
|
60
74
|
"keywords": [
|
75
|
+
"path",
|
76
|
+
"paths",
|
77
|
+
"file",
|
78
|
+
"dir",
|
61
79
|
"absolute",
|
80
|
+
"isabsolute",
|
81
|
+
"is-absolute",
|
62
82
|
"built-in",
|
63
|
-
"
|
83
|
+
"util",
|
84
|
+
"utils",
|
64
85
|
"core",
|
65
|
-
"detect",
|
66
|
-
"dir",
|
67
|
-
"file",
|
68
|
-
"is",
|
69
|
-
"is-absolute",
|
70
|
-
"isabsolute",
|
71
|
-
"path",
|
72
|
-
"paths",
|
73
|
-
"polyfill",
|
74
86
|
"ponyfill",
|
87
|
+
"polyfill",
|
75
88
|
"shim",
|
76
|
-
"
|
77
|
-
"
|
89
|
+
"is",
|
90
|
+
"detect",
|
91
|
+
"check"
|
78
92
|
],
|
79
93
|
"license": "MIT",
|
80
94
|
"maintainers": [
|
@@ -91,7 +105,7 @@
|
|
91
105
|
"url": "git+https://github.com/sindresorhus/path-is-absolute.git"
|
92
106
|
},
|
93
107
|
"scripts": {
|
94
|
-
"test": "node test.js"
|
108
|
+
"test": "xo && node test.js"
|
95
109
|
},
|
96
|
-
"version": "1.0.
|
110
|
+
"version": "1.0.1"
|
97
111
|
}
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# path-is-absolute [](https://travis-ci.org/sindresorhus/path-is-absolute)
|
2
2
|
|
3
|
-
> Node.js 0.12 [`path.isAbsolute()`](http://nodejs.org/api/path.html#path_path_isabsolute_path) ponyfill
|
4
|
-
|
5
|
-
> Ponyfill: A polyfill that doesn't overwrite the native method
|
3
|
+
> Node.js 0.12 [`path.isAbsolute()`](http://nodejs.org/api/path.html#path_path_isabsolute_path) [ponyfill](https://ponyfill.com)
|
6
4
|
|
7
5
|
|
8
6
|
## Install
|
@@ -15,19 +13,29 @@ $ npm install --save path-is-absolute
|
|
15
13
|
## Usage
|
16
14
|
|
17
15
|
```js
|
18
|
-
|
16
|
+
const pathIsAbsolute = require('path-is-absolute');
|
19
17
|
|
20
|
-
// Linux
|
18
|
+
// Running on Linux
|
21
19
|
pathIsAbsolute('/home/foo');
|
22
20
|
//=> true
|
21
|
+
pathIsAbsolute('C:/Users/foo');
|
22
|
+
//=> false
|
23
23
|
|
24
|
-
// Windows
|
25
|
-
pathIsAbsolute('C:/Users/');
|
24
|
+
// Running on Windows
|
25
|
+
pathIsAbsolute('C:/Users/foo');
|
26
26
|
//=> true
|
27
|
+
pathIsAbsolute('/home/foo');
|
28
|
+
//=> false
|
27
29
|
|
28
|
-
//
|
30
|
+
// Running on any OS
|
29
31
|
pathIsAbsolute.posix('/home/foo');
|
30
32
|
//=> true
|
33
|
+
pathIsAbsolute.posix('C:/Users/foo');
|
34
|
+
//=> false
|
35
|
+
pathIsAbsolute.win32('C:/Users/foo');
|
36
|
+
//=> true
|
37
|
+
pathIsAbsolute.win32('/home/foo');
|
38
|
+
//=> false
|
31
39
|
```
|
32
40
|
|
33
41
|
|
@@ -39,13 +47,13 @@ See the [`path.isAbsolute()` docs](http://nodejs.org/api/path.html#path_path_isa
|
|
39
47
|
|
40
48
|
### pathIsAbsolute.posix(path)
|
41
49
|
|
42
|
-
|
50
|
+
POSIX specific version.
|
43
51
|
|
44
52
|
### pathIsAbsolute.win32(path)
|
45
53
|
|
46
|
-
|
54
|
+
Windows specific version.
|
47
55
|
|
48
56
|
|
49
57
|
## License
|
50
58
|
|
51
|
-
MIT © [Sindre Sorhus](
|
59
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|