@betterinternship/core 2.3.2 → 2.3.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/lib/chat/pb.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import PocketBase from 'pocketbase';
|
|
2
|
-
import { ENV } from '../env.js';
|
|
3
|
-
let _pb = {};
|
|
4
|
-
if (!ENV.BICORE_IGNORE_POCKETBASE) {
|
|
5
|
-
_pb = new PocketBase(ENV.PB_URL);
|
|
6
|
-
_pb.autoCancellation(false);
|
|
7
|
-
}
|
|
8
|
-
export const pb = _pb;
|
|
9
|
-
export const authenticatePocketbase = async () => {
|
|
10
|
-
await _pb
|
|
11
|
-
.collection('_superusers')
|
|
12
|
-
.authWithPassword(ENV.PB_ADMIN_EMAIL, ENV.PB_ADMIN_PASSWORD, { autoRefreshThreshold: 30 * 60 });
|
|
13
|
-
};
|
|
14
|
-
if (!ENV.BICORE_IGNORE_POCKETBASE)
|
|
15
|
-
authenticatePocketbase();
|
|
1
|
+
import PocketBase from 'pocketbase';
|
|
2
|
+
import { ENV } from '../env.js';
|
|
3
|
+
let _pb = {};
|
|
4
|
+
if (!ENV.BICORE_IGNORE_POCKETBASE) {
|
|
5
|
+
_pb = new PocketBase(ENV.PB_URL);
|
|
6
|
+
_pb.autoCancellation(false);
|
|
7
|
+
}
|
|
8
|
+
export const pb = _pb;
|
|
9
|
+
export const authenticatePocketbase = async () => {
|
|
10
|
+
await _pb
|
|
11
|
+
.collection('_superusers')
|
|
12
|
+
.authWithPassword(ENV.PB_ADMIN_EMAIL, ENV.PB_ADMIN_PASSWORD, { autoRefreshThreshold: 30 * 60 });
|
|
13
|
+
};
|
|
14
|
+
if (!ENV.BICORE_IGNORE_POCKETBASE)
|
|
15
|
+
authenticatePocketbase();
|
|
16
16
|
//# sourceMappingURL=pb.js.map
|