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,122 +0,0 @@
|
|
1
|
-
# brace-expansion
|
2
|
-
|
3
|
-
[Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html),
|
4
|
-
as known from sh/bash, in JavaScript.
|
5
|
-
|
6
|
-
[![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion)
|
7
|
-
[![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion)
|
8
|
-
|
9
|
-
[![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion)
|
10
|
-
|
11
|
-
## Example
|
12
|
-
|
13
|
-
```js
|
14
|
-
var expand = require('brace-expansion');
|
15
|
-
|
16
|
-
expand('file-{a,b,c}.jpg')
|
17
|
-
// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']
|
18
|
-
|
19
|
-
expand('-v{,,}')
|
20
|
-
// => ['-v', '-v', '-v']
|
21
|
-
|
22
|
-
expand('file{0..2}.jpg')
|
23
|
-
// => ['file0.jpg', 'file1.jpg', 'file2.jpg']
|
24
|
-
|
25
|
-
expand('file-{a..c}.jpg')
|
26
|
-
// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']
|
27
|
-
|
28
|
-
expand('file{2..0}.jpg')
|
29
|
-
// => ['file2.jpg', 'file1.jpg', 'file0.jpg']
|
30
|
-
|
31
|
-
expand('file{0..4..2}.jpg')
|
32
|
-
// => ['file0.jpg', 'file2.jpg', 'file4.jpg']
|
33
|
-
|
34
|
-
expand('file-{a..e..2}.jpg')
|
35
|
-
// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg']
|
36
|
-
|
37
|
-
expand('file{00..10..5}.jpg')
|
38
|
-
// => ['file00.jpg', 'file05.jpg', 'file10.jpg']
|
39
|
-
|
40
|
-
expand('{{A..C},{a..c}}')
|
41
|
-
// => ['A', 'B', 'C', 'a', 'b', 'c']
|
42
|
-
|
43
|
-
expand('ppp{,config,oe{,conf}}')
|
44
|
-
// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf']
|
45
|
-
```
|
46
|
-
|
47
|
-
## API
|
48
|
-
|
49
|
-
```js
|
50
|
-
var expand = require('brace-expansion');
|
51
|
-
```
|
52
|
-
|
53
|
-
### var expanded = expand(str)
|
54
|
-
|
55
|
-
Return an array of all possible and valid expansions of `str`. If none are
|
56
|
-
found, `[str]` is returned.
|
57
|
-
|
58
|
-
Valid expansions are:
|
59
|
-
|
60
|
-
```js
|
61
|
-
/^(.*,)+(.+)?$/
|
62
|
-
// {a,b,...}
|
63
|
-
```
|
64
|
-
|
65
|
-
A comma seperated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`.
|
66
|
-
|
67
|
-
```js
|
68
|
-
/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
|
69
|
-
// {x..y[..incr]}
|
70
|
-
```
|
71
|
-
|
72
|
-
A numeric sequence from `x` to `y` inclusive, with optional increment.
|
73
|
-
If `x` or `y` start with a leading `0`, all the numbers will be padded
|
74
|
-
to have equal length. Negative numbers and backwards iteration work too.
|
75
|
-
|
76
|
-
```js
|
77
|
-
/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
|
78
|
-
// {x..y[..incr]}
|
79
|
-
```
|
80
|
-
|
81
|
-
An alphabetic sequence from `x` to `y` inclusive, with optional increment.
|
82
|
-
`x` and `y` must be exactly one character, and if given, `incr` must be a
|
83
|
-
number.
|
84
|
-
|
85
|
-
For compatibility reasons, the string `${` is not eligible for brace expansion.
|
86
|
-
|
87
|
-
## Installation
|
88
|
-
|
89
|
-
With [npm](https://npmjs.org) do:
|
90
|
-
|
91
|
-
```bash
|
92
|
-
npm install brace-expansion
|
93
|
-
```
|
94
|
-
|
95
|
-
## Contributors
|
96
|
-
|
97
|
-
- [Julian Gruber](https://github.com/juliangruber)
|
98
|
-
- [Isaac Z. Schlueter](https://github.com/isaacs)
|
99
|
-
|
100
|
-
## License
|
101
|
-
|
102
|
-
(MIT)
|
103
|
-
|
104
|
-
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
105
|
-
|
106
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
107
|
-
this software and associated documentation files (the "Software"), to deal in
|
108
|
-
the Software without restriction, including without limitation the rights to
|
109
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
110
|
-
of the Software, and to permit persons to whom the Software is furnished to do
|
111
|
-
so, subject to the following conditions:
|
112
|
-
|
113
|
-
The above copyright notice and this permission notice shall be included in all
|
114
|
-
copies or substantial portions of the Software.
|
115
|
-
|
116
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
117
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
118
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
119
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
120
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
121
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
122
|
-
SOFTWARE.
|
@@ -1,8 +0,0 @@
|
|
1
|
-
var expand = require('./');
|
2
|
-
|
3
|
-
console.log(expand('http://any.org/archive{1996..1999}/vol{1..4}/part{a,b,c}.html'));
|
4
|
-
console.log(expand('http://www.numericals.com/file{1..100..10}.txt'));
|
5
|
-
console.log(expand('http://www.letters.com/file{a..z..2}.txt'));
|
6
|
-
console.log(expand('mkdir /usr/local/src/bash/{old,new,dist,bugs}'));
|
7
|
-
console.log(expand('chown root /usr/{ucb/{ex,edit},lib/{ex?.?*,how_ex}}'));
|
8
|
-
|
@@ -1,191 +0,0 @@
|
|
1
|
-
var concatMap = require('concat-map');
|
2
|
-
var balanced = require('balanced-match');
|
3
|
-
|
4
|
-
module.exports = expandTop;
|
5
|
-
|
6
|
-
var escSlash = '\0SLASH'+Math.random()+'\0';
|
7
|
-
var escOpen = '\0OPEN'+Math.random()+'\0';
|
8
|
-
var escClose = '\0CLOSE'+Math.random()+'\0';
|
9
|
-
var escComma = '\0COMMA'+Math.random()+'\0';
|
10
|
-
var escPeriod = '\0PERIOD'+Math.random()+'\0';
|
11
|
-
|
12
|
-
function numeric(str) {
|
13
|
-
return parseInt(str, 10) == str
|
14
|
-
? parseInt(str, 10)
|
15
|
-
: str.charCodeAt(0);
|
16
|
-
}
|
17
|
-
|
18
|
-
function escapeBraces(str) {
|
19
|
-
return str.split('\\\\').join(escSlash)
|
20
|
-
.split('\\{').join(escOpen)
|
21
|
-
.split('\\}').join(escClose)
|
22
|
-
.split('\\,').join(escComma)
|
23
|
-
.split('\\.').join(escPeriod);
|
24
|
-
}
|
25
|
-
|
26
|
-
function unescapeBraces(str) {
|
27
|
-
return str.split(escSlash).join('\\')
|
28
|
-
.split(escOpen).join('{')
|
29
|
-
.split(escClose).join('}')
|
30
|
-
.split(escComma).join(',')
|
31
|
-
.split(escPeriod).join('.');
|
32
|
-
}
|
33
|
-
|
34
|
-
|
35
|
-
// Basically just str.split(","), but handling cases
|
36
|
-
// where we have nested braced sections, which should be
|
37
|
-
// treated as individual members, like {a,{b,c},d}
|
38
|
-
function parseCommaParts(str) {
|
39
|
-
if (!str)
|
40
|
-
return [''];
|
41
|
-
|
42
|
-
var parts = [];
|
43
|
-
var m = balanced('{', '}', str);
|
44
|
-
|
45
|
-
if (!m)
|
46
|
-
return str.split(',');
|
47
|
-
|
48
|
-
var pre = m.pre;
|
49
|
-
var body = m.body;
|
50
|
-
var post = m.post;
|
51
|
-
var p = pre.split(',');
|
52
|
-
|
53
|
-
p[p.length-1] += '{' + body + '}';
|
54
|
-
var postParts = parseCommaParts(post);
|
55
|
-
if (post.length) {
|
56
|
-
p[p.length-1] += postParts.shift();
|
57
|
-
p.push.apply(p, postParts);
|
58
|
-
}
|
59
|
-
|
60
|
-
parts.push.apply(parts, p);
|
61
|
-
|
62
|
-
return parts;
|
63
|
-
}
|
64
|
-
|
65
|
-
function expandTop(str) {
|
66
|
-
if (!str)
|
67
|
-
return [];
|
68
|
-
|
69
|
-
return expand(escapeBraces(str), true).map(unescapeBraces);
|
70
|
-
}
|
71
|
-
|
72
|
-
function identity(e) {
|
73
|
-
return e;
|
74
|
-
}
|
75
|
-
|
76
|
-
function embrace(str) {
|
77
|
-
return '{' + str + '}';
|
78
|
-
}
|
79
|
-
function isPadded(el) {
|
80
|
-
return /^-?0\d/.test(el);
|
81
|
-
}
|
82
|
-
|
83
|
-
function lte(i, y) {
|
84
|
-
return i <= y;
|
85
|
-
}
|
86
|
-
function gte(i, y) {
|
87
|
-
return i >= y;
|
88
|
-
}
|
89
|
-
|
90
|
-
function expand(str, isTop) {
|
91
|
-
var expansions = [];
|
92
|
-
|
93
|
-
var m = balanced('{', '}', str);
|
94
|
-
if (!m || /\$$/.test(m.pre)) return [str];
|
95
|
-
|
96
|
-
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
97
|
-
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
98
|
-
var isSequence = isNumericSequence || isAlphaSequence;
|
99
|
-
var isOptions = /^(.*,)+(.+)?$/.test(m.body);
|
100
|
-
if (!isSequence && !isOptions) {
|
101
|
-
// {a},b}
|
102
|
-
if (m.post.match(/,.*}/)) {
|
103
|
-
str = m.pre + '{' + m.body + escClose + m.post;
|
104
|
-
return expand(str);
|
105
|
-
}
|
106
|
-
return [str];
|
107
|
-
}
|
108
|
-
|
109
|
-
var n;
|
110
|
-
if (isSequence) {
|
111
|
-
n = m.body.split(/\.\./);
|
112
|
-
} else {
|
113
|
-
n = parseCommaParts(m.body);
|
114
|
-
if (n.length === 1) {
|
115
|
-
// x{{a,b}}y ==> x{a}y x{b}y
|
116
|
-
n = expand(n[0], false).map(embrace);
|
117
|
-
if (n.length === 1) {
|
118
|
-
var post = m.post.length
|
119
|
-
? expand(m.post, false)
|
120
|
-
: [''];
|
121
|
-
return post.map(function(p) {
|
122
|
-
return m.pre + n[0] + p;
|
123
|
-
});
|
124
|
-
}
|
125
|
-
}
|
126
|
-
}
|
127
|
-
|
128
|
-
// at this point, n is the parts, and we know it's not a comma set
|
129
|
-
// with a single entry.
|
130
|
-
|
131
|
-
// no need to expand pre, since it is guaranteed to be free of brace-sets
|
132
|
-
var pre = m.pre;
|
133
|
-
var post = m.post.length
|
134
|
-
? expand(m.post, false)
|
135
|
-
: [''];
|
136
|
-
|
137
|
-
var N;
|
138
|
-
|
139
|
-
if (isSequence) {
|
140
|
-
var x = numeric(n[0]);
|
141
|
-
var y = numeric(n[1]);
|
142
|
-
var width = Math.max(n[0].length, n[1].length)
|
143
|
-
var incr = n.length == 3
|
144
|
-
? Math.abs(numeric(n[2]))
|
145
|
-
: 1;
|
146
|
-
var test = lte;
|
147
|
-
var reverse = y < x;
|
148
|
-
if (reverse) {
|
149
|
-
incr *= -1;
|
150
|
-
test = gte;
|
151
|
-
}
|
152
|
-
var pad = n.some(isPadded);
|
153
|
-
|
154
|
-
N = [];
|
155
|
-
|
156
|
-
for (var i = x; test(i, y); i += incr) {
|
157
|
-
var c;
|
158
|
-
if (isAlphaSequence) {
|
159
|
-
c = String.fromCharCode(i);
|
160
|
-
if (c === '\\')
|
161
|
-
c = '';
|
162
|
-
} else {
|
163
|
-
c = String(i);
|
164
|
-
if (pad) {
|
165
|
-
var need = width - c.length;
|
166
|
-
if (need > 0) {
|
167
|
-
var z = new Array(need + 1).join('0');
|
168
|
-
if (i < 0)
|
169
|
-
c = '-' + z + c.slice(1);
|
170
|
-
else
|
171
|
-
c = z + c;
|
172
|
-
}
|
173
|
-
}
|
174
|
-
}
|
175
|
-
N.push(c);
|
176
|
-
}
|
177
|
-
} else {
|
178
|
-
N = concatMap(n, function(el) { return expand(el, false) });
|
179
|
-
}
|
180
|
-
|
181
|
-
for (var j = 0; j < N.length; j++) {
|
182
|
-
for (var k = 0; k < post.length; k++) {
|
183
|
-
var expansion = pre + N[j] + post[k];
|
184
|
-
if (!isTop || isSequence || expansion)
|
185
|
-
expansions.push(expansion);
|
186
|
-
}
|
187
|
-
}
|
188
|
-
|
189
|
-
return expansions;
|
190
|
-
}
|
191
|
-
|
@@ -1,89 +0,0 @@
|
|
1
|
-
# balanced-match
|
2
|
-
|
3
|
-
Match balanced string pairs, like `{` and `}` or `<b>` and `</b>`.
|
4
|
-
|
5
|
-
[![build status](https://secure.travis-ci.org/juliangruber/balanced-match.svg)](http://travis-ci.org/juliangruber/balanced-match)
|
6
|
-
[![downloads](https://img.shields.io/npm/dm/balanced-match.svg)](https://www.npmjs.org/package/balanced-match)
|
7
|
-
|
8
|
-
[![testling badge](https://ci.testling.com/juliangruber/balanced-match.png)](https://ci.testling.com/juliangruber/balanced-match)
|
9
|
-
|
10
|
-
## Example
|
11
|
-
|
12
|
-
Get the first matching pair of braces:
|
13
|
-
|
14
|
-
```js
|
15
|
-
var balanced = require('balanced-match');
|
16
|
-
|
17
|
-
console.log(balanced('{', '}', 'pre{in{nested}}post'));
|
18
|
-
console.log(balanced('{', '}', 'pre{first}between{second}post'));
|
19
|
-
```
|
20
|
-
|
21
|
-
The matches are:
|
22
|
-
|
23
|
-
```bash
|
24
|
-
$ node example.js
|
25
|
-
{ start: 3, end: 14, pre: 'pre', body: 'in{nested}', post: 'post' }
|
26
|
-
{ start: 3,
|
27
|
-
end: 9,
|
28
|
-
pre: 'pre',
|
29
|
-
body: 'first',
|
30
|
-
post: 'between{second}post' }
|
31
|
-
```
|
32
|
-
|
33
|
-
## API
|
34
|
-
|
35
|
-
### var m = balanced(a, b, str)
|
36
|
-
|
37
|
-
For the first non-nested matching pair of `a` and `b` in `str`, return an
|
38
|
-
object with those keys:
|
39
|
-
|
40
|
-
* **start** the index of the first match of `a`
|
41
|
-
* **end** the index of the matching `b`
|
42
|
-
* **pre** the preamble, `a` and `b` not included
|
43
|
-
* **body** the match, `a` and `b` not included
|
44
|
-
* **post** the postscript, `a` and `b` not included
|
45
|
-
|
46
|
-
If there's no match, `undefined` will be returned.
|
47
|
-
|
48
|
-
If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']`.
|
49
|
-
|
50
|
-
### var r = balanced.range(a, b, str)
|
51
|
-
|
52
|
-
For the first non-nested matching pair of `a` and `b` in `str`, return an
|
53
|
-
array with indexes: `[ <a index>, <b index> ]`.
|
54
|
-
|
55
|
-
If there's no match, `undefined` will be returned.
|
56
|
-
|
57
|
-
If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]`.
|
58
|
-
|
59
|
-
## Installation
|
60
|
-
|
61
|
-
With [npm](https://npmjs.org) do:
|
62
|
-
|
63
|
-
```bash
|
64
|
-
npm install balanced-match
|
65
|
-
```
|
66
|
-
|
67
|
-
## License
|
68
|
-
|
69
|
-
(MIT)
|
70
|
-
|
71
|
-
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
72
|
-
|
73
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
74
|
-
this software and associated documentation files (the "Software"), to deal in
|
75
|
-
the Software without restriction, including without limitation the rights to
|
76
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
77
|
-
of the Software, and to permit persons to whom the Software is furnished to do
|
78
|
-
so, subject to the following conditions:
|
79
|
-
|
80
|
-
The above copyright notice and this permission notice shall be included in all
|
81
|
-
copies or substantial portions of the Software.
|
82
|
-
|
83
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
84
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
85
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
86
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
87
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
88
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
89
|
-
SOFTWARE.
|
@@ -1,50 +0,0 @@
|
|
1
|
-
module.exports = balanced;
|
2
|
-
function balanced(a, b, str) {
|
3
|
-
var r = range(a, b, str);
|
4
|
-
|
5
|
-
return r && {
|
6
|
-
start: r[0],
|
7
|
-
end: r[1],
|
8
|
-
pre: str.slice(0, r[0]),
|
9
|
-
body: str.slice(r[0] + a.length, r[1]),
|
10
|
-
post: str.slice(r[1] + b.length)
|
11
|
-
};
|
12
|
-
}
|
13
|
-
|
14
|
-
balanced.range = range;
|
15
|
-
function range(a, b, str) {
|
16
|
-
var begs, beg, left, right, result;
|
17
|
-
var ai = str.indexOf(a);
|
18
|
-
var bi = str.indexOf(b, ai + 1);
|
19
|
-
var i = ai;
|
20
|
-
|
21
|
-
if (ai >= 0 && bi > 0) {
|
22
|
-
begs = [];
|
23
|
-
left = str.length;
|
24
|
-
|
25
|
-
while (i < str.length && i >= 0 && ! result) {
|
26
|
-
if (i == ai) {
|
27
|
-
begs.push(i);
|
28
|
-
ai = str.indexOf(a, i + 1);
|
29
|
-
} else if (begs.length == 1) {
|
30
|
-
result = [ begs.pop(), bi ];
|
31
|
-
} else {
|
32
|
-
beg = begs.pop();
|
33
|
-
if (beg < left) {
|
34
|
-
left = beg;
|
35
|
-
right = bi;
|
36
|
-
}
|
37
|
-
|
38
|
-
bi = str.indexOf(b, i + 1);
|
39
|
-
}
|
40
|
-
|
41
|
-
i = ai < bi && ai >= 0 ? ai : bi;
|
42
|
-
}
|
43
|
-
|
44
|
-
if (begs.length) {
|
45
|
-
result = [ left, right ];
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
return result;
|
50
|
-
}
|
@@ -1,79 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"_from": "balanced-match@^0.3.0",
|
3
|
-
"_id": "balanced-match@0.3.0",
|
4
|
-
"_location": "/tar-pack/rimraf/glob/minimatch/brace-expansion/balanced-match",
|
5
|
-
"_nodeVersion": "4.2.1",
|
6
|
-
"_npmUser": {
|
7
|
-
"email": "julian@juliangruber.com",
|
8
|
-
"name": "juliangruber"
|
9
|
-
},
|
10
|
-
"_npmVersion": "2.14.7",
|
11
|
-
"_phantomChildren": {},
|
12
|
-
"_requiredBy": [
|
13
|
-
"/tar-pack/rimraf/glob/minimatch/brace-expansion"
|
14
|
-
],
|
15
|
-
"_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.3.0.tgz",
|
16
|
-
"_shasum": "a91cdd1ebef1a86659e70ff4def01625fc2d6756",
|
17
|
-
"author": {
|
18
|
-
"email": "mail@juliangruber.com",
|
19
|
-
"name": "Julian Gruber",
|
20
|
-
"url": "http://juliangruber.com"
|
21
|
-
},
|
22
|
-
"bugs": {
|
23
|
-
"url": "https://github.com/juliangruber/balanced-match/issues"
|
24
|
-
},
|
25
|
-
"dependencies": {},
|
26
|
-
"description": "Match balanced character pairs, like \"{\" and \"}\"",
|
27
|
-
"devDependencies": {
|
28
|
-
"tape": "~4.2.2"
|
29
|
-
},
|
30
|
-
"directories": {},
|
31
|
-
"dist": {
|
32
|
-
"shasum": "a91cdd1ebef1a86659e70ff4def01625fc2d6756",
|
33
|
-
"tarball": "http://registry.npmjs.org/balanced-match/-/balanced-match-0.3.0.tgz"
|
34
|
-
},
|
35
|
-
"gitHead": "a7114b0986554787e90b7ac595a043ca75ea77e5",
|
36
|
-
"homepage": "https://github.com/juliangruber/balanced-match",
|
37
|
-
"keywords": [
|
38
|
-
"balanced",
|
39
|
-
"match",
|
40
|
-
"parse",
|
41
|
-
"regexp",
|
42
|
-
"test"
|
43
|
-
],
|
44
|
-
"license": "MIT",
|
45
|
-
"main": "index.js",
|
46
|
-
"maintainers": [
|
47
|
-
{
|
48
|
-
"name": "juliangruber",
|
49
|
-
"email": "julian@juliangruber.com"
|
50
|
-
}
|
51
|
-
],
|
52
|
-
"name": "balanced-match",
|
53
|
-
"optionalDependencies": {},
|
54
|
-
"readme": "ERROR: No README data found!",
|
55
|
-
"repository": {
|
56
|
-
"type": "git",
|
57
|
-
"url": "git://github.com/juliangruber/balanced-match.git"
|
58
|
-
},
|
59
|
-
"scripts": {
|
60
|
-
"test": "make test"
|
61
|
-
},
|
62
|
-
"testling": {
|
63
|
-
"browsers": [
|
64
|
-
"android-browser/4.2..latest",
|
65
|
-
"chrome/25..latest",
|
66
|
-
"chrome/canary",
|
67
|
-
"firefox/20..latest",
|
68
|
-
"firefox/nightly",
|
69
|
-
"ie/8..latest",
|
70
|
-
"ipad/6.0..latest",
|
71
|
-
"iphone/6.0..latest",
|
72
|
-
"opera/12..latest",
|
73
|
-
"opera/next",
|
74
|
-
"safari/5.1..latest"
|
75
|
-
],
|
76
|
-
"files": "test/*.js"
|
77
|
-
},
|
78
|
-
"version": "0.3.0"
|
79
|
-
}
|
@@ -1,84 +0,0 @@
|
|
1
|
-
var test = require('tape');
|
2
|
-
var balanced = require('..');
|
3
|
-
|
4
|
-
test('balanced', function(t) {
|
5
|
-
t.deepEqual(balanced('{', '}', 'pre{in{nest}}post'), {
|
6
|
-
start: 3,
|
7
|
-
end: 12,
|
8
|
-
pre: 'pre',
|
9
|
-
body: 'in{nest}',
|
10
|
-
post: 'post'
|
11
|
-
});
|
12
|
-
t.deepEqual(balanced('{', '}', '{{{{{{{{{in}post'), {
|
13
|
-
start: 8,
|
14
|
-
end: 11,
|
15
|
-
pre: '{{{{{{{{',
|
16
|
-
body: 'in',
|
17
|
-
post: 'post'
|
18
|
-
});
|
19
|
-
t.deepEqual(balanced('{', '}', 'pre{body{in}post'), {
|
20
|
-
start: 8,
|
21
|
-
end: 11,
|
22
|
-
pre: 'pre{body',
|
23
|
-
body: 'in',
|
24
|
-
post: 'post'
|
25
|
-
});
|
26
|
-
t.deepEqual(balanced('{', '}', 'pre}{in{nest}}post'), {
|
27
|
-
start: 4,
|
28
|
-
end: 13,
|
29
|
-
pre: 'pre}',
|
30
|
-
body: 'in{nest}',
|
31
|
-
post: 'post'
|
32
|
-
});
|
33
|
-
t.deepEqual(balanced('{', '}', 'pre{body}between{body2}post'), {
|
34
|
-
start: 3,
|
35
|
-
end: 8,
|
36
|
-
pre: 'pre',
|
37
|
-
body: 'body',
|
38
|
-
post: 'between{body2}post'
|
39
|
-
});
|
40
|
-
t.notOk(balanced('{', '}', 'nope'), 'should be notOk');
|
41
|
-
t.deepEqual(balanced('<b>', '</b>', 'pre<b>in<b>nest</b></b>post'), {
|
42
|
-
start: 3,
|
43
|
-
end: 19,
|
44
|
-
pre: 'pre',
|
45
|
-
body: 'in<b>nest</b>',
|
46
|
-
post: 'post'
|
47
|
-
});
|
48
|
-
t.deepEqual(balanced('<b>', '</b>', 'pre</b><b>in<b>nest</b></b>post'), {
|
49
|
-
start: 7,
|
50
|
-
end: 23,
|
51
|
-
pre: 'pre</b>',
|
52
|
-
body: 'in<b>nest</b>',
|
53
|
-
post: 'post'
|
54
|
-
});
|
55
|
-
t.deepEqual(balanced('{{', '}}', 'pre{{{in}}}post'), {
|
56
|
-
start: 3,
|
57
|
-
end: 9,
|
58
|
-
pre: 'pre',
|
59
|
-
body: '{in}',
|
60
|
-
post: 'post'
|
61
|
-
});
|
62
|
-
t.deepEqual(balanced('{{{', '}}', 'pre{{{in}}}post'), {
|
63
|
-
start: 3,
|
64
|
-
end: 8,
|
65
|
-
pre: 'pre',
|
66
|
-
body: 'in',
|
67
|
-
post: '}post'
|
68
|
-
});
|
69
|
-
t.deepEqual(balanced('{', '}', 'pre{{first}in{second}post'), {
|
70
|
-
start: 4,
|
71
|
-
end: 10,
|
72
|
-
pre: 'pre{',
|
73
|
-
body: 'first',
|
74
|
-
post: 'in{second}post'
|
75
|
-
});
|
76
|
-
t.deepEqual(balanced('<?', '?>', 'pre<?>post'), {
|
77
|
-
start: 3,
|
78
|
-
end: 4,
|
79
|
-
pre: 'pre',
|
80
|
-
body: '',
|
81
|
-
post: 'post'
|
82
|
-
});
|
83
|
-
t.end();
|
84
|
-
});
|
@@ -1,18 +0,0 @@
|
|
1
|
-
This software is released under the MIT license:
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
-
this software and associated documentation files (the "Software"), to deal in
|
5
|
-
the Software without restriction, including without limitation the rights to
|
6
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
7
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
8
|
-
subject to the following conditions:
|
9
|
-
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
11
|
-
copies or substantial portions of the Software.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
15
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
16
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
17
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
18
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|