@itrocks/framework 0.1.2 → 0.1.4
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/cjs/dependencies.js +2 -2
- package/cjs/main.js +3 -3
- package/package.json +1 -1
package/cjs/dependencies.js
CHANGED
|
@@ -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.
|
|
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/cjs/main.js
CHANGED
|
@@ -57,10 +57,10 @@ async function run() {
|
|
|
57
57
|
execute: request => execute(new action_request_2.Request(request)),
|
|
58
58
|
favicon: '/node_modules/@itrocks/framework/favicon.ico',
|
|
59
59
|
frontScripts: template_1.frontScripts,
|
|
60
|
-
host: config_1.config.host ?? '127.0.0.1',
|
|
61
|
-
port: 3000,
|
|
60
|
+
host: config_1.config.server.host ?? '127.0.0.1',
|
|
61
|
+
port: config_1.config.server.port ?? 3000,
|
|
62
62
|
scriptCalls: ['loadCss', 'loadScript'],
|
|
63
|
-
secret: config_1.config.secret,
|
|
63
|
+
secret: config_1.config.session.secret ?? config_1.config.secret ?? 'defaultSecretForTesting',
|
|
64
64
|
store: new fastify_file_session_store_1.FileStore((0, node_path_1.join)(app_dir_1.appDir, config_1.config.session.path))
|
|
65
65
|
}).run();
|
|
66
66
|
}
|
package/package.json
CHANGED