@kedaruma/revlm-client 1.0.27 → 1.0.29
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/index.js +1 -10
- package/dist/index.mjs +1 -10
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -388,16 +388,7 @@ var App = class {
|
|
|
388
388
|
const res = await this.__revlm.login(cred.email, cred.password);
|
|
389
389
|
console.log("### App:login res:", res);
|
|
390
390
|
if (!res || !res.ok || !res.token) {
|
|
391
|
-
|
|
392
|
-
const err = new Error(errMsg);
|
|
393
|
-
const anyRes = res;
|
|
394
|
-
if (anyRes && typeof anyRes === "object") {
|
|
395
|
-
if (anyRes.code !== void 0) err.code = anyRes.code;
|
|
396
|
-
if (anyRes.status !== void 0) err.status = anyRes.status;
|
|
397
|
-
if (anyRes.reason !== void 0) err.reason = anyRes.reason;
|
|
398
|
-
err.response = anyRes;
|
|
399
|
-
}
|
|
400
|
-
throw err;
|
|
391
|
+
return res;
|
|
401
392
|
}
|
|
402
393
|
this.__revlm.setToken(res.token);
|
|
403
394
|
const user = new User(this, res.token, res.user);
|
package/dist/index.mjs
CHANGED
|
@@ -345,16 +345,7 @@ var App = class {
|
|
|
345
345
|
const res = await this.__revlm.login(cred.email, cred.password);
|
|
346
346
|
console.log("### App:login res:", res);
|
|
347
347
|
if (!res || !res.ok || !res.token) {
|
|
348
|
-
|
|
349
|
-
const err = new Error(errMsg);
|
|
350
|
-
const anyRes = res;
|
|
351
|
-
if (anyRes && typeof anyRes === "object") {
|
|
352
|
-
if (anyRes.code !== void 0) err.code = anyRes.code;
|
|
353
|
-
if (anyRes.status !== void 0) err.status = anyRes.status;
|
|
354
|
-
if (anyRes.reason !== void 0) err.reason = anyRes.reason;
|
|
355
|
-
err.response = anyRes;
|
|
356
|
-
}
|
|
357
|
-
throw err;
|
|
348
|
+
return res;
|
|
358
349
|
}
|
|
359
350
|
this.__revlm.setToken(res.token);
|
|
360
351
|
const user = new User(this, res.token, res.user);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kedaruma/revlm-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "TypeScript client SDK for talking to the Revlm server replacement for MongoDB Realm.",
|
|
6
6
|
"keywords": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"bson": "^6.10.4",
|
|
50
50
|
"dotenv": "^17.2.3",
|
|
51
|
-
"@kedaruma/revlm-shared": "1.0.
|
|
51
|
+
"@kedaruma/revlm-shared": "1.0.7"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"tsup": "^8.5.1"
|