@0xpolygonid/js-sdk 1.17.7 → 1.17.8

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.
@@ -76,7 +76,7 @@ class W3CCredential {
76
76
  }
77
77
  static fromJSON(obj) {
78
78
  const w = new W3CCredential();
79
- Object.assign(w, obj);
79
+ Object.assign(w, structuredClone(obj));
80
80
  w.proof = Array.isArray(w.proof)
81
81
  ? w.proof.map(W3CCredential.proofFromJSON)
82
82
  : W3CCredential.proofFromJSON(w.proof);
@@ -50,7 +50,7 @@ export class W3CCredential {
50
50
  }
51
51
  static fromJSON(obj) {
52
52
  const w = new W3CCredential();
53
- Object.assign(w, obj);
53
+ Object.assign(w, structuredClone(obj));
54
54
  w.proof = Array.isArray(w.proof)
55
55
  ? w.proof.map(W3CCredential.proofFromJSON)
56
56
  : W3CCredential.proofFromJSON(w.proof);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xpolygonid/js-sdk",
3
- "version": "1.17.7",
3
+ "version": "1.17.8",
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",