agent-slack 0.8.0 → 0.8.5

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
@@ -4013,12 +4013,13 @@ async function resolveUserId(client, input) {
4013
4013
  if (!handle) {
4014
4014
  return null;
4015
4015
  }
4016
+ const handleLower = handle.toLowerCase();
4016
4017
  let cursor;
4017
4018
  for (;; ) {
4018
4019
  const resp = await client.api("users.list", { limit: 200, cursor });
4019
4020
  const members = asArray(resp.members).filter(isRecord);
4020
4021
  const found = members.find((m) => {
4021
- if (getString(m.name) === handle) {
4022
+ if (getString(m.name)?.toLowerCase() === handleLower) {
4022
4023
  return true;
4023
4024
  }
4024
4025
  if (looksLikeEmail) {
@@ -8430,6 +8431,16 @@ async function performUpdate(latest) {
8430
8431
  if (actual !== expected) {
8431
8432
  return { success: false, message: `Checksum mismatch: expected ${expected}, got ${actual}` };
8432
8433
  }
8434
+ if (process.platform === "darwin") {
8435
+ try {
8436
+ execSync2(`codesign --remove-signature ${JSON.stringify(binTmp)}`, {
8437
+ stdio: "ignore"
8438
+ });
8439
+ execSync2(`codesign --sign - ${JSON.stringify(binTmp)}`, {
8440
+ stdio: "ignore"
8441
+ });
8442
+ } catch {}
8443
+ }
8433
8444
  const currentBin = process.execPath;
8434
8445
  const backupPath = `${currentBin}.bak`;
8435
8446
  await rename(currentBin, backupPath);
@@ -9145,5 +9156,5 @@ if (subcommand && subcommand !== "update") {
9145
9156
  backgroundUpdateCheck();
9146
9157
  }
9147
9158
 
9148
- //# debugId=4F295E0EDEFC23F164756E2164756E21
9159
+ //# debugId=DD5B850D326A863A64756E2164756E21
9149
9160
  //# sourceMappingURL=index.js.map