fsevents 1.0.5 → 1.0.6

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.

Files changed (360) hide show
  1. package/Readme.md +12 -13
  2. package/node_modules/ansi/package.json +1 -2
  3. package/node_modules/are-we-there-yet/package.json +1 -2
  4. package/node_modules/asn1/.travis.yml +4 -0
  5. package/node_modules/asn1/lib/ber/reader.js +27 -33
  6. package/node_modules/asn1/lib/ber/writer.js +10 -11
  7. package/node_modules/asn1/package.json +21 -19
  8. package/node_modules/asn1/tst/ber/reader.test.js +36 -0
  9. package/node_modules/asn1/tst/ber/writer.test.js +74 -0
  10. package/node_modules/assert-plus/package.json +1 -0
  11. package/node_modules/{ctype → bl/node_modules/readable-stream/node_modules/core-util-is}/LICENSE +1 -6
  12. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +11 -11
  13. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/package.json +17 -12
  14. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/test.js +68 -0
  15. package/node_modules/boom/package.json +1 -1
  16. package/node_modules/commander/package.json +1 -1
  17. package/node_modules/core-util-is/LICENSE +19 -0
  18. package/node_modules/core-util-is/lib/util.js +11 -11
  19. package/node_modules/core-util-is/package.json +17 -12
  20. package/node_modules/core-util-is/test.js +68 -0
  21. package/node_modules/dashdash/README.md +508 -0
  22. package/node_modules/dashdash/lib/dashdash.js +813 -0
  23. package/node_modules/dashdash/package.json +87 -0
  24. package/node_modules/deep-extend/LICENSE +1 -1
  25. package/node_modules/deep-extend/README.md +89 -52
  26. package/node_modules/deep-extend/index.js +1 -90
  27. package/node_modules/deep-extend/lib/deep-extend.js +144 -0
  28. package/node_modules/deep-extend/package.json +47 -16
  29. package/node_modules/deep-extend/test/index.spec.js +168 -5
  30. package/node_modules/delegates/package.json +1 -2
  31. package/node_modules/ecc-jsbn/.npmignore +15 -0
  32. package/node_modules/ecc-jsbn/LICENSE +21 -0
  33. package/node_modules/ecc-jsbn/README.md +8 -0
  34. package/node_modules/ecc-jsbn/index.js +57 -0
  35. package/node_modules/ecc-jsbn/lib/LICENSE-jsbn +40 -0
  36. package/node_modules/ecc-jsbn/lib/ec.js +561 -0
  37. package/node_modules/ecc-jsbn/lib/sec.js +170 -0
  38. package/node_modules/ecc-jsbn/package.json +63 -0
  39. package/node_modules/ecc-jsbn/test.js +14 -0
  40. package/node_modules/extsprintf/.gitmodules +6 -0
  41. package/node_modules/{path-is-absolute/license → extsprintf/LICENSE} +2 -4
  42. package/node_modules/extsprintf/Makefile +23 -0
  43. package/node_modules/extsprintf/Makefile.deps +39 -0
  44. package/node_modules/extsprintf/Makefile.targ +285 -0
  45. package/node_modules/extsprintf/README.md +39 -0
  46. package/node_modules/extsprintf/examples/simple.js +2 -0
  47. package/node_modules/{ctype/tools/jsl.conf → extsprintf/jsl.node.conf} +71 -63
  48. package/node_modules/extsprintf/lib/extsprintf.js +166 -0
  49. package/node_modules/extsprintf/package.json +48 -0
  50. package/node_modules/fstream/package.json +1 -2
  51. package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/package.json +4 -22
  52. package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/package.json +3 -21
  53. package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/package.json +4 -23
  54. package/node_modules/fstream-ignore/node_modules/minimatch/package.json +4 -24
  55. package/node_modules/fstream-ignore/package.json +1 -2
  56. package/node_modules/gauge/package.json +1 -2
  57. package/node_modules/har-validator/package.json +15 -15
  58. package/node_modules/has-unicode/package.json +1 -2
  59. package/node_modules/hawk/dist/client.js +340 -0
  60. package/node_modules/hawk/lib/browser.js +14 -20
  61. package/node_modules/hawk/package.json +10 -10
  62. package/node_modules/hawk/test/browser.js +134 -101
  63. package/node_modules/hawk/test/index.js +61 -61
  64. package/node_modules/hawk/test/server.js +72 -84
  65. package/node_modules/hawk/test/uri.js +52 -63
  66. package/node_modules/http-signature/CHANGES.md +39 -0
  67. package/node_modules/http-signature/http_signing.md +16 -17
  68. package/node_modules/http-signature/lib/index.js +6 -4
  69. package/node_modules/http-signature/lib/parser.js +43 -29
  70. package/node_modules/http-signature/lib/signer.js +290 -74
  71. package/node_modules/http-signature/lib/utils.js +112 -0
  72. package/node_modules/http-signature/lib/verify.js +47 -15
  73. package/node_modules/http-signature/package.json +20 -14
  74. package/node_modules/is-my-json-valid/index.js +16 -14
  75. package/node_modules/is-my-json-valid/package.json +16 -12
  76. package/node_modules/is-typedarray/LICENSE.md +18 -0
  77. package/node_modules/is-typedarray/README.md +16 -0
  78. package/node_modules/is-typedarray/index.js +41 -0
  79. package/node_modules/is-typedarray/package.json +63 -0
  80. package/node_modules/is-typedarray/test.js +34 -0
  81. package/node_modules/jodid25519/.npmignore +11 -0
  82. package/node_modules/jodid25519/.travis.yml +7 -0
  83. package/node_modules/jodid25519/AUTHORS.md +3 -0
  84. package/node_modules/jodid25519/LICENSE +23 -0
  85. package/node_modules/jodid25519/README.md +51 -0
  86. package/node_modules/jodid25519/almond.0 +42 -0
  87. package/node_modules/jodid25519/almond.1 +13 -0
  88. package/node_modules/jodid25519/index.js +35 -0
  89. package/node_modules/jodid25519/jsdoc.json +19 -0
  90. package/node_modules/jodid25519/lib/core.js +481 -0
  91. package/node_modules/jodid25519/lib/curve255.js +221 -0
  92. package/node_modules/jodid25519/lib/dh.js +111 -0
  93. package/node_modules/jodid25519/lib/eddsa.js +573 -0
  94. package/node_modules/jodid25519/lib/utils.js +198 -0
  95. package/node_modules/jodid25519/package.json +77 -0
  96. package/node_modules/jsbn/.npmignore +2 -0
  97. package/node_modules/jsbn/LICENSE +40 -0
  98. package/node_modules/jsbn/README.md +175 -0
  99. package/node_modules/jsbn/example.html +12 -0
  100. package/node_modules/jsbn/example.js +3 -0
  101. package/node_modules/jsbn/index.js +1358 -0
  102. package/node_modules/jsbn/package.json +60 -0
  103. package/node_modules/json-schema/README.md +5 -0
  104. package/node_modules/json-schema/draft-00/hyper-schema +68 -0
  105. package/node_modules/json-schema/draft-00/json-ref +26 -0
  106. package/node_modules/json-schema/draft-00/links +33 -0
  107. package/node_modules/json-schema/draft-00/schema +155 -0
  108. package/node_modules/json-schema/draft-01/hyper-schema +68 -0
  109. package/node_modules/json-schema/draft-01/json-ref +26 -0
  110. package/node_modules/json-schema/draft-01/links +33 -0
  111. package/node_modules/json-schema/draft-01/schema +155 -0
  112. package/node_modules/json-schema/draft-02/hyper-schema +68 -0
  113. package/node_modules/json-schema/draft-02/json-ref +26 -0
  114. package/node_modules/json-schema/draft-02/links +35 -0
  115. package/node_modules/json-schema/draft-02/schema +166 -0
  116. package/node_modules/json-schema/draft-03/examples/address +20 -0
  117. package/node_modules/json-schema/draft-03/examples/calendar +53 -0
  118. package/node_modules/json-schema/draft-03/examples/card +105 -0
  119. package/node_modules/json-schema/draft-03/examples/geo +8 -0
  120. package/node_modules/json-schema/draft-03/examples/interfaces +23 -0
  121. package/node_modules/json-schema/draft-03/hyper-schema +60 -0
  122. package/node_modules/json-schema/draft-03/json-ref +26 -0
  123. package/node_modules/json-schema/draft-03/links +35 -0
  124. package/node_modules/json-schema/draft-03/schema +174 -0
  125. package/node_modules/json-schema/draft-04/hyper-schema +60 -0
  126. package/node_modules/json-schema/draft-04/links +41 -0
  127. package/node_modules/json-schema/draft-04/schema +189 -0
  128. package/node_modules/json-schema/draft-zyp-json-schema-03.xml +1120 -0
  129. package/node_modules/json-schema/draft-zyp-json-schema-04.xml +1072 -0
  130. package/node_modules/json-schema/lib/links.js +52 -0
  131. package/node_modules/json-schema/lib/validate.js +260 -0
  132. package/node_modules/json-schema/package.json +67 -0
  133. package/node_modules/json-schema/test/tests.js +95 -0
  134. package/node_modules/jsprim/CHANGES.md +30 -0
  135. package/node_modules/jsprim/LICENSE +19 -0
  136. package/node_modules/jsprim/README.md +228 -0
  137. package/node_modules/jsprim/lib/jsprim.js +478 -0
  138. package/node_modules/jsprim/package.json +54 -0
  139. package/node_modules/lodash._basetostring/package.json +1 -2
  140. package/node_modules/lodash._createpadding/package.json +1 -2
  141. package/node_modules/lodash.pad/package.json +1 -2
  142. package/node_modules/lodash.padleft/package.json +1 -2
  143. package/node_modules/lodash.padright/package.json +1 -2
  144. package/node_modules/lodash.repeat/package.json +1 -2
  145. package/node_modules/node-pre-gyp/CHANGELOG.md +8 -0
  146. package/node_modules/node-pre-gyp/README.md +570 -0
  147. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +4 -0
  148. package/node_modules/node-pre-gyp/node_modules/nopt/lib/nopt.js +2 -1
  149. package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/package.json +30 -37
  150. package/node_modules/node-pre-gyp/node_modules/nopt/package.json +37 -57
  151. package/node_modules/node-pre-gyp/node_modules/nopt/test/basic.js +22 -0
  152. package/node_modules/node-pre-gyp/package.json +17 -17
  153. package/node_modules/node-uuid/.npmignore +2 -0
  154. package/node_modules/node-uuid/README.md +12 -1
  155. package/node_modules/node-uuid/bower.json +1 -1
  156. package/node_modules/node-uuid/component.json +11 -4
  157. package/node_modules/node-uuid/package.json +25 -12
  158. package/node_modules/node-uuid/test/test.js +3 -0
  159. package/node_modules/node-uuid/uuid.js +70 -45
  160. package/node_modules/npmlog/.travis.yml +14 -0
  161. package/node_modules/npmlog/log.js +3 -0
  162. package/node_modules/npmlog/package.json +23 -20
  163. package/node_modules/npmlog/test/basic.js +8 -1
  164. package/node_modules/once/package.json +2 -3
  165. package/node_modules/pinkie/index.js +23 -7
  166. package/node_modules/pinkie/package.json +22 -15
  167. package/node_modules/pinkie/readme.md +17 -9
  168. package/node_modules/pinkie-promise/package.json +16 -14
  169. package/node_modules/pinkie-promise/readme.md +5 -3
  170. package/node_modules/rc/README.md +1 -1
  171. package/node_modules/rc/index.js +1 -1
  172. package/node_modules/rc/node_modules/minimist/package.json +1 -1
  173. package/node_modules/rc/package.json +12 -12
  174. package/node_modules/request/.eslintrc +1 -1
  175. package/node_modules/request/.travis.yml +4 -4
  176. package/node_modules/request/CHANGELOG.md +25 -0
  177. package/node_modules/request/README.md +12 -13
  178. package/node_modules/request/lib/har.js +84 -75
  179. package/node_modules/request/lib/redirect.js +2 -3
  180. package/node_modules/request/lib/tunnel.js +13 -18
  181. package/node_modules/request/package.json +17 -16
  182. package/node_modules/request/request.js +16 -59
  183. package/node_modules/rimraf/README.md +7 -2
  184. package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/package.json +5 -25
  185. package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/package.json +5 -25
  186. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +16 -0
  187. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +42 -0
  188. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +1 -0
  189. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +23 -0
  190. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +58 -0
  191. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +25 -0
  192. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +3 -0
  193. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +122 -0
  194. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +8 -0
  195. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +191 -0
  196. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +2 -0
  197. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +3 -0
  198. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md +21 -0
  199. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +6 -0
  200. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +80 -0
  201. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +5 -0
  202. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +38 -0
  203. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +79 -0
  204. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +56 -0
  205. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +4 -0
  206. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +18 -0
  207. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +62 -0
  208. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +6 -0
  209. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +13 -0
  210. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +90 -0
  211. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +39 -0
  212. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +81 -0
  213. package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/package.json +3 -21
  214. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +36 -0
  215. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +58 -0
  216. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +51 -0
  217. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +33 -0
  218. package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +70 -0
  219. package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/package.json +4 -22
  220. package/node_modules/rimraf/node_modules/glob/package.json +2 -20
  221. package/node_modules/rimraf/package.json +10 -10
  222. package/node_modules/semver/README.md +25 -1
  223. package/node_modules/semver/package.json +10 -10
  224. package/node_modules/semver/range.bnf +16 -0
  225. package/node_modules/semver/semver.js +0 -12
  226. package/node_modules/sshpk/.npmignore +8 -0
  227. package/node_modules/sshpk/.travis.yml +11 -0
  228. package/node_modules/sshpk/LICENSE +18 -0
  229. package/node_modules/sshpk/README.md +436 -0
  230. package/node_modules/sshpk/bin/sshpk-conv +183 -0
  231. package/node_modules/sshpk/lib/algs.js +168 -0
  232. package/node_modules/sshpk/lib/dhe.js +312 -0
  233. package/node_modules/sshpk/lib/ed-compat.js +94 -0
  234. package/node_modules/sshpk/lib/errors.js +58 -0
  235. package/node_modules/sshpk/lib/fingerprint.js +140 -0
  236. package/node_modules/sshpk/lib/formats/auto.js +73 -0
  237. package/node_modules/sshpk/lib/formats/pem.js +152 -0
  238. package/node_modules/sshpk/lib/formats/pkcs1.js +320 -0
  239. package/node_modules/sshpk/lib/formats/pkcs8.js +510 -0
  240. package/node_modules/sshpk/lib/formats/rfc4253.js +145 -0
  241. package/node_modules/sshpk/lib/formats/ssh-private.js +138 -0
  242. package/node_modules/sshpk/lib/formats/ssh.js +114 -0
  243. package/node_modules/sshpk/lib/index.js +25 -0
  244. package/node_modules/sshpk/lib/key.js +260 -0
  245. package/node_modules/sshpk/lib/private-key.js +224 -0
  246. package/node_modules/sshpk/lib/signature.js +237 -0
  247. package/node_modules/sshpk/lib/ssh-buffer.js +123 -0
  248. package/node_modules/sshpk/lib/utils.js +207 -0
  249. package/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
  250. package/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +8 -0
  251. package/node_modules/sshpk/node_modules/assert-plus/README.md +155 -0
  252. package/node_modules/sshpk/node_modules/assert-plus/assert.js +206 -0
  253. package/node_modules/sshpk/node_modules/assert-plus/package.json +88 -0
  254. package/node_modules/sshpk/package.json +92 -0
  255. package/node_modules/strip-json-comments/cli.js +2 -2
  256. package/node_modules/strip-json-comments/package.json +13 -12
  257. package/node_modules/strip-json-comments/readme.md +11 -5
  258. package/node_modules/strip-json-comments/strip-json-comments.js +16 -7
  259. package/node_modules/tar/package.json +1 -2
  260. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/LICENSE +19 -0
  261. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +11 -11
  262. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/package.json +17 -12
  263. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/test.js +68 -0
  264. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/package.json +1 -1
  265. package/node_modules/tar-pack/node_modules/rimraf/package.json +1 -2
  266. package/node_modules/tar-pack/package.json +1 -2
  267. package/node_modules/tough-cookie/lib/cookie.js +1 -1
  268. package/node_modules/tough-cookie/package.json +7 -7
  269. package/node_modules/tweetnacl/.npmignore +4 -0
  270. package/node_modules/tweetnacl/CHANGELOG.md +128 -0
  271. package/node_modules/tweetnacl/README.md +463 -0
  272. package/node_modules/tweetnacl/nacl-fast.js +2418 -0
  273. package/node_modules/tweetnacl/nacl-fast.min.js +2 -0
  274. package/node_modules/tweetnacl/nacl.js +1205 -0
  275. package/node_modules/tweetnacl/nacl.min.js +1 -0
  276. package/node_modules/tweetnacl/package.json +101 -0
  277. package/node_modules/uid-number/package.json +2 -3
  278. package/node_modules/verror/.gitmodules +0 -0
  279. package/node_modules/verror/LICENSE +19 -0
  280. package/node_modules/verror/Makefile +35 -0
  281. package/node_modules/verror/Makefile.targ +285 -0
  282. package/node_modules/verror/README.md +120 -0
  283. package/node_modules/verror/examples/levels-verror.js +36 -0
  284. package/node_modules/verror/examples/levels-werror.js +34 -0
  285. package/node_modules/verror/examples/varargs.js +6 -0
  286. package/node_modules/verror/examples/verror.js +13 -0
  287. package/node_modules/verror/examples/werror.js +14 -0
  288. package/node_modules/verror/jsl.node.conf +139 -0
  289. package/node_modules/verror/lib/verror.js +157 -0
  290. package/node_modules/verror/package.json +51 -0
  291. package/node_modules/verror/tests/tst.inherit.js +100 -0
  292. package/node_modules/verror/tests/tst.verror.js +156 -0
  293. package/node_modules/verror/tests/tst.werror.js +179 -0
  294. package/package.json +3 -3
  295. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/util.js +0 -106
  296. package/node_modules/core-util-is/util.js +0 -106
  297. package/node_modules/ctype/.npmignore +0 -1
  298. package/node_modules/ctype/CHANGELOG +0 -78
  299. package/node_modules/ctype/README +0 -82
  300. package/node_modules/ctype/README.old +0 -298
  301. package/node_modules/ctype/ctf.js +0 -245
  302. package/node_modules/ctype/ctio.js +0 -1485
  303. package/node_modules/ctype/ctype.js +0 -944
  304. package/node_modules/ctype/man/man3ctype/ctio.3ctype +0 -241
  305. package/node_modules/ctype/package.json +0 -51
  306. package/node_modules/ctype/tools/jsstyle +0 -839
  307. package/node_modules/http-signature/lib/util.js +0 -306
  308. package/node_modules/inflight/node_modules/once/package.json +0 -86
  309. package/node_modules/inflight/node_modules/once/test/once.js +0 -23
  310. package/node_modules/rimraf/node_modules/glob/LICENSE +0 -15
  311. package/node_modules/rimraf/node_modules/minimatch/LICENSE +0 -15
  312. package/node_modules/rimraf/node_modules/once/LICENSE +0 -15
  313. package/node_modules/rimraf/node_modules/once/README.md +0 -51
  314. package/node_modules/rimraf/node_modules/once/once.js +0 -21
  315. package/node_modules/rimraf/node_modules/once/package.json +0 -84
  316. package/node_modules/rimraf/node_modules/once/test/once.js +0 -23
  317. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/util.js +0 -106
  318. package/node_modules/wrappy/LICENSE +0 -15
  319. /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/.npmignore +0 -0
  320. /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/README.md +0 -0
  321. /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/example.js +0 -0
  322. /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/index.js +0 -0
  323. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.npmignore +0 -0
  324. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.travis.yml +0 -0
  325. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/LICENSE.md +0 -0
  326. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/Makefile +0 -0
  327. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/README.md +0 -0
  328. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/example.js +0 -0
  329. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/index.js +0 -0
  330. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/test/balanced.js +0 -0
  331. /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/.travis.yml +0 -0
  332. /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/LICENSE +0 -0
  333. /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/README.markdown +0 -0
  334. /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/example/map.js +0 -0
  335. /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/index.js +0 -0
  336. /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/test/map.js +0 -0
  337. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/.npmignore +0 -0
  338. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/.travis.yml +0 -0
  339. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/CONTRIBUTING.md +0 -0
  340. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/LICENSE +0 -0
  341. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/README.md +0 -0
  342. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/abbrev.js +0 -0
  343. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/test.js +0 -0
  344. /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/.eslintrc +0 -0
  345. /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/LICENSE +0 -0
  346. /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/README.md +0 -0
  347. /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/inflight.js +0 -0
  348. /package/node_modules/{fstream-ignore/node_modules/minimatch → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/LICENSE +0 -0
  349. /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/README.md +0 -0
  350. /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/test/basic.js +0 -0
  351. /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/wrappy.js +0 -0
  352. /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/test.js +0 -0
  353. /package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/README.md +0 -0
  354. /package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/minimatch.js +0 -0
  355. /package/node_modules/{inflight → rimraf/node_modules/glob}/node_modules/once/README.md +0 -0
  356. /package/node_modules/{inflight/node_modules/once → rimraf/node_modules/glob/node_modules/once/node_modules/wrappy}/LICENSE +0 -0
  357. /package/node_modules/{inflight → rimraf/node_modules/glob}/node_modules/once/once.js +0 -0
  358. /package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/index.js +0 -0
  359. /package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/readme.md +0 -0
  360. /package/node_modules/{deep-extend → verror}/.npmignore +0 -0
package/Readme.md CHANGED
@@ -1,19 +1,18 @@
1
- # FSEvents [![NPM](https://nodei.co/npm/fsevents.png)](https://nodei.co/npm/fsevents/)
2
- ## Native Access to Mac OS-X FSEvents
1
+ # fsevents [![NPM](https://nodei.co/npm/fsevents.png)](https://nodei.co/npm/fsevents/)
3
2
 
4
- * [Node.js](http://nodejs.org/)
5
- * [Github repo](https://github.com/strongloop/fsevents.git)
6
- * [Module Site](https://github.com/strongloop/fsevents)
7
- * [NPM Page](https://npmjs.org/package/fsevents)
3
+ Native access to OS X FSEvents in [Node.js](http://nodejs.org/)
8
4
 
9
- ## Installation
5
+ The FSEvents API in OS X allows applications to register for notifications of
6
+ changes to a given directory tree. It is a very fast and lightweight alternative
7
+ to kqueue.
8
+
9
+ This is a low-level library. For a cross-compatible file watching module that
10
+ uses fsevents, check out [Chokidar](https://www.npmjs.com/package/chokidar).
10
11
 
11
- $ npm install -g node-gyp
12
- $ git clone https://github.com/strongloop/fsevents.git fsevents
13
- $ cd fsevents
14
- $ node-pre-gyp configure build
12
+ * [Module Site & GitHub](https://github.com/strongloop/fsevents)
13
+ * [NPM Page](https://npmjs.org/package/fsevents)
15
14
 
16
- OR SIMPLY
15
+ ## Installation
17
16
 
18
17
  $ npm install fsevents
19
18
 
@@ -23,7 +22,7 @@ OR SIMPLY
23
22
  var fsevents = require('fsevents');
24
23
  var watcher = fsevents(__dirname);
25
24
  watcher.on('fsevent', function(path, flags, id) { }); // RAW Event as emitted by OS-X
26
- watcher.on('change', function(path, info) {}); // Common Event for all changes
25
+ watcher.on('change', function(path, info) { }); // Common Event for all changes
27
26
  watcher.start() // To start observation
28
27
  watcher.stop() // To end observation
29
28
  ```
@@ -54,8 +54,7 @@
54
54
  ],
55
55
  "name": "ansi",
56
56
  "optionalDependencies": {},
57
- "readme": "ansi.js\n=========\n### Advanced ANSI formatting tool for Node.js\n\n`ansi.js` is a module for Node.js that provides an easy-to-use API for\nwriting ANSI escape codes to `Stream` instances. ANSI escape codes are used to do\nfancy things in a terminal window, like render text in colors, delete characters,\nlines, the entire window, or hide and show the cursor, and lots more!\n\n#### Features:\n\n * 256 color support for the terminal!\n * Make a beep sound from your terminal!\n * Works with *any* writable `Stream` instance.\n * Allows you to move the cursor anywhere on the terminal window.\n * Allows you to delete existing contents from the terminal window.\n * Allows you to hide and show the cursor.\n * Converts CSS color codes and RGB values into ANSI escape codes.\n * Low-level; you are in control of when escape codes are used, it's not abstracted.\n\n\nInstallation\n------------\n\nInstall with `npm`:\n\n``` bash\n$ npm install ansi\n```\n\n\nExample\n-------\n\n``` js\nvar ansi = require('ansi')\n , cursor = ansi(process.stdout)\n\n// You can chain your calls forever:\ncursor\n .red() // Set font color to red\n .bg.grey() // Set background color to grey\n .write('Hello World!') // Write 'Hello World!' to stdout\n .bg.reset() // Reset the bgcolor before writing the trailing \\n,\n // to avoid Terminal glitches\n .write('\\n') // And a final \\n to wrap things up\n\n// Rendering modes are persistent:\ncursor.hex('#660000').bold().underline()\n\n// You can use the regular logging functions, text will be green:\nconsole.log('This is blood red, bold text')\n\n// To reset just the foreground color:\ncursor.fg.reset()\n\nconsole.log('This will still be bold')\n\n// to go to a location (x,y) on the console\n// note: 1-indexed, not 0-indexed:\ncursor.goto(10, 5).write('Five down, ten over')\n\n// to clear the current line:\ncursor.horizontalAbsolute(0).eraseLine().write('Starting again')\n\n// to go to a different column on the current line:\ncursor.horizontalAbsolute(5).write('column five')\n\n// Clean up after yourself!\ncursor.reset()\n```\n\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2012 Nathan Rajlich <nathan@tootallnate.net>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
58
- "readmeFilename": "README.md",
57
+ "readme": "ERROR: No README data found!",
59
58
  "repository": {
60
59
  "type": "git",
61
60
  "url": "git://github.com/TooTallNate/ansi.js.git"
@@ -45,8 +45,7 @@
45
45
  ],
46
46
  "name": "are-we-there-yet",
47
47
  "optionalDependencies": {},
48
- "readme": "are-we-there-yet\n----------------\n\nTrack complex hiearchies of asynchronous task completion statuses. This is\nintended to give you a way of recording and reporting the progress of the big\nrecursive fan-out and gather type workflows that are so common in async.\n\nWhat you do with this completion data is up to you, but the most common use case is to\nfeed it to one of the many progress bar modules.\n\nMost progress bar modules include a rudamentary version of this, but my\nneeds were more complex.\n\nUsage\n=====\n\n```javascript\nvar TrackerGroup = require(\"are-we-there-yet\").TrackerGroup\n\nvar top = new TrackerGroup(\"program\")\n\nvar single = top.newItem(\"one thing\", 100)\nsingle.completeWork(20)\n\nconsole.log(top.completed()) // 0.2\n\nfs.stat(\"file\", function(er, stat) {\n if (er) throw er \n var stream = top.newStream(\"file\", stat.size)\n console.log(top.completed()) // now 0.1 as single is 50% of the job and is 20% complete\n // and 50% * 20% == 10%\n fs.createReadStream(\"file\").pipe(stream).on(\"data\", function (chunk) {\n // do stuff with chunk\n })\n top.on(\"change\", function (name) {\n // called each time a chunk is read from \"file\"\n // top.completed() will start at 0.1 and fill up to 0.6 as the file is read\n })\n})\n```\n\nShared Methods\n==============\n\nAll tracker objects described below have the following methods, they, along\nwith the event comprise the interface for consumers of tracker objects.\n\n* var completed = tracker.completed()\n\nReturns the ratio of completed work to work to be done. Range of 0 to 1.\n\n* tracker.finish()\n\nMarks the tracker as completed. With a TrackerGroup this marks all of its\ncomponents as completed.\n\nMarks all of the components of this tracker as finished, which in turn means\nthat `tracker.completed()` for this will now be 1.\n\nThis will result in one or more `change` events being emitted.\n\nEvents\n======\n\nAll tracker objects emit `change` events with an argument of the name of the\nthing changing.\n\nTrackerGroup\n============\n\n* var tracker = new TrackerGroup(**name**)\n\n * **name** *(optional)* - The name of this tracker group, used in change\n notifications if the component updating didn't have a name. Defaults to undefined.\n\nCreates a new empty tracker aggregation group. These are trackers whose\ncompletion status is determined by the completion status of other trackers.\n\n* tracker.addUnit(**otherTracker**, **weight**)\n\n * **otherTracker** - Any of the other are-we-there-yet tracker objects\n * **weight** *(optional)* - The weight to give the tracker, defaults to 1.\n\nAdds the **otherTracker** to this aggregation group. The weight determines\nhow long you expect this tracker to take to complete in proportion to other\nunits. So for instance, if you add one tracker with a weight of 1 and\nanother with a weight of 2, you're saying the second will take twice as long\nto complete as the first. As such, the first will account for 33% of the\ncompletion of this tracker and the second will account for the other 67%.\n\nReturns **otherTracker**.\n\n* var subGroup = tracker.newGroup(**name**, **weight**)\n\nThe above is exactly equivalent to:\n\n```javascript\n var subGroup = tracker.addUnit(new TrackerGroup(name), weight)\n```\n\n* var subItem = tracker.newItem(**name**, **todo**, **weight**)\n\nThe above is exactly equivalent to:\n\n```javascript\n var subItem = tracker.addUnit(new Tracker(name, todo), weight)\n```\n\n* var subStream = tracker.newStream(**name**, **todo**, **weight**)\n\nThe above is exactly equivalent to:\n\n```javascript\n var subStream = tracker.addUnit(new TrackerStream(name, todo), weight)\n```\n\n* console.log( tracker.debug() )\n\nReturns a tree showing the completion of this tracker group and all of its\nchildren, including recursively entering all of the children.\n\nTracker\n=======\n\n* var tracker = new Tracker(**name**, **todo**)\n\n * **name** *(optional)* The name of this counter to report in change\n events. Defaults to undefined.\n * **todo** *(optional)* The amount of work todo (a number). Defaults to 0.\n\nOrdinarily these are constructed as a part of a tracker group (via `newItem`) but they c\n\n* var completed = tracker.completed()\n\nReturns the ratio of completed work to work to be done. Range of 0 to 1. If\ntotal work to be done is 0 then it will return 0.\n\n* tracker.addWork(**todo**)\n\n * **todo** A number to add to the amount of work to be done.\n\nIncreases the amount of work to be done, thus decreasing the completion\npercentage. Triggers a `change` event.\n\n* tracker.completeWork(**completed**)\n\n * **completed** A number to add to the work complete\n\nIncrease the amount of work complete, thus increasing the completion percentage.\nWill never increase the work completed past the amount of work todo. That is,\npercentages > 100% are not allowed. Triggers a `change` event.\n\n* tracker.finish()\n\nMarks this tracker as finished, tracker.completed() will now be 1. Triggers\na `change` event.\n\nTrackerStream\n=============\n\n* var tracker = new TrackerStream(**name**, **size**, **options**)\n\n * **name** *(optional)* The name of this counter to report in change\n events. Defaults to undefined.\n * **size** *(optional)* The number of bytes being sent through this stream.\n * **options** *(optional)* A hash of stream options\n\nThe tracker stream object is a pass through stream that updates an internal\ntracker object each time a block passes through. It's intended to track\ndownloads, file extraction and other related activities. You use it by piping\nyour data source into it and then using it as your data source.\n\nIf your data has a length attribute then that's used as the amount of work\ncompleted when the chunk is passed through. If it does not (eg, object\nstreams) then each chunk counts as completing 1 unit of work, so your size\nshould be the total number of objects being streamed.\n\n* tracker.addWork(**todo**)\n\n * **todo** Increase the expected overall size by **todo** bytes.\n\nIncreases the amount of work to be done, thus decreasing the completion\npercentage. Triggers a `change` event.\n",
49
- "readmeFilename": "README.md",
48
+ "readme": "ERROR: No README data found!",
50
49
  "repository": {
51
50
  "type": "git",
52
51
  "url": "git+https://github.com/iarna/are-we-there-yet.git"
@@ -0,0 +1,4 @@
1
+ language: node_js
2
+ node_js:
3
+ - 0.8
4
+ - 0.10
@@ -24,18 +24,26 @@ function Reader(data) {
24
24
  // These hold the "current" state
25
25
  this._len = 0;
26
26
  this._offset = 0;
27
-
28
- var self = this;
29
- this.__defineGetter__('length', function() { return self._len; });
30
- this.__defineGetter__('offset', function() { return self._offset; });
31
- this.__defineGetter__('remain', function() {
32
- return self._size - self._offset;
33
- });
34
- this.__defineGetter__('buffer', function() {
35
- return self._buf.slice(self._offset);
36
- });
37
27
  }
38
28
 
29
+ Object.defineProperty(Reader.prototype, 'length', {
30
+ enumerable: true,
31
+ get: function () { return (this._len); }
32
+ });
33
+
34
+ Object.defineProperty(Reader.prototype, 'offset', {
35
+ enumerable: true,
36
+ get: function () { return (this._offset); }
37
+ });
38
+
39
+ Object.defineProperty(Reader.prototype, 'remain', {
40
+ get: function () { return (this._size - this._offset); }
41
+ });
42
+
43
+ Object.defineProperty(Reader.prototype, 'buffer', {
44
+ get: function () { return (this._buf.slice(this._offset)); }
45
+ });
46
+
39
47
 
40
48
  /**
41
49
  * Reads a single byte and advances offset; you can pass in `true` to make this
@@ -171,7 +179,7 @@ Reader.prototype.readString = function(tag, retbuf) {
171
179
  this._offset = o;
172
180
 
173
181
  if (this.length === 0)
174
- return '';
182
+ return retbuf ? new Buffer(0) : '';
175
183
 
176
184
  var str = this._buf.slice(this._offset, this._offset + this.length);
177
185
  this._offset += this.length;
@@ -183,28 +191,15 @@ Reader.prototype.readOID = function(tag) {
183
191
  if (!tag)
184
192
  tag = ASN1.OID;
185
193
 
186
- var b = this.peek();
194
+ var b = this.readString(tag, true);
187
195
  if (b === null)
188
196
  return null;
189
197
 
190
- if (b !== tag)
191
- throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) +
192
- ': got 0x' + b.toString(16));
193
-
194
- var o = this.readLength(this._offset + 1); // stored in `length`
195
- if (o === null)
196
- return null;
197
-
198
- if (this.length > this._size - o)
199
- return null;
200
-
201
- this._offset = o;
202
-
203
198
  var values = [];
204
199
  var value = 0;
205
200
 
206
- for (var i = 0; i < this.length; i++) {
207
- var byte = this._buf[this._offset++] & 0xff;
201
+ for (var i = 0; i < b.length; i++) {
202
+ var byte = b[i] & 0xff;
208
203
 
209
204
  value <<= 7;
210
205
  value += byte & 0x7f;
@@ -245,19 +240,18 @@ Reader.prototype._readTag = function(tag) {
245
240
  return null;
246
241
  this._offset = o;
247
242
 
248
- var fb = this._buf[this._offset++];
243
+ var fb = this._buf[this._offset];
249
244
  var value = 0;
250
245
 
251
- value = fb & 0x7F;
252
- for (var i = 1; i < this.length; i++) {
246
+ for (var i = 0; i < this.length; i++) {
253
247
  value <<= 8;
254
248
  value |= (this._buf[this._offset++] & 0xff);
255
249
  }
256
250
 
257
- if ((fb & 0x80) == 0x80)
258
- value = -value;
251
+ if ((fb & 0x80) == 0x80 && i !== 4)
252
+ value -= (1 << (i * 8));
259
253
 
260
- return value;
254
+ return value >> 0;
261
255
  };
262
256
 
263
257
 
@@ -50,16 +50,16 @@ function Writer(options) {
50
50
  // A list of offsets in the buffer where we need to insert
51
51
  // sequence tag/len pairs.
52
52
  this._seq = [];
53
-
54
- var self = this;
55
- this.__defineGetter__('buffer', function() {
56
- if (self._seq.length)
57
- throw new InvalidAsn1Error(self._seq.length + ' unended sequence(s)');
58
-
59
- return self._buf.slice(0, self._offset);
60
- });
61
53
  }
62
54
 
55
+ Object.defineProperty(Writer.prototype, 'buffer', {
56
+ get: function () {
57
+ if (this._seq.length)
58
+ throw new InvalidAsn1Error(this._seq.length + ' unended sequence(s)');
59
+
60
+ return (this._buf.slice(0, this._offset));
61
+ }
62
+ });
63
63
 
64
64
  Writer.prototype.writeByte = function(b) {
65
65
  if (typeof(b) !== 'number')
@@ -78,7 +78,7 @@ Writer.prototype.writeInt = function(i, tag) {
78
78
 
79
79
  var sz = 4;
80
80
 
81
- while ((((i & 0xff800000) === 0) || ((i & 0xff800000) === 0xff800000)) &&
81
+ while ((((i & 0xff800000) === 0) || ((i & 0xff800000) === 0xff800000 >> 0)) &&
82
82
  (sz > 1)) {
83
83
  sz--;
84
84
  i <<= 8;
@@ -92,7 +92,7 @@ Writer.prototype.writeInt = function(i, tag) {
92
92
  this._buf[this._offset++] = sz;
93
93
 
94
94
  while (sz-- > 0) {
95
- this._buf[this._offset++] = ((i & 0xff000000) >> 24);
95
+ this._buf[this._offset++] = ((i & 0xff000000) >>> 24);
96
96
  i <<= 8;
97
97
  }
98
98
 
@@ -236,7 +236,6 @@ Writer.prototype.writeLength = function(len) {
236
236
  this._buf[this._offset++] = len >> 8;
237
237
  this._buf[this._offset++] = len;
238
238
  } else if (len <= 0xffffff) {
239
- this._shift(start, len, 1);
240
239
  this._buf[this._offset++] = 0x83;
241
240
  this._buf[this._offset++] = len >> 16;
242
241
  this._buf[this._offset++] = len >> 8;
@@ -1,21 +1,18 @@
1
1
  {
2
- "_defaultsLoaded": true,
3
- "_engineSupported": true,
4
- "_from": "asn1@0.1.11",
5
- "_id": "asn1@0.1.11",
2
+ "_from": "asn1@>=0.2.3 <0.3.0",
3
+ "_id": "asn1@0.2.3",
6
4
  "_location": "/asn1",
7
- "_nodeVersion": "v0.6.6",
8
5
  "_npmUser": {
9
- "email": "mcavage@gmail.com",
10
- "name": "mcavage"
6
+ "email": "patrick.f.mooney@gmail.com",
7
+ "name": "pfmooney"
11
8
  },
12
- "_npmVersion": "1.1.0-beta-4",
9
+ "_npmVersion": "1.4.28",
13
10
  "_phantomChildren": {},
14
11
  "_requiredBy": [
15
- "/http-signature"
12
+ "/sshpk"
16
13
  ],
17
- "_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz",
18
- "_shasum": "559be18376d08a4ec4dbe80877d27818639b2df7",
14
+ "_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",
15
+ "_shasum": "dac8787713c9966849fc8180777ebe9c1ddf3b86",
19
16
  "author": {
20
17
  "email": "mcavage@gmail.com",
21
18
  "name": "Mark Cavage"
@@ -31,27 +28,33 @@
31
28
  {
32
29
  "name": "Yunong Xiao",
33
30
  "email": "yunong@joyent.com"
31
+ },
32
+ {
33
+ "name": "Alex Wilson",
34
+ "email": "alex.wilson@joyent.com"
34
35
  }
35
36
  ],
36
37
  "dependencies": {},
37
38
  "description": "Contains parsers and serializers for ASN.1 (currently BER only)",
38
39
  "devDependencies": {
39
- "tap": "0.1.4"
40
+ "tap": "0.4.8"
40
41
  },
41
42
  "directories": {},
42
43
  "dist": {
43
- "shasum": "559be18376d08a4ec4dbe80877d27818639b2df7",
44
- "tarball": "http://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz"
45
- },
46
- "engines": {
47
- "node": ">=0.4.9"
44
+ "shasum": "dac8787713c9966849fc8180777ebe9c1ddf3b86",
45
+ "tarball": "http://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz"
48
46
  },
49
47
  "homepage": "https://github.com/mcavage/node-asn1",
48
+ "license": "MIT",
50
49
  "main": "lib/index.js",
51
50
  "maintainers": [
52
51
  {
53
52
  "name": "mcavage",
54
53
  "email": "mcavage@gmail.com"
54
+ },
55
+ {
56
+ "name": "pfmooney",
57
+ "email": "patrick.f.mooney@gmail.com"
55
58
  }
56
59
  ],
57
60
  "name": "asn1",
@@ -62,8 +65,7 @@
62
65
  "url": "git://github.com/mcavage/node-asn1.git"
63
66
  },
64
67
  "scripts": {
65
- "pretest": "which gjslint; if [[ \"$?\" = 0 ]] ; then gjslint --nojsdoc -r lib -r tst; else echo \"Missing gjslint. Skipping lint\"; fi",
66
68
  "test": "tap ./tst"
67
69
  },
68
- "version": "0.1.11"
70
+ "version": "0.2.3"
69
71
  }
@@ -69,6 +69,42 @@ test('read 4 byte int', function(t) {
69
69
  });
70
70
 
71
71
 
72
+ test('read 1 byte negative int', function(t) {
73
+ var reader = new BerReader(new Buffer([0x02, 0x01, 0xdc]));
74
+ t.ok(reader);
75
+ t.equal(reader.readInt(), -36, 'wrong value');
76
+ t.equal(reader.length, 0x01, 'wrong length');
77
+ t.end();
78
+ });
79
+
80
+
81
+ test('read 2 byte negative int', function(t) {
82
+ var reader = new BerReader(new Buffer([0x02, 0x02, 0xc0, 0x4e]));
83
+ t.ok(reader);
84
+ t.equal(reader.readInt(), -16306, 'wrong value');
85
+ t.equal(reader.length, 0x02, 'wrong length');
86
+ t.end();
87
+ });
88
+
89
+
90
+ test('read 3 byte negative int', function(t) {
91
+ var reader = new BerReader(new Buffer([0x02, 0x03, 0xff, 0x00, 0x19]));
92
+ t.ok(reader);
93
+ t.equal(reader.readInt(), -65511, 'wrong value');
94
+ t.equal(reader.length, 0x03, 'wrong length');
95
+ t.end();
96
+ });
97
+
98
+
99
+ test('read 4 byte negative int', function(t) {
100
+ var reader = new BerReader(new Buffer([0x02, 0x04, 0x91, 0x7c, 0x22, 0x1f]));
101
+ t.ok(reader);
102
+ t.equal(reader.readInt(), -1854135777, 'wrong value');
103
+ t.equal(reader.length, 0x04, 'wrong length');
104
+ t.end();
105
+ });
106
+
107
+
72
108
  test('read boolean true', function(t) {
73
109
  var reader = new BerReader(new Buffer([0x01, 0x01, 0xff]));
74
110
  t.ok(reader);
@@ -105,6 +105,80 @@ test('write 4 byte int', function(t) {
105
105
  });
106
106
 
107
107
 
108
+ test('write 1 byte negative int', function(t) {
109
+ var writer = new BerWriter();
110
+
111
+ writer.writeInt(-128);
112
+ var ber = writer.buffer;
113
+
114
+ t.ok(ber);
115
+
116
+ t.equal(ber.length, 3, 'Wrong length for an int');
117
+ t.equal(ber[0], 0x02, 'ASN.1 tag wrong');
118
+ t.equal(ber[1], 0x01, 'length wrong');
119
+ t.equal(ber[2], 0x80, 'value wrong (byte 1)');
120
+
121
+ t.end();
122
+ });
123
+
124
+
125
+ test('write 2 byte negative int', function(t) {
126
+ var writer = new BerWriter();
127
+
128
+ writer.writeInt(-22400);
129
+ var ber = writer.buffer;
130
+
131
+ t.ok(ber);
132
+
133
+ t.equal(ber.length, 4, 'Wrong length for an int');
134
+ t.equal(ber[0], 0x02, 'ASN.1 tag wrong');
135
+ t.equal(ber[1], 0x02, 'length wrong');
136
+ t.equal(ber[2], 0xa8, 'value wrong (byte 1)');
137
+ t.equal(ber[3], 0x80, 'value wrong (byte 2)');
138
+
139
+ t.end();
140
+ });
141
+
142
+
143
+ test('write 3 byte negative int', function(t) {
144
+ var writer = new BerWriter();
145
+
146
+ writer.writeInt(-481653);
147
+ var ber = writer.buffer;
148
+
149
+ t.ok(ber);
150
+
151
+ t.equal(ber.length, 5, 'Wrong length for an int');
152
+ t.equal(ber[0], 0x02, 'ASN.1 tag wrong');
153
+ t.equal(ber[1], 0x03, 'length wrong');
154
+ t.equal(ber[2], 0xf8, 'value wrong (byte 1)');
155
+ t.equal(ber[3], 0xa6, 'value wrong (byte 2)');
156
+ t.equal(ber[4], 0x8b, 'value wrong (byte 3)');
157
+
158
+ t.end();
159
+ });
160
+
161
+
162
+ test('write 4 byte negative int', function(t) {
163
+ var writer = new BerWriter();
164
+
165
+ writer.writeInt(-1522904131);
166
+ var ber = writer.buffer;
167
+
168
+ t.ok(ber);
169
+
170
+ t.equal(ber.length, 6, 'Wrong length for an int');
171
+ t.equal(ber[0], 0x02, 'ASN.1 tag wrong');
172
+ t.equal(ber[1], 0x04, 'length wrong');
173
+ t.equal(ber[2], 0xa5, 'value wrong (byte 1)');
174
+ t.equal(ber[3], 0x3a, 'value wrong (byte 2)');
175
+ t.equal(ber[4], 0x53, 'value wrong (byte 3)');
176
+ t.equal(ber[5], 0xbd, 'value wrong (byte 4)');
177
+
178
+ t.end();
179
+ });
180
+
181
+
108
182
  test('write boolean', function(t) {
109
183
  var writer = new BerWriter();
110
184
 
@@ -9,6 +9,7 @@
9
9
  "_npmVersion": "1.3.11",
10
10
  "_phantomChildren": {},
11
11
  "_requiredBy": [
12
+ "/dashdash",
12
13
  "/http-signature"
13
14
  ],
14
15
  "_resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.5.tgz",
@@ -1,10 +1,5 @@
1
- The following license applies to all files unless the file is specified below.
2
- Each file specified below has its license information embedded in it:
1
+ Copyright Node.js contributors. All rights reserved.
3
2
 
4
- tools/jsstyle
5
-
6
- Copyright 2011, Robert Mustacchi. All rights reserved.
7
- Copyright 2011, Joyent, Inc. All rights reserved.
8
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
4
  of this software and associated documentation files (the "Software"), to
10
5
  deal in the Software without restriction, including without limitation the
@@ -21,8 +21,12 @@
21
21
 
22
22
  // NOTE: These type checking functions intentionally don't use `instanceof`
23
23
  // because it is fragile and can be easily faked with `Object.create()`.
24
- function isArray(ar) {
25
- return Array.isArray(ar);
24
+
25
+ function isArray(arg) {
26
+ if (Array.isArray) {
27
+ return Array.isArray(arg);
28
+ }
29
+ return objectToString(arg) === '[object Array]';
26
30
  }
27
31
  exports.isArray = isArray;
28
32
 
@@ -62,7 +66,7 @@ function isUndefined(arg) {
62
66
  exports.isUndefined = isUndefined;
63
67
 
64
68
  function isRegExp(re) {
65
- return isObject(re) && objectToString(re) === '[object RegExp]';
69
+ return objectToString(re) === '[object RegExp]';
66
70
  }
67
71
  exports.isRegExp = isRegExp;
68
72
 
@@ -72,13 +76,12 @@ function isObject(arg) {
72
76
  exports.isObject = isObject;
73
77
 
74
78
  function isDate(d) {
75
- return isObject(d) && objectToString(d) === '[object Date]';
79
+ return objectToString(d) === '[object Date]';
76
80
  }
77
81
  exports.isDate = isDate;
78
82
 
79
83
  function isError(e) {
80
- return isObject(e) &&
81
- (objectToString(e) === '[object Error]' || e instanceof Error);
84
+ return (objectToString(e) === '[object Error]' || e instanceof Error);
82
85
  }
83
86
  exports.isError = isError;
84
87
 
@@ -97,11 +100,8 @@ function isPrimitive(arg) {
97
100
  }
98
101
  exports.isPrimitive = isPrimitive;
99
102
 
100
- function isBuffer(arg) {
101
- return Buffer.isBuffer(arg);
102
- }
103
- exports.isBuffer = isBuffer;
103
+ exports.isBuffer = Buffer.isBuffer;
104
104
 
105
105
  function objectToString(o) {
106
106
  return Object.prototype.toString.call(o);
107
- }
107
+ }
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "_from": "core-util-is@~1.0.0",
3
- "_id": "core-util-is@1.0.1",
3
+ "_id": "core-util-is@1.0.2",
4
4
  "_location": "/bl/readable-stream/core-util-is",
5
+ "_nodeVersion": "4.0.0",
5
6
  "_npmUser": {
6
7
  "email": "i@izs.me",
7
8
  "name": "isaacs"
8
9
  },
9
- "_npmVersion": "1.3.23",
10
+ "_npmVersion": "3.3.2",
10
11
  "_phantomChildren": {},
11
12
  "_requiredBy": [
12
13
  "/bl/readable-stream"
13
14
  ],
14
- "_resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz",
15
- "_shasum": "6b07085aef9a3ccac6ee53bf9d3df0c1521a5538",
15
+ "_resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
16
+ "_shasum": "b5fd54220aa2bc5ab57aab7140c940754503c1a7",
16
17
  "author": {
17
18
  "email": "i@izs.me",
18
19
  "name": "Isaac Z. Schlueter",
@@ -23,13 +24,16 @@
23
24
  },
24
25
  "dependencies": {},
25
26
  "description": "The `util.is*` functions introduced in Node v0.12.",
26
- "devDependencies": {},
27
+ "devDependencies": {
28
+ "tap": "^2.3.0"
29
+ },
27
30
  "directories": {},
28
31
  "dist": {
29
- "shasum": "6b07085aef9a3ccac6ee53bf9d3df0c1521a5538",
30
- "tarball": "http://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz"
32
+ "shasum": "b5fd54220aa2bc5ab57aab7140c940754503c1a7",
33
+ "tarball": "http://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz"
31
34
  },
32
- "homepage": "https://github.com/isaacs/core-util-is",
35
+ "gitHead": "a177da234df5638b363ddc15fa324619a38577c8",
36
+ "homepage": "https://github.com/isaacs/core-util-is#readme",
33
37
  "keywords": [
34
38
  "isArray",
35
39
  "isBuffer",
@@ -51,12 +55,13 @@
51
55
  ],
52
56
  "name": "core-util-is",
53
57
  "optionalDependencies": {},
54
- "readme": "# core-util-is\n\nThe `util.is*` functions introduced in Node v0.12.\n",
55
- "readmeFilename": "README.md",
58
+ "readme": "ERROR: No README data found!",
56
59
  "repository": {
57
60
  "type": "git",
58
61
  "url": "git://github.com/isaacs/core-util-is.git"
59
62
  },
60
- "scripts": {},
61
- "version": "1.0.1"
63
+ "scripts": {
64
+ "test": "tap test.js"
65
+ },
66
+ "version": "1.0.2"
62
67
  }
@@ -0,0 +1,68 @@
1
+ var assert = require('tap');
2
+
3
+ var t = require('./lib/util');
4
+
5
+ assert.equal(t.isArray([]), true);
6
+ assert.equal(t.isArray({}), false);
7
+
8
+ assert.equal(t.isBoolean(null), false);
9
+ assert.equal(t.isBoolean(true), true);
10
+ assert.equal(t.isBoolean(false), true);
11
+
12
+ assert.equal(t.isNull(null), true);
13
+ assert.equal(t.isNull(undefined), false);
14
+ assert.equal(t.isNull(false), false);
15
+ assert.equal(t.isNull(), false);
16
+
17
+ assert.equal(t.isNullOrUndefined(null), true);
18
+ assert.equal(t.isNullOrUndefined(undefined), true);
19
+ assert.equal(t.isNullOrUndefined(false), false);
20
+ assert.equal(t.isNullOrUndefined(), true);
21
+
22
+ assert.equal(t.isNumber(null), false);
23
+ assert.equal(t.isNumber('1'), false);
24
+ assert.equal(t.isNumber(1), true);
25
+
26
+ assert.equal(t.isString(null), false);
27
+ assert.equal(t.isString('1'), true);
28
+ assert.equal(t.isString(1), false);
29
+
30
+ assert.equal(t.isSymbol(null), false);
31
+ assert.equal(t.isSymbol('1'), false);
32
+ assert.equal(t.isSymbol(1), false);
33
+ assert.equal(t.isSymbol(Symbol()), true);
34
+
35
+ assert.equal(t.isUndefined(null), false);
36
+ assert.equal(t.isUndefined(undefined), true);
37
+ assert.equal(t.isUndefined(false), false);
38
+ assert.equal(t.isUndefined(), true);
39
+
40
+ assert.equal(t.isRegExp(null), false);
41
+ assert.equal(t.isRegExp('1'), false);
42
+ assert.equal(t.isRegExp(new RegExp()), true);
43
+
44
+ assert.equal(t.isObject({}), true);
45
+ assert.equal(t.isObject([]), true);
46
+ assert.equal(t.isObject(new RegExp()), true);
47
+ assert.equal(t.isObject(new Date()), true);
48
+
49
+ assert.equal(t.isDate(null), false);
50
+ assert.equal(t.isDate('1'), false);
51
+ assert.equal(t.isDate(new Date()), true);
52
+
53
+ assert.equal(t.isError(null), false);
54
+ assert.equal(t.isError({ err: true }), false);
55
+ assert.equal(t.isError(new Error()), true);
56
+
57
+ assert.equal(t.isFunction(null), false);
58
+ assert.equal(t.isFunction({ }), false);
59
+ assert.equal(t.isFunction(function() {}), true);
60
+
61
+ assert.equal(t.isPrimitive(null), true);
62
+ assert.equal(t.isPrimitive(''), true);
63
+ assert.equal(t.isPrimitive(0), true);
64
+ assert.equal(t.isPrimitive(new Date()), false);
65
+
66
+ assert.equal(t.isBuffer(null), false);
67
+ assert.equal(t.isBuffer({}), false);
68
+ assert.equal(t.isBuffer(new Buffer(0)), true);
@@ -1,5 +1,5 @@
1
1
  {
2
- "_from": "boom@^2.8.x",
2
+ "_from": "boom@2.x.x",
3
3
  "_id": "boom@2.10.1",
4
4
  "_location": "/boom",
5
5
  "_nodeVersion": "0.10.40",
@@ -1,5 +1,5 @@
1
1
  {
2
- "_from": "commander@^2.8.1",
2
+ "_from": "commander@^2.9.0",
3
3
  "_id": "commander@2.9.0",
4
4
  "_location": "/commander",
5
5
  "_nodeVersion": "0.12.7",