roamjs-components 0.85.0 → 0.85.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const
|
|
4
|
+
const getCurrentUserUid_1 = tslib_1.__importDefault(require("./getCurrentUserUid"));
|
|
5
|
+
const getDisplayNameByUid_1 = tslib_1.__importDefault(require("./getDisplayNameByUid"));
|
|
5
6
|
const getCurrentUserDisplayName = () => {
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
if (uidIndex > 0) {
|
|
9
|
-
return userArray[uidIndex + 1] || "";
|
|
10
|
-
}
|
|
11
|
-
return "";
|
|
7
|
+
const uid = (0, getCurrentUserUid_1.default)();
|
|
8
|
+
return (0, getDisplayNameByUid_1.default)(uid);
|
|
12
9
|
};
|
|
13
10
|
exports.default = getCurrentUserDisplayName;
|
|
14
11
|
//# sourceMappingURL=getCurrentUserDisplayName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCurrentUserDisplayName.js","sourceRoot":"","sources":["../../src/queries/getCurrentUserDisplayName.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"getCurrentUserDisplayName.js","sourceRoot":"","sources":["../../src/queries/getCurrentUserDisplayName.ts"],"names":[],"mappings":";;;AAAA,oFAAoD;AACpD,wFAAwD;AAExD,MAAM,yBAAyB,GAAG,GAAW,EAAE;IAC7C,MAAM,GAAG,GAAG,IAAA,2BAAiB,GAAE,CAAC;IAChC,OAAO,IAAA,6BAAmB,EAAC,GAAG,CAAC,CAAC;AAClC,CAAC,CAAC;AAEF,kBAAe,yBAAyB,CAAC","sourcesContent":["import getCurrentUserUid from \"./getCurrentUserUid\";\nimport getDisplayNameByUid from \"./getDisplayNameByUid\";\n\nconst getCurrentUserDisplayName = (): string => {\n const uid = getCurrentUserUid();\n return getDisplayNameByUid(uid);\n};\n\nexport default getCurrentUserDisplayName;\n"]}
|