@contello/client 1.1.0 → 1.1.1

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/index.cjs CHANGED
@@ -244,7 +244,7 @@ var ConnectionPool = class {
244
244
  }
245
245
  get() {
246
246
  if (this.clients.length === 0) {
247
- throw new Error("Connection pool is empty. Please call connect() first.");
247
+ throw new Error("@contello/client: connection pool is empty \u2014 call client.init() first");
248
248
  }
249
249
  const client = this.clients[this.currentIndex];
250
250
  this.currentIndex = (this.currentIndex + 1) % this.poolSize;
package/dist/index.js CHANGED
@@ -207,7 +207,7 @@ var ConnectionPool = class {
207
207
  }
208
208
  get() {
209
209
  if (this.clients.length === 0) {
210
- throw new Error("Connection pool is empty. Please call connect() first.");
210
+ throw new Error("@contello/client: connection pool is empty \u2014 call client.init() first");
211
211
  }
212
212
  const client = this.clients[this.currentIndex];
213
213
  this.currentIndex = (this.currentIndex + 1) % this.poolSize;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contello/client",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "GraphQL client for Contello CMS with WebSocket transport, connection pooling, and built-in codegen",
5
5
  "type": "module",
6
6
  "license": "MIT",