Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "nocache", | ||
"author": "Adam Baldwin <baldwin@andyet.net> (http://andyet.net/team/baldwin)", | ||
"author": "Adam Baldwin <adam@npmjs.com> (https://evilpacket.net)", | ||
"contributors": [ | ||
"Evan Hahn <me@evanhahn.com> (http://evanhahn.com)" | ||
"Evan Hahn <me@evanhahn.com> (https://evanhahn.com)" | ||
], | ||
"description": "Middleware to destroy caching", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"license": "MIT", | ||
@@ -19,2 +19,3 @@ "keywords": [ | ||
], | ||
"homepage": "https://helmetjs.github.io/docs/nocache/", | ||
"repository": { | ||
@@ -24,19 +25,40 @@ "type": "git", | ||
}, | ||
"bugs": "https://github.com/helmetjs/nocache/issues", | ||
"bugs": { | ||
"url": "https://github.com/helmetjs/nocache/issues", | ||
"email": "me@evanhahn.com" | ||
}, | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"main": "./dist/index.js", | ||
"typings": "./dist/index.d.ts", | ||
"files": [ | ||
"CHANGELOG.md", | ||
"LICENSE", | ||
"README.md", | ||
"dist/index.js", | ||
"dist/index.d.ts" | ||
], | ||
"scripts": { | ||
"pretest": "standard", | ||
"test": "mocha" | ||
"pretest": "npm run lint", | ||
"prepublishOnly": "npm run build", | ||
"lint": "eslint --fix '**/*.ts'", | ||
"test": "jest --config test/jest-config.json", | ||
"clean": "rm -rf dist", | ||
"build": "npm run clean && tsc" | ||
}, | ||
"devDependencies": { | ||
"connect": "^3.4.0", | ||
"mocha": "^2.3.4", | ||
"standard": "^7.1.2", | ||
"supertest": "^2.0.0" | ||
}, | ||
"standard": { | ||
"globals": [ | ||
"describe", | ||
"it" | ||
] | ||
"@types/connect": "^3.4.32", | ||
"@types/jest": "^24.0.12", | ||
"@types/supertest": "^2.0.7", | ||
"@typescript-eslint/eslint-plugin": "^1.7.0", | ||
"@typescript-eslint/parser": "^1.7.0", | ||
"connect": "^3.6.6", | ||
"eslint": "^5.16.0", | ||
"eslint-config-helmet": "^0.2.0", | ||
"jest": "^24.8.0", | ||
"supertest": "^4.0.2", | ||
"ts-jest": "^24.0.2", | ||
"typescript": "^3.4.5" | ||
} | ||
} |
Middleware to turn off caching | ||
============================== | ||
[![Build Status](https://travis-ci.org/helmetjs/nocache.svg?branch=master)](https://travis-ci.org/helmetjs/nocache) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) | ||
[_Looking for a changelog?_](https://github.com/helmetjs/helmet/blob/master/HISTORY.md) | ||
It's possible that you've got bugs in an old HTML or JavaScript file, and with a cache, some users will be stuck with those old versions. This will (try to) abolish all client-side caching. | ||
```javascript | ||
var nocache = require('nocache') | ||
const nocache = require('nocache') | ||
app.use(nocache()) | ||
@@ -13,0 +10,0 @@ ``` |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4466
6
14
0
0
12
20