kopia lustrzana https://github.com/c9/core
Merge branch 'master' of github.com:c9/newclient into feature/scm
commit
712dd7bd22
12
package.json
12
package.json
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "c9",
|
"name": "c9",
|
||||||
"description": "New Cloud9 Client",
|
"description": "New Cloud9 Client",
|
||||||
"version": "3.1.389",
|
"version": "3.1.404",
|
||||||
"author": "Ajax.org B.V. <info@ajax.org>",
|
"author": "Ajax.org B.V. <info@ajax.org>",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "bin/c9",
|
"main": "bin/c9",
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
"url": "http://github.com/c9/core.git"
|
"url": "http://github.com/c9/core.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"acorn": ">=0.11.0",
|
"acorn": "2.5.2",
|
||||||
"async": "^0.9.0",
|
"async": "^0.9.0",
|
||||||
"base64id": "~0.1.0",
|
"base64id": "~0.1.0",
|
||||||
"connect": "~2.12.0",
|
"connect": "~2.12.0",
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
"read": "~1.0.5",
|
"read": "~1.0.5",
|
||||||
"form-data": "~0.2.0",
|
"form-data": "~0.2.0",
|
||||||
"chai": "~1.5.0",
|
"chai": "~1.5.0",
|
||||||
"mocha": "~2.3.3"
|
"mocha": "1.8.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"licenses": [],
|
"licenses": [],
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
"c9.ide.language.javascript.tern": "#40cf04bded",
|
"c9.ide.language.javascript.tern": "#40cf04bded",
|
||||||
"c9.ide.language.javascript.infer": "#8478e3c702",
|
"c9.ide.language.javascript.infer": "#8478e3c702",
|
||||||
"c9.ide.language.jsonalyzer": "#8401c240b3",
|
"c9.ide.language.jsonalyzer": "#8401c240b3",
|
||||||
"c9.ide.collab": "#7d0423e652",
|
"c9.ide.collab": "#9915f10460",
|
||||||
"c9.ide.local": "#a6e689e33b",
|
"c9.ide.local": "#a6e689e33b",
|
||||||
"c9.ide.find": "#35379124ca",
|
"c9.ide.find": "#35379124ca",
|
||||||
"c9.ide.find.infiles": "#c3bf17286d",
|
"c9.ide.find.infiles": "#c3bf17286d",
|
||||||
|
@ -108,8 +108,8 @@
|
||||||
"c9.ide.save": "#5118b30230",
|
"c9.ide.save": "#5118b30230",
|
||||||
"c9.ide.scm": "#2c9f82f7f1",
|
"c9.ide.scm": "#2c9f82f7f1",
|
||||||
"c9.ide.terminal.monitor": "#35afa7f97f",
|
"c9.ide.terminal.monitor": "#35afa7f97f",
|
||||||
"c9.ide.test": "#f3e5dad5cc",
|
"c9.ide.test": "#df1fa14185",
|
||||||
"c9.ide.test.mocha": "#586fb0cdc2",
|
"c9.ide.test.mocha": "#2044b40374",
|
||||||
"c9.ide.theme.flat": "#92cda0fb40",
|
"c9.ide.theme.flat": "#92cda0fb40",
|
||||||
"c9.ide.threewaymerge": "#229382aa0b",
|
"c9.ide.threewaymerge": "#229382aa0b",
|
||||||
"c9.ide.undo": "#b028bcb4d5",
|
"c9.ide.undo": "#b028bcb4d5",
|
||||||
|
|
|
@ -29,6 +29,11 @@ function plugin(options, imports, register) {
|
||||||
warning: new raygun.Client().init({ apiKey: options.keys.warning })
|
warning: new raygun.Client().init({ apiKey: options.keys.warning })
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var customClients = options.customClients || {};
|
||||||
|
for (var client in customClients) {
|
||||||
|
clients[client] = new raygun.Client().init({ apiKey: customClients[client] });
|
||||||
|
}
|
||||||
|
|
||||||
for (var client in clients) {
|
for (var client in clients) {
|
||||||
client = clients[client];
|
client = clients[client];
|
||||||
client._send = client.send;
|
client._send = client.send;
|
||||||
|
@ -38,11 +43,9 @@ function plugin(options, imports, register) {
|
||||||
|
|
||||||
return this._send.apply(this, arguments);
|
return this._send.apply(this, arguments);
|
||||||
};
|
};
|
||||||
|
client.setVersion(options.version + ".0");
|
||||||
}
|
}
|
||||||
|
|
||||||
clients.error.setVersion(options.version + ".0");
|
|
||||||
clients.warning.setVersion(options.version + ".0");
|
|
||||||
|
|
||||||
graceful.on("destroy", function(err) {
|
graceful.on("destroy", function(err) {
|
||||||
if (!err) return graceful.emit("destroyComplete");
|
if (!err) return graceful.emit("destroyComplete");
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
@ -57,6 +60,9 @@ function plugin(options, imports, register) {
|
||||||
Client: clients.error,
|
Client: clients.error,
|
||||||
errorClient: clients.error,
|
errorClient: clients.error,
|
||||||
warningClient: clients.warning,
|
warningClient: clients.warning,
|
||||||
|
customClient: function(name) {
|
||||||
|
return client[name];
|
||||||
|
},
|
||||||
customData: customData
|
customData: customData
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue