@powerlines/plugin-graphql 0.1.341 → 0.1.343
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 +14 -16
- package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +1 -1
- package/dist/_virtual/_rolldown/runtime.mjs +3 -0
- package/dist/index.cjs +18 -19
- package/dist/index.d.cts +0 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +21 -20
- package/dist/node_modules/.pnpm/@storm-software_config-tools@1.189.28_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.cjs +0 -16
- package/dist/node_modules/.pnpm/@storm-software_config-tools@1.189.28_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs +0 -16
- package/dist/node_modules/.pnpm/@storm-software_config-tools@1.189.28_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://stormsoftware.com/projects/powerlines) [](http://commitizen.github.io/cz-cli/)  
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -58,21 +58,19 @@ A Powerlines plugin to generate project code with [GraphQL Codegen](https://grap
|
|
|
58
58
|
|
|
59
59
|
## Table of Contents
|
|
60
60
|
|
|
61
|
-
- [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- [
|
|
65
|
-
- [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
- [Contributing](#contributing)
|
|
75
|
-
- [Contributors](#contributors)
|
|
61
|
+
- [Installing](#installing)
|
|
62
|
+
- [Reduced Package Size](#reduced-package-size)
|
|
63
|
+
- [Development](#development)
|
|
64
|
+
- [Building](#building)
|
|
65
|
+
- [Running unit tests](#running-unit-tests)
|
|
66
|
+
- [Linting](#linting)
|
|
67
|
+
- [Storm Workspaces](#storm-workspaces)
|
|
68
|
+
- [Roadmap](#roadmap)
|
|
69
|
+
- [Support](#support)
|
|
70
|
+
- [License](#license)
|
|
71
|
+
- [Changelog](#changelog)
|
|
72
|
+
- [Contributing](#contributing)
|
|
73
|
+
- [Contributors](#contributors)
|
|
76
74
|
|
|
77
75
|
<!-- END doctoc -->
|
|
78
76
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
let
|
|
5
|
-
let
|
|
6
|
-
let
|
|
7
|
-
let
|
|
8
|
-
let
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let _graphql_codegen_cli = require("@graphql-codegen/cli");
|
|
4
|
+
let _storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
5
|
+
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
6
|
+
let _stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
|
|
7
|
+
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
8
|
+
let _stryke_path_replace = require("@stryke/path/replace");
|
|
9
9
|
let defu = require("defu");
|
|
10
|
-
defu =
|
|
10
|
+
defu = require_runtime.__toESM(defu);
|
|
11
11
|
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
12
12
|
|
|
13
13
|
//#region src/index.ts
|
|
@@ -32,17 +32,17 @@ const plugin = (options = {}) => {
|
|
|
32
32
|
return { graphql: (0, defu.default)(options, {
|
|
33
33
|
configFile,
|
|
34
34
|
silent: this.config.logLevel === null,
|
|
35
|
-
verbose: this.config.logLevel ===
|
|
35
|
+
verbose: this.config.logLevel === _storm_software_config_tools_types.LogLevelLabel.DEBUG || this.config.logLevel === _storm_software_config_tools_types.LogLevelLabel.TRACE,
|
|
36
36
|
debug: this.config.mode === "development",
|
|
37
|
-
outputPath: (0,
|
|
37
|
+
outputPath: (0, _stryke_path_join_paths.joinPaths)("{builtinPath}", "graphql")
|
|
38
38
|
}) };
|
|
39
39
|
},
|
|
40
40
|
async configResolved() {
|
|
41
41
|
this.dependencies.graphql = "latest";
|
|
42
42
|
this.config.graphql.outputPath = (0, powerlines_plugin_utils.replacePathTokens)(this, this.config.graphql.outputPath);
|
|
43
43
|
this.graphql ??= {};
|
|
44
|
-
this.graphql.codegen = await (0,
|
|
45
|
-
(0,
|
|
44
|
+
this.graphql.codegen = await (0, _graphql_codegen_cli.loadContext)(this.config.graphql.configFile);
|
|
45
|
+
(0, _graphql_codegen_cli.updateContextWithCliFlags)(this.graphql.codegen, {
|
|
46
46
|
require: [],
|
|
47
47
|
overwrite: true,
|
|
48
48
|
project: this.config.root,
|
|
@@ -52,17 +52,16 @@ const plugin = (options = {}) => {
|
|
|
52
52
|
});
|
|
53
53
|
},
|
|
54
54
|
async prepare() {
|
|
55
|
-
const result = await (0,
|
|
55
|
+
const result = await (0, _graphql_codegen_cli.generate)({
|
|
56
56
|
...this.graphql.codegen,
|
|
57
|
-
cwd: (0,
|
|
57
|
+
cwd: (0, _stryke_path_join_paths.joinPaths)(this.workspaceConfig.workspaceRoot, this.config.root)
|
|
58
58
|
}, false);
|
|
59
|
-
if ((0,
|
|
60
|
-
else await Promise.all(result.map(async (output) => this.fs.write((0,
|
|
59
|
+
if ((0, _stryke_path_is_parent_path.isParentPath)(this.config.graphql.outputPath, this.builtinsPath)) await Promise.all(result.map(async (output) => this.emitBuiltin(output.content, (0, _stryke_path_file_path_fns.findFileName)((0, _stryke_path_join_paths.joinPaths)((0, _stryke_path_replace.replacePath)(this.config.graphql.outputPath, this.builtinsPath), output.filename), { withExtension: false }))));
|
|
60
|
+
else await Promise.all(result.map(async (output) => this.fs.write((0, _stryke_path_join_paths.joinPaths)(this.config.graphql.outputPath, output.filename), output.content)));
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
-
var src_default = plugin;
|
|
65
64
|
|
|
66
65
|
//#endregion
|
|
67
|
-
exports.default =
|
|
66
|
+
exports.default = plugin;
|
|
68
67
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig } from "./types/plugin.cjs";
|
|
2
|
-
import "./types/index.cjs";
|
|
3
2
|
import { Plugin } from "powerlines";
|
|
4
3
|
|
|
5
4
|
//#region src/index.d.ts
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAwCY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;;;;cAUD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig } from "./types/plugin.mjs";
|
|
2
|
-
import "./types/index.mjs";
|
|
3
2
|
import { Plugin } from "powerlines";
|
|
4
3
|
|
|
5
4
|
//#region src/index.d.ts
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAwCY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;;;;cAUD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LogLevelLabel } from "./node_modules/.pnpm/@storm-software_config-tools@1.189.28_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs";
|
|
2
1
|
import { generate, loadContext, updateContextWithCliFlags } from "@graphql-codegen/cli";
|
|
2
|
+
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
3
3
|
import { findFileName } from "@stryke/path/file-path-fns";
|
|
4
4
|
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
5
5
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
@@ -58,8 +58,7 @@ const plugin = (options = {}) => {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
var src_default = plugin;
|
|
62
61
|
|
|
63
62
|
//#endregion
|
|
64
|
-
export {
|
|
63
|
+
export { plugin as default, plugin };
|
|
65
64
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n generate,\n loadContext,\n updateContextWithCliFlags\n} from \"@graphql-codegen/cli\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { findFileName } from \"@stryke/path/file-path-fns\";\nimport { isParentPath } from \"@stryke/path/is-parent-path\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { getConfigPath, replacePathTokens } from \"powerlines/plugin-utils\";\nimport {\n GraphQLPluginContext,\n GraphQLPluginOptions,\n GraphQLPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n graphql?: GraphQLPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to integrate GraphQL for code generation.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends GraphQLPluginContext = GraphQLPluginContext\n>(\n options: GraphQLPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"graphql\",\n config() {\n let configFile = options.configFile;\n if (!configFile) {\n configFile = getConfigPath(this, \"codegen\");\n if (!configFile) {\n configFile = getConfigPath(this, \"graphql-codegen\");\n if (!configFile) {\n throw new Error(\n `No GraphQL Codegen configuration file found. Please specify a valid config file path in the Biome plugin's \\`configFile\\` options.`\n );\n }\n }\n }\n\n return {\n graphql: defu(options, {\n configFile,\n silent: this.config.logLevel === null,\n verbose:\n this.config.logLevel === LogLevelLabel.DEBUG ||\n this.config.logLevel === LogLevelLabel.TRACE,\n debug: this.config.mode === \"development\",\n outputPath: joinPaths(\"{builtinPath}\", \"graphql\")\n })\n } as Partial<GraphQLPluginUserConfig>;\n },\n async configResolved() {\n this.dependencies.graphql = \"latest\";\n\n this.config.graphql.outputPath = replacePathTokens(\n this,\n this.config.graphql.outputPath\n );\n\n this.graphql ??= {} as GraphQLPluginContext[\"graphql\"];\n\n this.graphql.codegen = await loadContext(this.config.graphql.configFile);\n updateContextWithCliFlags(this.graphql.codegen, {\n require: [],\n overwrite: true,\n project: this.config.root,\n ...this.config.graphql,\n config: this.config.graphql.configFile,\n watch: false\n });\n },\n async prepare() {\n const result = await generate(\n {\n ...this.graphql.codegen,\n cwd: joinPaths(this.workspaceConfig.workspaceRoot, this.config.root)\n } as Parameters<typeof generate>[0],\n false\n );\n\n if (isParentPath(this.config.graphql.outputPath, this.builtinsPath)) {\n await Promise.all(\n result.map(async output =>\n this.emitBuiltin(\n output.content,\n findFileName(\n joinPaths(\n replacePath(\n this.config.graphql.outputPath,\n this.builtinsPath\n ),\n output.filename\n ),\n { withExtension: false }\n )\n )\n )\n );\n } else {\n await Promise.all(\n result.map(async output =>\n this.fs.write(\n joinPaths(this.config.graphql.outputPath, output.filename),\n output.content\n )\n )\n );\n }\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;AAmDA,MAAa,UAGX,UAAgC,EAAE,KACb;AACrB,QAAO;EACL,MAAM;EACN,SAAS;GACP,IAAI,aAAa,QAAQ;AACzB,OAAI,CAAC,YAAY;AACf,iBAAa,cAAc,MAAM,UAAU;AAC3C,QAAI,CAAC,YAAY;AACf,kBAAa,cAAc,MAAM,kBAAkB;AACnD,SAAI,CAAC,WACH,OAAM,IAAI,MACR,qIACD;;;AAKP,UAAO,EACL,SAAS,KAAK,SAAS;IACrB;IACA,QAAQ,KAAK,OAAO,aAAa;IACjC,SACE,KAAK,OAAO,aAAa,cAAc,SACvC,KAAK,OAAO,aAAa,cAAc;IACzC,OAAO,KAAK,OAAO,SAAS;IAC5B,YAAY,UAAU,iBAAiB,UAAU;IAClD,CAAC,EACH;;EAEH,MAAM,iBAAiB;AACrB,QAAK,aAAa,UAAU;AAE5B,QAAK,OAAO,QAAQ,aAAa,kBAC/B,MACA,KAAK,OAAO,QAAQ,WACrB;AAED,QAAK,YAAY,EAAE;AAEnB,QAAK,QAAQ,UAAU,MAAM,YAAY,KAAK,OAAO,QAAQ,WAAW;AACxE,6BAA0B,KAAK,QAAQ,SAAS;IAC9C,SAAS,EAAE;IACX,WAAW;IACX,SAAS,KAAK,OAAO;IACrB,GAAG,KAAK,OAAO;IACf,QAAQ,KAAK,OAAO,QAAQ;IAC5B,OAAO;IACR,CAAC;;EAEJ,MAAM,UAAU;GACd,MAAM,SAAS,MAAM,SACnB;IACE,GAAG,KAAK,QAAQ;IAChB,KAAK,UAAU,KAAK,gBAAgB,eAAe,KAAK,OAAO,KAAK;IACrE,EACD,MACD;AAED,OAAI,aAAa,KAAK,OAAO,QAAQ,YAAY,KAAK,aAAa,CACjE,OAAM,QAAQ,IACZ,OAAO,IAAI,OAAM,WACf,KAAK,YACH,OAAO,SACP,aACE,UACE,YACE,KAAK,OAAO,QAAQ,YACpB,KAAK,aACN,EACD,OAAO,SACR,EACD,EAAE,eAAe,OAAO,CACzB,CACF,CACF,CACF;OAED,OAAM,QAAQ,IACZ,OAAO,IAAI,OAAM,WACf,KAAK,GAAG,MACN,UAAU,KAAK,OAAO,QAAQ,YAAY,OAAO,SAAS,EAC1D,OAAO,QACR,CACF,CACF;;EAGN
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n generate,\n loadContext,\n updateContextWithCliFlags\n} from \"@graphql-codegen/cli\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { findFileName } from \"@stryke/path/file-path-fns\";\nimport { isParentPath } from \"@stryke/path/is-parent-path\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { getConfigPath, replacePathTokens } from \"powerlines/plugin-utils\";\nimport {\n GraphQLPluginContext,\n GraphQLPluginOptions,\n GraphQLPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n graphql?: GraphQLPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to integrate GraphQL for code generation.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends GraphQLPluginContext = GraphQLPluginContext\n>(\n options: GraphQLPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"graphql\",\n config() {\n let configFile = options.configFile;\n if (!configFile) {\n configFile = getConfigPath(this, \"codegen\");\n if (!configFile) {\n configFile = getConfigPath(this, \"graphql-codegen\");\n if (!configFile) {\n throw new Error(\n `No GraphQL Codegen configuration file found. Please specify a valid config file path in the Biome plugin's \\`configFile\\` options.`\n );\n }\n }\n }\n\n return {\n graphql: defu(options, {\n configFile,\n silent: this.config.logLevel === null,\n verbose:\n this.config.logLevel === LogLevelLabel.DEBUG ||\n this.config.logLevel === LogLevelLabel.TRACE,\n debug: this.config.mode === \"development\",\n outputPath: joinPaths(\"{builtinPath}\", \"graphql\")\n })\n } as Partial<GraphQLPluginUserConfig>;\n },\n async configResolved() {\n this.dependencies.graphql = \"latest\";\n\n this.config.graphql.outputPath = replacePathTokens(\n this,\n this.config.graphql.outputPath\n );\n\n this.graphql ??= {} as GraphQLPluginContext[\"graphql\"];\n\n this.graphql.codegen = await loadContext(this.config.graphql.configFile);\n updateContextWithCliFlags(this.graphql.codegen, {\n require: [],\n overwrite: true,\n project: this.config.root,\n ...this.config.graphql,\n config: this.config.graphql.configFile,\n watch: false\n });\n },\n async prepare() {\n const result = await generate(\n {\n ...this.graphql.codegen,\n cwd: joinPaths(this.workspaceConfig.workspaceRoot, this.config.root)\n } as Parameters<typeof generate>[0],\n false\n );\n\n if (isParentPath(this.config.graphql.outputPath, this.builtinsPath)) {\n await Promise.all(\n result.map(async output =>\n this.emitBuiltin(\n output.content,\n findFileName(\n joinPaths(\n replacePath(\n this.config.graphql.outputPath,\n this.builtinsPath\n ),\n output.filename\n ),\n { withExtension: false }\n )\n )\n )\n );\n } else {\n await Promise.all(\n result.map(async output =>\n this.fs.write(\n joinPaths(this.config.graphql.outputPath, output.filename),\n output.content\n )\n )\n );\n }\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;AAmDA,MAAa,UAGX,UAAgC,EAAE,KACb;AACrB,QAAO;EACL,MAAM;EACN,SAAS;GACP,IAAI,aAAa,QAAQ;AACzB,OAAI,CAAC,YAAY;AACf,iBAAa,cAAc,MAAM,UAAU;AAC3C,QAAI,CAAC,YAAY;AACf,kBAAa,cAAc,MAAM,kBAAkB;AACnD,SAAI,CAAC,WACH,OAAM,IAAI,MACR,qIACD;;;AAKP,UAAO,EACL,SAAS,KAAK,SAAS;IACrB;IACA,QAAQ,KAAK,OAAO,aAAa;IACjC,SACE,KAAK,OAAO,aAAa,cAAc,SACvC,KAAK,OAAO,aAAa,cAAc;IACzC,OAAO,KAAK,OAAO,SAAS;IAC5B,YAAY,UAAU,iBAAiB,UAAU;IAClD,CAAC,EACH;;EAEH,MAAM,iBAAiB;AACrB,QAAK,aAAa,UAAU;AAE5B,QAAK,OAAO,QAAQ,aAAa,kBAC/B,MACA,KAAK,OAAO,QAAQ,WACrB;AAED,QAAK,YAAY,EAAE;AAEnB,QAAK,QAAQ,UAAU,MAAM,YAAY,KAAK,OAAO,QAAQ,WAAW;AACxE,6BAA0B,KAAK,QAAQ,SAAS;IAC9C,SAAS,EAAE;IACX,WAAW;IACX,SAAS,KAAK,OAAO;IACrB,GAAG,KAAK,OAAO;IACf,QAAQ,KAAK,OAAO,QAAQ;IAC5B,OAAO;IACR,CAAC;;EAEJ,MAAM,UAAU;GACd,MAAM,SAAS,MAAM,SACnB;IACE,GAAG,KAAK,QAAQ;IAChB,KAAK,UAAU,KAAK,gBAAgB,eAAe,KAAK,OAAO,KAAK;IACrE,EACD,MACD;AAED,OAAI,aAAa,KAAK,OAAO,QAAQ,YAAY,KAAK,aAAa,CACjE,OAAM,QAAQ,IACZ,OAAO,IAAI,OAAM,WACf,KAAK,YACH,OAAO,SACP,aACE,UACE,YACE,KAAK,OAAO,QAAQ,YACpB,KAAK,aACN,EACD,OAAO,SACR,EACD,EAAE,eAAe,OAAO,CACzB,CACF,CACF,CACF;OAED,OAAM,QAAQ,IACZ,OAAO,IAAI,OAAM,WACf,KAAK,GAAG,MACN,UAAU,KAAK,OAAO,QAAQ,YAAY,OAAO,SAAS,EAC1D,OAAO,QACR,CACF,CACF;;EAGN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CACjC,IAAA,CAAK,YAAA;;AADP;;;;;EASE,UAAA;EATwC;;;;;;;;EAmBxC,UAAA;AAAA;AAAA,KAGU,uBAAA,GAA0B,UAAA;EACpC,OAAA,GAAU,IAAA,CACR,YAAA,8DAGA,IAAA,CAAK,oBAAA,iCACL,QAAA,CAAS,IAAA,CAAK,oBAAA;AAAA;AAAA,KAGN,2BAAA,GAA8B,cAAA;EACxC,OAAA,EAAS,IAAA,CACP,YAAA,8DAGA,IAAA,CAAK,oBAAA,iCACL,QAAA,CAAS,IAAA,CAAK,oBAAA;AAAA;AAAA,KAGN,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;EAChB,OAAA;IACE,OAAA,EAAS,cAAA;EAAA;AAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CACjC,IAAA,CAAK,YAAA;;AADP;;;;;EASE,UAAA;EATwC;;;;;;;;EAmBxC,UAAA;AAAA;AAAA,KAGU,uBAAA,GAA0B,UAAA;EACpC,OAAA,GAAU,IAAA,CACR,YAAA,8DAGA,IAAA,CAAK,oBAAA,iCACL,QAAA,CAAS,IAAA,CAAK,oBAAA;AAAA;AAAA,KAGN,2BAAA,GAA8B,cAAA;EACxC,OAAA,EAAS,IAAA,CACP,YAAA,8DAGA,IAAA,CAAK,oBAAA,iCACL,QAAA,CAAS,IAAA,CAAK,oBAAA;AAAA;AAAA,KAGN,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;EAChB,OAAA;IACE,OAAA,EAAS,cAAA;EAAA;AAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-graphql",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.1.343",
|
|
4
|
+
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to generate project code from GraphQL schemas.",
|
|
6
|
+
"keywords": ["graphql", "powerlines", "storm-software", "powerlines-plugin"],
|
|
7
|
+
"homepage": "https://stormsoftware.com",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://stormsoftware.com/support",
|
|
10
|
+
"email": "support@stormsoftware.com"
|
|
11
|
+
},
|
|
6
12
|
"repository": {
|
|
7
13
|
"type": "github",
|
|
8
14
|
"url": "https://github.com/storm-software/powerlines.git",
|
|
9
15
|
"directory": "packages/plugin-graphql"
|
|
10
16
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"url": "https://
|
|
14
|
-
"email": "support@stormsoftware.com"
|
|
17
|
+
"funding": {
|
|
18
|
+
"type": "github",
|
|
19
|
+
"url": "https://github.com/sponsors/storm-software"
|
|
15
20
|
},
|
|
21
|
+
"license": "Apache-2.0",
|
|
16
22
|
"author": {
|
|
17
23
|
"name": "Storm Software",
|
|
18
24
|
"email": "contact@stormsoftware.com",
|
|
@@ -32,14 +38,7 @@
|
|
|
32
38
|
"url": "https://stormsoftware.com"
|
|
33
39
|
}
|
|
34
40
|
],
|
|
35
|
-
"
|
|
36
|
-
"type": "github",
|
|
37
|
-
"url": "https://github.com/sponsors/storm-software"
|
|
38
|
-
},
|
|
39
|
-
"license": "Apache-2.0",
|
|
40
|
-
"private": false,
|
|
41
|
-
"main": "./dist/index.cjs",
|
|
42
|
-
"module": "./dist/index.mjs",
|
|
41
|
+
"type": "module",
|
|
43
42
|
"exports": {
|
|
44
43
|
".": {
|
|
45
44
|
"require": {
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
"default": "./dist/index.mjs"
|
|
56
55
|
}
|
|
57
56
|
},
|
|
58
|
-
"
|
|
57
|
+
"./package.json": "./package.json",
|
|
59
58
|
"./types": {
|
|
60
59
|
"require": {
|
|
61
60
|
"types": "./dist/types/index.d.cts",
|
|
@@ -85,24 +84,26 @@
|
|
|
85
84
|
}
|
|
86
85
|
}
|
|
87
86
|
},
|
|
87
|
+
"main": "./dist/index.cjs",
|
|
88
|
+
"module": "./dist/index.mjs",
|
|
89
|
+
"types": "./dist/index.d.cts",
|
|
88
90
|
"typings": "dist/index.d.mts",
|
|
89
91
|
"files": ["dist/**/*"],
|
|
90
|
-
"keywords": ["graphql", "powerlines", "storm-software", "powerlines-plugin"],
|
|
91
92
|
"dependencies": {
|
|
92
93
|
"@graphql-codegen/cli": "^6.1.3",
|
|
94
|
+
"@storm-software/config-tools": "1.189.28",
|
|
93
95
|
"@stryke/path": "^0.26.19",
|
|
94
96
|
"@stryke/type-checks": "^0.5.38",
|
|
95
97
|
"@stryke/types": "^0.10.52",
|
|
96
98
|
"defu": "^6.1.4",
|
|
97
99
|
"jiti": "^2.6.1",
|
|
98
|
-
"powerlines": "^0.41.
|
|
100
|
+
"powerlines": "^0.41.7"
|
|
99
101
|
},
|
|
100
102
|
"devDependencies": {
|
|
101
103
|
"@graphql-codegen/plugin-helpers": "^6.1.1",
|
|
102
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
104
|
+
"@powerlines/plugin-plugin": "^0.12.293",
|
|
103
105
|
"@types/node": "^25.4.0"
|
|
104
106
|
},
|
|
105
107
|
"publishConfig": { "access": "public" },
|
|
106
|
-
"
|
|
107
|
-
"gitHead": "0ed0ad0cd6f440d1584ac705987ef985931161db"
|
|
108
|
+
"gitHead": "2fb48143904805988bac9bdbc04cdc4a35ff398b"
|
|
108
109
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.28_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
|
|
3
|
-
var LogLevelLabel = {
|
|
4
|
-
SILENT: "silent",
|
|
5
|
-
FATAL: "fatal",
|
|
6
|
-
ERROR: "error",
|
|
7
|
-
WARN: "warn",
|
|
8
|
-
SUCCESS: "success",
|
|
9
|
-
INFO: "info",
|
|
10
|
-
DEBUG: "debug",
|
|
11
|
-
TRACE: "trace",
|
|
12
|
-
ALL: "all"
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
exports.LogLevelLabel = LogLevelLabel;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.28_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
|
|
2
|
-
var LogLevelLabel = {
|
|
3
|
-
SILENT: "silent",
|
|
4
|
-
FATAL: "fatal",
|
|
5
|
-
ERROR: "error",
|
|
6
|
-
WARN: "warn",
|
|
7
|
-
SUCCESS: "success",
|
|
8
|
-
INFO: "info",
|
|
9
|
-
DEBUG: "debug",
|
|
10
|
-
TRACE: "trace",
|
|
11
|
-
ALL: "all"
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
export { LogLevelLabel };
|
|
16
|
-
//# sourceMappingURL=chunk-POXTJ6GF.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-POXTJ6GF.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@storm-software+config-tools@1.189.28_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js"],"sourcesContent":["// src/types.ts\nvar LogLevel = {\n SILENT: 0,\n FATAL: 10,\n ERROR: 20,\n WARN: 30,\n SUCCESS: 35,\n INFO: 40,\n DEBUG: 60,\n TRACE: 70,\n ALL: 100\n};\nvar LogLevelLabel = {\n SILENT: \"silent\",\n FATAL: \"fatal\",\n ERROR: \"error\",\n WARN: \"warn\",\n SUCCESS: \"success\",\n INFO: \"info\",\n DEBUG: \"debug\",\n TRACE: \"trace\",\n ALL: \"all\"\n};\n\nexport {\n LogLevel,\n LogLevelLabel\n};\n"],"x_google_ignoreList":[0],"mappings":";AAYA,IAAI,gBAAgB;CAClB,QAAQ;CACR,OAAO;CACP,OAAO;CACP,MAAM;CACN,SAAS;CACT,MAAM;CACN,OAAO;CACP,OAAO;CACP,KAAK;CACN"}
|