Socket
Socket
Sign inDemoInstall

express-xml-bodyparser

Package Overview
Dependencies
2
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

2

index.js

@@ -68,2 +68,2 @@ /**

exports.regexp = /^application\/([\w!#\$%&\*`\-\.\^~]*\+)?xml$/i;
exports.regexp = /^(text\/xml|application\/([\w!#\$%&\*`\-\.\^~]+\+)?xml)$/i;
{
"name": "express-xml-bodyparser",
"version": "0.0.2",
"version": "0.0.3",
"description": "Simple XML body parser connect/express middleware",

@@ -5,0 +5,0 @@ "author": "Matthias Adler <macedigital@gmail.com> (http://matthiasadler.info/)",

@@ -8,6 +8,7 @@ var assert = require('assert'),

var regexp = /^application\/([\w!#\$%&\*`\-\.\^~]*\+)?xml$/i;
var regexp = /^(text\/xml|application\/([\w!#\$%&\*`\-\.\^~]+\+)?xml)$/i;
it('should detect common XML mime-types', function () {
assert.equal(true, regexp.test('text/xml'));
assert.equal(true, regexp.test('application/xml'));

@@ -14,0 +15,0 @@ assert.equal(true, regexp.test('application/rss+xml'));

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