total5 0.0.1-4 → 0.0.1-41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +2 -5
- package/bin/total5 +166 -905
- package/builders.js +332 -25
- package/bundles.js +2 -12
- package/cluster.js +1 -1
- package/cms.js +188 -52
- package/controller.js +214 -63
- package/cron.js +1 -1
- package/debug.js +12 -5
- package/edit.js +26 -33
- package/filestorage.js +43 -22
- package/flow-flowstream.js +261 -115
- package/flow.js +46 -40
- package/flowstream.js +7 -5
- package/global.js +146 -3
- package/http.js +3 -1
- package/image.js +4 -0
- package/images.js +1 -1
- package/index.js +187 -73
- package/jsonschema.js +35 -27
- package/macros.js +222 -0
- package/mail.js +16 -30
- package/markdown.js +756 -0
- package/minificators.js +1 -1
- package/nosql-builder.js +1 -1
- package/nosql.js +11 -0
- package/openclient.js +1 -1
- package/package.json +2 -2
- package/pause.html +1 -1
- package/routing.js +112 -31
- package/sourcemap.js +1 -1
- package/test.js +4 -0
- package/tms.js +13 -18
- package/tmsclient.js +4 -0
- package/uibuilder.js +59 -23
- package/utils.js +109 -62
- package/viewengine.js +19 -12
- package/websocket.js +5 -3
- package/workers.js +2 -2
- package/503.html +0 -65
- package/CONTRIBUTING.md +0 -55
- package/helpers/index.js +0 -32
- package/templates.json +0 -74
- package/tests/bundles/index.js +0 -25
- package/tests/cron.js +0 -0
- package/tests/htmlparser.js +0 -0
- package/tests/minifactors.js +0 -17
- package/tests/nosql.js +0 -18
- package/tests/proxy/index.js +0 -21
- package/tests/routing/index.js +0 -27
- package/tests/schemas.js +0 -17
- package/tests/server/index.js +0 -24
- package/tests/staticfiles/index.js +0 -24
- package/tests/utils.js +0 -17
- package/todo.txt +0 -11
- package/tools/beta.sh +0 -6
- package/tools/release.sh +0 -6
package/api.js
CHANGED
|
@@ -208,7 +208,7 @@ exports.newapi('TotalAPI,TAPI', function(opt, next) {
|
|
|
208
208
|
req.type = 'json';
|
|
209
209
|
req.timeout = 60000;
|
|
210
210
|
req.keepalive = true;
|
|
211
|
-
req.headers = { 'x-token': opt.token || F.config.secret_totalapi || F.config.$tapisecret || '-', 'x-app': encodeURIComponent(F.config.name) };
|
|
211
|
+
req.headers = { 'x-token': opt.token || F.config.totalapi || F.config.secret_totalapi || F.config.$tapisecret || '-', 'x-app': encodeURIComponent(F.config.name) };
|
|
212
212
|
req.custom = true;
|
|
213
213
|
|
|
214
214
|
req.callback = function(err, response) {
|
|
@@ -279,10 +279,7 @@ exports.newapi('TotalAPI,TAPI', function(opt, next) {
|
|
|
279
279
|
|
|
280
280
|
var writer = F.Fs.createWriteStream(opt.output);
|
|
281
281
|
response.stream.pipe(writer);
|
|
282
|
-
F.cleanup(writer,
|
|
283
|
-
opt.next(null, opt.output);
|
|
284
|
-
});
|
|
285
|
-
|
|
282
|
+
F.cleanup(writer, () => opt.next(null, opt.output));
|
|
286
283
|
};
|
|
287
284
|
|
|
288
285
|
F.TUtils.request(req);
|