@graphql-mesh/raml 1.0.0-alpha-20230523154231-8c60b52d9 → 1.0.0-alpha-20230523155104-df277a22b

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/cjs/index.js CHANGED
@@ -33,7 +33,6 @@ class RAMLHandler {
33
33
  });
34
34
  }
35
35
  return this.schemaWithAnnotationsProxy.getWithSet(async () => {
36
- var _a;
37
36
  this.logger.info(`Generating GraphQL schema from RAML schema`);
38
37
  const schema = await (0, raml_1.loadNonExecutableGraphQLSchemaFromRAML)(this.name, {
39
38
  ...this.config,
@@ -41,7 +40,7 @@ class RAMLHandler {
41
40
  fetch: this.fetchFn,
42
41
  logger: this.logger,
43
42
  ignoreErrorResponses: this.config.ignoreErrorResponses,
44
- selectQueryOrMutationField: (_a = this.config.selectQueryOrMutationField) === null || _a === void 0 ? void 0 : _a.map(({ type, fieldName }) => ({
43
+ selectQueryOrMutationField: this.config.selectQueryOrMutationField?.map(({ type, fieldName }) => ({
45
44
  type: type.toLowerCase(),
46
45
  fieldName,
47
46
  })),
package/esm/index.js CHANGED
@@ -31,7 +31,6 @@ export default class RAMLHandler {
31
31
  });
32
32
  }
33
33
  return this.schemaWithAnnotationsProxy.getWithSet(async () => {
34
- var _a;
35
34
  this.logger.info(`Generating GraphQL schema from RAML schema`);
36
35
  const schema = await loadNonExecutableGraphQLSchemaFromRAML(this.name, {
37
36
  ...this.config,
@@ -39,7 +38,7 @@ export default class RAMLHandler {
39
38
  fetch: this.fetchFn,
40
39
  logger: this.logger,
41
40
  ignoreErrorResponses: this.config.ignoreErrorResponses,
42
- selectQueryOrMutationField: (_a = this.config.selectQueryOrMutationField) === null || _a === void 0 ? void 0 : _a.map(({ type, fieldName }) => ({
41
+ selectQueryOrMutationField: this.config.selectQueryOrMutationField?.map(({ type, fieldName }) => ({
43
42
  type: type.toLowerCase(),
44
43
  fieldName,
45
44
  })),
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@graphql-mesh/raml",
3
- "version": "1.0.0-alpha-20230523154231-8c60b52d9",
3
+ "version": "1.0.0-alpha-20230523155104-df277a22b",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@graphql-mesh/store": "1.0.0-alpha-20230523154231-8c60b52d9",
7
- "@graphql-mesh/types": "1.0.0-alpha-20230523154231-8c60b52d9",
8
- "@graphql-mesh/utils": "1.0.0-alpha-20230523154231-8c60b52d9",
9
- "@graphql-tools/utils": "^9.2.1 || ^10.0.0",
6
+ "@graphql-mesh/store": "1.0.0-alpha-20230523155104-df277a22b",
7
+ "@graphql-mesh/types": "1.0.0-alpha-20230523155104-df277a22b",
8
+ "@graphql-mesh/utils": "1.0.0-alpha-20230523155104-df277a22b",
9
+ "@graphql-tools/utils": "^9.2.1",
10
10
  "graphql": "*",
11
11
  "tslib": "^2.4.0"
12
12
  },
13
13
  "dependencies": {
14
- "@omnigraph/raml": "1.0.0-alpha-20230523154231-8c60b52d9"
14
+ "@omnigraph/raml": "1.0.0-alpha-20230523155104-df277a22b"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
@@ -19,6 +19,9 @@
19
19
  "directory": "packages/handlers/raml"
20
20
  },
21
21
  "license": "MIT",
22
+ "engines": {
23
+ "node": ">=16.0.0"
24
+ },
22
25
  "main": "cjs/index.js",
23
26
  "module": "esm/index.js",
24
27
  "typings": "typings/index.d.ts",