@workflowai/code-generator
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -39,5 +39,5 @@ "use strict"; | ||
const fileProviderImport = { | ||
'fs-promise': 'import { readFile } from "fs/promises"\n', | ||
'fs-promise': 'import { readFile } from "fs/promises"', | ||
fetch: '', | ||
axios: 'import axios from "axios"\n', | ||
axios: 'import axios from "axios"', | ||
}[fileDataProvider]; | ||
@@ -116,3 +116,3 @@ return { | ||
const input: TaskInput<typeof ${taskFunctionName}> = ${beautifiedInput} | ||
const ouput: TaskOutput<typeof ${taskFunctionName}> = ${(0, beautify_1.beautifyTypescript)(JSON.stringify(example.output))} | ||
const output: TaskOutput<typeof ${taskFunctionName}> = ${(0, beautify_1.beautifyTypescript)(JSON.stringify(example.output))} | ||
@@ -119,0 +119,0 @@ await ${taskFunctionName}.importRun(input, output) |
@@ -36,5 +36,5 @@ import { inputSchemaToZod, outputSchemaToZod, } from '@workflowai/schema'; | ||
const fileProviderImport = { | ||
'fs-promise': 'import { readFile } from "fs/promises"\n', | ||
'fs-promise': 'import { readFile } from "fs/promises"', | ||
fetch: '', | ||
axios: 'import axios from "axios"\n', | ||
axios: 'import axios from "axios"', | ||
}[fileDataProvider]; | ||
@@ -113,3 +113,3 @@ return { | ||
const input: TaskInput<typeof ${taskFunctionName}> = ${beautifiedInput} | ||
const ouput: TaskOutput<typeof ${taskFunctionName}> = ${beautifyTypescript(JSON.stringify(example.output))} | ||
const output: TaskOutput<typeof ${taskFunctionName}> = ${beautifyTypescript(JSON.stringify(example.output))} | ||
@@ -116,0 +116,0 @@ await ${taskFunctionName}.importRun(input, output) |
{ | ||
"name": "@workflowai/code-generator", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "workflowAI code-generator", | ||
@@ -5,0 +5,0 @@ "author": "workflowAI", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15816