message: minor styling changes
diff: @@ -241,15 +241,16 @@ export class Web3ApiClient implements Client {
  const { uri, query, variables, frequency: freq } = options;
  // eslint-disable-next-line @typescript-eslint/no-this-alias
  const client: Web3ApiClient = this;
  +
  // calculate interval between queries, in milliseconds, 1 min default value
  /* eslint-disable prettier/prettier */
  let frequency: number;
  if (freq && (freq.ms || freq.sec || freq.min || freq.hours)) {
  - frequency = (freq.ms ?? 0) + (
  + frequency = (freq.ms ?? 0) + ((
  (freq.hours ?? 0) * 3600 +
  (freq.min ?? 0) * 60 +
  (freq.sec ?? 0)
  - ) * 1000
  + ) * 1000);
  } else {
  frequency = 60000;
  }
  @@ -264,12 +265,14 @@ export class Web3ApiClient implements Client {
  async *[Symbol.asyncIterator](): AsyncGenerator<
  QueryApiResult<TData>
  > {
  - subscription.isActive = true;
  let timeout: NodeJS.Timeout | undefined = undefined;
  + subscription.isActive = true;
  +
  try {
  let readyVals = 0;
  let sleep: ((value?: unknown) => void) | undefined;
  - timeout = setInterval(async () => {
  +
  + timeout = setInterval(() => {
  readyVals++;
  if (sleep) {
  sleep();
  @@ -281,13 +284,18 @@ export class Web3ApiClient implements Client {
  if (readyVals === 0) {
  await new Promise((r) => (sleep = r));
  }
  +
  for (; readyVals > 0; readyVals--) {
  - if (!subscription.isActive) break;
  + if (!subscription.isActive) {
  + break;
  + }
  +
  const result: QueryApiResult<TData> = await client.query({
  uri: uri,
  query: query,
  variables: variables,
  });
  +
  yield result;
  }
  }
  