UNPKG

urisanity

Version:

vet URIs in web and web-like applications with confidence

74 lines (55 loc) 1.81 kB
<a name="0.1.6"></a> # 0.1.6 (2024-09-20) ### Features Added - None ### Bug Fixes - Fixed [Issue 1](https://github.com/codesplinta/URISanity/issues/1) reported by [@ccrawford4](https://github.com/ccrawford4) <a name="0.1.5"></a> # 0.1.5 (2024-04-08) ### Features Added - Refactored `checkParamsOverWhiteList(...)` function to allow second argument (`paramsWhiteList`) take not only arrays but objects { key: value } pair too ### Bug Fixes - None <a name="0.1.4"></a> # 0.1.4 (2024-04-03) ### Features Added - None ### Bug Fixes - Fixed bugs around unsafe charcters in URIs - Fixed issues with Typescript declarations file <a name="0.1.3"></a> # 0.1.3 (2024-03-05) ### Features Added - Added more schemes for filtering out `allowCommsAppURI` and `allowServiceAPIURI` scheme sets - Modified second argument of `checkParamsOverWhiteList()` method to accept object literal ### Bug Fixes - None <a name="0.1.2"></a> # 0.1.2 (2022-05-12) ### Features Added - **file:** (local filesystem) URI now has it's own scheme option flag: * `allowFileSystemURI` ### Bug Fixes - Fixed Unhandled Error when `new URL()` constructor throws due to un-parse-able URL - Fixed null character bytes ignored in scheme of URI in *Firefox* within `new URL(uri)` call - Fixed non-malicious **data:** URI failing to pass as well-formed URI <a name="0.1.1"></a> # 0.1.1 (2022-02-15) ### Bug Fixes - Fixed **Error: ** `ReferenceError: window is not defined` <a name="0.1.0"></a> # 0.1.0 (2022-02-13) ### Feature Added - `vet()` method - `isSameOrigin()` method - `checkParamsOverWhiteList()` method - `extractParamValueFromUri()` method - Added scheme option flags: * `allowDBConnectionStringURI` * `allowCommsAppURI` * `allowScriptOrDataURI` * `allowWebTransportURI` * `allowServiceAPIURI` ### Bug Fixes - None