startgg-helper 2.0.1 → 2.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/query.js +1 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "startgg-helper",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "A set of functions and classes useful to communicate with the start.gg API, using any client (YOU NEED TO PROVIDE A CLIENT YOURSELF, SEE README)",
5
5
  "main": "main.js",
6
6
  "scripts": {
package/src/query.js CHANGED
@@ -1,4 +1,3 @@
1
- import { GraphQLClient } from 'graphql-request';
2
1
  import { deep_get, deep_set } from './jsUtil.js';
3
2
  import { TimedQuerySemaphore } from './queryLimiter.js'
4
3
 
@@ -130,8 +129,7 @@ export class Query {
130
129
  return null;
131
130
  }
132
131
 
133
- if (!isConnection(connection)) throw "The given path does not point to a connection type"
134
- console.log(connection);
132
+ if (!isConnection(connection)) throw "The given path does not point to a connection type";
135
133
 
136
134
  let localResult = connection.nodes;
137
135
  if (connection.pageInfo && connection.pageInfo.totalPages){