@graphql-codegen/cli 3.1.0-alpha-20230217153118-8e7a4a5bc → 3.1.0-alpha-20230217154333-d17414c80

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/codegen.js CHANGED
@@ -27,14 +27,15 @@ const makeDefaultLoader = (from) => {
27
27
  }
28
28
  const relativeRequire = (0, module_1.createRequire)(from);
29
29
  return async (mod) => {
30
- return Promise.resolve().then(() => tslib_1.__importStar(require(isESMModule
30
+ var _a;
31
+ return _a = isESMModule
31
32
  ? /**
32
33
  * For ESM we currently have no "resolve path" solution
33
34
  * as import.meta is unavailable in a CommonJS context
34
35
  * and furthermore unavailable in stable Node.js.
35
36
  **/
36
37
  mod
37
- : relativeRequire.resolve(mod))));
38
+ : relativeRequire.resolve(mod), Promise.resolve().then(() => tslib_1.__importStar(require(_a)));
38
39
  };
39
40
  };
40
41
  function createCache() {
package/cjs/config.js CHANGED
@@ -182,9 +182,9 @@ exports.parseArgv = parseArgv;
182
182
  async function createContext(cliFlags = parseArgv(process.argv)) {
183
183
  if (cliFlags.require && cliFlags.require.length > 0) {
184
184
  const relativeRequire = (0, module_1.createRequire)(process.cwd());
185
- await Promise.all(cliFlags.require.map(mod => Promise.resolve().then(() => tslib_1.__importStar(require(relativeRequire.resolve(mod, {
185
+ await Promise.all(cliFlags.require.map(mod => { var _a; return _a = relativeRequire.resolve(mod, {
186
186
  paths: [process.cwd()],
187
- }))))));
187
+ }), Promise.resolve().then(() => tslib_1.__importStar(require(_a))); }));
188
188
  }
189
189
  const customConfigPath = getCustomConfigPath(cliFlags);
190
190
  const context = await loadContext(customConfigPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/cli",
3
- "version": "3.1.0-alpha-20230217153118-8e7a4a5bc",
3
+ "version": "3.1.0-alpha-20230217154333-d17414c80",
4
4
  "peerDependencies": {
5
5
  "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"
6
6
  },
@@ -8,8 +8,8 @@
8
8
  "@babel/generator": "^7.18.13",
9
9
  "@babel/template": "^7.18.10",
10
10
  "@babel/types": "^7.18.13",
11
- "@graphql-codegen/core": "3.0.1-alpha-20230217153118-8e7a4a5bc",
12
- "@graphql-codegen/plugin-helpers": "4.1.0-alpha-20230217153118-8e7a4a5bc",
11
+ "@graphql-codegen/core": "3.0.1-alpha-20230217154333-d17414c80",
12
+ "@graphql-codegen/plugin-helpers": "4.1.0-alpha-20230217154333-d17414c80",
13
13
  "@graphql-tools/apollo-engine-loader": "^7.3.6",
14
14
  "@graphql-tools/code-file-loader": "^7.3.17",
15
15
  "@graphql-tools/git-loader": "^7.2.13",
@@ -1,8 +1,8 @@
1
1
  import { Profiler, Types } from '@graphql-codegen/plugin-helpers';
2
2
  import { GraphQLSchema } from 'graphql';
3
3
  import { GraphQLConfig } from 'graphql-config';
4
- export declare type CodegenConfig = Types.Config;
5
- export declare type YamlCliFlags = {
4
+ export type CodegenConfig = Types.Config;
5
+ export type YamlCliFlags = {
6
6
  config: string;
7
7
  watch: boolean | string | string[];
8
8
  require: string[];
@@ -1,8 +1,8 @@
1
1
  import { Profiler, Types } from '@graphql-codegen/plugin-helpers';
2
2
  import { GraphQLSchema } from 'graphql';
3
3
  import { GraphQLConfig } from 'graphql-config';
4
- export declare type CodegenConfig = Types.Config;
5
- export declare type YamlCliFlags = {
4
+ export type CodegenConfig = Types.Config;
5
+ export type YamlCliFlags = {
6
6
  config: string;
7
7
  watch: boolean | string | string[];
8
8
  require: string[];
@@ -1,5 +1,5 @@
1
- declare type CompositeError = Error;
2
- declare type ListrError = Error & {
1
+ type CompositeError = Error;
2
+ type ListrError = Error & {
3
3
  errors: CompositeError[];
4
4
  };
5
5
  export declare function isListrError(err: Error & {
@@ -1,5 +1,5 @@
1
- declare type CompositeError = Error;
2
- declare type ListrError = Error & {
1
+ type CompositeError = Error;
2
+ type ListrError = Error & {
3
3
  errors: CompositeError[];
4
4
  };
5
5
  export declare function isListrError(err: Error & {