Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tinyhttp/type-is

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/type-is - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

CHANGELOG.md
# @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 @@

3

dist/index.js

@@ -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

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