poe-code 3.0.381 → 3.0.382
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/package.json
CHANGED
|
@@ -124,10 +124,7 @@ export function generate(document, options) {
|
|
|
124
124
|
return [
|
|
125
125
|
...commands.map((command) => ({
|
|
126
126
|
path: command.filePath,
|
|
127
|
-
contents: createCommandFile(
|
|
128
|
-
specSha: options.specSha,
|
|
129
|
-
...command
|
|
130
|
-
})
|
|
127
|
+
contents: createCommandFile(command)
|
|
131
128
|
})),
|
|
132
129
|
createIndexFile(commands),
|
|
133
130
|
createClientFile(),
|
|
@@ -1488,10 +1485,7 @@ function createCommandFile(options) {
|
|
|
1488
1485
|
...(usesMultipartFileInputs ? ["prepareMultipartFileInputs"] : []),
|
|
1489
1486
|
...(usesBinaryOutput ? ["writeBinaryResponseOutput"] : [])
|
|
1490
1487
|
];
|
|
1491
|
-
const lines = createGeneratedTypeScriptFileLines([
|
|
1492
|
-
`spec-sha: ${options.specSha}`,
|
|
1493
|
-
`operation-id: ${options.operationId}`
|
|
1494
|
-
]);
|
|
1488
|
+
const lines = createGeneratedTypeScriptFileLines([`operation-id: ${options.operationId}`]);
|
|
1495
1489
|
lines.push(requiresUserError
|
|
1496
1490
|
? 'import { S, UserError } from "toolcraft";'
|
|
1497
1491
|
: 'import { S } from "toolcraft";', `import { ${openApiImports.join(", ")} } from "toolcraft-openapi";`, "", `export const ${options.exportName} = defineApiCommand({`, ` name: ${JSON.stringify(options.verb)},`);
|