@e2b/code-interpreter
Advanced tools
Comparing version 0.0.1-prerelease.0 to 0.0.1-prerelease.1
@@ -187,5 +187,11 @@ import { Sandbox, SandboxOpts, ProcessMessage } from 'e2b'; | ||
* @param onStderr A callback function to handle standard error messages from the code execution. | ||
* @param onDisplayData A callback function to handle display data messages from the code execution. | ||
* @returns A promise that resolves with the result of the code execution. | ||
*/ | ||
execCell(code: string, kernelID?: string, onStdout?: (msg: ProcessMessage) => any, onStderr?: (msg: ProcessMessage) => any, onDisplayData?: (data: Data) => any): Promise<Result>; | ||
execCell(code: string, { kernelID, onStdout, onStderr, onDisplayData, }: { | ||
kernelID?: string; | ||
onStdout?: (msg: ProcessMessage) => Promise<void> | void; | ||
onStderr?: (msg: ProcessMessage) => Promise<void> | void; | ||
onDisplayData?: (data: Data) => Promise<void> | void; | ||
}): Promise<Result>; | ||
private startConnectingToDefaultKernel; | ||
@@ -192,0 +198,0 @@ /** |
@@ -416,6 +416,12 @@ "use strict"; | ||
* @param onStderr A callback function to handle standard error messages from the code execution. | ||
* @param onDisplayData A callback function to handle display data messages from the code execution. | ||
* @returns A promise that resolves with the result of the code execution. | ||
*/ | ||
execCell(code, kernelID, onStdout, onStderr, onDisplayData) { | ||
return __async(this, null, function* () { | ||
execCell(_0, _1) { | ||
return __async(this, arguments, function* (code, { | ||
kernelID, | ||
onStdout, | ||
onStderr, | ||
onDisplayData | ||
}) { | ||
kernelID = kernelID || (yield this.defaultKernelID); | ||
@@ -422,0 +428,0 @@ const ws = this.connectedKernels[kernelID] || (yield this.connectToKernelWS(kernelID)); |
{ | ||
"name": "@e2b/code-interpreter", | ||
"version": "0.0.1-prerelease.0", | ||
"version": "0.0.1-prerelease.1", | ||
"description": "E2B Code Interpreter - Stateful code execution", | ||
@@ -5,0 +5,0 @@ "homepage": "https://e2b.dev", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
109636
1375
8