@graphql-markdown/helpers 1.0.0 → 1.0.1

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.
@@ -32,9 +32,9 @@ function getObjPath(path, obj, fallback = "") {
32
32
  if ((0, utils_1.isEmpty)(obj) || typeof path !== "string") {
33
33
  return fallback;
34
34
  }
35
- return path
36
- .split(".")
37
- .reduce((res, key) => res[key] ?? fallback, obj); // eslint-disable-line @typescript-eslint/no-explicit-any
35
+ return path.split(".").reduce((res, key) => {
36
+ return res[key] ?? fallback;
37
+ }, obj); // eslint-disable-line @typescript-eslint/no-explicit-any
38
38
  }
39
39
  exports.getObjPath = getObjPath;
40
40
  /**
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "bugs": {
6
6
  "url": "https://github.com/graphql-markdown/graphql-markdown/issues"
7
7
  },
8
- "version": "1.0.0",
8
+ "version": "1.0.1",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
@@ -56,7 +56,7 @@
56
56
  "docs": "typedoc"
57
57
  },
58
58
  "dependencies": {
59
- "@graphql-markdown/graphql": "^1.0.0"
59
+ "@graphql-markdown/graphql": "^1.0.1"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@graphql-markdown/types": "^1.0.0"