@port-labs/jq-node-bindings 1.0.6-dev.2 → 1.0.6-dev.4

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/binding.gyp CHANGED
@@ -20,8 +20,8 @@
20
20
  "OS=='linux'",
21
21
  {
22
22
  "libraries": [
23
- "-Wl,-rpath='$$ORIGIN/../deps'",
24
- "../build/deps/libjq.so.1"
23
+ "../build/deps/libjq.a",
24
+ "../build/deps/libonig.a"
25
25
  ],
26
26
  "cflags_cc": [
27
27
  "-std=c++17"
@@ -35,7 +35,8 @@
35
35
  "OS=='mac'",
36
36
  {
37
37
  "libraries": [
38
- "../build/deps/libjq.dylib"
38
+ "../build/deps/libjq.a",
39
+ "../build/deps/libonig.a"
39
40
  ],
40
41
  "xcode_settings": {
41
42
  "MACOSX_DEPLOYMENT_TARGET": "12.0.1",
@@ -47,8 +48,7 @@
47
48
  ],
48
49
  "include_dirs": [
49
50
  "deps/jq/src"
50
- ], "cflags": ["-fsanitize=address", "-fno-omit-frame-pointer"],
51
- "ldflags": ["-fsanitize=address"],
51
+ ]
52
52
  }
53
53
  ],
54
54
  [
package/configure CHANGED
@@ -31,25 +31,19 @@ esac
31
31
  CPPFLAGS=-D_REENTRANT ./configure CFLAGS="${CFLAGS}" \
32
32
  --disable-maintainer-mode \
33
33
  --with-oniguruma=builtin \
34
+ --enable-static \
34
35
  --libdir="${scriptdir}/build/deps" \
35
36
  --prefix="${scriptdir}/build/deps" $*
36
37
  make -j8
37
38
 
39
+ mkdir -p "${scriptdir}/build/deps"
40
+
41
+ cp .libs/libjq.a ${scriptdir}/build/deps/libjq.a
38
42
  cp modules/oniguruma/src/.libs/libonig.a ${scriptdir}/build/deps/libonig.a
39
43
  cp modules/oniguruma/src/.libs/libonig.la ${scriptdir}/build/deps/libonig.la
40
44
  cp modules/oniguruma/src/.libs/libonig.lai ${scriptdir}/build/deps/libonig.lai
41
-
42
- # Copy shared Oniguruma artifacts for the current platform if present.
43
- # - macOS: .dylib (e.g. libonig.5.dylib) — glob handles version bumps without hardcoding.
44
- # - Linux: .so* (e.g. libonig.so.5, libonig.so.5.4.0) — Linux uses suffix versioning.
45
- # The -f guard prevents cp from failing (and aborting via set -e) when a glob finds nothing.
46
- for lib in modules/oniguruma/src/.libs/libonig*.dylib modules/oniguruma/src/.libs/libonig.so*; do
47
- if [ -f "$lib" ]; then
48
- cp "$lib" "${scriptdir}/build/deps/"
49
- fi
50
- done
51
-
52
- make install-libLTLIBRARIES install-includeHEADERS
45
+ [ -f modules/oniguruma/src/.libs/libonig.5.dylib ] && cp modules/oniguruma/src/.libs/libonig.5.dylib ${scriptdir}/build/deps/libonig.5.dylib || true
46
+ [ -f modules/oniguruma/src/.libs/libonig.dylib ] && cp modules/oniguruma/src/.libs/libonig.dylib ${scriptdir}/build/deps/libonig.dylib || true
53
47
 
54
48
  echo "finished building jq"
55
49
  popd &> /dev/null
package/deps/jq.gyp CHANGED
@@ -10,23 +10,9 @@
10
10
  "action": [
11
11
  "node", "../util/configure"
12
12
  ],
13
- "conditions": [
14
- [
15
- 'OS=="mac"',
16
- {
17
- 'outputs': [
18
- 'deps/libjq/src/libjq.dylib',
19
- 'deps/libjq/src/libjq.1.dylib'
20
- ]
21
- },
22
- {
23
- 'outputs': [
24
- 'deps/jq/src/libjq.so',
25
- 'deps/jq/src/libjq.so.1',
26
- 'deps/jq/src/libjq.a'
27
- ],
28
- }
29
- ]
13
+ "outputs": [
14
+ "build/deps/libjq.a",
15
+ "build/deps/libonig.a"
30
16
  ]
31
17
  }
32
18
  ],
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@port-labs/jq-node-bindings",
3
- "version": "v1.0.6-dev.2",
3
+ "version": "v1.0.6-dev.4",
4
4
  "description": "Node.js bindings for JQ",
5
- "jq-node-bindings": "1.0.6-dev.2",
5
+ "jq-node-bindings": "1.0.6-dev.4",
6
6
  "main": "lib/index.js",
7
7
  "scripts": {
8
8
  "configure": "node-gyp configure",