@arianee/utils
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "@arianee/utils", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"type": "commonjs", | ||
"peerDependencies": { | ||
"@arianee/common-types": "0.10.0", | ||
"@arianee/common-types": "0.11.0", | ||
"tslib": "2.5.0" | ||
@@ -8,0 +8,0 @@ }, |
export * from './lib/links/readLink'; | ||
export * from './lib/passphrase/randomPassphrase'; |
@@ -5,2 +5,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./lib/links/readLink"), exports); | ||
tslib_1.__exportStar(require("./lib/passphrase/randomPassphrase"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -12,1 +12,2 @@ import { Protocol } from '@arianee/common-types'; | ||
export declare const getProtocolNameFromHostname: (hostname: string) => Protocol['name'] | null; | ||
export declare const getHostnameFromProtocolName: (protocolName: Protocol['name']) => string | undefined; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getProtocolNameFromHostname = exports.readLink = void 0; | ||
exports.getHostnameFromProtocolName = exports.getProtocolNameFromHostname = exports.readLink = void 0; | ||
const readLink = (link) => { | ||
@@ -54,2 +54,7 @@ var _a; | ||
exports.getProtocolNameFromHostname = getProtocolNameFromHostname; | ||
const getHostnameFromProtocolName = (protocolName) => { | ||
var _a; | ||
return (_a = Object.entries(WHITELABEL_HOSTNAMES_TO_PROTOCOL_NAME).find(([, value]) => value === protocolName)) === null || _a === void 0 ? void 0 : _a[0]; | ||
}; | ||
exports.getHostnameFromProtocolName = getHostnameFromProtocolName; | ||
//# sourceMappingURL=readLink.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7713
11
103