@tusbar/cache-control
Advanced tools
Comparing version 0.6.1 to 1.0.0
{ | ||
"name": "@tusbar/cache-control", | ||
"public": true, | ||
"version": "0.6.1", | ||
"license": "MIT", | ||
"version": "1.0.0", | ||
"author": "Bertrand Marron <bertrand.marron@gmail.com>", | ||
"description": "Format and parse HTTP Cache-Control header", | ||
"main": "./index.js", | ||
"types": "./index.d.ts", | ||
"scripts": { | ||
"test": "jest" | ||
}, | ||
"repository": "https://github.com/tusbar/cache-control", | ||
"keywords": [ | ||
@@ -16,46 +14,47 @@ "cache-control", | ||
], | ||
"type": "module", | ||
"sideEffects": false, | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
"dist" | ||
], | ||
"repository": "https://github.com/tusbar/cache-control", | ||
"author": "Bertrand Marron <bertrand.marron@gmail.com>", | ||
"license": "MIT", | ||
"source": "./src/index.ts", | ||
"main": "./dist/cache-control.cjs", | ||
"umd:main": "./dist/cache-control.umd.js", | ||
"module": "./dist/cache-control.js", | ||
"exports": { | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/cache-control.cjs", | ||
"default": "./dist/cache-control.modern.js" | ||
}, | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"test": "jest", | ||
"check:ts": "tsc --noEmit", | ||
"build": "microbundle", | ||
"dev": "microbundle watch" | ||
}, | ||
"devDependencies": { | ||
"@bizon/semantic-release-config": "^1.1.0", | ||
"jest": "^27.4.0", | ||
"jest-junit": "^13.0.0", | ||
"semantic-release": "^18.0.1", | ||
"xo": "^0.47.0" | ||
"@bizon/semantic-release-config": "^2.1.0", | ||
"@jest/types": "^29.6.1", | ||
"@tsconfig/node18": "^18.2.0", | ||
"@types/jest": "^29.5.3", | ||
"eslint-config-xo-bizon": "^2.0.0", | ||
"jest": "^29.6.2", | ||
"microbundle": "^0.15.1", | ||
"semantic-release": "^21.0.7", | ||
"ts-jest": "^29.1.1", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.1.6", | ||
"xo": "^0.55.0" | ||
}, | ||
"jest": { | ||
"testMatch": [ | ||
"<rootDir>/__tests__/*.js" | ||
], | ||
"transform": {}, | ||
"collectCoverage": true, | ||
"collectCoverageFrom": [ | ||
"index.js" | ||
], | ||
"coverageReporters": [ | ||
"lcov", | ||
"text-summary" | ||
] | ||
}, | ||
"xo": { | ||
"extends": "xo-bizon", | ||
"semicolon": false, | ||
"space": 2, | ||
"rules": { | ||
"unicorn/no-array-reduce": "off", | ||
"unicorn/prefer-module": "off" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": "__tests__/*.js", | ||
"envs": [ | ||
"jest" | ||
] | ||
} | ||
] | ||
"prettier": true | ||
}, | ||
"prettier": { | ||
"printWidth": 100 | ||
}, | ||
"release": { | ||
@@ -62,0 +61,0 @@ "extends": "@bizon/semantic-release-config" |
@@ -30,3 +30,3 @@ # cache-control | ||
`parse()` takes `Cache-Control` HTTP header value and returns a `CacheControl` instance. | ||
`parse()` takes a `Cache-Control` HTTP header value and returns a `CacheControl` instance. | ||
@@ -33,0 +33,0 @@ For example, `parse('max-age=31536000, public')` will return |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
57195
12
1
Yes
12
100
1