node-pty
Advanced tools
Comparing version 0.11.0-beta2 to 0.11.0-beta3
@@ -174,2 +174,5 @@ "use strict"; | ||
for (var i = 0; i < keys.length; i++) { | ||
if (keys[i] === undefined) { | ||
continue; | ||
} | ||
pairs.push(keys[i] + '=' + env[keys[i]]); | ||
@@ -176,0 +179,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.11.0-beta2", | ||
"version": "0.11.0-beta3", | ||
"license": "MIT", | ||
@@ -14,3 +14,3 @@ "main": "./lib/index.js", | ||
"type": "git", | ||
"url": "git://github.com/Tyriar/node-pty.git" | ||
"url": "git://github.com/microsoft/node-pty.git" | ||
}, | ||
@@ -25,5 +25,5 @@ "files": [ | ||
], | ||
"homepage": "https://github.com/Tyriar/node-pty", | ||
"homepage": "https://github.com/microsoft/node-pty", | ||
"bugs": { | ||
"url": "https://github.com/Tyriar/node-pty/issues" | ||
"url": "https://github.com/microsoft/node-pty/issues" | ||
}, | ||
@@ -30,0 +30,0 @@ "keywords": [ |
@@ -6,6 +6,4 @@ /** | ||
import * as net from 'net'; | ||
export interface IProcessEnv { | ||
[key: string]: string; | ||
[key: string]: string | undefined; | ||
} | ||
@@ -105,3 +103,3 @@ | ||
cwd?: string; | ||
env?: { [key: string]: string }; | ||
env?: IProcessEnv; | ||
encoding?: string; | ||
@@ -108,0 +106,0 @@ handleFlowControl?: boolean; |
@@ -202,2 +202,5 @@ /** | ||
for (let i = 0; i < keys.length; i++) { | ||
if (keys[i] === undefined) { | ||
continue; | ||
} | ||
pairs.push(keys[i] + '=' + env[keys[i]]); | ||
@@ -204,0 +207,0 @@ } |
@@ -64,3 +64,3 @@ /** | ||
const gid = opt.gid || -1; | ||
const env = assign({}, opt.env); | ||
const env: IProcessEnv = assign({}, opt.env); | ||
@@ -67,0 +67,0 @@ if (opt.env === process.env) { |
@@ -45,3 +45,3 @@ /** | ||
*/ | ||
env?: { [key: string]: string }; | ||
env?: { [key: string]: string | undefined }; | ||
@@ -48,0 +48,0 @@ /** |
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
1118933
4154