kopia lustrzana https://github.com/c9/core
do not send vfs server env to client
rodzic
64034389ec
commit
40cd435e2f
|
@ -456,7 +456,7 @@ Agent.prototype._onMessage = function (message) {
|
|||
var fn;
|
||||
if (id === "ready") {
|
||||
var keys = Object.keys(this.api);
|
||||
var env = typeof process !== "undefined" && process.env;
|
||||
var env = this.api.env ;
|
||||
fn = function (callback) {
|
||||
callback(keys, env);
|
||||
};
|
||||
|
|
|
@ -213,7 +213,10 @@ module.exports = function setup(fsOptions) {
|
|||
|
||||
// Internal
|
||||
writeToWatchedFile: writeToWatchedFile,
|
||||
workspaceDir: fsOptions.projectDir
|
||||
workspaceDir: fsOptions.projectDir,
|
||||
|
||||
// State
|
||||
env: {},
|
||||
});
|
||||
|
||||
function wrapDomain(api) {
|
||||
|
|
|
@ -73,8 +73,9 @@ function Worker(vfs) {
|
|||
execFile: route("execFile"),
|
||||
extend: route("extend"),
|
||||
unextend: route("unextend"),
|
||||
use: route("use")
|
||||
use: route("use"),
|
||||
|
||||
env: vfs.env,
|
||||
});
|
||||
|
||||
var proxyStreams = {};
|
||||
|
|
|
@ -67,5 +67,6 @@ module.exports = function(methods, vfsHome, vfsWorkspace) {
|
|||
proxy.readonly = vfsWorkspace.readonly;
|
||||
proxy.root = vfsWorkspace.root;
|
||||
|
||||
proxy.env = vfsWorkspace.env
|
||||
return proxy;
|
||||
};
|
|
@ -107,6 +107,7 @@ module.exports = function(vfs, options) {
|
|||
|
||||
wrapper.readonly = readonly;
|
||||
wrapper.root = root;
|
||||
wrapper.env = vfs.env;
|
||||
|
||||
return wrapper;
|
||||
};
|
Ładowanie…
Reference in New Issue