Comparing version 0.10.0-next.1 to 0.10.0-next.2
@@ -160,3 +160,3 @@ "use strict"; | ||
*/ | ||
const fnArg = Object.assign(Object.assign({}, data), { tools }); | ||
const fnArg = Object.assign(Object.assign({}, data), { tools, step: tools }); | ||
/** | ||
@@ -221,3 +221,3 @@ * If the user has passed functions they wish to use in their step, add them | ||
if (!userFnToRun) { | ||
throw new Error("Bad stack; no fn to execute; re-execute pls"); | ||
throw new Error(`Bad stack; executor requesting to run unknown step "${runStep}"`); | ||
} | ||
@@ -224,0 +224,0 @@ const result = await new Promise((resolve) => { |
{ | ||
"name": "inngest", | ||
"version": "0.10.0-next.1", | ||
"version": "0.10.0-next.2", | ||
"description": "Official SDK for Inngest.com", | ||
@@ -23,3 +23,3 @@ "main": "./index.js", | ||
"test": "node --expose-gc --max-old-space-size=4096 ./node_modules/.bin/jest --silent --logHeapUsage --maxWorkers=8 --coverage --ci --verbose", | ||
"test:examples": "node --expose-gc --max-old-space-size=4096 ./node_modules/.bin/jest --silent --logHeapUsage --maxWorkers=8 --testMatch \"**/examples/test/*.test.ts\" --ci --verbose", | ||
"test:examples": "node --expose-gc --max-old-space-size=4096 ./node_modules/.bin/jest --logHeapUsage --maxWorkers=8 --testMatch \"**/examples/**/*.test.ts\" --ci --verbose", | ||
"clean": "rm -rf ./dist", | ||
@@ -26,0 +26,0 @@ "lint": "eslint .", |
@@ -22,3 +22,7 @@ import { z } from "zod"; | ||
export type HandlerArgs<Events extends Record<string, EventPayload>, Event extends keyof Events, Opts extends FunctionOptions> = EventData<Events[Event]> & { | ||
/** | ||
* @deprecated Use `step` instead. | ||
*/ | ||
tools: ReturnType<typeof createStepTools<Events, Event>>[0]; | ||
step: ReturnType<typeof createStepTools<Events, Event>>[0]; | ||
} & (Opts["fns"] extends Record<string, any> ? { | ||
@@ -25,0 +29,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.10.0-next.1"; | ||
export declare const version = "0.10.0-next.2"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// Generated by genversion. | ||
exports.version = "0.10.0-next.1"; | ||
exports.version = "0.10.0-next.2"; | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
495734
4708