New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cacheability

Package Overview
Dependencies
Maintainers
0
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cacheability - npm Package Compare versions

Comparing version 4.0.23 to 4.0.24

shellScripts/installActivateMise.sh

12

dist/production.analysis.txt
-----------------------------
Rollup File Analysis
-----------------------------
bundle size: 4.427 KB
original size: 4.781 KB
code reduction: 7.4 %
bundle size: 4.569 KB
original size: 5 KB
code reduction: 8.62 %
module count: 2

@@ -12,5 +12,5 @@

bundle space: 100 %
rendered size: 4.427 KB
original size: 4.7 KB
code reduction: 5.81 %
rendered size: 4.569 KB
original size: 4.919 KB
code reduction: 7.12 %
dependents: 1

@@ -17,0 +17,0 @@ - /src/index.ts

{
"name": "cacheability",
"description": "A utility class to parse, store and print http cache headers.",
"version": "4.0.23",
"version": "4.0.24",
"author": "Dylan Aubrey",

@@ -35,5 +35,5 @@ "license": "MIT",

"@jest/globals": "^29.7.0",
"@repodog/cli": "^1.6.35",
"@repodog/cli": "^1.6.36",
"@repodog/commitlint-config": "^19.0.3",
"@repodog/eslint-config": "^9.0.4",
"@repodog/eslint-config": "^9.0.5",
"@repodog/eslint-config-jest": "^9.0.3",

@@ -46,3 +46,3 @@ "@repodog/jest-config": "^29.0.2",

"@repodog/syncpack-config": "^13.0.2",
"@repodog/ts-config": "^5.0.2",
"@repodog/ts-config": "^5.0.4",
"@rollup/plugin-swc": "^0.3.0",

@@ -76,3 +76,2 @@ "@swc/core": "^1.7.26",

],
"packageManager": "pnpm@8.11.0+sha512.9df87c16c98db27b4e051d787e67f2207ec47e809ccb07bf7b5ec4acdcd1613355839a38d0b900144923d6a7057700b74d2a0ccb1558beb241647a1206a9a7ab",
"scripts": {

@@ -90,2 +89,3 @@ "build": "pnpm run clean:dist && pnpm run compile",

"lint:docs": "markdownlint-cli2 --config \".markdownlint.json\" \"**/*.md\" \"!**/node_modules/**\"",
"postinstall": "sh shellScripts/installActivateMise.sh",
"repodog": "repodog",

@@ -92,0 +92,0 @@ "syncpack": "syncpack format && syncpack list-mismatches && syncpack lint-semver-ranges",

@@ -45,3 +45,10 @@ import { camelCase, isBoolean, isNumber, isPlainObject, isString, kebabCase } from 'lodash-es';

const headerValue = headers.get(key);
if (!headerValue) continue;
if (!headerValue) {
continue;
}
// camelCase returns a string type and we know the
// string is either 'cacheControl' or 'etag'.
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
const metadataKey = camelCase(key) as 'cacheControl' | 'etag';

@@ -48,0 +55,0 @@ parsed[metadataKey] = headerValue;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc