cormo-graphql 0.6.12 → 0.8.0

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/.eslintrc.js CHANGED
@@ -18,5 +18,6 @@ module.exports = {
18
18
  '@typescript-eslint/restrict-template-expressions': 'off',
19
19
  '@typescript-eslint/restrict-plus-operands': 'off',
20
20
  '@typescript-eslint/ban-types': 'off',
21
+ '@typescript-eslint/no-unsafe-argument': 'off',
21
22
  },
22
23
  };
package/lib/schema.js CHANGED
@@ -119,7 +119,7 @@ function createListType(model_class, options, single_type) {
119
119
  }
120
120
  }
121
121
  }
122
- return await query.select(crary_graphql_1.getFieldList(info));
122
+ return await query.select((0, crary_graphql_1.getFieldList)(info));
123
123
  },
124
124
  type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(single_type))),
125
125
  },
@@ -346,7 +346,7 @@ function createDefaultCrudSchema(model_class, options = {}) {
346
346
  if (!has_query) {
347
347
  return null;
348
348
  }
349
- return await query.select(crary_graphql_1.getFieldList(info));
349
+ return await query.select((0, crary_graphql_1.getFieldList)(info));
350
350
  },
351
351
  type: single_type,
352
352
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cormo-graphql",
3
- "version": "0.6.12",
3
+ "version": "0.8.0",
4
4
  "description": "GraphQL support for CORMO",
5
5
  "main": "./lib",
6
6
  "types": "./lib/index.d.ts",
@@ -24,24 +24,24 @@
24
24
  },
25
25
  "homepage": "https://github.com/croquiscom/cormo",
26
26
  "dependencies": {
27
- "@croquiscom/crary-graphql": "^0.12.3",
28
- "cormo": "^0.16.12",
29
- "graphql": "^15.5.1",
27
+ "@croquiscom/crary-graphql": "^0.16.0",
28
+ "cormo": "^0.18.0",
29
+ "graphql": "^16.3.0",
30
30
  "lodash": "^4.17.21"
31
31
  },
32
32
  "devDependencies": {
33
- "@types/chai": "^4.2.21",
34
- "@types/lodash": "^4.14.171",
35
- "@types/mocha": "^9.0.0",
36
- "@types/node": "^16.4.3",
37
- "@types/sinon": "^10.0.2",
38
- "chai": "^4.3.4",
39
- "mocha": "^9.0.3",
33
+ "@types/chai": "^4.3.0",
34
+ "@types/lodash": "^4.14.178",
35
+ "@types/mocha": "^9.1.0",
36
+ "@types/node": "^17.0.16",
37
+ "@types/sinon": "^10.0.11",
38
+ "chai": "^4.3.6",
39
+ "mocha": "^9.2.0",
40
40
  "mysql": "^2.18.1",
41
41
  "rimraf": "^3.0.2",
42
- "sinon": "^11.1.1",
43
- "ts-node": "^10.1.0",
44
- "typescript": "^4.3.5"
42
+ "sinon": "^13.0.1",
43
+ "ts-node": "^10.5.0",
44
+ "typescript": "^4.5.5"
45
45
  },
46
- "gitHead": "78a75130658a1768fdb443903ba9a14fac0ef2e1"
46
+ "gitHead": "31147ce4aee5a98bd46a08b2a17ead88037b086c"
47
47
  }