@port-labs/jq-node-bindings 1.0.4 → 1.1.0-dev
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/.claude/settings.local.json +12 -0
- package/configure +6 -5
- package/deps/jq/.claude/settings.local.json +7 -0
- package/deps/jq/.gitattributes +1 -3
- package/deps/jq/AUTHORS +55 -1
- package/deps/jq/COPYING +40 -0
- package/deps/jq/Makefile.am +40 -36
- package/deps/jq/NEWS.md +277 -2
- package/deps/jq/README.md +23 -5
- package/deps/jq/compile-ios.sh +1 -1
- package/deps/jq/config/m4/check-math-func.m4 +2 -2
- package/deps/jq/config/m4/find-func-no-libs2.m4 +3 -3
- package/deps/jq/configure.ac +10 -18
- package/deps/jq/docs/Pipfile.lock +368 -313
- package/deps/jq/docs/README.md +3 -4
- package/deps/jq/docs/build_manpage.py +1 -1
- package/deps/jq/docs/build_mantests.py +1 -1
- package/deps/jq/docs/build_website.py +1 -8
- package/deps/jq/docs/content/download/default.yml +49 -9
- package/deps/jq/docs/content/index.yml +9 -0
- package/deps/jq/docs/content/manual/{manual.yml → dev/manual.yml} +218 -61
- package/deps/jq/docs/content/manual/v1.3/manual.yml +0 -5
- package/deps/jq/docs/content/manual/v1.4/manual.yml +0 -5
- package/deps/jq/docs/content/manual/v1.5/manual.yml +3 -8
- package/deps/jq/docs/content/manual/v1.6/manual.yml +3 -8
- package/deps/jq/docs/content/manual/v1.7/manual.yml +499 -500
- package/deps/jq/docs/content/manual/v1.8/manual.yml +3858 -0
- package/deps/jq/docs/content/tutorial/default.yml +3 -3
- package/deps/jq/docs/manual_schema.yml +0 -3
- package/deps/jq/docs/public/CNAME +1 -0
- package/deps/jq/docs/templates/index.html.j2 +10 -10
- package/deps/jq/docs/templates/manual.html.j2 +14 -3
- package/deps/jq/docs/templates/shared/_head.html.j2 +8 -3
- package/deps/jq/docs/templates/shared/_navbar.html.j2 +4 -4
- package/deps/jq/jq.1.prebuilt +219 -44
- package/deps/jq/jq.spec +2 -2
- package/deps/jq/libjq.pc.in +1 -1
- package/deps/jq/scripts/version +1 -1
- 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.8.0/jq-1.8.0.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-1.8.0.zip.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-linux64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-osx-amd64.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-win64.exe.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.8.0/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.8.0/sha256sum.txt +26 -0
- package/deps/jq/src/builtin.c +446 -271
- package/deps/jq/src/builtin.jq +25 -60
- package/deps/jq/src/bytecode.h +8 -3
- package/deps/jq/src/compile.c +22 -43
- package/deps/jq/src/compile.h +1 -1
- package/deps/jq/src/execute.c +20 -25
- package/deps/jq/src/jq_test.c +113 -44
- package/deps/jq/src/jv.c +134 -42
- package/deps/jq/src/jv.h +10 -3
- package/deps/jq/src/jv_alloc.c +8 -5
- package/deps/jq/src/jv_alloc.h +0 -1
- package/deps/jq/src/jv_aux.c +41 -8
- package/deps/jq/src/jv_dtoa.c +4 -12
- package/deps/jq/src/jv_dtoa_tsd.c +5 -4
- package/deps/jq/src/jv_dtoa_tsd.h +1 -1
- package/deps/jq/src/jv_parse.c +5 -3
- package/deps/jq/src/jv_print.c +87 -65
- package/deps/jq/src/jv_unicode.c +18 -0
- package/deps/jq/src/jv_unicode.h +2 -0
- package/deps/jq/src/lexer.c +303 -278
- package/deps/jq/src/lexer.h +5 -4
- package/deps/jq/src/lexer.l +8 -2
- package/deps/jq/src/libm.h +15 -5
- package/deps/jq/src/linker.c +6 -4
- package/deps/jq/src/locfile.c +12 -12
- package/deps/jq/src/main.c +204 -270
- package/deps/jq/src/parser.c +1105 -1273
- package/deps/jq/src/parser.y +149 -181
- package/deps/jq/src/util.c +46 -48
- package/deps/jq/src/util.h +1 -1
- package/deps/jq/tests/base64.test +12 -0
- package/deps/jq/tests/jq.test +429 -37
- package/deps/jq/tests/jq_fuzz_load_file.c +1 -0
- package/deps/jq/tests/man.test +46 -13
- package/deps/jq/tests/manonig.test +13 -0
- package/deps/jq/tests/onig.test +40 -2
- package/deps/jq/tests/optional.test +4 -12
- package/deps/jq/tests/setup +5 -1
- package/deps/jq/tests/shtest +358 -130
- package/deps/jq/tests/uri.test +38 -0
- package/deps/jq/tests/uritest +5 -0
- package/deps/jq/{src → vendor}/decNumber/decBasic.c +1 -1
- package/deps/jq/{src → vendor}/decNumber/decCommon.c +1 -1
- package/deps/jq/{src → vendor}/decNumber/decNumber.c +4 -4
- package/deps/jq/{modules → vendor}/oniguruma/CMakeLists.txt +5 -3
- package/deps/jq/{modules → vendor}/oniguruma/HISTORY +45 -7
- package/deps/jq/{modules → vendor}/oniguruma/Makefile.am +1 -1
- package/deps/jq/{modules → vendor}/oniguruma/README.md +10 -23
- package/deps/jq/{modules → vendor}/oniguruma/compile +29 -13
- package/deps/jq/{modules → vendor}/oniguruma/config.guess +91 -27
- package/deps/jq/{modules → vendor}/oniguruma/config.sub +716 -242
- package/deps/jq/{modules → vendor}/oniguruma/configure.ac +2 -2
- package/deps/jq/{modules → vendor}/oniguruma/depcomp +10 -9
- package/deps/jq/{modules → vendor}/oniguruma/doc/API +3 -1
- package/deps/jq/{modules → vendor}/oniguruma/doc/API.ja +3 -1
- package/deps/jq/{modules → vendor}/oniguruma/doc/CALLOUTS.BUILTIN +10 -1
- package/deps/jq/{modules → vendor}/oniguruma/doc/CALLOUTS.BUILTIN.ja +9 -1
- package/deps/jq/{modules → vendor}/oniguruma/doc/RE +12 -13
- package/deps/jq/{modules → vendor}/oniguruma/doc/RE.ja +12 -13
- package/deps/jq/{modules → vendor}/oniguruma/doc/SYNTAX.md +202 -167
- package/deps/jq/{modules → vendor}/oniguruma/doc/UNICODE_PROPERTIES +33 -1
- package/deps/jq/vendor/oniguruma/doc/onig_syn_md.c +667 -0
- package/deps/jq/{modules → vendor}/oniguruma/harnesses/base.c +1 -1
- package/deps/jq/{modules → vendor}/oniguruma/install-sh +9 -9
- package/deps/jq/{modules → vendor}/oniguruma/missing +50 -29
- package/deps/jq/{modules → vendor}/oniguruma/sample/callback_each_match.c +1 -3
- package/deps/jq/vendor/oniguruma/sbom.cdx.json +44 -0
- package/deps/jq/{modules → vendor}/oniguruma/src/ascii.c +4 -1
- package/deps/jq/{modules → vendor}/oniguruma/src/gperf_fold_key_conv.py +4 -4
- package/deps/jq/{modules → vendor}/oniguruma/src/gperf_unfold_key_conv.py +4 -4
- package/deps/jq/vendor/oniguruma/src/make_unicode_egcb.sh +7 -0
- package/deps/jq/{modules → vendor}/oniguruma/src/make_unicode_egcb_data.py +20 -19
- package/deps/jq/{modules → vendor}/oniguruma/src/make_unicode_fold.sh +5 -5
- package/deps/jq/{modules → vendor}/oniguruma/src/make_unicode_fold_data.py +37 -37
- package/deps/jq/{modules → vendor}/oniguruma/src/make_unicode_property.sh +2 -2
- package/deps/jq/{modules → vendor}/oniguruma/src/make_unicode_property_data.py +66 -65
- package/deps/jq/vendor/oniguruma/src/make_unicode_wb.sh +7 -0
- package/deps/jq/{modules → vendor}/oniguruma/src/make_unicode_wb_data.py +20 -19
- package/deps/jq/{modules → vendor}/oniguruma/src/oniguruma.h +6 -3
- package/deps/jq/{modules → vendor}/oniguruma/src/regcomp.c +14 -6
- package/deps/jq/{modules → vendor}/oniguruma/src/regerror.c +2 -2
- package/deps/jq/{modules → vendor}/oniguruma/src/regexec.c +85 -14
- package/deps/jq/{modules → vendor}/oniguruma/src/regint.h +17 -4
- package/deps/jq/{modules → vendor}/oniguruma/src/regparse.c +115 -27
- package/deps/jq/{modules → vendor}/oniguruma/src/regsyntax.c +10 -7
- package/deps/jq/{modules → vendor}/oniguruma/src/st.c +49 -75
- package/deps/jq/{modules → vendor}/oniguruma/src/st.h +3 -10
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_egcb_data.c +54 -49
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_fold1_key.c +1567 -1507
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_fold2_key.c +1 -1
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_fold3_key.c +1 -1
- package/deps/jq/vendor/oniguruma/src/unicode_fold_data.c +1619 -0
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_property_data.c +5520 -4178
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_property_data_posix.c +239 -83
- package/deps/jq/vendor/oniguruma/src/unicode_unfold_key.c +3497 -0
- package/deps/jq/{modules → vendor}/oniguruma/src/unicode_wb_data.c +51 -19
- package/deps/jq/{modules → vendor}/oniguruma/src/utf16_be.c +3 -2
- package/deps/jq/{modules → vendor}/oniguruma/src/utf16_le.c +3 -2
- package/deps/jq/{modules → vendor}/oniguruma/test/test_back.c +3 -3
- package/deps/jq/{modules → vendor}/oniguruma/test/test_options.c +2 -2
- package/deps/jq/{modules → vendor}/oniguruma/test/test_syntax.c +54 -2
- package/deps/jq/{modules → vendor}/oniguruma/test/test_utf8.c +19 -5
- package/deps/jq/{modules → vendor}/oniguruma/test/testc.c +1 -1
- package/deps/jq/{modules → vendor}/oniguruma/test/testp.c +1 -1
- package/deps/jq/{modules → vendor}/oniguruma/test-driver +13 -6
- package/deps/jq/{modules → vendor}/oniguruma/windows/CMakeLists.txt +1 -1
- package/index.d.ts +2 -1
- package/lib/index.js +1 -0
- package/lib/jq.js +2 -1
- package/package.json +4 -3
- package/test/santiy-async.test.js +4 -4
- package/test/santiy.test.js +4 -4
- package/test/template.test.js +6 -6
- package/deps/jq/modules/oniguruma/src/make_unicode_egcb.sh +0 -7
- package/deps/jq/modules/oniguruma/src/make_unicode_wb.sh +0 -7
- package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +0 -1592
- package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +0 -3394
- package/deps/jq/scripts/update-website +0 -30
- /package/deps/jq/{src → vendor}/decNumber/ICU-license.html +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decContext.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decContext.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decDPD.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decDouble.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decDouble.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decNumber.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decNumberLocal.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decPacked.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decPacked.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decQuad.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decQuad.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decSingle.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decSingle.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decimal128.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decimal128.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decimal32.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decimal32.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decimal64.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decimal64.h +0 -0
- /package/deps/jq/{src → vendor}/decNumber/decnumber.pdf +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example1.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example2.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example3.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example4.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example5.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example6.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example7.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/example8.c +0 -0
- /package/deps/jq/{src → vendor}/decNumber/readme.txt +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/.travis.yml +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/AUTHORS +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/COPYING +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/ChangeLog +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/NEWS +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/README +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/README_japanese +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/autogen.sh +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/cmake/Config.cmake.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/doc/CALLOUTS.API +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/doc/CALLOUTS.API.ja +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/doc/FAQ +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/doc/FAQ.ja +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/harnesses/ascii_compatible.dict +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/harnesses/deluxe.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/harnesses/dict_conv.py +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/harnesses/fuzzer.options +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/harnesses/libfuzzer-onig.cpp +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/harnesses/regset.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/index.html +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/index_ja.html +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/m4/.whatever +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/make_win.bat +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/make_win32.bat +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/make_win64.bat +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/onig-config.cmake.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/onig-config.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/oniguruma.pc.cmake.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/oniguruma.pc.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/CMakeLists.txt +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/Makefile.am +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/bug_fix.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/callout.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/count.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/crnl.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/echo.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/encode.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/listcap.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/names.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/posix.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/regset.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/scan.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/simple.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/sql.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/syntax.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/sample/user_property.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/Makefile.am +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/Makefile.windows +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/big5.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/config.h.cmake.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/config.h.win32 +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/config.h.win64 +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/config.h.windows.in +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/cp1251.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/euc_jp.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/euc_jp_prop.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/euc_jp_prop.gperf +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/euc_kr.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/euc_tw.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/gb18030.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_1.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_10.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_11.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_13.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_14.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_15.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_16.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_2.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_3.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_4.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_5.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_6.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_7.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_8.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/iso8859_9.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/koi8.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/koi8_r.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/make_property.sh +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/mktable.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/onig_init.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/oniggnu.h +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/onigposix.h +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regenc.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regenc.h +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regext.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/reggnu.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regparse.h +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regposerr.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regposix.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regtrav.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/regversion.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/sjis.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/sjis_prop.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/sjis_prop.gperf +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/unicode.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/utf32_be.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/utf32_le.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/src/utf8.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/test/CMakeLists.txt +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/test/Makefile.am +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/test/test.sh +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/test/test_regset.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/test/testu.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/stub.c +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/test_back.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/test_regset.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/test_syntax.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/test_utf8.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/testc.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis-ci/testu.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/tis.config +0 -0
- /package/deps/jq/{modules → vendor}/oniguruma/windows/testc.c +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* unicode_wb_data.c: Generated by make_unicode_wb_data.py. */
|
|
2
2
|
/*-
|
|
3
|
-
* Copyright (c) 2019-
|
|
3
|
+
* Copyright (c) 2019-2024 K.Kosako
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
*
|
|
6
6
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* SUCH DAMAGE.
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
|
-
#define WORD_BREAK_PROPERTY_VERSION
|
|
28
|
+
#define WORD_BREAK_PROPERTY_VERSION 160000
|
|
29
29
|
|
|
30
30
|
/*
|
|
31
31
|
ALetter
|
|
@@ -48,7 +48,7 @@ WSegSpace
|
|
|
48
48
|
ZWJ
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
|
-
static int WB_RANGE_NUM =
|
|
51
|
+
static int WB_RANGE_NUM = 1085;
|
|
52
52
|
static WB_RANGE_TYPE WB_RANGES[] = {
|
|
53
53
|
{0x00000a, 0x00000a, WB_LF },
|
|
54
54
|
{0x00000b, 0x00000c, WB_Newline },
|
|
@@ -105,7 +105,7 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
105
105
|
{0x0005ef, 0x0005f2, WB_Hebrew_Letter },
|
|
106
106
|
{0x0005f3, 0x0005f3, WB_ALetter },
|
|
107
107
|
{0x0005f4, 0x0005f4, WB_MidLetter },
|
|
108
|
-
{0x000600, 0x000605,
|
|
108
|
+
{0x000600, 0x000605, WB_Numeric },
|
|
109
109
|
{0x00060c, 0x00060d, WB_MidNum },
|
|
110
110
|
{0x000610, 0x00061a, WB_Extend },
|
|
111
111
|
{0x00061c, 0x00061c, WB_Format },
|
|
@@ -119,7 +119,7 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
119
119
|
{0x000671, 0x0006d3, WB_ALetter },
|
|
120
120
|
{0x0006d5, 0x0006d5, WB_ALetter },
|
|
121
121
|
{0x0006d6, 0x0006dc, WB_Extend },
|
|
122
|
-
{0x0006dd, 0x0006dd,
|
|
122
|
+
{0x0006dd, 0x0006dd, WB_Numeric },
|
|
123
123
|
{0x0006df, 0x0006e4, WB_Extend },
|
|
124
124
|
{0x0006e5, 0x0006e6, WB_ALetter },
|
|
125
125
|
{0x0006e7, 0x0006e8, WB_Extend },
|
|
@@ -128,8 +128,7 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
128
128
|
{0x0006f0, 0x0006f9, WB_Numeric },
|
|
129
129
|
{0x0006fa, 0x0006fc, WB_ALetter },
|
|
130
130
|
{0x0006ff, 0x0006ff, WB_ALetter },
|
|
131
|
-
{0x00070f,
|
|
132
|
-
{0x000710, 0x000710, WB_ALetter },
|
|
131
|
+
{0x00070f, 0x000710, WB_ALetter },
|
|
133
132
|
{0x000711, 0x000711, WB_Extend },
|
|
134
133
|
{0x000712, 0x00072f, WB_ALetter },
|
|
135
134
|
{0x000730, 0x00074a, WB_Extend },
|
|
@@ -156,11 +155,11 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
156
155
|
{0x000860, 0x00086a, WB_ALetter },
|
|
157
156
|
{0x000870, 0x000887, WB_ALetter },
|
|
158
157
|
{0x000889, 0x00088e, WB_ALetter },
|
|
159
|
-
{0x000890, 0x000891,
|
|
160
|
-
{
|
|
158
|
+
{0x000890, 0x000891, WB_Numeric },
|
|
159
|
+
{0x000897, 0x00089f, WB_Extend },
|
|
161
160
|
{0x0008a0, 0x0008c9, WB_ALetter },
|
|
162
161
|
{0x0008ca, 0x0008e1, WB_Extend },
|
|
163
|
-
{0x0008e2, 0x0008e2,
|
|
162
|
+
{0x0008e2, 0x0008e2, WB_Numeric },
|
|
164
163
|
{0x0008e3, 0x000903, WB_Extend },
|
|
165
164
|
{0x000904, 0x000939, WB_ALetter },
|
|
166
165
|
{0x00093a, 0x00093c, WB_Extend },
|
|
@@ -419,7 +418,7 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
419
418
|
{0x001920, 0x00192b, WB_Extend },
|
|
420
419
|
{0x001930, 0x00193b, WB_Extend },
|
|
421
420
|
{0x001946, 0x00194f, WB_Numeric },
|
|
422
|
-
{0x0019d0,
|
|
421
|
+
{0x0019d0, 0x0019da, WB_Numeric },
|
|
423
422
|
{0x001a00, 0x001a16, WB_ALetter },
|
|
424
423
|
{0x001a17, 0x001a1b, WB_Extend },
|
|
425
424
|
{0x001a55, 0x001a5e, WB_Extend },
|
|
@@ -447,7 +446,7 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
447
446
|
{0x001c4d, 0x001c4f, WB_ALetter },
|
|
448
447
|
{0x001c50, 0x001c59, WB_Numeric },
|
|
449
448
|
{0x001c5a, 0x001c7d, WB_ALetter },
|
|
450
|
-
{0x001c80,
|
|
449
|
+
{0x001c80, 0x001c8a, WB_ALetter },
|
|
451
450
|
{0x001c90, 0x001cba, WB_ALetter },
|
|
452
451
|
{0x001cbd, 0x001cbf, WB_ALetter },
|
|
453
452
|
{0x001cd0, 0x001cd2, WB_Extend },
|
|
@@ -565,10 +564,10 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
565
564
|
{0x00a69e, 0x00a69f, WB_Extend },
|
|
566
565
|
{0x00a6a0, 0x00a6ef, WB_ALetter },
|
|
567
566
|
{0x00a6f0, 0x00a6f1, WB_Extend },
|
|
568
|
-
{0x00a708,
|
|
567
|
+
{0x00a708, 0x00a7cd, WB_ALetter },
|
|
569
568
|
{0x00a7d0, 0x00a7d1, WB_ALetter },
|
|
570
569
|
{0x00a7d3, 0x00a7d3, WB_ALetter },
|
|
571
|
-
{0x00a7d5,
|
|
570
|
+
{0x00a7d5, 0x00a7dc, WB_ALetter },
|
|
572
571
|
{0x00a7f2, 0x00a801, WB_ALetter },
|
|
573
572
|
{0x00a802, 0x00a802, WB_Extend },
|
|
574
573
|
{0x00a803, 0x00a805, WB_ALetter },
|
|
@@ -648,9 +647,7 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
648
647
|
{0x00fd92, 0x00fdc7, WB_ALetter },
|
|
649
648
|
{0x00fdf0, 0x00fdfb, WB_ALetter },
|
|
650
649
|
{0x00fe00, 0x00fe0f, WB_Extend },
|
|
651
|
-
{0x00fe10, 0x00fe10, WB_MidNum },
|
|
652
650
|
{0x00fe13, 0x00fe13, WB_MidLetter },
|
|
653
|
-
{0x00fe14, 0x00fe14, WB_MidNum },
|
|
654
651
|
{0x00fe20, 0x00fe2f, WB_Extend },
|
|
655
652
|
{0x00fe33, 0x00fe34, WB_ExtendNumLet },
|
|
656
653
|
{0x00fe4d, 0x00fe4f, WB_ExtendNumLet },
|
|
@@ -712,6 +709,7 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
712
709
|
{0x0105a3, 0x0105b1, WB_ALetter },
|
|
713
710
|
{0x0105b3, 0x0105b9, WB_ALetter },
|
|
714
711
|
{0x0105bb, 0x0105bc, WB_ALetter },
|
|
712
|
+
{0x0105c0, 0x0105f3, WB_ALetter },
|
|
715
713
|
{0x010600, 0x010736, WB_ALetter },
|
|
716
714
|
{0x010740, 0x010755, WB_ALetter },
|
|
717
715
|
{0x010760, 0x010767, WB_ALetter },
|
|
@@ -756,10 +754,15 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
756
754
|
{0x010d00, 0x010d23, WB_ALetter },
|
|
757
755
|
{0x010d24, 0x010d27, WB_Extend },
|
|
758
756
|
{0x010d30, 0x010d39, WB_Numeric },
|
|
757
|
+
{0x010d40, 0x010d49, WB_Numeric },
|
|
758
|
+
{0x010d4a, 0x010d65, WB_ALetter },
|
|
759
|
+
{0x010d69, 0x010d6d, WB_Extend },
|
|
760
|
+
{0x010d6f, 0x010d85, WB_ALetter },
|
|
759
761
|
{0x010e80, 0x010ea9, WB_ALetter },
|
|
760
762
|
{0x010eab, 0x010eac, WB_Extend },
|
|
761
763
|
{0x010eb0, 0x010eb1, WB_ALetter },
|
|
762
|
-
{
|
|
764
|
+
{0x010ec2, 0x010ec4, WB_ALetter },
|
|
765
|
+
{0x010efc, 0x010eff, WB_Extend },
|
|
763
766
|
{0x010f00, 0x010f1c, WB_ALetter },
|
|
764
767
|
{0x010f27, 0x010f27, WB_ALetter },
|
|
765
768
|
{0x010f30, 0x010f45, WB_ALetter },
|
|
@@ -779,9 +782,9 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
779
782
|
{0x01107f, 0x011082, WB_Extend },
|
|
780
783
|
{0x011083, 0x0110af, WB_ALetter },
|
|
781
784
|
{0x0110b0, 0x0110ba, WB_Extend },
|
|
782
|
-
{0x0110bd, 0x0110bd,
|
|
785
|
+
{0x0110bd, 0x0110bd, WB_Numeric },
|
|
783
786
|
{0x0110c2, 0x0110c2, WB_Extend },
|
|
784
|
-
{0x0110cd, 0x0110cd,
|
|
787
|
+
{0x0110cd, 0x0110cd, WB_Numeric },
|
|
785
788
|
{0x0110d0, 0x0110e8, WB_ALetter },
|
|
786
789
|
{0x0110f0, 0x0110f9, WB_Numeric },
|
|
787
790
|
{0x011100, 0x011102, WB_Extend },
|
|
@@ -835,6 +838,20 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
835
838
|
{0x011362, 0x011363, WB_Extend },
|
|
836
839
|
{0x011366, 0x01136c, WB_Extend },
|
|
837
840
|
{0x011370, 0x011374, WB_Extend },
|
|
841
|
+
{0x011380, 0x011389, WB_ALetter },
|
|
842
|
+
{0x01138b, 0x01138b, WB_ALetter },
|
|
843
|
+
{0x01138e, 0x01138e, WB_ALetter },
|
|
844
|
+
{0x011390, 0x0113b5, WB_ALetter },
|
|
845
|
+
{0x0113b7, 0x0113b7, WB_ALetter },
|
|
846
|
+
{0x0113b8, 0x0113c0, WB_Extend },
|
|
847
|
+
{0x0113c2, 0x0113c2, WB_Extend },
|
|
848
|
+
{0x0113c5, 0x0113c5, WB_Extend },
|
|
849
|
+
{0x0113c7, 0x0113ca, WB_Extend },
|
|
850
|
+
{0x0113cc, 0x0113d0, WB_Extend },
|
|
851
|
+
{0x0113d1, 0x0113d1, WB_ALetter },
|
|
852
|
+
{0x0113d2, 0x0113d2, WB_Extend },
|
|
853
|
+
{0x0113d3, 0x0113d3, WB_ALetter },
|
|
854
|
+
{0x0113e1, 0x0113e2, WB_Extend },
|
|
838
855
|
{0x011400, 0x011434, WB_ALetter },
|
|
839
856
|
{0x011435, 0x011446, WB_Extend },
|
|
840
857
|
{0x011447, 0x01144a, WB_ALetter },
|
|
@@ -859,6 +876,7 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
859
876
|
{0x0116ab, 0x0116b7, WB_Extend },
|
|
860
877
|
{0x0116b8, 0x0116b8, WB_ALetter },
|
|
861
878
|
{0x0116c0, 0x0116c9, WB_Numeric },
|
|
879
|
+
{0x0116d0, 0x0116e3, WB_Numeric },
|
|
862
880
|
{0x01171d, 0x01172b, WB_Extend },
|
|
863
881
|
{0x011730, 0x011739, WB_Numeric },
|
|
864
882
|
{0x011800, 0x01182b, WB_ALetter },
|
|
@@ -898,6 +916,8 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
898
916
|
{0x011a8a, 0x011a99, WB_Extend },
|
|
899
917
|
{0x011a9d, 0x011a9d, WB_ALetter },
|
|
900
918
|
{0x011ab0, 0x011af8, WB_ALetter },
|
|
919
|
+
{0x011bc0, 0x011be0, WB_ALetter },
|
|
920
|
+
{0x011bf0, 0x011bf9, WB_Numeric },
|
|
901
921
|
{0x011c00, 0x011c08, WB_ALetter },
|
|
902
922
|
{0x011c0a, 0x011c2e, WB_ALetter },
|
|
903
923
|
{0x011c2f, 0x011c36, WB_Extend },
|
|
@@ -935,6 +955,7 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
935
955
|
{0x011f34, 0x011f3a, WB_Extend },
|
|
936
956
|
{0x011f3e, 0x011f42, WB_Extend },
|
|
937
957
|
{0x011f50, 0x011f59, WB_Numeric },
|
|
958
|
+
{0x011f5a, 0x011f5a, WB_Extend },
|
|
938
959
|
{0x011fb0, 0x011fb0, WB_ALetter },
|
|
939
960
|
{0x012000, 0x012399, WB_ALetter },
|
|
940
961
|
{0x012400, 0x01246e, WB_ALetter },
|
|
@@ -945,7 +966,11 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
945
966
|
{0x013440, 0x013440, WB_Extend },
|
|
946
967
|
{0x013441, 0x013446, WB_ALetter },
|
|
947
968
|
{0x013447, 0x013455, WB_Extend },
|
|
969
|
+
{0x013460, 0x0143fa, WB_ALetter },
|
|
948
970
|
{0x014400, 0x014646, WB_ALetter },
|
|
971
|
+
{0x016100, 0x01611d, WB_ALetter },
|
|
972
|
+
{0x01611e, 0x01612f, WB_Extend },
|
|
973
|
+
{0x016130, 0x016139, WB_Numeric },
|
|
949
974
|
{0x016800, 0x016a38, WB_ALetter },
|
|
950
975
|
{0x016a40, 0x016a5e, WB_ALetter },
|
|
951
976
|
{0x016a60, 0x016a69, WB_Numeric },
|
|
@@ -959,6 +984,8 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
959
984
|
{0x016b50, 0x016b59, WB_Numeric },
|
|
960
985
|
{0x016b63, 0x016b77, WB_ALetter },
|
|
961
986
|
{0x016b7d, 0x016b8f, WB_ALetter },
|
|
987
|
+
{0x016d40, 0x016d6c, WB_ALetter },
|
|
988
|
+
{0x016d70, 0x016d79, WB_Numeric },
|
|
962
989
|
{0x016e40, 0x016e7f, WB_ALetter },
|
|
963
990
|
{0x016f00, 0x016f4a, WB_ALetter },
|
|
964
991
|
{0x016f4f, 0x016f4f, WB_Extend },
|
|
@@ -983,6 +1010,7 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
983
1010
|
{0x01bc90, 0x01bc99, WB_ALetter },
|
|
984
1011
|
{0x01bc9d, 0x01bc9e, WB_Extend },
|
|
985
1012
|
{0x01bca0, 0x01bca3, WB_Format },
|
|
1013
|
+
{0x01ccf0, 0x01ccf9, WB_Numeric },
|
|
986
1014
|
{0x01cf00, 0x01cf2d, WB_Extend },
|
|
987
1015
|
{0x01cf30, 0x01cf46, WB_Extend },
|
|
988
1016
|
{0x01d165, 0x01d169, WB_Extend },
|
|
@@ -1051,6 +1079,10 @@ static WB_RANGE_TYPE WB_RANGES[] = {
|
|
|
1051
1079
|
{0x01e4d0, 0x01e4eb, WB_ALetter },
|
|
1052
1080
|
{0x01e4ec, 0x01e4ef, WB_Extend },
|
|
1053
1081
|
{0x01e4f0, 0x01e4f9, WB_Numeric },
|
|
1082
|
+
{0x01e5d0, 0x01e5ed, WB_ALetter },
|
|
1083
|
+
{0x01e5ee, 0x01e5ef, WB_Extend },
|
|
1084
|
+
{0x01e5f0, 0x01e5f0, WB_ALetter },
|
|
1085
|
+
{0x01e5f1, 0x01e5fa, WB_Numeric },
|
|
1054
1086
|
{0x01e7e0, 0x01e7e6, WB_ALetter },
|
|
1055
1087
|
{0x01e7e8, 0x01e7eb, WB_ALetter },
|
|
1056
1088
|
{0x01e7ed, 0x01e7ee, WB_ALetter },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
utf16_be.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2024 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -43,8 +43,9 @@ init(void)
|
|
|
43
43
|
|
|
44
44
|
enc = ONIG_ENCODING_UTF16_BE;
|
|
45
45
|
|
|
46
|
-
name = "\000F\000A\000I\000L\000\000";
|
|
46
|
+
name = "\000F\000A\000I\000L\000\000"; BC0_P(name, fail);
|
|
47
47
|
name = "\000M\000I\000S\000M\000A\000T\000C\000H\000\000"; BC0_P(name, mismatch);
|
|
48
|
+
name = "\000S\000K\000I\000P\000\000"; BC0_P(name, skip);
|
|
48
49
|
|
|
49
50
|
name = "\000M\000A\000X\000\000";
|
|
50
51
|
args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
utf16_le.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2024 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -41,8 +41,9 @@ init(void)
|
|
|
41
41
|
|
|
42
42
|
enc = ONIG_ENCODING_UTF16_LE;
|
|
43
43
|
|
|
44
|
-
name = "F\000A\000I\000L\000\000\000";
|
|
44
|
+
name = "F\000A\000I\000L\000\000\000"; BC0_P(name, fail);
|
|
45
45
|
name = "M\000I\000S\000M\000A\000T\000C\000H\000\000\000"; BC0_P(name, mismatch);
|
|
46
|
+
name = "S\000K\000I\000P\000\000\000"; BC0_P(name, skip);
|
|
46
47
|
|
|
47
48
|
name = "M\000A\000X\000\000\000";
|
|
48
49
|
args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* test_back.c
|
|
3
|
-
* Copyright (c) 2020-
|
|
3
|
+
* Copyright (c) 2020-2024 K.Kosako
|
|
4
4
|
*/
|
|
5
5
|
#ifdef ONIG_ESCAPE_UCHAR_COLLISION
|
|
6
6
|
#undef ONIG_ESCAPE_UCHAR_COLLISION
|
|
@@ -64,7 +64,7 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not,
|
|
|
64
64
|
r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)),
|
|
65
65
|
(UChar* )(str + SLEN(str)), (UChar* )str,
|
|
66
66
|
region, ONIG_OPTION_NONE);
|
|
67
|
-
if (r < ONIG_MISMATCH) {
|
|
67
|
+
if (r < ONIG_MISMATCH || error_no < ONIG_MISMATCH) {
|
|
68
68
|
char s[ONIG_MAX_ERROR_MESSAGE_LEN];
|
|
69
69
|
|
|
70
70
|
if (error_no == 0) {
|
|
@@ -609,7 +609,7 @@ extern int main(int argc, char* argv[])
|
|
|
609
609
|
n("\\A(a|b\\g<1>c)\\k<1+3>\\z", "bbaccb");
|
|
610
610
|
x2("(?i)\\A(a|b\\g<1>c)\\k<1+2>\\z", "bBACcbac", 0, 8);
|
|
611
611
|
x2("(?i)(?<X>aa)|(?<X>bb)\\k<X>", "BBbb", 0, 4);
|
|
612
|
-
x2("(?:\\k'+1'B|(A)C)*", "ACAB", 4, 4); // relative backref by
|
|
612
|
+
x2("(?:\\k'+1'B|(A)C)*", "ACAB", 4, 4); // relative backref by positive number
|
|
613
613
|
x2("\\g<+2>(abc)(ABC){0}", "ABCabc", 0, 6); // relative call by positive number
|
|
614
614
|
x2("A\\g'0'|B()", "AAAAB", 4, 5);
|
|
615
615
|
x3("(A\\g'0')|B", "AAAAB", -1, -1, 1);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* test_options.c
|
|
3
|
-
* Copyright (c) 2020-
|
|
3
|
+
* Copyright (c) 2020-2024 K.Kosako
|
|
4
4
|
*/
|
|
5
5
|
#ifdef ONIG_ESCAPE_UCHAR_COLLISION
|
|
6
6
|
#undef ONIG_ESCAPE_UCHAR_COLLISION
|
|
@@ -64,7 +64,7 @@ static void xx(OnigOptionType options, char* pattern, char* str,
|
|
|
64
64
|
r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)),
|
|
65
65
|
(UChar* )str, (UChar* )(str + SLEN(str)),
|
|
66
66
|
region, options);
|
|
67
|
-
if (r < ONIG_MISMATCH) {
|
|
67
|
+
if (r < ONIG_MISMATCH || error_no < ONIG_MISMATCH) {
|
|
68
68
|
char s[ONIG_MAX_ERROR_MESSAGE_LEN];
|
|
69
69
|
|
|
70
70
|
if (error_no == 0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* test_syntax.c
|
|
3
|
-
* Copyright (c) 2019-
|
|
3
|
+
* Copyright (c) 2019-2024 K.Kosako
|
|
4
4
|
*/
|
|
5
5
|
#ifdef ONIG_ESCAPE_UCHAR_COLLISION
|
|
6
6
|
#undef ONIG_ESCAPE_UCHAR_COLLISION
|
|
@@ -65,7 +65,7 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not,
|
|
|
65
65
|
r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)),
|
|
66
66
|
(UChar* )str, (UChar* )(str + SLEN(str)),
|
|
67
67
|
region, ONIG_OPTION_NONE);
|
|
68
|
-
if (r < ONIG_MISMATCH) {
|
|
68
|
+
if (r < ONIG_MISMATCH || error_no < ONIG_MISMATCH) {
|
|
69
69
|
char s[ONIG_MAX_ERROR_MESSAGE_LEN];
|
|
70
70
|
|
|
71
71
|
if (error_no == 0) {
|
|
@@ -205,6 +205,16 @@ static int test_look_behind()
|
|
|
205
205
|
x2("(?<=a|b)c", "abc", 2, 3);
|
|
206
206
|
x2("(?<=a|(.))\\1", "abcc", 3, 4);
|
|
207
207
|
|
|
208
|
+
// #295
|
|
209
|
+
n("(?<!RMA)X", "123RMAX");
|
|
210
|
+
x2("(?<=RMA)X", "123RMAX", 6, 7);
|
|
211
|
+
n("(?<!RMA)$", "123RMA");
|
|
212
|
+
x2("(?<=RMA)$", "123RMA", 6, 6);
|
|
213
|
+
n("(?<!RMA)\\Z", "123RMA");
|
|
214
|
+
x2("(?<=RMA)\\Z", "123RMA", 6, 6);
|
|
215
|
+
n("(?<!RMA)\\z", "123RMA");
|
|
216
|
+
x2("(?<=RMA)\\z", "123RMA", 6, 6);
|
|
217
|
+
|
|
208
218
|
// following is not match in Perl and Java
|
|
209
219
|
//x2("(?<=a|(.))\\1", "aa", 1, 2);
|
|
210
220
|
|
|
@@ -213,6 +223,20 @@ static int test_look_behind()
|
|
|
213
223
|
return 0;
|
|
214
224
|
}
|
|
215
225
|
|
|
226
|
+
static int test_char_class()
|
|
227
|
+
{
|
|
228
|
+
x2("[\\w\\-%]", "a", 0, 1);
|
|
229
|
+
x2("[\\w\\-%]", "%", 0, 1);
|
|
230
|
+
x2("[\\w\\-%]", "-", 0, 1);
|
|
231
|
+
|
|
232
|
+
//e("[\\w-%]", "-", ONIGERR_UNMATCHED_RANGE_SPECIFIER_IN_CHAR_CLASS);
|
|
233
|
+
x2("[\\w-%]", "a", 0, 1);
|
|
234
|
+
x2("[\\w-%]", "%", 0, 1);
|
|
235
|
+
x2("[\\w-%]", "-", 0, 1);
|
|
236
|
+
|
|
237
|
+
return 0;
|
|
238
|
+
}
|
|
239
|
+
|
|
216
240
|
static int test_python_option_ascii()
|
|
217
241
|
{
|
|
218
242
|
x2("(?a)\\w", "a", 0, 1);
|
|
@@ -301,6 +325,7 @@ extern int main(int argc, char* argv[])
|
|
|
301
325
|
test_isolated_option();
|
|
302
326
|
test_prec_read();
|
|
303
327
|
test_look_behind();
|
|
328
|
+
test_char_class();
|
|
304
329
|
e("(?<=ab|(.))\\1", "abb", ONIGERR_INVALID_LOOK_BEHIND_PATTERN); // Variable length lookbehind not implemented in Perl 5.26.1
|
|
305
330
|
|
|
306
331
|
x3("()", "abc", 0, 0, 1);
|
|
@@ -315,6 +340,10 @@ extern int main(int argc, char* argv[])
|
|
|
315
340
|
test_isolated_option();
|
|
316
341
|
test_prec_read();
|
|
317
342
|
test_look_behind();
|
|
343
|
+
test_char_class();
|
|
344
|
+
|
|
345
|
+
n("[[:digit:]]", "1");
|
|
346
|
+
x2("[[:digit:]]", "g", 0, 1);
|
|
318
347
|
x2("(?<=ab|(.))\\1", "abb", 2, 3);
|
|
319
348
|
n("(?<!ab|b)c", "bbc");
|
|
320
349
|
n("(?<!b|ab)c", "bbc");
|
|
@@ -325,6 +354,9 @@ extern int main(int argc, char* argv[])
|
|
|
325
354
|
test_python_option_ascii();
|
|
326
355
|
test_python_z();
|
|
327
356
|
test_python_single_multi();
|
|
357
|
+
|
|
358
|
+
n("[[:digit:]]", "1");
|
|
359
|
+
x2("[[:digit:]]", "g]", 0, 2);
|
|
328
360
|
x2("(?P<name>abc)", "abc", 0, 3);
|
|
329
361
|
x2("(?P<name>abc)(?P=name)", "abcabc", 0, 6);
|
|
330
362
|
x2("(?P<name>abc){0}(?P>name)", "abc", 0, 3);
|
|
@@ -340,6 +372,26 @@ extern int main(int argc, char* argv[])
|
|
|
340
372
|
test_BRE_anchors();
|
|
341
373
|
x2("zz\\|^ab", "ab", 0, 2);
|
|
342
374
|
x2("ab$\\|zz", "ab", 0, 2);
|
|
375
|
+
x2("*", "*", 0, 1);
|
|
376
|
+
x2("^*", "*", 0, 1);
|
|
377
|
+
x2("abc\\|?", "?", 0, 1);
|
|
378
|
+
x2("\\{1\\}", "{1}", 0, 3);
|
|
379
|
+
x2("^\\{1\\}", "{1}", 0, 3);
|
|
380
|
+
x2("\\(\\{1\\}\\)", "{1}", 0, 3);
|
|
381
|
+
x2("^\\(\\{1\\}\\)", "{1}", 0, 3);
|
|
382
|
+
x2("{1}", "{1}", 0, 3);
|
|
383
|
+
x2("^{1}", "{1}", 0, 3);
|
|
384
|
+
x2("\\({1}\\)", "{1}", 0, 3);
|
|
385
|
+
x2("^\\({1}\\)", "{1}", 0, 3);
|
|
386
|
+
x2("{1,2}", "{1,2}", 0, 5);
|
|
387
|
+
x2("^{1,2}", "{1,2}", 0, 5);
|
|
388
|
+
x2("\\({1,2}\\)", "{1,2}", 0, 5);
|
|
389
|
+
x2("^\\({1,2}\\)", "{1,2}", 0, 5);
|
|
390
|
+
|
|
391
|
+
Syntax = ONIG_SYNTAX_EMACS;
|
|
392
|
+
x2("\\(abc\\)", "abc", 0, 3);
|
|
393
|
+
x2("\\(?:abc\\)", "abc", 0, 3);
|
|
394
|
+
x3("\\(?:abc\\)\\(xyz\\)", "abcxyz", 3, 6, 1);
|
|
343
395
|
|
|
344
396
|
Syntax = ONIG_SYNTAX_PERL_NG;
|
|
345
397
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* test_utf8.c
|
|
3
|
-
* Copyright (c) 2019-
|
|
3
|
+
* Copyright (c) 2019-2024 K.Kosako
|
|
4
4
|
*/
|
|
5
5
|
#ifdef ONIG_ESCAPE_UCHAR_COLLISION
|
|
6
6
|
#undef ONIG_ESCAPE_UCHAR_COLLISION
|
|
@@ -64,7 +64,7 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not,
|
|
|
64
64
|
r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)),
|
|
65
65
|
(UChar* )str, (UChar* )(str + SLEN(str)),
|
|
66
66
|
region, ONIG_OPTION_NONE);
|
|
67
|
-
if (r < ONIG_MISMATCH) {
|
|
67
|
+
if (r < ONIG_MISMATCH || error_no < ONIG_MISMATCH) {
|
|
68
68
|
char s[ONIG_MAX_ERROR_MESSAGE_LEN];
|
|
69
69
|
|
|
70
70
|
if (error_no == 0) {
|
|
@@ -752,7 +752,7 @@ extern int main(int argc, char* argv[])
|
|
|
752
752
|
n("\\A(a|b\\g<1>c)\\k<1+3>\\z", "bbaccb");
|
|
753
753
|
x2("(?i)\\A(a|b\\g<1>c)\\k<1+2>\\z", "bBACcbac", 0, 8);
|
|
754
754
|
x2("(?i)(?<X>aa)|(?<X>bb)\\k<X>", "BBbb", 0, 4);
|
|
755
|
-
x2("(?:\\k'+1'B|(A)C)*", "ACAB", 0, 4); // relative backref by
|
|
755
|
+
x2("(?:\\k'+1'B|(A)C)*", "ACAB", 0, 4); // relative backref by positive number
|
|
756
756
|
x2("\\g<+2>(abc)(ABC){0}", "ABCabc", 0, 6); // relative call by positive number
|
|
757
757
|
x2("A\\g'0'|B()", "AAAAB", 0, 5);
|
|
758
758
|
x3("(A\\g'0')|B", "AAAAB", 0, 5, 1);
|
|
@@ -1481,6 +1481,15 @@ extern int main(int argc, char* argv[])
|
|
|
1481
1481
|
n("(\\k<2>)|(?<=(\\k<1>))", "");
|
|
1482
1482
|
x2("(a|\\k<2>)|(?<=(\\k<1>))", "a", 0, 1);
|
|
1483
1483
|
x2("(a|\\k<2>)|(?<=b(\\k<1>))", "ba", 1, 2);
|
|
1484
|
+
// #295
|
|
1485
|
+
n("(?<!RMA)X", "123RMAX");
|
|
1486
|
+
x2("(?<=RMA)X", "123RMAX", 6, 7);
|
|
1487
|
+
n("(?<!RMA)$", "123RMA");
|
|
1488
|
+
x2("(?<=RMA)$", "123RMA", 6, 6);
|
|
1489
|
+
n("(?<!RMA)\\Z", "123RMA");
|
|
1490
|
+
x2("(?<=RMA)\\Z", "123RMA", 6, 6);
|
|
1491
|
+
n("(?<!RMA)\\z", "123RMA");
|
|
1492
|
+
x2("(?<=RMA)\\z", "123RMA", 6, 6);
|
|
1484
1493
|
|
|
1485
1494
|
x2("((?(a)\\g<1>|b))", "aab", 0, 3);
|
|
1486
1495
|
x2("((?(a)\\g<1>))", "aab", 0, 2);
|
|
@@ -1639,8 +1648,8 @@ extern int main(int argc, char* argv[])
|
|
|
1639
1648
|
e("()(?Ii)", "", ONIGERR_INVALID_GROUP_OPTION);
|
|
1640
1649
|
e("(?:)(?Ii)", "", ONIGERR_INVALID_GROUP_OPTION);
|
|
1641
1650
|
e("^(?Ii)", "", ONIGERR_INVALID_GROUP_OPTION);
|
|
1642
|
-
|
|
1643
|
-
|
|
1651
|
+
x2("(?Ii)$", "", 0, 0);
|
|
1652
|
+
x2("(?Ii)|", "", 0, 0);
|
|
1644
1653
|
e("(?Ii)|(?Ii)", "", ONIGERR_INVALID_GROUP_OPTION);
|
|
1645
1654
|
x2("a*", "aabcaaa", 0, 2);
|
|
1646
1655
|
x2("(?L)a*", "aabcaaa", 4, 7);
|
|
@@ -1652,6 +1661,10 @@ extern int main(int argc, char* argv[])
|
|
|
1652
1661
|
e("(?C)(..)\\1", "abab", ONIGERR_INVALID_BACKREF);
|
|
1653
1662
|
e("(?-C)", "", ONIGERR_INVALID_GROUP_OPTION);
|
|
1654
1663
|
e("(?C)(.)(.)(.)(?<name>.)\\1", "abcdd", ONIGERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED);
|
|
1664
|
+
x2("(?L)z|a\\g<0>a", "aazaa", 0, 5);
|
|
1665
|
+
x2("(?Li)z|a\\g<0>a", "aazAA", 0, 5);
|
|
1666
|
+
x2("(?Li:z|a\\g<0>a)", "aazAA", 0, 5);
|
|
1667
|
+
x2("(?L)z|a\\g<0>a", "aazaaaazaaaa", 3, 12);
|
|
1655
1668
|
|
|
1656
1669
|
// Issue #264
|
|
1657
1670
|
n("(?iI)s", "\xc5\xbf");
|
|
@@ -1749,6 +1762,7 @@ extern int main(int argc, char* argv[])
|
|
|
1749
1762
|
e("(?m:*)", "abc", ONIGERR_TARGET_OF_REPEAT_OPERATOR_NOT_SPECIFIED);
|
|
1750
1763
|
x2("(?:)*", "abc", 0, 0);
|
|
1751
1764
|
e("^*", "abc", ONIGERR_TARGET_OF_REPEAT_OPERATOR_INVALID);
|
|
1765
|
+
e("abc|?", "", ONIGERR_TARGET_OF_REPEAT_OPERATOR_NOT_SPECIFIED);
|
|
1752
1766
|
|
|
1753
1767
|
fprintf(stdout,
|
|
1754
1768
|
"\nRESULT SUCC: %4d, FAIL: %d, ERROR: %d (by Oniguruma %s)\n",
|
|
@@ -520,7 +520,7 @@ extern int main(int argc, char* argv[])
|
|
|
520
520
|
n("[0-9-a]", ":"); // PR#44
|
|
521
521
|
x3("(\\(((?:[^(]|\\g<1>)*)\\))", "(abc)(abc)", 1, 4, 2); // PR#43
|
|
522
522
|
x2("\\o{101}", "A", 0, 1);
|
|
523
|
-
x2("(?:\\k'+1'B|(A)C)*", "ACAB", 0, 4); // relative backref by
|
|
523
|
+
x2("(?:\\k'+1'B|(A)C)*", "ACAB", 0, 4); // relative backref by positive number
|
|
524
524
|
x2("\\g<+2>(abc)(ABC){0}", "ABCabc", 0, 6); // relative call by positive number
|
|
525
525
|
x2("A\\g'0'|B()", "AAAAB", 0, 5);
|
|
526
526
|
x3("(A\\g'0')|B", "AAAAB", 0, 5, 1);
|
|
@@ -503,7 +503,7 @@ extern int main(int argc, char* argv[])
|
|
|
503
503
|
n("[0-9-a]", ":"); // PR#44
|
|
504
504
|
x3("(\\(((?:[^(]|\\g<1>)*)\\))", "(abc)(abc)", 1, 4, 2); // PR#43
|
|
505
505
|
x2("\\o{101}", "A", 0, 1);
|
|
506
|
-
x2("(?:\\k'+1'B|(A)C)*", "ACAB", 0, 4); // relative backref by
|
|
506
|
+
x2("(?:\\k'+1'B|(A)C)*", "ACAB", 0, 4); // relative backref by positive number
|
|
507
507
|
x2("\\g<+2>(abc)(ABC){0}", "ABCabc", 0, 6); // relative call by positive number
|
|
508
508
|
x2("A\\g'0'|B()", "AAAAB", 0, 5);
|
|
509
509
|
x3("(A\\g'0')|B", "AAAAB", 0, 5, 1);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#! /bin/sh
|
|
2
2
|
# test-driver - basic testsuite driver script.
|
|
3
3
|
|
|
4
|
-
scriptversion=
|
|
4
|
+
scriptversion=2025-06-18.21; # UTC
|
|
5
5
|
|
|
6
|
-
# Copyright (C) 2011-
|
|
6
|
+
# Copyright (C) 2011-2025 Free Software Foundation, Inc.
|
|
7
7
|
#
|
|
8
8
|
# This program is free software; you can redistribute it and/or modify
|
|
9
9
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -44,11 +44,16 @@ print_usage ()
|
|
|
44
44
|
Usage:
|
|
45
45
|
test-driver --test-name NAME --log-file PATH --trs-file PATH
|
|
46
46
|
[--expect-failure {yes|no}] [--color-tests {yes|no}]
|
|
47
|
+
[--collect-skipped-logs {yes|no}]
|
|
47
48
|
[--enable-hard-errors {yes|no}] [--]
|
|
48
49
|
TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
|
|
49
50
|
|
|
50
51
|
The '--test-name', '--log-file' and '--trs-file' options are mandatory.
|
|
51
52
|
See the GNU Automake documentation for information.
|
|
53
|
+
|
|
54
|
+
Report bugs to <bug-automake@gnu.org>.
|
|
55
|
+
GNU Automake home page: <https://www.gnu.org/software/automake/>.
|
|
56
|
+
General help using GNU software: <https://www.gnu.org/gethelp/>.
|
|
52
57
|
END
|
|
53
58
|
}
|
|
54
59
|
|
|
@@ -57,15 +62,17 @@ log_file= # Where to save the output of the test script.
|
|
|
57
62
|
trs_file= # Where to save the metadata of the test run.
|
|
58
63
|
expect_failure=no
|
|
59
64
|
color_tests=no
|
|
65
|
+
collect_skipped_logs=yes
|
|
60
66
|
enable_hard_errors=yes
|
|
61
67
|
while test $# -gt 0; do
|
|
62
68
|
case $1 in
|
|
63
69
|
--help) print_usage; exit $?;;
|
|
64
|
-
--version) echo "test-driver $scriptversion"; exit $?;;
|
|
70
|
+
--version) echo "test-driver (GNU Automake) $scriptversion"; exit $?;;
|
|
65
71
|
--test-name) test_name=$2; shift;;
|
|
66
72
|
--log-file) log_file=$2; shift;;
|
|
67
73
|
--trs-file) trs_file=$2; shift;;
|
|
68
74
|
--color-tests) color_tests=$2; shift;;
|
|
75
|
+
--collect-skipped-logs) collect_skipped_logs=$2; shift;;
|
|
69
76
|
--expect-failure) expect_failure=$2; shift;;
|
|
70
77
|
--enable-hard-errors) enable_hard_errors=$2; shift;;
|
|
71
78
|
--) shift; break;;
|
|
@@ -121,7 +128,7 @@ fi
|
|
|
121
128
|
case $tweaked_estatus:$expect_failure in
|
|
122
129
|
0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
|
|
123
130
|
0:*) col=$grn res=PASS recheck=no gcopy=no;;
|
|
124
|
-
77:*) col=$blu res=SKIP recheck=no gcopy
|
|
131
|
+
77:*) col=$blu res=SKIP recheck=no gcopy=$collect_skipped_logs;;
|
|
125
132
|
99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;;
|
|
126
133
|
*:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
|
|
127
134
|
*:*) col=$red res=FAIL recheck=yes gcopy=yes;;
|
|
@@ -145,9 +152,9 @@ echo ":copy-in-global-log: $gcopy" >> $trs_file
|
|
|
145
152
|
# Local Variables:
|
|
146
153
|
# mode: shell-script
|
|
147
154
|
# sh-indentation: 2
|
|
148
|
-
# eval: (add-hook 'before-save-hook 'time-stamp)
|
|
155
|
+
# eval: (add-hook 'before-save-hook 'time-stamp nil t)
|
|
149
156
|
# time-stamp-start: "scriptversion="
|
|
150
|
-
# time-stamp-format: "
|
|
157
|
+
# time-stamp-format: "%Y-%02m-%02d.%02H"
|
|
151
158
|
# time-stamp-time-zone: "UTC0"
|
|
152
159
|
# time-stamp-end: "; # UTC"
|
|
153
160
|
# End:
|
package/index.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ declare module '@port-labs/jq-node-bindings' {
|
|
|
10
10
|
|
|
11
11
|
export function exec(json: object, input: string, options?: ExecOptions): object | Array<any> | string | number | boolean | null;
|
|
12
12
|
export function execAsync(json: object, input: string, options?: ExecAsyncOptions): Promise<object | Array<any> | string | number | boolean | null>;
|
|
13
|
-
|
|
13
|
+
export function setCacheSize(cacheSize: number): void;
|
|
14
14
|
export function renderRecursively(json: object, input: object | Array<any> | string | number | boolean | null, execOptions?: ExecOptions): object | Array<any> | string | number | boolean | null;
|
|
15
15
|
export function renderRecursivelyAsync(json: object, input: object | Array<any> | string | number | boolean | null, execOptions?: ExecAsyncOptions): Promise<object | Array<any> | string | number | boolean | null>;
|
|
16
|
+
|
|
16
17
|
}
|
package/lib/index.js
CHANGED
|
@@ -6,6 +6,7 @@ const templateAsync = require('./templateAsync');
|
|
|
6
6
|
module.exports = {
|
|
7
7
|
exec: jq.exec,
|
|
8
8
|
execAsync: jq.execAsync,
|
|
9
|
+
setCacheSize: jq.setCacheSize,
|
|
9
10
|
renderRecursively: template.renderRecursively,
|
|
10
11
|
renderRecursivelyAsync: templateAsync.renderRecursivelyAsync,
|
|
11
12
|
JqExecError: jq.JqExecError,
|
package/lib/jq.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const nativeJq = require('bindings')('jq-node-bindings')
|
|
2
2
|
nativeJq.setCacheSize(1000)
|
|
3
|
+
|
|
3
4
|
const formatFilter = (filter, {enableEnv = false} = {}) => {
|
|
4
5
|
// Escape single quotes only if they are opening or closing a string
|
|
5
6
|
let formattedFilter = filter.replace(/(^|\s)'(?!\s|")|(?<!\s|")'(\s|$)/g, '$1"$2');
|
|
@@ -41,7 +42,7 @@ const execAsync = async (object, filter, {enableEnv = false, throwOnError = fals
|
|
|
41
42
|
module.exports = {
|
|
42
43
|
exec,
|
|
43
44
|
execAsync,
|
|
45
|
+
setCacheSize: nativeJq.setCacheSize,
|
|
44
46
|
JqExecError,
|
|
45
47
|
JqExecCompileError,
|
|
46
|
-
setCacheSize:nativeJq.setCacheSize
|
|
47
48
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@port-labs/jq-node-bindings",
|
|
3
|
-
"version": "v1.0
|
|
3
|
+
"version": "v1.1.0-dev",
|
|
4
4
|
"description": "Node.js bindings for JQ",
|
|
5
|
-
"jq-node-bindings": "1.0
|
|
5
|
+
"jq-node-bindings": "v1.1.0-dev",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"configure": "node-gyp configure",
|
|
@@ -44,4 +44,5 @@
|
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=6.0.0"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -159,11 +159,11 @@ describe('jq - async', () => {
|
|
|
159
159
|
})
|
|
160
160
|
|
|
161
161
|
it('test throw on error', async () => {
|
|
162
|
-
await expect(jq.execAsync({}, 'foo', {throwOnError: true})).rejects.toThrow("jq: compile error: foo/0 is not defined at <top-level>, line 1
|
|
162
|
+
await expect(jq.execAsync({}, 'foo', {throwOnError: true})).rejects.toThrow("jq: compile error: foo/0 is not defined at <top-level>, line 1");
|
|
163
163
|
await expect(jq.execAsync({}, '1/0', {throwOnError: true})).rejects.toThrow("number (1) and number (0) cannot be divided because the divisor is zero");
|
|
164
|
-
await expect(jq.execAsync({}, '{', {throwOnError: true})).rejects.toThrow("jq: compile error: syntax error, unexpected end of file
|
|
165
|
-
await expect(jq.execAsync({}, '{(0):1}', {throwOnError: true})).rejects.toThrow("jq: compile error: Cannot use number (0) as object key at <top-level>, line 1
|
|
166
|
-
await expect(jq.execAsync({}, 'if true then 1 else 0', {throwOnError: true})).rejects.toThrow("jq: compile error: Possibly unterminated 'if' statement at <top-level>, line 1
|
|
164
|
+
await expect(jq.execAsync({}, '{', {throwOnError: true})).rejects.toThrow("jq: compile error: syntax error, unexpected end of file");
|
|
165
|
+
await expect(jq.execAsync({}, '{(0):1}', {throwOnError: true})).rejects.toThrow("jq: compile error: Cannot use number (0) as object key at <top-level>, line 1");
|
|
166
|
+
await expect(jq.execAsync({}, 'if true then 1 else 0', {throwOnError: true})).rejects.toThrow("jq: compile error: Possibly unterminated 'if' statement at <top-level>, line 1");
|
|
167
167
|
await expect(jq.execAsync({}, 'null | map(.+1)', {throwOnError: true})).rejects.toThrow("jq: error: Cannot iterate over null (null)");
|
|
168
168
|
await expect(jq.execAsync({foo: "bar"}, '.foo + 1', {throwOnError: true})).rejects.toThrow("jq: error: string (\"bar\") and number (1) cannot be added");
|
|
169
169
|
})
|