path-to-regexp
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
472934
6409