Socket
Socket
Sign inDemoInstall

parse-cache-control

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

index.js
module.exports = function parseCacheControl(field) {
if (typeof field !== 'string') {
return null;
}
/*

@@ -4,0 +8,0 @@ Cache-Control = 1#cache-directive

2

package.json
{
"name": "parse-cache-control",
"version": "1.0.0",
"version": "1.0.1",
"description": "Parse Cache-Control headers.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,3 +21,12 @@ var test = require('tape');

header = parseCacheControl(123);
t.notOk(header);
header = parseCacheControl(null);
t.notOk(header);
header = parseCacheControl(undefined);
t.notOk(header);
t.end();
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc