5htp-core 0.4.0-7 → 0.4.0-9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "5htp-core",
3
3
  "description": "Convenient TypeScript framework designed for Performance and Productivity.",
4
- "version": "0.4.0-7",
4
+ "version": "0.4.0-9",
5
5
  "author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
6
6
  "repository": "git://github.com/gaetanlegac/5htp-core.git",
7
7
  "license": "MIT",
@@ -26,14 +26,15 @@
26
26
  //overflow: visible !important;
27
27
  }
28
28
 
29
+ .scrollable {
30
+ overflow: auto;
31
+ }
32
+
29
33
  .row {
30
34
  display: flex;
31
35
  flex-wrap: nowrap;
32
36
 
33
37
  &.scrollable {
34
-
35
- overflow: auto;
36
-
37
38
  > * {
38
39
  min-width: fit-content;
39
40
  }
@@ -123,9 +124,6 @@
123
124
  flex-direction: column;
124
125
 
125
126
  &.scrollable {
126
-
127
- overflow: auto;
128
-
129
127
  > * {
130
128
  min-height: fit-content;
131
129
  }
@@ -244,6 +244,14 @@ export default class ServerResponse<
244
244
 
245
245
  }
246
246
 
247
+ public xml(xml: string) {
248
+
249
+ this.headers['Content-Type'] = 'text/xml';
250
+ this.data = xml;
251
+ return this.end();
252
+
253
+ }
254
+
247
255
  public text(text: string) {
248
256
 
249
257
  this.headers['Content-Type'] = 'text/plain';