@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 CHANGED
@@ -1,9 +1,9 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/index.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;// src/index.ts
2
2
  var _core = require('@liveblocks/core');
3
3
 
4
4
  // src/version.ts
5
5
  var PKG_NAME = "@liveblocks/emails";
6
- var PKG_VERSION = "2.13.3-emails2";
6
+ var PKG_VERSION = "2.14.0-v2encoding";
7
7
  var PKG_FORMAT = "cjs";
8
8
 
9
9
  // ../../node_modules/lib0/map.js
@@ -7622,19 +7622,14 @@ var createDevelopmentWarning = (condition, ...args2) => {
7622
7622
  };
7623
7623
 
7624
7624
  // src/lib/batch-users-resolver.ts
7625
- var BatchUsersResolver = class {
7626
- 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
- };
7625
+ var BatchUsersResolver = (_class = class {
7626
+
7627
+
7628
+
7629
+
7630
+
7631
+
7632
+ constructor(resolveUsers) {;_class.prototype.__init.call(this);
7638
7633
  const { promise, resolve } = _core.Promise_withResolvers.call(void 0, );
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
+ __init() {this.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();
@@ -7660,7 +7666,7 @@ var BatchUsersResolver = class {
7660
7666
  this.isResolved = true;
7661
7667
  this.markAsResolved();
7662
7668
  }
7663
- };
7669
+ }, _class);
7664
7670
  function createBatchUsersResolver({
7665
7671
  resolveUsers,
7666
7672
  callerName