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.
- package/dist/gar.umd.js +3 -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
|
}
|