@show-karma/karma-gap-sdk 0.3.23 → 0.3.24

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.
@@ -194,7 +194,7 @@ class Attestation {
194
194
  this._data.type = this.type;
195
195
  this.schema.setValue('json', JSON.stringify(this._data));
196
196
  }
197
- if (remoteClient) {
197
+ if (remoteClient && JSON.stringify(this._data)?.length > 1500) {
198
198
  const cid = await remoteClient.save(this._data, this.schema.name);
199
199
  const encodedData = remoteClient.encode(cid);
200
200
  this.schema.setValue('json', JSON.stringify(encodedData));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.23",
6
+ "version": "0.3.24",
7
7
  "description": "Simple and easy interface between EAS and Karma GAP.",
8
8
  "main": "./index.js",
9
9
  "author": "KarmaHQ",