@graphql-markdown/helpers 1.2.2 → 1.2.4
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/README.md +1 -0
- package/dist/directives/descriptor.js +3 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# @graphql-markdown/helpers
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@graphql-markdown/helpers)
|
|
4
|
+
[](https://jsr.io/@graphql-markdown/helpers)
|
|
4
5
|
[](https://raw.githubusercontent.com/graphql-markdown/graphql-markdown/main/LICENSE)
|
|
5
6
|
[](https://sonarcloud.io/summary/new_code?id=graphql-markdown_helpers)
|
|
6
7
|
[](https://sonarcloud.io/summary/new_code?id=graphql-markdown_helpers)
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.directiveDescriptor = void 0;
|
|
11
11
|
const graphql_1 = require("@graphql-markdown/graphql");
|
|
12
|
-
const
|
|
12
|
+
const interpolate_ts_1 = require("../utils/interpolate.js");
|
|
13
13
|
/**
|
|
14
14
|
* Helper for rendering custom description from schema directive on type.
|
|
15
15
|
* This is an example on how to build a custom `descriptor` callback.
|
|
@@ -83,8 +83,8 @@ const directiveDescriptor = (directive, type, descriptionTemplate) => {
|
|
|
83
83
|
const description = directive.description ?? "";
|
|
84
84
|
const params = { description, ...values };
|
|
85
85
|
if (typeof descriptionTemplate !== "string") {
|
|
86
|
-
return (0,
|
|
86
|
+
return (0, interpolate_ts_1.interpolate)(description, params);
|
|
87
87
|
}
|
|
88
|
-
return (0,
|
|
88
|
+
return (0, interpolate_ts_1.interpolate)(descriptionTemplate, params);
|
|
89
89
|
};
|
|
90
90
|
exports.directiveDescriptor = directiveDescriptor;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./directives/descriptor";
|
|
2
|
-
export * from "./directives/tag";
|
|
3
|
-
export * from "./directives/with-directive";
|
|
4
|
-
export * from "./formatters/markdown";
|
|
1
|
+
export * from "./directives/descriptor.ts";
|
|
2
|
+
export * from "./directives/tag.ts";
|
|
3
|
+
export * from "./directives/with-directive.ts";
|
|
4
|
+
export * from "./formatters/markdown.ts";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./directives/descriptor"), exports);
|
|
18
|
-
__exportStar(require("./directives/tag"), exports);
|
|
19
|
-
__exportStar(require("./directives/with-directive"), exports);
|
|
20
|
-
__exportStar(require("./formatters/markdown"), exports);
|
|
17
|
+
__exportStar(require("./directives/descriptor.js"), exports);
|
|
18
|
+
__exportStar(require("./directives/tag.js"), exports);
|
|
19
|
+
__exportStar(require("./directives/with-directive.js"), exports);
|
|
20
|
+
__exportStar(require("./formatters/markdown.js"), exports);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-markdown/helpers",
|
|
3
3
|
"homepage": "https://graphql-markdown.dev",
|
|
4
|
-
"description": "GraphQL-Markdown
|
|
4
|
+
"description": "Helpers for customizing GraphQL-Markdown output, such as directives and custom rendering.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/graphql-markdown/graphql-markdown/issues"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.2.
|
|
8
|
+
"version": "1.2.4",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"build": "tsgo --build",
|
|
56
56
|
"lint": "eslint --config ../../packages/tooling-config/eslint/config.ts \"{src,tests}/**/*.{ts,js,json,gql}\"",
|
|
57
57
|
"lint:fix": "eslint --config ../../packages/tooling-config/eslint/config.ts \"{src,tests}/**/*.{ts,js,json,gql}\" --fix",
|
|
58
|
-
"prettier": "prettier \"{src,tests,assets}/**/*.{ts,js,json,md,gql}\" --check",
|
|
59
|
-
"prettier:fix": "prettier \"{src,tests,assets}/**/*.{ts,js,json,md,gql}\" --write",
|
|
58
|
+
"prettier": "prettier \"{src,tests,assets}/**/*.{ts,js,json,md,gql}\" README.md --check",
|
|
59
|
+
"prettier:fix": "prettier \"{src,tests,assets}/**/*.{ts,js,json,md,gql}\" README.md --write",
|
|
60
60
|
"ts:check": "tsgo --noEmit",
|
|
61
61
|
"test": "vitest run --passWithNoTests",
|
|
62
62
|
"test:unit": "vitest run --passWithNoTests tests/unit",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"test:watch": "vitest --watch"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@graphql-markdown/graphql": "^1.3.
|
|
69
|
-
"@graphql-markdown/types": "^1.
|
|
70
|
-
"@graphql-markdown/utils": "^1.
|
|
68
|
+
"@graphql-markdown/graphql": "^1.3.4",
|
|
69
|
+
"@graphql-markdown/types": "^1.17.1",
|
|
70
|
+
"@graphql-markdown/utils": "^1.14.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@graphql-markdown/tooling-config": "^1.0.0"
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"test": "tests"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
|
-
"node": ">=22.
|
|
82
|
+
"node": ">=22.18.0"
|
|
83
83
|
},
|
|
84
84
|
"publishConfig": {
|
|
85
85
|
"access": "public"
|