cache-parser
Advanced tools
Comparing version 1.1.2 to 1.2.0
{ | ||
"name": "cache-parser", | ||
"version": "1.1.2", | ||
"description": "A minimal Cache-Control header parser", | ||
"main": "./index.min.js", | ||
"unpkg": "./index.min.js", | ||
"browser": "./index.min.js", | ||
"jsdelivr": "./index.min.js", | ||
"types": "./index.d.ts", | ||
"version": "1.2.0", | ||
"description": "A minimal Cache-Control parser", | ||
"source": "src/index.ts", | ||
"main": "dist/index.js", | ||
"umd:main": "dist/index.umd.js", | ||
"module": "dist/index.mjs", | ||
"exports": { | ||
"require": "./dist/index.js", | ||
"import": "./dist/index.mjs", | ||
"node": "./dist/index.js", | ||
"default": "./dist/index.modern.js" | ||
}, | ||
"types": "dist/index.d.ts", | ||
"browser": "dist/index.umd.js", | ||
"unpkg": "dist/index.umd.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "jest", | ||
"format": "prettier --write .", | ||
"minify": "terser index.js --compress --mangle --output index.min.js", | ||
"escheck": "es-check es3 ./index*.js" | ||
"build": "rm -rf dist && microbundle", | ||
"test": "npm run build && jest", | ||
"format": "prettier --write ." | ||
}, | ||
@@ -39,16 +46,16 @@ "repository": { | ||
"files": [ | ||
"index.js", | ||
"index.min.js", | ||
"index.d.ts", | ||
"LICENSE" | ||
"dist/", | ||
"tsconfig.json", | ||
"LICENSE", | ||
"README.md" | ||
], | ||
"devDependencies": { | ||
"@arthurfiorette/prettier-config": "*", | ||
"@types/jest": "^27", | ||
"es-check": "^6.1.1", | ||
"jest": "^27", | ||
"prettier": "*", | ||
"prettier-plugin-jsdoc": "*", | ||
"terser": "^5" | ||
"@types/jest": "^27.4.0", | ||
"jest": "^27.4.7", | ||
"microbundle": "^0.14.2", | ||
"prettier": "^2.5.1", | ||
"prettier-plugin-jsdoc": "^0.3.30", | ||
"typescript": "^4.5.4" | ||
} | ||
} |
@@ -53,3 +53,3 @@ <br /> | ||
### `cache-parser` is a minimal Cache-Control header parser | ||
### `cache-parser` is a minimal parser for the [Cache-Control](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control) header | ||
@@ -63,5 +63,4 @@ <br /> | ||
- [Installing](#installing) | ||
- [Node](#node) | ||
- [Browser](#browser) | ||
- [Browser Compatibility](#browser-compatibility) | ||
- [Node](#node) | ||
- [Browser](#browser) | ||
- [Getting Started](#getting-started) | ||
@@ -95,10 +94,8 @@ - [Some examples](#some-examples) | ||
```html | ||
<!-- Make sure to use the latest version --> | ||
<script | ||
crossorigin | ||
src="https://cdn.jsdelivr.net/npm/cache-parser@VERSION/index.min.js" | ||
src="https://cdn.jsdelivr.net/npm/cache-parser@1/index.umd.js" | ||
></script> | ||
<!-- or --> | ||
<script crossorigin src="https://unpkg.com/cache-parser@VERSION/index.min.js"></script> | ||
<script crossorigin src="https://unpkg.com/cache-parser@1/dist/index.umd.js"></script> | ||
``` | ||
@@ -112,18 +109,9 @@ | ||
## Browser Compatibility | ||
Currently this package supports until **ES3**. To maintain this compatibility, our CI is | ||
using [ES Check](https://github.com/yowainwright/es-check). | ||
But you can test this yourself too by running `yarn escheck` or `npm run escheck` on this | ||
code. | ||
<br /> | ||
## Getting Started | ||
This library consists of two important functions: `parse` and `tokenize`. | ||
This library consists of two important functions: [`parse`](src/parse.ts) and | ||
[`tokenize`](src/tokenize.ts). | ||
Every documentation needed by every piece of code is in form of `TSDoc` and `JSDoc` | ||
comments. You can see them [**Here**](/index.d.ts). | ||
This is a pretty straightforward library, so, every documentation needed by every piece of | ||
code is in form of `TSDoc` and `JSDoc` comments. | ||
@@ -130,0 +118,0 @@ ### Some examples |
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
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
98173
22
447
160
1