fsevents 1.0.15 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of fsevents might be problematic. Click here for more details.

Files changed (361) hide show
  1. package/lib/binding/Release/node-v48-darwin-x64/fse.node +0 -0
  2. package/node_modules/abbrev/package.json +16 -8
  3. package/node_modules/ansi-regex/package.json +31 -23
  4. package/node_modules/ansi-styles/package.json +27 -19
  5. package/node_modules/aproba/package.json +16 -8
  6. package/node_modules/are-we-there-yet/package.json +14 -6
  7. package/node_modules/asn1/package.json +16 -8
  8. package/node_modules/assert-plus/package.json +16 -8
  9. package/node_modules/{node-uuid/LICENSE.md → asynckit/LICENSE} +1 -1
  10. package/node_modules/asynckit/README.md +233 -0
  11. package/node_modules/asynckit/bench.js +76 -0
  12. package/node_modules/asynckit/index.js +6 -0
  13. package/node_modules/asynckit/lib/abort.js +29 -0
  14. package/node_modules/asynckit/lib/async.js +34 -0
  15. package/node_modules/asynckit/lib/defer.js +26 -0
  16. package/node_modules/asynckit/lib/iterate.js +75 -0
  17. package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  18. package/node_modules/asynckit/lib/readable_parallel.js +25 -0
  19. package/node_modules/asynckit/lib/readable_serial.js +25 -0
  20. package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  21. package/node_modules/asynckit/lib/state.js +37 -0
  22. package/node_modules/asynckit/lib/streamify.js +141 -0
  23. package/node_modules/asynckit/lib/terminator.js +29 -0
  24. package/node_modules/asynckit/package.json +126 -0
  25. package/node_modules/asynckit/parallel.js +43 -0
  26. package/node_modules/asynckit/serial.js +17 -0
  27. package/node_modules/asynckit/serialOrdered.js +75 -0
  28. package/node_modules/asynckit/stream.js +21 -0
  29. package/node_modules/aws-sign2/package.json +15 -7
  30. package/node_modules/aws4/README.md +9 -0
  31. package/node_modules/aws4/aws4.js +8 -3
  32. package/node_modules/aws4/package.json +62 -54
  33. package/node_modules/balanced-match/package.json +27 -19
  34. package/node_modules/bcrypt-pbkdf/README.md +39 -0
  35. package/node_modules/bcrypt-pbkdf/index.js +559 -0
  36. package/node_modules/bcrypt-pbkdf/package.json +72 -0
  37. package/node_modules/block-stream/package.json +15 -7
  38. package/node_modules/boom/package.json +14 -6
  39. package/node_modules/brace-expansion/index.js +10 -0
  40. package/node_modules/brace-expansion/package.json +35 -27
  41. package/node_modules/buffer-shims/package.json +16 -7
  42. package/node_modules/caseless/package.json +18 -10
  43. package/node_modules/chalk/node_modules/supports-color/index.js +50 -0
  44. package/node_modules/{supports-color → chalk/node_modules/supports-color}/license +0 -0
  45. package/node_modules/chalk/node_modules/supports-color/package.json +113 -0
  46. package/node_modules/chalk/node_modules/supports-color/readme.md +36 -0
  47. package/node_modules/chalk/package.json +30 -22
  48. package/node_modules/code-point-at/index.js +3 -4
  49. package/node_modules/code-point-at/package.json +40 -30
  50. package/node_modules/code-point-at/readme.md +2 -4
  51. package/node_modules/combined-stream/package.json +15 -7
  52. package/node_modules/commander/package.json +16 -8
  53. package/node_modules/concat-map/package.json +30 -22
  54. package/node_modules/console-control-strings/package.json +15 -7
  55. package/node_modules/core-util-is/package.json +22 -14
  56. package/node_modules/cryptiles/package.json +14 -6
  57. package/node_modules/dashdash/CHANGES.md +364 -0
  58. package/node_modules/dashdash/LICENSE.txt +24 -0
  59. package/node_modules/dashdash/etc/dashdash.bash_completion.in +4 -3
  60. package/node_modules/dashdash/node_modules/assert-plus/package.json +16 -8
  61. package/node_modules/dashdash/package.json +33 -24
  62. package/node_modules/debug/package.json +20 -12
  63. package/node_modules/deep-extend/package.json +23 -15
  64. package/node_modules/delayed-stream/package.json +15 -7
  65. package/node_modules/delegates/package.json +14 -6
  66. package/node_modules/ecc-jsbn/package.json +17 -9
  67. package/node_modules/escape-string-regexp/package.json +20 -12
  68. package/node_modules/extend/package.json +16 -8
  69. package/node_modules/extsprintf/package.json +14 -6
  70. package/node_modules/forever-agent/package.json +15 -7
  71. package/node_modules/form-data/README.md +7 -8
  72. package/node_modules/form-data/lib/browser.js +1 -1
  73. package/node_modules/form-data/lib/form_data.js +101 -72
  74. package/node_modules/form-data/lib/populate.js +6 -5
  75. package/node_modules/form-data/package.json +68 -52
  76. package/node_modules/fs.realpath/package.json +19 -11
  77. package/node_modules/fstream/package.json +15 -7
  78. package/node_modules/fstream-ignore/package.json +15 -7
  79. package/node_modules/gauge/CHANGELOG.md +14 -0
  80. package/node_modules/gauge/README.md +4 -0
  81. package/node_modules/gauge/index.js +7 -3
  82. package/node_modules/gauge/package.json +37 -28
  83. package/node_modules/generate-function/package.json +16 -8
  84. package/node_modules/generate-object-property/package.json +14 -6
  85. package/node_modules/getpass/node_modules/assert-plus/package.json +16 -8
  86. package/node_modules/getpass/package.json +16 -8
  87. package/node_modules/glob/README.md +3 -0
  88. package/node_modules/glob/common.js +6 -1
  89. package/node_modules/glob/glob.js +23 -14
  90. package/node_modules/glob/package.json +29 -21
  91. package/node_modules/glob/sync.js +29 -11
  92. package/node_modules/graceful-fs/README.md +1 -1
  93. package/node_modules/graceful-fs/graceful-fs.js +23 -14
  94. package/node_modules/graceful-fs/package.json +35 -27
  95. package/node_modules/graceful-fs/polyfills.js +99 -21
  96. package/node_modules/graceful-readlink/package.json +14 -6
  97. package/node_modules/har-validator/package.json +16 -8
  98. package/node_modules/has-ansi/package.json +29 -21
  99. package/node_modules/has-unicode/package.json +18 -10
  100. package/node_modules/hawk/package.json +18 -10
  101. package/node_modules/hoek/package.json +14 -6
  102. package/node_modules/http-signature/package.json +14 -6
  103. package/node_modules/inflight/inflight.js +22 -12
  104. package/node_modules/inflight/package.json +28 -20
  105. package/node_modules/inherits/inherits.js +7 -1
  106. package/node_modules/inherits/package.json +41 -21
  107. package/node_modules/ini/package.json +15 -7
  108. package/node_modules/is-fullwidth-code-point/package.json +27 -19
  109. package/node_modules/is-my-json-valid/index.js +10 -0
  110. package/node_modules/is-my-json-valid/package.json +36 -20
  111. package/node_modules/is-my-json-valid/test/misc.js +24 -0
  112. package/node_modules/is-property/package.json +19 -11
  113. package/node_modules/is-typedarray/package.json +16 -8
  114. package/node_modules/isarray/package.json +28 -20
  115. package/node_modules/isstream/package.json +19 -11
  116. package/node_modules/jodid25519/package.json +18 -10
  117. package/node_modules/jsbn/package.json +15 -7
  118. package/node_modules/json-schema/lib/links.js +17 -3
  119. package/node_modules/json-schema/lib/validate.js +18 -5
  120. package/node_modules/json-schema/package.json +32 -18
  121. package/node_modules/json-stringify-safe/package.json +18 -10
  122. package/node_modules/{async/LICENSE → jsonpointer/LICENSE.md} +3 -1
  123. package/node_modules/jsonpointer/README.md +17 -10
  124. package/node_modules/jsonpointer/jsonpointer.js +73 -56
  125. package/node_modules/jsonpointer/package.json +47 -26
  126. package/node_modules/jsprim/CHANGES.md +4 -0
  127. package/node_modules/jsprim/package.json +25 -17
  128. package/node_modules/mime-db/HISTORY.md +34 -0
  129. package/node_modules/mime-db/db.json +86 -1
  130. package/node_modules/mime-db/package.json +43 -31
  131. package/node_modules/mime-types/HISTORY.md +13 -0
  132. package/node_modules/mime-types/index.js +8 -8
  133. package/node_modules/mime-types/package.json +31 -19
  134. package/node_modules/minimatch/minimatch.js +19 -20
  135. package/node_modules/minimatch/package.json +25 -17
  136. package/node_modules/minimist/package.json +24 -16
  137. package/node_modules/mkdirp/package.json +21 -13
  138. package/node_modules/ms/package.json +14 -6
  139. package/node_modules/node-pre-gyp/CHANGELOG.md +16 -0
  140. package/node_modules/node-pre-gyp/README.md +574 -0
  141. package/node_modules/node-pre-gyp/appveyor.yml +19 -9
  142. package/node_modules/node-pre-gyp/lib/install.js +31 -7
  143. package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +2 -0
  144. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +88 -0
  145. package/node_modules/node-pre-gyp/package.json +48 -40
  146. package/node_modules/nopt/package.json +19 -11
  147. package/node_modules/npmlog/CHANGELOG.md +9 -0
  148. package/node_modules/npmlog/README.md +7 -1
  149. package/node_modules/npmlog/log.js +12 -8
  150. package/node_modules/npmlog/package.json +30 -22
  151. package/node_modules/number-is-nan/package.json +39 -30
  152. package/node_modules/number-is-nan/readme.md +1 -3
  153. package/node_modules/oauth-sign/package.json +15 -7
  154. package/node_modules/object-assign/package.json +22 -14
  155. package/node_modules/once/README.md +28 -0
  156. package/node_modules/once/once.js +21 -0
  157. package/node_modules/once/package.json +31 -20
  158. package/node_modules/path-is-absolute/index.js +5 -5
  159. package/node_modules/path-is-absolute/package.json +45 -31
  160. package/node_modules/path-is-absolute/readme.md +19 -11
  161. package/node_modules/pinkie/package.json +18 -10
  162. package/node_modules/pinkie-promise/package.json +18 -10
  163. package/node_modules/process-nextick-args/package.json +16 -8
  164. package/node_modules/punycode/LICENSE-MIT.txt +20 -0
  165. package/node_modules/punycode/README.md +176 -0
  166. package/node_modules/punycode/package.json +127 -0
  167. package/node_modules/punycode/punycode.js +533 -0
  168. package/node_modules/qs/.eslintrc +15 -15
  169. package/node_modules/qs/CHANGELOG.md +24 -0
  170. package/node_modules/qs/README.md +398 -0
  171. package/node_modules/qs/dist/qs.js +138 -51
  172. package/node_modules/qs/lib/formats.js +18 -0
  173. package/node_modules/qs/lib/index.js +6 -4
  174. package/node_modules/qs/lib/parse.js +23 -24
  175. package/node_modules/qs/lib/stringify.js +63 -13
  176. package/node_modules/qs/lib/utils.js +22 -6
  177. package/node_modules/qs/package.json +40 -30
  178. package/node_modules/qs/test/.eslintrc +9 -0
  179. package/node_modules/qs/test/index.js +2 -0
  180. package/node_modules/qs/test/parse.js +81 -45
  181. package/node_modules/qs/test/stringify.js +260 -27
  182. package/node_modules/qs/test/utils.js +13 -0
  183. package/node_modules/rc/node_modules/minimist/package.json +24 -16
  184. package/node_modules/rc/package.json +21 -13
  185. package/node_modules/readable-stream/.npmignore +1 -0
  186. package/node_modules/readable-stream/.travis.yml +2 -7
  187. package/node_modules/readable-stream/README.md +6 -2
  188. package/node_modules/readable-stream/lib/_stream_readable.js +158 -110
  189. package/node_modules/readable-stream/lib/_stream_transform.js +7 -5
  190. package/node_modules/readable-stream/lib/_stream_writable.js +35 -7
  191. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +64 -0
  192. package/node_modules/readable-stream/package.json +34 -26
  193. package/node_modules/request/CHANGELOG.md +49 -18
  194. package/node_modules/request/README.md +3 -2
  195. package/node_modules/request/index.js +2 -3
  196. package/node_modules/request/lib/auth.js +1 -1
  197. package/node_modules/request/lib/helpers.js +4 -13
  198. package/node_modules/request/lib/multipart.js +1 -1
  199. package/node_modules/request/lib/oauth.js +1 -1
  200. package/node_modules/request/lib/redirect.js +5 -1
  201. package/node_modules/request/package.json +50 -31
  202. package/node_modules/request/request.js +84 -43
  203. package/node_modules/rimraf/package.json +28 -20
  204. package/node_modules/rimraf/rimraf.js +2 -2
  205. package/node_modules/semver/README.md +4 -0
  206. package/node_modules/semver/package.json +27 -19
  207. package/node_modules/semver/semver.js +14 -5
  208. package/node_modules/set-blocking/package.json +21 -13
  209. package/node_modules/signal-exit/CHANGELOG.md +10 -0
  210. package/node_modules/signal-exit/LICENSE.txt +2 -0
  211. package/node_modules/signal-exit/index.js +9 -0
  212. package/node_modules/signal-exit/package.json +32 -24
  213. package/node_modules/signal-exit/signals.js +5 -4
  214. package/node_modules/sntp/package.json +16 -8
  215. package/node_modules/sshpk/README.md +214 -3
  216. package/node_modules/sshpk/bin/sshpk-conv +6 -0
  217. package/node_modules/sshpk/lib/certificate.js +291 -0
  218. package/node_modules/sshpk/lib/errors.js +14 -1
  219. package/node_modules/sshpk/lib/fingerprint.js +28 -7
  220. package/node_modules/sshpk/lib/formats/openssh-cert.js +289 -0
  221. package/node_modules/sshpk/lib/formats/pem.js +2 -2
  222. package/node_modules/sshpk/lib/formats/pkcs8.js +2 -7
  223. package/node_modules/sshpk/lib/formats/ssh-private.js +140 -17
  224. package/node_modules/sshpk/lib/formats/x509-pem.js +77 -0
  225. package/node_modules/sshpk/lib/formats/x509.js +484 -0
  226. package/node_modules/sshpk/lib/identity.js +255 -0
  227. package/node_modules/sshpk/lib/index.js +13 -1
  228. package/node_modules/sshpk/lib/key.js +1 -0
  229. package/node_modules/sshpk/lib/signature.js +14 -6
  230. package/node_modules/sshpk/lib/ssh-buffer.js +24 -0
  231. package/node_modules/sshpk/lib/utils.js +43 -1
  232. package/node_modules/sshpk/node_modules/assert-plus/package.json +16 -8
  233. package/node_modules/sshpk/package.json +31 -21
  234. package/node_modules/string-width/index.js +5 -0
  235. package/node_modules/string-width/package.json +49 -36
  236. package/node_modules/string-width/readme.md +4 -3
  237. package/node_modules/string_decoder/package.json +19 -11
  238. package/node_modules/stringstream/package.json +18 -10
  239. package/node_modules/strip-ansi/package.json +29 -21
  240. package/node_modules/strip-json-comments/package.json +27 -19
  241. package/node_modules/supports-color/cli.js +28 -0
  242. package/node_modules/supports-color/index.js +2 -20
  243. package/node_modules/supports-color/package.json +52 -45
  244. package/node_modules/supports-color/readme.md +14 -6
  245. package/node_modules/tar/package.json +19 -11
  246. package/node_modules/tar-pack/README.md +4 -1
  247. package/node_modules/tar-pack/index.js +17 -12
  248. package/node_modules/tar-pack/node_modules/once/LICENSE +15 -0
  249. package/node_modules/tar-pack/node_modules/once/README.md +51 -0
  250. package/node_modules/tar-pack/node_modules/once/once.js +21 -0
  251. package/node_modules/tar-pack/node_modules/once/package.json +96 -0
  252. package/node_modules/tar-pack/node_modules/readable-stream/.npmignore +8 -0
  253. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/.travis.yml +4 -7
  254. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/LICENSE +0 -0
  255. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/README.md +2 -2
  256. package/node_modules/tar-pack/node_modules/readable-stream/doc/stream.md +2015 -0
  257. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -0
  258. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/duplex.js +0 -0
  259. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_duplex.js +0 -0
  260. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_passthrough.js +0 -0
  261. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_readable.js +164 -107
  262. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_transform.js +3 -3
  263. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_writable.js +25 -15
  264. package/node_modules/tar-pack/node_modules/readable-stream/lib/internal/streams/BufferList.js +64 -0
  265. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/package.json +50 -30
  266. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/passthrough.js +0 -0
  267. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/readable.js +4 -0
  268. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/transform.js +0 -0
  269. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/writable.js +0 -0
  270. package/node_modules/tar-pack/package.json +39 -22
  271. package/node_modules/tar-pack/test/index.js +43 -1
  272. package/node_modules/tough-cookie/README.md +17 -3
  273. package/node_modules/tough-cookie/lib/cookie.js +6 -12
  274. package/node_modules/tough-cookie/package.json +50 -35
  275. package/node_modules/tunnel-agent/package.json +15 -7
  276. package/node_modules/tweetnacl/AUTHORS.md +28 -0
  277. package/node_modules/tweetnacl/CHANGELOG.md +93 -0
  278. package/node_modules/tweetnacl/LICENSE +24 -0
  279. package/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +20 -0
  280. package/node_modules/tweetnacl/README.md +57 -61
  281. package/node_modules/tweetnacl/nacl-fast.js +22 -52
  282. package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
  283. package/node_modules/tweetnacl/nacl.d.ts +98 -0
  284. package/node_modules/tweetnacl/nacl.js +21 -51
  285. package/node_modules/tweetnacl/nacl.min.js +1 -1
  286. package/node_modules/tweetnacl/package.json +47 -46
  287. package/node_modules/uid-number/package.json +15 -7
  288. package/node_modules/util-deprecate/package.json +21 -13
  289. package/node_modules/uuid/.npmignore +8 -0
  290. package/node_modules/uuid/.travis.yml +5 -0
  291. package/node_modules/uuid/AUTHORS +5 -0
  292. package/node_modules/uuid/HISTORY.md +28 -0
  293. package/node_modules/uuid/LICENSE.md +21 -0
  294. package/node_modules/uuid/README.md +132 -0
  295. package/node_modules/{node-uuid → uuid}/bin/uuid +0 -0
  296. package/node_modules/uuid/index.js +8 -0
  297. package/node_modules/uuid/lib/bytesToUuid.js +23 -0
  298. package/node_modules/uuid/lib/rng-browser.js +33 -0
  299. package/node_modules/uuid/lib/rng.js +10 -0
  300. package/node_modules/uuid/package.json +122 -0
  301. package/node_modules/uuid/test/mocha.opts +3 -0
  302. package/node_modules/uuid/test/test.js +96 -0
  303. package/node_modules/uuid/v1.js +103 -0
  304. package/node_modules/uuid/v4.js +29 -0
  305. package/node_modules/verror/package.json +14 -6
  306. package/node_modules/wide-align/package.json +19 -11
  307. package/node_modules/wrappy/package.json +17 -8
  308. package/node_modules/xtend/package.json +29 -21
  309. package/package.json +1 -1
  310. package/node_modules/async/CHANGELOG.md +0 -125
  311. package/node_modules/async/README.md +0 -1877
  312. package/node_modules/async/dist/async.js +0 -1265
  313. package/node_modules/async/dist/async.min.js +0 -2
  314. package/node_modules/async/lib/async.js +0 -1265
  315. package/node_modules/async/package.json +0 -149
  316. package/node_modules/bl/.jshintrc +0 -59
  317. package/node_modules/bl/.npmignore +0 -1
  318. package/node_modules/bl/.travis.yml +0 -13
  319. package/node_modules/bl/LICENSE.md +0 -13
  320. package/node_modules/bl/README.md +0 -200
  321. package/node_modules/bl/bl.js +0 -243
  322. package/node_modules/bl/node_modules/readable-stream/.npmignore +0 -5
  323. package/node_modules/bl/node_modules/readable-stream/.zuul.yml +0 -1
  324. package/node_modules/bl/node_modules/readable-stream/doc/stream.markdown +0 -1760
  325. package/node_modules/bl/package.json +0 -96
  326. package/node_modules/bl/test/test.js +0 -640
  327. package/node_modules/form-data/.dockerignore +0 -7
  328. package/node_modules/form-data/.editorconfig +0 -10
  329. package/node_modules/form-data/.eslintignore +0 -1
  330. package/node_modules/form-data/.eslintrc +0 -64
  331. package/node_modules/form-data/wercker.yml +0 -36
  332. package/node_modules/gauge/CHANGELOG.md~ +0 -123
  333. package/node_modules/gauge/README.md~ +0 -393
  334. package/node_modules/has-color/index.js +0 -32
  335. package/node_modules/has-color/package.json +0 -97
  336. package/node_modules/has-color/readme.md +0 -30
  337. package/node_modules/inherits/test.js +0 -25
  338. package/node_modules/jsonpointer/.travis.yml +0 -10
  339. package/node_modules/jsonpointer/test.js +0 -98
  340. package/node_modules/node-uuid/.npmignore +0 -4
  341. package/node_modules/node-uuid/README.md +0 -254
  342. package/node_modules/node-uuid/benchmark/README.md +0 -53
  343. package/node_modules/node-uuid/benchmark/bench.gnu +0 -174
  344. package/node_modules/node-uuid/benchmark/bench.sh +0 -34
  345. package/node_modules/node-uuid/benchmark/benchmark-native.c +0 -34
  346. package/node_modules/node-uuid/benchmark/benchmark.js +0 -84
  347. package/node_modules/node-uuid/bower.json +0 -23
  348. package/node_modules/node-uuid/component.json +0 -25
  349. package/node_modules/node-uuid/package.json +0 -105
  350. package/node_modules/node-uuid/test/compare_v1.js +0 -63
  351. package/node_modules/node-uuid/test/test.html +0 -17
  352. package/node_modules/node-uuid/test/test.js +0 -231
  353. package/node_modules/node-uuid/uuid.js +0 -272
  354. package/node_modules/npmlog/CHANGELOG.md~ +0 -31
  355. package/node_modules/qs/.jscs.json +0 -176
  356. package/node_modules/readable-stream/doc/stream.md +0 -1772
  357. package/node_modules/request/.eslintrc +0 -45
  358. package/node_modules/request/.npmignore +0 -6
  359. package/node_modules/request/.travis.yml +0 -21
  360. package/node_modules/request/CONTRIBUTING.md +0 -81
  361. package/node_modules/request/codecov.yml +0 -2
@@ -0,0 +1,533 @@
1
+ /*! https://mths.be/punycode v1.4.1 by @mathias */
2
+ ;(function(root) {
3
+
4
+ /** Detect free variables */
5
+ var freeExports = typeof exports == 'object' && exports &&
6
+ !exports.nodeType && exports;
7
+ var freeModule = typeof module == 'object' && module &&
8
+ !module.nodeType && module;
9
+ var freeGlobal = typeof global == 'object' && global;
10
+ if (
11
+ freeGlobal.global === freeGlobal ||
12
+ freeGlobal.window === freeGlobal ||
13
+ freeGlobal.self === freeGlobal
14
+ ) {
15
+ root = freeGlobal;
16
+ }
17
+
18
+ /**
19
+ * The `punycode` object.
20
+ * @name punycode
21
+ * @type Object
22
+ */
23
+ var punycode,
24
+
25
+ /** Highest positive signed 32-bit float value */
26
+ maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
27
+
28
+ /** Bootstring parameters */
29
+ base = 36,
30
+ tMin = 1,
31
+ tMax = 26,
32
+ skew = 38,
33
+ damp = 700,
34
+ initialBias = 72,
35
+ initialN = 128, // 0x80
36
+ delimiter = '-', // '\x2D'
37
+
38
+ /** Regular expressions */
39
+ regexPunycode = /^xn--/,
40
+ regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
41
+ regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
42
+
43
+ /** Error messages */
44
+ errors = {
45
+ 'overflow': 'Overflow: input needs wider integers to process',
46
+ 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
47
+ 'invalid-input': 'Invalid input'
48
+ },
49
+
50
+ /** Convenience shortcuts */
51
+ baseMinusTMin = base - tMin,
52
+ floor = Math.floor,
53
+ stringFromCharCode = String.fromCharCode,
54
+
55
+ /** Temporary variable */
56
+ key;
57
+
58
+ /*--------------------------------------------------------------------------*/
59
+
60
+ /**
61
+ * A generic error utility function.
62
+ * @private
63
+ * @param {String} type The error type.
64
+ * @returns {Error} Throws a `RangeError` with the applicable error message.
65
+ */
66
+ function error(type) {
67
+ throw new RangeError(errors[type]);
68
+ }
69
+
70
+ /**
71
+ * A generic `Array#map` utility function.
72
+ * @private
73
+ * @param {Array} array The array to iterate over.
74
+ * @param {Function} callback The function that gets called for every array
75
+ * item.
76
+ * @returns {Array} A new array of values returned by the callback function.
77
+ */
78
+ function map(array, fn) {
79
+ var length = array.length;
80
+ var result = [];
81
+ while (length--) {
82
+ result[length] = fn(array[length]);
83
+ }
84
+ return result;
85
+ }
86
+
87
+ /**
88
+ * A simple `Array#map`-like wrapper to work with domain name strings or email
89
+ * addresses.
90
+ * @private
91
+ * @param {String} domain The domain name or email address.
92
+ * @param {Function} callback The function that gets called for every
93
+ * character.
94
+ * @returns {Array} A new string of characters returned by the callback
95
+ * function.
96
+ */
97
+ function mapDomain(string, fn) {
98
+ var parts = string.split('@');
99
+ var result = '';
100
+ if (parts.length > 1) {
101
+ // In email addresses, only the domain name should be punycoded. Leave
102
+ // the local part (i.e. everything up to `@`) intact.
103
+ result = parts[0] + '@';
104
+ string = parts[1];
105
+ }
106
+ // Avoid `split(regex)` for IE8 compatibility. See #17.
107
+ string = string.replace(regexSeparators, '\x2E');
108
+ var labels = string.split('.');
109
+ var encoded = map(labels, fn).join('.');
110
+ return result + encoded;
111
+ }
112
+
113
+ /**
114
+ * Creates an array containing the numeric code points of each Unicode
115
+ * character in the string. While JavaScript uses UCS-2 internally,
116
+ * this function will convert a pair of surrogate halves (each of which
117
+ * UCS-2 exposes as separate characters) into a single code point,
118
+ * matching UTF-16.
119
+ * @see `punycode.ucs2.encode`
120
+ * @see <https://mathiasbynens.be/notes/javascript-encoding>
121
+ * @memberOf punycode.ucs2
122
+ * @name decode
123
+ * @param {String} string The Unicode input string (UCS-2).
124
+ * @returns {Array} The new array of code points.
125
+ */
126
+ function ucs2decode(string) {
127
+ var output = [],
128
+ counter = 0,
129
+ length = string.length,
130
+ value,
131
+ extra;
132
+ while (counter < length) {
133
+ value = string.charCodeAt(counter++);
134
+ if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
135
+ // high surrogate, and there is a next character
136
+ extra = string.charCodeAt(counter++);
137
+ if ((extra & 0xFC00) == 0xDC00) { // low surrogate
138
+ output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
139
+ } else {
140
+ // unmatched surrogate; only append this code unit, in case the next
141
+ // code unit is the high surrogate of a surrogate pair
142
+ output.push(value);
143
+ counter--;
144
+ }
145
+ } else {
146
+ output.push(value);
147
+ }
148
+ }
149
+ return output;
150
+ }
151
+
152
+ /**
153
+ * Creates a string based on an array of numeric code points.
154
+ * @see `punycode.ucs2.decode`
155
+ * @memberOf punycode.ucs2
156
+ * @name encode
157
+ * @param {Array} codePoints The array of numeric code points.
158
+ * @returns {String} The new Unicode string (UCS-2).
159
+ */
160
+ function ucs2encode(array) {
161
+ return map(array, function(value) {
162
+ var output = '';
163
+ if (value > 0xFFFF) {
164
+ value -= 0x10000;
165
+ output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
166
+ value = 0xDC00 | value & 0x3FF;
167
+ }
168
+ output += stringFromCharCode(value);
169
+ return output;
170
+ }).join('');
171
+ }
172
+
173
+ /**
174
+ * Converts a basic code point into a digit/integer.
175
+ * @see `digitToBasic()`
176
+ * @private
177
+ * @param {Number} codePoint The basic numeric code point value.
178
+ * @returns {Number} The numeric value of a basic code point (for use in
179
+ * representing integers) in the range `0` to `base - 1`, or `base` if
180
+ * the code point does not represent a value.
181
+ */
182
+ function basicToDigit(codePoint) {
183
+ if (codePoint - 48 < 10) {
184
+ return codePoint - 22;
185
+ }
186
+ if (codePoint - 65 < 26) {
187
+ return codePoint - 65;
188
+ }
189
+ if (codePoint - 97 < 26) {
190
+ return codePoint - 97;
191
+ }
192
+ return base;
193
+ }
194
+
195
+ /**
196
+ * Converts a digit/integer into a basic code point.
197
+ * @see `basicToDigit()`
198
+ * @private
199
+ * @param {Number} digit The numeric value of a basic code point.
200
+ * @returns {Number} The basic code point whose value (when used for
201
+ * representing integers) is `digit`, which needs to be in the range
202
+ * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
203
+ * used; else, the lowercase form is used. The behavior is undefined
204
+ * if `flag` is non-zero and `digit` has no uppercase form.
205
+ */
206
+ function digitToBasic(digit, flag) {
207
+ // 0..25 map to ASCII a..z or A..Z
208
+ // 26..35 map to ASCII 0..9
209
+ return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
210
+ }
211
+
212
+ /**
213
+ * Bias adaptation function as per section 3.4 of RFC 3492.
214
+ * https://tools.ietf.org/html/rfc3492#section-3.4
215
+ * @private
216
+ */
217
+ function adapt(delta, numPoints, firstTime) {
218
+ var k = 0;
219
+ delta = firstTime ? floor(delta / damp) : delta >> 1;
220
+ delta += floor(delta / numPoints);
221
+ for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
222
+ delta = floor(delta / baseMinusTMin);
223
+ }
224
+ return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
225
+ }
226
+
227
+ /**
228
+ * Converts a Punycode string of ASCII-only symbols to a string of Unicode
229
+ * symbols.
230
+ * @memberOf punycode
231
+ * @param {String} input The Punycode string of ASCII-only symbols.
232
+ * @returns {String} The resulting string of Unicode symbols.
233
+ */
234
+ function decode(input) {
235
+ // Don't use UCS-2
236
+ var output = [],
237
+ inputLength = input.length,
238
+ out,
239
+ i = 0,
240
+ n = initialN,
241
+ bias = initialBias,
242
+ basic,
243
+ j,
244
+ index,
245
+ oldi,
246
+ w,
247
+ k,
248
+ digit,
249
+ t,
250
+ /** Cached calculation results */
251
+ baseMinusT;
252
+
253
+ // Handle the basic code points: let `basic` be the number of input code
254
+ // points before the last delimiter, or `0` if there is none, then copy
255
+ // the first basic code points to the output.
256
+
257
+ basic = input.lastIndexOf(delimiter);
258
+ if (basic < 0) {
259
+ basic = 0;
260
+ }
261
+
262
+ for (j = 0; j < basic; ++j) {
263
+ // if it's not a basic code point
264
+ if (input.charCodeAt(j) >= 0x80) {
265
+ error('not-basic');
266
+ }
267
+ output.push(input.charCodeAt(j));
268
+ }
269
+
270
+ // Main decoding loop: start just after the last delimiter if any basic code
271
+ // points were copied; start at the beginning otherwise.
272
+
273
+ for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
274
+
275
+ // `index` is the index of the next character to be consumed.
276
+ // Decode a generalized variable-length integer into `delta`,
277
+ // which gets added to `i`. The overflow checking is easier
278
+ // if we increase `i` as we go, then subtract off its starting
279
+ // value at the end to obtain `delta`.
280
+ for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
281
+
282
+ if (index >= inputLength) {
283
+ error('invalid-input');
284
+ }
285
+
286
+ digit = basicToDigit(input.charCodeAt(index++));
287
+
288
+ if (digit >= base || digit > floor((maxInt - i) / w)) {
289
+ error('overflow');
290
+ }
291
+
292
+ i += digit * w;
293
+ t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
294
+
295
+ if (digit < t) {
296
+ break;
297
+ }
298
+
299
+ baseMinusT = base - t;
300
+ if (w > floor(maxInt / baseMinusT)) {
301
+ error('overflow');
302
+ }
303
+
304
+ w *= baseMinusT;
305
+
306
+ }
307
+
308
+ out = output.length + 1;
309
+ bias = adapt(i - oldi, out, oldi == 0);
310
+
311
+ // `i` was supposed to wrap around from `out` to `0`,
312
+ // incrementing `n` each time, so we'll fix that now:
313
+ if (floor(i / out) > maxInt - n) {
314
+ error('overflow');
315
+ }
316
+
317
+ n += floor(i / out);
318
+ i %= out;
319
+
320
+ // Insert `n` at position `i` of the output
321
+ output.splice(i++, 0, n);
322
+
323
+ }
324
+
325
+ return ucs2encode(output);
326
+ }
327
+
328
+ /**
329
+ * Converts a string of Unicode symbols (e.g. a domain name label) to a
330
+ * Punycode string of ASCII-only symbols.
331
+ * @memberOf punycode
332
+ * @param {String} input The string of Unicode symbols.
333
+ * @returns {String} The resulting Punycode string of ASCII-only symbols.
334
+ */
335
+ function encode(input) {
336
+ var n,
337
+ delta,
338
+ handledCPCount,
339
+ basicLength,
340
+ bias,
341
+ j,
342
+ m,
343
+ q,
344
+ k,
345
+ t,
346
+ currentValue,
347
+ output = [],
348
+ /** `inputLength` will hold the number of code points in `input`. */
349
+ inputLength,
350
+ /** Cached calculation results */
351
+ handledCPCountPlusOne,
352
+ baseMinusT,
353
+ qMinusT;
354
+
355
+ // Convert the input in UCS-2 to Unicode
356
+ input = ucs2decode(input);
357
+
358
+ // Cache the length
359
+ inputLength = input.length;
360
+
361
+ // Initialize the state
362
+ n = initialN;
363
+ delta = 0;
364
+ bias = initialBias;
365
+
366
+ // Handle the basic code points
367
+ for (j = 0; j < inputLength; ++j) {
368
+ currentValue = input[j];
369
+ if (currentValue < 0x80) {
370
+ output.push(stringFromCharCode(currentValue));
371
+ }
372
+ }
373
+
374
+ handledCPCount = basicLength = output.length;
375
+
376
+ // `handledCPCount` is the number of code points that have been handled;
377
+ // `basicLength` is the number of basic code points.
378
+
379
+ // Finish the basic string - if it is not empty - with a delimiter
380
+ if (basicLength) {
381
+ output.push(delimiter);
382
+ }
383
+
384
+ // Main encoding loop:
385
+ while (handledCPCount < inputLength) {
386
+
387
+ // All non-basic code points < n have been handled already. Find the next
388
+ // larger one:
389
+ for (m = maxInt, j = 0; j < inputLength; ++j) {
390
+ currentValue = input[j];
391
+ if (currentValue >= n && currentValue < m) {
392
+ m = currentValue;
393
+ }
394
+ }
395
+
396
+ // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
397
+ // but guard against overflow
398
+ handledCPCountPlusOne = handledCPCount + 1;
399
+ if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
400
+ error('overflow');
401
+ }
402
+
403
+ delta += (m - n) * handledCPCountPlusOne;
404
+ n = m;
405
+
406
+ for (j = 0; j < inputLength; ++j) {
407
+ currentValue = input[j];
408
+
409
+ if (currentValue < n && ++delta > maxInt) {
410
+ error('overflow');
411
+ }
412
+
413
+ if (currentValue == n) {
414
+ // Represent delta as a generalized variable-length integer
415
+ for (q = delta, k = base; /* no condition */; k += base) {
416
+ t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
417
+ if (q < t) {
418
+ break;
419
+ }
420
+ qMinusT = q - t;
421
+ baseMinusT = base - t;
422
+ output.push(
423
+ stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
424
+ );
425
+ q = floor(qMinusT / baseMinusT);
426
+ }
427
+
428
+ output.push(stringFromCharCode(digitToBasic(q, 0)));
429
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
430
+ delta = 0;
431
+ ++handledCPCount;
432
+ }
433
+ }
434
+
435
+ ++delta;
436
+ ++n;
437
+
438
+ }
439
+ return output.join('');
440
+ }
441
+
442
+ /**
443
+ * Converts a Punycode string representing a domain name or an email address
444
+ * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
445
+ * it doesn't matter if you call it on a string that has already been
446
+ * converted to Unicode.
447
+ * @memberOf punycode
448
+ * @param {String} input The Punycoded domain name or email address to
449
+ * convert to Unicode.
450
+ * @returns {String} The Unicode representation of the given Punycode
451
+ * string.
452
+ */
453
+ function toUnicode(input) {
454
+ return mapDomain(input, function(string) {
455
+ return regexPunycode.test(string)
456
+ ? decode(string.slice(4).toLowerCase())
457
+ : string;
458
+ });
459
+ }
460
+
461
+ /**
462
+ * Converts a Unicode string representing a domain name or an email address to
463
+ * Punycode. Only the non-ASCII parts of the domain name will be converted,
464
+ * i.e. it doesn't matter if you call it with a domain that's already in
465
+ * ASCII.
466
+ * @memberOf punycode
467
+ * @param {String} input The domain name or email address to convert, as a
468
+ * Unicode string.
469
+ * @returns {String} The Punycode representation of the given domain name or
470
+ * email address.
471
+ */
472
+ function toASCII(input) {
473
+ return mapDomain(input, function(string) {
474
+ return regexNonASCII.test(string)
475
+ ? 'xn--' + encode(string)
476
+ : string;
477
+ });
478
+ }
479
+
480
+ /*--------------------------------------------------------------------------*/
481
+
482
+ /** Define the public API */
483
+ punycode = {
484
+ /**
485
+ * A string representing the current Punycode.js version number.
486
+ * @memberOf punycode
487
+ * @type String
488
+ */
489
+ 'version': '1.4.1',
490
+ /**
491
+ * An object of methods to convert from JavaScript's internal character
492
+ * representation (UCS-2) to Unicode code points, and back.
493
+ * @see <https://mathiasbynens.be/notes/javascript-encoding>
494
+ * @memberOf punycode
495
+ * @type Object
496
+ */
497
+ 'ucs2': {
498
+ 'decode': ucs2decode,
499
+ 'encode': ucs2encode
500
+ },
501
+ 'decode': decode,
502
+ 'encode': encode,
503
+ 'toASCII': toASCII,
504
+ 'toUnicode': toUnicode
505
+ };
506
+
507
+ /** Expose `punycode` */
508
+ // Some AMD build optimizers, like r.js, check for specific condition patterns
509
+ // like the following:
510
+ if (
511
+ typeof define == 'function' &&
512
+ typeof define.amd == 'object' &&
513
+ define.amd
514
+ ) {
515
+ define('punycode', function() {
516
+ return punycode;
517
+ });
518
+ } else if (freeExports && freeModule) {
519
+ if (module.exports == freeExports) {
520
+ // in Node.js, io.js, or RingoJS v0.8.0+
521
+ freeModule.exports = punycode;
522
+ } else {
523
+ // in Narwhal or RingoJS v0.7.0-
524
+ for (key in punycode) {
525
+ punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);
526
+ }
527
+ }
528
+ } else {
529
+ // in Rhino or a web browser
530
+ root.punycode = punycode;
531
+ }
532
+
533
+ }(this));
@@ -1,19 +1,19 @@
1
1
  {
2
- "root": true,
2
+ "root": true,
3
3
 
4
- "extends": "@ljharb",
4
+ "extends": "@ljharb",
5
5
 
6
- "rules": {
7
- "complexity": [2, 22],
8
- "consistent-return": [1],
9
- "id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
10
- "indent": [2, 4],
11
- "max-params": [2, 9],
12
- "max-statements": [2, 36],
13
- "no-extra-parens": [1],
14
- "no-continue": [1],
15
- "no-magic-numbers": 0,
16
- "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
17
- "operator-linebreak": 1
18
- }
6
+ "rules": {
7
+ "complexity": [2, 25],
8
+ "consistent-return": [1],
9
+ "id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
10
+ "indent": [2, 4],
11
+ "max-params": [2, 11],
12
+ "max-statements": [2, 42],
13
+ "no-extra-parens": [1],
14
+ "no-continue": [1],
15
+ "no-magic-numbers": 0,
16
+ "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
17
+ "operator-linebreak": 1
18
+ }
19
19
  }
@@ -1,3 +1,24 @@
1
+ ## **6.3.0**
2
+ - [New] Add support for RFC 1738 (#174, #173)
3
+ - [New] `stringify`: Add `serializeDate` option to customize Date serialization (#159)
4
+ - [Fix] ensure `utils.merge` handles merging two arrays
5
+ - [Refactor] only constructors should be capitalized
6
+ - [Refactor] capitalized var names are for constructors only
7
+ - [Refactor] avoid using a sparse array
8
+ - [Robustness] `formats`: cache `String#replace`
9
+ - [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`; add `safe-publish-latest`
10
+ - [Tests] up to `node` `v6.8`, `v4.6`; improve test matrix
11
+ - [Tests] flesh out arrayLimit/arrayFormat tests (#107)
12
+ - [Tests] skip Object.create tests when null objects are not available
13
+ - [Tests] Turn on eslint for test files (#175)
14
+
15
+ ## **6.2.1**
16
+ - [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values
17
+ - [Refactor] Be explicit and use `Object.prototype.hasOwnProperty.call`
18
+ - [Tests] remove `parallelshell` since it does not reliably report failures
19
+ - [Tests] up to `node` `v6.3`, `v5.12`
20
+ - [Dev Deps] update `tape`, `eslint`, `@ljharb/eslint-config`, `qs-iconv`
21
+
1
22
  ## [**6.2.0**](https://github.com/ljharb/qs/issues?milestone=36&state=closed)
2
23
  - [New] pass Buffers to the encoder/decoder directly (#161)
3
24
  - [New] add "encoder" and "decoder" options, for custom param encoding/decoding (#160)
@@ -17,6 +38,9 @@
17
38
  ## [**6.0.0**](https://github.com/ljharb/qs/issues?milestone=31&state=closed)
18
39
  - [**#124**](https://github.com/ljharb/qs/issues/124) Use ES6 and drop support for node < v4
19
40
 
41
+ ## **5.2.1**
42
+ - [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values
43
+
20
44
  ## [**5.2.0**](https://github.com/ljharb/qs/issues?milestone=30&state=closed)
21
45
  - [**#64**](https://github.com/ljharb/qs/issues/64) Add option to sort object keys in the query string
22
46