Socket
Socket
Sign inDemoInstall

path-parser

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-parser - npm Package Compare versions

Comparing version 4.0.4 to 4.0.5

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="4.0.5"></a>
## [4.0.5](https://github.com/troch/path-parser/compare/v4.0.4...v4.0.5) (2018-05-14)
### Bug Fixes
* allow equal signs in parameters (commonly found at the end of base 64 encoded strings) ([5c98fb6](https://github.com/troch/path-parser/commit/5c98fb6))
<a name="4.0.4"></a>

@@ -2,0 +12,0 @@ ## [4.0.4](https://github.com/troch/path-parser/compare/v4.0.3...v4.0.4) (2018-04-09)

4

dist/cjs/path-parser.js

@@ -31,3 +31,5 @@ 'use strict';

var defaultOrConstrained = function (match) {
return '(' + (match ? match.replace(/(^<|>$)/g, '') : "[a-zA-Z0-9-_.~%':|]+") + ')';
return '(' +
(match ? match.replace(/(^<|>$)/g, '') : "[a-zA-Z0-9-_.~%':|=]+") +
')';
};

@@ -34,0 +36,0 @@ var rules = [

@@ -27,3 +27,5 @@ import { build, parse } from 'search-params';

var defaultOrConstrained = function (match) {
return '(' + (match ? match.replace(/(^<|>$)/g, '') : "[a-zA-Z0-9-_.~%':|]+") + ')';
return '(' +
(match ? match.replace(/(^<|>$)/g, '') : "[a-zA-Z0-9-_.~%':|=]+") +
')';
};

@@ -30,0 +32,0 @@ var rules = [

{
"name": "path-parser",
"version": "4.0.4",
"version": "4.0.5",
"description": "A small utility to parse, match and generate paths",

@@ -5,0 +5,0 @@ "main": "dist/cjs/path-parser.js",

@@ -15,2 +15,4 @@ [![npm version](https://badge.fury.io/js/path-parser.svg)](http://badge.fury.io/js/path-parser)

import Path from 'path-parser'
// or
const Path = require('path-parser').default

@@ -17,0 +19,0 @@ const path = new Path('/users/:id')

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