Socket
Socket
Sign inDemoInstall

mime

Package Overview
Dependencies
0
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.2 to 2.3.0

.travis.yml

15

CHANGELOG.md

@@ -5,2 +5,17 @@ # Change Log

<a name="2.3.0"></a>
# [2.3.0](https://github.com/broofa/node-mime/compare/v2.2.2...v2.3.0) (2018-04-11)
### Bug Fixes
* fix [#192](https://github.com/broofa/node-mime/issues/192) ([5c35df6](https://github.com/broofa/node-mime/commit/5c35df6))
### Features
* add travis-ci testing ([d64160f](https://github.com/broofa/node-mime/commit/d64160f))
<a name="2.2.2"></a>

@@ -7,0 +22,0 @@ ## [2.2.2](https://github.com/broofa/node-mime/compare/v2.2.1...v2.2.2) (2018-03-30)

4

Mime.js

@@ -44,3 +44,2 @@ 'use strict';

if (ext[0] == '*') {
extensions[i] = ext.substr(1);
continue;

@@ -63,3 +62,4 @@ }

if (force || !this._extensions[type]) {
this._extensions[type] = extensions[0];
var ext = extensions[0];
this._extensions[type] = (ext[0] != '*') ? ext : ext.substr(1)
}

@@ -66,0 +66,0 @@ }

@@ -42,3 +42,3 @@ {

},
"version": "2.2.2"
"version": "2.3.0"
}

@@ -9,2 +9,8 @@ 'use strict';

describe('class Mime', function() {
it('mime and mime/lite coexist', function() {
assert.doesNotThrow(function() {
require('../lite');
});
});
it('new constructor()', function() {

@@ -11,0 +17,0 @@ var Mime = require('../Mime');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc