@itrocks/framework 0.1.0 → 0.1.1

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.
@@ -116,7 +116,7 @@ function bind() {
116
116
  };
117
117
  Object.assign(containerData, this);
118
118
  const template = new template_insight_1.Template(data, containerData);
119
- template.included = (request.request.headers['sec-fetch-dest'] === 'empty');
119
+ template.included = !!request.request.headers['xhr-info'];
120
120
  return this.htmlResponse(await template.parseFile(templateFile, (0, node_path_1.join)(app_dir_1.appDir, config_1.config.container.file)), statusCode, headers);
121
121
  };
122
122
  }
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.0"
94
+ "version": "0.1.1"
95
95
  }