@hashgrid/sdk 0.3.1 → 0.3.3
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/resources.js +1 -1
- package/package.json +1 -1
- package/src/resources.ts +1 -1
package/dist/resources.js
CHANGED
package/package.json
CHANGED
package/src/resources.ts
CHANGED
|
@@ -103,7 +103,7 @@ export class Grid {
|
|
|
103
103
|
async *listen(): AsyncGenerator<number> {
|
|
104
104
|
for await (const data of this._client.stream("GET", "/api/v1/listen")) {
|
|
105
105
|
const tick = parseInt(data, 10);
|
|
106
|
-
if (!isNaN(tick)
|
|
106
|
+
if (!isNaN(tick)) {
|
|
107
107
|
this.tick = tick;
|
|
108
108
|
yield tick;
|
|
109
109
|
}
|