@jesec/flood 0.0.0-master.f3e1db0 → 0.0.0-master.f42009f

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 (342) hide show
  1. package/CHANGELOG.md +167 -2
  2. package/README.md +16 -2
  3. package/dist/assets/index.html +1 -1
  4. package/dist/assets/static/css/694.576adeff92f714a9c991.css +1 -0
  5. package/dist/assets/static/css/main.fc7b4a6c663b4cda8255.css +1 -0
  6. package/dist/assets/static/js/151.a379ad6e.chunk.js +1 -0
  7. package/dist/assets/static/js/483.7871df3a.chunk.js +1 -0
  8. package/dist/assets/static/js/694.52611242.chunk.js +1 -0
  9. package/dist/assets/static/js/913.7e8b6f4a.chunk.js +1 -0
  10. package/dist/assets/static/js/about.ef9ef3c1.chunk.js +1 -0
  11. package/dist/assets/static/js/flag0.bf11a5d9.chunk.js +1 -0
  12. package/dist/assets/static/js/flag2.b0967964.chunk.js +1 -0
  13. package/dist/assets/static/js/flag8.90252071.chunk.js +1 -0
  14. package/dist/assets/static/js/i18n1.314895a0.chunk.js +1 -0
  15. package/dist/assets/static/js/i18n10.e13f4aea.chunk.js +1 -0
  16. package/dist/assets/static/js/i18n12.8d919a59.chunk.js +1 -0
  17. package/dist/assets/static/js/i18n13.09f816d4.chunk.js +1 -0
  18. package/dist/assets/static/js/i18n14.754622fd.chunk.js +1 -0
  19. package/dist/assets/static/js/i18n15.6a2ccd51.chunk.js +1 -0
  20. package/dist/assets/static/js/i18n16.2c06a097.chunk.js +1 -0
  21. package/dist/assets/static/js/i18n17.184811b9.chunk.js +1 -0
  22. package/dist/assets/static/js/i18n18.9964fcd1.chunk.js +1 -0
  23. package/dist/assets/static/js/i18n19.4ae4a9ec.chunk.js +1 -0
  24. package/dist/assets/static/js/i18n2.46756d38.chunk.js +1 -0
  25. package/dist/assets/static/js/i18n20.49ca02f9.chunk.js +1 -0
  26. package/dist/assets/static/js/i18n21.0cde092b.chunk.js +1 -0
  27. package/dist/assets/static/js/i18n23.c8b4d3e1.chunk.js +1 -0
  28. package/dist/assets/static/js/i18n24.f64b951d.chunk.js +1 -0
  29. package/dist/assets/static/js/i18n25.6d6db53e.chunk.js +1 -0
  30. package/dist/assets/static/js/i18n27.9b245302.chunk.js +1 -0
  31. package/dist/assets/static/js/i18n28.be2accff.chunk.js +1 -0
  32. package/dist/assets/static/js/i18n3.4e17de22.chunk.js +1 -0
  33. package/dist/assets/static/js/i18n4.27368eaf.chunk.js +1 -0
  34. package/dist/assets/static/js/i18n5.5cfa8017.chunk.js +1 -0
  35. package/dist/assets/static/js/i18n8.676fe465.chunk.js +1 -0
  36. package/dist/assets/static/js/i18n9.f9efdd2f.chunk.js +1 -0
  37. package/dist/assets/static/js/main.75ebc52b.js +1 -0
  38. package/dist/assets/static/media/ad.1b24595d.png +0 -0
  39. package/dist/assets/static/media/ae.4dd8f55e.png +0 -0
  40. package/dist/assets/static/media/af.4ce660eb.png +0 -0
  41. package/dist/assets/static/media/ag.fd9409e4.png +0 -0
  42. package/dist/assets/static/media/al.a297aacf.png +0 -0
  43. package/dist/assets/static/media/am.c84ee0cf.png +0 -0
  44. package/dist/assets/static/media/ao.a7c9214e.png +0 -0
  45. package/dist/assets/static/media/ar.7e57ef92.png +0 -0
  46. package/dist/assets/static/media/at.5aa9728a.png +0 -0
  47. package/dist/assets/static/media/au.155b51d8.png +0 -0
  48. package/dist/assets/static/media/az.63afef5b.png +0 -0
  49. package/dist/assets/static/media/ba.5ce8f273.png +0 -0
  50. package/dist/assets/static/media/bb.f369fc62.png +0 -0
  51. package/dist/assets/static/media/bd.516278fc.png +0 -0
  52. package/dist/assets/static/media/be.08ec4a8d.png +0 -0
  53. package/dist/assets/static/media/bf.50bfcb31.png +0 -0
  54. package/dist/assets/static/media/bg.d9346b96.png +0 -0
  55. package/dist/assets/static/media/bh.f06d5914.png +0 -0
  56. package/dist/assets/static/media/bi.4923e3a3.png +0 -0
  57. package/dist/assets/static/media/bj.019fa79b.png +0 -0
  58. package/dist/assets/static/media/bn.077671e2.png +0 -0
  59. package/dist/assets/static/media/bo.8fb15fc6.png +0 -0
  60. package/dist/assets/static/media/br.ec051f0c.png +0 -0
  61. package/dist/assets/static/media/bs.a74a126f.png +0 -0
  62. package/dist/assets/static/media/bt.4217b804.png +0 -0
  63. package/dist/assets/static/media/bw.21fe1567.png +0 -0
  64. package/dist/assets/static/media/by.d247fe16.png +0 -0
  65. package/dist/assets/static/media/bz.98ec59f6.png +0 -0
  66. package/dist/assets/static/media/ca.25743e11.png +0 -0
  67. package/dist/assets/static/media/cd.a5bfda53.png +0 -0
  68. package/dist/assets/static/media/cf.de7d5d92.png +0 -0
  69. package/dist/assets/static/media/cg.a47b626b.png +0 -0
  70. package/dist/assets/static/media/ch.445f47a1.png +0 -0
  71. package/dist/assets/static/media/ci.a6009c5b.png +0 -0
  72. package/dist/assets/static/media/cl.de1d715e.png +0 -0
  73. package/dist/assets/static/media/cm.3ce8a86a.png +0 -0
  74. package/dist/assets/static/media/cn.e6a26073.png +0 -0
  75. package/dist/assets/static/media/co.e9244faa.png +0 -0
  76. package/dist/assets/static/media/cr.c895e035.png +0 -0
  77. package/dist/assets/static/media/cu.e486c055.png +0 -0
  78. package/dist/assets/static/media/cv.a9585acf.png +0 -0
  79. package/dist/assets/static/media/cw.df13039d.png +0 -0
  80. package/dist/assets/static/media/cy.b31f43a9.png +0 -0
  81. package/dist/assets/static/media/cz.8ec5948b.png +0 -0
  82. package/dist/assets/static/media/de.d12f391a.png +0 -0
  83. package/dist/assets/static/media/dj.154c3580.png +0 -0
  84. package/dist/assets/static/media/dk.da382fe2.png +0 -0
  85. package/dist/assets/static/media/dm.f452e6cd.png +0 -0
  86. package/dist/assets/static/media/do.c6bd7637.png +0 -0
  87. package/dist/assets/static/media/dz.672a69c0.png +0 -0
  88. package/dist/assets/static/media/ec.349d9bd7.png +0 -0
  89. package/dist/assets/static/media/ee.2396205f.png +0 -0
  90. package/dist/assets/static/media/eg.ccbf3f45.png +0 -0
  91. package/dist/assets/static/media/eh.af65674a.png +0 -0
  92. package/dist/assets/static/media/er.21afb638.png +0 -0
  93. package/dist/assets/static/media/es.2a6eaee4.png +0 -0
  94. package/dist/assets/static/media/et.8beb65c8.png +0 -0
  95. package/dist/assets/static/media/fi.331f70fd.png +0 -0
  96. package/dist/assets/static/media/fj.7724d800.png +0 -0
  97. package/dist/assets/static/media/fm.eeaf71e9.png +0 -0
  98. package/dist/assets/static/media/fr.5d5ab008.png +0 -0
  99. package/dist/assets/static/media/ga.77ed474c.png +0 -0
  100. package/dist/assets/static/media/gb.e00065bf.png +0 -0
  101. package/dist/assets/static/media/gd.b4522267.png +0 -0
  102. package/dist/assets/static/media/ge.91a7654d.png +0 -0
  103. package/dist/assets/static/media/gh.4759f92f.png +0 -0
  104. package/dist/assets/static/media/gm.81cd9f75.png +0 -0
  105. package/dist/assets/static/media/gn.9f3d376e.png +0 -0
  106. package/dist/assets/static/media/gq.e8ad58be.png +0 -0
  107. package/dist/assets/static/media/gr.26f3ac0b.png +0 -0
  108. package/dist/assets/static/media/gt.9d81c52e.png +0 -0
  109. package/dist/assets/static/media/gw.dc906982.png +0 -0
  110. package/dist/assets/static/media/gy.a4f62b6c.png +0 -0
  111. package/dist/assets/static/media/hk.56555c3f.png +0 -0
  112. package/dist/assets/static/media/hn.64ee6aad.png +0 -0
  113. package/dist/assets/static/media/hr.93ebecd3.png +0 -0
  114. package/dist/assets/static/media/ht.42ca1596.png +0 -0
  115. package/dist/assets/static/media/hu.bb30f05d.png +0 -0
  116. package/dist/assets/static/media/id.2cb49f2d.png +0 -0
  117. package/dist/assets/static/media/ie.b4dd1f19.png +0 -0
  118. package/dist/assets/static/media/il.cd1d1faf.png +0 -0
  119. package/dist/assets/static/media/in.2df03847.png +0 -0
  120. package/dist/assets/static/media/iq.a9b670ab.png +0 -0
  121. package/dist/assets/static/media/ir.9a3de085.png +0 -0
  122. package/dist/assets/static/media/is.d88f4fc9.png +0 -0
  123. package/dist/assets/static/media/it.b73713e3.png +0 -0
  124. package/dist/assets/static/media/je.0353f56a.png +0 -0
  125. package/dist/assets/static/media/jm.20330ef4.png +0 -0
  126. package/dist/assets/static/media/jo.eb66f1d1.png +0 -0
  127. package/dist/assets/static/media/jp.63e382ae.png +0 -0
  128. package/dist/assets/static/media/ke.ab2e43b8.png +0 -0
  129. package/dist/assets/static/media/kg.2c47c2af.png +0 -0
  130. package/dist/assets/static/media/kh.4732c810.png +0 -0
  131. package/dist/assets/static/media/ki.5fba09fd.png +0 -0
  132. package/dist/assets/static/media/km.7bbed3e9.png +0 -0
  133. package/dist/assets/static/media/kn.a9595a16.png +0 -0
  134. package/dist/assets/static/media/kp.8a4dc30a.png +0 -0
  135. package/dist/assets/static/media/kr.5273be1d.png +0 -0
  136. package/dist/assets/static/media/ks.99f78645.png +0 -0
  137. package/dist/assets/static/media/kw.af3521bc.png +0 -0
  138. package/dist/assets/static/media/kz.ea47ef79.png +0 -0
  139. package/dist/assets/static/media/la.78a598d7.png +0 -0
  140. package/dist/assets/static/media/lb.7a7c15a9.png +0 -0
  141. package/dist/assets/static/media/lc.6083a4ff.png +0 -0
  142. package/dist/assets/static/media/li.61c564a4.png +0 -0
  143. package/dist/assets/static/media/lk.6fa85802.png +0 -0
  144. package/dist/assets/static/media/lr.8063f7db.png +0 -0
  145. package/dist/assets/static/media/ls.901ddb71.png +0 -0
  146. package/dist/assets/static/media/lt.9209ace3.png +0 -0
  147. package/dist/assets/static/media/lu.c9872bc1.png +0 -0
  148. package/dist/assets/static/media/lv.7bcacf0a.png +0 -0
  149. package/dist/assets/static/media/ly.2830aa63.png +0 -0
  150. package/dist/assets/static/media/ma.ce5f697b.png +0 -0
  151. package/dist/assets/static/media/mc.4bd5d57a.png +0 -0
  152. package/dist/assets/static/media/md.fb4b5bdf.png +0 -0
  153. package/dist/assets/static/media/me.1f1d1772.png +0 -0
  154. package/dist/assets/static/media/mg.89101bd2.png +0 -0
  155. package/dist/assets/static/media/mh.ff11dff7.png +0 -0
  156. package/dist/assets/static/media/mk.8420e604.png +0 -0
  157. package/dist/assets/static/media/ml.4db47c66.png +0 -0
  158. package/dist/assets/static/media/mm.8e4ac30a.png +0 -0
  159. package/dist/assets/static/media/mn.dc1daa04.png +0 -0
  160. package/dist/assets/static/media/mr.7cbca6d0.png +0 -0
  161. package/dist/assets/static/media/mt.28a4b863.png +0 -0
  162. package/dist/assets/static/media/mu.d93db6c7.png +0 -0
  163. package/dist/assets/static/media/mv.7d026bf1.png +0 -0
  164. package/dist/assets/static/media/mw.960cd4fb.png +0 -0
  165. package/dist/assets/static/media/mx.39b78eb2.png +0 -0
  166. package/dist/assets/static/media/my.916a8392.png +0 -0
  167. package/dist/assets/static/media/mz.facb4ea3.png +0 -0
  168. package/dist/assets/static/media/na.472666a9.png +0 -0
  169. package/dist/assets/static/media/ne.d774701f.png +0 -0
  170. package/dist/assets/static/media/ng.7b06a49f.png +0 -0
  171. package/dist/assets/static/media/ni.7140131c.png +0 -0
  172. package/dist/assets/static/media/nl.4c04aa96.png +0 -0
  173. package/dist/assets/static/media/no.c19eb00d.png +0 -0
  174. package/dist/assets/static/media/np.54fb4f2f.png +0 -0
  175. package/dist/assets/static/media/nr.7527cc38.png +0 -0
  176. package/dist/assets/static/media/nz.738be05b.png +0 -0
  177. package/dist/assets/static/media/om.b25e0a17.png +0 -0
  178. package/dist/assets/static/media/pa.b28a9059.png +0 -0
  179. package/dist/assets/static/media/pe.c1fc1d96.png +0 -0
  180. package/dist/assets/static/media/pg.380115db.png +0 -0
  181. package/dist/assets/static/media/ph.02199ddc.png +0 -0
  182. package/dist/assets/static/media/pk.094f9517.png +0 -0
  183. package/dist/assets/static/media/pl.41521283.png +0 -0
  184. package/dist/assets/static/media/pt.1f82dc04.png +0 -0
  185. package/dist/assets/static/media/pw.a26c2316.png +0 -0
  186. package/dist/assets/static/media/py.926c65ed.png +0 -0
  187. package/dist/assets/static/media/qa.c6a3c20e.png +0 -0
  188. package/dist/assets/static/media/ro.a36876c9.png +0 -0
  189. package/dist/assets/static/media/rs.c6629de8.png +0 -0
  190. package/dist/assets/static/media/ru.a9b948c1.png +0 -0
  191. package/dist/assets/static/media/rw.e8aecba0.png +0 -0
  192. package/dist/assets/static/media/sa.859049c8.png +0 -0
  193. package/dist/assets/static/media/sb.4ad27b27.png +0 -0
  194. package/dist/assets/static/media/sc.3293efde.png +0 -0
  195. package/dist/assets/static/media/sd.19c94faa.png +0 -0
  196. package/dist/assets/static/media/se.195b3f93.png +0 -0
  197. package/dist/assets/static/media/sg.19d81907.png +0 -0
  198. package/dist/assets/static/media/si.367c5443.png +0 -0
  199. package/dist/assets/static/media/sk.4e5b8a39.png +0 -0
  200. package/dist/assets/static/media/sl.4b174b1c.png +0 -0
  201. package/dist/assets/static/media/sm.2cba3dac.png +0 -0
  202. package/dist/assets/static/media/sn.a4c1041d.png +0 -0
  203. package/dist/assets/static/media/so.b455e3bf.png +0 -0
  204. package/dist/assets/static/media/sr.5adc1c00.png +0 -0
  205. package/dist/assets/static/media/st.5ae44155.png +0 -0
  206. package/dist/assets/static/media/sv.43aa6cdf.png +0 -0
  207. package/dist/assets/static/media/sy.0fbd24f7.png +0 -0
  208. package/dist/assets/static/media/sz.ff204912.png +0 -0
  209. package/dist/assets/static/media/td.c7aa2a4e.png +0 -0
  210. package/dist/assets/static/media/tg.857c3bec.png +0 -0
  211. package/dist/assets/static/media/th.683600c7.png +0 -0
  212. package/dist/assets/static/media/tj.d20c5570.png +0 -0
  213. package/dist/assets/static/media/tl.5edd8ea7.png +0 -0
  214. package/dist/assets/static/media/tm.15960215.png +0 -0
  215. package/dist/assets/static/media/tn.40df718e.png +0 -0
  216. package/dist/assets/static/media/to.c3b054df.png +0 -0
  217. package/dist/assets/static/media/tr.adeace6d.png +0 -0
  218. package/dist/assets/static/media/tt.839bd7f1.png +0 -0
  219. package/dist/assets/static/media/tv.628cae3e.png +0 -0
  220. package/dist/assets/static/media/tw.4e885914.png +0 -0
  221. package/dist/assets/static/media/tz.b2f0dc37.png +0 -0
  222. package/dist/assets/static/media/ua.6b103313.png +0 -0
  223. package/dist/assets/static/media/ug.c84042fc.png +0 -0
  224. package/dist/assets/static/media/us.8523c31d.png +0 -0
  225. package/dist/assets/static/media/uy.a943f85e.png +0 -0
  226. package/dist/assets/static/media/uz.25552673.png +0 -0
  227. package/dist/assets/static/media/va.a29e1b53.png +0 -0
  228. package/dist/assets/static/media/vc.7480bd37.png +0 -0
  229. package/dist/assets/static/media/ve.fd4273c2.png +0 -0
  230. package/dist/assets/static/media/vn.7d2eff1b.png +0 -0
  231. package/dist/assets/static/media/vu.48b64cf3.png +0 -0
  232. package/dist/assets/static/media/ws.f3d9202f.png +0 -0
  233. package/dist/assets/static/media/ye.311a0e50.png +0 -0
  234. package/dist/assets/static/media/za.090a856f.png +0 -0
  235. package/dist/assets/static/media/zm.8371e197.png +0 -0
  236. package/dist/assets/static/media/zw.a6809447.png +0 -0
  237. package/dist/data/file.js +1 -0
  238. package/dist/data/worker-pipeline.js +1 -0
  239. package/dist/data/worker.js +1 -0
  240. package/dist/data/worker1.js +1 -0
  241. package/dist/index.js +20 -1
  242. package/node_modules/async/CHANGELOG.md +3 -0
  243. package/node_modules/async/dist/async.js +3 -0
  244. package/node_modules/async/dist/async.min.js +1 -1
  245. package/node_modules/async/dist/async.min.map +1 -1
  246. package/node_modules/async/internal/iterator.js +3 -0
  247. package/node_modules/async/package.json +1 -1
  248. package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  249. package/node_modules/balanced-match/README.md +6 -0
  250. package/node_modules/balanced-match/index.js +3 -0
  251. package/node_modules/balanced-match/package.json +3 -4
  252. package/node_modules/geoip-country/EULA +45 -41
  253. package/node_modules/geoip-country/README.md +10 -0
  254. package/node_modules/geoip-country/data/geoip-country.dat +0 -0
  255. package/node_modules/geoip-country/data/geoip-country6.dat +0 -0
  256. package/node_modules/geoip-country/lib/geoip.js +34 -0
  257. package/node_modules/geoip-country/package.json +3 -4
  258. package/node_modules/geoip-country/scripts/updatedb.js +4 -7
  259. package/node_modules/geoip-country/test/tests.js +1 -0
  260. package/node_modules/glob/README.md +4 -1
  261. package/node_modules/glob/common.js +6 -8
  262. package/node_modules/glob/glob.js +8 -8
  263. package/node_modules/glob/package.json +13 -4
  264. package/node_modules/glob/sync.js +10 -10
  265. package/node_modules/lodash/README.md +2 -2
  266. package/node_modules/lodash/_baseTrim.js +19 -0
  267. package/node_modules/lodash/_trimmedEndIndex.js +19 -0
  268. package/node_modules/lodash/core.js +1 -1
  269. package/node_modules/lodash/core.min.js +24 -25
  270. package/node_modules/lodash/flake.lock +40 -0
  271. package/node_modules/lodash/flake.nix +20 -0
  272. package/node_modules/lodash/lodash.js +57 -9
  273. package/node_modules/lodash/lodash.min.js +126 -125
  274. package/node_modules/lodash/package.json +1 -1
  275. package/node_modules/lodash/parseInt.js +1 -1
  276. package/node_modules/lodash/release.md +48 -0
  277. package/node_modules/lodash/template.js +21 -0
  278. package/node_modules/lodash/toNumber.js +3 -5
  279. package/node_modules/lodash/trim.js +2 -4
  280. package/node_modules/lodash/trimEnd.js +3 -5
  281. package/node_modules/lodash/trimStart.js +1 -1
  282. package/node_modules/minimatch/README.md +22 -1
  283. package/node_modules/minimatch/minimatch.js +93 -69
  284. package/node_modules/minimatch/package.json +6 -3
  285. package/package.json +147 -158
  286. package/dist/assets/static/css/850.c2ceb18494ed574b68dc.css +0 -1
  287. package/dist/assets/static/css/main.5abe7fffd635652591d3.css +0 -1
  288. package/dist/assets/static/js/289.03879213.chunk.js +0 -1
  289. package/dist/assets/static/js/480.8afd1351.chunk.js +0 -1
  290. package/dist/assets/static/js/488.d1082093.chunk.js +0 -1
  291. package/dist/assets/static/js/850.13444f53.chunk.js +0 -1
  292. package/dist/assets/static/js/about.8ad5babf.chunk.js +0 -1
  293. package/dist/assets/static/js/flag1.137cce7b.chunk.js +0 -1
  294. package/dist/assets/static/js/flag2.6b5f593f.chunk.js +0 -1
  295. package/dist/assets/static/js/flag3.a2b00584.chunk.js +0 -1
  296. package/dist/assets/static/js/flag6.c23ec31b.chunk.js +0 -1
  297. package/dist/assets/static/js/i18n1.33406d6b.chunk.js +0 -1
  298. package/dist/assets/static/js/i18n10.025ec6f8.chunk.js +0 -1
  299. package/dist/assets/static/js/i18n12.789212fa.chunk.js +0 -1
  300. package/dist/assets/static/js/i18n13.9138e979.chunk.js +0 -1
  301. package/dist/assets/static/js/i18n14.856fbdd1.chunk.js +0 -1
  302. package/dist/assets/static/js/i18n15.93fb43d6.chunk.js +0 -1
  303. package/dist/assets/static/js/i18n16.fd9db133.chunk.js +0 -1
  304. package/dist/assets/static/js/i18n17.c960513a.chunk.js +0 -1
  305. package/dist/assets/static/js/i18n18.2f4205f4.chunk.js +0 -1
  306. package/dist/assets/static/js/i18n19.0a07e3df.chunk.js +0 -1
  307. package/dist/assets/static/js/i18n20.3db415ed.chunk.js +0 -1
  308. package/dist/assets/static/js/i18n21.07d4d01e.chunk.js +0 -1
  309. package/dist/assets/static/js/i18n23.b6e6327a.chunk.js +0 -1
  310. package/dist/assets/static/js/i18n25.a619dab1.chunk.js +0 -1
  311. package/dist/assets/static/js/i18n27.20664c1f.chunk.js +0 -1
  312. package/dist/assets/static/js/i18n28.4d8e640e.chunk.js +0 -1
  313. package/dist/assets/static/js/i18n3.3c9b6f82.chunk.js +0 -1
  314. package/dist/assets/static/js/i18n4.8841ce41.chunk.js +0 -1
  315. package/dist/assets/static/js/i18n5.47f17f30.chunk.js +0 -1
  316. package/dist/assets/static/js/i18n6.c9c1ce7f.chunk.js +0 -1
  317. package/dist/assets/static/js/i18n8.da94d613.chunk.js +0 -1
  318. package/dist/assets/static/js/i18n9.e64a51b2.chunk.js +0 -1
  319. package/dist/assets/static/js/main.3abb19ca.js +0 -1
  320. package/node_modules/balanced-match/.npmignore +0 -5
  321. package/node_modules/glob/changelog.md +0 -67
  322. /package/node_modules/{colors → geoip-country/node_modules/colors}/LICENSE +0 -0
  323. /package/node_modules/{colors → geoip-country/node_modules/colors}/README.md +0 -0
  324. /package/node_modules/{colors → geoip-country/node_modules/colors}/examples/normal-usage.js +0 -0
  325. /package/node_modules/{colors → geoip-country/node_modules/colors}/examples/safe-string.js +0 -0
  326. /package/node_modules/{colors → geoip-country/node_modules/colors}/index.d.ts +0 -0
  327. /package/node_modules/{colors → geoip-country/node_modules/colors}/lib/colors.js +0 -0
  328. /package/node_modules/{colors → geoip-country/node_modules/colors}/lib/custom/trap.js +0 -0
  329. /package/node_modules/{colors → geoip-country/node_modules/colors}/lib/custom/zalgo.js +0 -0
  330. /package/node_modules/{colors → geoip-country/node_modules/colors}/lib/extendStringPrototype.js +0 -0
  331. /package/node_modules/{colors → geoip-country/node_modules/colors}/lib/index.js +0 -0
  332. /package/node_modules/{colors → geoip-country/node_modules/colors}/lib/maps/america.js +0 -0
  333. /package/node_modules/{colors → geoip-country/node_modules/colors}/lib/maps/rainbow.js +0 -0
  334. /package/node_modules/{colors → geoip-country/node_modules/colors}/lib/maps/random.js +0 -0
  335. /package/node_modules/{colors → geoip-country/node_modules/colors}/lib/maps/zebra.js +0 -0
  336. /package/node_modules/{colors → geoip-country/node_modules/colors}/lib/styles.js +0 -0
  337. /package/node_modules/{colors → geoip-country/node_modules/colors}/lib/system/has-flag.js +0 -0
  338. /package/node_modules/{colors → geoip-country/node_modules/colors}/lib/system/supports-colors.js +0 -0
  339. /package/node_modules/{colors → geoip-country/node_modules/colors}/package.json +0 -0
  340. /package/node_modules/{colors → geoip-country/node_modules/colors}/safe.d.ts +0 -0
  341. /package/node_modules/{colors → geoip-country/node_modules/colors}/safe.js +0 -0
  342. /package/node_modules/{colors → geoip-country/node_modules/colors}/themes/generic-logging.js +0 -0
@@ -1,85 +1,89 @@
1
1
  GeoLite2 End User License Agreement
2
-
3
- Revised on December 20, 2019
4
- See the latest version at https://www.maxmind.com/en/geolite2/eula
2
+ Revised on December 7, 2020
5
3
 
6
4
  By downloading or using our GeoLite2 Database, you are accepting and agreeing to the terms and conditions set forth in this GeoLite2 End User License Agreement (this "Agreement").
7
5
 
8
- MaxMind, Inc. ("MaxMind"), a Delaware Corporation, offers a line of free databases that provide geographic information and other data associated with specific Internet protocol addresses (each a "GeoLite2 Database" and collectively the "GeoLite2 Databases"). The data available through the GeoLite2 Databases is referred to in this Agreement as the "GeoLite2 Data". The term �gServices�h as used in this Agreement means the Geolite2 Databases and the GeoLite2 Data available at GeoLite2 Free Downloadable Databases on the MaxMind website, www.maxmind.com (the "Website").
6
+ MaxMind, Inc. ("MaxMind"), a Delaware Corporation, offers a line of free databases that provide geographic information and other data associated with specific IP addresses (each a "GeoLite2 Database" and collectively the "GeoLite2 Databases"). MaxMind also offers a free service that provides geographic and other data associated with a specific IP address (each a "GeoLite2 Web Service" and collectively the "GeoLite2 Web Services"). The data available through the GeoLite2 Databases and the GeoLite2 Web Services is referred to in this Agreement as the "GeoLite2 Data". The term "Services" as used in this Agreement means the Geolite2 Databases, the GeoLite2 Web Services and the GeoLite2 Data. "Website" refers to MaxMind's website, www.maxmind.com.
9
7
 
10
- ADDITIONAL POLICIES, TERMS AND CONDITIONS.
8
+ 1. ADDITIONAL POLICIES, TERMS AND CONDITIONS.
11
9
 
12
10
  The following policies are incorporated into this Agreement by reference and provide additional terms and conditions incorporated herein by this reference and/or related to the use of the Website:
13
11
 
14
- Creative Commons Corporation Attribution-ShareAlike 4.0 International License (the �gCreative Commons License�h)
15
- MaxMind Data Processing Addendum (�gDPA�h)
16
- MaxMind Privacy Policy (�gPP�h)
17
- MaxMind Website Terms of Use (�gWT�h)
18
-
19
- This Agreement controls in the event of any conflict with the above-referenced documents. Thereafter, for any conflicts among the above 4 documents, the priority and precedence of interpretation is DPA, PP, WT and Creative Commons License.
12
+ Creative Commons Corporation Attribution-ShareAlike 4.0 International License (the "Creative Commons License")
13
+ MaxMind Data Processing Addendum ("DPA")
14
+ MaxMind Privacy Policy ("PP")
15
+ MaxMind Website Terms of Use ("WT")
16
+ This Agreement controls in the event of any conflict with the above-referenced documents, except as otherwise provided in Section 7 (Personal Data). Thereafter, for any conflicts among the above 4 documents, the priority and precedence of interpretation is DPA, PP, WT and Creative Commons License.
20
17
 
21
- OTHER DATABASES AND PRODUCTS.
18
+ 2. OTHER DATABASES AND PRODUCTS.
22
19
 
23
20
  This Agreement does not apply to your use of any databases or products offered by MaxMind other than the Services. If you use other MaxMind databases or products, additional or other terms and conditions shall apply to your use of such databases and products, and you agree to pay all applicable charges.
24
21
 
25
- LIMITED GRANT OF RIGHTS.
22
+ 3. LIMITED GRANT OF RIGHTS.
26
23
 
27
- Subject to the terms and conditions of this Agreement, to the extent the Services contain any copyrightable elements those copyrightable elements are governed by the Creative Commons License. You must provide attribution of your use to MaxMind (an example of attribution: �gThis product includes GeoLite2 data created by MaxMind, available from <a href="https://www.maxmind.com">https://www.maxmind.com</a>�g).
24
+ Subject to the terms and conditions of this Agreement, to the extent the Services contain any copyrightable elements those copyrightable elements are governed by the Creative Commons License. You must provide attribution of your use to MaxMind (an example of attribution: "This product includes GeoLite2 Data created by MaxMind, available from https://www.maxmind.com/.
28
25
 
29
26
  In addition and if you are using the Services for internal use, subject to the terms and conditions of this Agreement, MaxMind also hereby grants you a non-exclusive, non-transferable limited license to access and use the Services for your own internal business purposes.
30
27
 
31
28
  With respect to either or both of the above licenses, (i) you agree to use the Services only in a manner that is consistent with applicable laws and (ii) you may not remove or obscure any copyright notice or other notice or terms of use contained in the Services.
32
29
 
33
- NO USE OF GEOLITE2 DATA FOR FCRA PURPOSES.
30
+ 4. NO USE OF GEOLITE2 DATA FOR FCRA PURPOSES.
31
+
32
+ The parties understand and agree that MaxMind is not a consumer reporting agency as defined by the Fair Credit Reporting Act, 15 U.S.C. ��1681 et seq. ("FCRA"), and that the Services do not constitute "consumer reports" as defined in the FCRA. You understand that any information you provide to MaxMind in order to use the Services has not been collected by MaxMind for credit purposes and is not intended to be indicative of any consumer's credit worthiness, credit standing, credit capacity, or other characteristics listed in Section 603(d) of the FCRA. You also agree that you will not use the Services (i) as a factor in establishing a consumer's eligibility for credit, (ii) as a factor in establishing a consumer's eligibility for insurance, (iii) for employment purposes, (iv) in connection with a determination of an individual's eligibility for a license or other benefit granted by a governmental authority, or (v) in connection with any permissible purpose as defined by the FCRA.
33
+
34
+ 5. ACCURACY EXPECTATION: NO USE OF GEOLITE2 DATA FOR IDENTIFYING SPECIFIC HOUSEHOLDS OR INDIVIDUALS.
35
+
36
+ Due to the nature of geolocation technology and other factors beyond its control, MaxMind cannot and does not guarantee the accuracy of the GeoLite2 Data. The Services contain only the geographic data available and the availability of such data is not consistent for all regions. Furthermore, none of the Services reliably identifies any geographic level or division more precise than the zip code or postal code associated with an IP address. Accordingly, it is imperative that you and your end users not rely on the GeoLite2 Data to identify a specific household, individual, or street address. You acknowledge the foregoing limitation of the GeoLite2 Data and agree represent and warrant that you will not use or encourage others to use the GeoLite2 Data for the purpose of identifying or locating a specific household, individual, or street address.
37
+
38
+ 6. ADDITIONAL RESTRICTIONS.
39
+
40
+ (a) Disclosure of Services. Except as explicitly permitted by the Creative Commons License, you will not disclose the Services to any third party or after notifying MaxMind of the anticipated disclosure and obtaining MaxMind's prior written consent to the disclosure. To the extent you disclose the Services to a third party as permitted by this Agreement, you will impose upon the third party the same or substantially similar contractual duties imposed on you and the rights provided to MaxMind as in this Agreement, including those in Section 3 (LIMITED GRANT OF RIGHTS), Section 6 (ADDITIONAL RESTRICTIONS), and the DPA and, where not inconsistent with the other terms of this Agreement, as in the Creative Commons License. You are responsible for the acts or omissions of any third parties with which you share the Services.
34
41
 
35
- The parties understand and agree that MaxMind is not a consumer reporting agency as defined by the Fair Credit Reporting Act, 15 U.S.C. ��1681 et seq. ("FCRA"), and that the Services do not constitute "consumer reports" as defined in the FCRA. You agree that you will not use the Services to determine any consumer's eligibility for any product or service to be used by a consumer for personal, family, or household purposes. You also agree that you will not use the Services (i) as a factor in establishing a consumer's eligibility for credit, (ii) as a factor in establishing a consumer's eligibility for insurance, (iii) for employment purposes, (iv) in connection with a determination of an individual's eligibility for a license or other benefit granted by a governmental authority, or (v) in connection with any permissible purpose as defined by the FCRA.
42
+ (b) Security of the Services. You will maintain reasonable and appropriate technical and organizational measures for the protection of the security, confidentiality, and integrity of the Services (including protection against unauthorized or unlawful processing and against accidental or unlawful destruction, loss, or alteration or damage, unauthorized disclosure of, or access to, such data). In the event you discover a data incident involving the Services, you shall promptly notify MaxMind and fully cooperate with MaxMind, at your own expense, in remediating the incident.
36
43
 
37
- ACCURACY EXPECTATION: NO USE OF GEOLITE2 DATA FOR IDENTIFYING SPECIFIC HOUSEHOLDS OR INDIVIDUALS.
44
+ (c) Destructions of GeoLite2 Database and GeoLite2 Data. From time to time, MaxMind will release an updated version of the GeoLite2 Databases, and you agree to promptly use the updated version of the GeoLite2 Databases. You shall cease use of and destroy (i) any old versions of the Services within thirty (30) days following the release of the updated GeoLite2 Databases; and (ii) all Services immediately upon termination of the license under this Agreement. Upon request, you shall provide MaxMind with written confirmation of such destruction.
38
45
 
39
- Due to the nature of geolocation technology and other factors beyond its control, MaxMind cannot and does not guarantee the accuracy of the GeoLite2 Data. The GeoLite2 Databases contain only the geographic data available and the availability of such data is not consistent for all regions. Furthermore, none of the GeoLite2 Data reliably identifies any geographic level or division more precise than the zip code or postal code associated with an IP address. Accordingly, it is imperative that you and your end users not rely on the GeoLite2 Data to identify a specific household, individual, or street address. You acknowledge the foregoing limitation of the GeoLite2 Data and agree represent and warrant that you will not use or encourage others to use the GeoLite2 Data for the purpose of identifying or locating a specific household, individual, or street address.
46
+ (d) MaxMind may limit the number of queries that you may submit to the GeoLite2 Web Service. MaxMind may change this limit at any time at its sole discretion.
40
47
 
41
- ADDITIONAL RESTRICTIONS.
48
+ 7. PERSONAL DATA
42
49
 
43
- Disclosure of Services. Except as explicitly permitted by the Creative Commons License, you will not disclose the Services to any third party or after notifying MaxMind of the anticipated disclosure and obtaining MaxMind�fs prior written consent to the disclosure. To the extent you disclose the Services to a third party as permitted by this Agreement, you will impose upon the third party the same or substantially similar contractual duties imposed on you and the rights provided to MaxMind as in this Agreement, including those in LIMITED GRANT OF RIGHTS, ADDITIONAL RESTRICTIONS, and DATA PROCESSING and, where not inconsistent with the other terms of this Agreement, as in the Creative Commons License. You are responsible for the acts or omissions of any third parties with which you share the Services.
44
- Security of the Services. You will maintain reasonable and appropriate technical and organizational measures for the protection of the security, confidentiality, and integrity of the Services (including protection against unauthorized or unlawful processing and against accidental or unlawful destruction, loss, or alteration or damage, unauthorized disclosure of, or access to, such data). In the event you discover a data incident involving the Services, you shall promptly notify MaxMind and fully cooperate with MaxMind, at your own expense, in remediating the incident.
45
- Destructions of GeoLite2 Database and GeoLite2 Data. From time to time, MaxMind will release an updated version of the GeoLite2 Databases, and you agree to promptly use the updated version of the GeoLite2 Databases. You shall cease use of and destroy (i) any old versions of the Services within thirty (30) days following the release of the updated GeoLite2 Databases; and (ii) all Services immediately upon termination of the license under this Agreement. Upon request, you shall provide MaxMind with written confirmation of such destruction.
46
- Provision of Data to MaxMind. The Services provided by MaxMind under this Agreement do not require MaxMind to process Personal Information on behalf of Licensee. Licensee shall not provide any Personal Information to MaxMind nor cause MaxMind to process any Personal Information on its behalf.
50
+ The parties hereby agree to and incorporate by reference the DPA, which shall apply to the extent the parties process any Personal Information (as defined in the DPA) in connection with your use of the Services. The provisions of the DPA relating to the processing of Personal Information (as defined in the DPA) shall control over any conflicting provisions elsewhere in this Agreement. For the removal of doubt, the DPA is subject to the limitations of liability set forth in this Agreement.
47
51
 
48
- INDEMNIFICATION.
52
+ 8. INDEMNIFICATION.
49
53
 
50
- You will indemnify and hold MaxMind and its affiliates harmless from and against any and all claims, causes of action, liabilities, penalties, costs or expenses (including reasonable attorney�fs fees) incurred by MaxMind or any affiliate thereof as a result of your breach of any of the terms of this Agreement.
54
+ You will indemnify and hold MaxMind and its affiliates harmless from and against any and all claims, causes of action, liabilities, penalties, costs or expenses (including reasonable attorney's fees) incurred by MaxMind or any affiliate thereof as a result of your breach of any of the terms of this Agreement.
51
55
 
52
- FEES.
56
+ 9. FEES.
53
57
 
54
58
  The Services are made available to you free of charge. MaxMind reserves the right to stop offering the Services free of charge at any time, and charge for future updates to the Services.
55
59
 
56
- CHANGES TO THE AGREEMENT/TERMINATION.
60
+ 10. CHANGES TO THE AGREEMENT/TERMINATION.
57
61
 
58
62
  (a) MaxMind may amend this Agreement at any time. Any such amendment(s) shall be binding and effective upon the earlier of (i) the date that is thirty (30) days after the posting of the amended Agreement on the Website or (ii) the date that MaxMind provides notice to you of the amended Agreement. You may immediately terminate this Agreement upon written notice to MaxMind if a change is unacceptable to you. Your continued use of the Services following notice to you of a change shall constitute your acceptance of the change.
59
63
 
60
- (b) This Agreement shall terminate immediately if, within the reasonable judgment of MaxMind, you materially breach any material term or condition of this Agreement and fail to remedy the breach within ten (10) days of receipt of written notice thereof stating MaxMind's intent to terminate upon non-cure of the breach. Your failure to comply with the Restrictions on Use is a breach of a material term of this Agreement.
64
+ (b) MaxMind may terminate this Agreement at any time by providing you with written notice.
61
65
 
62
- NO CONSEQUENTIAL DAMAGES/LIMITATION ON LIABILITY.
66
+ 11. NO CONSEQUENTIAL DAMAGES/LIMITATION ON LIABILITY.
63
67
 
64
68
  Under no circumstances, including negligence, shall MaxMind or any related party or supplier be liable for indirect, incidental, special, consequential, or punitive damages, or for loss of profits, revenue, or data, that are directly or indirectly related to the use of or the inability to access and use the Services, whether in an action in contract, tort, product liability, strict liability, statute, or otherwise, even if MaxMind has been advised of the possibility of those damages. The total liability of MaxMind, in connection with a loss or damages arising hereunder (an "Occurrence") is limited to the greater of $100 or the lowest amount permitted by applicable law.
65
69
 
66
- NO WARRANTIES/AVAILABILITY.
70
+ 12. NO WARRANTIES/AVAILABILITY.
67
71
 
68
72
  MaxMind furnishes the Services on an as-is, as-available basis. MaxMind makes no warranty, express or implied, with respect to their capability, accuracy, or completeness. All warranties of any type, express or implied, including the warranties of merchantability, fitness for a particular purpose, and non-infringement of third party rights are expressly disclaimed. Furthermore, since the availability of Services offered through the Website is dependent upon many factors beyond MaxMind's control, MaxMind does not guarantee uninterrupted availability of any such Services. Any such Services may be inoperative and/or unavailable due to technical difficulties or for maintenance purposes, at any time and without notice. While MaxMind does not warrant that the MaxMind Website is free of harmful components, MaxMind shall make commercially reasonable efforts to maintain the Website free of viruses and malicious code.
69
73
 
70
- GOVERNING LAW.
74
+ 13. GOVERNING LAW.
71
75
 
72
76
  This Agreement shall be governed and interpreted pursuant to the laws of the Commonwealth of Massachusetts, applicable to contracts made and to be performed wholly in Massachusetts, without regard to principles of conflicts of laws. You specifically consent to personal jurisdiction in Massachusetts in connection with any dispute between you and MaxMind arising out of this Agreement. You agree that the exclusive venue for any dispute hereunder shall be in the state and federal courts in Boston, Massachusetts. This Agreement shall be construed and interpreted in English, and any translation hereof to a language other than English shall be for convenience only.
73
77
 
74
- NOTICES.
78
+ 14. NOTICES.
75
79
 
76
- Notices given under this Agreement shall be in writing and sent by facsimile, email, or by first class mail or equivalent. MaxMind shall direct notice to you at the email address or physical mailing address you provided in the registration process. You shall direct notice to MaxMind at the following address:
80
+ Notices given under this Agreement shall be in writing and sent by email, or by first class mail or equivalent. MaxMind shall direct notice to you at the email address or physical mailing address you provided in the registration process. You shall direct notice to MaxMind at the following address:
77
81
 
78
82
  MaxMind, Inc.
79
83
 
80
- 14 Spring Street, Suite 3
84
+ 51 Pleasant Street #1020
81
85
 
82
- Waltham, MA 02451
86
+ Malden, MA 02148
83
87
 
84
88
  U.S.A.
85
89
 
@@ -87,18 +91,18 @@ Email: legal@maxmind.com
87
91
 
88
92
  Either party may change its notice contact information at any time by giving notice of the new contact information as provided in this section.
89
93
 
90
- COMPLETE AGREEMENT.
94
+ 15. COMPLETE AGREEMENT.
91
95
 
92
- This Agreement (which includes the policies, terms and conditions referenced above and incorporated herein) represents the entire agreement between you and MaxMind with respect to the subject matter hereof and supersedes all previous representations, understandings, or agreements, oral and written, between the parties regarding the subject matter hereof. The headings contained in this Agreement are for convenience only and shall not govern its interpretation.
96
+ This Agreement (which includes the policies, terms and conditions referenced above and incorporated herein) represents the entire agreement between you and MaxMind with respect to the subject matter hereof and supersedes all previous representations, understandings, or agreements, oral and written, between the parties regarding the subject matter hereof. The headings contained in this Agreement are for convenience only and shall not govern its interpretation.
93
97
 
94
- ASSIGNMENT.
98
+ 16. ASSIGNMENT.
95
99
 
96
100
  You may not assign this Agreement without MaxMind's prior written consent. MaxMind may assign its rights and obligations under this Agreement without your consent.
97
101
 
98
- SEVERABILITY.
102
+ 17. SEVERABILITY.
99
103
 
100
104
  Should any provision of this Agreement be held void, invalid, or inoperative, such decision shall not affect any other provision hereof, and the remainder of this Agreement shall be effective as though such void, invalid, or inoperative provision had not been contained herein.
101
105
 
102
- COMPLIANCE WITH LAW.
106
+ 18. COMPLIANCE WITH LAW.
103
107
 
104
- Notwithstanding any provisions of this Agreement to the contrary, you shall in performance of this Agreement comply with all applicable laws, executive orders, regulations ordinances and rules of all governments (�gApplicable Laws�h), including all applicable export and re-export control laws and regulations, such as the Export Administration Regulations (�gEAR�h) maintained by the USA Department of Commerce, trade and economic sanctions maintained by the USA Treasury Department�fs Office of Foreign Assets Control, and the International Traffic in Arms Regulations (�gITAR�h) maintained by the USA Department of State. Specifically, and without limitation, you agree that you shall not, directly or indirectly, sell, export, re-export, transfer, divert, or otherwise dispose of any Services (including products derived from or based on such Services) to any destination, entity, or person prohibited by the laws or regulations of the USA, without obtaining prior authorization from the competent government authorities as required by those laws and regulations.
108
+ Notwithstanding any provisions of this Agreement to the contrary, you shall in performance of this Agreement comply with all applicable laws, executive orders, regulations ordinances and rules of all governments ("Applicable Laws"), including all applicable export and re-export control laws and regulations, such as the Export Administration Regulations ("EAR") maintained by the USA Department of Commerce, trade and economic sanctions maintained by the USA Treasury Department's Office of Foreign Assets Control, and the International Traffic in Arms Regulations ("ITAR") maintained by the USA Department of State. Specifically, and without limitation, you agree that you shall not, directly or indirectly, sell, export, re-export, transfer, divert, or otherwise dispose of any Services (including products derived from or based on such Services) to any destination, entity, or person prohibited by the laws or regulations of the USA, without obtaining prior authorization from the competent government authorities as required by those laws and regulations.
@@ -66,6 +66,16 @@ considered internal to `geoip-country`. To get a human readable format, pass th
66
66
 
67
67
  If the IP address was not found, the `lookup` returns `null`
68
68
 
69
+ ### Update database API [Added at v4.1.0]
70
+
71
+ You can update country database with `updateDatabase` method.
72
+
73
+ ```javascript
74
+ geoip.updateDatabase(license_key, callback);
75
+ ```
76
+
77
+ `license_key` is a license key which provided by MaxMind. You can get GeoLite2 license key as [instructions](https://dev.maxmind.com/geoip/geoip2/geolite2/).
78
+
69
79
  ### Pretty printing an IP address ###
70
80
 
71
81
  If you have a 32 bit unsigned integer, or a number returned as part of the `range` array from the `lookup` method,
@@ -1,6 +1,7 @@
1
1
  var fs = require('fs');
2
2
  var net = require('net');
3
3
  var path = require('path');
4
+ var exec = require('child_process').exec;
4
5
 
5
6
  fs.existsSync = fs.existsSync || path.existsSync;
6
7
 
@@ -422,6 +423,39 @@ module.exports = {
422
423
  return n;
423
424
  },
424
425
 
426
+ /**
427
+ * @param {string} [license_key]
428
+ * Without license_key, you need to set GEOLITE2_LICENSE_KEY as environmental variable
429
+ * @param {function} [callback]
430
+ */
431
+ updateDatabase(license_key, callback){
432
+ var command = 'node ' + path.join(__dirname, '..', 'scripts', 'updatedb.js')
433
+ var options = {encoding: 'utf-8'}
434
+ if(typeof license_key === 'function'){
435
+ callback = license_key
436
+ } else {
437
+ options.env = {GEOLITE2_LICENSE_KEY: license_key}
438
+ }
439
+ if(!callback){
440
+ callback = function(){}
441
+ }
442
+
443
+ exec(command, options, function(error, stdout, stderr){
444
+ if(error){
445
+ return callback(error, stdout, stderr);
446
+ }
447
+ //Reload data
448
+ async.series([
449
+ function (cb) {
450
+ preload(cb);
451
+ },
452
+ function (cb) {
453
+ preload6(cb);
454
+ }
455
+ ], callback);
456
+ });
457
+ },
458
+
425
459
  // Start watching for data updates. The watcher waits one minute for file transfer to
426
460
  // completete before triggering the callback.
427
461
  startWatchingDataUpdate: function (callback) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geoip-country",
3
- "version": "4.0.54",
3
+ "version": "4.1.60",
4
4
  "description": "Less memory usage version of geoip-lite, by supporting only country lookup.",
5
5
  "keywords": [
6
6
  "geo",
@@ -37,9 +37,8 @@
37
37
  "update-package": "node scripts/update-package.js"
38
38
  },
39
39
  "dependencies": {
40
- "async": "^2.6.1",
40
+ "async": "^2.6.4",
41
41
  "colors": "^1.4.0",
42
- "glob": "^7.1.6",
43
42
  "iconv-lite": "^0.5.2",
44
43
  "ip-address": "^6.3.0",
45
44
  "lazy": "^1.0.11",
@@ -50,7 +49,7 @@
50
49
  "update": true
51
50
  },
52
51
  "devDependencies": {
53
- "nodeunit-x": "^0.13.0"
52
+ "nodeunit-x": "^0.15.0"
54
53
  },
55
54
  "license": "MaxMind GeoLite2 License"
56
55
  }
@@ -3,7 +3,7 @@
3
3
  'use strict';
4
4
 
5
5
  var user_agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.36 Safari/537.36';
6
- var download_server = 'https://geoip.maxmind.com/app/geoip_download';
6
+ var download_server = 'https://download.maxmind.com/app/geoip_download';
7
7
  var license_key = process.env.npm_config_license_key || process.env.GEOLITE2_LICENSE_KEY || null;
8
8
 
9
9
  var fs = require('fs');
@@ -15,7 +15,6 @@ fs.existsSync = fs.existsSync || path.existsSync;
15
15
 
16
16
  var async = require('async');
17
17
  var colors = require('colors');
18
- var glob = require('glob');
19
18
  var iconv = require('iconv-lite');
20
19
  var lazy = require('lazy');
21
20
  var rimraf = require('rimraf').sync;
@@ -160,7 +159,7 @@ function fetch(database, cb) {
160
159
  }
161
160
 
162
161
  client.abort();
163
- process.exit();
162
+ process.exit(1);
164
163
  }
165
164
 
166
165
  var tmpFileStream = fs.createWriteStream(tmpFile);
@@ -570,9 +569,8 @@ rimraf(tmpPath);
570
569
  mkdir(tmpPath);
571
570
 
572
571
  async.eachSeries(databases, function(database, nextDatabase) {
573
- if (database.type.indexOf('city') !== -1) return;
572
+ if (database.type.indexOf('city') !== -1) return nextDatabase();
574
573
  async.seq(fetch, extract, processData)(database, nextDatabase);
575
-
576
574
  }, function(err) {
577
575
  if (err) {
578
576
  console.log('Failed to Update Databases from MaxMind.'.red);
@@ -580,7 +578,6 @@ async.eachSeries(databases, function(database, nextDatabase) {
580
578
  } else {
581
579
  console.log('Successfully Updated Databases from MaxMind.'.green);
582
580
  if (process.argv[2] == 'debug') console.log('Notice: temporary files are not deleted for debug purposes.'.bold.yellow);
583
- else rimraf(tmpPath);
584
- process.exit(0);
581
+ else setTimeout(function(){rimraf(tmpPath);}, 100);
585
582
  }
586
583
  });
@@ -2,6 +2,7 @@ console.time('StartUpTime')
2
2
  var geoip = require('../lib/geoip');
3
3
  console.timeEnd('StartUpTime')
4
4
 
5
+
5
6
  module.exports = {
6
7
  testLookup: function(test) {
7
8
  test.expect(2);
@@ -7,7 +7,7 @@ Match files using the patterns the shell uses, like stars and stuff.
7
7
  This is a glob implementation in JavaScript. It uses the `minimatch`
8
8
  library to do its matching.
9
9
 
10
- ![](logo/glob.png)
10
+ ![a fun cartoon logo made of glob characters](logo/glob.png)
11
11
 
12
12
  ## Usage
13
13
 
@@ -276,6 +276,9 @@ the filesystem.
276
276
  * `absolute` Set to true to always receive absolute paths for matched
277
277
  files. Unlike `realpath`, this also affects the values returned in
278
278
  the `match` event.
279
+ * `fs` File-system object with Node's `fs` API. By default, the built-in
280
+ `fs` module will be used. Set to a volume provided by a library like
281
+ `memfs` to avoid using the "real" file-system.
279
282
 
280
283
  ## Comparisons to other fnmatch/glob implementations
281
284
 
@@ -1,5 +1,3 @@
1
- exports.alphasort = alphasort
2
- exports.alphasorti = alphasorti
3
1
  exports.setopts = setopts
4
2
  exports.ownProp = ownProp
5
3
  exports.makeAbs = makeAbs
@@ -12,17 +10,14 @@ function ownProp (obj, field) {
12
10
  return Object.prototype.hasOwnProperty.call(obj, field)
13
11
  }
14
12
 
13
+ var fs = require("fs")
15
14
  var path = require("path")
16
15
  var minimatch = require("minimatch")
17
16
  var isAbsolute = require("path-is-absolute")
18
17
  var Minimatch = minimatch.Minimatch
19
18
 
20
- function alphasorti (a, b) {
21
- return a.toLowerCase().localeCompare(b.toLowerCase())
22
- }
23
-
24
19
  function alphasort (a, b) {
25
- return a.localeCompare(b)
20
+ return a.localeCompare(b, 'en')
26
21
  }
27
22
 
28
23
  function setupIgnores (self, options) {
@@ -81,6 +76,7 @@ function setopts (self, pattern, options) {
81
76
  self.stat = !!options.stat
82
77
  self.noprocess = !!options.noprocess
83
78
  self.absolute = !!options.absolute
79
+ self.fs = options.fs || fs
84
80
 
85
81
  self.maxLength = options.maxLength || Infinity
86
82
  self.cache = options.cache || Object.create(null)
@@ -114,6 +110,8 @@ function setopts (self, pattern, options) {
114
110
  // Note that they are not supported in Glob itself anyway.
115
111
  options.nonegate = true
116
112
  options.nocomment = true
113
+ // always treat \ in patterns as escapes, not path separators
114
+ options.allowWindowsEscape = false
117
115
 
118
116
  self.minimatch = new Minimatch(pattern, options)
119
117
  self.options = self.minimatch.options
@@ -150,7 +148,7 @@ function finish (self) {
150
148
  all = Object.keys(all)
151
149
 
152
150
  if (!self.nosort)
153
- all = all.sort(self.nocase ? alphasorti : alphasort)
151
+ all = all.sort(alphasort)
154
152
 
155
153
  // at *some* point we statted all of these
156
154
  if (self.mark) {
@@ -40,7 +40,6 @@
40
40
 
41
41
  module.exports = glob
42
42
 
43
- var fs = require('fs')
44
43
  var rp = require('fs.realpath')
45
44
  var minimatch = require('minimatch')
46
45
  var Minimatch = minimatch.Minimatch
@@ -51,8 +50,6 @@ var assert = require('assert')
51
50
  var isAbsolute = require('path-is-absolute')
52
51
  var globSync = require('./sync.js')
53
52
  var common = require('./common.js')
54
- var alphasort = common.alphasort
55
- var alphasorti = common.alphasorti
56
53
  var setopts = common.setopts
57
54
  var ownProp = common.ownProp
58
55
  var inflight = require('inflight')
@@ -345,7 +342,10 @@ Glob.prototype._process = function (pattern, index, inGlobStar, cb) {
345
342
  var read
346
343
  if (prefix === null)
347
344
  read = '.'
348
- else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
345
+ else if (isAbsolute(prefix) ||
346
+ isAbsolute(pattern.map(function (p) {
347
+ return typeof p === 'string' ? p : '[*]'
348
+ }).join('/'))) {
349
349
  if (!prefix || !isAbsolute(prefix))
350
350
  prefix = '/' + prefix
351
351
  read = prefix
@@ -503,7 +503,7 @@ Glob.prototype._readdirInGlobStar = function (abs, cb) {
503
503
  var lstatcb = inflight(lstatkey, lstatcb_)
504
504
 
505
505
  if (lstatcb)
506
- fs.lstat(abs, lstatcb)
506
+ self.fs.lstat(abs, lstatcb)
507
507
 
508
508
  function lstatcb_ (er, lstat) {
509
509
  if (er && er.code === 'ENOENT')
@@ -544,7 +544,7 @@ Glob.prototype._readdir = function (abs, inGlobStar, cb) {
544
544
  }
545
545
 
546
546
  var self = this
547
- fs.readdir(abs, readdirCb(this, abs, cb))
547
+ self.fs.readdir(abs, readdirCb(this, abs, cb))
548
548
  }
549
549
 
550
550
  function readdirCb (self, abs, cb) {
@@ -748,13 +748,13 @@ Glob.prototype._stat = function (f, cb) {
748
748
  var self = this
749
749
  var statcb = inflight('stat\0' + abs, lstatcb_)
750
750
  if (statcb)
751
- fs.lstat(abs, statcb)
751
+ self.fs.lstat(abs, statcb)
752
752
 
753
753
  function lstatcb_ (er, lstat) {
754
754
  if (lstat && lstat.isSymbolicLink()) {
755
755
  // If it's a symlink, then treat it as the target, unless
756
756
  // the target does not exist, then treat it as a file.
757
- return fs.stat(abs, function (er, stat) {
757
+ return self.fs.stat(abs, function (er, stat) {
758
758
  if (er)
759
759
  self._stat2(f, abs, null, lstat, cb)
760
760
  else
@@ -2,7 +2,10 @@
2
2
  "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
3
3
  "name": "glob",
4
4
  "description": "a little globber",
5
- "version": "7.1.6",
5
+ "version": "7.2.3",
6
+ "publishConfig": {
7
+ "tag": "v7-legacy"
8
+ },
6
9
  "repository": {
7
10
  "type": "git",
8
11
  "url": "git://github.com/isaacs/node-glob.git"
@@ -20,20 +23,26 @@
20
23
  "fs.realpath": "^1.0.0",
21
24
  "inflight": "^1.0.4",
22
25
  "inherits": "2",
23
- "minimatch": "^3.0.4",
26
+ "minimatch": "^3.1.1",
24
27
  "once": "^1.3.0",
25
28
  "path-is-absolute": "^1.0.0"
26
29
  },
27
30
  "devDependencies": {
31
+ "memfs": "^3.2.0",
28
32
  "mkdirp": "0",
29
33
  "rimraf": "^2.2.8",
30
- "tap": "^12.0.1",
34
+ "tap": "^15.0.6",
31
35
  "tick": "0.0.6"
32
36
  },
37
+ "tap": {
38
+ "before": "test/00-setup.js",
39
+ "after": "test/zz-cleanup.js",
40
+ "jobs": 1
41
+ },
33
42
  "scripts": {
34
43
  "prepublish": "npm run benchclean",
35
44
  "profclean": "rm -f v8.log profile.txt",
36
- "test": "tap test/*.js --cov",
45
+ "test": "tap",
37
46
  "test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js",
38
47
  "bench": "bash benchmark.sh",
39
48
  "prof": "bash prof.sh && cat profile.txt",
@@ -1,7 +1,6 @@
1
1
  module.exports = globSync
2
2
  globSync.GlobSync = GlobSync
3
3
 
4
- var fs = require('fs')
5
4
  var rp = require('fs.realpath')
6
5
  var minimatch = require('minimatch')
7
6
  var Minimatch = minimatch.Minimatch
@@ -11,8 +10,6 @@ var path = require('path')
11
10
  var assert = require('assert')
12
11
  var isAbsolute = require('path-is-absolute')
13
12
  var common = require('./common.js')
14
- var alphasort = common.alphasort
15
- var alphasorti = common.alphasorti
16
13
  var setopts = common.setopts
17
14
  var ownProp = common.ownProp
18
15
  var childrenIgnored = common.childrenIgnored
@@ -51,7 +48,7 @@ function GlobSync (pattern, options) {
51
48
  }
52
49
 
53
50
  GlobSync.prototype._finish = function () {
54
- assert(this instanceof GlobSync)
51
+ assert.ok(this instanceof GlobSync)
55
52
  if (this.realpath) {
56
53
  var self = this
57
54
  this.matches.forEach(function (matchset, index) {
@@ -75,7 +72,7 @@ GlobSync.prototype._finish = function () {
75
72
 
76
73
 
77
74
  GlobSync.prototype._process = function (pattern, index, inGlobStar) {
78
- assert(this instanceof GlobSync)
75
+ assert.ok(this instanceof GlobSync)
79
76
 
80
77
  // Get the first [n] parts of pattern that are all strings.
81
78
  var n = 0
@@ -112,7 +109,10 @@ GlobSync.prototype._process = function (pattern, index, inGlobStar) {
112
109
  var read
113
110
  if (prefix === null)
114
111
  read = '.'
115
- else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
112
+ else if (isAbsolute(prefix) ||
113
+ isAbsolute(pattern.map(function (p) {
114
+ return typeof p === 'string' ? p : '[*]'
115
+ }).join('/'))) {
116
116
  if (!prefix || !isAbsolute(prefix))
117
117
  prefix = '/' + prefix
118
118
  read = prefix
@@ -248,7 +248,7 @@ GlobSync.prototype._readdirInGlobStar = function (abs) {
248
248
  var lstat
249
249
  var stat
250
250
  try {
251
- lstat = fs.lstatSync(abs)
251
+ lstat = this.fs.lstatSync(abs)
252
252
  } catch (er) {
253
253
  if (er.code === 'ENOENT') {
254
254
  // lstat failed, doesn't exist
@@ -285,7 +285,7 @@ GlobSync.prototype._readdir = function (abs, inGlobStar) {
285
285
  }
286
286
 
287
287
  try {
288
- return this._readdirEntries(abs, fs.readdirSync(abs))
288
+ return this._readdirEntries(abs, this.fs.readdirSync(abs))
289
289
  } catch (er) {
290
290
  this._readdirError(abs, er)
291
291
  return null
@@ -444,7 +444,7 @@ GlobSync.prototype._stat = function (f) {
444
444
  if (!stat) {
445
445
  var lstat
446
446
  try {
447
- lstat = fs.lstatSync(abs)
447
+ lstat = this.fs.lstatSync(abs)
448
448
  } catch (er) {
449
449
  if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
450
450
  this.statCache[abs] = false
@@ -454,7 +454,7 @@ GlobSync.prototype._stat = function (f) {
454
454
 
455
455
  if (lstat && lstat.isSymbolicLink()) {
456
456
  try {
457
- stat = fs.statSync(abs)
457
+ stat = this.fs.statSync(abs)
458
458
  } catch (er) {
459
459
  stat = lstat
460
460
  }
@@ -1,4 +1,4 @@
1
- # lodash v4.17.20
1
+ # lodash v4.17.21
2
2
 
3
3
  The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
4
4
 
@@ -28,7 +28,7 @@ var at = require('lodash/at');
28
28
  var curryN = require('lodash/fp/curryN');
29
29
  ```
30
30
 
31
- See the [package source](https://github.com/lodash/lodash/tree/4.17.20-npm) for more details.
31
+ See the [package source](https://github.com/lodash/lodash/tree/4.17.21-npm) for more details.
32
32
 
33
33
  **Note:**<br>
34
34
  Install [n_](https://www.npmjs.com/package/n_) for Lodash use in the Node.js < 6 REPL.
@@ -0,0 +1,19 @@
1
+ var trimmedEndIndex = require('./_trimmedEndIndex');
2
+
3
+ /** Used to match leading whitespace. */
4
+ var reTrimStart = /^\s+/;
5
+
6
+ /**
7
+ * The base implementation of `_.trim`.
8
+ *
9
+ * @private
10
+ * @param {string} string The string to trim.
11
+ * @returns {string} Returns the trimmed string.
12
+ */
13
+ function baseTrim(string) {
14
+ return string
15
+ ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
16
+ : string;
17
+ }
18
+
19
+ module.exports = baseTrim;
@@ -0,0 +1,19 @@
1
+ /** Used to match a single whitespace character. */
2
+ var reWhitespace = /\s/;
3
+
4
+ /**
5
+ * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
6
+ * character of `string`.
7
+ *
8
+ * @private
9
+ * @param {string} string The string to inspect.
10
+ * @returns {number} Returns the index of the last non-whitespace character.
11
+ */
12
+ function trimmedEndIndex(string) {
13
+ var index = string.length;
14
+
15
+ while (index-- && reWhitespace.test(string.charAt(index))) {}
16
+ return index;
17
+ }
18
+
19
+ module.exports = trimmedEndIndex;