Socket
Socket
Sign inDemoInstall

path-to-regexp

Package Overview
Dependencies
Maintainers
5
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-to-regexp - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

6

dist.es2015/index.js

@@ -19,4 +19,3 @@ /**

return char;
})
.normalize();
});
}

@@ -49,6 +48,5 @@ /**

*/
export function parse(input, options) {
export function parse(str, options) {
if (options === void 0) { options = {}; }
var _a, _b;
var str = input.normalize();
var tokens = [];

@@ -55,0 +53,0 @@ var defaultDelimiter = (_a = options.delimiter, (_a !== null && _a !== void 0 ? _a : DEFAULT_DELIMITER));

@@ -20,3 +20,3 @@ export interface ParseOptions {

*/
export declare function parse(input: string, options?: ParseOptions): Token[];
export declare function parse(str: string, options?: ParseOptions): Token[];
export interface TokensToFunctionOptions {

@@ -23,0 +23,0 @@ /**

@@ -21,4 +21,3 @@ "use strict";

return char;
})
.normalize();
});
}

@@ -52,6 +51,5 @@ exports.normalizePathname = normalizePathname;

*/
function parse(input, options) {
function parse(str, options) {
if (options === void 0) { options = {}; }
var _a, _b;
var str = input.normalize();
var tokens = [];

@@ -58,0 +56,0 @@ var defaultDelimiter = (_a = options.delimiter, (_a !== null && _a !== void 0 ? _a : DEFAULT_DELIMITER));

{
"name": "path-to-regexp",
"description": "Express style path to RegExp utility",
"version": "4.0.3",
"version": "4.0.4",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "typings": "dist/index.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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