Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsinai committed Feb 17, 2023
2 parents c941e22 + 60a701c commit 8f55dbf
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install node-gyp deps
run: |
if [ "${{ matrix.os }}" == "ubuntu-22.04" ]; then
sudo apt-get install -y autoconf make libtool automake
sudo apt-get install -y autoconf make libtool automake
else
brew install autoconf automake libtool
fi
Expand Down
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ build/
node_modules/
deps/jq
npm-debug.log

docs

.DS_Store

.vscode

load.js
reports/
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ build
**/.git
.git
*/.git
reports/**
6 changes: 3 additions & 3 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"include_dirs": [
"<!(node -e \"require('nan')\")",
"<(module_root_dir)/",
"deps/jq"
"deps/jq/src"
],
'conditions': [
[
'OS=="linux"',
{
"libraries": [
"../build/deps/libjq.so.1",
"-Wl,-rpath='$$ORIGIN/../deps'",
"../build/deps/libjq.so.1",
],
'cflags_cc': [
'-std=c++17'
Expand All @@ -43,7 +43,7 @@
'-std=c++17'
],
"include_dirs": [
"deps/jq"
"deps/jq/src"
]
}
]
Expand Down
3 changes: 2 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ CPPFLAGS=-D_REENTRANT ./configure \
--libdir="${scriptdir}/build/deps" \
--prefix="${scriptdir}/build/deps" $*
make -j8
make install-libLTLIBRARIES install-includeHEADERS

cp modules/oniguruma/src/.libs/libonig.a ${scriptdir}/build/deps/libonig.a
cp modules/oniguruma/src/.libs/libonig.la ${scriptdir}/build/deps/libonig.la
cp modules/oniguruma/src/.libs/libonig.lai ${scriptdir}/build/deps/libonig.lai
cp modules/oniguruma/src/.libs/libonig.4.dylib ${scriptdir}/build/deps/libonig.4.dylib
cp modules/oniguruma/src/.libs/libonig.dylib ${scriptdir}/build/deps/libonig.dylib

make install-libLTLIBRARIES install-includeHEADERS

echo "finished building jq"
popd &> /dev/null
1 change: 0 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const escapeFilter = (filter) => {
module.exports = {
exec: (object, filter) => {
try {
console.log(escapeFilter(filter))
const data = nativeJq.exec(JSON.stringify(object), escapeFilter(filter))

return data?.value;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@port-labs/jq-node-bindings",
"version": "v0.0.4",
"version": "v0.0.5",
"description": "Node.js bindings for JQ",
"jq-node-bindings": "0.0.4",
"jq-node-bindings": "0.0.5",
"main": "lib/index.js",
"scripts": {
"configure": "node-gyp configure",
Expand Down Expand Up @@ -45,4 +45,4 @@
"engines": {
"node": ">=6.0.0"
}
}
}
41 changes: 0 additions & 41 deletions reports/jest-port-api.xml

This file was deleted.

0 comments on commit 8f55dbf

Please sign in to comment.