@graphql-codegen/import-types-preset 2.2.6 → 3.0.0-alpha-20230524082546-d7e1d0a4a

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/cjs/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.preset = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
6
5
  const add_1 = tslib_1.__importDefault(require("@graphql-codegen/add"));
6
+ const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
7
7
  exports.preset = {
8
8
  buildGeneratesSection: options => {
9
9
  if (!options.presetConfig.typesPath) {
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isUsingTypes } from '@graphql-codegen/plugin-helpers';
2
1
  import addPlugin from '@graphql-codegen/add';
2
+ import { isUsingTypes } from '@graphql-codegen/plugin-helpers';
3
3
  export const preset = {
4
4
  buildGeneratesSection: options => {
5
5
  if (!options.presetConfig.typesPath) {
package/package.json CHANGED
@@ -1,22 +1,25 @@
1
1
  {
2
2
  "name": "@graphql-codegen/import-types-preset",
3
- "version": "2.2.6",
3
+ "version": "3.0.0-alpha-20230524082546-d7e1d0a4a",
4
4
  "description": "GraphQL Code Generator preset for importing types to operation file",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
7
7
  },
8
8
  "dependencies": {
9
9
  "@graphql-codegen/add": "^3.2.1",
10
- "@graphql-codegen/plugin-helpers": "^2.7.2",
10
+ "@graphql-codegen/plugin-helpers": "^3.0.0",
11
11
  "@graphql-codegen/visitor-plugin-common": "2.13.1",
12
12
  "tslib": "~2.4.0"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "https://github.com/dotansimha/graphql-code-generator.git",
16
+ "url": "https://github.com/dotansimha/graphql-code-generator-community.git",
17
17
  "directory": "packages/presets/import-types"
18
18
  },
19
19
  "license": "MIT",
20
+ "engines": {
21
+ "node": ">= 16.0.0"
22
+ },
20
23
  "main": "cjs/index.js",
21
24
  "module": "esm/index.js",
22
25
  "typings": "typings/index.d.ts",
@@ -1,6 +1,6 @@
1
- import { Types } from '@graphql-codegen/plugin-helpers';
2
1
  import { FragmentDefinitionNode } from 'graphql';
3
- export declare type ImportTypesConfig = {
2
+ import { Types } from '@graphql-codegen/plugin-helpers';
3
+ export type ImportTypesConfig = {
4
4
  /**
5
5
  * @description Required, should point to the base schema types file.
6
6
  * The key of the output is used a the base path for this file.
@@ -51,7 +51,7 @@ export declare type ImportTypesConfig = {
51
51
  */
52
52
  importTypesNamespace?: string;
53
53
  };
54
- export declare type FragmentNameToFile = {
54
+ export type FragmentNameToFile = {
55
55
  [fragmentName: string]: {
56
56
  location: string;
57
57
  importName: string;
@@ -1,6 +1,6 @@
1
- import { Types } from '@graphql-codegen/plugin-helpers';
2
1
  import { FragmentDefinitionNode } from 'graphql';
3
- export declare type ImportTypesConfig = {
2
+ import { Types } from '@graphql-codegen/plugin-helpers';
3
+ export type ImportTypesConfig = {
4
4
  /**
5
5
  * @description Required, should point to the base schema types file.
6
6
  * The key of the output is used a the base path for this file.
@@ -51,7 +51,7 @@ export declare type ImportTypesConfig = {
51
51
  */
52
52
  importTypesNamespace?: string;
53
53
  };
54
- export declare type FragmentNameToFile = {
54
+ export type FragmentNameToFile = {
55
55
  [fragmentName: string]: {
56
56
  location: string;
57
57
  importName: string;