@devticon-os/graphql-codegen-axios 0.5.2 → 0.5.4
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/lib/index.js +85 -36
- package/lib/index.js.map +1 -1
- package/lib/prettier.js +52 -12
- package/lib/prettier.js.map +1 -1
- package/package.json +1 -1
- package/templates/helpers.ts +3 -0
package/lib/index.js
CHANGED
|
@@ -10,6 +10,42 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
13
49
|
var __read = (this && this.__read) || function (o, n) {
|
|
14
50
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
51
|
if (!m) return o;
|
|
@@ -60,43 +96,56 @@ var directives = operation_1.pluginDirectivesOptions
|
|
|
60
96
|
var plugin = {
|
|
61
97
|
plugin: function (schema, documents, config) {
|
|
62
98
|
if (config === void 0) { config = {}; }
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
99
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
+
var directivesPath, schemaPath, imports, fragments, operations, enums, scalars, output, _a, _b, _c, e_1;
|
|
101
|
+
return __generator(this, function (_d) {
|
|
102
|
+
switch (_d.label) {
|
|
103
|
+
case 0:
|
|
104
|
+
_d.trys.push([0, 3, , 4]);
|
|
105
|
+
config = __assign({ autoSingleResult: true, prettier: true, hasura: __assign({ enabled: false }, (config.hasura || {})) }, config);
|
|
106
|
+
if (config.emitDirectives) {
|
|
107
|
+
directivesPath = typeof config.emitDirectives === 'string' ? config.emitDirectives : 'directives.graphql';
|
|
108
|
+
fs.mkdirSync(path.dirname(directivesPath), { recursive: true });
|
|
109
|
+
fs.writeFileSync(path.join(directivesPath), directives);
|
|
110
|
+
}
|
|
111
|
+
if (config.emitSchema) {
|
|
112
|
+
schemaPath = typeof config.emitSchema === 'string' ? config.emitSchema : 'schema.graphql';
|
|
113
|
+
fs.mkdirSync(path.dirname(schemaPath), { recursive: true });
|
|
114
|
+
fs.writeFileSync(path.join(schemaPath), (0, utilities_1.printSchema)(schema));
|
|
115
|
+
}
|
|
116
|
+
imports = (0, input_1.findUsageInputs)(documents, schema, config);
|
|
117
|
+
fragments = (0, fragments_1.findUsageFragments)(documents);
|
|
118
|
+
operations = (0, operation_1.findUsageOperation)(documents, schema, config);
|
|
119
|
+
enums = (0, enums_1.findUsageEnums)(imports, [], fragments, operations, schema);
|
|
120
|
+
scalars = (0, scalar_1.findScalars)(schema);
|
|
121
|
+
if (!config.hasura.enabled) return [3 /*break*/, 2];
|
|
122
|
+
output = config.hasura.output || 'hasura.ts';
|
|
123
|
+
if (!fs.existsSync(path.dirname(output))) {
|
|
124
|
+
fs.mkdirSync(path.dirname(output), { recursive: true });
|
|
125
|
+
}
|
|
126
|
+
_b = (_a = fs).writeFileSync;
|
|
127
|
+
_c = [path.join(output)];
|
|
128
|
+
return [4 /*yield*/, (0, prettier_1.runPrettierIfExists)(config, (0, hasura_1.printHasura)(schema, config))];
|
|
129
|
+
case 1:
|
|
130
|
+
_b.apply(_a, _c.concat([_d.sent()]));
|
|
131
|
+
_d.label = 2;
|
|
132
|
+
case 2: return [2 /*return*/, (0, prettier_1.runPrettierIfExists)(config, __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([
|
|
133
|
+
(0, print_1.printIgnores)(config),
|
|
134
|
+
(0, print_1.printNullable)(config),
|
|
135
|
+
(0, print_1.printHelpers)(config),
|
|
136
|
+
(0, print_1.printScalars)(scalars, config)
|
|
137
|
+
], __read(enums.map(function (e) { return (0, print_1.printEnum)(e, config); })), false), __read(imports.map(function (i) { return (0, print_1.printInput)(i, config, true); })), false), __read(fragments.map(function (f) { return (0, print_1.printFragmentType)(f, schema, config); })), false), __read(fragments.map(function (f) { return (0, print_1.printFragmentGql)(f); })), false), __read(operations.map(function (o) { return (0, print_1.printOperationTypes)(o, config); })), false), [
|
|
138
|
+
(0, print_1.printCreateSdkFunction)(operations, config)
|
|
139
|
+
], false), __read((0, print_1.printOperationResultsJsonSchema)(operations, config)), false), __read((0, print_1.printFragmentJsonSchema)(fragments, schema, config)), false).join('\n'))];
|
|
140
|
+
case 3:
|
|
141
|
+
e_1 = _d.sent();
|
|
142
|
+
console.log(e_1);
|
|
143
|
+
process.exit(1);
|
|
144
|
+
return [3 /*break*/, 4];
|
|
145
|
+
case 4: return [2 /*return*/];
|
|
84
146
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return (0, prettier_1.runPrettierIfExists)(config, __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([
|
|
88
|
-
(0, print_1.printIgnores)(config),
|
|
89
|
-
(0, print_1.printNullable)(config),
|
|
90
|
-
(0, print_1.printHelpers)(config),
|
|
91
|
-
(0, print_1.printScalars)(scalars, config)
|
|
92
|
-
], __read(enums.map(function (e) { return (0, print_1.printEnum)(e, config); })), false), __read(imports.map(function (i) { return (0, print_1.printInput)(i, config, true); })), false), __read(fragments.map(function (f) { return (0, print_1.printFragmentType)(f, schema, config); })), false), __read(fragments.map(function (f) { return (0, print_1.printFragmentGql)(f); })), false), __read(operations.map(function (o) { return (0, print_1.printOperationTypes)(o, config); })), false), [
|
|
93
|
-
(0, print_1.printCreateSdkFunction)(operations, config)
|
|
94
|
-
], false), __read((0, print_1.printOperationResultsJsonSchema)(operations, config)), false), __read((0, print_1.printFragmentJsonSchema)(fragments, schema, config)), false).join('\n'));
|
|
95
|
-
}
|
|
96
|
-
catch (e) {
|
|
97
|
-
console.log(e);
|
|
98
|
-
process.exit(1);
|
|
99
|
-
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
100
149
|
},
|
|
101
150
|
addToSchema: directives,
|
|
102
151
|
};
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uBAAyB;AACzB,2BAA6B;AAC7B,iCAA0C;AAE1C,iCAaiB;AACjB,iCAAyC;AACzC,yCAAiD;AACjD,yCAA4F;AAC5F,mCAAuC;AACvC,uCAAiD;AACjD,+CAAgD;AAChD,mCAAuC;AAEvC,IAAM,UAAU,GAAG,mCAAuB;KACvC,GAAG,CAAC,UAAA,CAAC;IACJ,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE;QAC3B,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,UAAG,CAAC,CAAC,IAAI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9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
14
36
|
}
|
|
15
37
|
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.runPrettierIfExists = void 0;
|
|
40
|
+
var runPrettierIfExists = function (config, content) { return __awaiter(void 0, void 0, void 0, function () {
|
|
41
|
+
var prettier;
|
|
42
|
+
return __generator(this, function (_a) {
|
|
43
|
+
if (config.prettier === false) {
|
|
44
|
+
return [2 /*return*/, content];
|
|
45
|
+
}
|
|
46
|
+
try {
|
|
47
|
+
prettier = require('prettier');
|
|
48
|
+
return [2 /*return*/, prettier.format(content, { parser: 'typescript' })];
|
|
49
|
+
}
|
|
50
|
+
catch (e) {
|
|
51
|
+
return [2 /*return*/, content];
|
|
52
|
+
}
|
|
53
|
+
return [2 /*return*/];
|
|
54
|
+
});
|
|
55
|
+
}); };
|
|
16
56
|
exports.runPrettierIfExists = runPrettierIfExists;
|
|
17
57
|
//# sourceMappingURL=prettier.js.map
|
package/lib/prettier.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.js","sourceRoot":"","sources":["../src/prettier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prettier.js","sourceRoot":"","sources":["../src/prettier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEO,IAAM,mBAAmB,GAAG,UAAO,MAAc,EAAE,OAAe;;;QACvE,IAAI,MAAM,CAAC,QAAQ,KAAK,KAAK,EAAE;YAC7B,sBAAO,OAAO,EAAC;SAChB;QACD,IAAI;YACI,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;YACrC,sBAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,EAAC;SAC3D;QAAC,OAAO,CAAC,EAAE;YACV,sBAAO,OAAO,EAAC;SAChB;;;KACF,CAAC;AAVW,QAAA,mBAAmB,uBAU9B"}
|
package/package.json
CHANGED
package/templates/helpers.ts
CHANGED