@port-labs/jq-node-bindings 0.0.15-dev3 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/jq.js +3 -2
  2. package/package.json +2 -2
package/lib/jq.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const nativeJq = require('bindings')('jq-node-bindings')
2
-
2
+ nativeJq.setCacheSize(1000)
3
3
  const formatFilter = (filter, {enableEnv = false} = {}) => {
4
4
  // Escape single quotes only if they are opening or closing a string
5
5
  let formattedFilter = filter.replace(/(^|\s)'(?!\s|")|(?<!\s|")'(\s|$)/g, '$1"$2');
@@ -42,5 +42,6 @@ module.exports = {
42
42
  exec,
43
43
  execAsync,
44
44
  JqExecError,
45
- JqExecCompileError
45
+ JqExecCompileError,
46
+ setCacheSize:nativeJq.setCacheSize
46
47
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@port-labs/jq-node-bindings",
3
- "version": "v0.0.15-dev3",
3
+ "version": "v1.0.1",
4
4
  "description": "Node.js bindings for JQ",
5
- "jq-node-bindings": "0.0.15-dev3",
5
+ "jq-node-bindings": "1.0.1",
6
6
  "main": "lib/index.js",
7
7
  "scripts": {
8
8
  "configure": "node-gyp configure",