+10
-3
@@ -103,5 +103,12 @@ // Type definitions for genosdb | ||
| export interface RoomChannel<T = any> { | ||
| /** Send data to all peers, or to specific peer ids. */ | ||
| send(data: T, targets?: string | string[]): void | ||
| on(event: "message", handler: (data: T, peerId: string) => void): void | ||
| /** Send to all peers or specific ids. `meta` requires a binary payload. */ | ||
| send( | ||
| data: T, | ||
| targets?: string | string[], | ||
| meta?: Record<string, any>, | ||
| onProgress?: (fraction: number, peerId: string, meta?: any) => void | ||
| ): void | ||
| on(event: "message", handler: (data: T, peerId: string, meta?: any) => void): void | ||
| /** Incoming payload still arriving. `fraction` runs 0 → 1. */ | ||
| on(event: "progress", handler: (fraction: number, peerId: string, meta?: any) => void): void | ||
| off(event: string, handler: (...args: any[]) => void): void | ||
@@ -108,0 +115,0 @@ } |
+1
-1
| { | ||
| "name": "genosdb", | ||
| "version": "0.23.4", | ||
| "version": "0.24.0", | ||
| "description": "GenosDB (GDB): distributed graph database in real-time, peer-to-peer, scalable storage - efficient querying of complex relationships.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 11 instances
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
2054780
-0.24%6293
-0.11%12
9.09%20
566.67%5
150%