@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.
- package/README.md +6 -1
- package/binding.gyp +42 -20
- package/configure +1 -1
- package/deps/jq/.gitattributes +12 -0
- package/deps/jq/AUTHORS +149 -43
- package/deps/jq/COPYING +75 -1
- package/deps/jq/ChangeLog +2 -2
- package/deps/jq/Makefile.am +106 -65
- package/deps/jq/NEWS.md +391 -0
- package/deps/jq/README.md +54 -52
- package/deps/jq/SECURITY.md +7 -0
- package/deps/jq/compile-ios.sh +106 -102
- package/deps/jq/configure.ac +72 -59
- package/deps/jq/docs/Pipfile +14 -0
- package/deps/jq/docs/Pipfile.lock +415 -0
- package/deps/jq/docs/README.md +15 -14
- package/deps/jq/docs/build_manpage.py +251 -0
- package/deps/jq/docs/build_mantests.py +21 -0
- package/deps/jq/docs/build_website.py +95 -0
- package/deps/jq/docs/content/download/default.yml +249 -0
- package/deps/jq/docs/content/index.yml +83 -0
- package/deps/jq/docs/content/{3.manual/v1.6 → manual/dev}/manual.yml +992 -452
- package/deps/jq/docs/content/{3.manual → manual}/v1.3/manual.yml +105 -116
- package/deps/jq/docs/content/{3.manual → manual}/v1.4/manual.yml +122 -129
- package/deps/jq/docs/content/{3.manual → manual}/v1.5/manual.yml +313 -262
- package/deps/jq/docs/content/{3.manual → manual/v1.6}/manual.yml +407 -332
- package/deps/jq/docs/content/manual/v1.7/manual.yml +3697 -0
- package/deps/jq/docs/content/tutorial/default.yml +337 -0
- package/deps/jq/docs/manual_schema.yml +60 -0
- package/deps/jq/docs/public/css/style.css +99 -0
- package/deps/jq/docs/public/icon.png +0 -0
- package/deps/jq/docs/public/icon.svg +1 -0
- package/deps/jq/docs/public/jq.svg +1 -0
- package/deps/jq/docs/public/js/manual-search.js +31 -49
- package/deps/jq/docs/templates/default.html.j2 +31 -0
- package/deps/jq/docs/templates/index.html.j2 +58 -0
- package/deps/jq/docs/templates/manual.html.j2 +120 -0
- package/deps/jq/docs/templates/shared/_footer.html.j2 +14 -0
- package/deps/jq/docs/templates/shared/_head.html.j2 +23 -0
- package/deps/jq/docs/templates/shared/_navbar.html.j2 +40 -0
- package/deps/jq/docs/validate_manual_schema.py +19 -0
- package/deps/jq/jq.1.prebuilt +1102 -294
- package/deps/jq/jq.spec +2 -3
- package/deps/jq/libjq.pc.in +11 -0
- package/deps/jq/m4/ax_pthread.m4 +522 -0
- package/deps/jq/modules/oniguruma/.travis.yml +17 -0
- package/deps/jq/modules/oniguruma/CMakeLists.txt +206 -41
- package/deps/jq/modules/oniguruma/COPYING +23 -25
- package/deps/jq/modules/oniguruma/HISTORY +368 -23
- package/deps/jq/modules/oniguruma/Makefile.am +61 -7
- package/deps/jq/modules/oniguruma/README +34 -20
- package/deps/jq/modules/oniguruma/README.md +106 -33
- package/deps/jq/modules/oniguruma/README_japanese +183 -0
- package/deps/jq/modules/oniguruma/autogen.sh +9 -0
- package/deps/jq/modules/oniguruma/cmake/Config.cmake.in +4 -0
- package/deps/jq/modules/oniguruma/configure.ac +66 -55
- package/deps/jq/modules/oniguruma/doc/API +485 -42
- package/deps/jq/modules/oniguruma/doc/API.ja +732 -293
- package/deps/jq/modules/oniguruma/doc/CALLOUTS.API +397 -0
- package/deps/jq/modules/oniguruma/doc/CALLOUTS.API.ja +393 -0
- package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN +95 -0
- package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN.ja +93 -0
- package/deps/jq/modules/oniguruma/doc/FAQ +3 -3
- package/deps/jq/modules/oniguruma/doc/FAQ.ja +8 -8
- package/deps/jq/modules/oniguruma/doc/RE +223 -63
- package/deps/jq/modules/oniguruma/doc/RE.ja +420 -265
- package/deps/jq/modules/oniguruma/doc/SYNTAX.md +1091 -0
- package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +840 -697
- package/deps/jq/modules/oniguruma/harnesses/ascii_compatible.dict +113 -0
- package/deps/jq/modules/oniguruma/harnesses/base.c +749 -0
- package/deps/jq/modules/oniguruma/harnesses/deluxe.c +206 -0
- package/deps/jq/modules/oniguruma/harnesses/dict_conv.py +72 -0
- package/deps/jq/modules/oniguruma/harnesses/fuzzer.options +2 -0
- package/deps/jq/modules/oniguruma/harnesses/libfuzzer-onig.cpp +45 -0
- package/deps/jq/modules/oniguruma/harnesses/regset.c +392 -0
- package/deps/jq/modules/oniguruma/index.html +16 -5
- package/deps/jq/modules/oniguruma/index_ja.html +16 -5
- package/deps/jq/modules/oniguruma/make_win.bat +5 -0
- package/deps/jq/modules/oniguruma/make_win32.bat +5 -3
- package/deps/jq/modules/oniguruma/make_win64.bat +5 -3
- package/deps/jq/modules/oniguruma/onig-config.cmake.in +80 -0
- package/deps/jq/modules/oniguruma/onig-config.in +1 -1
- package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +1 -1
- package/deps/jq/modules/oniguruma/oniguruma.pc.in +0 -1
- package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +9 -2
- package/deps/jq/modules/oniguruma/sample/Makefile.am +24 -5
- package/deps/jq/modules/oniguruma/sample/bug_fix.c +13 -51
- package/deps/jq/modules/oniguruma/sample/callback_each_match.c +168 -0
- package/deps/jq/modules/oniguruma/sample/callout.c +268 -0
- package/deps/jq/modules/oniguruma/sample/count.c +125 -0
- package/deps/jq/modules/oniguruma/sample/crnl.c +6 -4
- package/deps/jq/modules/oniguruma/sample/echo.c +136 -0
- package/deps/jq/modules/oniguruma/sample/encode.c +53 -146
- package/deps/jq/modules/oniguruma/sample/listcap.c +18 -10
- package/deps/jq/modules/oniguruma/sample/names.c +10 -6
- package/deps/jq/modules/oniguruma/sample/posix.c +13 -2
- package/deps/jq/modules/oniguruma/sample/regset.c +95 -0
- package/deps/jq/modules/oniguruma/sample/scan.c +20 -6
- package/deps/jq/modules/oniguruma/sample/simple.c +8 -4
- package/deps/jq/modules/oniguruma/sample/sql.c +13 -8
- package/deps/jq/modules/oniguruma/sample/syntax.c +11 -10
- package/deps/jq/modules/oniguruma/sample/user_property.c +12 -7
- package/deps/jq/modules/oniguruma/src/Makefile.am +41 -15
- package/deps/jq/modules/oniguruma/src/Makefile.windows +196 -183
- package/deps/jq/modules/oniguruma/src/ascii.c +64 -7
- package/deps/jq/modules/oniguruma/src/big5.c +25 -15
- package/deps/jq/modules/oniguruma/src/config.h.cmake.in +7 -22
- package/deps/jq/modules/oniguruma/src/config.h.win32 +56 -84
- package/deps/jq/modules/oniguruma/src/config.h.win64 +56 -84
- package/deps/jq/modules/oniguruma/src/config.h.windows.in +62 -0
- package/deps/jq/modules/oniguruma/src/cp1251.c +14 -8
- package/deps/jq/modules/oniguruma/src/euc_jp.c +28 -30
- package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +25 -32
- package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +1 -2
- package/deps/jq/modules/oniguruma/src/euc_kr.c +27 -15
- package/deps/jq/modules/oniguruma/src/euc_tw.c +40 -17
- package/deps/jq/modules/oniguruma/src/gb18030.c +177 -119
- package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +12 -8
- package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +8 -6
- package/deps/jq/modules/oniguruma/src/iso8859_1.c +92 -91
- package/deps/jq/modules/oniguruma/src/iso8859_10.c +13 -29
- package/deps/jq/modules/oniguruma/src/iso8859_11.c +4 -2
- package/deps/jq/modules/oniguruma/src/iso8859_13.c +13 -33
- package/deps/jq/modules/oniguruma/src/iso8859_14.c +13 -30
- package/deps/jq/modules/oniguruma/src/iso8859_15.c +13 -34
- package/deps/jq/modules/oniguruma/src/iso8859_16.c +13 -29
- package/deps/jq/modules/oniguruma/src/iso8859_2.c +13 -29
- package/deps/jq/modules/oniguruma/src/iso8859_3.c +13 -33
- package/deps/jq/modules/oniguruma/src/iso8859_4.c +13 -32
- package/deps/jq/modules/oniguruma/src/iso8859_5.c +16 -23
- package/deps/jq/modules/oniguruma/src/iso8859_6.c +4 -2
- package/deps/jq/modules/oniguruma/src/iso8859_7.c +14 -29
- package/deps/jq/modules/oniguruma/src/iso8859_8.c +4 -2
- package/deps/jq/modules/oniguruma/src/iso8859_9.c +13 -33
- package/deps/jq/modules/oniguruma/src/koi8.c +14 -27
- package/deps/jq/modules/oniguruma/src/koi8_r.c +12 -19
- package/deps/jq/modules/oniguruma/src/make_property.sh +21 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_egcb.sh +7 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_egcb_data.py +267 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +25 -11
- package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +206 -26
- package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +19 -10
- package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +474 -375
- package/deps/jq/modules/oniguruma/src/make_unicode_wb.sh +7 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_wb_data.py +267 -0
- package/deps/jq/modules/oniguruma/src/mktable.c +28 -24
- package/deps/jq/modules/oniguruma/src/onig_init.c +2 -2
- package/deps/jq/modules/oniguruma/src/oniggnu.h +7 -5
- package/deps/jq/modules/oniguruma/src/onigposix.h +40 -16
- package/deps/jq/modules/oniguruma/src/oniguruma.h +357 -107
- package/deps/jq/modules/oniguruma/src/regcomp.c +6214 -3933
- package/deps/jq/modules/oniguruma/src/regenc.c +197 -120
- package/deps/jq/modules/oniguruma/src/regenc.h +106 -63
- package/deps/jq/modules/oniguruma/src/regerror.c +112 -91
- package/deps/jq/modules/oniguruma/src/regexec.c +4876 -2010
- package/deps/jq/modules/oniguruma/src/regext.c +8 -8
- package/deps/jq/modules/oniguruma/src/reggnu.c +13 -17
- package/deps/jq/modules/oniguruma/src/regint.h +757 -491
- package/deps/jq/modules/oniguruma/src/regparse.c +7204 -3240
- package/deps/jq/modules/oniguruma/src/regparse.h +361 -218
- package/deps/jq/modules/oniguruma/src/regposerr.c +49 -9
- package/deps/jq/modules/oniguruma/src/regposix.c +106 -24
- package/deps/jq/modules/oniguruma/src/regsyntax.c +66 -13
- package/deps/jq/modules/oniguruma/src/regtrav.c +1 -1
- package/deps/jq/modules/oniguruma/src/regversion.c +6 -4
- package/deps/jq/modules/oniguruma/src/sjis.c +23 -52
- package/deps/jq/modules/oniguruma/src/sjis_prop.c +25 -32
- package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +1 -2
- package/deps/jq/modules/oniguruma/src/st.c +248 -249
- package/deps/jq/modules/oniguruma/src/st.h +4 -5
- package/deps/jq/modules/oniguruma/src/unicode.c +869 -294
- package/deps/jq/modules/oniguruma/src/unicode_egcb_data.c +1419 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +1829 -1300
- package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +32 -9
- package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +32 -9
- package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1210 -984
- package/deps/jq/modules/oniguruma/src/unicode_property_data.c +22480 -15198
- package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +1463 -591
- package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +1958 -1418
- package/deps/jq/modules/oniguruma/src/unicode_wb_data.c +1106 -0
- package/deps/jq/modules/oniguruma/src/utf16_be.c +90 -49
- package/deps/jq/modules/oniguruma/src/utf16_le.c +80 -49
- package/deps/jq/modules/oniguruma/src/utf32_be.c +14 -42
- package/deps/jq/modules/oniguruma/src/utf32_le.c +13 -40
- package/deps/jq/modules/oniguruma/src/utf8.c +33 -78
- package/deps/jq/modules/oniguruma/test/CMakeLists.txt +55 -0
- package/deps/jq/modules/oniguruma/test/Makefile.am +65 -10
- package/deps/jq/modules/oniguruma/test/test.sh +17 -0
- package/deps/jq/modules/oniguruma/test/test_back.c +1450 -0
- package/deps/jq/modules/oniguruma/test/test_options.c +228 -0
- package/deps/jq/modules/oniguruma/test/test_regset.c +466 -0
- package/deps/jq/modules/oniguruma/test/test_syntax.c +365 -0
- package/deps/jq/modules/oniguruma/test/test_utf8.c +1761 -0
- package/deps/jq/modules/oniguruma/test/testc.c +128 -88
- package/deps/jq/modules/oniguruma/test/testp.c +613 -0
- package/deps/jq/modules/oniguruma/test/testu.c +75 -28
- package/deps/jq/modules/oniguruma/tis-ci/stub.c +3 -0
- package/deps/jq/modules/oniguruma/tis-ci/test_back.config +26 -0
- package/deps/jq/modules/oniguruma/tis-ci/test_regset.config +20 -0
- package/deps/jq/modules/oniguruma/tis-ci/test_syntax.config +26 -0
- package/deps/jq/modules/oniguruma/tis-ci/test_utf8.config +25 -0
- package/deps/jq/modules/oniguruma/tis-ci/testc.config +26 -0
- package/deps/jq/modules/oniguruma/tis-ci/testu.config +24 -0
- package/deps/jq/modules/oniguruma/tis.config +1336 -0
- package/deps/jq/modules/oniguruma/windows/CMakeLists.txt +8 -0
- package/deps/jq/modules/oniguruma/windows/testc.c +865 -869
- package/deps/jq/scripts/update-website +6 -5
- package/deps/jq/scripts/version +10 -7
- package/deps/jq/sig/jq-release-new.key +29 -0
- package/deps/jq/sig/v1.4/sha256sum.txt +1 -0
- package/deps/jq/sig/v1.5/sha256sum.txt +2 -0
- package/deps/jq/sig/v1.5rc1/sha256sum.txt +1 -0
- package/deps/jq/sig/v1.5rc2/sha256sum.txt +2 -0
- package/deps/jq/sig/v1.6/sha256sum.txt +2 -0
- package/deps/jq/sig/v1.7/jq-1.7.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7/jq-1.7.zip.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7/sha256sum.txt +23 -0
- package/deps/jq/sig/v1.7.1/jq-1.7.1.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-1.7.1.zip.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-osx-amd64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-win64.exe.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7.1/sha256sum.txt +26 -0
- package/deps/jq/sig/v1.7rc1/jq-1.7rc1.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-1.7rc1.zip.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7rc1/sha256sum.txt +23 -0
- package/deps/jq/sig/v1.7rc2/jq-1.7rc2.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-1.7rc2.zip.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7rc2/sha256sum.txt +23 -0
- package/deps/jq/src/builtin.c +537 -343
- package/deps/jq/src/builtin.h +18 -0
- package/deps/jq/src/builtin.jq +116 -143
- package/deps/jq/src/bytecode.h +8 -4
- package/deps/jq/src/compile.c +157 -143
- package/deps/jq/src/compile.h +3 -4
- package/deps/jq/src/decNumber/ICU-license.html +45 -0
- package/deps/jq/src/decNumber/decBasic.c +3908 -0
- package/deps/jq/src/decNumber/decCommon.c +1835 -0
- package/deps/jq/src/decNumber/decContext.c +437 -0
- package/deps/jq/src/decNumber/decContext.h +254 -0
- package/deps/jq/src/decNumber/decDPD.h +1185 -0
- package/deps/jq/src/decNumber/decDouble.c +140 -0
- package/deps/jq/src/decNumber/decDouble.h +155 -0
- package/deps/jq/src/decNumber/decNumber.c +8143 -0
- package/deps/jq/src/decNumber/decNumber.h +182 -0
- package/deps/jq/src/decNumber/decNumberLocal.h +757 -0
- package/deps/jq/src/decNumber/decPacked.c +220 -0
- package/deps/jq/src/decNumber/decPacked.h +52 -0
- package/deps/jq/src/decNumber/decQuad.c +135 -0
- package/deps/jq/src/decNumber/decQuad.h +177 -0
- package/deps/jq/src/decNumber/decSingle.c +71 -0
- package/deps/jq/src/decNumber/decSingle.h +86 -0
- package/deps/jq/src/decNumber/decimal128.c +553 -0
- package/deps/jq/src/decNumber/decimal128.h +81 -0
- package/deps/jq/src/decNumber/decimal32.c +476 -0
- package/deps/jq/src/decNumber/decimal32.h +81 -0
- package/deps/jq/src/decNumber/decimal64.c +839 -0
- package/deps/jq/src/decNumber/decimal64.h +83 -0
- package/deps/jq/src/decNumber/decnumber.pdf +0 -0
- package/deps/jq/src/decNumber/example1.c +38 -0
- package/deps/jq/src/decNumber/example2.c +52 -0
- package/deps/jq/src/decNumber/example3.c +64 -0
- package/deps/jq/src/decNumber/example4.c +61 -0
- package/deps/jq/src/decNumber/example5.c +36 -0
- package/deps/jq/src/decNumber/example6.c +61 -0
- package/deps/jq/src/decNumber/example7.c +35 -0
- package/deps/jq/src/decNumber/example8.c +39 -0
- package/deps/jq/src/decNumber/readme.txt +81 -0
- package/deps/jq/src/exec_stack.h +5 -3
- package/deps/jq/src/execute.c +126 -44
- package/deps/jq/src/inject_errors.c +0 -2
- package/deps/jq/src/jq.h +10 -1
- package/deps/jq/src/jq_test.c +222 -11
- package/deps/jq/src/jv.c +807 -176
- package/deps/jq/src/jv.h +22 -1
- package/deps/jq/src/jv_alloc.c +33 -26
- package/deps/jq/src/jv_alloc.h +0 -11
- package/deps/jq/src/jv_aux.c +153 -67
- package/deps/jq/src/jv_dtoa.c +12 -2
- package/deps/jq/src/jv_dtoa_tsd.c +51 -0
- package/deps/jq/src/jv_dtoa_tsd.h +4 -0
- package/deps/jq/src/jv_parse.c +70 -15
- package/deps/jq/src/jv_print.c +56 -60
- package/deps/jq/src/jv_private.h +7 -0
- package/deps/jq/src/jv_thread.h +76 -0
- package/deps/jq/src/jv_unicode.c +18 -0
- package/deps/jq/src/jv_unicode.h +2 -0
- package/deps/jq/src/lexer.c +782 -543
- package/deps/jq/src/lexer.h +438 -64
- package/deps/jq/src/lexer.l +10 -3
- package/deps/jq/src/libm.h +16 -6
- package/deps/jq/src/linker.c +97 -40
- package/deps/jq/src/locfile.c +2 -1
- package/deps/jq/src/main.c +384 -336
- package/deps/jq/src/opcode_list.h +5 -2
- package/deps/jq/src/parser.c +2260 -1898
- package/deps/jq/src/parser.h +115 -98
- package/deps/jq/src/parser.y +124 -89
- package/deps/jq/src/util.c +854 -55
- package/deps/jq/src/util.h +6 -4
- package/deps/jq/tests/jq.test +762 -26
- package/deps/jq/tests/jq_fuzz_compile.c +27 -0
- package/deps/jq/tests/jq_fuzz_execute.cpp +42 -0
- package/deps/jq/tests/jq_fuzz_fixed.cpp +297 -0
- package/deps/jq/tests/jq_fuzz_load_file.c +28 -0
- package/deps/jq/tests/jq_fuzz_parse.c +21 -0
- package/deps/jq/tests/jq_fuzz_parse_extended.c +36 -0
- package/deps/jq/tests/jq_fuzz_parse_stream.c +21 -0
- package/deps/jq/tests/local.supp +14 -0
- package/deps/jq/tests/man.test +979 -0
- package/deps/jq/tests/manonig.test +76 -0
- package/deps/jq/tests/manonigtest +5 -0
- package/deps/jq/tests/mantest +1 -2
- package/deps/jq/tests/modules/home2/.jq/g.jq +1 -0
- package/deps/jq/tests/modules/shadow1.jq +2 -0
- package/deps/jq/tests/modules/shadow2.jq +1 -0
- package/deps/jq/tests/modules/test_bind_order0.jq +1 -0
- package/deps/jq/tests/modules/test_bind_order1.jq +1 -1
- package/deps/jq/tests/modules/test_bind_order2.jq +0 -1
- package/deps/jq/tests/no-main-program.jq +1 -0
- package/deps/jq/tests/onig.test +77 -2
- package/deps/jq/tests/setup +7 -2
- package/deps/jq/tests/shtest +478 -59
- package/deps/jq/tests/uri.test +38 -0
- package/deps/jq/tests/uritest +5 -0
- package/deps/jq/tests/yes-main-program.jq +2 -0
- package/index.d.ts +2 -0
- package/lib/index.js +3 -0
- package/lib/jq.js +15 -1
- package/lib/templateAsync.js +137 -0
- package/package.json +3 -3
- package/src/binding.cc +623 -146
- package/src/binding.h +3 -4
- package/test/santiy-async.test.js +171 -0
- package/test/santiy.test.js +2 -2
- package/test/template-async.test.js +182 -0
- package/test/template.test.js +3 -3
- package/deps/jq/.travis.yml +0 -202
- package/deps/jq/NEWS +0 -89
- package/deps/jq/appveyor.yml +0 -53
- package/deps/jq/docs/Gemfile +0 -7
- package/deps/jq/docs/Gemfile.lock +0 -63
- package/deps/jq/docs/Rakefile +0 -24
- package/deps/jq/docs/Rakefile.manual +0 -49
- package/deps/jq/docs/Rakefile.website +0 -76
- package/deps/jq/docs/content/1.tutorial/default.yml +0 -327
- package/deps/jq/docs/content/2.download/default.yml +0 -193
- package/deps/jq/docs/content/index/index.yml +0 -73
- package/deps/jq/docs/public/css/base.scss +0 -181
- package/deps/jq/docs/public/jq.png +0 -0
- package/deps/jq/docs/site.yml +0 -9
- package/deps/jq/docs/templates/default.liquid +0 -34
- package/deps/jq/docs/templates/index.liquid +0 -73
- package/deps/jq/docs/templates/manual.liquid +0 -99
- package/deps/jq/docs/templates/shared/_footer.liquid +0 -10
- package/deps/jq/docs/templates/shared/_head.liquid +0 -17
- package/deps/jq/docs/templates/shared/_navbar.liquid +0 -27
- package/deps/jq/modules/oniguruma/README.ja +0 -195
- package/deps/jq/modules/oniguruma/cmake/dist.cmake +0 -321
- package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +0 -31
- package/deps/jq/modules/oniguruma/dist.info +0 -10
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +0 -2250
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +0 -203
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +0 -113
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +0 -1225
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +0 -24742
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +0 -4846
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +0 -2571
- /package/deps/jq/sig/{jq-release.key → jq-release-old.key} +0 -0
- /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
|
-
|
|
7
|
-
Unix: [](https://travis-ci.org/stedolan/jq),
|
|
8
|
-
Windows: [](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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
43
|
-
changes to the jq parser and/or lexer.)
|
|
31
|
+
### Building from source
|
|
44
32
|
|
|
45
|
-
|
|
33
|
+
#### Dependencies
|
|
46
34
|
|
|
47
|
-
|
|
35
|
+
- libtool
|
|
36
|
+
- make
|
|
37
|
+
- automake
|
|
38
|
+
- autoconf
|
|
48
39
|
|
|
49
|
-
|
|
50
|
-
install it using:
|
|
40
|
+
#### Instructions
|
|
51
41
|
|
|
52
|
-
|
|
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
|
-
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
```console
|
|
55
|
+
make LDFLAGS=-all-static
|
|
56
|
+
```
|
|
61
57
|
|
|
62
|
-
|
|
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
|
-
|
|
65
|
-
autoreconf -i
|
|
66
|
-
./configure
|
|
67
|
-
make distclean
|
|
68
|
-
scripts/crosscompile <name-of-build> <configure-options>
|
|
60
|
+
##### Cross-Compilation
|
|
69
61
|
|
|
70
|
-
|
|
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
|
-
|
|
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.
|
package/deps/jq/compile-ios.sh
CHANGED
|
@@ -1,102 +1,106 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
#
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
#
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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"
|
package/deps/jq/configure.ac
CHANGED
|
@@ -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],
|
|
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.
|
|
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([
|
|
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
|
|
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("
|
|
56
|
-
|
|
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
|
-
|
|
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
|
-
|
|
62
|
+
AS_HELP_STRING([--enable-asan],[enable address sanitizer]))
|
|
68
63
|
|
|
69
64
|
dnl Undefined Behavior Sanitizer
|
|
70
65
|
AC_ARG_ENABLE([ubsan],
|
|
71
|
-
|
|
66
|
+
AS_HELP_STRING([--enable-ubsan],[enable undefined behavior sanitizer]))
|
|
72
67
|
|
|
73
68
|
dnl Code coverage
|
|
74
69
|
AC_ARG_ENABLE([gcov],
|
|
75
|
-
|
|
70
|
+
AS_HELP_STRING([--enable-gcov],[enable gcov code coverage tool]))
|
|
76
71
|
|
|
77
|
-
dnl Don't attempt to build docs if
|
|
72
|
+
dnl Don't attempt to build docs if python deps aren't installed
|
|
78
73
|
AC_ARG_ENABLE([docs],
|
|
79
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
*
|
|
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
|
|
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
|
-
|
|
105
|
-
|
|
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
|
-
|
|
109
|
-
|
|
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
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
|
230
|
-
AC_MSG_ERROR(
|
|
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
|
|
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
|
-
|
|
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
|
|