python-shell
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -148,1 +148,33 @@ /// <reference types="node" /> | ||
} | ||
export interface PythonShell { | ||
addListener(event: string, listener: (...args: any[]) => void): this; | ||
emit(event: string | symbol, ...args: any[]): boolean; | ||
on(event: string, listener: (...args: any[]) => void): this; | ||
once(event: string, listener: (...args: any[]) => void): this; | ||
prependListener(event: string, listener: (...args: any[]) => void): this; | ||
prependOnceListener(event: string, listener: (...args: any[]) => void): this; | ||
addListener(event: "message", listener: (parsedChunk: any) => void): this; | ||
emit(event: "message", parsedChunk: any): boolean; | ||
on(event: "message", listener: (parsedChunk: any) => void): this; | ||
once(event: "message", listener: (parsedChunk: any) => void): this; | ||
prependListener(event: "message", listener: (parsedChunk: any) => void): this; | ||
prependOnceListener(event: "message", listener: (parsedChunk: any) => void): this; | ||
addListener(event: "stderr", listener: (parsedChunk: any) => void): this; | ||
emit(event: "stderr", parsedChunk: any): boolean; | ||
on(event: "stderr", listener: (parsedChunk: any) => void): this; | ||
once(event: "stderr", listener: (parsedChunk: any) => void): this; | ||
prependListener(event: "stderr", listener: (parsedChunk: any) => void): this; | ||
prependOnceListener(event: "stderr", listener: (parsedChunk: any) => void): this; | ||
addListener(event: "close", listener: () => void): this; | ||
emit(event: "close"): boolean; | ||
on(event: "close", listener: () => void): this; | ||
once(event: "close", listener: () => void): this; | ||
prependListener(event: "close", listener: () => void): this; | ||
prependOnceListener(event: "close", listener: () => void): this; | ||
addListener(event: "error", listener: (error: PythonShellError) => void): this; | ||
emit(event: "error", error: PythonShellError): boolean; | ||
on(event: "error", listener: (error: PythonShellError) => void): this; | ||
once(event: "error", listener: (error: PythonShellError) => void): this; | ||
prependListener(event: "error", listener: (error: PythonShellError) => void): this; | ||
prependOnceListener(event: "error", listener: (error: PythonShellError) => void): this; | ||
} |
{ | ||
"name": "python-shell", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -107,3 +107,3 @@ # [python-shell](https://www.npmjs.com/package/python-shell) [![Build status](https://ci.appveyor.com/api/projects/status/m8e3h53vvxg5wb2q/branch/master?svg=true)](https://ci.appveyor.com/project/Almenon/python-shell/branch/master) [![codecov](https://codecov.io/gh/extrabacon/python-shell/branch/master/graph/badge.svg)](https://codecov.io/gh/extrabacon/python-shell) | ||
* use `text` mode for exchanging lines of text | ||
* use `text` mode for exchanging lines of text ending with a [newline character](http://hayne.net/MacDev/Notes/unixFAQ.html#endOfLine). | ||
* use `json` mode for exchanging JSON fragments | ||
@@ -110,0 +110,0 @@ * use `binary` mode for anything else (data is sent and received as-is) |
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
47849
567