@port-labs/jq-node-bindings 0.0.14 → 0.0.15-dev2

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 (454) hide show
  1. package/README.md +6 -1
  2. package/binding.gyp +42 -20
  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/index.d.ts +2 -0
  412. package/lib/index.js +3 -0
  413. package/lib/jq.js +15 -1
  414. package/lib/templateAsync.js +137 -0
  415. package/package.json +3 -3
  416. package/src/binding.cc +623 -146
  417. package/src/binding.h +3 -4
  418. package/test/santiy-async.test.js +171 -0
  419. package/test/santiy.test.js +2 -2
  420. package/test/template-async.test.js +182 -0
  421. package/test/template.test.js +3 -3
  422. package/deps/jq/.travis.yml +0 -202
  423. package/deps/jq/NEWS +0 -89
  424. package/deps/jq/appveyor.yml +0 -53
  425. package/deps/jq/docs/Gemfile +0 -7
  426. package/deps/jq/docs/Gemfile.lock +0 -63
  427. package/deps/jq/docs/Rakefile +0 -24
  428. package/deps/jq/docs/Rakefile.manual +0 -49
  429. package/deps/jq/docs/Rakefile.website +0 -76
  430. package/deps/jq/docs/content/1.tutorial/default.yml +0 -327
  431. package/deps/jq/docs/content/2.download/default.yml +0 -193
  432. package/deps/jq/docs/content/index/index.yml +0 -73
  433. package/deps/jq/docs/public/css/base.scss +0 -181
  434. package/deps/jq/docs/public/jq.png +0 -0
  435. package/deps/jq/docs/site.yml +0 -9
  436. package/deps/jq/docs/templates/default.liquid +0 -34
  437. package/deps/jq/docs/templates/index.liquid +0 -73
  438. package/deps/jq/docs/templates/manual.liquid +0 -99
  439. package/deps/jq/docs/templates/shared/_footer.liquid +0 -10
  440. package/deps/jq/docs/templates/shared/_head.liquid +0 -17
  441. package/deps/jq/docs/templates/shared/_navbar.liquid +0 -27
  442. package/deps/jq/modules/oniguruma/README.ja +0 -195
  443. package/deps/jq/modules/oniguruma/cmake/dist.cmake +0 -321
  444. package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +0 -31
  445. package/deps/jq/modules/oniguruma/dist.info +0 -10
  446. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +0 -2250
  447. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +0 -203
  448. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +0 -113
  449. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +0 -1225
  450. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +0 -24742
  451. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +0 -4846
  452. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +0 -2571
  453. /package/deps/jq/sig/{jq-release.key → jq-release-old.key} +0 -0
  454. /package/deps/jq/tests/modules/{.jq → home1/.jq} +0 -0
package/deps/jq/README.md CHANGED
@@ -1,73 +1,75 @@
1
- jq
2
- ==
1
+ # jq
3
2
 
4
- jq is a lightweight and flexible command-line JSON processor.
3
+ `jq` is a lightweight and flexible command-line JSON processor akin to `sed`,`awk`,`grep`, and friends for JSON data. It's written in portable C and has zero runtime dependencies, allowing you to easily slice, filter, map, and transform structured data.
5
4
 
6
- [![Coverage Status](https://coveralls.io/repos/stedolan/jq/badge.svg?branch=master&service=github)](https://coveralls.io/github/stedolan/jq?branch=master),
7
- Unix: [![Build Status](https://travis-ci.org/stedolan/jq.svg?branch=master)](https://travis-ci.org/stedolan/jq),
8
- Windows: [![Windows build status](https://ci.appveyor.com/api/projects/status/mi816811c9e9mx29?svg=true)](https://ci.appveyor.com/project/stedolan/jq)
5
+ ## Documentation
9
6
 
7
+ - **Official Documentation**: [jqlang.github.io/jq](https://jqlang.github.io/jq)
8
+ - **Try jq Online**: [jqplay.org](https://jqplay.org)
10
9
 
11
- If you want to learn to use jq, read the documentation at
12
- [https://stedolan.github.io/jq](https://stedolan.github.io/jq). This
13
- documentation is generated from the docs/ folder of this repository.
14
- You can also try it online at [jqplay.org](https://jqplay.org).
10
+ ## Installation
15
11
 
16
- If you want to hack on jq, feel free, but be warned that its internals
17
- are not well-documented at the moment. Bring a hard hat and a
18
- shovel. Also, read the wiki: https://github.com/stedolan/jq/wiki, where
19
- you will find cookbooks, discussion of advanced topics, internals,
20
- release engineering, and more.
12
+ ### Prebuilt Binaries
21
13
 
22
- Source tarball and built executable releases can be found on the
23
- homepage and on the github release page, https://github.com/stedolan/jq/releases
14
+ Download the latest releases from the [GitHub release page](https://github.com/jqlang/jq/releases).
24
15
 
25
- If you're building directly from the latest git, you'll need flex,
26
- bison (3.0 or newer), libtool, make, and autoconf installed.
27
- To get regexp support you'll also need to install Oniguruma or clone it as a
28
- git submodule as per the instructions below.
29
- (note that jq's tests require regexp support to pass). To build, run:
16
+ ### Docker Image
30
17
 
31
- git submodule update --init # if building from git to get oniguruma
32
- autoreconf -fi # if building from git
33
- ./configure --with-oniguruma=builtin
34
- make -j8
35
- make check
18
+ Pull the [jq image](https://github.com/jqlang/jq/pkgs/container/jq) to start quickly with Docker.
36
19
 
37
- To build without bison or flex, add `--disable-maintainer-mode` to the
38
- ./configure invocation:
39
20
 
40
- ./configure --with-oniguruma=builtin --disable-maintainer-mode
21
+ #### Run with Docker
22
+ ##### Example: Extracting the version from a `package.json` file
23
+ ```bash
24
+ docker run --rm -i ghcr.io/jqlang/jq:latest < package.json '.version'
25
+ ```
26
+ ##### Example: Extracting the version from a `package.json` file with a mounted volume
27
+ ```bash
28
+ docker run --rm -i -v "$PWD:$PWD" -w "$PWD" ghcr.io/jqlang/jq:latest '.version' package.json
29
+ ```
41
30
 
42
- (Developers must not use `--disable-maintainer-mode`, not when making
43
- changes to the jq parser and/or lexer.)
31
+ ### Building from source
44
32
 
45
- To build a statically linked version of jq, run:
33
+ #### Dependencies
46
34
 
47
- make LDFLAGS=-all-static
35
+ - libtool
36
+ - make
37
+ - automake
38
+ - autoconf
48
39
 
49
- After make finishes, you'll be able to use `./jq`. You can also
50
- install it using:
40
+ #### Instructions
51
41
 
52
- sudo make install
42
+ ```console
43
+ git submodule update --init # if building from git to get oniguruma
44
+ autoreconf -i # if building from git
45
+ ./configure --with-oniguruma=builtin
46
+ make clean # if upgrading from a version previously built from source
47
+ make -j8
48
+ make check
49
+ sudo make install
50
+ ```
53
51
 
54
- If you're not using the latest git version but instead building a
55
- released tarball (available on the website), then you won't need to
56
- run `autoreconf` (and shouldn't), and you won't need flex or bison.
52
+ Build a statically linked version:
57
53
 
58
- To cross-compile for OS X and Windows, see docs/Rakefile's build task
59
- and scripts/crosscompile. You'll need a cross-compilation environment,
60
- such as Mingw for cross-compiling for Windows.
54
+ ```console
55
+ make LDFLAGS=-all-static
56
+ ```
61
57
 
62
- Cross-compilation requires a clean workspace, then:
58
+ If you're not using the latest git version but instead building a released tarball (available on the release page), skip the `autoreconf` step, and flex or bison won't be needed.
63
59
 
64
- # git clean ...
65
- autoreconf -i
66
- ./configure
67
- make distclean
68
- scripts/crosscompile <name-of-build> <configure-options>
60
+ ##### Cross-Compilation
69
61
 
70
- Use the --host= and --target= ./configure options to select a
71
- cross-compilation environment. See also the wiki.
62
+ For details on cross-compilation, check out the [GitHub Actions file](.github/workflows/ci.yml) and the [cross-compilation wiki page](https://github.com/jqlang/jq/wiki/Cross-compilation).
72
63
 
73
- Send questions to https://stackoverflow.com/questions/tagged/jq or to the #jq channel (http://irc.lc/freenode/%23jq/) on Freenode (https://webchat.freenode.net/).
64
+ ## Community & Support
65
+
66
+ - Questions & Help: [Stack Overflow (jq tag)](https://stackoverflow.com/questions/tagged/jq)
67
+ - Chat & Community: [Join us on Discord](https://discord.gg/yg6yjNmgAC)
68
+ - Wiki & Advanced Topics: [Explore the Wiki](https://github.com/jqlang/jq/wiki)
69
+
70
+ ## License
71
+
72
+ `jq` is released under the [MIT License](COPYING). `jq`'s documentation is
73
+ licensed under the [Creative Commons CC BY 3.0](COPYING).
74
+ `jq` uses parts of the open source C library "decNumber", which is distributed
75
+ under [ICU License](COPYING)
@@ -0,0 +1,7 @@
1
+ # How to report security vulnerabilities in `jq`
2
+
3
+ GitHub has a [mechanism for private disclosure of vulnerabilities](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability) to repository owners and authorized persons such as maintainers. The `jqlang/jq` repository now has this feature enabled.
4
+
5
+ ## Reporting a Vulnerability
6
+
7
+ See [Privately Reporting a Security Vulnerability](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability). Click on [`jqlang/jq`](https://github.com/jqlang/jq)'s [Security page](https://github.com/jqlang/jq/security) and click on [Report a vulnerability](https://github.com/jqlang/jq/security/advisories/new). This will notify the owners and maintainers. After submitting you'll get an option to start a private clone of `jqlang/jq` for collaboration with the maintainers.
@@ -1,102 +1,106 @@
1
- #!/bin/bash
2
-
3
- # old values
4
- OLD_CFLAGS=$CFLAGS
5
- OLD_LDFLAGS=$LDFLAGS
6
- ORIG_PWD=`pwd`
7
-
8
- # For parallelism in make
9
- NJOBS="-j`sysctl -n hw.ncpu || echo 1`"
10
-
11
-
12
- # Get oniguruma
13
- rm -rf $PWD/build/ios oniguruma-5.9.6
14
- echo "Downloading oniguruma 5.9.6"
15
- curl -L https://github.com/kkos/oniguruma/archive/v5.9.6.tar.gz | tar xz
16
- cd oniguruma-5.9.6
17
-
18
- # So, we need to remake the configure scripts so that the arm64 architecture
19
- # exists in config.sub. In order to keep autoreconf from failing, create
20
- # NEWS and ChangeLog.
21
- touch NEWS ChangeLog
22
- autoreconf -fi >/dev/null 2>&1
23
-
24
-
25
-
26
-
27
- CC=`xcrun -f clang`
28
- cd $ORIG_PWD
29
-
30
- autoreconf -fi
31
- for arch in i386 x86_64 armv7 armv7s arm64; do
32
-
33
- # Some of the architectures are a bit different...
34
- if [[ "$arch" = "i386" || "$arch" = "x86_64" ]]
35
- then
36
- SYSROOT=`xcrun -f --sdk iphonesimulator --show-sdk-path`
37
- else
38
- SYSROOT=`xcrun -f --sdk iphoneos --show-sdk-path`
39
- fi
40
- if [[ "$arch" = "arm64" ]]
41
- then
42
- HOST="aarch64-apple-darwin"
43
- else
44
- HOST="$arch-apple-darwin"
45
- fi
46
-
47
- CFLAGS="-arch $arch -miphoneos-version-min=6.0 -isysroot $SYSROOT $OLD_CFLAGS"
48
- LDFLAGS="-arch $arch -miphoneos-version-min=6.0 -isysroot $SYSROOT $OLD_LDFLAGS"
49
-
50
-
51
-
52
- # Build oniguruma for this architecture
53
- cd oniguruma-5.9.6
54
- CC=$CC CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS ./configure --disable-shared --enable-static --host=$HOST --prefix=$ORIG_PWD/build/ios/$arch
55
- STATUS=$?
56
- if [ $STATUS -ne 0 ]
57
- then
58
- echo "Failed to configure oniguruma for architecture $arch. Check `pwd`/config.log for details."
59
- cd $PWD
60
- exit $STATUS
61
- fi
62
- make clean
63
- make $NJBOS install
64
- STATUS=$?
65
- if [ $STATUS -ne 0 ]
66
- then
67
- echo "Failed to make oniguruma for architecture $arch."
68
- cd $PWD
69
- exit $STATUS
70
- fi
71
-
72
-
73
-
74
- # Build jq for this architecture
75
- cd $ORIG_PWD
76
- CC=$CC CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS ./configure --disable-shared --enable-static -host=$HOST --prefix=$ORIG_PWD/build/ios/$arch --with-oniguruma=$ORIG_PWD/build/ios/$arch
77
- STATUS=$?
78
- if [ $STATUS -ne 0 ]
79
- then
80
- echo "Failed to configure jq for architecture $arch"
81
- exit $STATUS
82
- fi
83
- make clean
84
- make $NJOBS install
85
- STATUS=$?
86
- if [ $STATUS -ne 0 ]
87
- then
88
- echo "Failed to make jq for architecture $arch"
89
- exit $STATUS
90
- fi
91
- done
92
-
93
-
94
- # lipo together the different architectures into a universal 'fat' file
95
- lipo -create -output $ORIG_PWD/build/ios/libonig.a $ORIG_PWD/build/ios/{i386,x86_64,armv7,armv7s,arm64}/lib/libonig.a
96
- lipo -create -output $ORIG_PWD/build/ios/libjq.a $ORIG_PWD/build/ios/{i386,x86_64,armv7,armv7s,arm64}/lib/libjq.a
97
-
98
- # copy the products into the destination directory and clean up the single-architecture files.
99
- cp $ORIG_PWD/build/ios/i386/include/*.h $ORIG_PWD/build/ios/
100
- rm -rf $ORIG_PWD/build/ios/{i386,x86_64,armv7,armv7s,arm64}
101
-
102
- echo "Products are in $ORIG_PWD/build/ios"
1
+ #!/usr/bin/env bash
2
+ # Mac C. compile-ios.sh for JQ.
3
+
4
+ # Defaults
5
+ set -e
6
+ oniguruma='6.9.3'
7
+
8
+ unset CFLAGS
9
+ unset CXXFLAGS
10
+ unset LDFLAGS
11
+
12
+ # Parse args.
13
+ usage(){
14
+ cat << EOF
15
+ ${0##*/}: usage
16
+
17
+ Description:
18
+ This simple script builds oniguruma and jq for all *-apple-darwin devices.
19
+
20
+ Arguments:
21
+ --extra-cflags <arg>: Pass defines or includes to clang.
22
+ --extra-ldflags <arg>: Pass libs or includes to ld64.
23
+
24
+ --with-oniguruma <arg>: Change default version of onigurma from ${oniguruma}.
25
+ EOF
26
+ exit 1
27
+ }
28
+
29
+ while (( $# )); do
30
+ case "$1" in
31
+ --with-oniguruma) shift; oniguruma="${1}" ;;
32
+
33
+ --extra-cflags) shift; export CFLAGS_="${1}" ;;
34
+ --extra-ldflags) shift; export LDFLAGS_="${1}" ;;
35
+
36
+ --help) usage ;;
37
+ *) echo -e "Unknown option: ${1}\n"; usage ;;
38
+ esac
39
+ shift
40
+ done
41
+
42
+ # Start building.
43
+ echo "Building..."
44
+ MAKEJOBS="$(sysctl -n hw.ncpu || echo 1)"
45
+ CC_="$(xcrun -f clang || echo clang)"
46
+
47
+ onig_url="https://github.com/kkos/oniguruma/releases/download/v${oniguruma}/onig-${oniguruma}.tar.gz"
48
+ builddir="${TMPDIR:-/tmp}/${RANDOM:-'xxxxx'}-compile-ios-build"
49
+ cwd="$(realpath ${PWD} 2>/dev/null || echo ${PWD})"
50
+
51
+ t_exit() {
52
+ cat << EOF
53
+
54
+ A error as occurred.
55
+ oniguruma location: ${builddir}/onig/onig-${oniguruma}
56
+ jq location: ${cwd}
57
+
58
+ Provide config.log and console logs when posting a issue.
59
+
60
+ EOF
61
+ }
62
+ trap t_exit ERR
63
+
64
+ # Onig.
65
+ mkdir -p "${builddir}/onig"
66
+ cd "${builddir}/"
67
+ curl -L ${onig_url} | tar xz
68
+ for arch in i386 x86_64 armv7 armv7s arm64; do
69
+ if [[ "$arch" = "i386" || "$arch" = "x86_64" ]]; then
70
+ SYSROOT=$(xcrun -f --sdk iphonesimulator --show-sdk-path)
71
+ else
72
+ SYSROOT=$(xcrun -f --sdk iphoneos --show-sdk-path)
73
+ fi
74
+ HOST="${arch}-apple-darwin"
75
+ [[ "${arch}" = "arm64" ]] && HOST="aarch64-apple-darwin"
76
+
77
+ CFLAGS="-arch ${arch} -miphoneos-version-min=9.0 -isysroot ${SYSROOT} ${CFLAGS_} -D_REENTRANT"
78
+ LDFLAGS="-arch ${arch} -miphoneos-version-min=9.0 -isysroot ${SYSROOT} ${LDFLAGS_}"
79
+ CC="${CC_} ${CFLAGS}"
80
+
81
+ # ./configure; make install
82
+ cd "${builddir}/onig-${oniguruma}"
83
+ CC=${CC} LDFLAGS=${LDFLAGS} \
84
+ ./configure --host=${HOST} --build=$(./config.guess) --enable-shared=no --enable-static=yes --prefix=/
85
+ make -j${MAKEJOBS} install DESTDIR="${cwd}/ios/onig/${arch}"
86
+ make clean
87
+
88
+ # Jump back to JQ.
89
+ cd ${cwd}
90
+ [[ ! -f ./configure ]] && autoreconf -ivf
91
+ CC=${CC} LDFLAGS=${LDFLAGS} \
92
+ ./configure --host=${HOST} --build=$(./config/config.guess) --enable-docs=no --enable-shared=no --enable-static=yes --prefix=/ --with-oniguruma=${cwd}/ios/onig/${arch} $(test -z ${BISON+x} || echo '--enable-maintainer-mode')
93
+ make -j${MAKEJOBS} install DESTDIR="${cwd}/ios/jq/${arch}"
94
+ make clean
95
+ done
96
+
97
+ mkdir -p "${cwd}/ios/dest/lib"
98
+ # lipo, make a static lib.
99
+ lipo -create -output ${cwd}/ios/dest/lib/libonig.a ${cwd}/ios/onig/{i386,x86_64,armv7,armv7s,arm64}/lib/libonig.a
100
+ lipo -create -output ${cwd}/ios/dest/lib/libjq.a ${cwd}/ios/jq/{i386,x86_64,armv7,armv7s,arm64}/lib/libjq.a
101
+
102
+ # Take the arm64 headers- the most common target.
103
+ cp -r ${cwd}/ios/jq/arm64/include ${cwd}/ios/dest/
104
+ rm -rf ${cwd}/build/ios/{i386,x86_64,armv7,armv7s,arm64}
105
+
106
+ echo "Output to ${cwd}/ios/dest"
@@ -1,23 +1,17 @@
1
- m4_define([jq_version],
2
- m4_esyscmd_s([(git rev-parse --verify -q jq-1.0 > /dev/null &&
3
- (git describe --tags --dirty --match 'jq-*'|sed 's/^jq-//')) ||
4
- echo `git rev-parse --abbrev-ref HEAD`-`git describe --always --dirty`])))
1
+ m4_define([jq_version], m4_esyscmd_s([scripts/version])))
5
2
 
6
- AC_INIT([jq], [jq_version], [https://github.com/stedolan/jq/issues],
7
- [jq], [https://stedolan.github.io/jq])
8
-
9
- m4_include([m4/ax_compare_version.m4])
10
- m4_include([m4/ax_prog_bison_version.m4])
3
+ AC_INIT([jq],[jq_version],[https://github.com/jqlang/jq/issues],[jq],[https://jqlang.github.io/jq])
11
4
 
12
5
  dnl Created autoconf implementation thompson@dtosolutions, 26NOV12
13
- AC_PREREQ([2.64])
6
+ AC_PREREQ([2.65])
14
7
  AC_CONFIG_AUX_DIR([config])
8
+ AC_USE_SYSTEM_EXTENSIONS
15
9
  AM_INIT_AUTOMAKE([1.11.2 subdir-objects parallel-tests foreign -Wall])
16
10
  AM_SILENT_RULES([yes])
17
11
  AM_PROG_AR
18
- AM_MAINTAINER_MODE([enable])
12
+ AM_MAINTAINER_MODE([disable])
19
13
  AC_PROG_CC
20
- AC_PROG_CC_STDC
14
+ m4_version_prereq([2.70], [], [AC_PROG_CC_STDC])
21
15
  AC_PROG_CPP_WERROR
22
16
  AC_PROG_YACC
23
17
  AC_OBJEXT
@@ -25,6 +19,7 @@ AC_EXEEXT
25
19
  LT_INIT([shared static win32-dll])
26
20
  AM_PROG_CC_C_O
27
21
 
22
+ AC_SYS_LARGEFILE # issue 2167
28
23
 
29
24
  dnl couldn't use AM_PROG_LEX as it doesn't support header files like the
30
25
  dnl AC_PROG_YACC macros...
@@ -38,7 +33,7 @@ if test "$USE_MAINTAINER_MODE" = yes; then
38
33
  else
39
34
  AX_PROG_BISON_VERSION([3],
40
35
  [],
41
- [AC_MSG_ERROR([You need bison version 3.0 or greater, or use --disable-maintainer-mode.])])
36
+ [AC_MSG_ERROR([You need bison version 3.0 or greater])])
42
37
  fi
43
38
 
44
39
  AC_CHECK_PROGS(LEX, flex lex)
@@ -50,64 +45,73 @@ if test "x$valgrind_cmd" = "x" ; then
50
45
  AC_MSG_WARN([valgrind is required to test jq.])
51
46
  fi
52
47
  AC_CHECK_FUNCS(memmem)
53
- AC_CHECK_FUNCS(mkstemp)
54
48
 
55
- AC_CHECK_HEADER("shlwapi.h",[have_win32=1;])
56
- AM_CONDITIONAL([WIN32], [test "x$have_win32" = x1])
49
+ AC_CHECK_HEADER("sys/cygwin.h", [have_cygwin=1;])
50
+ AC_CHECK_HEADER("shlwapi.h",[have_shlwapi=1;])
51
+ AM_CONDITIONAL([WIN32], [test "x$have_shlwapi" = x1 && test ! "x$have_cygwin" = x1])
57
52
 
58
53
  dnl Running tests with Valgrind is slow. It is faster to iterate on
59
54
  dnl code without Valgrind until tests pass, then enable Valgrind and
60
55
  dnl fix leaks.
61
56
  AC_ARG_ENABLE([valgrind],
62
- AC_HELP_STRING([--disable-valgrind], [do not run tests under Valgrind]))
57
+ AS_HELP_STRING([--disable-valgrind],[do not run tests under Valgrind]))
63
58
 
64
59
  dnl Running tests with Valgrind is slow; address sanitizer (ASAN) is
65
60
  dnl faster.
66
61
  AC_ARG_ENABLE([asan],
67
- AC_HELP_STRING([--enable-asan], [enable address sanitizer]))
62
+ AS_HELP_STRING([--enable-asan],[enable address sanitizer]))
68
63
 
69
64
  dnl Undefined Behavior Sanitizer
70
65
  AC_ARG_ENABLE([ubsan],
71
- AC_HELP_STRING([--enable-ubsan], [enable undefined behavior sanitizer]))
66
+ AS_HELP_STRING([--enable-ubsan],[enable undefined behavior sanitizer]))
72
67
 
73
68
  dnl Code coverage
74
69
  AC_ARG_ENABLE([gcov],
75
- AC_HELP_STRING([--enable-gcov], [enable gcov code coverage tool]))
70
+ AS_HELP_STRING([--enable-gcov],[enable gcov code coverage tool]))
76
71
 
77
- dnl Don't attempt to build docs if there's no Ruby lying around
72
+ dnl Don't attempt to build docs if python deps aren't installed
78
73
  AC_ARG_ENABLE([docs],
79
- AC_HELP_STRING([--disable-docs], [don't build docs]))
74
+ AS_HELP_STRING([--disable-docs],[do not build docs]), [], [enable_docs=yes])
80
75
 
81
76
  dnl Don't attempt to build the error injection object (if there is no LD_PRELOAD support)
82
77
  AC_ARG_ENABLE([error-injection],
83
- AC_HELP_STRING([--enable-error-injection], [build and test with error injection]))
78
+ AS_HELP_STRING([--enable-error-injection],[build and test with error injection]))
84
79
 
85
80
  dnl Enable building all static
86
81
  AC_ARG_ENABLE([all-static],
87
- AC_HELP_STRING([--enable-all-static], [link jq with static libraries only]))
82
+ AS_HELP_STRING([--enable-all-static],[link jq with static libraries only]))
83
+
84
+ dnl find pipenv
85
+ AC_ARG_VAR([PIPENV], [pipenv command])
86
+ AC_CHECK_PROGS([PIPENV], pipenv)
88
87
 
89
88
  AS_IF([test "x$enable_docs" != "xno"],[
90
- AC_CHECK_PROGS(bundle_cmd, bundle)
91
-
92
- AC_CACHE_CHECK([for Ruby dependencies], [jq_cv_ruby_deps],
93
- [jq_cv_ruby_deps=yes;
94
- AS_IF([test "x$bundle_cmd" = "x" || \
95
- ! bmsg="`cd ${srcdir}/docs; "$bundle_cmd" check 2>/dev/null`"],[
96
- AC_MSG_WARN([$bmsg])
97
- cat <<EOF
89
+ AC_CACHE_CHECK([for Python dependencies], [jq_cv_python_deps],[
90
+ jq_cv_python_deps=yes
91
+ AS_IF([test "x$PIPENV" = "x" || \
92
+ ! bmsg="`cd ${srcdir}/docs; LC_ALL=$LANG "$PIPENV" --venv`"],[
93
+ jq_cv_python_deps=no
94
+ ])
95
+ ])
96
+
97
+ AS_IF([test "x$jq_cv_python_deps" != "xyes"], [
98
+ AC_MSG_WARN([Error checking python dependencies: $bmsg
98
99
  *****************************************************************
99
- * Ruby dependencies for building jq documentation not found. *
100
+ * Python dependencies for building jq documentation not found. *
100
101
  * You can still build, install and hack on jq, but the manpage *
101
- * will not be rebuilt and some of the tests will not run. *
102
+ * will not be rebuilt and new manpage tests will not be run. *
102
103
  * See docs/README.md for how to install the docs dependencies. *
103
- *****************************************************************
104
- EOF
105
- jq_cv_ruby_deps=no
106
- ])])
104
+ *****************************************************************])
105
+ enable_docs=no
106
+ ])
107
+ ])
108
+
109
+ dnl Disable decNumber support
110
+ AC_ARG_ENABLE([decnum],
111
+ AS_HELP_STRING([--disable-decnum],[disable decnum support]))
107
112
 
108
- if test "x$jq_cv_ruby_deps" != "xyes"; then
109
- enable_docs=no
110
- fi
113
+ AS_IF([test "x$enable_decnum" != "xno"],[
114
+ AC_DEFINE([USE_DECNUM],1)
111
115
  ])
112
116
 
113
117
  AM_CONDITIONAL([ENABLE_VALGRIND], [test "x$enable_valgrind" != xno])
@@ -118,34 +122,38 @@ AM_CONDITIONAL([ENABLE_DOCS], [test "x$enable_docs" != xno])
118
122
  AM_CONDITIONAL([ENABLE_ERROR_INJECTION], [test "x$enable_error_injection" = xyes])
119
123
  AM_CONDITIONAL([ENABLE_ALL_STATIC], [test "x$enable_all_static" = xyes])
120
124
 
125
+ dnl Find pthread, if we have it. We do this first because we may set -pthread on CFLAGS
126
+ dnl which can cause various macros to be defined (__REENTRANT on Darwin, for example)
127
+ AX_PTHREAD([
128
+ AC_DEFINE([HAVE_PTHREAD], [1])
129
+ LIBS="$PTHREAD_LIBS $LIBS"
130
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
131
+ CC="$PTHREAD_CC"
132
+ ])
133
+
121
134
  AC_FUNC_ALLOCA
122
135
 
123
136
  AC_FIND_FUNC([isatty], [c], [#include <unistd.h>], [0])
124
137
  AC_FIND_FUNC([_isatty], [c], [#include <io.h>], [0])
125
138
  AC_FIND_FUNC([strptime], [c], [#include <time.h>], [0, 0, 0])
126
139
  AC_FIND_FUNC([strftime], [c], [#include <time.h>], [0, 0, 0, 0])
140
+ AC_FIND_FUNC([setenv], [c], [#include <stdlib.h>], [0, 0, 0])
127
141
  AC_FIND_FUNC([timegm], [c], [#include <time.h>], [0])
128
142
  AC_FIND_FUNC([gmtime_r], [c], [#include <time.h>], [0, 0])
129
143
  AC_FIND_FUNC([gmtime], [c], [#include <time.h>], [0])
130
144
  AC_FIND_FUNC([localtime_r], [c], [#include <time.h>], [0, 0])
131
145
  AC_FIND_FUNC([localtime], [c], [#include <time.h>], [0])
132
- AC_FIND_FUNC([gettimeofday], [c], [#include <time.h>], [0, 0])
146
+ AC_FIND_FUNC([gettimeofday], [c], [#include <sys/time.h>], [0, 0])
133
147
  AC_CHECK_MEMBER([struct tm.tm_gmtoff], [AC_DEFINE([HAVE_TM_TM_GMT_OFF],1,[Define to 1 if the system has the tm_gmt_off field in struct tm])],
134
148
  [], [[#include <time.h>]])
135
149
  AC_CHECK_MEMBER([struct tm.__tm_gmtoff], [AC_DEFINE([HAVE_TM___TM_GMT_OFF],1,[Define to 1 if the system has the __tm_gmt_off field in struct tm])],
136
150
  [], [[#include <time.h>]])
151
+ AC_FIND_FUNC([setlocale], [c], [#include <locale.h>], [0,0])
137
152
 
138
- AC_ARG_ENABLE([pthread-tls],
139
- [AC_HELP_STRING([--enable-pthread-tls],
140
- [Enable use of pthread thread local storage])],
141
- [],
142
- [enable_pthread_tls=no])
143
-
144
- if test $enable_pthread_tls = yes; then
145
- AC_FIND_FUNC([pthread_key_create], [pthread], [#include <pthread.h>], [NULL, NULL])
146
- AC_FIND_FUNC([pthread_once], [pthread], [#include <pthread.h>], [NULL, NULL])
147
- AC_FIND_FUNC([atexit], [pthread], [#include <stdlib.h>], [NULL])
148
- fi
153
+ dnl Figure out if we have the pthread functions we actually need
154
+ AC_FIND_FUNC_NO_LIBS([pthread_key_create], [], [#include <pthread.h>], [NULL, NULL])
155
+ AC_FIND_FUNC_NO_LIBS([pthread_once], [], [#include <pthread.h>], [NULL, NULL])
156
+ AC_FIND_FUNC_NO_LIBS([atexit], [], [#include <stdlib.h>], [NULL])
149
157
 
150
158
  dnl libm math.h functions
151
159
  AC_CHECK_MATH_FUNC(acos)
@@ -164,6 +172,7 @@ AC_CHECK_MATH_FUNC(drem)
164
172
  AC_CHECK_MATH_FUNC(erf)
165
173
  AC_CHECK_MATH_FUNC(erfc)
166
174
  AC_CHECK_MATH_FUNC(exp10)
175
+ AC_CHECK_MATH_FUNC(__exp10) dnl macOS has an __exp10
167
176
  AC_CHECK_MATH_FUNC(exp2)
168
177
  AC_CHECK_MATH_FUNC(exp)
169
178
  AC_CHECK_MATH_FUNC(expm1)
@@ -192,7 +201,6 @@ AC_CHECK_MATH_FUNC(lgamma_r)
192
201
  AC_CHECK_MATH_FUNC(nearbyint)
193
202
  AC_CHECK_MATH_FUNC(nextafter)
194
203
  AC_CHECK_MATH_FUNC(nexttoward)
195
- AC_CHECK_MATH_FUNC(pow10) # Not available with glibc version >= 2.27
196
204
  AC_CHECK_MATH_FUNC(pow)
197
205
  AC_CHECK_MATH_FUNC(remainder)
198
206
  AC_CHECK_MATH_FUNC(rint)
@@ -200,6 +208,10 @@ AC_CHECK_MATH_FUNC(round)
200
208
  AC_CHECK_MATH_FUNC(scalb)
201
209
  AC_CHECK_MATH_FUNC(scalbln)
202
210
  AC_CHECK_MATH_FUNC(significand)
211
+ dnl scalbn and ilogb are used on macos to replace significand if we don't have frexp
212
+ AC_CHECK_MATH_FUNC(scalbn)
213
+ AC_CHECK_MATH_FUNC(ilogb)
214
+
203
215
  AC_CHECK_MATH_FUNC(sin)
204
216
  AC_CHECK_MATH_FUNC(sinh)
205
217
  AC_CHECK_MATH_FUNC(sqrt)
@@ -226,8 +238,8 @@ AC_MSG_RESULT($have___thread)
226
238
  AC_C_BIGENDIAN(
227
239
  AC_DEFINE([IEEE_MC68k], 1, [machine is bigendian]),
228
240
  AC_DEFINE([IEEE_8087], 1, [machine is littleendian]),
229
- AC_MSG_ERROR(unknown endianess),
230
- AC_MSG_ERROR(universial endianess not supported)
241
+ AC_MSG_ERROR(unknown endianness),
242
+ AC_MSG_ERROR(universal endianness not supported)
231
243
  )
232
244
 
233
245
  dnl Oniguruma
@@ -262,7 +274,7 @@ AS_IF([test "x$with_oniguruma" != xno], [
262
274
  AC_MSG_NOTICE([Oniguruma was not found. Will use the packaged oniguruma.])
263
275
  ])
264
276
  ])
265
- AS_IF([test "x$build_oniguruma" = xyes -a -f "${srcdir}/modules/oniguruma/configure.ac" ], [
277
+ AS_IF([test "x$build_oniguruma" = xyes && test -f "${srcdir}/modules/oniguruma/configure.ac" ], [
266
278
  onig_CFLAGS="-I${srcdir}/modules/oniguruma/src"
267
279
  onig_LDFLAGS="-L${srcdir}/modules/oniguruma/src -Wl,-rpath,${libdir}"
268
280
  AC_CONFIG_SUBDIRS([modules/oniguruma])
@@ -275,9 +287,10 @@ AC_SUBST(onig_CFLAGS)
275
287
  AC_SUBST(onig_LDFLAGS)
276
288
 
277
289
  AM_CONDITIONAL([BUILD_ONIGURUMA], [test "x$build_oniguruma" = xyes])
290
+ AM_CONDITIONAL([WITH_ONIGURUMA], [test "x$with_oniguruma" != xno])
278
291
  AC_SUBST([BUNDLER], ["$bundle_cmd"])
279
292
 
280
- AC_CONFIG_MACRO_DIR([config/m4])
281
- AC_CONFIG_FILES([Makefile])
293
+ AC_CONFIG_MACRO_DIRS([config/m4 m4])
294
+ AC_CONFIG_FILES([Makefile libjq.pc])
282
295
  AC_OUTPUT
283
296
 
@@ -0,0 +1,14 @@
1
+ [[source]]
2
+ name = "pypi"
3
+ url = "https://pypi.org/simple"
4
+ verify_ssl = true
5
+
6
+ [dev-packages]
7
+
8
+ [packages]
9
+ jinja2 = "*"
10
+ pyyaml = "*"
11
+ markdown = "*"
12
+ lxml = "*"
13
+ jsonschema = "*"
14
+ importlib_resources = "*"