alchemymvc 1.3.13 → 1.3.14
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/lib/app/conduit/loopback_conduit.js +0 -0
- package/lib/app/conduit/socket_conduit.js +0 -0
- package/lib/app/controller/alchemy_info_controller.js +0 -0
- package/lib/app/helper/router_helper.js +0 -0
- package/lib/app/helper/socket_helper.js +0 -0
- package/lib/app/helper/syncable.js +0 -0
- package/lib/app/helper_model/data_provider.js +0 -0
- package/lib/app/helper_model/document.js +0 -0
- package/lib/app/helper_model/model.js +0 -0
- package/lib/app/helper_model/remote_data_provider.js +0 -0
- package/lib/app/routes.js +0 -0
- package/lib/class/conduit.js +18 -8
- package/lib/class/path_param_definition.js +0 -0
- package/lib/class/route.js +0 -0
- package/lib/core/client_alchemy.js +0 -0
- package/lib/core/middleware.js +3 -2
- package/lib/init/alchemy.js +0 -0
- package/package.json +2 -2
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/app/routes.js
CHANGED
|
File without changes
|
package/lib/class/conduit.js
CHANGED
|
@@ -1824,7 +1824,7 @@ Conduit.setMethod(function end(message) {
|
|
|
1824
1824
|
*
|
|
1825
1825
|
* @author Jelle De Loecker <jelle@elevenways.be>
|
|
1826
1826
|
* @since 0.2.0
|
|
1827
|
-
* @version 1.3.
|
|
1827
|
+
* @version 1.3.14
|
|
1828
1828
|
*/
|
|
1829
1829
|
Conduit.setMethod(function _end(message, encoding = 'utf-8') {
|
|
1830
1830
|
|
|
@@ -1862,6 +1862,11 @@ Conduit.setMethod(function _end(message, encoding = 'utf-8') {
|
|
|
1862
1862
|
|
|
1863
1863
|
for (key in this.response_headers) {
|
|
1864
1864
|
value = this.response_headers[key];
|
|
1865
|
+
|
|
1866
|
+
if (value == null) {
|
|
1867
|
+
continue;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1865
1870
|
this.response.setHeader(key, value);
|
|
1866
1871
|
}
|
|
1867
1872
|
|
|
@@ -2126,7 +2131,7 @@ Conduit.setTypedMethod([Types.Stream, Types.Object.optional()], function serveFi
|
|
|
2126
2131
|
*
|
|
2127
2132
|
* @author Jelle De Loecker <jelle@elevenways.be>
|
|
2128
2133
|
* @since 1.3.0
|
|
2129
|
-
* @version 1.3.
|
|
2134
|
+
* @version 1.3.14
|
|
2130
2135
|
*
|
|
2131
2136
|
* @param {Stream} stream The stream to send
|
|
2132
2137
|
* @param {Object} options Options, including headers
|
|
@@ -2182,11 +2187,6 @@ Conduit.setMethod(function _sendStream(stream, options) {
|
|
|
2182
2187
|
this.setHeader('content-disposition', disposition);
|
|
2183
2188
|
}
|
|
2184
2189
|
|
|
2185
|
-
// Set the content-length response header when not compressing
|
|
2186
|
-
if (!options.compress && options.content_length != null) {
|
|
2187
|
-
this.setHeader('content-length', options.content_length);
|
|
2188
|
-
}
|
|
2189
|
-
|
|
2190
2190
|
// Set all the headers
|
|
2191
2191
|
for (key in options.headers) {
|
|
2192
2192
|
this.setHeader(key, options.headers[key]);
|
|
@@ -2204,9 +2204,13 @@ Conduit.setMethod(function _sendStream(stream, options) {
|
|
|
2204
2204
|
// Set the gzip header
|
|
2205
2205
|
this.setHeader('content-encoding', 'gzip');
|
|
2206
2206
|
this.setHeader('vary', 'accept-encoding');
|
|
2207
|
+
this.setHeader('transfer-encoding', 'chunked');
|
|
2208
|
+
this.setHeader('content-length', null);
|
|
2207
2209
|
|
|
2208
2210
|
// Create the gzip stream
|
|
2209
2211
|
out_stream = out_stream.pipe(zlib.createGzip());
|
|
2212
|
+
} else if (options.content_length != null) {
|
|
2213
|
+
this.setHeader('content-length', options.content_length);
|
|
2210
2214
|
}
|
|
2211
2215
|
|
|
2212
2216
|
if (options.cleanup_stream) {
|
|
@@ -2229,7 +2233,13 @@ Conduit.setMethod(function _sendStream(stream, options) {
|
|
|
2229
2233
|
|
|
2230
2234
|
// Set the response headers
|
|
2231
2235
|
for (key in this.response_headers) {
|
|
2232
|
-
|
|
2236
|
+
let value = this.response_headers[key];
|
|
2237
|
+
|
|
2238
|
+
if (value == null) {
|
|
2239
|
+
continue;
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
response.setHeader(key, value);
|
|
2233
2243
|
}
|
|
2234
2244
|
|
|
2235
2245
|
if (this.new_cookie_header.length) {
|
|
File without changes
|
package/lib/class/route.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/core/middleware.js
CHANGED
|
@@ -444,9 +444,10 @@ Alchemy.setMethod(function minifyScript(path, options, callback) {
|
|
|
444
444
|
};
|
|
445
445
|
|
|
446
446
|
if (alchemy.settings.debug && alchemy.settings.source_map) {
|
|
447
|
-
|
|
447
|
+
console.warn('Source maps have been disabled because alchemy.settings.minify_js is true');
|
|
448
|
+
/*minify_options.sourceMap = {
|
|
448
449
|
url: 'inline'
|
|
449
|
-
}
|
|
450
|
+
};*/
|
|
450
451
|
}
|
|
451
452
|
|
|
452
453
|
result = await Terser.minify(data, minify_options);
|
package/lib/init/alchemy.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alchemymvc",
|
|
3
3
|
"description": "MVC framework for Node.js",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.14",
|
|
5
5
|
"author": "Jelle De Loecker <jelle@elevenways.be>",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"alchemy",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"socket.io" : "~4.6.0",
|
|
37
37
|
"@11ways/socket.io-stream" : "~0.9.2",
|
|
38
38
|
"sputnik" : "~0.1.0",
|
|
39
|
-
"terser" : "~5.
|
|
39
|
+
"terser" : "~5.18.1",
|
|
40
40
|
"toobusy-js" : "~0.5.1",
|
|
41
41
|
"useragent" : "~2.3.0"
|
|
42
42
|
},
|