@operato/utils
Advanced tools
Comparing version 1.4.5 to 1.4.23
@@ -6,2 +6,11 @@ # Change Log | ||
### [1.4.23](https://github.com/hatiolab/operato/compare/v1.4.22...v1.4.23) (2023-08-09) | ||
### :bug: Bug Fix | ||
* configurable context-path-prefix ([5ca743c](https://github.com/hatiolab/operato/commit/5ca743ce6e311f8ad4d7ea951a8d62563e3f4215)) | ||
### [1.4.5](https://github.com/hatiolab/operato/compare/v1.4.4...v1.4.5) (2023-07-22) | ||
@@ -8,0 +17,0 @@ |
@@ -7,1 +7,2 @@ export declare function getPathInfo(pathname: string): { | ||
}; | ||
export declare function setContextPathPrefix(contextPathPrefix: string): void; |
@@ -1,2 +0,2 @@ | ||
const CONTEXT_PATH_PREFIX = 'domain|business'; | ||
var CONTEXT_PATH_PREFIX = 'domain|business'; | ||
export function getPathInfo(pathname) { | ||
@@ -16,2 +16,5 @@ var regexp = new RegExp(`(/(${CONTEXT_PATH_PREFIX})/([^/]+))?(/?.*)`); | ||
} | ||
export function setContextPathPrefix(contextPathPrefix) { | ||
CONTEXT_PATH_PREFIX = contextPathPrefix || 'domain|business'; | ||
} | ||
//# sourceMappingURL=context-path.js.map |
@@ -5,3 +5,3 @@ { | ||
"author": "heartyoh", | ||
"version": "1.4.5", | ||
"version": "1.4.23", | ||
"main": "dist/src/index.js", | ||
@@ -121,3 +121,3 @@ "module": "dist/src/index.js", | ||
}, | ||
"gitHead": "d6f31f363ee5aabb2420203477da6206f8ebeeed" | ||
"gitHead": "f490c222495c17c7e60103ed225a81ca3bbaf02b" | ||
} |
@@ -1,2 +0,2 @@ | ||
const CONTEXT_PATH_PREFIX = 'domain|business' | ||
var CONTEXT_PATH_PREFIX = 'domain|business' | ||
@@ -18,1 +18,5 @@ export function getPathInfo(pathname: string) { | ||
} | ||
export function setContextPathPrefix(contextPathPrefix: string) { | ||
CONTEXT_PATH_PREFIX = contextPathPrefix || 'domain|business' | ||
} |
Sorry, the diff of this file is not supported yet
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
206765
2155