backend-plus 2.1.7 → 2.1.8

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.
@@ -2115,6 +2115,9 @@ AppBackend.prototype.clientIncludes = function clientIncludes(req, opts) {
2115
2115
 
2116
2116
  AppBackend.prototype.clientIncludesCompleted = function clientIncludesCompleted(req, opts) {
2117
2117
  let list = this.clientIncludes(req, opts);
2118
+ if(opts && opts.extraFiles){
2119
+ list = list.concat(opts.extraFiles)
2120
+ }
2118
2121
  var be = this;
2119
2122
  if(this.config.devel && this.config.devel.useFileDevelopment){
2120
2123
  list=list.map(includeDef=>{
@@ -2270,9 +2273,7 @@ AppBackend.prototype.mainPage = function mainPage(req, offlineMode, opts){
2270
2273
  html.div(be.messages.unlogged.loading),
2271
2274
  req.useragent.os=='iOS'&&req.useragent.version.split('.')[0]<9?html.div(`La versión del dispositivo ${req.useragent.version} no es compatible`):null
2272
2275
  ]),
2273
- html.div({id: "total-scripts"}, be.clientModules(req,opts).scripts.concat(
2274
- (opts?.extraFiles ?? []).filter((extraFile)=>be.esJavascript(extraFile.type)).map((extraFile)=>({...extraFile,type:null}))
2275
- ).map(function(scriptDef){
2276
+ html.div({id: "total-scripts"}, be.clientModules(req,opts).scripts.map(function(scriptDef){
2276
2277
  return html.script(scriptDef);
2277
2278
  }).concat([html.script({src:'client/menu.js'})]))
2278
2279
  ]),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "backend-plus",
3
3
  "description": "Backend for the anti Pareto rule",
4
- "version": "2.1.7",
4
+ "version": "2.1.8",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",