@itrocks/framework 0.1.2 → 0.1.3

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.
@@ -117,9 +117,9 @@ function bind() {
117
117
  styleSheets: config_1.config.container.styleSheets,
118
118
  };
119
119
  Object.assign(containerData, this);
120
+ const contained = !request.request.headers['xhr-info'];
120
121
  const template = new template_insight_1.Template(data, containerData);
121
- template.included = !!request.request.headers['xhr-info'];
122
- return this.htmlResponse(await template.parseFile(templateFile, (0, node_path_1.join)(app_dir_1.appDir, config_1.config.container.file)), statusCode, headers);
122
+ return this.htmlResponse(await template.parseFile(templateFile, contained && (0, node_path_1.join)(app_dir_1.appDir, config_1.config.container.file)), statusCode, headers);
123
123
  };
124
124
  }
125
125
  //# sourceMappingURL=dependencies.js.map
package/package.json CHANGED
@@ -91,5 +91,5 @@
91
91
  "build:front": "tsc -p src/front/tsconfig.json && sed -i 's#../../##g' *.js *.d.ts"
92
92
  },
93
93
  "types": "./cjs/framework.d.ts",
94
- "version": "0.1.2"
94
+ "version": "0.1.3"
95
95
  }