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.0 to 4.0.1

10

CHANGELOG.md

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

<a name="4.0.1"></a>
## [4.0.1](https://github.com/troch/path-parser/compare/v4.0.0...v4.0.1) (2018-03-26)
### Bug Fixes
* fix matching with strictTrailingSlash option ([353ecc0](https://github.com/troch/path-parser/commit/353ecc0))
<a name="4.0.0"></a>

@@ -2,0 +12,0 @@ # [4.0.0](https://github.com/troch/path-parser/compare/v3.0.1...v4.0.0) (2018-03-25)

5

dist/cjs/path-parser.js

@@ -102,5 +102,8 @@ 'use strict';

var optTrailingSlash = function (source, strictTrailingSlash) {
if (!strictTrailingSlash) {
if (strictTrailingSlash) {
return source;
}
if (source === '\\/') {
return source;
}
return source.replace(/\\\/$/, '') + '(?:\\/)?';

@@ -107,0 +110,0 @@ };

@@ -100,5 +100,8 @@ import { build, parse } from 'search-params';

var optTrailingSlash = function (source, strictTrailingSlash) {
if (!strictTrailingSlash) {
if (strictTrailingSlash) {
return source;
}
if (source === '\\/') {
return source;
}
return source.replace(/\\\/$/, '') + '(?:\\/)?';

@@ -105,0 +108,0 @@ };

2

package.json
{
"name": "path-parser",
"version": "4.0.0",
"version": "4.0.1",
"description": "A small utility to parse, match and generate paths",

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

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