@graphql-codegen/cli 2.0.0-alpha-2a3d5d099.0 → 2.0.1

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/bin.js CHANGED
@@ -352,10 +352,10 @@ async function getPluginByName(name, pluginLoader) {
352
352
  return await pluginLoader(moduleName);
353
353
  }
354
354
  catch (err) {
355
- if (err.code !== 'MODULE_NOT_FOUND' || !err.message.includes(moduleName)) {
355
+ if (err.code !== 'MODULE_NOT_FOUND') {
356
356
  throw new pluginHelpers.DetailedError(`Unable to load template plugin matching ${name}`, `
357
357
  Unable to load template plugin matching '${name}'.
358
- Reason:
358
+ Reason:
359
359
  ${err.message}
360
360
  `);
361
361
  }
@@ -369,7 +369,7 @@ async function getPluginByName(name, pluginLoader) {
369
369
  throw new pluginHelpers.DetailedError(`Unable to find template plugin matching ${name}`, `
370
370
  Unable to find template plugin matching '${name}'
371
371
  Install one of the following packages:
372
-
372
+
373
373
  ${possibleNamesMsg}
374
374
  `);
375
375
  }
@@ -388,10 +388,10 @@ async function getPresetByName(name, loader) {
388
388
  return loaded;
389
389
  }
390
390
  catch (err) {
391
- if (err.code !== 'MODULE_NOT_FOUND' || !err.message.includes(moduleName)) {
391
+ if (err.code !== 'MODULE_NOT_FOUND') {
392
392
  throw new pluginHelpers.DetailedError(`Unable to load preset matching ${name}`, `
393
393
  Unable to load preset matching '${name}'.
394
- Reason:
394
+ Reason:
395
395
  ${err.message}
396
396
  `);
397
397
  }
@@ -405,7 +405,7 @@ async function getPresetByName(name, loader) {
405
405
  throw new pluginHelpers.DetailedError(`Unable to find preset matching ${name}`, `
406
406
  Unable to find preset matching '${name}'
407
407
  Install one of the following packages:
408
-
408
+
409
409
  ${possibleNamesMsg}
410
410
  `);
411
411
  }
package/index.cjs.js CHANGED
@@ -270,10 +270,10 @@ async function getPluginByName(name, pluginLoader) {
270
270
  return await pluginLoader(moduleName);
271
271
  }
272
272
  catch (err) {
273
- if (err.code !== 'MODULE_NOT_FOUND' || !err.message.includes(moduleName)) {
273
+ if (err.code !== 'MODULE_NOT_FOUND') {
274
274
  throw new pluginHelpers.DetailedError(`Unable to load template plugin matching ${name}`, `
275
275
  Unable to load template plugin matching '${name}'.
276
- Reason:
276
+ Reason:
277
277
  ${err.message}
278
278
  `);
279
279
  }
@@ -287,7 +287,7 @@ async function getPluginByName(name, pluginLoader) {
287
287
  throw new pluginHelpers.DetailedError(`Unable to find template plugin matching ${name}`, `
288
288
  Unable to find template plugin matching '${name}'
289
289
  Install one of the following packages:
290
-
290
+
291
291
  ${possibleNamesMsg}
292
292
  `);
293
293
  }
@@ -306,10 +306,10 @@ async function getPresetByName(name, loader) {
306
306
  return loaded;
307
307
  }
308
308
  catch (err) {
309
- if (err.code !== 'MODULE_NOT_FOUND' || !err.message.includes(moduleName)) {
309
+ if (err.code !== 'MODULE_NOT_FOUND') {
310
310
  throw new pluginHelpers.DetailedError(`Unable to load preset matching ${name}`, `
311
311
  Unable to load preset matching '${name}'.
312
- Reason:
312
+ Reason:
313
313
  ${err.message}
314
314
  `);
315
315
  }
@@ -323,7 +323,7 @@ async function getPresetByName(name, loader) {
323
323
  throw new pluginHelpers.DetailedError(`Unable to find preset matching ${name}`, `
324
324
  Unable to find preset matching '${name}'
325
325
  Install one of the following packages:
326
-
326
+
327
327
  ${possibleNamesMsg}
328
328
  `);
329
329
  }