@graphql-eslint/eslint-plugin 4.0.0-alpha.5 → 4.0.0-alpha.6

Sign up to get free protection for your applications and to get access to all the features.
package/cjs/index.d.cts CHANGED
@@ -18,7 +18,7 @@ declare const processors: {
18
18
  graphql: {
19
19
  meta: {
20
20
  name: string;
21
- version: string;
21
+ version: string | undefined;
22
22
  };
23
23
  supportsAutofix: true;
24
24
  preprocess(code: string, filePath: string): (string | Block)[];
package/cjs/meta.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- declare const version: string;
1
+ declare const version: string | undefined;
2
2
 
3
3
  export { version };
package/cjs/meta.js CHANGED
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
6
  var __export = (target, all) => {
8
7
  for (var name in all)
9
8
  __defProp(target, name, { get: all[name], enumerable: !0 });
@@ -13,21 +12,13 @@ var __export = (target, all) => {
13
12
  !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
13
  return to;
15
14
  };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
16
  var meta_exports = {};
25
17
  __export(meta_exports, {
26
18
  version: () => version
27
19
  });
28
20
  module.exports = __toCommonJS(meta_exports);
29
- var import_package = __toESM(require("../package.json"), 1);
30
- const { version } = import_package.default;
21
+ const version = "4.0.0-alpha.6";
31
22
  // Annotate the CommonJS export names for ESM import in node:
32
23
  0 && (module.exports = {
33
24
  version
package/cjs/parser.d.cts CHANGED
@@ -13,7 +13,7 @@ declare const parser: {
13
13
  parseForESLint: typeof parseForESLint;
14
14
  meta: {
15
15
  name: string;
16
- version: string;
16
+ version: string | undefined;
17
17
  };
18
18
  };
19
19
 
@@ -7,7 +7,7 @@ type Block = Linter.ProcessorFile & {
7
7
  declare const processor: {
8
8
  meta: {
9
9
  name: string;
10
- version: string;
10
+ version: string | undefined;
11
11
  };
12
12
  supportsAutofix: true;
13
13
  preprocess(code: string, filePath: string): (string | Block)[];
package/esm/index.d.ts CHANGED
@@ -18,7 +18,7 @@ declare const processors: {
18
18
  graphql: {
19
19
  meta: {
20
20
  name: string;
21
- version: string;
21
+ version: string | undefined;
22
22
  };
23
23
  supportsAutofix: true;
24
24
  preprocess(code: string, filePath: string): (string | Block)[];
package/esm/meta.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const version: string;
1
+ declare const version: string | undefined;
2
2
 
3
3
  export { version };
package/esm/meta.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import "./chunk-UIAXBAMD.js";
2
- import packageJson from "../package.json" with { type: "json" };
3
- const { version } = packageJson;
2
+ const version = "4.0.0-alpha.6";
4
3
  export {
5
4
  version
6
5
  };
package/esm/parser.d.ts CHANGED
@@ -13,7 +13,7 @@ declare const parser: {
13
13
  parseForESLint: typeof parseForESLint;
14
14
  meta: {
15
15
  name: string;
16
- version: string;
16
+ version: string | undefined;
17
17
  };
18
18
  };
19
19
 
@@ -7,7 +7,7 @@ type Block = Linter.ProcessorFile & {
7
7
  declare const processor: {
8
8
  meta: {
9
9
  name: string;
10
- version: string;
10
+ version: string | undefined;
11
11
  };
12
12
  supportsAutofix: true;
13
13
  preprocess(code: string, filePath: string): (string | Block)[];
package/index.browser.js CHANGED
@@ -387,78 +387,8 @@ function convertToESTree(node, schema15) {
387
387
  );
388
388
  }
389
389
 
390
- // package.json
391
- var package_default = {
392
- name: "@graphql-eslint/eslint-plugin",
393
- version: "4.0.0-alpha.5",
394
- type: "module",
395
- description: "GraphQL plugin for ESLint",
396
- repository: "https://github.com/B2o5T/graphql-eslint",
397
- author: "Dotan Simha <dotansimha@gmail.com>",
398
- license: "MIT",
399
- engines: {
400
- node: ">=18"
401
- },
402
- exports: {
403
- "./package.json": "./package.json",
404
- ".": {
405
- require: {
406
- types: "./dist/cjs/index.d.cts",
407
- default: "./dist/cjs/index.js"
408
- },
409
- import: {
410
- types: "./dist/esm/index.d.ts",
411
- default: "./dist/esm/index.js"
412
- }
413
- }
414
- },
415
- types: "dist/esm/index.d.ts",
416
- keywords: [
417
- "eslint",
418
- "eslintplugin",
419
- "eslint-plugin",
420
- "graphql"
421
- ],
422
- scripts: {
423
- build: "tsup",
424
- test: "vitest",
425
- typecheck: "tsc --noEmit"
426
- },
427
- peerDependencies: {
428
- eslint: ">=8.44.0",
429
- graphql: "^16"
430
- },
431
- dependencies: {
432
- "@graphql-tools/code-file-loader": "^8.0.0",
433
- "@graphql-tools/graphql-tag-pluck": "8.3.2",
434
- "@graphql-tools/utils": "^10.0.0",
435
- debug: "^4.3.4",
436
- "fast-glob": "^3.2.12",
437
- "graphql-config": "^5.1.0",
438
- "graphql-depth-limit": "^1.1.0",
439
- "lodash.lowercase": "^4.3.0"
440
- },
441
- devDependencies: {
442
- "@theguild/eslint-rule-tester": "workspace:*",
443
- "@types/debug": "4.1.12",
444
- "@types/eslint": "9.6.1",
445
- "@types/estree": "1.0.6",
446
- "@types/graphql-depth-limit": "1.1.6",
447
- "@types/json-schema": "7.0.15",
448
- "@types/lodash.lowercase": "4.3.9",
449
- graphql: "16.9.0",
450
- "json-schema-to-ts": "3.1.1",
451
- "vite-tsconfig-paths": "^5.0.0"
452
- },
453
- publishConfig: {
454
- directory: "dist",
455
- access: "public"
456
- },
457
- sideEffects: !1
458
- };
459
-
460
390
  // src/meta.ts
461
- var { version } = package_default;
391
+ var version = process.env.VERSION;
462
392
 
463
393
  // src/siblings.ts
464
394
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-eslint/eslint-plugin",
3
- "version": "4.0.0-alpha.5",
3
+ "version": "4.0.0-alpha.6",
4
4
  "type": "module",
5
5
  "description": "GraphQL plugin for ESLint",
6
6
  "repository": "https://github.com/B2o5T/graphql-eslint",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@graphql-tools/code-file-loader": "^8.0.0",
38
- "@graphql-tools/graphql-tag-pluck": "8.3.2",
38
+ "@graphql-tools/graphql-tag-pluck": "8.3.3",
39
39
  "@graphql-tools/utils": "^10.0.0",
40
40
  "debug": "^4.3.4",
41
41
  "fast-glob": "^3.2.12",