@tinyhttp/etag
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "@tinyhttp/etag", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "entity tag module", |
@@ -18,6 +18,6 @@ # @tinyhttp/etag | ||
```ts | ||
import etag from '@tinyhttp/etag' | ||
import { eTag } from '@tinyhttp/etag' | ||
``` | ||
`etag(entity, [options])` | ||
`eTag(entity, [options])` | ||
@@ -27,3 +27,3 @@ Generate a strong ETag for the given entity. This should be the complete body of the entity. Strings, `Buffer`s, and `fs.Stats` are accepted. By default, a strong ETag is generated except for `fs.Stats`, which will generate a weak ETag (this can be overwritten by options.weak). | ||
```ts | ||
res.setHeader('ETag', etag(body)) | ||
res.setHeader('ETag', eTag(body)) | ||
``` | ||
@@ -33,3 +33,3 @@ | ||
`etag` accepts these properties in the options object. | ||
`eTag` accepts these properties in the options object. | ||
@@ -36,0 +36,0 @@ #### `weak` |
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
5762
6