@liveblocks/emails 2.13.3-emails2 → 2.14.0-v2encoding
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 +22 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { detectDupes } from "@liveblocks/core";
|
|
|
3
3
|
|
|
4
4
|
// src/version.ts
|
|
5
5
|
var PKG_NAME = "@liveblocks/emails";
|
|
6
|
-
var PKG_VERSION = "2.
|
|
6
|
+
var PKG_VERSION = "2.14.0-v2encoding";
|
|
7
7
|
var PKG_FORMAT = "esm";
|
|
8
8
|
|
|
9
9
|
// ../../node_modules/lib0/map.js
|
|
@@ -7623,18 +7623,13 @@ var createDevelopmentWarning = (condition, ...args2) => {
|
|
|
7623
7623
|
|
|
7624
7624
|
// src/lib/batch-users-resolver.ts
|
|
7625
7625
|
var BatchUsersResolver = class {
|
|
7626
|
+
isResolved;
|
|
7627
|
+
markAsResolved;
|
|
7628
|
+
resolvePromise;
|
|
7629
|
+
primeResolveUsersFn;
|
|
7630
|
+
usersById;
|
|
7631
|
+
warnAsAlreadyResolved;
|
|
7626
7632
|
constructor(resolveUsers) {
|
|
7627
|
-
this.resolveUsers = async (args2) => {
|
|
7628
|
-
if (this.isResolved) {
|
|
7629
|
-
this.warnAsAlreadyResolved();
|
|
7630
|
-
return void 0;
|
|
7631
|
-
}
|
|
7632
|
-
for (const userId of args2.userIds) {
|
|
7633
|
-
this.usersById.set(userId, void 0);
|
|
7634
|
-
}
|
|
7635
|
-
await this.resolvePromise;
|
|
7636
|
-
return args2.userIds.map((userId) => this.usersById.get(userId));
|
|
7637
|
-
};
|
|
7638
7633
|
const { promise, resolve } = Promise_withResolvers();
|
|
7639
7634
|
this.isResolved = false;
|
|
7640
7635
|
this.markAsResolved = resolve;
|
|
@@ -7646,6 +7641,17 @@ var BatchUsersResolver = class {
|
|
|
7646
7641
|
"Batch users resolver promise already resolved. It can only resolve once."
|
|
7647
7642
|
);
|
|
7648
7643
|
}
|
|
7644
|
+
resolveUsers = async (args2) => {
|
|
7645
|
+
if (this.isResolved) {
|
|
7646
|
+
this.warnAsAlreadyResolved();
|
|
7647
|
+
return void 0;
|
|
7648
|
+
}
|
|
7649
|
+
for (const userId of args2.userIds) {
|
|
7650
|
+
this.usersById.set(userId, void 0);
|
|
7651
|
+
}
|
|
7652
|
+
await this.resolvePromise;
|
|
7653
|
+
return args2.userIds.map((userId) => this.usersById.get(userId));
|
|
7654
|
+
};
|
|
7649
7655
|
async resolve() {
|
|
7650
7656
|
if (this.isResolved) {
|
|
7651
7657
|
this.warnAsAlreadyResolved();
|