anear-js-api 0.3.20 → 0.3.21

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.
@@ -252,6 +252,7 @@ class AnearEvent extends JsonApiResource {
252
252
  try {
253
253
  const responseAttributes = await this.messaging.api.transitionEvent(this.id, eventName)
254
254
  const newState = responseAttributes.state
255
+ this.attributes.state = newState
255
256
  await this.messaging.publishEventTransitionMessage(this, newState)
256
257
  } catch(err) {
257
258
  logger.error(`AnearEvent: transitionEvent error: ${err}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anear-js-api",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "description": "Javascript Developer API for Anear Apps",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {