@tinyhttp/type-is
Advanced tools
Comparing version 1.0.0 to 1.0.1
# @tinyhttp/type-is | ||
## 1.0.1 | ||
### Patch Changes | ||
- Remove license notes from readmes, add readme for type-is | ||
## 1.0.0 | ||
@@ -4,0 +10,0 @@ |
@@ -36,3 +36,4 @@ import { lookup } from 'es-mime-types'; | ||
if (expectedParts[1].substr(0, 2) === '*+') | ||
return expectedParts[1].length <= actualParts[1].length + 1 && expectedParts[1].substr(1) === actualParts[1].substr(1 - expectedParts[1].length); | ||
return (expectedParts[1].length <= actualParts[1].length + 1 && | ||
expectedParts[1].substr(1) === actualParts[1].substr(1 - expectedParts[1].length)); | ||
// validate subtype | ||
@@ -39,0 +40,0 @@ if (expectedParts[1] !== '*' && expectedParts[1] !== actualParts[1]) |
{ | ||
"name": "@tinyhttp/type-is", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "TypeScript rewrite of type-is with CJS and ESM targets", |
@@ -38,3 +38,6 @@ import { lookup } from 'es-mime-types' | ||
if (expectedParts[1].substr(0, 2) === '*+') | ||
return expectedParts[1].length <= actualParts[1].length + 1 && expectedParts[1].substr(1) === actualParts[1].substr(1 - expectedParts[1].length) | ||
return ( | ||
expectedParts[1].length <= actualParts[1].length + 1 && | ||
expectedParts[1].substr(1) === actualParts[1].substr(1 - expectedParts[1].length) | ||
) | ||
@@ -41,0 +44,0 @@ // validate subtype |
Sorry, the diff of this file is not supported yet
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
10605
249
12