assertConditions = (conditions, url) => {
  if (conditions === undefined) return;
  assert(
    Array.isArray(conditions),
    `conditions must be an array, got ${conditions} in ${q(url)}`,
  );
  for (const [index, value] of enumerate(conditions)) {
    assert.typeof(
      value,
      'string',
      `conditions[${index}] must be a string, got ${value} in ${q(url)}`,
    );
  }
}
@param {unknown} conditions
@param {string} url