jsgar 1.2.1 → 1.2.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.
Files changed (2) hide show
  1. package/dist/gar.umd.js +3 -2
  2. package/package.json +1 -1
package/dist/gar.umd.js CHANGED
@@ -689,9 +689,10 @@
689
689
  * @param {string} keyName - Key name
690
690
  * @param {string} topicName - Topic name
691
691
  * @param {any} value - JSON-serializable value
692
+ * @param class_name - Class name for key (optional)
692
693
  */
693
- publishRecord(keyName, topicName, value) {
694
- const keyId = this.getAndPossiblyIntroduceKeyId(keyName);
694
+ publishRecord(keyName, topicName, value, class_name = null) {
695
+ const keyId = this.getAndPossiblyIntroduceKeyId(keyName, class_name);
695
696
  const topicId = this.getAndPossiblyIntroduceTopicId(topicName);
696
697
  this.publishRecordWithIds(keyId, topicId, value);
697
698
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsgar",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "A Javascript client for the GAR protocol",
5
5
  "type": "module",
6
6
  "main": "dist/gar.umd.js",