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.
Files changed (57) hide show
  1. package/api.js +2 -5
  2. package/bin/total5 +166 -905
  3. package/builders.js +332 -25
  4. package/bundles.js +2 -12
  5. package/cluster.js +1 -1
  6. package/cms.js +188 -52
  7. package/controller.js +214 -63
  8. package/cron.js +1 -1
  9. package/debug.js +12 -5
  10. package/edit.js +26 -33
  11. package/filestorage.js +43 -22
  12. package/flow-flowstream.js +261 -115
  13. package/flow.js +46 -40
  14. package/flowstream.js +7 -5
  15. package/global.js +146 -3
  16. package/http.js +3 -1
  17. package/image.js +4 -0
  18. package/images.js +1 -1
  19. package/index.js +187 -73
  20. package/jsonschema.js +35 -27
  21. package/macros.js +222 -0
  22. package/mail.js +16 -30
  23. package/markdown.js +756 -0
  24. package/minificators.js +1 -1
  25. package/nosql-builder.js +1 -1
  26. package/nosql.js +11 -0
  27. package/openclient.js +1 -1
  28. package/package.json +2 -2
  29. package/pause.html +1 -1
  30. package/routing.js +112 -31
  31. package/sourcemap.js +1 -1
  32. package/test.js +4 -0
  33. package/tms.js +13 -18
  34. package/tmsclient.js +4 -0
  35. package/uibuilder.js +59 -23
  36. package/utils.js +109 -62
  37. package/viewengine.js +19 -12
  38. package/websocket.js +5 -3
  39. package/workers.js +2 -2
  40. package/503.html +0 -65
  41. package/CONTRIBUTING.md +0 -55
  42. package/helpers/index.js +0 -32
  43. package/templates.json +0 -74
  44. package/tests/bundles/index.js +0 -25
  45. package/tests/cron.js +0 -0
  46. package/tests/htmlparser.js +0 -0
  47. package/tests/minifactors.js +0 -17
  48. package/tests/nosql.js +0 -18
  49. package/tests/proxy/index.js +0 -21
  50. package/tests/routing/index.js +0 -27
  51. package/tests/schemas.js +0 -17
  52. package/tests/server/index.js +0 -24
  53. package/tests/staticfiles/index.js +0 -24
  54. package/tests/utils.js +0 -17
  55. package/todo.txt +0 -11
  56. package/tools/beta.sh +0 -6
  57. 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, function() {
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);