@workflowai/code-generator
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -11,2 +11,3 @@ import { JsonSchemaObject } from '@workflowai/schema'; | ||
taskId: string; | ||
taskName?: string; | ||
schema: { | ||
@@ -13,0 +14,0 @@ id: number; |
@@ -18,4 +18,4 @@ "use strict"; | ||
const getPlaygroundSnippets = async (config) => { | ||
const { taskId, schema, groupId, example } = config; | ||
const taskFunctionName = validVarName(taskId); | ||
const { taskId, taskName, schema, groupId, example } = config; | ||
const taskFunctionName = validVarName(taskName || taskId); | ||
return { | ||
@@ -22,0 +22,0 @@ installSdk: { |
@@ -18,4 +18,4 @@ "use strict"; | ||
const getPlaygroundSnippets = async (config) => { | ||
const { taskId, schema, groupId, example } = config; | ||
const taskFunctionName = validVarName(taskId); | ||
const { taskId, taskName, schema, groupId, example } = config; | ||
const taskFunctionName = validVarName(taskName || taskId); | ||
return { | ||
@@ -22,0 +22,0 @@ installSdk: { |
@@ -11,2 +11,3 @@ import { JsonSchemaObject } from '@workflowai/schema'; | ||
taskId: string; | ||
taskName?: string; | ||
schema: { | ||
@@ -13,0 +14,0 @@ id: number; |
{ | ||
"name": "@workflowai/code-generator", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "workflowAI code-generator", | ||
@@ -5,0 +5,0 @@ "author": "workflowAI", |
Sorry, the diff of this file is not supported yet
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
12483
262