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

mime-type

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mime-type - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

10

lib/mime-type.js

@@ -9,3 +9,3 @@ // Generated by CoffeeScript 1.9.3

(function() {
var MimeTypes, defineProperty, extname, extractTypeRegExp, isArray, isFunction, isString, mediaTyper, minimatch, textTypeRegExp,
var MimeTypes, defineProperty, extractTypeRegExp, isArray, isFunction, isString, mediaTyper, minimatch, path, textTypeRegExp,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

@@ -25,3 +25,3 @@

extname = require('path-ex').extname;
path = require('path.js');

@@ -157,6 +157,6 @@ extractTypeRegExp = /^\s*([^;\s]*)(?:;|\s|$)/;

MimeTypes.prototype.lookup = function(path) {
MimeTypes.prototype.lookup = function(aPath) {
var extension, result;
if (path && isString(path)) {
extension = extname('x.' + path).toLowerCase().substr(1);
if (aPath && isString(aPath)) {
extension = path.extname('x.' + aPath).toLowerCase().substr(1);
if (extension) {

@@ -163,0 +163,0 @@ result = this.types[extension];

{
"name": "mime-type",
"description": "the custom more powerful mime-type utility can work with mime-db.",
"version": "3.0.3",
"version": "3.0.4",
"contributors": [

@@ -21,3 +21,3 @@ "Riceball LEE https://github.com/snowyu",

"minimatch": "^2.0.8",
"path-ex": "0.0.1",
"path.js": "^1.0.4",
"util-ex": "^0.3.4"

@@ -24,0 +24,0 @@ },

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