mailery 0.16.2 → 0.16.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.
package/dist/index.cjs CHANGED
@@ -8271,7 +8271,7 @@ function unitToMs2(value, unit) {
8271
8271
  }
8272
8272
 
8273
8273
  // src/server/api/agent.ts
8274
- var VERSION = "0.16.2" ;
8274
+ var VERSION = "0.16.4" ;
8275
8275
  var MIN_AGENT_TOKEN_LENGTH = 24;
8276
8276
  function createAgentRouter(mailer, opts) {
8277
8277
  if (!opts || !Array.isArray(opts.tokens) || opts.tokens.length === 0) {
@@ -9520,7 +9520,7 @@ function createPublicRouter(mailer, opts = {}) {
9520
9520
  logger.error?.({ err, sendId: id }, "mailery: open pixel update failed");
9521
9521
  }
9522
9522
  }));
9523
- router.get("/click/:sendId/:linkId{/:sig}", wrap(logger, async (req, res) => {
9523
+ router.get(["/click/:sendId/:linkId/:sig", "/click/:sendId/:linkId"], wrap(logger, async (req, res) => {
9524
9524
  const { sendId: sendIdStr, linkId, sig } = req.params;
9525
9525
  if (!mongodb.ObjectId.isValid(sendIdStr)) return res.status(400).end();
9526
9526
  const sendId = new mongodb.ObjectId(sendIdStr);
@@ -9971,7 +9971,7 @@ var DEDUPE_POLICIES = [
9971
9971
  ];
9972
9972
 
9973
9973
  // src/server/index.ts
9974
- var VERSION2 = "0.16.2" ;
9974
+ var VERSION2 = "0.16.4" ;
9975
9975
 
9976
9976
  exports.DEDUPE_POLICIES = DEDUPE_POLICIES;
9977
9977
  exports.DEFAULT_BOT_UA_RE = DEFAULT_BOT_UA_RE;