appolo-agent
Advanced tools
Comparing version 6.0.5 to 6.0.6
@@ -28,2 +28,3 @@ "use strict"; | ||
viewExt: "html", | ||
viewCache: true, | ||
viewEngine: null, | ||
@@ -30,0 +31,0 @@ viewFolder: "" |
@@ -41,2 +41,3 @@ import {IOptions} from "./IOptions"; | ||
viewExt: "html", | ||
viewCache:true, | ||
viewEngine: null, | ||
@@ -43,0 +44,0 @@ viewFolder: "" |
@@ -12,2 +12,3 @@ export interface IOptions{ | ||
viewFolder?: string | ||
viewCache?: boolean | ||
viewExt?: string | ||
@@ -14,0 +15,0 @@ ssl?: { |
@@ -26,3 +26,3 @@ "use strict"; | ||
} | ||
let result = await this._options.viewEngine(item.path, Object.assign({ cache: true }, params)); | ||
let result = await this._options.viewEngine(item.path, Object.assign({ cache: this._options.viewCache }, params)); | ||
return result; | ||
@@ -29,0 +29,0 @@ } |
@@ -38,3 +38,3 @@ import {Cache} from "appolo-cache"; | ||
let result = await this._options.viewEngine(item.path, {cache: true, ...params}); | ||
let result = await this._options.viewEngine(item.path, {cache: this._options.viewCache, ...params}); | ||
@@ -41,0 +41,0 @@ return result; |
@@ -27,3 +27,3 @@ { | ||
"main": "./index.js", | ||
"version": "6.0.5", | ||
"version": "6.0.6", | ||
"license": "MIT", | ||
@@ -30,0 +30,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68186
1271