@mashroom/mashroom-browser-cache
Advanced tools
Comparing version 1.0.94 to 1.1.0
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.94", | ||
"version": "1.1.0", | ||
"files": [ | ||
@@ -14,8 +14,8 @@ "dist/**", | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.4", | ||
"@mashroom/mashroom": "1.0.94", | ||
"@mashroom/mashroom-security": "1.0.94", | ||
"@mashroom/mashroom-utils": "1.0.94", | ||
"eslint": "^5.16.0", | ||
"jest": "^24.8.0" | ||
"@babel/cli": "^7.6.0", | ||
"@mashroom/mashroom": "1.1.0", | ||
"@mashroom/mashroom-security": "1.1.0", | ||
"@mashroom/mashroom-utils": "1.1.0", | ||
"eslint": "^6.4.0", | ||
"jest": "^24.9.0" | ||
}, | ||
@@ -31,3 +31,3 @@ "jest": { | ||
"scripts": { | ||
"lint": "eslint src test", | ||
"lint": "eslint src test --fix", | ||
"test": "jest", | ||
@@ -34,0 +34,0 @@ "build": "babel src -d dist" |
@@ -19,4 +19,9 @@ | ||
const cacheControlService: MashroomCacheControlService = req.pluginContext.services.browserCache.cacheControl; | ||
await cacheControlService.addCacheControlHeader(req, res); | ||
export default async (req: ExpressRequest, res: ExpressResponse) => { | ||
const cacheControlService: MashroomCacheControlService = req.pluginContext.services.browserCache.cacheControl; | ||
await cacheControlService.addCacheControlHeader(req, res); | ||
// .. | ||
}; | ||
``` | ||
@@ -23,0 +28,0 @@ |
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
7482
70