@0xpolygonid/js-sdk 1.27.1 → 1.27.2

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.
@@ -319,6 +319,10 @@ class InputGenerator {
319
319
  circuitQueries.forEach((query) => {
320
320
  this.checkOperatorSupport(proofReq.circuitId, query.operator);
321
321
  });
322
+ circuitQueries.forEach((query) => {
323
+ query.values = [circuits_1.Operators.SD, circuits_1.Operators.NOOP].includes(query.operator) ? [] : query.values;
324
+ query.valueProof = query.operator === circuits_1.Operators.NOOP ? new circuits_1.ValueProof() : query.valueProof;
325
+ });
322
326
  return circuitInputs.inputsMarshal();
323
327
  };
324
328
  }
@@ -316,6 +316,10 @@ export class InputGenerator {
316
316
  circuitQueries.forEach((query) => {
317
317
  this.checkOperatorSupport(proofReq.circuitId, query.operator);
318
318
  });
319
+ circuitQueries.forEach((query) => {
320
+ query.values = [Operators.SD, Operators.NOOP].includes(query.operator) ? [] : query.values;
321
+ query.valueProof = query.operator === Operators.NOOP ? new ValueProof() : query.valueProof;
322
+ });
319
323
  return circuitInputs.inputsMarshal();
320
324
  };
321
325
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xpolygonid/js-sdk",
3
- "version": "1.27.1",
3
+ "version": "1.27.2",
4
4
  "description": "SDK to work with Polygon ID",
5
5
  "main": "dist/node/cjs/index.js",
6
6
  "module": "dist/node/esm/index.js",