@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.
- package/dist/{cli-truncate-D3wAEQfN.mjs → cli-truncate-D9-H5ZcK.mjs} +2 -2
- package/dist/cli.d.mts +9 -0
- package/dist/cli.mjs +3 -3
- package/dist/index.d.mts +19 -0
- package/dist/index.mjs +1 -1
- package/dist/{log-update-ByzxNOMZ.mjs → log-update-C7F4wEC4.mjs} +2 -2
- package/dist/{main-D79GNEz7.mjs → main-DnxPgNLv.mjs} +4 -4
- package/dist/{slice-ansi-jJmCsHqC.mjs → slice-ansi-BXJtqwp2.mjs} +1 -1
- package/dist/wrap-ansi-B5Z_xwBN.mjs +3 -0
- package/dist/{wrap-ansi-CUNel7aF.mjs → wrap-ansi-BLh1Umdy.mjs} +2 -2
- package/package.json +2 -1
- package/dist/wrap-ansi-CNamFguB.mjs +0 -3
- /package/dist/{chunk-CIPSg9SW.mjs → chunk-BBnsswwY.mjs} +0 -0
- /package/dist/{get-east-asian-width-BRiQxJA0.mjs → get-east-asian-width-BrRn4isQ.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as eastAsianWidth } from "./get-east-asian-width-
|
|
2
|
-
import { t as sliceAnsi } from "./slice-ansi-
|
|
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
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-
|
|
3
|
-
import { t as generate } from "./main-
|
|
4
|
-
import { n as stringWidth, t as wrapAnsi } from "./wrap-ansi-
|
|
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";
|
package/dist/index.d.mts
ADDED
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
import { t as wrapAnsi } from "./wrap-ansi-
|
|
2
|
-
import { t as sliceAnsi } from "./slice-ansi-
|
|
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-
|
|
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-
|
|
1104
|
-
const { default: truncate } = await import("./cli-truncate-
|
|
1105
|
-
const { default: wrap } = await import("./wrap-ansi-
|
|
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-
|
|
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as __commonJSMin } from "./chunk-
|
|
2
|
-
import { t as eastAsianWidth } from "./get-east-asian-width-
|
|
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.
|
|
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",
|
|
File without changes
|
|
File without changes
|