@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 CHANGED
@@ -56,7 +56,7 @@ class Grid {
56
56
  async *listen() {
57
57
  for await (const data of this._client.stream("GET", "/api/v1/listen")) {
58
58
  const tick = parseInt(data, 10);
59
- if (!isNaN(tick) && tick !== this.tick) {
59
+ if (!isNaN(tick)) {
60
60
  this.tick = tick;
61
61
  yield tick;
62
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashgrid/sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Hashgrid TypeScript/JavaScript SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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) && tick !== this.tick) {
106
+ if (!isNaN(tick)) {
107
107
  this.tick = tick;
108
108
  yield tick;
109
109
  }