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

mimer

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mimer - npm Package Compare versions

Comparing version 0.2.3 to 0.3.0

16

lib/exec.js

@@ -37,14 +37,4 @@ /*

},
_extGetter = (typeof process !== 'undefined' && process.platform === 'win32') ? require('./extensions/getter') : function (path) {
var last = null,
splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
if (!path.match('.')) {
return path;
}
path = splitPathRe.exec(path).slice(1);
last = path[path.length - 1];
return (last !== '') ? last : path[path.length - 2];
_extGetter = function (fileName) {
return fileName.slice((fileName.lastIndexOf(".") - 1 >>> 0) + 2);
};

@@ -74,3 +64,3 @@

ext = _extGetter(path).split('.')[1];
ext = _extGetter(path);

@@ -77,0 +67,0 @@ return this.list[ext] || generic;

2

package.json
{
"name": "mimer",
"version": "0.2.3",
"version": "0.3.0",
"description": "A simple Mime type getter",

@@ -5,0 +5,0 @@ "main": "mimer.js",

@@ -80,2 +80,3 @@ Mimer [![Build Status](https://secure.travis-ci.org/data-uri/mimer.png?branch=master)](http://travis-ci.org/data-uri/mimer) [![NPM version](https://badge.fury.io/js/mimer.png)](http://badge.fury.io/js/mimer)

* 0.3 - Remove potential REDOS vulnerability. Thanks to [James Davis](http://people.cs.vt.edu/~davisjam/)
* 0.2 - Follow IANA RFC and full AMD and browser support

@@ -82,0 +83,0 @@ * 0.1 - First release

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