@staticbackend/backend 1.4.0-rc2 → 1.4.0
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/dist/backend.d.ts +4 -0
- package/dist/backend.js +5 -0
- package/package.json +1 -1
package/dist/backend.d.ts
CHANGED
package/dist/backend.js
CHANGED
|
@@ -103,6 +103,11 @@ class Backend {
|
|
|
103
103
|
return yield this.req(rootToken, "GET", `/sudogettoken/${accountId}`);
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
+
me(token) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
return yield this.req(token, "GET", "/me");
|
|
109
|
+
});
|
|
110
|
+
}
|
|
106
111
|
cacheGet(rootToken, key) {
|
|
107
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
113
|
return yield this.req(rootToken, "GET", `/sudo/cache?key=${key}`);
|