@manot40/genql-cli 1.0.1 → 1.0.2

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.
@@ -1,5 +1,5 @@
1
- import { t as eastAsianWidth } from "./get-east-asian-width-BRiQxJA0.mjs";
2
- import { t as sliceAnsi } from "./slice-ansi-jJmCsHqC.mjs";
1
+ import { t as eastAsianWidth } from "./get-east-asian-width-BrRn4isQ.mjs";
2
+ import { t as sliceAnsi } from "./slice-ansi-BXJtqwp2.mjs";
3
3
 
4
4
  //#region node_modules/cli-truncate/node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/index.js
5
5
  function ansiRegex({ onlyFirst = false } = {}) {
package/dist/cli.d.mts ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ //#region src/cli.d.ts
3
+ declare function printHelp({
4
+ dirPath
5
+ }: {
6
+ dirPath: any;
7
+ }): void;
8
+ //#endregion
9
+ export { printHelp };
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { n as __toESM, t as __commonJSMin } from "./chunk-CIPSg9SW.mjs";
3
- import { t as generate } from "./main-D79GNEz7.mjs";
4
- import { n as stringWidth, t as wrapAnsi } from "./wrap-ansi-CUNel7aF.mjs";
2
+ import { n as __toESM, t as __commonJSMin } from "./chunk-BBnsswwY.mjs";
3
+ import { t as generate } from "./main-DnxPgNLv.mjs";
4
+ import { n as stringWidth, t as wrapAnsi } from "./wrap-ansi-BLh1Umdy.mjs";
5
5
  import { createRequire } from "node:module";
6
6
  import { format, inspect } from "util";
7
7
  import { basename, dirname, extname, join, normalize, relative, resolve } from "path";
@@ -0,0 +1,19 @@
1
+ //#region src/config.d.ts
2
+ interface Config {
3
+ verbose?: boolean;
4
+ endpoint?: string;
5
+ useGet?: boolean;
6
+ schema?: string;
7
+ output?: string;
8
+ headers?: Record<string, string>;
9
+ scalarTypes?: {
10
+ [k: string]: string;
11
+ };
12
+ fetchImport?: string;
13
+ sortProperties?: boolean;
14
+ }
15
+ //#endregion
16
+ //#region src/main.d.ts
17
+ declare const generate: (config: Config) => Promise<void>;
18
+ //#endregion
19
+ export { generate };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as generate } from "./main-D79GNEz7.mjs";
1
+ import { t as generate } from "./main-DnxPgNLv.mjs";
2
2
 
3
3
  export { generate };
@@ -1,5 +1,5 @@
1
- import { t as wrapAnsi } from "./wrap-ansi-CUNel7aF.mjs";
2
- import { t as sliceAnsi } from "./slice-ansi-jJmCsHqC.mjs";
1
+ import { t as wrapAnsi } from "./wrap-ansi-BLh1Umdy.mjs";
2
+ import { t as sliceAnsi } from "./slice-ansi-BXJtqwp2.mjs";
3
3
  import process$1 from "node:process";
4
4
  import os from "node:os";
5
5
 
@@ -1,4 +1,4 @@
1
- import { n as __toESM, t as __commonJSMin } from "./chunk-CIPSg9SW.mjs";
1
+ import { n as __toESM, t as __commonJSMin } from "./chunk-BBnsswwY.mjs";
2
2
  import * as tty from "tty";
3
3
  import { format } from "util";
4
4
  import { EOL } from "os";
@@ -1100,9 +1100,9 @@ var DefaultRenderer = class DefaultRenderer$1 {
1100
1100
  this.logger.options.color = this.options.color;
1101
1101
  }
1102
1102
  async render() {
1103
- const { createLogUpdate } = await import("./log-update-ByzxNOMZ.mjs");
1104
- const { default: truncate } = await import("./cli-truncate-D3wAEQfN.mjs");
1105
- const { default: wrap } = await import("./wrap-ansi-CNamFguB.mjs");
1103
+ const { createLogUpdate } = await import("./log-update-C7F4wEC4.mjs");
1104
+ const { default: truncate } = await import("./cli-truncate-D9-H5ZcK.mjs");
1105
+ const { default: wrap } = await import("./wrap-ansi-B5Z_xwBN.mjs");
1106
1106
  this.updater = createLogUpdate(this.logger.process.stdout);
1107
1107
  this.truncate = truncate;
1108
1108
  this.wrap = wrap;
@@ -1,4 +1,4 @@
1
- import { n as isFullWidth, r as isWide } from "./get-east-asian-width-BRiQxJA0.mjs";
1
+ import { n as isFullWidth, r as isWide } from "./get-east-asian-width-BrRn4isQ.mjs";
2
2
 
3
3
  //#region node_modules/slice-ansi/node_modules/ansi-styles/index.js
4
4
  const ANSI_BACKGROUND_OFFSET = 10;
@@ -0,0 +1,3 @@
1
+ import { t as wrapAnsi } from "./wrap-ansi-BLh1Umdy.mjs";
2
+
3
+ export { wrapAnsi as default };
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as __commonJSMin } from "./chunk-CIPSg9SW.mjs";
2
- import { t as eastAsianWidth } from "./get-east-asian-width-BRiQxJA0.mjs";
1
+ import { n as __toESM, t as __commonJSMin } from "./chunk-BBnsswwY.mjs";
2
+ import { t as eastAsianWidth } from "./get-east-asian-width-BrRn4isQ.mjs";
3
3
 
4
4
  //#region node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/index.js
5
5
  function ansiRegex$1({ onlyFirst = false } = {}) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "@manot40/genql-cli",
4
4
  "author": "Tommaso De Rossi, morse <beats.by.morse@gmail.com>",
5
5
  "license": "MIT",
6
- "version": "1.0.1",
6
+ "version": "1.0.2",
7
7
  "homepage": "https://genql.dev",
8
8
  "description": "Generate a TypeScript SDK for any GraphQl API",
9
9
  "keywords": [
@@ -21,6 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">= 22.x"
23
23
  },
24
+ "types": "./dist/index.d.mts",
24
25
  "exports": {
25
26
  ".": "./dist/index.mjs",
26
27
  "./cli": "./dist/cli.mjs",
@@ -1,3 +0,0 @@
1
- import { t as wrapAnsi } from "./wrap-ansi-CUNel7aF.mjs";
2
-
3
- export { wrapAnsi as default };
File without changes