@graphql-inspector/cli 3.4.15 → 3.4.16-alpha-20230420133456-214f8327
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.
|
@@ -32,24 +32,35 @@ exports.default = (0, commands_1.createCommand)(api => {
|
|
|
32
32
|
var _a;
|
|
33
33
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
const { headers, token } = (0, commands_1.parseGlobalArgs)(args);
|
|
35
|
+
console.log("args", args);
|
|
36
|
+
console.log("headers", headers);
|
|
37
|
+
console.log("token", token);
|
|
35
38
|
const apolloFederation = args.federation || false;
|
|
39
|
+
console.log("apolloFederation", apolloFederation);
|
|
36
40
|
const aws = args.aws || false;
|
|
41
|
+
console.log("aws", aws);
|
|
37
42
|
const method = ((_a = args.method) === null || _a === void 0 ? void 0 : _a.toUpperCase()) || 'POST';
|
|
43
|
+
console.log("method", method);
|
|
38
44
|
const schema = yield loaders.loadSchema(args.schema, {
|
|
39
45
|
headers,
|
|
40
46
|
token,
|
|
41
47
|
method,
|
|
42
48
|
}, apolloFederation, aws);
|
|
43
49
|
const port = args.port;
|
|
50
|
+
console.log("port", port);
|
|
44
51
|
try {
|
|
45
52
|
(0, fake_js_1.fake)(schema);
|
|
46
53
|
const yoga = (0, graphql_yoga_1.createYoga)({
|
|
47
54
|
schema,
|
|
48
55
|
logging: false,
|
|
49
56
|
});
|
|
57
|
+
console.log("yoga", yoga);
|
|
50
58
|
const server = (0, http_1.createServer)(yoga);
|
|
59
|
+
console.log("server", server);
|
|
51
60
|
yield new Promise(resolve => server.listen(port, () => resolve()));
|
|
61
|
+
console.log("port", port);
|
|
52
62
|
const url = `http://localhost:${port}/graphql`;
|
|
63
|
+
console.log("url", url);
|
|
53
64
|
logger_1.Logger.success(`GraphQL API: ${url}`);
|
|
54
65
|
yield (0, open_1.default)(url);
|
|
55
66
|
const shutdown = () => {
|
|
@@ -30,24 +30,35 @@ export default createCommand(api => {
|
|
|
30
30
|
var _a;
|
|
31
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32
32
|
const { headers, token } = parseGlobalArgs(args);
|
|
33
|
+
console.log("args", args);
|
|
34
|
+
console.log("headers", headers);
|
|
35
|
+
console.log("token", token);
|
|
33
36
|
const apolloFederation = args.federation || false;
|
|
37
|
+
console.log("apolloFederation", apolloFederation);
|
|
34
38
|
const aws = args.aws || false;
|
|
39
|
+
console.log("aws", aws);
|
|
35
40
|
const method = ((_a = args.method) === null || _a === void 0 ? void 0 : _a.toUpperCase()) || 'POST';
|
|
41
|
+
console.log("method", method);
|
|
36
42
|
const schema = yield loaders.loadSchema(args.schema, {
|
|
37
43
|
headers,
|
|
38
44
|
token,
|
|
39
45
|
method,
|
|
40
46
|
}, apolloFederation, aws);
|
|
41
47
|
const port = args.port;
|
|
48
|
+
console.log("port", port);
|
|
42
49
|
try {
|
|
43
50
|
fake(schema);
|
|
44
51
|
const yoga = createYoga({
|
|
45
52
|
schema,
|
|
46
53
|
logging: false,
|
|
47
54
|
});
|
|
55
|
+
console.log("yoga", yoga);
|
|
48
56
|
const server = createServer(yoga);
|
|
57
|
+
console.log("server", server);
|
|
49
58
|
yield new Promise(resolve => server.listen(port, () => resolve()));
|
|
59
|
+
console.log("port", port);
|
|
50
60
|
const url = `http://localhost:${port}/graphql`;
|
|
61
|
+
console.log("url", url);
|
|
51
62
|
Logger.success(`GraphQL API: ${url}`);
|
|
52
63
|
yield open(url);
|
|
53
64
|
const shutdown = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-inspector/cli",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.16-alpha-20230420133456-214f8327",
|
|
4
4
|
"description": "Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@graphql-inspector/introspect-command": "3.4.11",
|
|
24
24
|
"@graphql-inspector/json-loader": "3.4.4",
|
|
25
25
|
"@graphql-inspector/loaders": "3.4.6",
|
|
26
|
-
"@graphql-inspector/serve-command": "3.4.
|
|
26
|
+
"@graphql-inspector/serve-command": "3.4.8-alpha-20230420133456-214f8327",
|
|
27
27
|
"@graphql-inspector/similar-command": "3.4.11",
|
|
28
28
|
"@graphql-inspector/url-loader": "3.4.4",
|
|
29
29
|
"@graphql-inspector/validate-command": "3.5.0"
|