@powerlines/plugin-graphql 0.1.47 → 0.1.49

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.
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
package/dist/index.cjs CHANGED
@@ -1,7 +1 @@
1
- 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var cli=require('@graphql-codegen/cli'),types$1=require('@storm-software/config-tools/types'),filePathFns=require('@stryke/path/file-path-fns'),isParentPath=require('@stryke/path/is-parent-path'),joinPaths=require('@stryke/path/join-paths'),replace=require('@stryke/path/replace'),m=require('defu'),getConfigPath=require('powerlines/plugin-utils/get-config-path'),paths=require('powerlines/plugin-utils/paths'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var m__default=/*#__PURE__*/_interopDefault(m);/*****************************************
2
- *
3
- * ⚡ Built by Storm Software
4
- *
5
- *****************************************/
6
-
7
- var l=Object.defineProperty;var n=(o,t)=>l(o,"name",{value:t,configurable:true});const P=n((o={})=>({name:"graphql",config(){let t=o.configFile;if(!t&&(t=getConfigPath.getConfigPath(this,"codegen"),!t&&(t=getConfigPath.getConfigPath(this,"graphql-codegen"),!t)))throw new Error("No GraphQL Codegen configuration file found. Please specify a valid config file path in the Biome plugin's `configFile` options.");return {graphql:m__default.default(o,{configFile:t,silent:this.config.logLevel===null,verbose:this.config.logLevel===types$1.LogLevelLabel.DEBUG||this.config.logLevel===types$1.LogLevelLabel.TRACE,debug:this.config.mode==="development",outputPath:joinPaths.joinPaths("{builtinPath}","graphql")})}},async configResolved(){this.dependencies.graphql="latest",this.config.graphql.outputPath=paths.replacePathTokens(this,this.config.graphql.outputPath),this.graphql??={},this.graphql.codegen=await cli.loadContext(this.config.graphql.configFile),cli.updateContextWithCliFlags(this.graphql.codegen,{require:[],overwrite:true,project:this.config.projectRoot,...this.config.graphql,config:this.config.graphql.configFile,watch:false});},async prepare(){const t=await cli.generate({...this.graphql.codegen,cwd:joinPaths.joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot)},false);isParentPath.isParentPath(this.config.graphql.outputPath,this.builtinsPath)?await Promise.all(t.map(async i=>this.emitBuiltin(i.content,filePathFns.findFileName(joinPaths.joinPaths(replace.replacePath(this.config.graphql.outputPath,this.builtinsPath),i.filename),{withExtension:false}),joinPaths.joinPaths(this.config.graphql.outputPath,i.filename)))):await Promise.all(t.map(async i=>this.fs.write(joinPaths.joinPaths(this.config.graphql.outputPath,i.filename),i.content)));}}),"plugin");var B=P;exports.default=B;exports.plugin=P;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
1
+ Object.defineProperty(exports,`__esModule`,{value:!0});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));require(`./plugin-DHXHjv16.cjs`),require(`./types-DHkg7xmX.cjs`);let c=require(`@graphql-codegen/cli`),l=require(`@storm-software/config-tools/types`),u=require(`@stryke/path/file-path-fns`),d=require(`@stryke/path/is-parent-path`),f=require(`@stryke/path/join-paths`),p=require(`@stryke/path/replace`),m=require(`defu`);m=s(m);let h=require(`@stryke/path/join`),g=require(`node:fs`);function _(e,t){if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.yml`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.yml`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.yaml`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.yaml`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.json`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.json`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.jsonc`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.jsonc`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.ts`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.ts`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.cts`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.cts`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.mts`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.mts`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.js`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.js`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.cjs`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.cjs`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.mjs`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.mjs`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.ts`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.ts`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.cts`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.cts`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.mts`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.mts`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.js`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.js`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.cjs`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.cjs`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.mjs`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.mjs`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.yml`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.yml`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.yaml`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.yaml`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.json`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.json`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.jsonc`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.jsonc`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.ts`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.ts`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.cts`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.cts`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.mts`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.mts`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.js`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.js`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.cjs`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.cjs`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.mjs`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.mjs`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.config.ts`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.config.ts`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.config.cts`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.config.cts`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.config.mts`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.config.mts`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.config.js`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.config.js`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.config.cjs`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.config.cjs`);if((0,g.existsSync)((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.config.mjs`)))return(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,`${t}.config.mjs`)}function v(e,t){return t&&t.replaceAll(`{workspaceRoot}`,e.workspaceConfig.workspaceRoot).replaceAll(`{root}`,e.config.projectRoot).replaceAll(`{projectRoot}`,e.config.projectRoot).replaceAll(`{sourceRoot}`,e.config.sourceRoot).replaceAll(`{powerlinesPath}`,e.powerlinesPath).replaceAll(`{cachePath}`,e.cachePath).replaceAll(`{dataPath}`,e.dataPath).replaceAll(`{logPath}`,e.envPaths.log).replaceAll(`{tempPath}`,e.envPaths.temp).replaceAll(`{configPath}`,e.envPaths.config).replaceAll(`{outputPath}`,e.config.output.outputPath).replaceAll(`{buildPath}`,e.config.output.buildPath).replaceAll(`{artifactsPath}`,(0,p.replacePath)(e.artifactsPath,e.workspaceConfig.workspaceRoot)).replaceAll(`{builtinPath}`,(0,p.replacePath)(e.builtinsPath,e.workspaceConfig.workspaceRoot)).replaceAll(`{entryPath}`,(0,p.replacePath)(e.entryPath,e.workspaceConfig.workspaceRoot))}const y=(e={})=>({name:`graphql`,config(){let t=e.configFile;if(!t&&(t=_(this,`codegen`),!t&&(t=_(this,`graphql-codegen`),!t)))throw Error("No GraphQL Codegen configuration file found. Please specify a valid config file path in the Biome plugin's `configFile` options.");return{graphql:(0,m.default)(e,{configFile:t,silent:this.config.logLevel===null,verbose:this.config.logLevel===l.LogLevelLabel.DEBUG||this.config.logLevel===l.LogLevelLabel.TRACE,debug:this.config.mode===`development`,outputPath:(0,f.joinPaths)(`{builtinPath}`,`graphql`)})}},async configResolved(){this.dependencies.graphql=`latest`,this.config.graphql.outputPath=v(this,this.config.graphql.outputPath),this.graphql??={},this.graphql.codegen=await(0,c.loadContext)(this.config.graphql.configFile),(0,c.updateContextWithCliFlags)(this.graphql.codegen,{require:[],overwrite:!0,project:this.config.projectRoot,...this.config.graphql,config:this.config.graphql.configFile,watch:!1})},async prepare(){let e=await(0,c.generate)({...this.graphql.codegen,cwd:(0,f.joinPaths)(this.workspaceConfig.workspaceRoot,this.config.projectRoot)},!1);(0,d.isParentPath)(this.config.graphql.outputPath,this.builtinsPath)?await Promise.all(e.map(async e=>this.emitBuiltin(e.content,(0,u.findFileName)((0,f.joinPaths)((0,p.replacePath)(this.config.graphql.outputPath,this.builtinsPath),e.filename),{withExtension:!1}),(0,f.joinPaths)(this.config.graphql.outputPath,e.filename)))):await Promise.all(e.map(async e=>this.fs.write((0,f.joinPaths)(this.config.graphql.outputPath,e.filename),e.content)))}});var b=y;exports.default=b,exports.plugin=y;
package/dist/index.d.cts CHANGED
@@ -1,24 +1,7 @@
1
- import { G as GraphQLPluginContext, a as GraphQLPluginOptions, P as Plugin } from './index-Diu55gdf.cjs';
2
- export { c as GraphQLPluginResolvedConfig, b as GraphQLPluginUserConfig, f as __ΩGraphQLPluginContext, _ as __ΩGraphQLPluginOptions, e as __ΩGraphQLPluginResolvedConfig, d as __ΩGraphQLPluginUserConfig } from './index-Diu55gdf.cjs';
3
- import '@graphql-codegen/cli';
4
- import '@storm-software/build-tools/types';
5
- import '@storm-software/config-tools/types';
6
- import '@storm-software/config/types';
7
- import '@stryke/types/base';
8
- import '@stryke/types/configuration';
9
- import '@stryke/types/file';
10
- import 'vite';
11
- import '@stryke/env/get-env-paths';
12
- import '@stryke/types/package-json';
13
- import 'jiti';
14
- import 'magic-string';
15
- import 'semver';
16
- import 'ts-morph';
17
- import 'unplugin';
18
- import '@stryke/fs/resolve';
19
- import '@stryke/types/tsconfig';
20
- import 'typescript';
21
- import '@stryke/types/array';
1
+ import { a as __ΩGraphQLPluginContext, c as __ΩGraphQLPluginUserConfig, i as GraphQLPluginUserConfig, l as Plugin, n as GraphQLPluginOptions, o as __ΩGraphQLPluginOptions, r as GraphQLPluginResolvedConfig, s as __ΩGraphQLPluginResolvedConfig, t as GraphQLPluginContext } from "./plugin-C8EKSen_.cjs";
2
+ import "./index-CEgs-Dz2.cjs";
3
+
4
+ //#region src/index.d.ts
22
5
 
23
6
  /**
24
7
  * A Powerlines plugin to integrate GraphQL for code generation.
@@ -27,5 +10,6 @@ import '@stryke/types/array';
27
10
  * @returns A Powerlines plugin instance.
28
11
  */
29
12
  declare const plugin: <TContext extends GraphQLPluginContext = GraphQLPluginContext>(options?: GraphQLPluginOptions) => Plugin<TContext>;
30
-
31
- export { GraphQLPluginContext, GraphQLPluginOptions, plugin as default, plugin };
13
+ //#endregion
14
+ export { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig, plugin as default, plugin };
15
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;AA8CA;;;;;AAIG,cAJU,MAIV,EAAA,CAAA,iBAHgB,oBAGhB,GAHuC,oBAGvC,CAAA,CAAA,OAAA,CAAA,EADQ,oBACR,EAAA,GAAA,MAAA,CAAO,QAAP,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { a as __ΩGraphQLPluginContext, c as __ΩGraphQLPluginUserConfig, i as GraphQLPluginUserConfig, l as Plugin, n as GraphQLPluginOptions, o as __ΩGraphQLPluginOptions, r as GraphQLPluginResolvedConfig, s as __ΩGraphQLPluginResolvedConfig, t as GraphQLPluginContext } from "./plugin-BtLDTNBf.mjs";
2
+ import "./index-BgAdqTbb.mjs";
3
+
4
+ //#region src/index.d.ts
5
+
6
+ /**
7
+ * A Powerlines plugin to integrate GraphQL for code generation.
8
+ *
9
+ * @param options - The plugin options.
10
+ * @returns A Powerlines plugin instance.
11
+ */
12
+ declare const plugin: <TContext extends GraphQLPluginContext = GraphQLPluginContext>(options?: GraphQLPluginOptions) => Plugin<TContext>;
13
+ //#endregion
14
+ export { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig, plugin as default, plugin };
15
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;AA8CA;;;;;AAIG,cAJU,MAIV,EAAA,CAAA,iBAHgB,oBAGhB,GAHuC,oBAGvC,CAAA,CAAA,OAAA,CAAA,EADQ,oBACR,EAAA,GAAA,MAAA,CAAO,QAAP,CAAA"}
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import"./plugin-Bvn-he2n.mjs";import"./types-B7VYa_Pp.mjs";import{generate as e,loadContext as t,updateContextWithCliFlags as n}from"@graphql-codegen/cli";import{LogLevelLabel as r}from"@storm-software/config-tools/types";import{findFileName as i}from"@stryke/path/file-path-fns";import{isParentPath as a}from"@stryke/path/is-parent-path";import{joinPaths as o}from"@stryke/path/join-paths";import{replacePath as s}from"@stryke/path/replace";import c from"defu";import{joinPaths as l}from"@stryke/path/join";import{existsSync as u}from"node:fs";function d(e,t){if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.yml`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.yml`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.yaml`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.yaml`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.json`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.json`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.jsonc`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.jsonc`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.ts`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.ts`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.cts`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.cts`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.mts`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.mts`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.js`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.js`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.cjs`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.cjs`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.mjs`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.mjs`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.ts`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.ts`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.cts`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.cts`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.mts`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.mts`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.js`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.js`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.cjs`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.cjs`);if(u(l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.mjs`)))return l(e.workspaceConfig.workspaceRoot,e.config.projectRoot,`${t}.config.mjs`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.yml`)))return l(e.workspaceConfig.workspaceRoot,`${t}.yml`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.yaml`)))return l(e.workspaceConfig.workspaceRoot,`${t}.yaml`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.json`)))return l(e.workspaceConfig.workspaceRoot,`${t}.json`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.jsonc`)))return l(e.workspaceConfig.workspaceRoot,`${t}.jsonc`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.ts`)))return l(e.workspaceConfig.workspaceRoot,`${t}.ts`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.cts`)))return l(e.workspaceConfig.workspaceRoot,`${t}.cts`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.mts`)))return l(e.workspaceConfig.workspaceRoot,`${t}.mts`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.js`)))return l(e.workspaceConfig.workspaceRoot,`${t}.js`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.cjs`)))return l(e.workspaceConfig.workspaceRoot,`${t}.cjs`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.mjs`)))return l(e.workspaceConfig.workspaceRoot,`${t}.mjs`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.config.ts`)))return l(e.workspaceConfig.workspaceRoot,`${t}.config.ts`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.config.cts`)))return l(e.workspaceConfig.workspaceRoot,`${t}.config.cts`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.config.mts`)))return l(e.workspaceConfig.workspaceRoot,`${t}.config.mts`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.config.js`)))return l(e.workspaceConfig.workspaceRoot,`${t}.config.js`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.config.cjs`)))return l(e.workspaceConfig.workspaceRoot,`${t}.config.cjs`);if(u(l(e.workspaceConfig.workspaceRoot,`${t}.config.mjs`)))return l(e.workspaceConfig.workspaceRoot,`${t}.config.mjs`)}function f(e,t){return t&&t.replaceAll(`{workspaceRoot}`,e.workspaceConfig.workspaceRoot).replaceAll(`{root}`,e.config.projectRoot).replaceAll(`{projectRoot}`,e.config.projectRoot).replaceAll(`{sourceRoot}`,e.config.sourceRoot).replaceAll(`{powerlinesPath}`,e.powerlinesPath).replaceAll(`{cachePath}`,e.cachePath).replaceAll(`{dataPath}`,e.dataPath).replaceAll(`{logPath}`,e.envPaths.log).replaceAll(`{tempPath}`,e.envPaths.temp).replaceAll(`{configPath}`,e.envPaths.config).replaceAll(`{outputPath}`,e.config.output.outputPath).replaceAll(`{buildPath}`,e.config.output.buildPath).replaceAll(`{artifactsPath}`,s(e.artifactsPath,e.workspaceConfig.workspaceRoot)).replaceAll(`{builtinPath}`,s(e.builtinsPath,e.workspaceConfig.workspaceRoot)).replaceAll(`{entryPath}`,s(e.entryPath,e.workspaceConfig.workspaceRoot))}const p=(l={})=>({name:`graphql`,config(){let e=l.configFile;if(!e&&(e=d(this,`codegen`),!e&&(e=d(this,`graphql-codegen`),!e)))throw Error("No GraphQL Codegen configuration file found. Please specify a valid config file path in the Biome plugin's `configFile` options.");return{graphql:c(l,{configFile:e,silent:this.config.logLevel===null,verbose:this.config.logLevel===r.DEBUG||this.config.logLevel===r.TRACE,debug:this.config.mode===`development`,outputPath:o(`{builtinPath}`,`graphql`)})}},async configResolved(){this.dependencies.graphql=`latest`,this.config.graphql.outputPath=f(this,this.config.graphql.outputPath),this.graphql??={},this.graphql.codegen=await t(this.config.graphql.configFile),n(this.graphql.codegen,{require:[],overwrite:!0,project:this.config.projectRoot,...this.config.graphql,config:this.config.graphql.configFile,watch:!1})},async prepare(){let t=await e({...this.graphql.codegen,cwd:o(this.workspaceConfig.workspaceRoot,this.config.projectRoot)},!1);a(this.config.graphql.outputPath,this.builtinsPath)?await Promise.all(t.map(async e=>this.emitBuiltin(e.content,i(o(s(this.config.graphql.outputPath,this.builtinsPath),e.filename),{withExtension:!1}),o(this.config.graphql.outputPath,e.filename)))):await Promise.all(t.map(async e=>this.fs.write(o(this.config.graphql.outputPath,e.filename),e.content)))}});var m=p;export{m as default,p as plugin};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["joinPaths"],"sources":["../../powerlines/src/plugin-utils/get-config-path.ts","../../powerlines/src/plugin-utils/paths.ts","../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 { joinPaths } from \"@stryke/path/join\";\nimport { existsSync } from \"node:fs\";\nimport { UnresolvedContext } from \"../types/context\";\n\n/**\n * Get the configuration file path for a given name.\n *\n * @param context - The Powerlines context.\n * @param name - The name of the configuration file (without extension).\n * @returns The absolute path to the configuration file, or undefined if not found.\n */\nexport function getConfigPath(\n context: UnresolvedContext,\n name: string\n): string | undefined {\n if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.yml`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.yml`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.yaml`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.yaml`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.json`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.json`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.jsonc`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.jsonc`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.ts`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.ts`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.cts`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.cts`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.mts`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.mts`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.js`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.js`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.cjs`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.cjs`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.mjs`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.mjs`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.config.ts`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.config.ts`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.config.cts`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.config.cts`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.config.mts`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.config.mts`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.config.js`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.config.js`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.config.cjs`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.config.cjs`\n );\n } else if (\n existsSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.config.mjs`\n )\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n `${name}.config.mjs`\n );\n } else if (\n existsSync(joinPaths(context.workspaceConfig.workspaceRoot, `${name}.yml`))\n ) {\n return joinPaths(context.workspaceConfig.workspaceRoot, `${name}.yml`);\n } else if (\n existsSync(joinPaths(context.workspaceConfig.workspaceRoot, `${name}.yaml`))\n ) {\n return joinPaths(context.workspaceConfig.workspaceRoot, `${name}.yaml`);\n } else if (\n existsSync(joinPaths(context.workspaceConfig.workspaceRoot, `${name}.json`))\n ) {\n return joinPaths(context.workspaceConfig.workspaceRoot, `${name}.json`);\n } else if (\n existsSync(\n joinPaths(context.workspaceConfig.workspaceRoot, `${name}.jsonc`)\n )\n ) {\n return joinPaths(context.workspaceConfig.workspaceRoot, `${name}.jsonc`);\n } else if (\n existsSync(joinPaths(context.workspaceConfig.workspaceRoot, `${name}.ts`))\n ) {\n return joinPaths(context.workspaceConfig.workspaceRoot, `${name}.ts`);\n } else if (\n existsSync(joinPaths(context.workspaceConfig.workspaceRoot, `${name}.cts`))\n ) {\n return joinPaths(context.workspaceConfig.workspaceRoot, `${name}.cts`);\n } else if (\n existsSync(joinPaths(context.workspaceConfig.workspaceRoot, `${name}.mts`))\n ) {\n return joinPaths(context.workspaceConfig.workspaceRoot, `${name}.mts`);\n } else if (\n existsSync(joinPaths(context.workspaceConfig.workspaceRoot, `${name}.js`))\n ) {\n return joinPaths(context.workspaceConfig.workspaceRoot, `${name}.js`);\n } else if (\n existsSync(joinPaths(context.workspaceConfig.workspaceRoot, `${name}.cjs`))\n ) {\n return joinPaths(context.workspaceConfig.workspaceRoot, `${name}.cjs`);\n } else if (\n existsSync(joinPaths(context.workspaceConfig.workspaceRoot, `${name}.mjs`))\n ) {\n return joinPaths(context.workspaceConfig.workspaceRoot, `${name}.mjs`);\n } else if (\n existsSync(\n joinPaths(context.workspaceConfig.workspaceRoot, `${name}.config.ts`)\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n `${name}.config.ts`\n );\n } else if (\n existsSync(\n joinPaths(context.workspaceConfig.workspaceRoot, `${name}.config.cts`)\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n `${name}.config.cts`\n );\n } else if (\n existsSync(\n joinPaths(context.workspaceConfig.workspaceRoot, `${name}.config.mts`)\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n `${name}.config.mts`\n );\n } else if (\n existsSync(\n joinPaths(context.workspaceConfig.workspaceRoot, `${name}.config.js`)\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n `${name}.config.js`\n );\n } else if (\n existsSync(\n joinPaths(context.workspaceConfig.workspaceRoot, `${name}.config.cjs`)\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n `${name}.config.cjs`\n );\n } else if (\n existsSync(\n joinPaths(context.workspaceConfig.workspaceRoot, `${name}.config.mjs`)\n )\n ) {\n return joinPaths(\n context.workspaceConfig.workspaceRoot,\n `${name}.config.mjs`\n );\n }\n\n return undefined;\n}\n","/* -------------------------------------------------------------------\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 { replacePath } from \"@stryke/path/replace\";\nimport { IsUndefined } from \"@stryke/types/base\";\nimport { UnresolvedContext } from \"../types/context\";\n\n/**\n * Replaces tokens in the given path string with their corresponding values from the context.\n *\n * @remarks\n * The following tokens are supported:\n * - `{workspaceRoot}` - The root directory of the workspace.\n * - `{root}` - The root directory of the project (same as `{projectRoot}`).\n * - `{projectRoot}` - The root directory of the project (same as `{root}`).\n * - `{sourceRoot}` - The source root directory of the project (usually `./src`).\n * - `{powerlinesPath}` - The directory where Powerlines is installed.\n * - `{cachePath}` - The environment's directory for cached files.\n * - `{dataPath}` - The environment's directory for data files.\n * - `{logPath}` - The environment's directory for log files.\n * - `{tempPath}` - The environment's directory for temporary files.\n * - `{configPath}` - The environment's directory for configuration files.\n * - `{outputPath}` - The configured output directory for the project.\n * - `{buildPath}` - The configured distribution directory for the project.\n * - `{artifactsPath}` - The configured directory for build artifacts.\n * - `{builtinPath}` - The configured directory for generated built-in plugins.\n * - `{entryPath}` - The configured directory for generated entry files.\n *\n * @param context - The context containing the values for the path tokens.\n * @param path - The path string with tokens to replace.\n * @returns The path string with tokens replaced by their corresponding values from the context.\n */\nexport function replacePathTokens(\n context: UnresolvedContext,\n path?: string\n): IsUndefined<typeof path> extends true ? undefined : string {\n if (!path) {\n return path as IsUndefined<typeof path> extends true ? undefined : string;\n }\n\n return path\n .replaceAll(\"{workspaceRoot}\", context.workspaceConfig.workspaceRoot)\n .replaceAll(\"{root}\", context.config.projectRoot)\n .replaceAll(\"{projectRoot}\", context.config.projectRoot)\n .replaceAll(\"{sourceRoot}\", context.config.sourceRoot)\n .replaceAll(\"{powerlinesPath}\", context.powerlinesPath)\n .replaceAll(\"{cachePath}\", context.cachePath)\n .replaceAll(\"{dataPath}\", context.dataPath)\n .replaceAll(\"{logPath}\", context.envPaths.log)\n .replaceAll(\"{tempPath}\", context.envPaths.temp)\n .replaceAll(\"{configPath}\", context.envPaths.config)\n .replaceAll(\"{outputPath}\", context.config.output.outputPath)\n .replaceAll(\"{buildPath}\", context.config.output.buildPath)\n .replaceAll(\n \"{artifactsPath}\",\n replacePath(context.artifactsPath, context.workspaceConfig.workspaceRoot)\n )\n .replaceAll(\n \"{builtinPath}\",\n replacePath(context.builtinsPath, context.workspaceConfig.workspaceRoot)\n )\n .replaceAll(\n \"{entryPath}\",\n replacePath(context.entryPath, context.workspaceConfig.workspaceRoot)\n );\n}\n","/* -------------------------------------------------------------------\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 { getConfigPath } from \"powerlines/plugin-utils/get-config-path\";\nimport { replacePathTokens } from \"powerlines/plugin-utils/paths\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport {\n GraphQLPluginContext,\n GraphQLPluginOptions,\n GraphQLPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\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.projectRoot,\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(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot\n )\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 joinPaths(this.config.graphql.outputPath, output.filename)\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":"iiBA6BA,SAAgB,EACd,EACA,EACoB,CACpB,GACE,EACEA,EACE,EAAQ,gBAAgB,cACxB,EAAQ,OAAO,YACf,GAAG,EAAK,MACT,CACF,CAED,OAAOA,EACL,EAAQ,gBAAgB,cACxB,EAAQ,OAAO,YACf,GAAG,EAAK,MACT,IAED,EACEA,EACE,EAAQ,gBAAgB,cACxB,EAAQ,OAAO,YACf,GAAG,EAAK,OACT,CACF,CAED,OAAOA,EACL,EAAQ,gBAAgB,cACxB,EAAQ,OAAO,YACf,GAAG,EAAK,OACT,IAED,EACEA,EACE,EAAQ,gBAAgB,cACxB,EAAQ,OAAO,YACf,GAAG,EAAK,OACT,CACF,CAED,OAAOA,EACL,EAAQ,gBAAgB,cACxB,EAAQ,OAAO,YACf,GAAG,EAAK,OACT,IAED,EACEA,EACE,EAAQ,gBAAgB,cACxB,EAAQ,OAAO,YACf,GAAG,EAAK,QACT,CACF,CAED,OAAOA,EACL,EAAQ,gBAAgB,cACxB,EAAQ,OAAO,YACf,GAAG,EAAK,QACT,IAED,EACEA,EACE,EAAQ,gBAAgB,cACxB,EAAQ,OAAO,YACf,GAAG,EAAK,KACT,CACF,CAED,OAAOA,EACL,EAAQ,gBAAgB,cACxB,EAAQ,OAAO,YACf,GAAG,EAAK,KACT,IAED,EACEA,EACE,EAAQ,gBAAgB,cACxB,EAAQ,OAAO,YAC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