@graphql-eslint/eslint-plugin 4.0.0 → 4.0.1-alpha-20241127205058-a4fec1a6cf7006ea913f13e6afbf7ed2d82503c3

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/meta.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});const version = "4.0.0";
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});const version = "4.0.1-alpha-20241127205058-a4fec1a6cf7006ea913f13e6afbf7ed2d82503c3";
2
2
 
3
3
 
4
4
  exports.version = version;
@@ -130,6 +130,8 @@ ${_utilsjs.TYPES_KINDS.map((kind) => `- \`${kind}\``).join(`
130
130
  ].join(",")})$/] > FieldDefinition`
131
131
  );
132
132
  }
133
+ if (!kinds.size)
134
+ throw new Error("At least one kind must be enabled");
133
135
  return {
134
136
  [[...kinds].join(",")](node) {
135
137
  let description = "";
package/esm/meta.js CHANGED
@@ -1,4 +1,4 @@
1
- const version = "4.0.0";
1
+ const version = "4.0.1-alpha-20241127205058-a4fec1a6cf7006ea913f13e6afbf7ed2d82503c3";
2
2
  export {
3
3
  version
4
4
  };
@@ -130,6 +130,8 @@ ${TYPES_KINDS.map((kind) => `- \`${kind}\``).join(`
130
130
  ].join(",")})$/] > FieldDefinition`
131
131
  );
132
132
  }
133
+ if (!kinds.size)
134
+ throw new Error("At least one kind must be enabled");
133
135
  return {
134
136
  [[...kinds].join(",")](node) {
135
137
  let description = "";
package/index.browser.js CHANGED
@@ -4099,6 +4099,8 @@ ${TYPES_KINDS.map((kind) => `- \`${kind}\``).join(`
4099
4099
  ].join(",")})$/] > FieldDefinition`
4100
4100
  );
4101
4101
  }
4102
+ if (!kinds.size)
4103
+ throw new Error("At least one kind must be enabled");
4102
4104
  return {
4103
4105
  [[...kinds].join(",")](node) {
4104
4106
  let description = "", isOperation = node.kind === Kind17.OPERATION_DEFINITION;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-eslint/eslint-plugin",
3
- "version": "4.0.0",
3
+ "version": "4.0.1-alpha-20241127205058-a4fec1a6cf7006ea913f13e6afbf7ed2d82503c3",
4
4
  "type": "module",
5
5
  "description": "GraphQL plugin for ESLint",
6
6
  "repository": "https://github.com/dimaMachina/graphql-eslint",