meteor-node-stubs 1.0.2 → 1.2.0

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.
Files changed (770) hide show
  1. package/.idea/node-stubs.iml +1 -1
  2. package/CHANGELOG.md +19 -0
  3. package/index.js +2 -2
  4. package/package.json +14 -13
  5. package/.idea/markdown-navigator-enh.xml +0 -10
  6. package/.idea/markdown-navigator.xml +0 -46
  7. package/node_modules/asn1.js/README.md +0 -100
  8. package/node_modules/asn1.js/lib/asn1/api.js +0 -61
  9. package/node_modules/asn1.js/lib/asn1/base/buffer.js +0 -116
  10. package/node_modules/asn1.js/lib/asn1/base/index.js +0 -6
  11. package/node_modules/asn1.js/lib/asn1/base/node.js +0 -634
  12. package/node_modules/asn1.js/lib/asn1/base/reporter.js +0 -121
  13. package/node_modules/asn1.js/lib/asn1/constants/der.js +0 -42
  14. package/node_modules/asn1.js/lib/asn1/constants/index.js +0 -19
  15. package/node_modules/asn1.js/lib/asn1/decoders/der.js +0 -324
  16. package/node_modules/asn1.js/lib/asn1/decoders/index.js +0 -4
  17. package/node_modules/asn1.js/lib/asn1/decoders/pem.js +0 -49
  18. package/node_modules/asn1.js/lib/asn1/encoders/der.js +0 -295
  19. package/node_modules/asn1.js/lib/asn1/encoders/index.js +0 -4
  20. package/node_modules/asn1.js/lib/asn1/encoders/pem.js +0 -21
  21. package/node_modules/asn1.js/lib/asn1.js +0 -9
  22. package/node_modules/asn1.js/package.json +0 -61
  23. package/node_modules/assert/.npmignore +0 -1
  24. package/node_modules/assert/.travis.yml +0 -31
  25. package/node_modules/assert/.zuul.yml +0 -13
  26. package/node_modules/assert/LICENSE +0 -18
  27. package/node_modules/assert/README.md +0 -64
  28. package/node_modules/assert/assert.js +0 -490
  29. package/node_modules/assert/node_modules/util/.npmignore +0 -1
  30. package/node_modules/assert/node_modules/util/.travis.yml +0 -8
  31. package/node_modules/assert/node_modules/util/.zuul.yml +0 -10
  32. package/node_modules/assert/node_modules/util/LICENSE +0 -18
  33. package/node_modules/assert/node_modules/util/README.md +0 -15
  34. package/node_modules/assert/node_modules/util/package.json +0 -62
  35. package/node_modules/assert/node_modules/util/support/isBuffer.js +0 -3
  36. package/node_modules/assert/node_modules/util/support/isBufferBrowser.js +0 -6
  37. package/node_modules/assert/node_modules/util/test/browser/inspect.js +0 -41
  38. package/node_modules/assert/node_modules/util/test/browser/is.js +0 -91
  39. package/node_modules/assert/node_modules/util/test/node/debug.js +0 -86
  40. package/node_modules/assert/node_modules/util/test/node/format.js +0 -77
  41. package/node_modules/assert/node_modules/util/test/node/inspect.js +0 -195
  42. package/node_modules/assert/node_modules/util/test/node/log.js +0 -58
  43. package/node_modules/assert/node_modules/util/test/node/util.js +0 -83
  44. package/node_modules/assert/node_modules/util/util.js +0 -586
  45. package/node_modules/assert/package.json +0 -63
  46. package/node_modules/assert/test.js +0 -345
  47. package/node_modules/base64-js/LICENSE +0 -21
  48. package/node_modules/base64-js/README.md +0 -34
  49. package/node_modules/base64-js/base64js.min.js +0 -1
  50. package/node_modules/base64-js/index.js +0 -151
  51. package/node_modules/base64-js/package.json +0 -68
  52. package/node_modules/base64-js/test/big-data.js +0 -25
  53. package/node_modules/base64-js/test/convert.js +0 -88
  54. package/node_modules/base64-js/test/corrupt.js +0 -10
  55. package/node_modules/base64-js/test/url-safe.js +0 -24
  56. package/node_modules/bn.js/.npmignore +0 -8
  57. package/node_modules/bn.js/README.md +0 -221
  58. package/node_modules/bn.js/lib/bn.js +0 -3427
  59. package/node_modules/bn.js/package.json +0 -74
  60. package/node_modules/bn.js/util/genCombMulTo.js +0 -65
  61. package/node_modules/bn.js/util/genCombMulTo10.js +0 -65
  62. package/node_modules/brorand/.npmignore +0 -2
  63. package/node_modules/brorand/README.md +0 -26
  64. package/node_modules/brorand/index.js +0 -65
  65. package/node_modules/brorand/package.json +0 -63
  66. package/node_modules/brorand/test/api-test.js +0 -8
  67. package/node_modules/browserify-aes/.travis.yml +0 -15
  68. package/node_modules/browserify-aes/LICENSE +0 -21
  69. package/node_modules/browserify-aes/README.md +0 -19
  70. package/node_modules/browserify-aes/aes.js +0 -228
  71. package/node_modules/browserify-aes/authCipher.js +0 -117
  72. package/node_modules/browserify-aes/browser.js +0 -13
  73. package/node_modules/browserify-aes/decrypter.js +0 -124
  74. package/node_modules/browserify-aes/encrypter.js +0 -114
  75. package/node_modules/browserify-aes/ghash.js +0 -89
  76. package/node_modules/browserify-aes/incr32.js +0 -15
  77. package/node_modules/browserify-aes/index.js +0 -7
  78. package/node_modules/browserify-aes/modes/cbc.js +0 -17
  79. package/node_modules/browserify-aes/modes/cfb.js +0 -33
  80. package/node_modules/browserify-aes/modes/cfb1.js +0 -42
  81. package/node_modules/browserify-aes/modes/cfb8.js +0 -25
  82. package/node_modules/browserify-aes/modes/ctr.js +0 -30
  83. package/node_modules/browserify-aes/modes/ecb.js +0 -7
  84. package/node_modules/browserify-aes/modes/index.js +0 -18
  85. package/node_modules/browserify-aes/modes/list.json +0 -191
  86. package/node_modules/browserify-aes/modes/ofb.js +0 -16
  87. package/node_modules/browserify-aes/package.json +0 -72
  88. package/node_modules/browserify-aes/streamCipher.js +0 -27
  89. package/node_modules/browserify-cipher/.travis.yml +0 -14
  90. package/node_modules/browserify-cipher/LICENSE +0 -21
  91. package/node_modules/browserify-cipher/README.md +0 -7
  92. package/node_modules/browserify-cipher/browser.js +0 -67
  93. package/node_modules/browserify-cipher/index.js +0 -7
  94. package/node_modules/browserify-cipher/package.json +0 -61
  95. package/node_modules/browserify-cipher/test.js +0 -55
  96. package/node_modules/browserify-des/.travis.yml +0 -8
  97. package/node_modules/browserify-des/index.js +0 -50
  98. package/node_modules/browserify-des/license +0 -21
  99. package/node_modules/browserify-des/modes.js +0 -24
  100. package/node_modules/browserify-des/package.json +0 -61
  101. package/node_modules/browserify-des/readme.md +0 -6
  102. package/node_modules/browserify-des/test.js +0 -81
  103. package/node_modules/browserify-rsa/.travis.yml +0 -3
  104. package/node_modules/browserify-rsa/LICENSE +0 -21
  105. package/node_modules/browserify-rsa/index.js +0 -40
  106. package/node_modules/browserify-rsa/package.json +0 -57
  107. package/node_modules/browserify-rsa/readme.md +0 -10
  108. package/node_modules/browserify-rsa/test.js +0 -53
  109. package/node_modules/browserify-sign/LICENSE +0 -13
  110. package/node_modules/browserify-sign/README.md +0 -13
  111. package/node_modules/browserify-sign/algos.js +0 -1
  112. package/node_modules/browserify-sign/browser/algorithms.json +0 -152
  113. package/node_modules/browserify-sign/browser/curves.json +0 -8
  114. package/node_modules/browserify-sign/browser/index.js +0 -91
  115. package/node_modules/browserify-sign/browser/sign.js +0 -145
  116. package/node_modules/browserify-sign/browser/verify.js +0 -83
  117. package/node_modules/browserify-sign/index.js +0 -7
  118. package/node_modules/browserify-sign/package.json +0 -69
  119. package/node_modules/browserify-zlib/.npmignore +0 -7
  120. package/node_modules/browserify-zlib/.travis.yml +0 -16
  121. package/node_modules/browserify-zlib/LICENSE +0 -70
  122. package/node_modules/browserify-zlib/README.md +0 -24
  123. package/node_modules/browserify-zlib/karma.conf.js +0 -11
  124. package/node_modules/browserify-zlib/lib/binding.js +0 -409
  125. package/node_modules/browserify-zlib/lib/index.js +0 -609
  126. package/node_modules/browserify-zlib/package.json +0 -95
  127. package/node_modules/browserify-zlib/src/binding.js +0 -432
  128. package/node_modules/browserify-zlib/src/index.js +0 -650
  129. package/node_modules/browserify-zlib/yarn.lock +0 -3819
  130. package/node_modules/buffer/AUTHORS.md +0 -55
  131. package/node_modules/buffer/LICENSE +0 -21
  132. package/node_modules/buffer/README.md +0 -409
  133. package/node_modules/buffer/index.d.ts +0 -185
  134. package/node_modules/buffer/index.js +0 -1777
  135. package/node_modules/buffer/package.json +0 -113
  136. package/node_modules/buffer-xor/.npmignore +0 -1
  137. package/node_modules/buffer-xor/.travis.yml +0 -9
  138. package/node_modules/buffer-xor/LICENSE +0 -21
  139. package/node_modules/buffer-xor/README.md +0 -41
  140. package/node_modules/buffer-xor/index.js +0 -10
  141. package/node_modules/buffer-xor/inline.js +0 -1
  142. package/node_modules/buffer-xor/inplace.js +0 -9
  143. package/node_modules/buffer-xor/package.json +0 -67
  144. package/node_modules/buffer-xor/test/fixtures.json +0 -23
  145. package/node_modules/buffer-xor/test/index.js +0 -38
  146. package/node_modules/builtin-status-codes/browser.js +0 -64
  147. package/node_modules/builtin-status-codes/build.js +0 -8
  148. package/node_modules/builtin-status-codes/index.js +0 -3
  149. package/node_modules/builtin-status-codes/license +0 -21
  150. package/node_modules/builtin-status-codes/package.json +0 -74
  151. package/node_modules/builtin-status-codes/readme.md +0 -31
  152. package/node_modules/cipher-base/.eslintrc +0 -3
  153. package/node_modules/cipher-base/.npmignore +0 -1
  154. package/node_modules/cipher-base/.travis.yml +0 -6
  155. package/node_modules/cipher-base/LICENSE +0 -21
  156. package/node_modules/cipher-base/README.md +0 -17
  157. package/node_modules/cipher-base/index.js +0 -99
  158. package/node_modules/cipher-base/package.json +0 -66
  159. package/node_modules/cipher-base/test.js +0 -111
  160. package/node_modules/console-browserify/.npmignore +0 -14
  161. package/node_modules/console-browserify/.testem.json +0 -14
  162. package/node_modules/console-browserify/.travis.yml +0 -4
  163. package/node_modules/console-browserify/LICENCE +0 -19
  164. package/node_modules/console-browserify/README.md +0 -33
  165. package/node_modules/console-browserify/index.js +0 -86
  166. package/node_modules/console-browserify/package.json +0 -96
  167. package/node_modules/console-browserify/test/index.js +0 -67
  168. package/node_modules/console-browserify/test/static/index.html +0 -12
  169. package/node_modules/console-browserify/test/static/test-adapter.js +0 -53
  170. package/node_modules/constants-browserify/README.md +0 -54
  171. package/node_modules/constants-browserify/build.sh +0 -1
  172. package/node_modules/constants-browserify/constants.json +0 -209
  173. package/node_modules/constants-browserify/package.json +0 -65
  174. package/node_modules/constants-browserify/test.js +0 -18
  175. package/node_modules/core-util-is/LICENSE +0 -19
  176. package/node_modules/core-util-is/README.md +0 -3
  177. package/node_modules/core-util-is/float.patch +0 -604
  178. package/node_modules/core-util-is/lib/util.js +0 -107
  179. package/node_modules/core-util-is/package.json +0 -65
  180. package/node_modules/core-util-is/test.js +0 -68
  181. package/node_modules/create-ecdh/.travis.yml +0 -7
  182. package/node_modules/create-ecdh/LICENSE +0 -21
  183. package/node_modules/create-ecdh/browser.js +0 -124
  184. package/node_modules/create-ecdh/index.js +0 -3
  185. package/node_modules/create-ecdh/package.json +0 -65
  186. package/node_modules/create-ecdh/readme.md +0 -4
  187. package/node_modules/create-hash/.travis.yml +0 -17
  188. package/node_modules/create-hash/LICENSE +0 -21
  189. package/node_modules/create-hash/README.md +0 -19
  190. package/node_modules/create-hash/browser.js +0 -30
  191. package/node_modules/create-hash/index.js +0 -1
  192. package/node_modules/create-hash/md5.js +0 -5
  193. package/node_modules/create-hash/package.json +0 -73
  194. package/node_modules/create-hash/test.js +0 -41
  195. package/node_modules/create-hmac/LICENSE +0 -21
  196. package/node_modules/create-hmac/README.md +0 -20
  197. package/node_modules/create-hmac/browser.js +0 -62
  198. package/node_modules/create-hmac/index.js +0 -1
  199. package/node_modules/create-hmac/legacy.js +0 -46
  200. package/node_modules/create-hmac/package.json +0 -75
  201. package/node_modules/crypto-browserify/.travis.yml +0 -27
  202. package/node_modules/crypto-browserify/.zuul.yml +0 -1
  203. package/node_modules/crypto-browserify/LICENSE +0 -24
  204. package/node_modules/crypto-browserify/README.md +0 -50
  205. package/node_modules/crypto-browserify/example/bundle.js +0 -637
  206. package/node_modules/crypto-browserify/example/index.html +0 -12
  207. package/node_modules/crypto-browserify/example/test.js +0 -4
  208. package/node_modules/crypto-browserify/index.js +0 -97
  209. package/node_modules/crypto-browserify/package.json +0 -81
  210. package/node_modules/crypto-browserify/test/aes.js +0 -49
  211. package/node_modules/crypto-browserify/test/create-hash.js +0 -50
  212. package/node_modules/crypto-browserify/test/create-hmac.js +0 -50
  213. package/node_modules/crypto-browserify/test/dh.js +0 -49
  214. package/node_modules/crypto-browserify/test/ecdh.js +0 -61
  215. package/node_modules/crypto-browserify/test/index.js +0 -19
  216. package/node_modules/crypto-browserify/test/node/dh.js +0 -51
  217. package/node_modules/crypto-browserify/test/pbkdf2.js +0 -21
  218. package/node_modules/crypto-browserify/test/public-encrypt.js +0 -36
  219. package/node_modules/crypto-browserify/test/random-bytes.js +0 -60
  220. package/node_modules/crypto-browserify/test/random-fill.js +0 -53
  221. package/node_modules/crypto-browserify/test/sign.js +0 -59
  222. package/node_modules/date-now/.npmignore +0 -14
  223. package/node_modules/date-now/.testem.json +0 -14
  224. package/node_modules/date-now/.travis.yml +0 -4
  225. package/node_modules/date-now/LICENCE +0 -19
  226. package/node_modules/date-now/README.md +0 -45
  227. package/node_modules/date-now/index.js +0 -5
  228. package/node_modules/date-now/package.json +0 -97
  229. package/node_modules/date-now/seed.js +0 -16
  230. package/node_modules/date-now/test/index.js +0 -28
  231. package/node_modules/date-now/test/static/index.html +0 -10
  232. package/node_modules/des.js/.jscsrc +0 -46
  233. package/node_modules/des.js/.jshintrc +0 -89
  234. package/node_modules/des.js/.npmignore +0 -2
  235. package/node_modules/des.js/README.md +0 -26
  236. package/node_modules/des.js/lib/des/cbc.js +0 -65
  237. package/node_modules/des.js/lib/des/cipher.js +0 -141
  238. package/node_modules/des.js/lib/des/des.js +0 -143
  239. package/node_modules/des.js/lib/des/ede.js +0 -55
  240. package/node_modules/des.js/lib/des/utils.js +0 -256
  241. package/node_modules/des.js/lib/des.js +0 -7
  242. package/node_modules/des.js/package.json +0 -65
  243. package/node_modules/des.js/test/cbc-test.js +0 -73
  244. package/node_modules/des.js/test/des-test.js +0 -139
  245. package/node_modules/des.js/test/ede-test.js +0 -73
  246. package/node_modules/des.js/test/fixtures.js +0 -5
  247. package/node_modules/des.js/test/utils-test.js +0 -169
  248. package/node_modules/diffie-hellman/.travis.yml +0 -10
  249. package/node_modules/diffie-hellman/LICENSE +0 -19
  250. package/node_modules/diffie-hellman/browser.js +0 -42
  251. package/node_modules/diffie-hellman/index.js +0 -10
  252. package/node_modules/diffie-hellman/lib/dh.js +0 -164
  253. package/node_modules/diffie-hellman/lib/generatePrime.js +0 -105
  254. package/node_modules/diffie-hellman/lib/primes.json +0 -34
  255. package/node_modules/diffie-hellman/package.json +0 -65
  256. package/node_modules/diffie-hellman/readme.md +0 -4
  257. package/node_modules/domain-browser/HISTORY.md +0 -46
  258. package/node_modules/domain-browser/LICENSE.md +0 -23
  259. package/node_modules/domain-browser/README.md +0 -121
  260. package/node_modules/domain-browser/package.json +0 -175
  261. package/node_modules/domain-browser/source/index.js +0 -70
  262. package/node_modules/elliptic/README.md +0 -238
  263. package/node_modules/elliptic/lib/elliptic/curve/base.js +0 -376
  264. package/node_modules/elliptic/lib/elliptic/curve/edwards.js +0 -432
  265. package/node_modules/elliptic/lib/elliptic/curve/index.js +0 -8
  266. package/node_modules/elliptic/lib/elliptic/curve/mont.js +0 -178
  267. package/node_modules/elliptic/lib/elliptic/curve/short.js +0 -937
  268. package/node_modules/elliptic/lib/elliptic/curves.js +0 -206
  269. package/node_modules/elliptic/lib/elliptic/ec/index.js +0 -241
  270. package/node_modules/elliptic/lib/elliptic/ec/key.js +0 -118
  271. package/node_modules/elliptic/lib/elliptic/ec/signature.js +0 -166
  272. package/node_modules/elliptic/lib/elliptic/eddsa/index.js +0 -118
  273. package/node_modules/elliptic/lib/elliptic/eddsa/key.js +0 -95
  274. package/node_modules/elliptic/lib/elliptic/eddsa/signature.js +0 -65
  275. package/node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js +0 -780
  276. package/node_modules/elliptic/lib/elliptic/utils.js +0 -119
  277. package/node_modules/elliptic/lib/elliptic.js +0 -13
  278. package/node_modules/elliptic/package.json +0 -90
  279. package/node_modules/events/.airtap.yml +0 -15
  280. package/node_modules/events/.travis.yml +0 -16
  281. package/node_modules/events/History.md +0 -70
  282. package/node_modules/events/LICENSE +0 -22
  283. package/node_modules/events/Readme.md +0 -48
  284. package/node_modules/events/events.js +0 -448
  285. package/node_modules/events/package.json +0 -68
  286. package/node_modules/events/tests/add-listeners.js +0 -111
  287. package/node_modules/events/tests/check-listener-leaks.js +0 -101
  288. package/node_modules/events/tests/common.js +0 -104
  289. package/node_modules/events/tests/errors.js +0 -13
  290. package/node_modules/events/tests/events-list.js +0 -28
  291. package/node_modules/events/tests/index.js +0 -48
  292. package/node_modules/events/tests/legacy-compat.js +0 -16
  293. package/node_modules/events/tests/listener-count.js +0 -37
  294. package/node_modules/events/tests/listeners-side-effects.js +0 -56
  295. package/node_modules/events/tests/listeners.js +0 -149
  296. package/node_modules/events/tests/max-listeners.js +0 -47
  297. package/node_modules/events/tests/method-names.js +0 -35
  298. package/node_modules/events/tests/modify-in-emit.js +0 -90
  299. package/node_modules/events/tests/num-args.js +0 -60
  300. package/node_modules/events/tests/once.js +0 -83
  301. package/node_modules/events/tests/prepend.js +0 -31
  302. package/node_modules/events/tests/remove-all-listeners.js +0 -133
  303. package/node_modules/events/tests/remove-listeners.js +0 -212
  304. package/node_modules/events/tests/set-max-listeners-side-effects.js +0 -31
  305. package/node_modules/events/tests/special-event-names.js +0 -45
  306. package/node_modules/events/tests/subclass.js +0 -66
  307. package/node_modules/events/tests/symbols.js +0 -25
  308. package/node_modules/evp_bytestokey/LICENSE +0 -21
  309. package/node_modules/evp_bytestokey/README.md +0 -51
  310. package/node_modules/evp_bytestokey/index.js +0 -45
  311. package/node_modules/evp_bytestokey/package.json +0 -81
  312. package/node_modules/hash-base/LICENSE +0 -21
  313. package/node_modules/hash-base/README.md +0 -48
  314. package/node_modules/hash-base/index.js +0 -95
  315. package/node_modules/hash-base/package.json +0 -74
  316. package/node_modules/hash.js/.eslintrc.js +0 -41
  317. package/node_modules/hash.js/.travis.yml +0 -10
  318. package/node_modules/hash.js/README.md +0 -48
  319. package/node_modules/hash.js/lib/hash/common.js +0 -92
  320. package/node_modules/hash.js/lib/hash/hmac.js +0 -47
  321. package/node_modules/hash.js/lib/hash/ripemd.js +0 -146
  322. package/node_modules/hash.js/lib/hash/sha/1.js +0 -74
  323. package/node_modules/hash.js/lib/hash/sha/224.js +0 -30
  324. package/node_modules/hash.js/lib/hash/sha/256.js +0 -105
  325. package/node_modules/hash.js/lib/hash/sha/384.js +0 -35
  326. package/node_modules/hash.js/lib/hash/sha/512.js +0 -330
  327. package/node_modules/hash.js/lib/hash/sha/common.js +0 -49
  328. package/node_modules/hash.js/lib/hash/sha.js +0 -7
  329. package/node_modules/hash.js/lib/hash/utils.js +0 -278
  330. package/node_modules/hash.js/lib/hash.d.ts +0 -106
  331. package/node_modules/hash.js/lib/hash.js +0 -15
  332. package/node_modules/hash.js/node_modules/inherits/LICENSE +0 -16
  333. package/node_modules/hash.js/node_modules/inherits/README.md +0 -42
  334. package/node_modules/hash.js/node_modules/inherits/inherits.js +0 -7
  335. package/node_modules/hash.js/node_modules/inherits/inherits_browser.js +0 -23
  336. package/node_modules/hash.js/node_modules/inherits/package.json +0 -64
  337. package/node_modules/hash.js/package.json +0 -67
  338. package/node_modules/hash.js/test/hash-test.js +0 -140
  339. package/node_modules/hash.js/test/hmac-test.js +0 -62
  340. package/node_modules/hmac-drbg/.npmignore +0 -2
  341. package/node_modules/hmac-drbg/.travis.yml +0 -11
  342. package/node_modules/hmac-drbg/README.md +0 -48
  343. package/node_modules/hmac-drbg/lib/hmac-drbg.js +0 -113
  344. package/node_modules/hmac-drbg/package.json +0 -63
  345. package/node_modules/hmac-drbg/test/drbg-test.js +0 -91
  346. package/node_modules/hmac-drbg/test/fixtures/hmac-drbg-nist.json +0 -332
  347. package/node_modules/https-browserify/LICENSE +0 -20
  348. package/node_modules/https-browserify/index.js +0 -31
  349. package/node_modules/https-browserify/package.json +0 -59
  350. package/node_modules/https-browserify/readme.markdown +0 -22
  351. package/node_modules/ieee754/LICENSE +0 -11
  352. package/node_modules/ieee754/README.md +0 -53
  353. package/node_modules/ieee754/index.js +0 -84
  354. package/node_modules/ieee754/package.json +0 -72
  355. package/node_modules/inherits/LICENSE +0 -16
  356. package/node_modules/inherits/README.md +0 -42
  357. package/node_modules/inherits/inherits.js +0 -1
  358. package/node_modules/inherits/inherits_browser.js +0 -23
  359. package/node_modules/inherits/package.json +0 -74
  360. package/node_modules/inherits/test.js +0 -25
  361. package/node_modules/isarray/.npmignore +0 -1
  362. package/node_modules/isarray/.travis.yml +0 -4
  363. package/node_modules/isarray/Makefile +0 -6
  364. package/node_modules/isarray/README.md +0 -60
  365. package/node_modules/isarray/component.json +0 -19
  366. package/node_modules/isarray/index.js +0 -5
  367. package/node_modules/isarray/package.json +0 -76
  368. package/node_modules/isarray/test.js +0 -20
  369. package/node_modules/md5.js/LICENSE +0 -21
  370. package/node_modules/md5.js/README.md +0 -29
  371. package/node_modules/md5.js/index.js +0 -146
  372. package/node_modules/md5.js/package.json +0 -71
  373. package/node_modules/miller-rabin/.npmignore +0 -2
  374. package/node_modules/miller-rabin/1.js +0 -7
  375. package/node_modules/miller-rabin/README.md +0 -26
  376. package/node_modules/miller-rabin/bin/miller-rabin +0 -29
  377. package/node_modules/miller-rabin/lib/mr.js +0 -115
  378. package/node_modules/miller-rabin/package.json +0 -65
  379. package/node_modules/miller-rabin/test/api-test.js +0 -18
  380. package/node_modules/miller-rabin/test.js +0 -25
  381. package/node_modules/minimalistic-assert/LICENSE +0 -13
  382. package/node_modules/minimalistic-assert/index.js +0 -11
  383. package/node_modules/minimalistic-assert/package.json +0 -51
  384. package/node_modules/minimalistic-assert/readme.md +0 -4
  385. package/node_modules/minimalistic-crypto-utils/.npmignore +0 -2
  386. package/node_modules/minimalistic-crypto-utils/.travis.yml +0 -11
  387. package/node_modules/minimalistic-crypto-utils/README.md +0 -47
  388. package/node_modules/minimalistic-crypto-utils/lib/utils.js +0 -58
  389. package/node_modules/minimalistic-crypto-utils/package.json +0 -59
  390. package/node_modules/minimalistic-crypto-utils/test/utils-test.js +0 -28
  391. package/node_modules/os-browserify/.npmignore +0 -14
  392. package/node_modules/os-browserify/LICENSE +0 -21
  393. package/node_modules/os-browserify/README.md +0 -5
  394. package/node_modules/os-browserify/browser.js +0 -49
  395. package/node_modules/os-browserify/main.js +0 -1
  396. package/node_modules/os-browserify/package.json +0 -56
  397. package/node_modules/pako/CHANGELOG.md +0 -142
  398. package/node_modules/pako/LICENSE +0 -21
  399. package/node_modules/pako/README.md +0 -183
  400. package/node_modules/pako/dist/pako.js +0 -6818
  401. package/node_modules/pako/dist/pako.min.js +0 -1
  402. package/node_modules/pako/dist/pako_deflate.js +0 -3997
  403. package/node_modules/pako/dist/pako_deflate.min.js +0 -1
  404. package/node_modules/pako/dist/pako_inflate.js +0 -3300
  405. package/node_modules/pako/dist/pako_inflate.min.js +0 -1
  406. package/node_modules/pako/index.js +0 -14
  407. package/node_modules/pako/lib/deflate.js +0 -400
  408. package/node_modules/pako/lib/inflate.js +0 -423
  409. package/node_modules/pako/lib/utils/common.js +0 -105
  410. package/node_modules/pako/lib/utils/strings.js +0 -187
  411. package/node_modules/pako/lib/zlib/README +0 -59
  412. package/node_modules/pako/lib/zlib/adler32.js +0 -51
  413. package/node_modules/pako/lib/zlib/constants.js +0 -68
  414. package/node_modules/pako/lib/zlib/crc32.js +0 -59
  415. package/node_modules/pako/lib/zlib/deflate.js +0 -1874
  416. package/node_modules/pako/lib/zlib/gzheader.js +0 -58
  417. package/node_modules/pako/lib/zlib/inffast.js +0 -345
  418. package/node_modules/pako/lib/zlib/inflate.js +0 -1556
  419. package/node_modules/pako/lib/zlib/inftrees.js +0 -343
  420. package/node_modules/pako/lib/zlib/messages.js +0 -32
  421. package/node_modules/pako/lib/zlib/trees.js +0 -1222
  422. package/node_modules/pako/lib/zlib/zstream.js +0 -47
  423. package/node_modules/pako/package.json +0 -94
  424. package/node_modules/parse-asn1/.travis.yml +0 -9
  425. package/node_modules/parse-asn1/LICENSE +0 -13
  426. package/node_modules/parse-asn1/README.md +0 -8
  427. package/node_modules/parse-asn1/aesid.json +0 -13
  428. package/node_modules/parse-asn1/asn1.js +0 -122
  429. package/node_modules/parse-asn1/certificate.js +0 -89
  430. package/node_modules/parse-asn1/fixProc.js +0 -31
  431. package/node_modules/parse-asn1/index.js +0 -107
  432. package/node_modules/parse-asn1/package.json +0 -62
  433. package/node_modules/parse-asn1/test/1024.priv +0 -16
  434. package/node_modules/parse-asn1/test/1024.pub +0 -6
  435. package/node_modules/parse-asn1/test/cert.priv +0 -27
  436. package/node_modules/parse-asn1/test/cert.pub +0 -20
  437. package/node_modules/parse-asn1/test/dsa.1024.priv +0 -18
  438. package/node_modules/parse-asn1/test/dsa.1024.pub +0 -12
  439. package/node_modules/parse-asn1/test/dsa.2048.priv +0 -20
  440. package/node_modules/parse-asn1/test/dsa.2048.pub +0 -20
  441. package/node_modules/parse-asn1/test/ec.pass.priv +0 -7
  442. package/node_modules/parse-asn1/test/ec.priv +0 -5
  443. package/node_modules/parse-asn1/test/ec.pub +0 -4
  444. package/node_modules/parse-asn1/test/index.js +0 -101
  445. package/node_modules/parse-asn1/test/node.cert +0 -20
  446. package/node_modules/parse-asn1/test/pass.1024.priv +0 -18
  447. package/node_modules/parse-asn1/test/pass.1024.pub +0 -6
  448. package/node_modules/parse-asn1/test/pass.dsa.1024.priv +0 -11
  449. package/node_modules/parse-asn1/test/pass.dsa.1024.pub +0 -12
  450. package/node_modules/parse-asn1/test/pass.rsa.1024.priv +0 -18
  451. package/node_modules/parse-asn1/test/pass.rsa.1024.pub +0 -6
  452. package/node_modules/parse-asn1/test/pass.rsa.2028.priv +0 -30
  453. package/node_modules/parse-asn1/test/pass.rsa.2028.pub +0 -9
  454. package/node_modules/parse-asn1/test/pass2.dsa.1024.priv +0 -15
  455. package/node_modules/parse-asn1/test/pass2.dsa.1024.pub +0 -12
  456. package/node_modules/parse-asn1/test/rsa.1024.priv +0 -15
  457. package/node_modules/parse-asn1/test/rsa.1024.pub +0 -5
  458. package/node_modules/parse-asn1/test/rsa.2028.priv +0 -27
  459. package/node_modules/parse-asn1/test/rsa.2028.pub +0 -8
  460. package/node_modules/parse-asn1/test/vector.js +0 -7
  461. package/node_modules/parse-asn1/test/vector.priv +0 -12
  462. package/node_modules/parse-asn1/test/vector2.priv +0 -19
  463. package/node_modules/path-browserify/.travis.yml +0 -16
  464. package/node_modules/path-browserify/CHANGELOG.md +0 -14
  465. package/node_modules/path-browserify/LICENSE +0 -18
  466. package/node_modules/path-browserify/README.md +0 -45
  467. package/node_modules/path-browserify/index.js +0 -529
  468. package/node_modules/path-browserify/package.json +0 -60
  469. package/node_modules/path-browserify/test/index.js +0 -9
  470. package/node_modules/path-browserify/test/test-path-basename.js +0 -79
  471. package/node_modules/path-browserify/test/test-path-dirname.js +0 -58
  472. package/node_modules/path-browserify/test/test-path-extname.js +0 -96
  473. package/node_modules/path-browserify/test/test-path-isabsolute.js +0 -33
  474. package/node_modules/path-browserify/test/test-path-join.js +0 -126
  475. package/node_modules/path-browserify/test/test-path-parse-format.js +0 -235
  476. package/node_modules/path-browserify/test/test-path-relative.js +0 -66
  477. package/node_modules/path-browserify/test/test-path-resolve.js +0 -45
  478. package/node_modules/path-browserify/test/test-path-zero-length-strings.js +0 -53
  479. package/node_modules/path-browserify/test/test-path.js +0 -107
  480. package/node_modules/pbkdf2/LICENSE +0 -21
  481. package/node_modules/pbkdf2/README.md +0 -30
  482. package/node_modules/pbkdf2/browser.js +0 -2
  483. package/node_modules/pbkdf2/index.js +0 -31
  484. package/node_modules/pbkdf2/lib/async.js +0 -100
  485. package/node_modules/pbkdf2/lib/default-encoding.js +0 -10
  486. package/node_modules/pbkdf2/lib/precondition.js +0 -28
  487. package/node_modules/pbkdf2/lib/sync-browser.js +0 -104
  488. package/node_modules/pbkdf2/lib/sync.js +0 -51
  489. package/node_modules/pbkdf2/package.json +0 -101
  490. package/node_modules/process/.eslintrc +0 -21
  491. package/node_modules/process/LICENSE +0 -22
  492. package/node_modules/process/README.md +0 -26
  493. package/node_modules/process/browser.js +0 -184
  494. package/node_modules/process/index.js +0 -2
  495. package/node_modules/process/package.json +0 -62
  496. package/node_modules/process/test.js +0 -199
  497. package/node_modules/process-nextick-args/index.js +0 -44
  498. package/node_modules/process-nextick-args/license.md +0 -19
  499. package/node_modules/process-nextick-args/package.json +0 -53
  500. package/node_modules/process-nextick-args/readme.md +0 -18
  501. package/node_modules/public-encrypt/.travis.yml +0 -6
  502. package/node_modules/public-encrypt/LICENSE +0 -19
  503. package/node_modules/public-encrypt/browser.js +0 -10
  504. package/node_modules/public-encrypt/index.js +0 -18
  505. package/node_modules/public-encrypt/mgf.js +0 -19
  506. package/node_modules/public-encrypt/package.json +0 -67
  507. package/node_modules/public-encrypt/privateDecrypt.js +0 -105
  508. package/node_modules/public-encrypt/publicEncrypt.js +0 -88
  509. package/node_modules/public-encrypt/readme.md +0 -8
  510. package/node_modules/public-encrypt/test/1024.priv +0 -16
  511. package/node_modules/public-encrypt/test/1024.pub +0 -6
  512. package/node_modules/public-encrypt/test/ec.pass.priv +0 -7
  513. package/node_modules/public-encrypt/test/ec.priv +0 -5
  514. package/node_modules/public-encrypt/test/ec.pub +0 -4
  515. package/node_modules/public-encrypt/test/index.js +0 -113
  516. package/node_modules/public-encrypt/test/nodeTests.js +0 -51
  517. package/node_modules/public-encrypt/test/pass.1024.priv +0 -18
  518. package/node_modules/public-encrypt/test/pass.1024.pub +0 -6
  519. package/node_modules/public-encrypt/test/rsa.1024.priv +0 -15
  520. package/node_modules/public-encrypt/test/rsa.1024.pub +0 -5
  521. package/node_modules/public-encrypt/test/rsa.2028.priv +0 -27
  522. package/node_modules/public-encrypt/test/rsa.2028.pub +0 -8
  523. package/node_modules/public-encrypt/test/rsa.pass.priv +0 -30
  524. package/node_modules/public-encrypt/test/rsa.pass.pub +0 -9
  525. package/node_modules/public-encrypt/test/test_cert.pem +0 -20
  526. package/node_modules/public-encrypt/test/test_key.pem +0 -15
  527. package/node_modules/public-encrypt/test/test_rsa_privkey.pem +0 -15
  528. package/node_modules/public-encrypt/test/test_rsa_privkey_encrypted.pem +0 -18
  529. package/node_modules/public-encrypt/test/test_rsa_pubkey.pem +0 -6
  530. package/node_modules/public-encrypt/withPublic.js +0 -12
  531. package/node_modules/public-encrypt/xor.js +0 -8
  532. package/node_modules/punycode/LICENSE-MIT.txt +0 -20
  533. package/node_modules/punycode/README.md +0 -122
  534. package/node_modules/punycode/package.json +0 -88
  535. package/node_modules/punycode/punycode.es6.js +0 -441
  536. package/node_modules/punycode/punycode.js +0 -440
  537. package/node_modules/querystring/.History.md.un~ +0 -0
  538. package/node_modules/querystring/.Readme.md.un~ +0 -0
  539. package/node_modules/querystring/.package.json.un~ +0 -0
  540. package/node_modules/querystring/.travis.yml +0 -4
  541. package/node_modules/querystring/History.md +0 -20
  542. package/node_modules/querystring/License.md +0 -19
  543. package/node_modules/querystring/Readme.md +0 -15
  544. package/node_modules/querystring/decode.js +0 -80
  545. package/node_modules/querystring/encode.js +0 -64
  546. package/node_modules/querystring/index.js +0 -4
  547. package/node_modules/querystring/package.json +0 -103
  548. package/node_modules/querystring/test/.index.js.un~ +0 -0
  549. package/node_modules/querystring/test/common-index.js +0 -3
  550. package/node_modules/querystring/test/index.js +0 -210
  551. package/node_modules/querystring/test/tap-index.js +0 -3
  552. package/node_modules/querystring-es3/.travis.yml +0 -4
  553. package/node_modules/querystring-es3/History.md +0 -20
  554. package/node_modules/querystring-es3/License.md +0 -19
  555. package/node_modules/querystring-es3/Readme.md +0 -15
  556. package/node_modules/querystring-es3/decode.js +0 -84
  557. package/node_modules/querystring-es3/encode.js +0 -85
  558. package/node_modules/querystring-es3/index.js +0 -4
  559. package/node_modules/querystring-es3/package.json +0 -103
  560. package/node_modules/querystring-es3/test/common-index.js +0 -3
  561. package/node_modules/querystring-es3/test/index.js +0 -210
  562. package/node_modules/querystring-es3/test/tap-index.js +0 -3
  563. package/node_modules/randombytes/.travis.yml +0 -15
  564. package/node_modules/randombytes/.zuul.yml +0 -1
  565. package/node_modules/randombytes/LICENSE +0 -21
  566. package/node_modules/randombytes/README.md +0 -14
  567. package/node_modules/randombytes/browser.js +0 -50
  568. package/node_modules/randombytes/index.js +0 -1
  569. package/node_modules/randombytes/package.json +0 -68
  570. package/node_modules/randombytes/test.js +0 -81
  571. package/node_modules/randomfill/.travis.yml +0 -15
  572. package/node_modules/randomfill/.zuul.yml +0 -1
  573. package/node_modules/randomfill/LICENSE +0 -21
  574. package/node_modules/randomfill/README.md +0 -15
  575. package/node_modules/randomfill/browser.js +0 -108
  576. package/node_modules/randomfill/index.js +0 -7
  577. package/node_modules/randomfill/package.json +0 -65
  578. package/node_modules/randomfill/test.js +0 -28
  579. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  580. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  581. package/node_modules/readable-stream/LICENSE +0 -47
  582. package/node_modules/readable-stream/README.md +0 -111
  583. package/node_modules/readable-stream/errors-browser.js +0 -127
  584. package/node_modules/readable-stream/errors.js +0 -116
  585. package/node_modules/readable-stream/experimentalWarning.js +0 -17
  586. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
  587. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
  588. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1087
  589. package/node_modules/readable-stream/lib/_stream_transform.js +0 -201
  590. package/node_modules/readable-stream/lib/_stream_writable.js +0 -683
  591. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
  592. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -189
  593. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -85
  594. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
  595. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
  596. package/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
  597. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  598. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  599. package/node_modules/readable-stream/node_modules/inherits/LICENSE +0 -16
  600. package/node_modules/readable-stream/node_modules/inherits/README.md +0 -42
  601. package/node_modules/readable-stream/node_modules/inherits/inherits.js +0 -7
  602. package/node_modules/readable-stream/node_modules/inherits/inherits_browser.js +0 -23
  603. package/node_modules/readable-stream/node_modules/inherits/package.json +0 -64
  604. package/node_modules/readable-stream/package.json +0 -99
  605. package/node_modules/readable-stream/readable-browser.js +0 -7
  606. package/node_modules/readable-stream/readable.js +0 -16
  607. package/node_modules/ripemd160/CHANGELOG.md +0 -72
  608. package/node_modules/ripemd160/LICENSE +0 -21
  609. package/node_modules/ripemd160/README.md +0 -27
  610. package/node_modules/ripemd160/index.js +0 -163
  611. package/node_modules/ripemd160/package.json +0 -71
  612. package/node_modules/safe-buffer/LICENSE +0 -21
  613. package/node_modules/safe-buffer/README.md +0 -584
  614. package/node_modules/safe-buffer/index.d.ts +0 -187
  615. package/node_modules/safe-buffer/index.js +0 -62
  616. package/node_modules/safe-buffer/package.json +0 -80
  617. package/node_modules/setimmediate/LICENSE.txt +0 -20
  618. package/node_modules/setimmediate/package.json +0 -77
  619. package/node_modules/setimmediate/setImmediate.js +0 -186
  620. package/node_modules/sha.js/.travis.yml +0 -17
  621. package/node_modules/sha.js/LICENSE +0 -49
  622. package/node_modules/sha.js/README.md +0 -44
  623. package/node_modules/sha.js/bin.js +0 -41
  624. package/node_modules/sha.js/hash.js +0 -81
  625. package/node_modules/sha.js/index.js +0 -15
  626. package/node_modules/sha.js/package.json +0 -69
  627. package/node_modules/sha.js/sha.js +0 -94
  628. package/node_modules/sha.js/sha1.js +0 -99
  629. package/node_modules/sha.js/sha224.js +0 -53
  630. package/node_modules/sha.js/sha256.js +0 -135
  631. package/node_modules/sha.js/sha384.js +0 -57
  632. package/node_modules/sha.js/sha512.js +0 -260
  633. package/node_modules/sha.js/test/hash.js +0 -75
  634. package/node_modules/sha.js/test/test.js +0 -100
  635. package/node_modules/sha.js/test/vectors.js +0 -72
  636. package/node_modules/stream-browserify/.travis.yml +0 -16
  637. package/node_modules/stream-browserify/LICENSE +0 -20
  638. package/node_modules/stream-browserify/index.js +0 -127
  639. package/node_modules/stream-browserify/node_modules/readable-stream/.travis.yml +0 -55
  640. package/node_modules/stream-browserify/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  641. package/node_modules/stream-browserify/node_modules/readable-stream/GOVERNANCE.md +0 -136
  642. package/node_modules/stream-browserify/node_modules/readable-stream/LICENSE +0 -47
  643. package/node_modules/stream-browserify/node_modules/readable-stream/README.md +0 -58
  644. package/node_modules/stream-browserify/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
  645. package/node_modules/stream-browserify/node_modules/readable-stream/duplex-browser.js +0 -1
  646. package/node_modules/stream-browserify/node_modules/readable-stream/duplex.js +0 -1
  647. package/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
  648. package/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
  649. package/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
  650. package/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_transform.js +0 -214
  651. package/node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_writable.js +0 -687
  652. package/node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
  653. package/node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -74
  654. package/node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  655. package/node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  656. package/node_modules/stream-browserify/node_modules/readable-stream/node_modules/inherits/LICENSE +0 -16
  657. package/node_modules/stream-browserify/node_modules/readable-stream/node_modules/inherits/README.md +0 -42
  658. package/node_modules/stream-browserify/node_modules/readable-stream/node_modules/inherits/inherits.js +0 -7
  659. package/node_modules/stream-browserify/node_modules/readable-stream/node_modules/inherits/inherits_browser.js +0 -23
  660. package/node_modules/stream-browserify/node_modules/readable-stream/node_modules/inherits/package.json +0 -64
  661. package/node_modules/stream-browserify/node_modules/readable-stream/package.json +0 -84
  662. package/node_modules/stream-browserify/node_modules/readable-stream/passthrough.js +0 -1
  663. package/node_modules/stream-browserify/node_modules/readable-stream/readable-browser.js +0 -7
  664. package/node_modules/stream-browserify/node_modules/readable-stream/readable.js +0 -19
  665. package/node_modules/stream-browserify/node_modules/readable-stream/transform.js +0 -1
  666. package/node_modules/stream-browserify/node_modules/readable-stream/writable-browser.js +0 -1
  667. package/node_modules/stream-browserify/node_modules/readable-stream/writable.js +0 -8
  668. package/node_modules/stream-browserify/node_modules/string_decoder/.travis.yml +0 -50
  669. package/node_modules/stream-browserify/node_modules/string_decoder/LICENSE +0 -48
  670. package/node_modules/stream-browserify/node_modules/string_decoder/README.md +0 -47
  671. package/node_modules/stream-browserify/node_modules/string_decoder/lib/string_decoder.js +0 -296
  672. package/node_modules/stream-browserify/node_modules/string_decoder/package.json +0 -62
  673. package/node_modules/stream-browserify/package.json +0 -89
  674. package/node_modules/stream-browserify/readme.markdown +0 -25
  675. package/node_modules/stream-browserify/test/buf.js +0 -33
  676. package/node_modules/stream-http/.airtap.yml +0 -22
  677. package/node_modules/stream-http/.travis.yml +0 -7
  678. package/node_modules/stream-http/LICENSE +0 -24
  679. package/node_modules/stream-http/README.md +0 -136
  680. package/node_modules/stream-http/index.js +0 -85
  681. package/node_modules/stream-http/lib/capability.js +0 -59
  682. package/node_modules/stream-http/lib/request.js +0 -315
  683. package/node_modules/stream-http/lib/response.js +0 -207
  684. package/node_modules/stream-http/package.json +0 -75
  685. package/node_modules/stream-http/test/browser/abort.js +0 -55
  686. package/node_modules/stream-http/test/browser/auth.js +0 -22
  687. package/node_modules/stream-http/test/browser/binary-streaming.js +0 -50
  688. package/node_modules/stream-http/test/browser/binary.js +0 -23
  689. package/node_modules/stream-http/test/browser/body-empty.js +0 -29
  690. package/node_modules/stream-http/test/browser/cookie.js +0 -25
  691. package/node_modules/stream-http/test/browser/disable-fetch.js +0 -37
  692. package/node_modules/stream-http/test/browser/error.js.disabled +0 -12
  693. package/node_modules/stream-http/test/browser/headers.js +0 -116
  694. package/node_modules/stream-http/test/browser/lib/webworker-worker.js +0 -20
  695. package/node_modules/stream-http/test/browser/package.json +0 -5
  696. package/node_modules/stream-http/test/browser/post-binary.js +0 -29
  697. package/node_modules/stream-http/test/browser/post-text.js +0 -48
  698. package/node_modules/stream-http/test/browser/text-streaming.js +0 -40
  699. package/node_modules/stream-http/test/browser/text.js +0 -42
  700. package/node_modules/stream-http/test/browser/timeout.js +0 -43
  701. package/node_modules/stream-http/test/browser/webworker.js +0 -21
  702. package/node_modules/stream-http/test/node/http-browserify.js +0 -147
  703. package/node_modules/stream-http/test/server/index.js +0 -137
  704. package/node_modules/stream-http/test/server/static/basic.txt +0 -19
  705. package/node_modules/stream-http/test/server/static/browserify.png +0 -0
  706. package/node_modules/stream-http/test/server/static/test-polyfill.js +0 -9
  707. package/node_modules/string_decoder/LICENSE +0 -48
  708. package/node_modules/string_decoder/README.md +0 -47
  709. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  710. package/node_modules/string_decoder/package.json +0 -66
  711. package/node_modules/timers-browserify/CHANGELOG.md +0 -140
  712. package/node_modules/timers-browserify/LICENSE.md +0 -46
  713. package/node_modules/timers-browserify/README.md +0 -40
  714. package/node_modules/timers-browserify/main.js +0 -63
  715. package/node_modules/timers-browserify/package.json +0 -126
  716. package/node_modules/tty-browserify/LICENSE +0 -18
  717. package/node_modules/tty-browserify/index.js +0 -11
  718. package/node_modules/tty-browserify/package.json +0 -60
  719. package/node_modules/tty-browserify/readme.markdown +0 -1
  720. package/node_modules/url/.npmignore +0 -1
  721. package/node_modules/url/.travis.yml +0 -7
  722. package/node_modules/url/.zuul.yml +0 -16
  723. package/node_modules/url/LICENSE +0 -21
  724. package/node_modules/url/README.md +0 -108
  725. package/node_modules/url/node_modules/punycode/LICENSE-MIT.txt +0 -20
  726. package/node_modules/url/node_modules/punycode/README.md +0 -176
  727. package/node_modules/url/node_modules/punycode/package.json +0 -83
  728. package/node_modules/url/node_modules/punycode/punycode.js +0 -530
  729. package/node_modules/url/package.json +0 -56
  730. package/node_modules/url/test.js +0 -1599
  731. package/node_modules/url/url.js +0 -732
  732. package/node_modules/url/util.js +0 -16
  733. package/node_modules/util/CHANGELOG.md +0 -15
  734. package/node_modules/util/LICENSE +0 -18
  735. package/node_modules/util/README.md +0 -48
  736. package/node_modules/util/node_modules/inherits/LICENSE +0 -16
  737. package/node_modules/util/node_modules/inherits/README.md +0 -42
  738. package/node_modules/util/node_modules/inherits/inherits.js +0 -7
  739. package/node_modules/util/node_modules/inherits/inherits_browser.js +0 -23
  740. package/node_modules/util/node_modules/inherits/package.json +0 -64
  741. package/node_modules/util/package.json +0 -70
  742. package/node_modules/util/support/isBuffer.js +0 -3
  743. package/node_modules/util/support/isBufferBrowser.js +0 -6
  744. package/node_modules/util/util.js +0 -703
  745. package/node_modules/util-deprecate/History.md +0 -16
  746. package/node_modules/util-deprecate/LICENSE +0 -24
  747. package/node_modules/util-deprecate/README.md +0 -53
  748. package/node_modules/util-deprecate/browser.js +0 -67
  749. package/node_modules/util-deprecate/node.js +0 -6
  750. package/node_modules/util-deprecate/package.json +0 -60
  751. package/node_modules/vm-browserify/.travis.yml +0 -6
  752. package/node_modules/vm-browserify/CHANGELOG.md +0 -16
  753. package/node_modules/vm-browserify/LICENSE +0 -18
  754. package/node_modules/vm-browserify/example/run/bundle.js +0 -473
  755. package/node_modules/vm-browserify/example/run/entry.js +0 -6
  756. package/node_modules/vm-browserify/example/run/index.html +0 -9
  757. package/node_modules/vm-browserify/example/run/server.js +0 -6
  758. package/node_modules/vm-browserify/index.js +0 -149
  759. package/node_modules/vm-browserify/package.json +0 -62
  760. package/node_modules/vm-browserify/readme.markdown +0 -67
  761. package/node_modules/vm-browserify/test/vm.js +0 -35
  762. package/node_modules/xtend/.jshintrc +0 -30
  763. package/node_modules/xtend/.npmignore +0 -1
  764. package/node_modules/xtend/LICENCE +0 -19
  765. package/node_modules/xtend/Makefile +0 -4
  766. package/node_modules/xtend/README.md +0 -32
  767. package/node_modules/xtend/immutable.js +0 -19
  768. package/node_modules/xtend/mutable.js +0 -17
  769. package/node_modules/xtend/package.json +0 -89
  770. package/node_modules/xtend/test.js +0 -83
@@ -1,732 +0,0 @@
1
- // Copyright Joyent, Inc. and other Node contributors.
2
- //
3
- // Permission is hereby granted, free of charge, to any person obtaining a
4
- // copy of this software and associated documentation files (the
5
- // "Software"), to deal in the Software without restriction, including
6
- // without limitation the rights to use, copy, modify, merge, publish,
7
- // distribute, sublicense, and/or sell copies of the Software, and to permit
8
- // persons to whom the Software is furnished to do so, subject to the
9
- // following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included
12
- // in all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- 'use strict';
23
-
24
- var punycode = require('punycode');
25
- var util = require('./util');
26
-
27
- exports.parse = urlParse;
28
- exports.resolve = urlResolve;
29
- exports.resolveObject = urlResolveObject;
30
- exports.format = urlFormat;
31
-
32
- exports.Url = Url;
33
-
34
- function Url() {
35
- this.protocol = null;
36
- this.slashes = null;
37
- this.auth = null;
38
- this.host = null;
39
- this.port = null;
40
- this.hostname = null;
41
- this.hash = null;
42
- this.search = null;
43
- this.query = null;
44
- this.pathname = null;
45
- this.path = null;
46
- this.href = null;
47
- }
48
-
49
- // Reference: RFC 3986, RFC 1808, RFC 2396
50
-
51
- // define these here so at least they only have to be
52
- // compiled once on the first module load.
53
- var protocolPattern = /^([a-z0-9.+-]+:)/i,
54
- portPattern = /:[0-9]*$/,
55
-
56
- // Special case for a simple path URL
57
- simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
58
-
59
- // RFC 2396: characters reserved for delimiting URLs.
60
- // We actually just auto-escape these.
61
- delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],
62
-
63
- // RFC 2396: characters not allowed for various reasons.
64
- unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims),
65
-
66
- // Allowed by RFCs, but cause of XSS attacks. Always escape these.
67
- autoEscape = ['\''].concat(unwise),
68
- // Characters that are never ever allowed in a hostname.
69
- // Note that any invalid chars are also handled, but these
70
- // are the ones that are *expected* to be seen, so we fast-path
71
- // them.
72
- nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),
73
- hostEndingChars = ['/', '?', '#'],
74
- hostnameMaxLen = 255,
75
- hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,
76
- hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
77
- // protocols that can allow "unsafe" and "unwise" chars.
78
- unsafeProtocol = {
79
- 'javascript': true,
80
- 'javascript:': true
81
- },
82
- // protocols that never have a hostname.
83
- hostlessProtocol = {
84
- 'javascript': true,
85
- 'javascript:': true
86
- },
87
- // protocols that always contain a // bit.
88
- slashedProtocol = {
89
- 'http': true,
90
- 'https': true,
91
- 'ftp': true,
92
- 'gopher': true,
93
- 'file': true,
94
- 'http:': true,
95
- 'https:': true,
96
- 'ftp:': true,
97
- 'gopher:': true,
98
- 'file:': true
99
- },
100
- querystring = require('querystring');
101
-
102
- function urlParse(url, parseQueryString, slashesDenoteHost) {
103
- if (url && util.isObject(url) && url instanceof Url) return url;
104
-
105
- var u = new Url;
106
- u.parse(url, parseQueryString, slashesDenoteHost);
107
- return u;
108
- }
109
-
110
- Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
111
- if (!util.isString(url)) {
112
- throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
113
- }
114
-
115
- // Copy chrome, IE, opera backslash-handling behavior.
116
- // Back slashes before the query string get converted to forward slashes
117
- // See: https://code.google.com/p/chromium/issues/detail?id=25916
118
- var queryIndex = url.indexOf('?'),
119
- splitter =
120
- (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',
121
- uSplit = url.split(splitter),
122
- slashRegex = /\\/g;
123
- uSplit[0] = uSplit[0].replace(slashRegex, '/');
124
- url = uSplit.join(splitter);
125
-
126
- var rest = url;
127
-
128
- // trim before proceeding.
129
- // This is to support parse stuff like " http://foo.com \n"
130
- rest = rest.trim();
131
-
132
- if (!slashesDenoteHost && url.split('#').length === 1) {
133
- // Try fast path regexp
134
- var simplePath = simplePathPattern.exec(rest);
135
- if (simplePath) {
136
- this.path = rest;
137
- this.href = rest;
138
- this.pathname = simplePath[1];
139
- if (simplePath[2]) {
140
- this.search = simplePath[2];
141
- if (parseQueryString) {
142
- this.query = querystring.parse(this.search.substr(1));
143
- } else {
144
- this.query = this.search.substr(1);
145
- }
146
- } else if (parseQueryString) {
147
- this.search = '';
148
- this.query = {};
149
- }
150
- return this;
151
- }
152
- }
153
-
154
- var proto = protocolPattern.exec(rest);
155
- if (proto) {
156
- proto = proto[0];
157
- var lowerProto = proto.toLowerCase();
158
- this.protocol = lowerProto;
159
- rest = rest.substr(proto.length);
160
- }
161
-
162
- // figure out if it's got a host
163
- // user@server is *always* interpreted as a hostname, and url
164
- // resolution will treat //foo/bar as host=foo,path=bar because that's
165
- // how the browser resolves relative URLs.
166
- if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) {
167
- var slashes = rest.substr(0, 2) === '//';
168
- if (slashes && !(proto && hostlessProtocol[proto])) {
169
- rest = rest.substr(2);
170
- this.slashes = true;
171
- }
172
- }
173
-
174
- if (!hostlessProtocol[proto] &&
175
- (slashes || (proto && !slashedProtocol[proto]))) {
176
-
177
- // there's a hostname.
178
- // the first instance of /, ?, ;, or # ends the host.
179
- //
180
- // If there is an @ in the hostname, then non-host chars *are* allowed
181
- // to the left of the last @ sign, unless some host-ending character
182
- // comes *before* the @-sign.
183
- // URLs are obnoxious.
184
- //
185
- // ex:
186
- // http://a@b@c/ => user:a@b host:c
187
- // http://a@b?@c => user:a host:c path:/?@c
188
-
189
- // v0.12 TODO(isaacs): This is not quite how Chrome does things.
190
- // Review our test case against browsers more comprehensively.
191
-
192
- // find the first instance of any hostEndingChars
193
- var hostEnd = -1;
194
- for (var i = 0; i < hostEndingChars.length; i++) {
195
- var hec = rest.indexOf(hostEndingChars[i]);
196
- if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
197
- hostEnd = hec;
198
- }
199
-
200
- // at this point, either we have an explicit point where the
201
- // auth portion cannot go past, or the last @ char is the decider.
202
- var auth, atSign;
203
- if (hostEnd === -1) {
204
- // atSign can be anywhere.
205
- atSign = rest.lastIndexOf('@');
206
- } else {
207
- // atSign must be in auth portion.
208
- // http://a@b/c@d => host:b auth:a path:/c@d
209
- atSign = rest.lastIndexOf('@', hostEnd);
210
- }
211
-
212
- // Now we have a portion which is definitely the auth.
213
- // Pull that off.
214
- if (atSign !== -1) {
215
- auth = rest.slice(0, atSign);
216
- rest = rest.slice(atSign + 1);
217
- this.auth = decodeURIComponent(auth);
218
- }
219
-
220
- // the host is the remaining to the left of the first non-host char
221
- hostEnd = -1;
222
- for (var i = 0; i < nonHostChars.length; i++) {
223
- var hec = rest.indexOf(nonHostChars[i]);
224
- if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
225
- hostEnd = hec;
226
- }
227
- // if we still have not hit it, then the entire thing is a host.
228
- if (hostEnd === -1)
229
- hostEnd = rest.length;
230
-
231
- this.host = rest.slice(0, hostEnd);
232
- rest = rest.slice(hostEnd);
233
-
234
- // pull out port.
235
- this.parseHost();
236
-
237
- // we've indicated that there is a hostname,
238
- // so even if it's empty, it has to be present.
239
- this.hostname = this.hostname || '';
240
-
241
- // if hostname begins with [ and ends with ]
242
- // assume that it's an IPv6 address.
243
- var ipv6Hostname = this.hostname[0] === '[' &&
244
- this.hostname[this.hostname.length - 1] === ']';
245
-
246
- // validate a little.
247
- if (!ipv6Hostname) {
248
- var hostparts = this.hostname.split(/\./);
249
- for (var i = 0, l = hostparts.length; i < l; i++) {
250
- var part = hostparts[i];
251
- if (!part) continue;
252
- if (!part.match(hostnamePartPattern)) {
253
- var newpart = '';
254
- for (var j = 0, k = part.length; j < k; j++) {
255
- if (part.charCodeAt(j) > 127) {
256
- // we replace non-ASCII char with a temporary placeholder
257
- // we need this to make sure size of hostname is not
258
- // broken by replacing non-ASCII by nothing
259
- newpart += 'x';
260
- } else {
261
- newpart += part[j];
262
- }
263
- }
264
- // we test again with ASCII char only
265
- if (!newpart.match(hostnamePartPattern)) {
266
- var validParts = hostparts.slice(0, i);
267
- var notHost = hostparts.slice(i + 1);
268
- var bit = part.match(hostnamePartStart);
269
- if (bit) {
270
- validParts.push(bit[1]);
271
- notHost.unshift(bit[2]);
272
- }
273
- if (notHost.length) {
274
- rest = '/' + notHost.join('.') + rest;
275
- }
276
- this.hostname = validParts.join('.');
277
- break;
278
- }
279
- }
280
- }
281
- }
282
-
283
- if (this.hostname.length > hostnameMaxLen) {
284
- this.hostname = '';
285
- } else {
286
- // hostnames are always lower case.
287
- this.hostname = this.hostname.toLowerCase();
288
- }
289
-
290
- if (!ipv6Hostname) {
291
- // IDNA Support: Returns a punycoded representation of "domain".
292
- // It only converts parts of the domain name that
293
- // have non-ASCII characters, i.e. it doesn't matter if
294
- // you call it with a domain that already is ASCII-only.
295
- this.hostname = punycode.toASCII(this.hostname);
296
- }
297
-
298
- var p = this.port ? ':' + this.port : '';
299
- var h = this.hostname || '';
300
- this.host = h + p;
301
- this.href += this.host;
302
-
303
- // strip [ and ] from the hostname
304
- // the host field still retains them, though
305
- if (ipv6Hostname) {
306
- this.hostname = this.hostname.substr(1, this.hostname.length - 2);
307
- if (rest[0] !== '/') {
308
- rest = '/' + rest;
309
- }
310
- }
311
- }
312
-
313
- // now rest is set to the post-host stuff.
314
- // chop off any delim chars.
315
- if (!unsafeProtocol[lowerProto]) {
316
-
317
- // First, make 100% sure that any "autoEscape" chars get
318
- // escaped, even if encodeURIComponent doesn't think they
319
- // need to be.
320
- for (var i = 0, l = autoEscape.length; i < l; i++) {
321
- var ae = autoEscape[i];
322
- if (rest.indexOf(ae) === -1)
323
- continue;
324
- var esc = encodeURIComponent(ae);
325
- if (esc === ae) {
326
- esc = escape(ae);
327
- }
328
- rest = rest.split(ae).join(esc);
329
- }
330
- }
331
-
332
-
333
- // chop off from the tail first.
334
- var hash = rest.indexOf('#');
335
- if (hash !== -1) {
336
- // got a fragment string.
337
- this.hash = rest.substr(hash);
338
- rest = rest.slice(0, hash);
339
- }
340
- var qm = rest.indexOf('?');
341
- if (qm !== -1) {
342
- this.search = rest.substr(qm);
343
- this.query = rest.substr(qm + 1);
344
- if (parseQueryString) {
345
- this.query = querystring.parse(this.query);
346
- }
347
- rest = rest.slice(0, qm);
348
- } else if (parseQueryString) {
349
- // no query string, but parseQueryString still requested
350
- this.search = '';
351
- this.query = {};
352
- }
353
- if (rest) this.pathname = rest;
354
- if (slashedProtocol[lowerProto] &&
355
- this.hostname && !this.pathname) {
356
- this.pathname = '/';
357
- }
358
-
359
- //to support http.request
360
- if (this.pathname || this.search) {
361
- var p = this.pathname || '';
362
- var s = this.search || '';
363
- this.path = p + s;
364
- }
365
-
366
- // finally, reconstruct the href based on what has been validated.
367
- this.href = this.format();
368
- return this;
369
- };
370
-
371
- // format a parsed object into a url string
372
- function urlFormat(obj) {
373
- // ensure it's an object, and not a string url.
374
- // If it's an obj, this is a no-op.
375
- // this way, you can call url_format() on strings
376
- // to clean up potentially wonky urls.
377
- if (util.isString(obj)) obj = urlParse(obj);
378
- if (!(obj instanceof Url)) return Url.prototype.format.call(obj);
379
- return obj.format();
380
- }
381
-
382
- Url.prototype.format = function() {
383
- var auth = this.auth || '';
384
- if (auth) {
385
- auth = encodeURIComponent(auth);
386
- auth = auth.replace(/%3A/i, ':');
387
- auth += '@';
388
- }
389
-
390
- var protocol = this.protocol || '',
391
- pathname = this.pathname || '',
392
- hash = this.hash || '',
393
- host = false,
394
- query = '';
395
-
396
- if (this.host) {
397
- host = auth + this.host;
398
- } else if (this.hostname) {
399
- host = auth + (this.hostname.indexOf(':') === -1 ?
400
- this.hostname :
401
- '[' + this.hostname + ']');
402
- if (this.port) {
403
- host += ':' + this.port;
404
- }
405
- }
406
-
407
- if (this.query &&
408
- util.isObject(this.query) &&
409
- Object.keys(this.query).length) {
410
- query = querystring.stringify(this.query);
411
- }
412
-
413
- var search = this.search || (query && ('?' + query)) || '';
414
-
415
- if (protocol && protocol.substr(-1) !== ':') protocol += ':';
416
-
417
- // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.
418
- // unless they had them to begin with.
419
- if (this.slashes ||
420
- (!protocol || slashedProtocol[protocol]) && host !== false) {
421
- host = '//' + (host || '');
422
- if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;
423
- } else if (!host) {
424
- host = '';
425
- }
426
-
427
- if (hash && hash.charAt(0) !== '#') hash = '#' + hash;
428
- if (search && search.charAt(0) !== '?') search = '?' + search;
429
-
430
- pathname = pathname.replace(/[?#]/g, function(match) {
431
- return encodeURIComponent(match);
432
- });
433
- search = search.replace('#', '%23');
434
-
435
- return protocol + host + pathname + search + hash;
436
- };
437
-
438
- function urlResolve(source, relative) {
439
- return urlParse(source, false, true).resolve(relative);
440
- }
441
-
442
- Url.prototype.resolve = function(relative) {
443
- return this.resolveObject(urlParse(relative, false, true)).format();
444
- };
445
-
446
- function urlResolveObject(source, relative) {
447
- if (!source) return relative;
448
- return urlParse(source, false, true).resolveObject(relative);
449
- }
450
-
451
- Url.prototype.resolveObject = function(relative) {
452
- if (util.isString(relative)) {
453
- var rel = new Url();
454
- rel.parse(relative, false, true);
455
- relative = rel;
456
- }
457
-
458
- var result = new Url();
459
- var tkeys = Object.keys(this);
460
- for (var tk = 0; tk < tkeys.length; tk++) {
461
- var tkey = tkeys[tk];
462
- result[tkey] = this[tkey];
463
- }
464
-
465
- // hash is always overridden, no matter what.
466
- // even href="" will remove it.
467
- result.hash = relative.hash;
468
-
469
- // if the relative url is empty, then there's nothing left to do here.
470
- if (relative.href === '') {
471
- result.href = result.format();
472
- return result;
473
- }
474
-
475
- // hrefs like //foo/bar always cut to the protocol.
476
- if (relative.slashes && !relative.protocol) {
477
- // take everything except the protocol from relative
478
- var rkeys = Object.keys(relative);
479
- for (var rk = 0; rk < rkeys.length; rk++) {
480
- var rkey = rkeys[rk];
481
- if (rkey !== 'protocol')
482
- result[rkey] = relative[rkey];
483
- }
484
-
485
- //urlParse appends trailing / to urls like http://www.example.com
486
- if (slashedProtocol[result.protocol] &&
487
- result.hostname && !result.pathname) {
488
- result.path = result.pathname = '/';
489
- }
490
-
491
- result.href = result.format();
492
- return result;
493
- }
494
-
495
- if (relative.protocol && relative.protocol !== result.protocol) {
496
- // if it's a known url protocol, then changing
497
- // the protocol does weird things
498
- // first, if it's not file:, then we MUST have a host,
499
- // and if there was a path
500
- // to begin with, then we MUST have a path.
501
- // if it is file:, then the host is dropped,
502
- // because that's known to be hostless.
503
- // anything else is assumed to be absolute.
504
- if (!slashedProtocol[relative.protocol]) {
505
- var keys = Object.keys(relative);
506
- for (var v = 0; v < keys.length; v++) {
507
- var k = keys[v];
508
- result[k] = relative[k];
509
- }
510
- result.href = result.format();
511
- return result;
512
- }
513
-
514
- result.protocol = relative.protocol;
515
- if (!relative.host && !hostlessProtocol[relative.protocol]) {
516
- var relPath = (relative.pathname || '').split('/');
517
- while (relPath.length && !(relative.host = relPath.shift()));
518
- if (!relative.host) relative.host = '';
519
- if (!relative.hostname) relative.hostname = '';
520
- if (relPath[0] !== '') relPath.unshift('');
521
- if (relPath.length < 2) relPath.unshift('');
522
- result.pathname = relPath.join('/');
523
- } else {
524
- result.pathname = relative.pathname;
525
- }
526
- result.search = relative.search;
527
- result.query = relative.query;
528
- result.host = relative.host || '';
529
- result.auth = relative.auth;
530
- result.hostname = relative.hostname || relative.host;
531
- result.port = relative.port;
532
- // to support http.request
533
- if (result.pathname || result.search) {
534
- var p = result.pathname || '';
535
- var s = result.search || '';
536
- result.path = p + s;
537
- }
538
- result.slashes = result.slashes || relative.slashes;
539
- result.href = result.format();
540
- return result;
541
- }
542
-
543
- var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),
544
- isRelAbs = (
545
- relative.host ||
546
- relative.pathname && relative.pathname.charAt(0) === '/'
547
- ),
548
- mustEndAbs = (isRelAbs || isSourceAbs ||
549
- (result.host && relative.pathname)),
550
- removeAllDots = mustEndAbs,
551
- srcPath = result.pathname && result.pathname.split('/') || [],
552
- relPath = relative.pathname && relative.pathname.split('/') || [],
553
- psychotic = result.protocol && !slashedProtocol[result.protocol];
554
-
555
- // if the url is a non-slashed url, then relative
556
- // links like ../.. should be able
557
- // to crawl up to the hostname, as well. This is strange.
558
- // result.protocol has already been set by now.
559
- // Later on, put the first path part into the host field.
560
- if (psychotic) {
561
- result.hostname = '';
562
- result.port = null;
563
- if (result.host) {
564
- if (srcPath[0] === '') srcPath[0] = result.host;
565
- else srcPath.unshift(result.host);
566
- }
567
- result.host = '';
568
- if (relative.protocol) {
569
- relative.hostname = null;
570
- relative.port = null;
571
- if (relative.host) {
572
- if (relPath[0] === '') relPath[0] = relative.host;
573
- else relPath.unshift(relative.host);
574
- }
575
- relative.host = null;
576
- }
577
- mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');
578
- }
579
-
580
- if (isRelAbs) {
581
- // it's absolute.
582
- result.host = (relative.host || relative.host === '') ?
583
- relative.host : result.host;
584
- result.hostname = (relative.hostname || relative.hostname === '') ?
585
- relative.hostname : result.hostname;
586
- result.search = relative.search;
587
- result.query = relative.query;
588
- srcPath = relPath;
589
- // fall through to the dot-handling below.
590
- } else if (relPath.length) {
591
- // it's relative
592
- // throw away the existing file, and take the new path instead.
593
- if (!srcPath) srcPath = [];
594
- srcPath.pop();
595
- srcPath = srcPath.concat(relPath);
596
- result.search = relative.search;
597
- result.query = relative.query;
598
- } else if (!util.isNullOrUndefined(relative.search)) {
599
- // just pull out the search.
600
- // like href='?foo'.
601
- // Put this after the other two cases because it simplifies the booleans
602
- if (psychotic) {
603
- result.hostname = result.host = srcPath.shift();
604
- //occationaly the auth can get stuck only in host
605
- //this especially happens in cases like
606
- //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
607
- var authInHost = result.host && result.host.indexOf('@') > 0 ?
608
- result.host.split('@') : false;
609
- if (authInHost) {
610
- result.auth = authInHost.shift();
611
- result.host = result.hostname = authInHost.shift();
612
- }
613
- }
614
- result.search = relative.search;
615
- result.query = relative.query;
616
- //to support http.request
617
- if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
618
- result.path = (result.pathname ? result.pathname : '') +
619
- (result.search ? result.search : '');
620
- }
621
- result.href = result.format();
622
- return result;
623
- }
624
-
625
- if (!srcPath.length) {
626
- // no path at all. easy.
627
- // we've already handled the other stuff above.
628
- result.pathname = null;
629
- //to support http.request
630
- if (result.search) {
631
- result.path = '/' + result.search;
632
- } else {
633
- result.path = null;
634
- }
635
- result.href = result.format();
636
- return result;
637
- }
638
-
639
- // if a url ENDs in . or .., then it must get a trailing slash.
640
- // however, if it ends in anything else non-slashy,
641
- // then it must NOT get a trailing slash.
642
- var last = srcPath.slice(-1)[0];
643
- var hasTrailingSlash = (
644
- (result.host || relative.host || srcPath.length > 1) &&
645
- (last === '.' || last === '..') || last === '');
646
-
647
- // strip single dots, resolve double dots to parent dir
648
- // if the path tries to go above the root, `up` ends up > 0
649
- var up = 0;
650
- for (var i = srcPath.length; i >= 0; i--) {
651
- last = srcPath[i];
652
- if (last === '.') {
653
- srcPath.splice(i, 1);
654
- } else if (last === '..') {
655
- srcPath.splice(i, 1);
656
- up++;
657
- } else if (up) {
658
- srcPath.splice(i, 1);
659
- up--;
660
- }
661
- }
662
-
663
- // if the path is allowed to go above the root, restore leading ..s
664
- if (!mustEndAbs && !removeAllDots) {
665
- for (; up--; up) {
666
- srcPath.unshift('..');
667
- }
668
- }
669
-
670
- if (mustEndAbs && srcPath[0] !== '' &&
671
- (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
672
- srcPath.unshift('');
673
- }
674
-
675
- if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {
676
- srcPath.push('');
677
- }
678
-
679
- var isAbsolute = srcPath[0] === '' ||
680
- (srcPath[0] && srcPath[0].charAt(0) === '/');
681
-
682
- // put the host back
683
- if (psychotic) {
684
- result.hostname = result.host = isAbsolute ? '' :
685
- srcPath.length ? srcPath.shift() : '';
686
- //occationaly the auth can get stuck only in host
687
- //this especially happens in cases like
688
- //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
689
- var authInHost = result.host && result.host.indexOf('@') > 0 ?
690
- result.host.split('@') : false;
691
- if (authInHost) {
692
- result.auth = authInHost.shift();
693
- result.host = result.hostname = authInHost.shift();
694
- }
695
- }
696
-
697
- mustEndAbs = mustEndAbs || (result.host && srcPath.length);
698
-
699
- if (mustEndAbs && !isAbsolute) {
700
- srcPath.unshift('');
701
- }
702
-
703
- if (!srcPath.length) {
704
- result.pathname = null;
705
- result.path = null;
706
- } else {
707
- result.pathname = srcPath.join('/');
708
- }
709
-
710
- //to support request.http
711
- if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
712
- result.path = (result.pathname ? result.pathname : '') +
713
- (result.search ? result.search : '');
714
- }
715
- result.auth = relative.auth || result.auth;
716
- result.slashes = result.slashes || relative.slashes;
717
- result.href = result.format();
718
- return result;
719
- };
720
-
721
- Url.prototype.parseHost = function() {
722
- var host = this.host;
723
- var port = portPattern.exec(host);
724
- if (port) {
725
- port = port[0];
726
- if (port !== ':') {
727
- this.port = port.substr(1);
728
- }
729
- host = host.substr(0, host.length - port.length);
730
- }
731
- if (host) this.hostname = host;
732
- };