fsevents 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fsevents might be problematic. Click here for more details.
- package/node_modules/ansi/History.md +7 -0
- package/node_modules/ansi/LICENSE +24 -0
- package/node_modules/ansi/lib/ansi.js +2 -2
- package/node_modules/ansi/package.json +15 -10
- package/node_modules/ansi-regex/package.json +1 -0
- package/node_modules/ansi-styles/package.json +1 -0
- package/node_modules/are-we-there-yet/.npmignore +2 -0
- package/node_modules/are-we-there-yet/index.js +20 -18
- package/node_modules/are-we-there-yet/package.json +15 -13
- package/node_modules/asn1/package.json +3 -1
- package/node_modules/assert-plus/README.md +50 -21
- package/node_modules/assert-plus/assert.js +168 -207
- package/node_modules/assert-plus/package.json +55 -15
- package/node_modules/async/README.md +86 -4
- package/node_modules/async/dist/async.js +4 -3
- package/node_modules/async/dist/async.min.js +1 -1
- package/node_modules/async/lib/async.js +4 -3
- package/node_modules/async/package.json +10 -10
- package/node_modules/aws-sign2/package.json +1 -0
- package/node_modules/aws4/.npmignore +3 -0
- package/node_modules/aws4/.tern-port +1 -0
- package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → aws4}/.travis.yml +2 -0
- package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md → aws4/LICENSE} +1 -3
- package/node_modules/aws4/README.md +510 -0
- package/node_modules/aws4/aws4.js +313 -0
- package/node_modules/aws4/example.js +372 -0
- package/node_modules/aws4/node_modules/lru-cache/.npmignore +1 -0
- package/node_modules/aws4/node_modules/lru-cache/.travis.yml +8 -0
- package/node_modules/aws4/node_modules/lru-cache/CONTRIBUTORS +14 -0
- package/node_modules/aws4/node_modules/lru-cache/README.md +137 -0
- package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +334 -0
- package/node_modules/aws4/node_modules/lru-cache/package.json +66 -0
- package/node_modules/aws4/node_modules/lru-cache/test/basic.js +396 -0
- package/node_modules/aws4/node_modules/lru-cache/test/foreach.js +120 -0
- package/node_modules/aws4/node_modules/lru-cache/test/memory-leak.js +51 -0
- package/node_modules/aws4/node_modules/lru-cache/test/serialize.js +216 -0
- package/node_modules/aws4/package.json +113 -0
- package/node_modules/bl/.travis.yml +5 -6
- package/node_modules/bl/bl.js +5 -0
- package/node_modules/bl/package.json +16 -13
- package/node_modules/bl/test/test.js +554 -6
- package/node_modules/block-stream/package.json +1 -0
- package/node_modules/boom/package.json +1 -0
- package/node_modules/caseless/package.json +1 -0
- package/node_modules/chalk/package.json +1 -0
- package/node_modules/combined-stream/package.json +1 -0
- package/node_modules/commander/package.json +1 -0
- package/node_modules/core-util-is/package.json +2 -2
- package/node_modules/cryptiles/package.json +1 -0
- package/node_modules/dashdash/README.md +70 -7
- package/node_modules/dashdash/etc/dashdash.bash_completion.in +388 -0
- package/node_modules/dashdash/lib/dashdash.js +202 -2
- package/node_modules/dashdash/package.json +12 -9
- package/node_modules/debug/.jshintrc +3 -0
- package/node_modules/debug/.npmignore +6 -0
- package/node_modules/debug/History.md +195 -0
- package/node_modules/debug/Makefile +36 -0
- package/node_modules/debug/Readme.md +86 -13
- package/node_modules/debug/bower.json +28 -0
- package/node_modules/debug/browser.js +168 -0
- package/node_modules/debug/component.json +19 -0
- package/node_modules/debug/debug.js +132 -72
- package/node_modules/debug/node.js +209 -0
- package/node_modules/debug/package.json +32 -22
- package/node_modules/deep-extend/README.md +51 -50
- package/node_modules/deep-extend/package.json +14 -16
- package/node_modules/delayed-stream/package.json +1 -0
- package/node_modules/delegates/History.md +6 -0
- package/node_modules/delegates/License +20 -0
- package/node_modules/delegates/package.json +17 -13
- package/node_modules/ecc-jsbn/package.json +3 -1
- package/node_modules/escape-string-regexp/package.json +2 -2
- package/node_modules/extend/package.json +1 -0
- package/node_modules/extsprintf/package.json +4 -2
- package/node_modules/forever-agent/package.json +1 -0
- package/node_modules/form-data/package.json +1 -0
- package/node_modules/fstream/package.json +1 -0
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +1 -0
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +1 -0
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +1 -0
- package/node_modules/fstream-ignore/node_modules/minimatch/package.json +1 -0
- package/node_modules/fstream-ignore/package.json +3 -1
- package/node_modules/gauge/package.json +14 -12
- package/node_modules/gauge/progress-bar.js +4 -5
- package/node_modules/gauge/test/progress-bar.js +1 -1
- package/node_modules/generate-function/package.json +1 -0
- package/node_modules/generate-object-property/package.json +1 -0
- package/node_modules/graceful-fs/README.md +17 -0
- package/node_modules/graceful-fs/graceful-fs.js +2 -0
- package/node_modules/graceful-fs/package.json +16 -11
- package/node_modules/graceful-readlink/package.json +1 -0
- package/node_modules/har-validator/README.md +45 -122
- package/node_modules/har-validator/package.json +16 -16
- package/node_modules/has-ansi/package.json +1 -0
- package/node_modules/has-unicode/README.md +6 -3
- package/node_modules/has-unicode/index.js +7 -3
- package/node_modules/has-unicode/package.json +15 -13
- package/node_modules/has-unicode/test/index.js +1 -1
- package/node_modules/hawk/README.md +634 -634
- package/node_modules/hawk/bower.json +24 -24
- package/node_modules/hawk/component.json +18 -18
- package/node_modules/hawk/dist/client.js +343 -340
- package/node_modules/hawk/example/usage.js +78 -78
- package/node_modules/hawk/lib/browser.js +637 -637
- package/node_modules/hawk/lib/client.js +369 -369
- package/node_modules/hawk/lib/crypto.js +126 -126
- package/node_modules/hawk/lib/index.js +15 -15
- package/node_modules/hawk/lib/server.js +548 -540
- package/node_modules/hawk/lib/utils.js +184 -164
- package/node_modules/hawk/package.json +9 -8
- package/node_modules/hawk/test/browser.js +1492 -1492
- package/node_modules/hawk/test/client.js +440 -440
- package/node_modules/hawk/test/crypto.js +70 -70
- package/node_modules/hawk/test/index.js +378 -378
- package/node_modules/hawk/test/readme.js +95 -95
- package/node_modules/hawk/test/server.js +1329 -1302
- package/node_modules/hawk/test/uri.js +838 -838
- package/node_modules/hawk/test/utils.js +149 -121
- package/node_modules/hoek/package.json +1 -0
- package/node_modules/http-signature/CHANGES.md +7 -0
- package/node_modules/http-signature/http_signing.md +71 -3
- package/node_modules/http-signature/lib/signer.js +5 -0
- package/node_modules/http-signature/package.json +13 -11
- package/node_modules/ini/package.json +3 -1
- package/node_modules/is-my-json-valid/formats.js +1 -1
- package/node_modules/is-my-json-valid/package.json +11 -10
- package/node_modules/is-property/package.json +1 -0
- package/node_modules/is-typedarray/package.json +3 -1
- package/node_modules/isarray/package.json +2 -2
- package/node_modules/isstream/package.json +1 -0
- package/node_modules/jodid25519/package.json +3 -1
- package/node_modules/jsbn/package.json +3 -1
- package/node_modules/json-schema/package.json +2 -1
- package/node_modules/json-stringify-safe/package.json +1 -0
- package/node_modules/jsonpointer/package.json +1 -0
- package/node_modules/jsprim/package.json +3 -1
- package/node_modules/lodash._basetostring/package.json +4 -4
- package/node_modules/lodash._createpadding/package.json +3 -2
- package/node_modules/lodash._root/LICENSE +22 -0
- package/node_modules/lodash._root/README.md +18 -0
- package/node_modules/lodash._root/index.js +53 -0
- package/node_modules/lodash._root/package.json +77 -0
- package/node_modules/lodash.pad/LICENSE +2 -2
- package/node_modules/lodash.pad/README.md +4 -6
- package/node_modules/lodash.pad/index.js +347 -15
- package/node_modules/lodash.pad/package.json +20 -34
- package/node_modules/lodash.padleft/package.json +3 -1
- package/node_modules/lodash.padright/package.json +3 -1
- package/node_modules/lodash.repeat/LICENSE +2 -2
- package/node_modules/lodash.repeat/README.md +4 -6
- package/node_modules/lodash.repeat/index.js +262 -11
- package/node_modules/lodash.repeat/package.json +21 -34
- package/node_modules/mime-db/package.json +2 -2
- package/node_modules/mime-types/package.json +2 -2
- package/node_modules/ms/.npmignore +5 -0
- package/node_modules/{deep-extend → ms}/LICENSE +2 -2
- package/node_modules/ms/README.md +35 -0
- package/node_modules/ms/index.js +125 -0
- package/node_modules/ms/package.json +56 -0
- package/node_modules/node-pre-gyp/CHANGELOG.md +8 -0
- package/node_modules/node-pre-gyp/LICENSE +27 -0
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +36 -0
- package/node_modules/node-pre-gyp/package.json +23 -22
- package/node_modules/node-uuid/package.json +1 -0
- package/node_modules/npmlog/package.json +18 -16
- package/node_modules/oauth-sign/index.js +2 -0
- package/node_modules/oauth-sign/package.json +10 -9
- package/node_modules/once/README.md +18 -0
- package/node_modules/once/once.js +8 -6
- package/node_modules/once/package.json +20 -12
- package/node_modules/pinkie/index.js +3 -3
- package/node_modules/pinkie/package.json +10 -9
- package/node_modules/pinkie/readme.md +1 -1
- package/node_modules/pinkie-promise/package.json +1 -0
- package/node_modules/process-nextick-args/package.json +2 -2
- package/node_modules/qs/.eslintrc +17 -0
- package/node_modules/qs/.travis.yml +66 -5
- package/node_modules/qs/CHANGELOG.md +86 -75
- package/node_modules/qs/README.md +85 -81
- package/node_modules/qs/bower.json +1 -1
- package/node_modules/qs/component.json +1 -1
- package/node_modules/qs/dist/qs.js +108 -177
- package/node_modules/qs/lib/index.js +1 -7
- package/node_modules/qs/lib/parse.js +26 -49
- package/node_modules/qs/lib/stringify.js +22 -46
- package/node_modules/qs/lib/utils.js +45 -73
- package/node_modules/qs/package.json +51 -28
- package/node_modules/qs/test/index.js +5 -0
- package/node_modules/qs/test/parse.js +236 -321
- package/node_modules/qs/test/stringify.js +139 -197
- package/node_modules/qs/test/utils.js +6 -25
- package/node_modules/rc/node_modules/minimist/package.json +1 -0
- package/node_modules/rc/package.json +1 -0
- package/node_modules/readable-stream/package.json +1 -0
- package/node_modules/request/CHANGELOG.md +16 -1
- package/node_modules/request/README.md +1 -1
- package/node_modules/request/lib/har.js +3 -2
- package/node_modules/request/lib/multipart.js +3 -0
- package/node_modules/request/lib/tunnel.js +0 -2
- package/node_modules/request/package.json +20 -17
- package/node_modules/request/request.js +50 -26
- package/node_modules/rimraf/README.md +1 -1
- package/node_modules/rimraf/node_modules/glob/README.md +2 -2
- package/node_modules/rimraf/node_modules/glob/glob.js +14 -1
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +2 -1
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/package.json +11 -11
- package/node_modules/rimraf/package.json +13 -12
- package/node_modules/semver/package.json +3 -1
- package/node_modules/sntp/package.json +1 -0
- package/node_modules/sshpk/.npmignore +1 -0
- package/node_modules/sshpk/bin/sshpk-sign +176 -0
- package/node_modules/sshpk/bin/sshpk-verify +166 -0
- package/node_modules/sshpk/lib/ed-compat.js +2 -0
- package/node_modules/sshpk/lib/key.js +6 -0
- package/node_modules/sshpk/man/man1/sshpk-conv.1 +135 -0
- package/node_modules/sshpk/man/man1/sshpk-sign.1 +81 -0
- package/node_modules/sshpk/man/man1/sshpk-verify.1 +68 -0
- package/node_modules/sshpk/package.json +18 -9
- package/node_modules/string_decoder/package.json +2 -2
- package/node_modules/stringstream/package.json +1 -0
- package/node_modules/strip-ansi/package.json +1 -0
- package/node_modules/strip-json-comments/package.json +1 -0
- package/node_modules/supports-color/package.json +1 -0
- package/node_modules/tar/package.json +1 -0
- package/node_modules/tar-pack/README.md +2 -2
- package/node_modules/tar-pack/package.json +25 -26
- package/node_modules/tough-cookie/package.json +1 -0
- package/node_modules/tunnel-agent/package.json +1 -0
- package/node_modules/tweetnacl/README.md +1 -1
- package/node_modules/tweetnacl/package.json +13 -11
- package/node_modules/uid-number/package.json +14 -13
- package/node_modules/uid-number/uid-number.js +9 -4
- package/node_modules/util-deprecate/package.json +2 -2
- package/node_modules/verror/package.json +1 -0
- package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy → wrappy}/package.json +3 -2
- package/node_modules/xtend/package.json +1 -0
- package/package.json +2 -2
- package/node_modules/are-we-there-yet/README.md~ +0 -183
- package/node_modules/bl/test/basic-test.js +0 -541
- package/node_modules/bl/test/sauce.js +0 -38
- package/node_modules/debug/index.js +0 -5
- package/node_modules/debug/lib/debug.js +0 -147
- package/node_modules/deep-extend/test/index.spec.js +0 -220
- package/node_modules/deep-extend/test/mocha.opts +0 -1
- package/node_modules/gauge/README.md~ +0 -161
- package/node_modules/has-unicode/README.md~ +0 -4
- package/node_modules/once/LICENSE +0 -27
- package/node_modules/once/test/once.js +0 -18
- package/node_modules/sshpk/node_modules/assert-plus/README.md +0 -155
- package/node_modules/sshpk/node_modules/assert-plus/assert.js +0 -206
- package/node_modules/sshpk/node_modules/assert-plus/package.json +0 -88
- package/node_modules/tar-pack/node_modules/rimraf/README.md +0 -43
- package/node_modules/tar-pack/node_modules/rimraf/bin.js +0 -40
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/README.md +0 -359
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/common.js +0 -226
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/glob.js +0 -752
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +0 -17
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/README.md +0 -37
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/inflight.js +0 -44
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +0 -58
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +0 -67
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js +0 -97
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +0 -16
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +0 -42
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +0 -1
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +0 -58
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +0 -25
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -216
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -912
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -3
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -122
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -191
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -89
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -50
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -79
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +0 -18
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -62
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -6
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -13
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -90
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -39
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -81
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +0 -66
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/README.md +0 -51
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +0 -15
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -36
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -51
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/once.js +0 -21
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +0 -70
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/index.js +0 -20
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json +0 -78
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/readme.md +0 -51
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/package.json +0 -79
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/sync.js +0 -460
- package/node_modules/tar-pack/node_modules/rimraf/package.json +0 -69
- package/node_modules/tar-pack/node_modules/rimraf/rimraf.js +0 -333
- package/node_modules/uid-number/LICENCE +0 -25
- /package/node_modules/{sshpk/node_modules/assert-plus → assert-plus}/AUTHORS +0 -0
- /package/node_modules/{sshpk/node_modules/assert-plus → assert-plus}/CHANGES.md +0 -0
- /package/node_modules/{tar-pack/node_modules/rimraf → aws4/node_modules/lru-cache}/LICENSE +0 -0
- /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight → uid-number}/LICENSE +0 -0
- /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/LICENSE +0 -0
- /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/README.md +0 -0
- /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/test/basic.js +0 -0
- /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/wrappy.js +0 -0
@@ -1,16 +1,266 @@
|
|
1
1
|
/**
|
2
|
-
* lodash 3.0
|
3
|
-
* Build: `lodash
|
4
|
-
* Copyright 2012-
|
2
|
+
* lodash 3.2.0 (Custom Build) <https://lodash.com/>
|
3
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
4
|
+
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
5
5
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
6
|
-
* Copyright 2009-
|
6
|
+
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
7
7
|
* Available under MIT license <https://lodash.com/license>
|
8
8
|
*/
|
9
|
-
var
|
9
|
+
var root = require('lodash._root');
|
10
10
|
|
11
|
-
|
12
|
-
var
|
13
|
-
|
11
|
+
/** Used as references for various `Number` constants. */
|
12
|
+
var INFINITY = 1 / 0,
|
13
|
+
MAX_SAFE_INTEGER = 9007199254740991,
|
14
|
+
MAX_INTEGER = 1.7976931348623157e+308,
|
15
|
+
NAN = 0 / 0;
|
16
|
+
|
17
|
+
/** `Object#toString` result references. */
|
18
|
+
var funcTag = '[object Function]',
|
19
|
+
genTag = '[object GeneratorFunction]',
|
20
|
+
symbolTag = '[object Symbol]';
|
21
|
+
|
22
|
+
/** Used to match leading and trailing whitespace. */
|
23
|
+
var reTrim = /^\s+|\s+$/g;
|
24
|
+
|
25
|
+
/** Used to detect bad signed hexadecimal string values. */
|
26
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
27
|
+
|
28
|
+
/** Used to detect binary string values. */
|
29
|
+
var reIsBinary = /^0b[01]+$/i;
|
30
|
+
|
31
|
+
/** Used to detect octal string values. */
|
32
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
33
|
+
|
34
|
+
/** Built-in method references without a dependency on `root`. */
|
35
|
+
var freeParseInt = parseInt;
|
36
|
+
|
37
|
+
/** Used for built-in method references. */
|
38
|
+
var objectProto = Object.prototype;
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
42
|
+
* of values.
|
43
|
+
*/
|
44
|
+
var objectToString = objectProto.toString;
|
45
|
+
|
46
|
+
/** Built-in value references. */
|
47
|
+
var Symbol = root.Symbol;
|
48
|
+
|
49
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
50
|
+
var nativeFloor = Math.floor;
|
51
|
+
|
52
|
+
/** Used to convert symbols to primitives and strings. */
|
53
|
+
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
54
|
+
symbolToString = Symbol ? symbolProto.toString : undefined;
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Checks if `value` is classified as a `Function` object.
|
58
|
+
*
|
59
|
+
* @static
|
60
|
+
* @memberOf _
|
61
|
+
* @category Lang
|
62
|
+
* @param {*} value The value to check.
|
63
|
+
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
64
|
+
* @example
|
65
|
+
*
|
66
|
+
* _.isFunction(_);
|
67
|
+
* // => true
|
68
|
+
*
|
69
|
+
* _.isFunction(/abc/);
|
70
|
+
* // => false
|
71
|
+
*/
|
72
|
+
function isFunction(value) {
|
73
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
74
|
+
// in Safari 8 which returns 'object' for typed array constructors, and
|
75
|
+
// PhantomJS 1.9 which returns 'function' for `NodeList` instances.
|
76
|
+
var tag = isObject(value) ? objectToString.call(value) : '';
|
77
|
+
return tag == funcTag || tag == genTag;
|
78
|
+
}
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
82
|
+
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
83
|
+
*
|
84
|
+
* @static
|
85
|
+
* @memberOf _
|
86
|
+
* @category Lang
|
87
|
+
* @param {*} value The value to check.
|
88
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
89
|
+
* @example
|
90
|
+
*
|
91
|
+
* _.isObject({});
|
92
|
+
* // => true
|
93
|
+
*
|
94
|
+
* _.isObject([1, 2, 3]);
|
95
|
+
* // => true
|
96
|
+
*
|
97
|
+
* _.isObject(_.noop);
|
98
|
+
* // => true
|
99
|
+
*
|
100
|
+
* _.isObject(null);
|
101
|
+
* // => false
|
102
|
+
*/
|
103
|
+
function isObject(value) {
|
104
|
+
var type = typeof value;
|
105
|
+
return !!value && (type == 'object' || type == 'function');
|
106
|
+
}
|
107
|
+
|
108
|
+
/**
|
109
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
110
|
+
* and has a `typeof` result of "object".
|
111
|
+
*
|
112
|
+
* @static
|
113
|
+
* @memberOf _
|
114
|
+
* @category Lang
|
115
|
+
* @param {*} value The value to check.
|
116
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
117
|
+
* @example
|
118
|
+
*
|
119
|
+
* _.isObjectLike({});
|
120
|
+
* // => true
|
121
|
+
*
|
122
|
+
* _.isObjectLike([1, 2, 3]);
|
123
|
+
* // => true
|
124
|
+
*
|
125
|
+
* _.isObjectLike(_.noop);
|
126
|
+
* // => false
|
127
|
+
*
|
128
|
+
* _.isObjectLike(null);
|
129
|
+
* // => false
|
130
|
+
*/
|
131
|
+
function isObjectLike(value) {
|
132
|
+
return !!value && typeof value == 'object';
|
133
|
+
}
|
134
|
+
|
135
|
+
/**
|
136
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
137
|
+
*
|
138
|
+
* @static
|
139
|
+
* @memberOf _
|
140
|
+
* @category Lang
|
141
|
+
* @param {*} value The value to check.
|
142
|
+
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
143
|
+
* @example
|
144
|
+
*
|
145
|
+
* _.isSymbol(Symbol.iterator);
|
146
|
+
* // => true
|
147
|
+
*
|
148
|
+
* _.isSymbol('abc');
|
149
|
+
* // => false
|
150
|
+
*/
|
151
|
+
function isSymbol(value) {
|
152
|
+
return typeof value == 'symbol' ||
|
153
|
+
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
154
|
+
}
|
155
|
+
|
156
|
+
/**
|
157
|
+
* Converts `value` to an integer.
|
158
|
+
*
|
159
|
+
* **Note:** This function is loosely based on [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
|
160
|
+
*
|
161
|
+
* @static
|
162
|
+
* @memberOf _
|
163
|
+
* @category Lang
|
164
|
+
* @param {*} value The value to convert.
|
165
|
+
* @returns {number} Returns the converted integer.
|
166
|
+
* @example
|
167
|
+
*
|
168
|
+
* _.toInteger(3);
|
169
|
+
* // => 3
|
170
|
+
*
|
171
|
+
* _.toInteger(Number.MIN_VALUE);
|
172
|
+
* // => 0
|
173
|
+
*
|
174
|
+
* _.toInteger(Infinity);
|
175
|
+
* // => 1.7976931348623157e+308
|
176
|
+
*
|
177
|
+
* _.toInteger('3');
|
178
|
+
* // => 3
|
179
|
+
*/
|
180
|
+
function toInteger(value) {
|
181
|
+
if (!value) {
|
182
|
+
return value === 0 ? value : 0;
|
183
|
+
}
|
184
|
+
value = toNumber(value);
|
185
|
+
if (value === INFINITY || value === -INFINITY) {
|
186
|
+
var sign = (value < 0 ? -1 : 1);
|
187
|
+
return sign * MAX_INTEGER;
|
188
|
+
}
|
189
|
+
var remainder = value % 1;
|
190
|
+
return value === value ? (remainder ? value - remainder : value) : 0;
|
191
|
+
}
|
192
|
+
|
193
|
+
/**
|
194
|
+
* Converts `value` to a number.
|
195
|
+
*
|
196
|
+
* @static
|
197
|
+
* @memberOf _
|
198
|
+
* @category Lang
|
199
|
+
* @param {*} value The value to process.
|
200
|
+
* @returns {number} Returns the number.
|
201
|
+
* @example
|
202
|
+
*
|
203
|
+
* _.toNumber(3);
|
204
|
+
* // => 3
|
205
|
+
*
|
206
|
+
* _.toNumber(Number.MIN_VALUE);
|
207
|
+
* // => 5e-324
|
208
|
+
*
|
209
|
+
* _.toNumber(Infinity);
|
210
|
+
* // => Infinity
|
211
|
+
*
|
212
|
+
* _.toNumber('3');
|
213
|
+
* // => 3
|
214
|
+
*/
|
215
|
+
function toNumber(value) {
|
216
|
+
if (isObject(value)) {
|
217
|
+
var other = isFunction(value.valueOf) ? value.valueOf() : value;
|
218
|
+
value = isObject(other) ? (other + '') : other;
|
219
|
+
}
|
220
|
+
if (typeof value != 'string') {
|
221
|
+
return value === 0 ? value : +value;
|
222
|
+
}
|
223
|
+
value = value.replace(reTrim, '');
|
224
|
+
var isBinary = reIsBinary.test(value);
|
225
|
+
return (isBinary || reIsOctal.test(value))
|
226
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
227
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
228
|
+
}
|
229
|
+
|
230
|
+
/**
|
231
|
+
* Converts `value` to a string if it's not one. An empty string is returned
|
232
|
+
* for `null` and `undefined` values. The sign of `-0` is preserved.
|
233
|
+
*
|
234
|
+
* @static
|
235
|
+
* @memberOf _
|
236
|
+
* @category Lang
|
237
|
+
* @param {*} value The value to process.
|
238
|
+
* @returns {string} Returns the string.
|
239
|
+
* @example
|
240
|
+
*
|
241
|
+
* _.toString(null);
|
242
|
+
* // => ''
|
243
|
+
*
|
244
|
+
* _.toString(-0);
|
245
|
+
* // => '-0'
|
246
|
+
*
|
247
|
+
* _.toString([1, 2, 3]);
|
248
|
+
* // => '1,2,3'
|
249
|
+
*/
|
250
|
+
function toString(value) {
|
251
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
252
|
+
if (typeof value == 'string') {
|
253
|
+
return value;
|
254
|
+
}
|
255
|
+
if (value == null) {
|
256
|
+
return '';
|
257
|
+
}
|
258
|
+
if (isSymbol(value)) {
|
259
|
+
return Symbol ? symbolToString.call(value) : '';
|
260
|
+
}
|
261
|
+
var result = (value + '');
|
262
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
263
|
+
}
|
14
264
|
|
15
265
|
/**
|
16
266
|
* Repeats the given string `n` times.
|
@@ -33,10 +283,11 @@ var nativeFloor = Math.floor,
|
|
33
283
|
* // => ''
|
34
284
|
*/
|
35
285
|
function repeat(string, n) {
|
286
|
+
string = toString(string);
|
287
|
+
n = toInteger(n);
|
288
|
+
|
36
289
|
var result = '';
|
37
|
-
string
|
38
|
-
n = +n;
|
39
|
-
if (n < 1 || !string || !nativeIsFinite(n)) {
|
290
|
+
if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
|
40
291
|
return result;
|
41
292
|
}
|
42
293
|
// Leverage the exponentiation by squaring algorithm for a faster repeat.
|
@@ -1,19 +1,25 @@
|
|
1
1
|
{
|
2
2
|
"_from": "lodash.repeat@^3.0.0",
|
3
|
-
"_id": "lodash.repeat@3.0
|
3
|
+
"_id": "lodash.repeat@3.2.0",
|
4
4
|
"_location": "/lodash.repeat",
|
5
|
-
"_nodeVersion": "
|
5
|
+
"_nodeVersion": "5.5.0",
|
6
|
+
"_npmOperationalInternal": {
|
7
|
+
"host": "packages-5-east.internal.npmjs.com",
|
8
|
+
"tmp": "tmp/lodash.repeat-3.2.0.tgz_1454898646253_0.0884549324400723"
|
9
|
+
},
|
6
10
|
"_npmUser": {
|
7
11
|
"email": "john.david.dalton@gmail.com",
|
8
12
|
"name": "jdalton"
|
9
13
|
},
|
10
|
-
"_npmVersion": "2.
|
14
|
+
"_npmVersion": "2.14.18",
|
11
15
|
"_phantomChildren": {},
|
12
16
|
"_requiredBy": [
|
13
|
-
"/lodash._createpadding"
|
17
|
+
"/lodash._createpadding",
|
18
|
+
"/lodash.pad"
|
14
19
|
],
|
15
|
-
"_resolved": "https://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.0.
|
16
|
-
"_shasum": "
|
20
|
+
"_resolved": "https://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.2.0.tgz",
|
21
|
+
"_shasum": "dc97e035dd315580342b434e8a068997395fde7b",
|
22
|
+
"_shrinkwrap": null,
|
17
23
|
"author": {
|
18
24
|
"email": "john.david.dalton@gmail.com",
|
19
25
|
"name": "John-David Dalton",
|
@@ -28,20 +34,10 @@
|
|
28
34
|
"email": "john.david.dalton@gmail.com",
|
29
35
|
"url": "http://allyoucanleet.com/"
|
30
36
|
},
|
31
|
-
{
|
32
|
-
"name": "Benjamin Tan",
|
33
|
-
"email": "demoneaux@gmail.com",
|
34
|
-
"url": "https://d10.github.io/"
|
35
|
-
},
|
36
37
|
{
|
37
38
|
"name": "Blaine Bublitz",
|
38
39
|
"email": "blaine@iceddev.com",
|
39
|
-
"url": "
|
40
|
-
},
|
41
|
-
{
|
42
|
-
"name": "Kit Cambridge",
|
43
|
-
"email": "github@kitcambridge.be",
|
44
|
-
"url": "http://kitcambridge.be/"
|
40
|
+
"url": "https://github.com/phated"
|
45
41
|
},
|
46
42
|
{
|
47
43
|
"name": "Mathias Bynens",
|
@@ -50,22 +46,20 @@
|
|
50
46
|
}
|
51
47
|
],
|
52
48
|
"dependencies": {
|
53
|
-
"lodash.
|
49
|
+
"lodash._root": "^3.0.0"
|
54
50
|
},
|
55
|
-
"description": "The
|
51
|
+
"description": "The lodash method `_.repeat` exported as a module.",
|
56
52
|
"devDependencies": {},
|
57
53
|
"directories": {},
|
58
54
|
"dist": {
|
59
|
-
"shasum": "
|
60
|
-
"tarball": "http://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.0.
|
55
|
+
"shasum": "dc97e035dd315580342b434e8a068997395fde7b",
|
56
|
+
"tarball": "http://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.2.0.tgz"
|
61
57
|
},
|
62
58
|
"homepage": "https://lodash.com/",
|
63
59
|
"icon": "https://lodash.com/icon.svg",
|
64
60
|
"keywords": [
|
65
|
-
"lodash",
|
66
61
|
"lodash-modularized",
|
67
|
-
"
|
68
|
-
"util"
|
62
|
+
"repeat"
|
69
63
|
],
|
70
64
|
"license": "MIT",
|
71
65
|
"maintainers": [
|
@@ -73,14 +67,6 @@
|
|
73
67
|
"name": "jdalton",
|
74
68
|
"email": "john.david.dalton@gmail.com"
|
75
69
|
},
|
76
|
-
{
|
77
|
-
"name": "d10",
|
78
|
-
"email": "demoneaux@gmail.com"
|
79
|
-
},
|
80
|
-
{
|
81
|
-
"name": "kitcambridge",
|
82
|
-
"email": "github@kitcambridge.be"
|
83
|
-
},
|
84
70
|
{
|
85
71
|
"name": "mathias",
|
86
72
|
"email": "mathias@qiwi.be"
|
@@ -92,7 +78,8 @@
|
|
92
78
|
],
|
93
79
|
"name": "lodash.repeat",
|
94
80
|
"optionalDependencies": {},
|
95
|
-
"readme": "
|
81
|
+
"readme": "# lodash.repeat v3.2.0\n\nThe [lodash](https://lodash.com/) method `_.repeat` exported as a [Node.js](https://nodejs.org/) module.\n\n## Installation\n\nUsing npm:\n```bash\n$ {sudo -H} npm i -g npm\n$ npm i --save lodash.repeat\n```\n\nIn Node.js:\n```js\nvar repeat = require('lodash.repeat');\n```\n\nSee the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.repeat) for more details.\n",
|
82
|
+
"readmeFilename": "README.md",
|
96
83
|
"repository": {
|
97
84
|
"type": "git",
|
98
85
|
"url": "git+https://github.com/lodash/lodash.git"
|
@@ -100,5 +87,5 @@
|
|
100
87
|
"scripts": {
|
101
88
|
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
|
102
89
|
},
|
103
|
-
"version": "3.0
|
90
|
+
"version": "3.2.0"
|
104
91
|
}
|
@@ -13,6 +13,7 @@
|
|
13
13
|
],
|
14
14
|
"_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.21.0.tgz",
|
15
15
|
"_shasum": "9b5239e3353cf6eb015a00d890261027c36d4bac",
|
16
|
+
"_shrinkwrap": null,
|
16
17
|
"bugs": {
|
17
18
|
"url": "https://github.com/jshttp/mime-db/issues"
|
18
19
|
},
|
@@ -84,8 +85,7 @@
|
|
84
85
|
],
|
85
86
|
"name": "mime-db",
|
86
87
|
"optionalDependencies": {},
|
87
|
-
"readme": "
|
88
|
-
"readmeFilename": "README.md",
|
88
|
+
"readme": "ERROR: No README data found!",
|
89
89
|
"repository": {
|
90
90
|
"type": "git",
|
91
91
|
"url": "git+https://github.com/jshttp/mime-db.git"
|
@@ -14,6 +14,7 @@
|
|
14
14
|
],
|
15
15
|
"_resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.9.tgz",
|
16
16
|
"_shasum": "dfb396764b5fdf75be34b1f4104bc3687fb635f8",
|
17
|
+
"_shrinkwrap": null,
|
17
18
|
"bugs": {
|
18
19
|
"url": "https://github.com/jshttp/mime-types/issues"
|
19
20
|
},
|
@@ -77,8 +78,7 @@
|
|
77
78
|
],
|
78
79
|
"name": "mime-types",
|
79
80
|
"optionalDependencies": {},
|
80
|
-
"readme": "
|
81
|
-
"readmeFilename": "README.md",
|
81
|
+
"readme": "ERROR: No README data found!",
|
82
82
|
"repository": {
|
83
83
|
"type": "git",
|
84
84
|
"url": "git+https://github.com/jshttp/mime-types.git"
|
@@ -1,6 +1,6 @@
|
|
1
|
-
The MIT License
|
1
|
+
(The MIT License)
|
2
2
|
|
3
|
-
Copyright (c)
|
3
|
+
Copyright (c) 2014 Guillermo Rauch <rauchg@gmail.com>
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# ms.js: miliseconds conversion utility
|
2
|
+
|
3
|
+
```js
|
4
|
+
ms('2 days') // 172800000
|
5
|
+
ms('1d') // 86400000
|
6
|
+
ms('10h') // 36000000
|
7
|
+
ms('2.5 hrs') // 9000000
|
8
|
+
ms('2h') // 7200000
|
9
|
+
ms('1m') // 60000
|
10
|
+
ms('5s') // 5000
|
11
|
+
ms('100') // 100
|
12
|
+
```
|
13
|
+
|
14
|
+
```js
|
15
|
+
ms(60000) // "1m"
|
16
|
+
ms(2 * 60000) // "2m"
|
17
|
+
ms(ms('10 hours')) // "10h"
|
18
|
+
```
|
19
|
+
|
20
|
+
```js
|
21
|
+
ms(60000, { long: true }) // "1 minute"
|
22
|
+
ms(2 * 60000, { long: true }) // "2 minutes"
|
23
|
+
ms(ms('10 hours'), { long: true }) // "10 hours"
|
24
|
+
```
|
25
|
+
|
26
|
+
- Node/Browser compatible. Published as [`ms`](https://www.npmjs.org/package/ms) in [NPM](http://nodejs.org/download).
|
27
|
+
- If a number is supplied to `ms`, a string with a unit is returned.
|
28
|
+
- If a string that contains the number is supplied, it returns it as
|
29
|
+
a number (e.g: it returns `100` for `'100'`).
|
30
|
+
- If you pass a string with a number and a valid unit, the number of
|
31
|
+
equivalent ms is returned.
|
32
|
+
|
33
|
+
## License
|
34
|
+
|
35
|
+
MIT
|
@@ -0,0 +1,125 @@
|
|
1
|
+
/**
|
2
|
+
* Helpers.
|
3
|
+
*/
|
4
|
+
|
5
|
+
var s = 1000;
|
6
|
+
var m = s * 60;
|
7
|
+
var h = m * 60;
|
8
|
+
var d = h * 24;
|
9
|
+
var y = d * 365.25;
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Parse or format the given `val`.
|
13
|
+
*
|
14
|
+
* Options:
|
15
|
+
*
|
16
|
+
* - `long` verbose formatting [false]
|
17
|
+
*
|
18
|
+
* @param {String|Number} val
|
19
|
+
* @param {Object} options
|
20
|
+
* @return {String|Number}
|
21
|
+
* @api public
|
22
|
+
*/
|
23
|
+
|
24
|
+
module.exports = function(val, options){
|
25
|
+
options = options || {};
|
26
|
+
if ('string' == typeof val) return parse(val);
|
27
|
+
return options.long
|
28
|
+
? long(val)
|
29
|
+
: short(val);
|
30
|
+
};
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Parse the given `str` and return milliseconds.
|
34
|
+
*
|
35
|
+
* @param {String} str
|
36
|
+
* @return {Number}
|
37
|
+
* @api private
|
38
|
+
*/
|
39
|
+
|
40
|
+
function parse(str) {
|
41
|
+
str = '' + str;
|
42
|
+
if (str.length > 10000) return;
|
43
|
+
var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);
|
44
|
+
if (!match) return;
|
45
|
+
var n = parseFloat(match[1]);
|
46
|
+
var type = (match[2] || 'ms').toLowerCase();
|
47
|
+
switch (type) {
|
48
|
+
case 'years':
|
49
|
+
case 'year':
|
50
|
+
case 'yrs':
|
51
|
+
case 'yr':
|
52
|
+
case 'y':
|
53
|
+
return n * y;
|
54
|
+
case 'days':
|
55
|
+
case 'day':
|
56
|
+
case 'd':
|
57
|
+
return n * d;
|
58
|
+
case 'hours':
|
59
|
+
case 'hour':
|
60
|
+
case 'hrs':
|
61
|
+
case 'hr':
|
62
|
+
case 'h':
|
63
|
+
return n * h;
|
64
|
+
case 'minutes':
|
65
|
+
case 'minute':
|
66
|
+
case 'mins':
|
67
|
+
case 'min':
|
68
|
+
case 'm':
|
69
|
+
return n * m;
|
70
|
+
case 'seconds':
|
71
|
+
case 'second':
|
72
|
+
case 'secs':
|
73
|
+
case 'sec':
|
74
|
+
case 's':
|
75
|
+
return n * s;
|
76
|
+
case 'milliseconds':
|
77
|
+
case 'millisecond':
|
78
|
+
case 'msecs':
|
79
|
+
case 'msec':
|
80
|
+
case 'ms':
|
81
|
+
return n;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Short format for `ms`.
|
87
|
+
*
|
88
|
+
* @param {Number} ms
|
89
|
+
* @return {String}
|
90
|
+
* @api private
|
91
|
+
*/
|
92
|
+
|
93
|
+
function short(ms) {
|
94
|
+
if (ms >= d) return Math.round(ms / d) + 'd';
|
95
|
+
if (ms >= h) return Math.round(ms / h) + 'h';
|
96
|
+
if (ms >= m) return Math.round(ms / m) + 'm';
|
97
|
+
if (ms >= s) return Math.round(ms / s) + 's';
|
98
|
+
return ms + 'ms';
|
99
|
+
}
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Long format for `ms`.
|
103
|
+
*
|
104
|
+
* @param {Number} ms
|
105
|
+
* @return {String}
|
106
|
+
* @api private
|
107
|
+
*/
|
108
|
+
|
109
|
+
function long(ms) {
|
110
|
+
return plural(ms, d, 'day')
|
111
|
+
|| plural(ms, h, 'hour')
|
112
|
+
|| plural(ms, m, 'minute')
|
113
|
+
|| plural(ms, s, 'second')
|
114
|
+
|| ms + ' ms';
|
115
|
+
}
|
116
|
+
|
117
|
+
/**
|
118
|
+
* Pluralization helper.
|
119
|
+
*/
|
120
|
+
|
121
|
+
function plural(ms, n, name) {
|
122
|
+
if (ms < n) return;
|
123
|
+
if (ms < n * 1.5) return Math.floor(ms / n) + ' ' + name;
|
124
|
+
return Math.ceil(ms / n) + ' ' + name + 's';
|
125
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
{
|
2
|
+
"_from": "ms@0.7.1",
|
3
|
+
"_id": "ms@0.7.1",
|
4
|
+
"_location": "/ms",
|
5
|
+
"_nodeVersion": "0.12.2",
|
6
|
+
"_npmUser": {
|
7
|
+
"email": "rauchg@gmail.com",
|
8
|
+
"name": "rauchg"
|
9
|
+
},
|
10
|
+
"_npmVersion": "2.7.5",
|
11
|
+
"_phantomChildren": {},
|
12
|
+
"_requiredBy": [
|
13
|
+
"/debug"
|
14
|
+
],
|
15
|
+
"_resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz",
|
16
|
+
"_shasum": "9cd13c03adbff25b65effde7ce864ee952017098",
|
17
|
+
"_shrinkwrap": null,
|
18
|
+
"bugs": {
|
19
|
+
"url": "https://github.com/guille/ms.js/issues"
|
20
|
+
},
|
21
|
+
"component": {
|
22
|
+
"scripts": {
|
23
|
+
"ms/index.js": "index.js"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
"dependencies": {},
|
27
|
+
"description": "Tiny ms conversion utility",
|
28
|
+
"devDependencies": {
|
29
|
+
"expect.js": "*",
|
30
|
+
"mocha": "*",
|
31
|
+
"serve": "*"
|
32
|
+
},
|
33
|
+
"directories": {},
|
34
|
+
"dist": {
|
35
|
+
"shasum": "9cd13c03adbff25b65effde7ce864ee952017098",
|
36
|
+
"tarball": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz"
|
37
|
+
},
|
38
|
+
"gitHead": "713dcf26d9e6fd9dbc95affe7eff9783b7f1b909",
|
39
|
+
"homepage": "https://github.com/guille/ms.js",
|
40
|
+
"main": "./index",
|
41
|
+
"maintainers": [
|
42
|
+
{
|
43
|
+
"name": "rauchg",
|
44
|
+
"email": "rauchg@gmail.com"
|
45
|
+
}
|
46
|
+
],
|
47
|
+
"name": "ms",
|
48
|
+
"optionalDependencies": {},
|
49
|
+
"readme": "ERROR: No README data found!",
|
50
|
+
"repository": {
|
51
|
+
"type": "git",
|
52
|
+
"url": "git://github.com/guille/ms.js.git"
|
53
|
+
},
|
54
|
+
"scripts": {},
|
55
|
+
"version": "0.7.1"
|
56
|
+
}
|