@graphcommerce/graphql-codegen-near-operation-file 9.0.0-canary.103 → 9.0.0-canary.105

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.105
4
+
5
+ ## 9.0.0-canary.104
6
+
3
7
  ## 9.0.0-canary.103
4
8
 
5
9
  ### Patch Changes
package/dist/index.js CHANGED
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.preset = exports.resolveDocumentImports = void 0;
7
- const path_1 = require("path");
8
7
  const add_1 = __importDefault(require("@graphql-codegen/add"));
9
8
  const graphql_1 = require("graphql");
9
+ const path_1 = require("path");
10
10
  const env_1 = require("./directive/env");
11
11
  const injectable_1 = require("./directive/injectable");
12
12
  const resolve_document_imports_1 = require("./resolve-document-imports");
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ /* eslint-disable @typescript-eslint/no-non-null-assertion */
2
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
4
  if (k2 === undefined) k2 = k;
4
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -24,12 +25,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
25
  };
25
26
  Object.defineProperty(exports, "__esModule", { value: true });
26
27
  exports.resolveDocumentImports = resolveDocumentImports;
27
- /* eslint-disable @typescript-eslint/no-non-null-assertion */
28
- /* eslint-disable import/no-cycle */
29
- const path_1 = require("path");
30
28
  const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
31
29
  const visitor_plugin_common_1 = require("@graphql-codegen/visitor-plugin-common");
32
30
  const graphql_1 = require("graphql");
31
+ const path_1 = require("path");
33
32
  const fragment_resolver_1 = __importStar(require("./fragment-resolver"));
34
33
  const utils_1 = require("./utils");
35
34
  function getFragmentName(documentFile) {
package/dist/utils.js CHANGED
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.defineFilepathSubfolder = defineFilepathSubfolder;
7
7
  exports.appendExtensionToFilePath = appendExtensionToFilePath;
8
8
  exports.extractExternalFragmentsInUse = extractExternalFragmentsInUse;
9
- /* eslint-disable import/no-cycle */
10
- const path_1 = require("path");
11
9
  const graphql_1 = require("graphql");
12
10
  const parse_filepath_1 = __importDefault(require("parse-filepath"));
11
+ const path_1 = require("path");
13
12
  function defineFilepathSubfolder(baseFilePath, folder) {
14
13
  const parsedPath = (0, parse_filepath_1.default)(baseFilePath);
15
14
  return (0, path_1.join)(parsedPath.dir, folder, parsedPath.base).replace(/\\/g, '/');
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/graphql-codegen-near-operation-file",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.103",
5
+ "version": "9.0.0-canary.105",
6
6
  "sideEffects": false,
7
7
  "type": "commonjs",
8
8
  "main": "dist/index.js",
@@ -29,8 +29,8 @@
29
29
  "parse-filepath": "^1.0.2"
30
30
  },
31
31
  "peerDependencies": {
32
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.103",
33
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.103",
34
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.103"
32
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.105",
33
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.105",
34
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.105"
35
35
  }
36
36
  }
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable react/destructuring-assignment */
2
2
  import type { Types } from '@graphql-codegen/plugin-helpers'
3
- import type { DocumentNode, FragmentSpreadNode, FragmentDefinitionNode } from 'graphql'
4
- import { visit, Kind } from 'graphql'
3
+ import type { DocumentNode, FragmentDefinitionNode, FragmentSpreadNode } from 'graphql'
4
+ import { Kind, visit } from 'graphql'
5
5
 
6
6
  function isFragment(document: DocumentNode) {
7
7
  let is = false
@@ -2,16 +2,16 @@
2
2
  import type { Types } from '@graphql-codegen/plugin-helpers'
3
3
  import type {
4
4
  FragmentImport,
5
+ ImportDeclaration,
5
6
  LoadedFragment,
6
7
  ParsedConfig,
7
8
  RawConfig,
8
- ImportDeclaration,
9
9
  } from '@graphql-codegen/visitor-plugin-common'
10
10
  import {
11
11
  BaseVisitor,
12
+ buildScalarsFromConfig,
12
13
  getConfigValue,
13
14
  getPossibleTypes,
14
- buildScalarsFromConfig,
15
15
  } from '@graphql-codegen/visitor-plugin-common'
16
16
  import type { DocumentNode, FragmentDefinitionNode, GraphQLSchema } from 'graphql'
17
17
  import { Kind, print } from 'graphql'
package/src/index.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { join } from 'path'
2
1
  import addPlugin from '@graphql-codegen/add'
3
- import type { Types, CodegenPlugin } from '@graphql-codegen/plugin-helpers'
2
+ import type { CodegenPlugin, Types } from '@graphql-codegen/plugin-helpers'
4
3
  import type {
5
4
  FragmentImport,
6
5
  ImportDeclaration,
@@ -8,6 +7,7 @@ import type {
8
7
  } from '@graphql-codegen/visitor-plugin-common'
9
8
  import type { FragmentDefinitionNode } from 'graphql'
10
9
  import { buildASTSchema, visit } from 'graphql'
10
+ import { join } from 'path'
11
11
  import { envDirective } from './directive/env'
12
12
  import { injectableDirective } from './directive/injectable'
13
13
  import type { DocumentImportResolverOptions } from './resolve-document-imports'
@@ -1,12 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
2
+
2
3
  /* eslint-disable import/no-cycle */
3
- import { resolve } from 'path'
4
4
  import type { Types } from '@graphql-codegen/plugin-helpers'
5
5
  import { isUsingTypes } from '@graphql-codegen/plugin-helpers'
6
6
  import type {
7
- ImportSource,
8
7
  FragmentImport,
9
8
  ImportDeclaration,
9
+ ImportSource,
10
10
  LoadedFragment,
11
11
  } from '@graphql-codegen/visitor-plugin-common'
12
12
  import {
@@ -16,6 +16,7 @@ import {
16
16
  import type { Source } from '@graphql-tools/utils'
17
17
  import type { DocumentNode, FragmentDefinitionNode, GraphQLSchema } from 'graphql'
18
18
  import { visit } from 'graphql'
19
+ import { resolve } from 'path'
19
20
  import buildFragmentResolver, { buildFragmentRegistry } from './fragment-resolver'
20
21
  import { extractExternalFragmentsInUse } from './utils'
21
22
 
package/src/utils.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable import/no-cycle */
2
- import { join } from 'path'
3
- import type { DocumentNode, FragmentSpreadNode, FragmentDefinitionNode } from 'graphql'
2
+ import type { DocumentNode, FragmentDefinitionNode, FragmentSpreadNode } from 'graphql'
4
3
  import { visit } from 'graphql'
5
4
  import parsePath from 'parse-filepath'
5
+ import { join } from 'path'
6
6
  import type { FragmentRegistry } from './fragment-resolver'
7
7
 
8
8
  export function defineFilepathSubfolder(baseFilePath: string, folder: string) {