@graphql-codegen/cli 2.11.6 → 3.0.0-alpha-20220819143032-f72838c17

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
@@ -153,9 +153,7 @@ async function executeCodegen(input) {
153
153
  const generateTasks = Object.keys(generates).map(filename => {
154
154
  const outputConfig = generates[filename];
155
155
  const hasPreset = !!outputConfig.preset;
156
- const title = hasPreset
157
- ? `Generate to ${filename} (using EXPERIMENTAL preset "${outputConfig.preset}")`
158
- : `Generate ${filename}`;
156
+ const title = `Generate to ${filename}`;
159
157
  return {
160
158
  title,
161
159
  task: (_, subTask) => {
package/cjs/presets.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPresetByName = void 0;
4
- const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
5
4
  const path_1 = require("path");
6
5
  async function getPresetByName(name, loader) {
7
6
  const possibleNames = [
@@ -27,7 +26,8 @@ async function getPresetByName(name, loader) {
27
26
  err.code !== 'MODULE_NOT_FOUND' &&
28
27
  /** ESM Error code */
29
28
  err.code !== 'ERR_MODULE_NOT_FOUND') {
30
- throw new plugin_helpers_1.DetailedError(`Unable to load preset matching ${name}`, `
29
+ throw new Error(`Unable to load preset matching ${name}
30
+
31
31
  Unable to load preset matching '${name}'.
32
32
  Reason:
33
33
  ${err.message}
@@ -40,7 +40,8 @@ async function getPresetByName(name, loader) {
40
40
  - ${name}
41
41
  `.trimRight())
42
42
  .join('');
43
- throw new plugin_helpers_1.DetailedError(`Unable to find preset matching ${name}`, `
43
+ throw new Error(`Unable to find preset matching ${name}
44
+
44
45
  Unable to find preset matching '${name}'
45
46
  Install one of the following packages:
46
47
 
package/esm/codegen.js CHANGED
@@ -149,9 +149,7 @@ export async function executeCodegen(input) {
149
149
  const generateTasks = Object.keys(generates).map(filename => {
150
150
  const outputConfig = generates[filename];
151
151
  const hasPreset = !!outputConfig.preset;
152
- const title = hasPreset
153
- ? `Generate to ${filename} (using EXPERIMENTAL preset "${outputConfig.preset}")`
154
- : `Generate ${filename}`;
152
+ const title = `Generate to ${filename}`;
155
153
  return {
156
154
  title,
157
155
  task: (_, subTask) => {
package/esm/presets.js CHANGED
@@ -1,4 +1,3 @@
1
- import { DetailedError } from '@graphql-codegen/plugin-helpers';
2
1
  import { resolve } from 'path';
3
2
  export async function getPresetByName(name, loader) {
4
3
  const possibleNames = [
@@ -24,7 +23,8 @@ export async function getPresetByName(name, loader) {
24
23
  err.code !== 'MODULE_NOT_FOUND' &&
25
24
  /** ESM Error code */
26
25
  err.code !== 'ERR_MODULE_NOT_FOUND') {
27
- throw new DetailedError(`Unable to load preset matching ${name}`, `
26
+ throw new Error(`Unable to load preset matching ${name}
27
+
28
28
  Unable to load preset matching '${name}'.
29
29
  Reason:
30
30
  ${err.message}
@@ -37,7 +37,8 @@ export async function getPresetByName(name, loader) {
37
37
  - ${name}
38
38
  `.trimRight())
39
39
  .join('');
40
- throw new DetailedError(`Unable to find preset matching ${name}`, `
40
+ throw new Error(`Unable to find preset matching ${name}
41
+
41
42
  Unable to find preset matching '${name}'
42
43
  Install one of the following packages:
43
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/cli",
3
- "version": "2.11.6",
3
+ "version": "3.0.0-alpha-20220819143032-f72838c17",
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
  },