Skip to content

Commit e73dcd6

Browse files
authored
Merge pull request totaljs#512 from totaljs/v2.6.1
v2.6.1
2 parents e7a47e8 + 2ee668f commit e73dcd6

6 files changed

Lines changed: 14 additions & 9 deletions

File tree

changes.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
======= 2.6.1 (HOTFIX)
2+
3+
- fixed: timeout in `RESTBuilder` and `U.request()`
4+
- fixed: `F.merge()` a problem with `.js` or `.css` extension in some directory
5+
16
======= 2.6.0
27

38
- added: `F.config['default-errorbuilder-status']` a default HTTP status for all error builders default `200`

debug.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ module.exports = function(opt) {
1717
};
1818

1919
process.on('uncaughtException', e => e.toString().indexOf('ESRCH') == -1 && console.log(e));
20-
2120
process.title = 'total: debug';
2221

2322
function runapp() {

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
/**
2323
* @module Framework
24-
* @version 2.6.0
24+
* @version 2.6.1
2525
*/
2626

2727
'use strict';
@@ -500,8 +500,8 @@ const controller_error_status = function(controller, status, problem) {
500500
function Framework() {
501501

502502
this.$id = null; // F.id ==> property
503-
this.version = 2600;
504-
this.version_header = '2.6.0';
503+
this.version = 2610;
504+
this.version_header = '2.6.1';
505505
this.version_node = process.version.toString().replace('v', '').replace(/\./g, '').parseFloat();
506506

507507
this.config = {
@@ -2058,13 +2058,13 @@ F.merge = function(url) {
20582058
url = '/' + url;
20592059

20602060
var filename = F.path.temp((F.id ? 'i-' + F.id + '_' : '') + 'merged_' + createTemporaryKey(url));
2061-
F.routes.merge[url] = { filename: filename.replace(/\.(js|css)/g, ext => '.min' + ext), files: arr };
2061+
F.routes.merge[url] = { filename: filename.replace(/\.(js|css)$/g, ext => '.min' + ext), files: arr };
20622062
Fs.unlink(F.routes.merge[url].filename, NOOP);
20632063
F.owners.push({ type: 'merge', owner: _owner, id: url });
20642064
return F;
20652065
};
20662066

2067-
F.mapping = function(url, path) {
2067+
F.mapping = function() {
20682068
return F.map.apply(F, arguments);
20692069
};
20702070

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"name": "Peter Štolc",
7676
"email": "stolcp@gmail.com"
7777
}],
78-
"version": "2.6.0",
78+
"version": "2.6.1",
7979
"homepage": "http://www.totaljs.com",
8080
"bugs": {
8181
"url": "https://github.com/totaljs/framework/issues",

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ $ npm install -g total.js
1414
[![Support](https://www.totaljs.com/img/button-support.png?v=3)](https://www.totaljs.com/support/)
1515

1616
- [Total.js Flow](https://www.totaljs.com/flow/)
17+
- [Total.js Flowboard](https://www.totaljs.com/flowboard/)
1718
- [Total.js Messenger](https://www.totaljs.com/messenger/)
1819
- [Total.js Dashboard](https://www.totaljs.com/dashboard/)
1920
- [Total.js BlogEngine](https://www.totaljs.com/blogengine/)

utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ exports.keywords = function(content, forSearch, alternative, max_count, max_leng
411411
* @param {Number} timeout Request timeout.
412412
* return {Boolean}
413413
*/
414-
exports.request = function(url, flags, data, callback, cookies, headers, encoding) {
414+
exports.request = function(url, flags, data, callback, cookies, headers, encoding, timeout) {
415415

416416
// No data (data is optional argument)
417417
if (typeof(data) === 'function') {
@@ -426,7 +426,7 @@ exports.request = function(url, flags, data, callback, cookies, headers, encodin
426426
if (callback === NOOP)
427427
callback = null;
428428

429-
var options = { length: 0, timeout: 10000, evt: new EventEmitter2(), encoding: typeof(encoding) !== 'string' ? ENCODING : encoding, callback: callback, post: false, redirect: 0 };
429+
var options = { length: 0, timeout: timeout || 10000, evt: new EventEmitter2(), encoding: typeof(encoding) !== 'string' ? ENCODING : encoding, callback: callback, post: false, redirect: 0 };
430430
var method;
431431
var type = 0;
432432

0 commit comments

Comments
 (0)