@nakedcreativity/cee-ms-node 0.3.26 → 0.3.28
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/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -18,7 +18,9 @@ function ceems(config) {
|
|
|
18
18
|
// process config and set defaults
|
|
19
19
|
// // set up static file hosting
|
|
20
20
|
this.app.use(express.static(config.assets))
|
|
21
|
-
this.app.use(bodyParser.json(
|
|
21
|
+
this.app.use(bodyParser.json({
|
|
22
|
+
limit: config.parseLimit || '250kb'
|
|
23
|
+
}));
|
|
22
24
|
this.app.use(bodyParser.urlencoded({extended:false}));
|
|
23
25
|
|
|
24
26
|
this.engine = Liquid({
|
|
@@ -329,7 +331,7 @@ function ceems(config) {
|
|
|
329
331
|
return
|
|
330
332
|
}
|
|
331
333
|
var blog = site.blogs[this.match[0]]
|
|
332
|
-
if(scope.scopes[0].page.pagination){
|
|
334
|
+
if(scope.scopes[0].page && scope.scopes[0].page.pagination){
|
|
333
335
|
blog.pagination = scope.scopes[0].page.pagination
|
|
334
336
|
}else {
|
|
335
337
|
blog.pagination = 1
|