fsevents 1.0.5 → 1.0.6
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/Readme.md +12 -13
- package/node_modules/ansi/package.json +1 -2
- package/node_modules/are-we-there-yet/package.json +1 -2
- package/node_modules/asn1/.travis.yml +4 -0
- package/node_modules/asn1/lib/ber/reader.js +27 -33
- package/node_modules/asn1/lib/ber/writer.js +10 -11
- package/node_modules/asn1/package.json +21 -19
- package/node_modules/asn1/tst/ber/reader.test.js +36 -0
- package/node_modules/asn1/tst/ber/writer.test.js +74 -0
- package/node_modules/assert-plus/package.json +1 -0
- package/node_modules/{ctype → bl/node_modules/readable-stream/node_modules/core-util-is}/LICENSE +1 -6
- package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +11 -11
- package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/package.json +17 -12
- package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/test.js +68 -0
- package/node_modules/boom/package.json +1 -1
- package/node_modules/commander/package.json +1 -1
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/lib/util.js +11 -11
- package/node_modules/core-util-is/package.json +17 -12
- package/node_modules/core-util-is/test.js +68 -0
- package/node_modules/dashdash/README.md +508 -0
- package/node_modules/dashdash/lib/dashdash.js +813 -0
- package/node_modules/dashdash/package.json +87 -0
- package/node_modules/deep-extend/LICENSE +1 -1
- package/node_modules/deep-extend/README.md +89 -52
- package/node_modules/deep-extend/index.js +1 -90
- package/node_modules/deep-extend/lib/deep-extend.js +144 -0
- package/node_modules/deep-extend/package.json +47 -16
- package/node_modules/deep-extend/test/index.spec.js +168 -5
- package/node_modules/delegates/package.json +1 -2
- package/node_modules/ecc-jsbn/.npmignore +15 -0
- package/node_modules/ecc-jsbn/LICENSE +21 -0
- package/node_modules/ecc-jsbn/README.md +8 -0
- package/node_modules/ecc-jsbn/index.js +57 -0
- package/node_modules/ecc-jsbn/lib/LICENSE-jsbn +40 -0
- package/node_modules/ecc-jsbn/lib/ec.js +561 -0
- package/node_modules/ecc-jsbn/lib/sec.js +170 -0
- package/node_modules/ecc-jsbn/package.json +63 -0
- package/node_modules/ecc-jsbn/test.js +14 -0
- package/node_modules/extsprintf/.gitmodules +6 -0
- package/node_modules/{path-is-absolute/license → extsprintf/LICENSE} +2 -4
- package/node_modules/extsprintf/Makefile +23 -0
- package/node_modules/extsprintf/Makefile.deps +39 -0
- package/node_modules/extsprintf/Makefile.targ +285 -0
- package/node_modules/extsprintf/README.md +39 -0
- package/node_modules/extsprintf/examples/simple.js +2 -0
- package/node_modules/{ctype/tools/jsl.conf → extsprintf/jsl.node.conf} +71 -63
- package/node_modules/extsprintf/lib/extsprintf.js +166 -0
- package/node_modules/extsprintf/package.json +48 -0
- package/node_modules/fstream/package.json +1 -2
- package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/package.json +4 -22
- package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/package.json +3 -21
- package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/package.json +4 -23
- package/node_modules/fstream-ignore/node_modules/minimatch/package.json +4 -24
- package/node_modules/fstream-ignore/package.json +1 -2
- package/node_modules/gauge/package.json +1 -2
- package/node_modules/har-validator/package.json +15 -15
- package/node_modules/has-unicode/package.json +1 -2
- package/node_modules/hawk/dist/client.js +340 -0
- package/node_modules/hawk/lib/browser.js +14 -20
- package/node_modules/hawk/package.json +10 -10
- package/node_modules/hawk/test/browser.js +134 -101
- package/node_modules/hawk/test/index.js +61 -61
- package/node_modules/hawk/test/server.js +72 -84
- package/node_modules/hawk/test/uri.js +52 -63
- package/node_modules/http-signature/CHANGES.md +39 -0
- package/node_modules/http-signature/http_signing.md +16 -17
- package/node_modules/http-signature/lib/index.js +6 -4
- package/node_modules/http-signature/lib/parser.js +43 -29
- package/node_modules/http-signature/lib/signer.js +290 -74
- package/node_modules/http-signature/lib/utils.js +112 -0
- package/node_modules/http-signature/lib/verify.js +47 -15
- package/node_modules/http-signature/package.json +20 -14
- package/node_modules/is-my-json-valid/index.js +16 -14
- package/node_modules/is-my-json-valid/package.json +16 -12
- package/node_modules/is-typedarray/LICENSE.md +18 -0
- package/node_modules/is-typedarray/README.md +16 -0
- package/node_modules/is-typedarray/index.js +41 -0
- package/node_modules/is-typedarray/package.json +63 -0
- package/node_modules/is-typedarray/test.js +34 -0
- package/node_modules/jodid25519/.npmignore +11 -0
- package/node_modules/jodid25519/.travis.yml +7 -0
- package/node_modules/jodid25519/AUTHORS.md +3 -0
- package/node_modules/jodid25519/LICENSE +23 -0
- package/node_modules/jodid25519/README.md +51 -0
- package/node_modules/jodid25519/almond.0 +42 -0
- package/node_modules/jodid25519/almond.1 +13 -0
- package/node_modules/jodid25519/index.js +35 -0
- package/node_modules/jodid25519/jsdoc.json +19 -0
- package/node_modules/jodid25519/lib/core.js +481 -0
- package/node_modules/jodid25519/lib/curve255.js +221 -0
- package/node_modules/jodid25519/lib/dh.js +111 -0
- package/node_modules/jodid25519/lib/eddsa.js +573 -0
- package/node_modules/jodid25519/lib/utils.js +198 -0
- package/node_modules/jodid25519/package.json +77 -0
- package/node_modules/jsbn/.npmignore +2 -0
- package/node_modules/jsbn/LICENSE +40 -0
- package/node_modules/jsbn/README.md +175 -0
- package/node_modules/jsbn/example.html +12 -0
- package/node_modules/jsbn/example.js +3 -0
- package/node_modules/jsbn/index.js +1358 -0
- package/node_modules/jsbn/package.json +60 -0
- package/node_modules/json-schema/README.md +5 -0
- package/node_modules/json-schema/draft-00/hyper-schema +68 -0
- package/node_modules/json-schema/draft-00/json-ref +26 -0
- package/node_modules/json-schema/draft-00/links +33 -0
- package/node_modules/json-schema/draft-00/schema +155 -0
- package/node_modules/json-schema/draft-01/hyper-schema +68 -0
- package/node_modules/json-schema/draft-01/json-ref +26 -0
- package/node_modules/json-schema/draft-01/links +33 -0
- package/node_modules/json-schema/draft-01/schema +155 -0
- package/node_modules/json-schema/draft-02/hyper-schema +68 -0
- package/node_modules/json-schema/draft-02/json-ref +26 -0
- package/node_modules/json-schema/draft-02/links +35 -0
- package/node_modules/json-schema/draft-02/schema +166 -0
- package/node_modules/json-schema/draft-03/examples/address +20 -0
- package/node_modules/json-schema/draft-03/examples/calendar +53 -0
- package/node_modules/json-schema/draft-03/examples/card +105 -0
- package/node_modules/json-schema/draft-03/examples/geo +8 -0
- package/node_modules/json-schema/draft-03/examples/interfaces +23 -0
- package/node_modules/json-schema/draft-03/hyper-schema +60 -0
- package/node_modules/json-schema/draft-03/json-ref +26 -0
- package/node_modules/json-schema/draft-03/links +35 -0
- package/node_modules/json-schema/draft-03/schema +174 -0
- package/node_modules/json-schema/draft-04/hyper-schema +60 -0
- package/node_modules/json-schema/draft-04/links +41 -0
- package/node_modules/json-schema/draft-04/schema +189 -0
- package/node_modules/json-schema/draft-zyp-json-schema-03.xml +1120 -0
- package/node_modules/json-schema/draft-zyp-json-schema-04.xml +1072 -0
- package/node_modules/json-schema/lib/links.js +52 -0
- package/node_modules/json-schema/lib/validate.js +260 -0
- package/node_modules/json-schema/package.json +67 -0
- package/node_modules/json-schema/test/tests.js +95 -0
- package/node_modules/jsprim/CHANGES.md +30 -0
- package/node_modules/jsprim/LICENSE +19 -0
- package/node_modules/jsprim/README.md +228 -0
- package/node_modules/jsprim/lib/jsprim.js +478 -0
- package/node_modules/jsprim/package.json +54 -0
- package/node_modules/lodash._basetostring/package.json +1 -2
- package/node_modules/lodash._createpadding/package.json +1 -2
- package/node_modules/lodash.pad/package.json +1 -2
- package/node_modules/lodash.padleft/package.json +1 -2
- package/node_modules/lodash.padright/package.json +1 -2
- package/node_modules/lodash.repeat/package.json +1 -2
- package/node_modules/node-pre-gyp/CHANGELOG.md +8 -0
- package/node_modules/node-pre-gyp/README.md +570 -0
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +4 -0
- package/node_modules/node-pre-gyp/node_modules/nopt/lib/nopt.js +2 -1
- package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/package.json +30 -37
- package/node_modules/node-pre-gyp/node_modules/nopt/package.json +37 -57
- package/node_modules/node-pre-gyp/node_modules/nopt/test/basic.js +22 -0
- package/node_modules/node-pre-gyp/package.json +17 -17
- package/node_modules/node-uuid/.npmignore +2 -0
- package/node_modules/node-uuid/README.md +12 -1
- package/node_modules/node-uuid/bower.json +1 -1
- package/node_modules/node-uuid/component.json +11 -4
- package/node_modules/node-uuid/package.json +25 -12
- package/node_modules/node-uuid/test/test.js +3 -0
- package/node_modules/node-uuid/uuid.js +70 -45
- package/node_modules/npmlog/.travis.yml +14 -0
- package/node_modules/npmlog/log.js +3 -0
- package/node_modules/npmlog/package.json +23 -20
- package/node_modules/npmlog/test/basic.js +8 -1
- package/node_modules/once/package.json +2 -3
- package/node_modules/pinkie/index.js +23 -7
- package/node_modules/pinkie/package.json +22 -15
- package/node_modules/pinkie/readme.md +17 -9
- package/node_modules/pinkie-promise/package.json +16 -14
- package/node_modules/pinkie-promise/readme.md +5 -3
- package/node_modules/rc/README.md +1 -1
- package/node_modules/rc/index.js +1 -1
- package/node_modules/rc/node_modules/minimist/package.json +1 -1
- package/node_modules/rc/package.json +12 -12
- package/node_modules/request/.eslintrc +1 -1
- package/node_modules/request/.travis.yml +4 -4
- package/node_modules/request/CHANGELOG.md +25 -0
- package/node_modules/request/README.md +12 -13
- package/node_modules/request/lib/har.js +84 -75
- package/node_modules/request/lib/redirect.js +2 -3
- package/node_modules/request/lib/tunnel.js +13 -18
- package/node_modules/request/package.json +17 -16
- package/node_modules/request/request.js +16 -59
- package/node_modules/rimraf/README.md +7 -2
- package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/package.json +5 -25
- package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/package.json +5 -25
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +16 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +42 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +23 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +58 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +25 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +3 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +122 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +8 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +191 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +2 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +3 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +6 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +80 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +5 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +38 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +79 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +56 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +13 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +90 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +81 -0
- package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/package.json +3 -21
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +36 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +58 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +51 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +70 -0
- package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/package.json +4 -22
- package/node_modules/rimraf/node_modules/glob/package.json +2 -20
- package/node_modules/rimraf/package.json +10 -10
- package/node_modules/semver/README.md +25 -1
- package/node_modules/semver/package.json +10 -10
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/semver.js +0 -12
- package/node_modules/sshpk/.npmignore +8 -0
- package/node_modules/sshpk/.travis.yml +11 -0
- package/node_modules/sshpk/LICENSE +18 -0
- package/node_modules/sshpk/README.md +436 -0
- package/node_modules/sshpk/bin/sshpk-conv +183 -0
- package/node_modules/sshpk/lib/algs.js +168 -0
- package/node_modules/sshpk/lib/dhe.js +312 -0
- package/node_modules/sshpk/lib/ed-compat.js +94 -0
- package/node_modules/sshpk/lib/errors.js +58 -0
- package/node_modules/sshpk/lib/fingerprint.js +140 -0
- package/node_modules/sshpk/lib/formats/auto.js +73 -0
- package/node_modules/sshpk/lib/formats/pem.js +152 -0
- package/node_modules/sshpk/lib/formats/pkcs1.js +320 -0
- package/node_modules/sshpk/lib/formats/pkcs8.js +510 -0
- package/node_modules/sshpk/lib/formats/rfc4253.js +145 -0
- package/node_modules/sshpk/lib/formats/ssh-private.js +138 -0
- package/node_modules/sshpk/lib/formats/ssh.js +114 -0
- package/node_modules/sshpk/lib/index.js +25 -0
- package/node_modules/sshpk/lib/key.js +260 -0
- package/node_modules/sshpk/lib/private-key.js +224 -0
- package/node_modules/sshpk/lib/signature.js +237 -0
- package/node_modules/sshpk/lib/ssh-buffer.js +123 -0
- package/node_modules/sshpk/lib/utils.js +207 -0
- package/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
- package/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +8 -0
- package/node_modules/sshpk/node_modules/assert-plus/README.md +155 -0
- package/node_modules/sshpk/node_modules/assert-plus/assert.js +206 -0
- package/node_modules/sshpk/node_modules/assert-plus/package.json +88 -0
- package/node_modules/sshpk/package.json +92 -0
- package/node_modules/strip-json-comments/cli.js +2 -2
- package/node_modules/strip-json-comments/package.json +13 -12
- package/node_modules/strip-json-comments/readme.md +11 -5
- package/node_modules/strip-json-comments/strip-json-comments.js +16 -7
- package/node_modules/tar/package.json +1 -2
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +11 -11
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/package.json +17 -12
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/test.js +68 -0
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/package.json +1 -1
- package/node_modules/tar-pack/node_modules/rimraf/package.json +1 -2
- package/node_modules/tar-pack/package.json +1 -2
- package/node_modules/tough-cookie/lib/cookie.js +1 -1
- package/node_modules/tough-cookie/package.json +7 -7
- package/node_modules/tweetnacl/.npmignore +4 -0
- package/node_modules/tweetnacl/CHANGELOG.md +128 -0
- package/node_modules/tweetnacl/README.md +463 -0
- package/node_modules/tweetnacl/nacl-fast.js +2418 -0
- package/node_modules/tweetnacl/nacl-fast.min.js +2 -0
- package/node_modules/tweetnacl/nacl.js +1205 -0
- package/node_modules/tweetnacl/nacl.min.js +1 -0
- package/node_modules/tweetnacl/package.json +101 -0
- package/node_modules/uid-number/package.json +2 -3
- package/node_modules/verror/.gitmodules +0 -0
- package/node_modules/verror/LICENSE +19 -0
- package/node_modules/verror/Makefile +35 -0
- package/node_modules/verror/Makefile.targ +285 -0
- package/node_modules/verror/README.md +120 -0
- package/node_modules/verror/examples/levels-verror.js +36 -0
- package/node_modules/verror/examples/levels-werror.js +34 -0
- package/node_modules/verror/examples/varargs.js +6 -0
- package/node_modules/verror/examples/verror.js +13 -0
- package/node_modules/verror/examples/werror.js +14 -0
- package/node_modules/verror/jsl.node.conf +139 -0
- package/node_modules/verror/lib/verror.js +157 -0
- package/node_modules/verror/package.json +51 -0
- package/node_modules/verror/tests/tst.inherit.js +100 -0
- package/node_modules/verror/tests/tst.verror.js +156 -0
- package/node_modules/verror/tests/tst.werror.js +179 -0
- package/package.json +3 -3
- package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/util.js +0 -106
- package/node_modules/core-util-is/util.js +0 -106
- package/node_modules/ctype/.npmignore +0 -1
- package/node_modules/ctype/CHANGELOG +0 -78
- package/node_modules/ctype/README +0 -82
- package/node_modules/ctype/README.old +0 -298
- package/node_modules/ctype/ctf.js +0 -245
- package/node_modules/ctype/ctio.js +0 -1485
- package/node_modules/ctype/ctype.js +0 -944
- package/node_modules/ctype/man/man3ctype/ctio.3ctype +0 -241
- package/node_modules/ctype/package.json +0 -51
- package/node_modules/ctype/tools/jsstyle +0 -839
- package/node_modules/http-signature/lib/util.js +0 -306
- package/node_modules/inflight/node_modules/once/package.json +0 -86
- package/node_modules/inflight/node_modules/once/test/once.js +0 -23
- package/node_modules/rimraf/node_modules/glob/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/once/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/once/README.md +0 -51
- package/node_modules/rimraf/node_modules/once/once.js +0 -21
- package/node_modules/rimraf/node_modules/once/package.json +0 -84
- package/node_modules/rimraf/node_modules/once/test/once.js +0 -23
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/util.js +0 -106
- package/node_modules/wrappy/LICENSE +0 -15
- /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/.npmignore +0 -0
- /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/README.md +0 -0
- /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/example.js +0 -0
- /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/index.js +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.npmignore +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.travis.yml +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/LICENSE.md +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/Makefile +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/README.md +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/example.js +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/index.js +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/test/balanced.js +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/.travis.yml +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/LICENSE +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/README.markdown +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/example/map.js +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/index.js +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/test/map.js +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/.npmignore +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/.travis.yml +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/CONTRIBUTING.md +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/LICENSE +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/README.md +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/abbrev.js +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/test.js +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/.eslintrc +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/LICENSE +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/README.md +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/inflight.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/LICENSE +0 -0
- /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/README.md +0 -0
- /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/test/basic.js +0 -0
- /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/wrappy.js +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/test.js +0 -0
- /package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/README.md +0 -0
- /package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/minimatch.js +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob}/node_modules/once/README.md +0 -0
- /package/node_modules/{inflight/node_modules/once → rimraf/node_modules/glob/node_modules/once/node_modules/wrappy}/LICENSE +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob}/node_modules/once/once.js +0 -0
- /package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/index.js +0 -0
- /package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/readme.md +0 -0
- /package/node_modules/{deep-extend → verror}/.npmignore +0 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
module.exports = balanced;
|
2
|
+
function balanced(a, b, str) {
|
3
|
+
var bal = 0;
|
4
|
+
var m = {};
|
5
|
+
var ended = false;
|
6
|
+
|
7
|
+
for (var i = 0; i < str.length; i++) {
|
8
|
+
if (a == str.substr(i, a.length)) {
|
9
|
+
if (!('start' in m)) m.start = i;
|
10
|
+
bal++;
|
11
|
+
}
|
12
|
+
else if (b == str.substr(i, b.length) && 'start' in m) {
|
13
|
+
ended = true;
|
14
|
+
bal--;
|
15
|
+
if (!bal) {
|
16
|
+
m.end = i;
|
17
|
+
m.pre = str.substr(0, m.start);
|
18
|
+
m.body = (m.end - m.start > 1)
|
19
|
+
? str.substring(m.start + a.length, m.end)
|
20
|
+
: '';
|
21
|
+
m.post = str.slice(m.end + b.length);
|
22
|
+
return m;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
// if we opened more than we closed, find the one we closed
|
28
|
+
if (bal && ended) {
|
29
|
+
var start = m.start + a.length;
|
30
|
+
m = balanced(a, b, str.substr(start));
|
31
|
+
if (m) {
|
32
|
+
m.start += start;
|
33
|
+
m.end += start;
|
34
|
+
m.pre = str.slice(0, start) + m.pre;
|
35
|
+
}
|
36
|
+
return m;
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
{
|
2
|
+
"_from": "balanced-match@^0.2.0",
|
3
|
+
"_id": "balanced-match@0.2.1",
|
4
|
+
"_location": "/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
|
+
"/rimraf/glob/minimatch/brace-expansion"
|
14
|
+
],
|
15
|
+
"_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.2.1.tgz",
|
16
|
+
"_shasum": "7bc658b4bed61eee424ad74f75f5c3e2c4df3cc7",
|
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": "~1.1.1"
|
29
|
+
},
|
30
|
+
"directories": {},
|
31
|
+
"dist": {
|
32
|
+
"shasum": "7bc658b4bed61eee424ad74f75f5c3e2c4df3cc7",
|
33
|
+
"tarball": "http://registry.npmjs.org/balanced-match/-/balanced-match-0.2.1.tgz"
|
34
|
+
},
|
35
|
+
"gitHead": "d743dd31d7376e0fcf99392a4be7227f2e99bf5d",
|
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.2.1"
|
79
|
+
}
|
@@ -0,0 +1,56 @@
|
|
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.end();
|
56
|
+
});
|
@@ -0,0 +1,18 @@
|
|
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.
|
@@ -0,0 +1,62 @@
|
|
1
|
+
concat-map
|
2
|
+
==========
|
3
|
+
|
4
|
+
Concatenative mapdashery.
|
5
|
+
|
6
|
+
[](http://ci.testling.com/substack/node-concat-map)
|
7
|
+
|
8
|
+
[](http://travis-ci.org/substack/node-concat-map)
|
9
|
+
|
10
|
+
example
|
11
|
+
=======
|
12
|
+
|
13
|
+
``` js
|
14
|
+
var concatMap = require('concat-map');
|
15
|
+
var xs = [ 1, 2, 3, 4, 5, 6 ];
|
16
|
+
var ys = concatMap(xs, function (x) {
|
17
|
+
return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
|
18
|
+
});
|
19
|
+
console.dir(ys);
|
20
|
+
```
|
21
|
+
|
22
|
+
***
|
23
|
+
|
24
|
+
```
|
25
|
+
[ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]
|
26
|
+
```
|
27
|
+
|
28
|
+
methods
|
29
|
+
=======
|
30
|
+
|
31
|
+
``` js
|
32
|
+
var concatMap = require('concat-map')
|
33
|
+
```
|
34
|
+
|
35
|
+
concatMap(xs, fn)
|
36
|
+
-----------------
|
37
|
+
|
38
|
+
Return an array of concatenated elements by calling `fn(x, i)` for each element
|
39
|
+
`x` and each index `i` in the array `xs`.
|
40
|
+
|
41
|
+
When `fn(x, i)` returns an array, its result will be concatenated with the
|
42
|
+
result array. If `fn(x, i)` returns anything else, that value will be pushed
|
43
|
+
onto the end of the result array.
|
44
|
+
|
45
|
+
install
|
46
|
+
=======
|
47
|
+
|
48
|
+
With [npm](http://npmjs.org) do:
|
49
|
+
|
50
|
+
```
|
51
|
+
npm install concat-map
|
52
|
+
```
|
53
|
+
|
54
|
+
license
|
55
|
+
=======
|
56
|
+
|
57
|
+
MIT
|
58
|
+
|
59
|
+
notes
|
60
|
+
=====
|
61
|
+
|
62
|
+
This module was written while sitting high above the ground in a tree.
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module.exports = function (xs, fn) {
|
2
|
+
var res = [];
|
3
|
+
for (var i = 0; i < xs.length; i++) {
|
4
|
+
var x = fn(xs[i], i);
|
5
|
+
if (isArray(x)) res.push.apply(res, x);
|
6
|
+
else res.push(x);
|
7
|
+
}
|
8
|
+
return res;
|
9
|
+
};
|
10
|
+
|
11
|
+
var isArray = Array.isArray || function (xs) {
|
12
|
+
return Object.prototype.toString.call(xs) === '[object Array]';
|
13
|
+
};
|
@@ -0,0 +1,90 @@
|
|
1
|
+
{
|
2
|
+
"_from": "concat-map@0.0.1",
|
3
|
+
"_id": "concat-map@0.0.1",
|
4
|
+
"_location": "/rimraf/glob/minimatch/brace-expansion/concat-map",
|
5
|
+
"_npmUser": {
|
6
|
+
"email": "mail@substack.net",
|
7
|
+
"name": "substack"
|
8
|
+
},
|
9
|
+
"_npmVersion": "1.3.21",
|
10
|
+
"_phantomChildren": {},
|
11
|
+
"_requiredBy": [
|
12
|
+
"/rimraf/glob/minimatch/brace-expansion"
|
13
|
+
],
|
14
|
+
"_resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
15
|
+
"_shasum": "d8a96bd77fd68df7793a73036a3ba0d5405d477b",
|
16
|
+
"author": {
|
17
|
+
"email": "mail@substack.net",
|
18
|
+
"name": "James Halliday",
|
19
|
+
"url": "http://substack.net"
|
20
|
+
},
|
21
|
+
"bugs": {
|
22
|
+
"url": "https://github.com/substack/node-concat-map/issues"
|
23
|
+
},
|
24
|
+
"dependencies": {},
|
25
|
+
"description": "concatenative mapdashery",
|
26
|
+
"devDependencies": {
|
27
|
+
"tape": "~2.4.0"
|
28
|
+
},
|
29
|
+
"directories": {
|
30
|
+
"example": "example",
|
31
|
+
"test": "test"
|
32
|
+
},
|
33
|
+
"dist": {
|
34
|
+
"shasum": "d8a96bd77fd68df7793a73036a3ba0d5405d477b",
|
35
|
+
"tarball": "http://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
|
36
|
+
},
|
37
|
+
"homepage": "https://github.com/substack/node-concat-map",
|
38
|
+
"keywords": [
|
39
|
+
"concat",
|
40
|
+
"concatMap",
|
41
|
+
"functional",
|
42
|
+
"higher-order",
|
43
|
+
"map"
|
44
|
+
],
|
45
|
+
"license": "MIT",
|
46
|
+
"main": "index.js",
|
47
|
+
"maintainers": [
|
48
|
+
{
|
49
|
+
"name": "substack",
|
50
|
+
"email": "mail@substack.net"
|
51
|
+
}
|
52
|
+
],
|
53
|
+
"name": "concat-map",
|
54
|
+
"optionalDependencies": {},
|
55
|
+
"readme": "ERROR: No README data found!",
|
56
|
+
"repository": {
|
57
|
+
"type": "git",
|
58
|
+
"url": "git://github.com/substack/node-concat-map.git"
|
59
|
+
},
|
60
|
+
"scripts": {
|
61
|
+
"test": "tape test/*.js"
|
62
|
+
},
|
63
|
+
"testling": {
|
64
|
+
"browsers": {
|
65
|
+
"chrome": [
|
66
|
+
10,
|
67
|
+
22
|
68
|
+
],
|
69
|
+
"ff": [
|
70
|
+
10,
|
71
|
+
15,
|
72
|
+
3.5
|
73
|
+
],
|
74
|
+
"ie": [
|
75
|
+
6,
|
76
|
+
7,
|
77
|
+
8,
|
78
|
+
9
|
79
|
+
],
|
80
|
+
"opera": [
|
81
|
+
12
|
82
|
+
],
|
83
|
+
"safari": [
|
84
|
+
5.1
|
85
|
+
]
|
86
|
+
},
|
87
|
+
"files": "test/*.js"
|
88
|
+
},
|
89
|
+
"version": "0.0.1"
|
90
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
var concatMap = require('../');
|
2
|
+
var test = require('tape');
|
3
|
+
|
4
|
+
test('empty or not', function (t) {
|
5
|
+
var xs = [ 1, 2, 3, 4, 5, 6 ];
|
6
|
+
var ixes = [];
|
7
|
+
var ys = concatMap(xs, function (x, ix) {
|
8
|
+
ixes.push(ix);
|
9
|
+
return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
|
10
|
+
});
|
11
|
+
t.same(ys, [ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]);
|
12
|
+
t.same(ixes, [ 0, 1, 2, 3, 4, 5 ]);
|
13
|
+
t.end();
|
14
|
+
});
|
15
|
+
|
16
|
+
test('always something', function (t) {
|
17
|
+
var xs = [ 'a', 'b', 'c', 'd' ];
|
18
|
+
var ys = concatMap(xs, function (x) {
|
19
|
+
return x === 'b' ? [ 'B', 'B', 'B' ] : [ x ];
|
20
|
+
});
|
21
|
+
t.same(ys, [ 'a', 'B', 'B', 'B', 'c', 'd' ]);
|
22
|
+
t.end();
|
23
|
+
});
|
24
|
+
|
25
|
+
test('scalars', function (t) {
|
26
|
+
var xs = [ 'a', 'b', 'c', 'd' ];
|
27
|
+
var ys = concatMap(xs, function (x) {
|
28
|
+
return x === 'b' ? [ 'B', 'B', 'B' ] : x;
|
29
|
+
});
|
30
|
+
t.same(ys, [ 'a', 'B', 'B', 'B', 'c', 'd' ]);
|
31
|
+
t.end();
|
32
|
+
});
|
33
|
+
|
34
|
+
test('undefs', function (t) {
|
35
|
+
var xs = [ 'a', 'b', 'c', 'd' ];
|
36
|
+
var ys = concatMap(xs, function () {});
|
37
|
+
t.same(ys, [ undefined, undefined, undefined, undefined ]);
|
38
|
+
t.end();
|
39
|
+
});
|
@@ -0,0 +1,81 @@
|
|
1
|
+
{
|
2
|
+
"_from": "brace-expansion@^1.0.0",
|
3
|
+
"_id": "brace-expansion@1.1.1",
|
4
|
+
"_location": "/rimraf/glob/minimatch/brace-expansion",
|
5
|
+
"_nodeVersion": "0.10.36",
|
6
|
+
"_npmUser": {
|
7
|
+
"email": "julian@juliangruber.com",
|
8
|
+
"name": "juliangruber"
|
9
|
+
},
|
10
|
+
"_npmVersion": "2.6.1",
|
11
|
+
"_phantomChildren": {},
|
12
|
+
"_requiredBy": [
|
13
|
+
"/rimraf/glob/minimatch"
|
14
|
+
],
|
15
|
+
"_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.1.tgz",
|
16
|
+
"_shasum": "da5fb78aef4c44c9e4acf525064fb3208ebab045",
|
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/brace-expansion/issues"
|
24
|
+
},
|
25
|
+
"dependencies": {
|
26
|
+
"balanced-match": "^0.2.0",
|
27
|
+
"concat-map": "0.0.1"
|
28
|
+
},
|
29
|
+
"description": "Brace expansion as known from sh/bash",
|
30
|
+
"devDependencies": {
|
31
|
+
"tape": "^3.0.3"
|
32
|
+
},
|
33
|
+
"directories": {},
|
34
|
+
"dist": {
|
35
|
+
"shasum": "da5fb78aef4c44c9e4acf525064fb3208ebab045",
|
36
|
+
"tarball": "http://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.1.tgz"
|
37
|
+
},
|
38
|
+
"gitHead": "f50da498166d76ea570cf3b30179f01f0f119612",
|
39
|
+
"homepage": "https://github.com/juliangruber/brace-expansion",
|
40
|
+
"keywords": [],
|
41
|
+
"license": "MIT",
|
42
|
+
"main": "index.js",
|
43
|
+
"maintainers": [
|
44
|
+
{
|
45
|
+
"name": "juliangruber",
|
46
|
+
"email": "julian@juliangruber.com"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"name": "isaacs",
|
50
|
+
"email": "isaacs@npmjs.com"
|
51
|
+
}
|
52
|
+
],
|
53
|
+
"name": "brace-expansion",
|
54
|
+
"optionalDependencies": {},
|
55
|
+
"readme": "ERROR: No README data found!",
|
56
|
+
"repository": {
|
57
|
+
"type": "git",
|
58
|
+
"url": "git://github.com/juliangruber/brace-expansion.git"
|
59
|
+
},
|
60
|
+
"scripts": {
|
61
|
+
"gentest": "bash test/generate.sh",
|
62
|
+
"test": "tape test/*.js"
|
63
|
+
},
|
64
|
+
"testling": {
|
65
|
+
"browsers": [
|
66
|
+
"android-browser/4.2..latest",
|
67
|
+
"chrome/25..latest",
|
68
|
+
"chrome/canary",
|
69
|
+
"firefox/20..latest",
|
70
|
+
"firefox/nightly",
|
71
|
+
"ie/8..latest",
|
72
|
+
"ipad/6.0..latest",
|
73
|
+
"iphone/6.0..latest",
|
74
|
+
"opera/12..latest",
|
75
|
+
"opera/next",
|
76
|
+
"safari/5.1..latest"
|
77
|
+
],
|
78
|
+
"files": "test/*.js"
|
79
|
+
},
|
80
|
+
"version": "1.1.1"
|
81
|
+
}
|
package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/package.json
RENAMED
@@ -1,15 +1,7 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"minimatch@2 || 3",
|
5
|
-
"/Users/eshanker/Code/fsevents/node_modules/rimraf/node_modules/glob"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "minimatch@>=2.0.0 <3.0.0||>=3.0.0 <4.0.0",
|
2
|
+
"_from": "minimatch@2 || 3",
|
9
3
|
"_id": "minimatch@3.0.0",
|
10
|
-
"
|
11
|
-
"_installable": true,
|
12
|
-
"_location": "/rimraf/minimatch",
|
4
|
+
"_location": "/rimraf/glob/minimatch",
|
13
5
|
"_nodeVersion": "4.0.0",
|
14
6
|
"_npmUser": {
|
15
7
|
"email": "isaacs@npmjs.com",
|
@@ -17,22 +9,11 @@
|
|
17
9
|
},
|
18
10
|
"_npmVersion": "3.3.2",
|
19
11
|
"_phantomChildren": {},
|
20
|
-
"_requested": {
|
21
|
-
"name": "minimatch",
|
22
|
-
"raw": "minimatch@2 || 3",
|
23
|
-
"rawSpec": "2 || 3",
|
24
|
-
"scope": null,
|
25
|
-
"spec": ">=2.0.0 <3.0.0||>=3.0.0 <4.0.0",
|
26
|
-
"type": "range"
|
27
|
-
},
|
28
12
|
"_requiredBy": [
|
29
13
|
"/rimraf/glob"
|
30
14
|
],
|
31
15
|
"_resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.0.tgz",
|
32
16
|
"_shasum": "5236157a51e4f004c177fb3c527ff7dd78f0ef83",
|
33
|
-
"_shrinkwrap": null,
|
34
|
-
"_spec": "minimatch@2 || 3",
|
35
|
-
"_where": "/Users/eshanker/Code/fsevents/node_modules/rimraf/node_modules/glob",
|
36
17
|
"author": {
|
37
18
|
"email": "i@izs.me",
|
38
19
|
"name": "Isaac Z. Schlueter",
|
@@ -72,6 +53,7 @@
|
|
72
53
|
],
|
73
54
|
"name": "minimatch",
|
74
55
|
"optionalDependencies": {},
|
56
|
+
"readme": "ERROR: No README data found!",
|
75
57
|
"repository": {
|
76
58
|
"type": "git",
|
77
59
|
"url": "git://github.com/isaacs/minimatch.git"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# wrappy
|
2
|
+
|
3
|
+
Callback wrapping utility
|
4
|
+
|
5
|
+
## USAGE
|
6
|
+
|
7
|
+
```javascript
|
8
|
+
var wrappy = require("wrappy")
|
9
|
+
|
10
|
+
// var wrapper = wrappy(wrapperFunction)
|
11
|
+
|
12
|
+
// make sure a cb is called only once
|
13
|
+
// See also: http://npm.im/once for this specific use case
|
14
|
+
var once = wrappy(function (cb) {
|
15
|
+
var called = false
|
16
|
+
return function () {
|
17
|
+
if (called) return
|
18
|
+
called = true
|
19
|
+
return cb.apply(this, arguments)
|
20
|
+
}
|
21
|
+
})
|
22
|
+
|
23
|
+
function printBoo () {
|
24
|
+
console.log('boo')
|
25
|
+
}
|
26
|
+
// has some rando property
|
27
|
+
printBoo.iAmBooPrinter = true
|
28
|
+
|
29
|
+
var onlyPrintOnce = once(printBoo)
|
30
|
+
|
31
|
+
onlyPrintOnce() // prints 'boo'
|
32
|
+
onlyPrintOnce() // does nothing
|
33
|
+
|
34
|
+
// random property is retained!
|
35
|
+
assert.equal(onlyPrintOnce.iAmBooPrinter, true)
|
36
|
+
```
|
package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
{
|
2
|
+
"_from": "wrappy@1",
|
3
|
+
"_id": "wrappy@1.0.1",
|
4
|
+
"_location": "/rimraf/glob/once/wrappy",
|
5
|
+
"_nodeVersion": "0.10.31",
|
6
|
+
"_npmUser": {
|
7
|
+
"email": "i@izs.me",
|
8
|
+
"name": "isaacs"
|
9
|
+
},
|
10
|
+
"_npmVersion": "2.0.0",
|
11
|
+
"_phantomChildren": {},
|
12
|
+
"_requiredBy": [
|
13
|
+
"/rimraf/glob/once"
|
14
|
+
],
|
15
|
+
"_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz",
|
16
|
+
"_shasum": "1e65969965ccbc2db4548c6b84a6f2c5aedd4739",
|
17
|
+
"author": {
|
18
|
+
"email": "i@izs.me",
|
19
|
+
"name": "Isaac Z. Schlueter",
|
20
|
+
"url": "http://blog.izs.me/"
|
21
|
+
},
|
22
|
+
"bugs": {
|
23
|
+
"url": "https://github.com/npm/wrappy/issues"
|
24
|
+
},
|
25
|
+
"dependencies": {},
|
26
|
+
"description": "Callback wrapping utility",
|
27
|
+
"devDependencies": {
|
28
|
+
"tap": "^0.4.12"
|
29
|
+
},
|
30
|
+
"directories": {
|
31
|
+
"test": "test"
|
32
|
+
},
|
33
|
+
"dist": {
|
34
|
+
"shasum": "1e65969965ccbc2db4548c6b84a6f2c5aedd4739",
|
35
|
+
"tarball": "http://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz"
|
36
|
+
},
|
37
|
+
"gitHead": "006a8cbac6b99988315834c207896eed71fd069a",
|
38
|
+
"homepage": "https://github.com/npm/wrappy",
|
39
|
+
"license": "ISC",
|
40
|
+
"main": "wrappy.js",
|
41
|
+
"maintainers": [
|
42
|
+
{
|
43
|
+
"name": "isaacs",
|
44
|
+
"email": "i@izs.me"
|
45
|
+
}
|
46
|
+
],
|
47
|
+
"name": "wrappy",
|
48
|
+
"optionalDependencies": {},
|
49
|
+
"readme": "ERROR: No README data found!",
|
50
|
+
"repository": {
|
51
|
+
"type": "git",
|
52
|
+
"url": "git+https://github.com/npm/wrappy.git"
|
53
|
+
},
|
54
|
+
"scripts": {
|
55
|
+
"test": "tap test/*.js"
|
56
|
+
},
|
57
|
+
"version": "1.0.1"
|
58
|
+
}
|