desktop-deep-link
Advanced tools
Comparing version 1.1.8 to 1.2.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [1.2.0](https://github.com/friedrith/desktop-deep-link/compare/v1.1.8...v1.2.0) (2022-01-02) | ||
### Features | ||
* remove normalization ([e8a10fe](https://github.com/friedrith/desktop-deep-link/commit/e8a10feda89b9b501659be31c48b6ecb95359f4f)) | ||
### [1.1.8](https://github.com/friedrith/desktop-deep-link/compare/v1.1.7...v1.1.8) (2022-01-02) | ||
@@ -7,0 +14,0 @@ |
@@ -8,12 +8,7 @@ "use strict"; | ||
}; | ||
const normalize = (uri) => { | ||
const s = uri.startsWith('http') ? uri : `https://${uri}`; | ||
return s.replace('http://', 'https://'); | ||
}; | ||
exports.default = (uri) => { | ||
var _a; | ||
const cleanURI = normalize(uri); | ||
return (_a = [...modules_1.modules, defaultModule] | ||
.find((m) => m.match(cleanURI))) === null || _a === void 0 ? void 0 : _a.transform(cleanURI); | ||
.find((m) => m.match(uri))) === null || _a === void 0 ? void 0 : _a.transform(uri); | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "desktop-deep-link", | ||
"version": "1.1.8", | ||
"version": "1.2.0", | ||
"description": "A library to transform urls to deep link for a lot of desktop apps.", | ||
@@ -5,0 +5,0 @@ "main": "dist/tsc/index.js", |
@@ -9,12 +9,6 @@ import { modules } from './modules' | ||
const normalize = (uri: string): string => { | ||
const s = uri.startsWith('http') ? uri : `https://${uri}` | ||
return s.replace('http://', 'https://') | ||
} | ||
export default (uri: string) => { | ||
const cleanURI: string = normalize(uri) | ||
return [...modules, defaultModule] | ||
.find((m: Module) => m.match(cleanURI)) | ||
?.transform(cleanURI) | ||
.find((m: Module) => m.match(uri)) | ||
?.transform(uri) | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
27244
431