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;
|
var fn;
|
||||||
if (id === "ready") {
|
if (id === "ready") {
|
||||||
var keys = Object.keys(this.api);
|
var keys = Object.keys(this.api);
|
||||||
var env = typeof process !== "undefined" && process.env;
|
var env = this.api.env ;
|
||||||
fn = function (callback) {
|
fn = function (callback) {
|
||||||
callback(keys, env);
|
callback(keys, env);
|
||||||
};
|
};
|
||||||
|
|
|
@ -213,7 +213,10 @@ module.exports = function setup(fsOptions) {
|
||||||
|
|
||||||
// Internal
|
// Internal
|
||||||
writeToWatchedFile: writeToWatchedFile,
|
writeToWatchedFile: writeToWatchedFile,
|
||||||
workspaceDir: fsOptions.projectDir
|
workspaceDir: fsOptions.projectDir,
|
||||||
|
|
||||||
|
// State
|
||||||
|
env: {},
|
||||||
});
|
});
|
||||||
|
|
||||||
function wrapDomain(api) {
|
function wrapDomain(api) {
|
||||||
|
|
|
@ -73,8 +73,9 @@ function Worker(vfs) {
|
||||||
execFile: route("execFile"),
|
execFile: route("execFile"),
|
||||||
extend: route("extend"),
|
extend: route("extend"),
|
||||||
unextend: route("unextend"),
|
unextend: route("unextend"),
|
||||||
use: route("use")
|
use: route("use"),
|
||||||
|
|
||||||
|
env: vfs.env,
|
||||||
});
|
});
|
||||||
|
|
||||||
var proxyStreams = {};
|
var proxyStreams = {};
|
||||||
|
|
|
@ -67,5 +67,6 @@ module.exports = function(methods, vfsHome, vfsWorkspace) {
|
||||||
proxy.readonly = vfsWorkspace.readonly;
|
proxy.readonly = vfsWorkspace.readonly;
|
||||||
proxy.root = vfsWorkspace.root;
|
proxy.root = vfsWorkspace.root;
|
||||||
|
|
||||||
|
proxy.env = vfsWorkspace.env
|
||||||
return proxy;
|
return proxy;
|
||||||
};
|
};
|
|
@ -107,6 +107,7 @@ module.exports = function(vfs, options) {
|
||||||
|
|
||||||
wrapper.readonly = readonly;
|
wrapper.readonly = readonly;
|
||||||
wrapper.root = root;
|
wrapper.root = root;
|
||||||
|
wrapper.env = vfs.env;
|
||||||
|
|
||||||
return wrapper;
|
return wrapper;
|
||||||
};
|
};
|
Ładowanie…
Reference in New Issue