@port-labs/jq-node-bindings 0.0.13 → 0.0.15-dev1

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 (453) hide show
  1. package/README.md +6 -1
  2. package/binding.gyp +41 -19
  3. package/configure +1 -1
  4. package/deps/jq/.gitattributes +12 -0
  5. package/deps/jq/AUTHORS +149 -43
  6. package/deps/jq/COPYING +75 -1
  7. package/deps/jq/ChangeLog +2 -2
  8. package/deps/jq/Makefile.am +106 -65
  9. package/deps/jq/NEWS.md +391 -0
  10. package/deps/jq/README.md +54 -52
  11. package/deps/jq/SECURITY.md +7 -0
  12. package/deps/jq/compile-ios.sh +106 -102
  13. package/deps/jq/configure.ac +72 -59
  14. package/deps/jq/docs/Pipfile +14 -0
  15. package/deps/jq/docs/Pipfile.lock +415 -0
  16. package/deps/jq/docs/README.md +15 -14
  17. package/deps/jq/docs/build_manpage.py +251 -0
  18. package/deps/jq/docs/build_mantests.py +21 -0
  19. package/deps/jq/docs/build_website.py +95 -0
  20. package/deps/jq/docs/content/download/default.yml +249 -0
  21. package/deps/jq/docs/content/index.yml +83 -0
  22. package/deps/jq/docs/content/{3.manual/v1.6 → manual/dev}/manual.yml +992 -452
  23. package/deps/jq/docs/content/{3.manual → manual}/v1.3/manual.yml +105 -116
  24. package/deps/jq/docs/content/{3.manual → manual}/v1.4/manual.yml +122 -129
  25. package/deps/jq/docs/content/{3.manual → manual}/v1.5/manual.yml +313 -262
  26. package/deps/jq/docs/content/{3.manual → manual/v1.6}/manual.yml +407 -332
  27. package/deps/jq/docs/content/manual/v1.7/manual.yml +3697 -0
  28. package/deps/jq/docs/content/tutorial/default.yml +337 -0
  29. package/deps/jq/docs/manual_schema.yml +60 -0
  30. package/deps/jq/docs/public/css/style.css +99 -0
  31. package/deps/jq/docs/public/icon.png +0 -0
  32. package/deps/jq/docs/public/icon.svg +1 -0
  33. package/deps/jq/docs/public/jq.svg +1 -0
  34. package/deps/jq/docs/public/js/manual-search.js +31 -49
  35. package/deps/jq/docs/templates/default.html.j2 +31 -0
  36. package/deps/jq/docs/templates/index.html.j2 +58 -0
  37. package/deps/jq/docs/templates/manual.html.j2 +120 -0
  38. package/deps/jq/docs/templates/shared/_footer.html.j2 +14 -0
  39. package/deps/jq/docs/templates/shared/_head.html.j2 +23 -0
  40. package/deps/jq/docs/templates/shared/_navbar.html.j2 +40 -0
  41. package/deps/jq/docs/validate_manual_schema.py +19 -0
  42. package/deps/jq/jq.1.prebuilt +1102 -294
  43. package/deps/jq/jq.spec +2 -3
  44. package/deps/jq/libjq.pc.in +11 -0
  45. package/deps/jq/m4/ax_pthread.m4 +522 -0
  46. package/deps/jq/modules/oniguruma/.travis.yml +17 -0
  47. package/deps/jq/modules/oniguruma/CMakeLists.txt +206 -41
  48. package/deps/jq/modules/oniguruma/COPYING +23 -25
  49. package/deps/jq/modules/oniguruma/HISTORY +368 -23
  50. package/deps/jq/modules/oniguruma/Makefile.am +61 -7
  51. package/deps/jq/modules/oniguruma/README +34 -20
  52. package/deps/jq/modules/oniguruma/README.md +106 -33
  53. package/deps/jq/modules/oniguruma/README_japanese +183 -0
  54. package/deps/jq/modules/oniguruma/autogen.sh +9 -0
  55. package/deps/jq/modules/oniguruma/cmake/Config.cmake.in +4 -0
  56. package/deps/jq/modules/oniguruma/configure.ac +66 -55
  57. package/deps/jq/modules/oniguruma/doc/API +485 -42
  58. package/deps/jq/modules/oniguruma/doc/API.ja +732 -293
  59. package/deps/jq/modules/oniguruma/doc/CALLOUTS.API +397 -0
  60. package/deps/jq/modules/oniguruma/doc/CALLOUTS.API.ja +393 -0
  61. package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN +95 -0
  62. package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN.ja +93 -0
  63. package/deps/jq/modules/oniguruma/doc/FAQ +3 -3
  64. package/deps/jq/modules/oniguruma/doc/FAQ.ja +8 -8
  65. package/deps/jq/modules/oniguruma/doc/RE +223 -63
  66. package/deps/jq/modules/oniguruma/doc/RE.ja +420 -265
  67. package/deps/jq/modules/oniguruma/doc/SYNTAX.md +1091 -0
  68. package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +840 -697
  69. package/deps/jq/modules/oniguruma/harnesses/ascii_compatible.dict +113 -0
  70. package/deps/jq/modules/oniguruma/harnesses/base.c +749 -0
  71. package/deps/jq/modules/oniguruma/harnesses/deluxe.c +206 -0
  72. package/deps/jq/modules/oniguruma/harnesses/dict_conv.py +72 -0
  73. package/deps/jq/modules/oniguruma/harnesses/fuzzer.options +2 -0
  74. package/deps/jq/modules/oniguruma/harnesses/libfuzzer-onig.cpp +45 -0
  75. package/deps/jq/modules/oniguruma/harnesses/regset.c +392 -0
  76. package/deps/jq/modules/oniguruma/index.html +16 -5
  77. package/deps/jq/modules/oniguruma/index_ja.html +16 -5
  78. package/deps/jq/modules/oniguruma/make_win.bat +5 -0
  79. package/deps/jq/modules/oniguruma/make_win32.bat +5 -3
  80. package/deps/jq/modules/oniguruma/make_win64.bat +5 -3
  81. package/deps/jq/modules/oniguruma/onig-config.cmake.in +80 -0
  82. package/deps/jq/modules/oniguruma/onig-config.in +1 -1
  83. package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +1 -1
  84. package/deps/jq/modules/oniguruma/oniguruma.pc.in +0 -1
  85. package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +9 -2
  86. package/deps/jq/modules/oniguruma/sample/Makefile.am +24 -5
  87. package/deps/jq/modules/oniguruma/sample/bug_fix.c +13 -51
  88. package/deps/jq/modules/oniguruma/sample/callback_each_match.c +168 -0
  89. package/deps/jq/modules/oniguruma/sample/callout.c +268 -0
  90. package/deps/jq/modules/oniguruma/sample/count.c +125 -0
  91. package/deps/jq/modules/oniguruma/sample/crnl.c +6 -4
  92. package/deps/jq/modules/oniguruma/sample/echo.c +136 -0
  93. package/deps/jq/modules/oniguruma/sample/encode.c +53 -146
  94. package/deps/jq/modules/oniguruma/sample/listcap.c +18 -10
  95. package/deps/jq/modules/oniguruma/sample/names.c +10 -6
  96. package/deps/jq/modules/oniguruma/sample/posix.c +13 -2
  97. package/deps/jq/modules/oniguruma/sample/regset.c +95 -0
  98. package/deps/jq/modules/oniguruma/sample/scan.c +20 -6
  99. package/deps/jq/modules/oniguruma/sample/simple.c +8 -4
  100. package/deps/jq/modules/oniguruma/sample/sql.c +13 -8
  101. package/deps/jq/modules/oniguruma/sample/syntax.c +11 -10
  102. package/deps/jq/modules/oniguruma/sample/user_property.c +12 -7
  103. package/deps/jq/modules/oniguruma/src/Makefile.am +41 -15
  104. package/deps/jq/modules/oniguruma/src/Makefile.windows +196 -183
  105. package/deps/jq/modules/oniguruma/src/ascii.c +64 -7
  106. package/deps/jq/modules/oniguruma/src/big5.c +25 -15
  107. package/deps/jq/modules/oniguruma/src/config.h.cmake.in +7 -22
  108. package/deps/jq/modules/oniguruma/src/config.h.win32 +56 -84
  109. package/deps/jq/modules/oniguruma/src/config.h.win64 +56 -84
  110. package/deps/jq/modules/oniguruma/src/config.h.windows.in +62 -0
  111. package/deps/jq/modules/oniguruma/src/cp1251.c +14 -8
  112. package/deps/jq/modules/oniguruma/src/euc_jp.c +28 -30
  113. package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +25 -32
  114. package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +1 -2
  115. package/deps/jq/modules/oniguruma/src/euc_kr.c +27 -15
  116. package/deps/jq/modules/oniguruma/src/euc_tw.c +40 -17
  117. package/deps/jq/modules/oniguruma/src/gb18030.c +177 -119
  118. package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +12 -8
  119. package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +8 -6
  120. package/deps/jq/modules/oniguruma/src/iso8859_1.c +92 -91
  121. package/deps/jq/modules/oniguruma/src/iso8859_10.c +13 -29
  122. package/deps/jq/modules/oniguruma/src/iso8859_11.c +4 -2
  123. package/deps/jq/modules/oniguruma/src/iso8859_13.c +13 -33
  124. package/deps/jq/modules/oniguruma/src/iso8859_14.c +13 -30
  125. package/deps/jq/modules/oniguruma/src/iso8859_15.c +13 -34
  126. package/deps/jq/modules/oniguruma/src/iso8859_16.c +13 -29
  127. package/deps/jq/modules/oniguruma/src/iso8859_2.c +13 -29
  128. package/deps/jq/modules/oniguruma/src/iso8859_3.c +13 -33
  129. package/deps/jq/modules/oniguruma/src/iso8859_4.c +13 -32
  130. package/deps/jq/modules/oniguruma/src/iso8859_5.c +16 -23
  131. package/deps/jq/modules/oniguruma/src/iso8859_6.c +4 -2
  132. package/deps/jq/modules/oniguruma/src/iso8859_7.c +14 -29
  133. package/deps/jq/modules/oniguruma/src/iso8859_8.c +4 -2
  134. package/deps/jq/modules/oniguruma/src/iso8859_9.c +13 -33
  135. package/deps/jq/modules/oniguruma/src/koi8.c +14 -27
  136. package/deps/jq/modules/oniguruma/src/koi8_r.c +12 -19
  137. package/deps/jq/modules/oniguruma/src/make_property.sh +21 -0
  138. package/deps/jq/modules/oniguruma/src/make_unicode_egcb.sh +7 -0
  139. package/deps/jq/modules/oniguruma/src/make_unicode_egcb_data.py +267 -0
  140. package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +25 -11
  141. package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +206 -26
  142. package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +19 -10
  143. package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +474 -375
  144. package/deps/jq/modules/oniguruma/src/make_unicode_wb.sh +7 -0
  145. package/deps/jq/modules/oniguruma/src/make_unicode_wb_data.py +267 -0
  146. package/deps/jq/modules/oniguruma/src/mktable.c +28 -24
  147. package/deps/jq/modules/oniguruma/src/onig_init.c +2 -2
  148. package/deps/jq/modules/oniguruma/src/oniggnu.h +7 -5
  149. package/deps/jq/modules/oniguruma/src/onigposix.h +40 -16
  150. package/deps/jq/modules/oniguruma/src/oniguruma.h +357 -107
  151. package/deps/jq/modules/oniguruma/src/regcomp.c +6214 -3933
  152. package/deps/jq/modules/oniguruma/src/regenc.c +197 -120
  153. package/deps/jq/modules/oniguruma/src/regenc.h +106 -63
  154. package/deps/jq/modules/oniguruma/src/regerror.c +112 -91
  155. package/deps/jq/modules/oniguruma/src/regexec.c +4876 -2010
  156. package/deps/jq/modules/oniguruma/src/regext.c +8 -8
  157. package/deps/jq/modules/oniguruma/src/reggnu.c +13 -17
  158. package/deps/jq/modules/oniguruma/src/regint.h +757 -491
  159. package/deps/jq/modules/oniguruma/src/regparse.c +7204 -3240
  160. package/deps/jq/modules/oniguruma/src/regparse.h +361 -218
  161. package/deps/jq/modules/oniguruma/src/regposerr.c +49 -9
  162. package/deps/jq/modules/oniguruma/src/regposix.c +106 -24
  163. package/deps/jq/modules/oniguruma/src/regsyntax.c +66 -13
  164. package/deps/jq/modules/oniguruma/src/regtrav.c +1 -1
  165. package/deps/jq/modules/oniguruma/src/regversion.c +6 -4
  166. package/deps/jq/modules/oniguruma/src/sjis.c +23 -52
  167. package/deps/jq/modules/oniguruma/src/sjis_prop.c +25 -32
  168. package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +1 -2
  169. package/deps/jq/modules/oniguruma/src/st.c +248 -249
  170. package/deps/jq/modules/oniguruma/src/st.h +4 -5
  171. package/deps/jq/modules/oniguruma/src/unicode.c +869 -294
  172. package/deps/jq/modules/oniguruma/src/unicode_egcb_data.c +1419 -0
  173. package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +1829 -1300
  174. package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +32 -9
  175. package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +32 -9
  176. package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1210 -984
  177. package/deps/jq/modules/oniguruma/src/unicode_property_data.c +22480 -15198
  178. package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +1463 -591
  179. package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +1958 -1418
  180. package/deps/jq/modules/oniguruma/src/unicode_wb_data.c +1106 -0
  181. package/deps/jq/modules/oniguruma/src/utf16_be.c +90 -49
  182. package/deps/jq/modules/oniguruma/src/utf16_le.c +80 -49
  183. package/deps/jq/modules/oniguruma/src/utf32_be.c +14 -42
  184. package/deps/jq/modules/oniguruma/src/utf32_le.c +13 -40
  185. package/deps/jq/modules/oniguruma/src/utf8.c +33 -78
  186. package/deps/jq/modules/oniguruma/test/CMakeLists.txt +55 -0
  187. package/deps/jq/modules/oniguruma/test/Makefile.am +65 -10
  188. package/deps/jq/modules/oniguruma/test/test.sh +17 -0
  189. package/deps/jq/modules/oniguruma/test/test_back.c +1450 -0
  190. package/deps/jq/modules/oniguruma/test/test_options.c +228 -0
  191. package/deps/jq/modules/oniguruma/test/test_regset.c +466 -0
  192. package/deps/jq/modules/oniguruma/test/test_syntax.c +365 -0
  193. package/deps/jq/modules/oniguruma/test/test_utf8.c +1761 -0
  194. package/deps/jq/modules/oniguruma/test/testc.c +128 -88
  195. package/deps/jq/modules/oniguruma/test/testp.c +613 -0
  196. package/deps/jq/modules/oniguruma/test/testu.c +75 -28
  197. package/deps/jq/modules/oniguruma/tis-ci/stub.c +3 -0
  198. package/deps/jq/modules/oniguruma/tis-ci/test_back.config +26 -0
  199. package/deps/jq/modules/oniguruma/tis-ci/test_regset.config +20 -0
  200. package/deps/jq/modules/oniguruma/tis-ci/test_syntax.config +26 -0
  201. package/deps/jq/modules/oniguruma/tis-ci/test_utf8.config +25 -0
  202. package/deps/jq/modules/oniguruma/tis-ci/testc.config +26 -0
  203. package/deps/jq/modules/oniguruma/tis-ci/testu.config +24 -0
  204. package/deps/jq/modules/oniguruma/tis.config +1336 -0
  205. package/deps/jq/modules/oniguruma/windows/CMakeLists.txt +8 -0
  206. package/deps/jq/modules/oniguruma/windows/testc.c +865 -869
  207. package/deps/jq/scripts/update-website +6 -5
  208. package/deps/jq/scripts/version +10 -7
  209. package/deps/jq/sig/jq-release-new.key +29 -0
  210. package/deps/jq/sig/v1.4/sha256sum.txt +1 -0
  211. package/deps/jq/sig/v1.5/sha256sum.txt +2 -0
  212. package/deps/jq/sig/v1.5rc1/sha256sum.txt +1 -0
  213. package/deps/jq/sig/v1.5rc2/sha256sum.txt +2 -0
  214. package/deps/jq/sig/v1.6/sha256sum.txt +2 -0
  215. package/deps/jq/sig/v1.7/jq-1.7.tar.gz.asc +16 -0
  216. package/deps/jq/sig/v1.7/jq-1.7.zip.asc +16 -0
  217. package/deps/jq/sig/v1.7/jq-linux-amd64.asc +16 -0
  218. package/deps/jq/sig/v1.7/jq-linux-arm64.asc +16 -0
  219. package/deps/jq/sig/v1.7/jq-linux-armel.asc +16 -0
  220. package/deps/jq/sig/v1.7/jq-linux-armhf.asc +16 -0
  221. package/deps/jq/sig/v1.7/jq-linux-i386.asc +16 -0
  222. package/deps/jq/sig/v1.7/jq-linux-mips.asc +16 -0
  223. package/deps/jq/sig/v1.7/jq-linux-mips64.asc +16 -0
  224. package/deps/jq/sig/v1.7/jq-linux-mips64el.asc +16 -0
  225. package/deps/jq/sig/v1.7/jq-linux-mips64r6.asc +16 -0
  226. package/deps/jq/sig/v1.7/jq-linux-mips64r6el.asc +16 -0
  227. package/deps/jq/sig/v1.7/jq-linux-mipsel.asc +16 -0
  228. package/deps/jq/sig/v1.7/jq-linux-mipsr6.asc +16 -0
  229. package/deps/jq/sig/v1.7/jq-linux-mipsr6el.asc +16 -0
  230. package/deps/jq/sig/v1.7/jq-linux-powerpc.asc +16 -0
  231. package/deps/jq/sig/v1.7/jq-linux-ppc64el.asc +16 -0
  232. package/deps/jq/sig/v1.7/jq-linux-riscv64.asc +16 -0
  233. package/deps/jq/sig/v1.7/jq-linux-s390x.asc +16 -0
  234. package/deps/jq/sig/v1.7/jq-macos-amd64.asc +16 -0
  235. package/deps/jq/sig/v1.7/jq-macos-arm64.asc +16 -0
  236. package/deps/jq/sig/v1.7/jq-windows-amd64.exe.asc +16 -0
  237. package/deps/jq/sig/v1.7/jq-windows-i386.exe.asc +16 -0
  238. package/deps/jq/sig/v1.7/sha256sum.txt +23 -0
  239. package/deps/jq/sig/v1.7.1/jq-1.7.1.tar.gz.asc +16 -0
  240. package/deps/jq/sig/v1.7.1/jq-1.7.1.zip.asc +16 -0
  241. package/deps/jq/sig/v1.7.1/jq-linux-amd64.asc +16 -0
  242. package/deps/jq/sig/v1.7.1/jq-linux-arm64.asc +16 -0
  243. package/deps/jq/sig/v1.7.1/jq-linux-armel.asc +16 -0
  244. package/deps/jq/sig/v1.7.1/jq-linux-armhf.asc +16 -0
  245. package/deps/jq/sig/v1.7.1/jq-linux-i386.asc +16 -0
  246. package/deps/jq/sig/v1.7.1/jq-linux-mips.asc +16 -0
  247. package/deps/jq/sig/v1.7.1/jq-linux-mips64.asc +16 -0
  248. package/deps/jq/sig/v1.7.1/jq-linux-mips64el.asc +16 -0
  249. package/deps/jq/sig/v1.7.1/jq-linux-mips64r6.asc +16 -0
  250. package/deps/jq/sig/v1.7.1/jq-linux-mips64r6el.asc +16 -0
  251. package/deps/jq/sig/v1.7.1/jq-linux-mipsel.asc +16 -0
  252. package/deps/jq/sig/v1.7.1/jq-linux-mipsr6.asc +16 -0
  253. package/deps/jq/sig/v1.7.1/jq-linux-mipsr6el.asc +16 -0
  254. package/deps/jq/sig/v1.7.1/jq-linux-powerpc.asc +16 -0
  255. package/deps/jq/sig/v1.7.1/jq-linux-ppc64el.asc +16 -0
  256. package/deps/jq/sig/v1.7.1/jq-linux-riscv64.asc +16 -0
  257. package/deps/jq/sig/v1.7.1/jq-linux-s390x.asc +16 -0
  258. package/deps/jq/sig/v1.7.1/jq-linux64.asc +16 -0
  259. package/deps/jq/sig/v1.7.1/jq-macos-amd64.asc +16 -0
  260. package/deps/jq/sig/v1.7.1/jq-macos-arm64.asc +16 -0
  261. package/deps/jq/sig/v1.7.1/jq-osx-amd64.asc +16 -0
  262. package/deps/jq/sig/v1.7.1/jq-win64.exe.asc +16 -0
  263. package/deps/jq/sig/v1.7.1/jq-windows-amd64.exe.asc +16 -0
  264. package/deps/jq/sig/v1.7.1/jq-windows-i386.exe.asc +16 -0
  265. package/deps/jq/sig/v1.7.1/sha256sum.txt +26 -0
  266. package/deps/jq/sig/v1.7rc1/jq-1.7rc1.tar.gz.asc +16 -0
  267. package/deps/jq/sig/v1.7rc1/jq-1.7rc1.zip.asc +16 -0
  268. package/deps/jq/sig/v1.7rc1/jq-linux-amd64.asc +16 -0
  269. package/deps/jq/sig/v1.7rc1/jq-linux-arm64.asc +16 -0
  270. package/deps/jq/sig/v1.7rc1/jq-linux-armel.asc +16 -0
  271. package/deps/jq/sig/v1.7rc1/jq-linux-armhf.asc +16 -0
  272. package/deps/jq/sig/v1.7rc1/jq-linux-i386.asc +16 -0
  273. package/deps/jq/sig/v1.7rc1/jq-linux-mips.asc +16 -0
  274. package/deps/jq/sig/v1.7rc1/jq-linux-mips64.asc +16 -0
  275. package/deps/jq/sig/v1.7rc1/jq-linux-mips64el.asc +16 -0
  276. package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6.asc +16 -0
  277. package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6el.asc +16 -0
  278. package/deps/jq/sig/v1.7rc1/jq-linux-mipsel.asc +16 -0
  279. package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6.asc +16 -0
  280. package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6el.asc +16 -0
  281. package/deps/jq/sig/v1.7rc1/jq-linux-powerpc.asc +16 -0
  282. package/deps/jq/sig/v1.7rc1/jq-linux-ppc64el.asc +16 -0
  283. package/deps/jq/sig/v1.7rc1/jq-linux-riscv64.asc +16 -0
  284. package/deps/jq/sig/v1.7rc1/jq-linux-s390x.asc +16 -0
  285. package/deps/jq/sig/v1.7rc1/jq-macos-amd64.asc +16 -0
  286. package/deps/jq/sig/v1.7rc1/jq-macos-arm64.asc +16 -0
  287. package/deps/jq/sig/v1.7rc1/jq-windows-amd64.exe.asc +16 -0
  288. package/deps/jq/sig/v1.7rc1/jq-windows-i386.exe.asc +16 -0
  289. package/deps/jq/sig/v1.7rc1/sha256sum.txt +23 -0
  290. package/deps/jq/sig/v1.7rc2/jq-1.7rc2.tar.gz.asc +16 -0
  291. package/deps/jq/sig/v1.7rc2/jq-1.7rc2.zip.asc +16 -0
  292. package/deps/jq/sig/v1.7rc2/jq-linux-amd64.asc +16 -0
  293. package/deps/jq/sig/v1.7rc2/jq-linux-arm64.asc +16 -0
  294. package/deps/jq/sig/v1.7rc2/jq-linux-armel.asc +16 -0
  295. package/deps/jq/sig/v1.7rc2/jq-linux-armhf.asc +16 -0
  296. package/deps/jq/sig/v1.7rc2/jq-linux-i386.asc +16 -0
  297. package/deps/jq/sig/v1.7rc2/jq-linux-mips.asc +16 -0
  298. package/deps/jq/sig/v1.7rc2/jq-linux-mips64.asc +16 -0
  299. package/deps/jq/sig/v1.7rc2/jq-linux-mips64el.asc +16 -0
  300. package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6.asc +16 -0
  301. package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6el.asc +16 -0
  302. package/deps/jq/sig/v1.7rc2/jq-linux-mipsel.asc +16 -0
  303. package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6.asc +16 -0
  304. package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6el.asc +16 -0
  305. package/deps/jq/sig/v1.7rc2/jq-linux-powerpc.asc +16 -0
  306. package/deps/jq/sig/v1.7rc2/jq-linux-ppc64el.asc +16 -0
  307. package/deps/jq/sig/v1.7rc2/jq-linux-riscv64.asc +16 -0
  308. package/deps/jq/sig/v1.7rc2/jq-linux-s390x.asc +16 -0
  309. package/deps/jq/sig/v1.7rc2/jq-macos-amd64.asc +16 -0
  310. package/deps/jq/sig/v1.7rc2/jq-macos-arm64.asc +16 -0
  311. package/deps/jq/sig/v1.7rc2/jq-windows-amd64.exe.asc +16 -0
  312. package/deps/jq/sig/v1.7rc2/jq-windows-i386.exe.asc +16 -0
  313. package/deps/jq/sig/v1.7rc2/sha256sum.txt +23 -0
  314. package/deps/jq/src/builtin.c +537 -343
  315. package/deps/jq/src/builtin.h +18 -0
  316. package/deps/jq/src/builtin.jq +116 -143
  317. package/deps/jq/src/bytecode.h +8 -4
  318. package/deps/jq/src/compile.c +157 -143
  319. package/deps/jq/src/compile.h +3 -4
  320. package/deps/jq/src/decNumber/ICU-license.html +45 -0
  321. package/deps/jq/src/decNumber/decBasic.c +3908 -0
  322. package/deps/jq/src/decNumber/decCommon.c +1835 -0
  323. package/deps/jq/src/decNumber/decContext.c +437 -0
  324. package/deps/jq/src/decNumber/decContext.h +254 -0
  325. package/deps/jq/src/decNumber/decDPD.h +1185 -0
  326. package/deps/jq/src/decNumber/decDouble.c +140 -0
  327. package/deps/jq/src/decNumber/decDouble.h +155 -0
  328. package/deps/jq/src/decNumber/decNumber.c +8143 -0
  329. package/deps/jq/src/decNumber/decNumber.h +182 -0
  330. package/deps/jq/src/decNumber/decNumberLocal.h +757 -0
  331. package/deps/jq/src/decNumber/decPacked.c +220 -0
  332. package/deps/jq/src/decNumber/decPacked.h +52 -0
  333. package/deps/jq/src/decNumber/decQuad.c +135 -0
  334. package/deps/jq/src/decNumber/decQuad.h +177 -0
  335. package/deps/jq/src/decNumber/decSingle.c +71 -0
  336. package/deps/jq/src/decNumber/decSingle.h +86 -0
  337. package/deps/jq/src/decNumber/decimal128.c +553 -0
  338. package/deps/jq/src/decNumber/decimal128.h +81 -0
  339. package/deps/jq/src/decNumber/decimal32.c +476 -0
  340. package/deps/jq/src/decNumber/decimal32.h +81 -0
  341. package/deps/jq/src/decNumber/decimal64.c +839 -0
  342. package/deps/jq/src/decNumber/decimal64.h +83 -0
  343. package/deps/jq/src/decNumber/decnumber.pdf +0 -0
  344. package/deps/jq/src/decNumber/example1.c +38 -0
  345. package/deps/jq/src/decNumber/example2.c +52 -0
  346. package/deps/jq/src/decNumber/example3.c +64 -0
  347. package/deps/jq/src/decNumber/example4.c +61 -0
  348. package/deps/jq/src/decNumber/example5.c +36 -0
  349. package/deps/jq/src/decNumber/example6.c +61 -0
  350. package/deps/jq/src/decNumber/example7.c +35 -0
  351. package/deps/jq/src/decNumber/example8.c +39 -0
  352. package/deps/jq/src/decNumber/readme.txt +81 -0
  353. package/deps/jq/src/exec_stack.h +5 -3
  354. package/deps/jq/src/execute.c +126 -44
  355. package/deps/jq/src/inject_errors.c +0 -2
  356. package/deps/jq/src/jq.h +10 -1
  357. package/deps/jq/src/jq_test.c +222 -11
  358. package/deps/jq/src/jv.c +807 -176
  359. package/deps/jq/src/jv.h +22 -1
  360. package/deps/jq/src/jv_alloc.c +33 -26
  361. package/deps/jq/src/jv_alloc.h +0 -11
  362. package/deps/jq/src/jv_aux.c +153 -67
  363. package/deps/jq/src/jv_dtoa.c +12 -2
  364. package/deps/jq/src/jv_dtoa_tsd.c +51 -0
  365. package/deps/jq/src/jv_dtoa_tsd.h +4 -0
  366. package/deps/jq/src/jv_parse.c +70 -15
  367. package/deps/jq/src/jv_print.c +56 -60
  368. package/deps/jq/src/jv_private.h +7 -0
  369. package/deps/jq/src/jv_thread.h +76 -0
  370. package/deps/jq/src/jv_unicode.c +18 -0
  371. package/deps/jq/src/jv_unicode.h +2 -0
  372. package/deps/jq/src/lexer.c +782 -543
  373. package/deps/jq/src/lexer.h +438 -64
  374. package/deps/jq/src/lexer.l +10 -3
  375. package/deps/jq/src/libm.h +16 -6
  376. package/deps/jq/src/linker.c +97 -40
  377. package/deps/jq/src/locfile.c +2 -1
  378. package/deps/jq/src/main.c +384 -336
  379. package/deps/jq/src/opcode_list.h +5 -2
  380. package/deps/jq/src/parser.c +2260 -1898
  381. package/deps/jq/src/parser.h +115 -98
  382. package/deps/jq/src/parser.y +124 -89
  383. package/deps/jq/src/util.c +854 -55
  384. package/deps/jq/src/util.h +6 -4
  385. package/deps/jq/tests/jq.test +762 -26
  386. package/deps/jq/tests/jq_fuzz_compile.c +27 -0
  387. package/deps/jq/tests/jq_fuzz_execute.cpp +42 -0
  388. package/deps/jq/tests/jq_fuzz_fixed.cpp +297 -0
  389. package/deps/jq/tests/jq_fuzz_load_file.c +28 -0
  390. package/deps/jq/tests/jq_fuzz_parse.c +21 -0
  391. package/deps/jq/tests/jq_fuzz_parse_extended.c +36 -0
  392. package/deps/jq/tests/jq_fuzz_parse_stream.c +21 -0
  393. package/deps/jq/tests/local.supp +14 -0
  394. package/deps/jq/tests/man.test +979 -0
  395. package/deps/jq/tests/manonig.test +76 -0
  396. package/deps/jq/tests/manonigtest +5 -0
  397. package/deps/jq/tests/mantest +1 -2
  398. package/deps/jq/tests/modules/home2/.jq/g.jq +1 -0
  399. package/deps/jq/tests/modules/shadow1.jq +2 -0
  400. package/deps/jq/tests/modules/shadow2.jq +1 -0
  401. package/deps/jq/tests/modules/test_bind_order0.jq +1 -0
  402. package/deps/jq/tests/modules/test_bind_order1.jq +1 -1
  403. package/deps/jq/tests/modules/test_bind_order2.jq +0 -1
  404. package/deps/jq/tests/no-main-program.jq +1 -0
  405. package/deps/jq/tests/onig.test +77 -2
  406. package/deps/jq/tests/setup +7 -2
  407. package/deps/jq/tests/shtest +478 -59
  408. package/deps/jq/tests/uri.test +38 -0
  409. package/deps/jq/tests/uritest +5 -0
  410. package/deps/jq/tests/yes-main-program.jq +2 -0
  411. package/lib/index.js +3 -0
  412. package/lib/jq.js +15 -1
  413. package/lib/templateAsync.js +137 -0
  414. package/package.json +7 -7
  415. package/src/binding.cc +623 -146
  416. package/src/binding.h +3 -4
  417. package/test/santiy-async.test.js +171 -0
  418. package/test/santiy.test.js +2 -2
  419. package/test/template-async.test.js +182 -0
  420. package/test/template.test.js +3 -3
  421. package/deps/jq/.travis.yml +0 -202
  422. package/deps/jq/NEWS +0 -89
  423. package/deps/jq/appveyor.yml +0 -53
  424. package/deps/jq/docs/Gemfile +0 -7
  425. package/deps/jq/docs/Gemfile.lock +0 -63
  426. package/deps/jq/docs/Rakefile +0 -24
  427. package/deps/jq/docs/Rakefile.manual +0 -49
  428. package/deps/jq/docs/Rakefile.website +0 -76
  429. package/deps/jq/docs/content/1.tutorial/default.yml +0 -327
  430. package/deps/jq/docs/content/2.download/default.yml +0 -193
  431. package/deps/jq/docs/content/index/index.yml +0 -73
  432. package/deps/jq/docs/public/css/base.scss +0 -181
  433. package/deps/jq/docs/public/jq.png +0 -0
  434. package/deps/jq/docs/site.yml +0 -9
  435. package/deps/jq/docs/templates/default.liquid +0 -34
  436. package/deps/jq/docs/templates/index.liquid +0 -73
  437. package/deps/jq/docs/templates/manual.liquid +0 -99
  438. package/deps/jq/docs/templates/shared/_footer.liquid +0 -10
  439. package/deps/jq/docs/templates/shared/_head.liquid +0 -17
  440. package/deps/jq/docs/templates/shared/_navbar.liquid +0 -27
  441. package/deps/jq/modules/oniguruma/README.ja +0 -195
  442. package/deps/jq/modules/oniguruma/cmake/dist.cmake +0 -321
  443. package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +0 -31
  444. package/deps/jq/modules/oniguruma/dist.info +0 -10
  445. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +0 -2250
  446. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +0 -203
  447. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +0 -113
  448. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +0 -1225
  449. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +0 -24742
  450. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +0 -4846
  451. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +0 -2571
  452. /package/deps/jq/sig/{jq-release.key → jq-release-old.key} +0 -0
  453. /package/deps/jq/tests/modules/{.jq → home1/.jq} +0 -0
@@ -1,327 +0,0 @@
1
- headline: Tutorial
2
- body:
3
- - text: |
4
-
5
- GitHub has a JSON API, so let's play with that. This URL gets us the last
6
- 5 commits from the jq repo.
7
-
8
- - command: "curl 'https://api.github.com/repos/stedolan/jq/commits?per_page=5'"
9
- result: |
10
- [
11
- {
12
- "sha": "d25341478381063d1c76e81b3a52e0592a7c997f",
13
- "commit": {
14
- "author": {
15
- "name": "Stephen Dolan",
16
- "email": "mu@netsoc.tcd.ie",
17
- "date": "2013-06-22T16:30:59Z"
18
- },
19
- "committer": {
20
- "name": "Stephen Dolan",
21
- "email": "mu@netsoc.tcd.ie",
22
- "date": "2013-06-22T16:30:59Z"
23
- },
24
- "message": "Merge pull request #162 from stedolan/utf8-fixes\n\nUtf8 fixes. Closes #161",
25
- "tree": {
26
- "sha": "6ab697a8dfb5a96e124666bf6d6213822599fb40",
27
- "url": "https://api.github.com/repos/stedolan/jq/git/trees/6ab697a8dfb5a96e124666bf6d6213822599fb40"
28
- },
29
- "url": "https://api.github.com/repos/stedolan/jq/git/commits/d25341478381063d1c76e81b3a52e0592a7c997f",
30
- "comment_count": 0
31
- },
32
- "url": "https://api.github.com/repos/stedolan/jq/commits/d25341478381063d1c76e81b3a52e0592a7c997f",
33
- "html_url": "https://github.com/stedolan/jq/commit/d25341478381063d1c76e81b3a52e0592a7c997f",
34
- "comments_url": "https://api.github.com/repos/stedolan/jq/commits/d25341478381063d1c76e81b3a52e0592a7c997f/comments",
35
- "author": {
36
- "login": "stedolan",
37
- ...
38
-
39
- - text: |
40
-
41
- GitHub returns nicely formatted JSON. For servers that don't, it can be
42
- helpful to pipe the response through jq to pretty-print it. The simplest
43
- jq program is the expression `.`, which takes the input and produces it
44
- unchanged as output.
45
-
46
- - command: "curl 'https://api.github.com/repos/stedolan/jq/commits?per_page=5' | jq '.'"
47
- result: |
48
- [
49
- {
50
- "sha": "d25341478381063d1c76e81b3a52e0592a7c997f",
51
- "commit": {
52
- "author": {
53
- "name": "Stephen Dolan",
54
- "email": "mu@netsoc.tcd.ie",
55
- "date": "2013-06-22T16:30:59Z"
56
- },
57
- "committer": {
58
- "name": "Stephen Dolan",
59
- "email": "mu@netsoc.tcd.ie",
60
- "date": "2013-06-22T16:30:59Z"
61
- },
62
- "message": "Merge pull request #162 from stedolan/utf8-fixes\n\nUtf8 fixes. Closes #161",
63
- "tree": {
64
- "sha": "6ab697a8dfb5a96e124666bf6d6213822599fb40",
65
- "url": "https://api.github.com/repos/stedolan/jq/git/trees/6ab697a8dfb5a96e124666bf6d6213822599fb40"
66
- },
67
- "url": "https://api.github.com/repos/stedolan/jq/git/commits/d25341478381063d1c76e81b3a52e0592a7c997f",
68
- "comment_count": 0
69
- },
70
- "url": "https://api.github.com/repos/stedolan/jq/commits/d25341478381063d1c76e81b3a52e0592a7c997f",
71
- "html_url": "https://github.com/stedolan/jq/commit/d25341478381063d1c76e81b3a52e0592a7c997f",
72
- "comments_url": "https://api.github.com/repos/stedolan/jq/commits/d25341478381063d1c76e81b3a52e0592a7c997f/comments",
73
- "author": {
74
- "login": "stedolan",
75
- ...
76
-
77
- - text: |
78
-
79
- We can use jq to extract just the first commit.
80
-
81
- - command: "curl 'https://api.github.com/repos/stedolan/jq/commits?per_page=5' | jq '.[0]'"
82
- result: |
83
- {
84
- "sha": "d25341478381063d1c76e81b3a52e0592a7c997f",
85
- "commit": {
86
- "author": {
87
- "name": "Stephen Dolan",
88
- "email": "mu@netsoc.tcd.ie",
89
- "date": "2013-06-22T16:30:59Z"
90
- },
91
- "committer": {
92
- "name": "Stephen Dolan",
93
- "email": "mu@netsoc.tcd.ie",
94
- "date": "2013-06-22T16:30:59Z"
95
- },
96
- "message": "Merge pull request #162 from stedolan/utf8-fixes\n\nUtf8 fixes. Closes #161",
97
- "tree": {
98
- "sha": "6ab697a8dfb5a96e124666bf6d6213822599fb40",
99
- "url": "https://api.github.com/repos/stedolan/jq/git/trees/6ab697a8dfb5a96e124666bf6d6213822599fb40"
100
- },
101
- "url": "https://api.github.com/repos/stedolan/jq/git/commits/d25341478381063d1c76e81b3a52e0592a7c997f",
102
- "comment_count": 0
103
- },
104
- "url": "https://api.github.com/repos/stedolan/jq/commits/d25341478381063d1c76e81b3a52e0592a7c997f",
105
- "html_url": "https://github.com/stedolan/jq/commit/d25341478381063d1c76e81b3a52e0592a7c997f",
106
- "comments_url": "https://api.github.com/repos/stedolan/jq/commits/d25341478381063d1c76e81b3a52e0592a7c997f/comments",
107
- "author": {
108
- "login": "stedolan",
109
- "id": 79765,
110
- "avatar_url": "https://avatars.githubusercontent.com/u/79765?v=3",
111
- "gravatar_id": "",
112
- "url": "https://api.github.com/users/stedolan",
113
- "html_url": "https://github.com/stedolan",
114
- "followers_url": "https://api.github.com/users/stedolan/followers",
115
- "following_url": "https://api.github.com/users/stedolan/following{/other_user}",
116
- "gists_url": "https://api.github.com/users/stedolan/gists{/gist_id}",
117
- "starred_url": "https://api.github.com/users/stedolan/starred{/owner}{/repo}",
118
- "subscriptions_url": "https://api.github.com/users/stedolan/subscriptions",
119
- "organizations_url": "https://api.github.com/users/stedolan/orgs",
120
- "repos_url": "https://api.github.com/users/stedolan/repos",
121
- "events_url": "https://api.github.com/users/stedolan/events{/privacy}",
122
- "received_events_url": "https://api.github.com/users/stedolan/received_events",
123
- "type": "User",
124
- "site_admin": false
125
- },
126
- "committer": {
127
- "login": "stedolan",
128
- "id": 79765,
129
- "avatar_url": "https://avatars.githubusercontent.com/u/79765?v=3",
130
- "gravatar_id": "",
131
- "url": "https://api.github.com/users/stedolan",
132
- "html_url": "https://github.com/stedolan",
133
- "followers_url": "https://api.github.com/users/stedolan/followers",
134
- "following_url": "https://api.github.com/users/stedolan/following{/other_user}",
135
- "gists_url": "https://api.github.com/users/stedolan/gists{/gist_id}",
136
- "starred_url": "https://api.github.com/users/stedolan/starred{/owner}{/repo}",
137
- "subscriptions_url": "https://api.github.com/users/stedolan/subscriptions",
138
- "organizations_url": "https://api.github.com/users/stedolan/orgs",
139
- "repos_url": "https://api.github.com/users/stedolan/repos",
140
- "events_url": "https://api.github.com/users/stedolan/events{/privacy}",
141
- "received_events_url": "https://api.github.com/users/stedolan/received_events",
142
- "type": "User",
143
- "site_admin": false
144
- },
145
- "parents": [
146
- {
147
- "sha": "54b9c9bdb225af5d886466d72f47eafc51acb4f7",
148
- "url": "https://api.github.com/repos/stedolan/jq/commits/54b9c9bdb225af5d886466d72f47eafc51acb4f7",
149
- "html_url": "https://github.com/stedolan/jq/commit/54b9c9bdb225af5d886466d72f47eafc51acb4f7"
150
- },
151
- {
152
- "sha": "8b1b503609c161fea4b003a7179b3fbb2dd4345a",
153
- "url": "https://api.github.com/repos/stedolan/jq/commits/8b1b503609c161fea4b003a7179b3fbb2dd4345a",
154
- "html_url": "https://github.com/stedolan/jq/commit/8b1b503609c161fea4b003a7179b3fbb2dd4345a"
155
- }
156
- ]
157
- }
158
-
159
- - text: |
160
-
161
- For the rest of the examples, I'll leave out the `curl` command - it's not
162
- going to change.
163
-
164
- There's a lot of info we don't care about there, so we'll restrict it down
165
- to the most interesting fields.
166
-
167
- - command: "jq '.[0] | {message: .commit.message, name: .commit.committer.name}'"
168
- result: |
169
- {
170
- "message": "Merge pull request #162 from stedolan/utf8-fixes\n\nUtf8 fixes. Closes #161",
171
- "name": "Stephen Dolan"
172
- }
173
-
174
- - text: |
175
-
176
- The `|` operator in jq feeds the output of one filter (`.[0]` which gets
177
- the first element of the array in the response) into the input of another
178
- (`{...}` which builds an object out of those fields). You can access
179
- nested attributes, such as `.commit.message`.
180
-
181
- Now let's get the rest of the commits.
182
-
183
- - command: "jq '.[] | {message: .commit.message, name: .commit.committer.name}'"
184
- result: |
185
- {
186
- "message": "Merge pull request #162 from stedolan/utf8-fixes\n\nUtf8 fixes. Closes #161",
187
- "name": "Stephen Dolan"
188
- }
189
- {
190
- "message": "Reject all overlong UTF8 sequences.",
191
- "name": "Stephen Dolan"
192
- }
193
- {
194
- "message": "Fix various UTF8 parsing bugs.\n\nIn particular, parse bad UTF8 by replacing the broken bits with U+FFFD\nand resychronise correctly after broken sequences.",
195
- "name": "Stephen Dolan"
196
- }
197
- {
198
- "message": "Fix example in manual for `floor`. See #155.",
199
- "name": "Stephen Dolan"
200
- }
201
- {
202
- "message": "Document floor",
203
- "name": "Nicolas Williams"
204
- }
205
-
206
- - text: |
207
-
208
- `.[]` returns each element of the array returned in the response, one at a
209
- time, which are all fed into
210
- `{message: .commit.message, name: .commit.committer.name}`.
211
-
212
- Data in jq is represented as streams of JSON values - every jq
213
- expression runs for each value in its input stream, and can
214
- produce any number of values to its output stream.
215
-
216
- Streams are serialised by just separating JSON values with
217
- whitespace. This is a `cat`-friendly format - you can just join
218
- two JSON streams together and get a valid JSON stream.
219
-
220
- If you want to get the output as a single array, you can tell jq to
221
- "collect" all of the answers by wrapping the filter in square
222
- brackets:
223
-
224
- - command: "jq '[.[] | {message: .commit.message, name: .commit.committer.name}]'"
225
- result: |
226
- [
227
- {
228
- "message": "Merge pull request #163 from stedolan/utf8-fixes\n\nUtf8 fixes. Closes #161",
229
- "name": "Stephen Dolan"
230
- },
231
- {
232
- "message": "Reject all overlong UTF8 sequences.",
233
- "name": "Stephen Dolan"
234
- },
235
- {
236
- "message": "Fix various UTF8 parsing bugs.\n\nIn particular, parse bad UTF8 by replacing the broken bits with U+FFFD\nand resychronise correctly after broken sequences.",
237
- "name": "Stephen Dolan"
238
- },
239
- {
240
- "message": "Fix example in manual for `floor`. See #155.",
241
- "name": "Stephen Dolan"
242
- },
243
- {
244
- "message": "Document floor",
245
- "name": "Nicolas Williams"
246
- }
247
- ]
248
-
249
- - text: |
250
-
251
- - - -
252
-
253
- Next, let's try getting the URLs of the parent commits out of the
254
- API results as well. In each commit, the GitHub API includes information
255
- about "parent" commits. There can be one or many.
256
-
257
- "parents": [
258
- {
259
- "sha": "54b9c9bdb225af5d886466d72f47eafc51acb4f7",
260
- "url": "https://api.github.com/repos/stedolan/jq/commits/54b9c9bdb225af5d886466d72f47eafc51acb4f7",
261
- "html_url": "https://github.com/stedolan/jq/commit/54b9c9bdb225af5d886466d72f47eafc51acb4f7"
262
- },
263
- {
264
- "sha": "8b1b503609c161fea4b003a7179b3fbb2dd4345a",
265
- "url": "https://api.github.com/repos/stedolan/jq/commits/8b1b503609c161fea4b003a7179b3fbb2dd4345a",
266
- "html_url": "https://github.com/stedolan/jq/commit/8b1b503609c161fea4b003a7179b3fbb2dd4345a"
267
- }
268
- ]
269
-
270
- We want to pull out all of the "html_url" fields inside that array of parent
271
- commits and make a simple list of strings to go along with the
272
- "message" and "author" fields we already have.
273
-
274
- - command: "jq '[.[] | {message: .commit.message, name: .commit.committer.name, parents: [.parents[].html_url]}]'"
275
- result: |
276
- [
277
- {
278
- "message": "Merge pull request #162 from stedolan/utf8-fixes\n\nUtf8 fixes. Closes #161",
279
- "name": "Stephen Dolan",
280
- "parents": [
281
- "https://github.com/stedolan/jq/commit/54b9c9bdb225af5d886466d72f47eafc51acb4f7",
282
- "https://github.com/stedolan/jq/commit/8b1b503609c161fea4b003a7179b3fbb2dd4345a"
283
- ]
284
- },
285
- {
286
- "message": "Reject all overlong UTF8 sequences.",
287
- "name": "Stephen Dolan",
288
- "parents": [
289
- "https://github.com/stedolan/jq/commit/ff48bd6ec538b01d1057be8e93b94eef6914e9ef"
290
- ]
291
- },
292
- {
293
- "message": "Fix various UTF8 parsing bugs.\n\nIn particular, parse bad UTF8 by replacing the broken bits with U+FFFD\nand resychronise correctly after broken sequences.",
294
- "name": "Stephen Dolan",
295
- "parents": [
296
- "https://github.com/stedolan/jq/commit/54b9c9bdb225af5d886466d72f47eafc51acb4f7"
297
- ]
298
- },
299
- {
300
- "message": "Fix example in manual for `floor`. See #155.",
301
- "name": "Stephen Dolan",
302
- "parents": [
303
- "https://github.com/stedolan/jq/commit/3dcdc582ea993afea3f5503a78a77675967ecdfa"
304
- ]
305
- },
306
- {
307
- "message": "Document floor",
308
- "name": "Nicolas Williams",
309
- "parents": [
310
- "https://github.com/stedolan/jq/commit/7c4171d414f647ab08bcd20c76a4d8ed68d9c602"
311
- ]
312
- }
313
- ]
314
-
315
- - text: |
316
-
317
- Here we're making an object as before, but this time the `parents`
318
- field is being set to `[.parents[].html_url]`, which collects
319
- all of the parent commit URLs defined in the parents object.
320
-
321
- - text: |
322
-
323
- - - -
324
-
325
- Here endeth the tutorial! There's lots more to play with. Go
326
- read [the manual](../manual/) if you're interested, and [download
327
- jq](../download/) if you haven't already.
@@ -1,193 +0,0 @@
1
- headline: Download jq
2
- body:
3
-
4
- - text: |
5
-
6
- jq is written in C and has no runtime dependencies, so it should be
7
- possible to build it for nearly any platform. Prebuilt binaries are
8
- available for Linux, OS X and Windows.
9
-
10
- The binaries should just run, but on OS X and Linux you may need
11
- to make them executable first using `chmod +x jq`.
12
-
13
- jq is licensed under the MIT license. For all of the gory
14
- details, read the file `COPYING` in the source distribution.
15
-
16
-
17
- ### Linux
18
-
19
- * jq 1.5 is in the official [Debian](https://packages.debian.org/jq) and
20
- [Ubuntu](http://packages.ubuntu.com/jq) repositories. Install using
21
- `sudo apt-get install jq`.
22
-
23
- * jq 1.5 is in the official
24
- [Fedora](http://pkgs.fedoraproject.org/cgit/jq.git/) repository.
25
- Install using `sudo dnf install jq`.
26
-
27
- * jq 1.4 is in the official [openSUSE](https://software.opensuse.org/package/jq)
28
- repository. Install using `sudo zypper install jq`.
29
-
30
- * jq 1.5 is in the official
31
- [Arch](https://www.archlinux.org/packages/?sort=&q=jq&maintainer=&flagged=)
32
- repository. Install using `sudo pacman -Sy jq`.
33
-
34
- * jq 1.6 binaries for
35
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64)
36
- or
37
- [32-bit](https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux32).
38
-
39
- * jq 1.5 binaries for
40
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64)
41
- or
42
- [32-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux32).
43
-
44
- * jq 1.4 binaries for
45
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-linux-x86_64)
46
- or
47
- [32-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-linux-x86).
48
-
49
- * jq 1.3 binaries for
50
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-linux-x86_64)
51
- or
52
- [32-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-linux-x86).
53
-
54
- ### OS X
55
-
56
- * Use [Homebrew](http://brew.sh/) to install jq 1.5 with
57
- `brew install jq`.
58
-
59
- * jq 1.6 binary for
60
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64).
61
-
62
- * jq 1.5 binary for
63
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-osx-amd64).
64
-
65
- * jq 1.4 binaries for
66
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-osx-x86_64)
67
- or
68
- [32-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-osx-x86).
69
-
70
- * jq 1.3 binaries for
71
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-osx-x86_64)
72
- or
73
- [32-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-osx-x86).
74
-
75
- ### FreeBSD
76
-
77
- * `pkg install jq` as root installs a pre-built
78
- [binary package](https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pkgng-intro.html).
79
-
80
- * `make -C /usr/ports/textproc/jq install clean` as root installs the
81
- [jq](https://www.freshports.org/textproc/jq/)
82
- [port](https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html)
83
- from source.
84
-
85
- ### Solaris
86
-
87
- * `pkgutil -i jq` in [OpenCSW](https://www.opencsw.org/p/jq) for Solaris
88
- 10+, Sparc and x86.
89
-
90
- * jq 1.4 binaries for Solaris 11
91
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-solaris11-64)
92
- or
93
- [32-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-solaris11-32).
94
-
95
- ### Windows
96
-
97
- * Use [Chocolatey NuGet](https://chocolatey.org/) to install jq 1.5 with
98
- `chocolatey install jq`.
99
-
100
- * jq 1.6 executables for
101
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe)
102
- or
103
- [32-bit](https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win32.exe).
104
-
105
- * jq 1.5 executables for
106
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win64.exe)
107
- or
108
- [32-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win32.exe).
109
-
110
- * jq 1.4 executables for
111
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-win64.exe)
112
- or
113
- [32-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-win32.exe).
114
-
115
- * jq 1.3 executables for
116
- [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-win64.exe)
117
- or
118
- [32-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-win32.exe).
119
-
120
- ### Checksums and signatures
121
-
122
- SHA-256 checksums are provided for all release and pre-release binaries.
123
- They can be found under
124
- [sig/v1.x/sha256sum.txt](https://github.com/stedolan/jq/tree/master/sig).
125
- The checksums for jq 1.6 are in
126
- [sig/v1.6/sha256sum.txt](https://raw.githubusercontent.com/stedolan/jq/master/sig/v1.6/sha256sum.txt).
127
- The checksums for jq 1.5 are in
128
- [sig/v1.5/sha256sum.txt](https://raw.githubusercontent.com/stedolan/jq/master/sig/v1.5/sha256sum.txt).
129
-
130
- Additionally, all binaries are signed by the
131
- [jq Package Signing Key](https://raw.githubusercontent.com/stedolan/jq/master/sig/jq-release.key).
132
- The signatures can be found under
133
- [sig/v1.x/\*.asc](https://github.com/stedolan/jq/tree/master/sig).
134
- The signatures for jq 1.6 are in
135
- [sig/v1.5/\*.asc](https://github.com/stedolan/jq/tree/master/sig/v1.6).
136
- The signatures for jq 1.5 are in
137
- [sig/v1.5/\*.asc](https://github.com/stedolan/jq/tree/master/sig/v1.5).
138
- You can use [GnuPG](https://gnupg.org/) to verify a signature by downloading
139
- the signature and running `gpg --verify signature.asc`.
140
-
141
- ### From source on Linux, OS X, Cygwin, and other POSIX-like operating systems
142
-
143
- * [Source tarball for jq 1.6](https://github.com/stedolan/jq/releases/download/jq-1.6/jq-1.6.tar.gz)
144
- * [Source tarball for jq 1.5](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz)
145
-
146
- You can build it using the usual `./configure && make && sudo
147
- make install` rigmarole.
148
-
149
- If you're interested in using the lastest development version, try:
150
-
151
- git clone https://github.com/stedolan/jq.git
152
- cd jq
153
- autoreconf -i
154
- ./configure --disable-maintainer-mode
155
- make
156
- sudo make install
157
-
158
- To build it from a git clone, you'll need to install a few
159
- packages first:
160
-
161
- * [GCC](https://gcc.gnu.org)
162
- * [Make](https://www.gnu.org/software/make/)
163
- * [Autotools](https://www.gnu.org/software/automake/)
164
-
165
- For Linux systems, these will all be in your system's package
166
- manager, and if you do development on the machine they're most
167
- likely already installed.
168
-
169
- On OS X, these are all included in Apple's command line tools, which can
170
- be installed from [Xcode](https://developer.apple.com/xcode/). However,
171
- you may find that you need a newer version of Bison than the one provided
172
- by Apple. This can be found in [Homebrew](http://brew.sh) or
173
- [MacPorts](https://macports.org/).
174
-
175
- The `--disable-maintainer-mode` flag says to use the pre-generated lexer
176
- and parser that come with the code. To compile the lexer and parser also
177
- from source, leave out this flag. You will need to install
178
- [Flex](http://flex.sourceforge.net/) and
179
- [Bison](https://www.gnu.org/software/bison/).
180
-
181
- #### Building the documentation
182
-
183
- jq's documentation is compiled into static HTML using
184
- [Bonsai](http://www.tinytree.info). To view the documentation
185
- locally, run `rake serve` (or `bundle exec rake serve`) from the
186
- docs/ subdirectory. To build the docs just `rake build` from the
187
- docs subdirectory. You'll need a few Ruby dependencies, which can
188
- be installed by following the instructions in `docs/README.md`.
189
-
190
- The man page is built by `make jq.1`, or just `make`, also from
191
- the YAML docs, and you'll still need the Ruby dependencies to
192
- build the manpage.
193
-
@@ -1,73 +0,0 @@
1
- headline: jq
2
-
3
- blurb: |
4
-
5
- jq is a lightweight and flexible command-line JSON processor.
6
-
7
- body1: |
8
-
9
- jq is like `sed` for JSON data - you can use it to slice and filter
10
- and map and transform structured data with the same ease that `sed`,
11
- `awk`, `grep` and friends let you play with text.
12
-
13
- body2: |
14
-
15
- jq is written in portable C, and it has zero runtime
16
- dependencies. You can download a single binary, `scp` it to a far away
17
- machine of the same type, and expect it to work.
18
-
19
- body3: |
20
-
21
- jq can mangle the data format that you have into the one that you
22
- want with very little effort, and the program to do so is often
23
- shorter and simpler than you'd expect.
24
-
25
- tail: |
26
-
27
- Go read the [tutorial](/jq/tutorial/) for more, or the [manual](/jq/manual/)
28
- for *way* more.
29
-
30
- Ask questions on [stackoverflow](https://stackoverflow.com/) using the [jq
31
- tag](https://stackoverflow.com/questions/tagged/jq), or on the
32
- [#jq](http://irc.lc/freenode/%23jq/) channel on
33
- [Freenode](https://webchat.freenode.net/).
34
-
35
- news:
36
- - date: 1 November 2018
37
- body: |
38
- jq 1.6 released. See installation options on the [download](/jq/download/)
39
- page, and the [release notes](https://github.com/stedolan/jq/releases/tag/jq-1.6)
40
- for details.
41
-
42
- - date: 15 August 2015
43
- body: |
44
-
45
- jq 1.5 released, including new datetime, math, and regexp functions,
46
- try/catch syntax, array and object destructuring, a streaming parser,
47
- and a module system. See installation options on the
48
- [download](/jq/download/) page, and the
49
- [release notes](https://github.com/stedolan/jq/releases/tag/jq-1.5)
50
- for details.
51
-
52
- - date: 26 July 2015
53
- body: |
54
-
55
- jq 1.5rc2 is available. Get it on the
56
- [releases](https://github.com/stedolan/jq/releases) page.
57
-
58
- - date: 01 January 2015
59
- body: |
60
-
61
- jq 1.5rc1 is available. Get it on the
62
- [releases](https://github.com/stedolan/jq/releases) page.
63
-
64
- - date: 09 June 2014
65
- body: |
66
-
67
- jq 1.4 (finally) released! Get it on the [download](/jq/download/) page.
68
-
69
- - date: 19 May 2013
70
- body: |
71
-
72
- jq 1.3 released.
73
-