@automagik/omni 2.260930.4 → 2.261006.2

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
@@ -137462,7 +137462,7 @@ import { fileURLToPath } from "url";
137462
137462
  // package.json
137463
137463
  var package_default = {
137464
137464
  name: "@automagik/omni",
137465
- version: "2.260930.4",
137465
+ version: "2.261006.2",
137466
137466
  repository: {
137467
137467
  type: "git",
137468
137468
  url: "git+https://github.com/automagik-dev/omni.git",
@@ -266444,7 +266444,7 @@ var init_sentry_scrub = __esm(() => {
266444
266444
  var require_package7 = __commonJS((exports, module) => {
266445
266445
  module.exports = {
266446
266446
  name: "@omni/api",
266447
- version: "2.260930.4",
266447
+ version: "2.261006.2",
266448
266448
  private: true,
266449
266449
  type: "module",
266450
266450
  exports: {
@@ -524568,6 +524568,7 @@ var getNextPreKeysNode = async (state, count) => {
524568
524568
  };
524569
524569
 
524570
524570
  // ../../node_modules/.bun/baileys@vendor+baileys-v7.0.0-rc14.tgz+67d51256c13b2405/node_modules/baileys/lib/Utils/validate-connection.js
524571
+ var isMacDesktop = (config2) => config2.browser[0] === "Mac OS" && config2.browser[1] === "Desktop";
524571
524572
  var getUserAgent = (config2) => {
524572
524573
  return {
524573
524574
  appVersion: {
@@ -524575,7 +524576,7 @@ var getUserAgent = (config2) => {
524575
524576
  secondary: config2.version[1],
524576
524577
  tertiary: config2.version[2]
524577
524578
  },
524578
- platform: config2.browser[1].toLocaleLowerCase().includes("android") ? proto.ClientPayload.UserAgent.Platform.ANDROID : proto.ClientPayload.UserAgent.Platform.WEB,
524579
+ platform: config2.browser[1].toLocaleLowerCase().includes("android") ? proto.ClientPayload.UserAgent.Platform.ANDROID : isMacDesktop(config2) ? proto.ClientPayload.UserAgent.Platform.MACOS : proto.ClientPayload.UserAgent.Platform.WEB,
524579
524580
  releaseChannel: proto.ClientPayload.UserAgent.ReleaseChannel.RELEASE,
524580
524581
  osVersion: "0.1",
524581
524582
  device: "Desktop",
@@ -524588,11 +524589,13 @@ var getUserAgent = (config2) => {
524588
524589
  };
524589
524590
  var PLATFORM_MAP = {
524590
524591
  "Mac OS": proto.ClientPayload.WebInfo.WebSubPlatform.DARWIN,
524591
- Windows: proto.ClientPayload.WebInfo.WebSubPlatform.WIN32
524592
+ Windows: proto.ClientPayload.WebInfo.WebSubPlatform.WIN_HYBRID
524592
524593
  };
524593
524594
  var getWebInfo = (config2) => {
524594
524595
  let webSubPlatform = proto.ClientPayload.WebInfo.WebSubPlatform.WEB_BROWSER;
524595
- if (config2.syncFullHistory && PLATFORM_MAP[config2.browser[0]] && config2.browser[1] === "Desktop") {
524596
+ if (isMacDesktop(config2)) {
524597
+ webSubPlatform = proto.ClientPayload.WebInfo.WebSubPlatform.DARWIN;
524598
+ } else if (config2.syncFullHistory && PLATFORM_MAP[config2.browser[0]] && config2.browser[1] === "Desktop") {
524596
524599
  webSubPlatform = PLATFORM_MAP[config2.browser[0]];
524597
524600
  }
524598
524601
  return { webSubPlatform };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automagik/omni",
3
- "version": "2.260930.4",
3
+ "version": "2.261006.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/automagik-dev/omni.git",