Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

dphelper

Package Overview
Dependencies
Maintainers
1
Versions
396
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dphelper - npm Package Compare versions

Comparing version
3.1.0
to
3.1.1
+1
-1
package.json
{
"name": "dphelper",
"version": "3.1.0",
"version": "3.1.1",
"type": "module",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -341,48 +341,2 @@ /*!

// --- sandbox ---
interface SandboxOptions {
timeout?: number
memoryLimit?: number
allowGlobals?: boolean
allowConsole?: boolean
}
interface AgentSandboxOptions {
maxTokens?: number
maxOperations?: number
allowRead?: boolean
allowWrite?: boolean
allowNetwork?: boolean
blockedAPIs?: string[]
}
interface AgentContext {
id: string
created: number
operations: number
tokens: number
blocked: boolean
data: Record<string, any>
}
interface IsolatedSandbox {
run: (code: string) => any
eval: (expr: string) => any
setGlobal: (key: string, value: any) => void
getGlobal: (key: string) => any
}
interface SandboxTool {
run: (code: string, options?: SandboxOptions) => Promise<any>
eval: (expr: string) => any
createAgent: (options?: AgentSandboxOptions) => string
agentRun: (agentId: string, code: string) => Promise<any>
blockFS: () => void
blockNetwork: () => void
isolate: (globals?: Record<string, any>) => IsolatedSandbox
reset: () => void
listAgents: () => AgentContext[]
killAgent: (agentId: string) => boolean
}
// --- sanitize ---

@@ -638,3 +592,2 @@ interface SanitizeTool {

promise: PromiseTool
sandbox: SandboxTool
sanitize: SanitizeTool

@@ -641,0 +594,0 @@ screen: ScreenTool

interface SandboxOptions {
timeout?: number
memoryLimit?: number
allowGlobals?: boolean
allowConsole?: boolean
}
interface AgentSandboxOptions {
maxTokens?: number
maxOperations?: number
allowRead?: boolean
allowWrite?: boolean
allowNetwork?: boolean
blockedAPIs?: string[]
}
interface AgentContext {
id: string
created: number
operations: number
tokens: number
blocked: boolean
data: Record<string, any>
}
interface IsolatedSandbox {
run: (code: string) => any
eval: (expr: string) => any
setGlobal: (key: string, value: any) => void
getGlobal: (key: string) => any
}
interface SandboxTool {
run: (code: string, options?: SandboxOptions) => Promise<any>
eval: (expr: string) => any
createAgent: (options?: AgentSandboxOptions) => string
agentRun: (agentId: string, code: string) => Promise<any>
blockFS: () => void
blockNetwork: () => void
isolate: (globals?: Record<string, any>) => IsolatedSandbox
reset: () => void
listAgents: () => AgentContext[]
killAgent: (agentId: string) => boolean
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display