@auxcode/auxta 1.3.27 → 1.3.28

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.
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.EmailHelper = void 0;
16
16
  const log_service_1 = __importDefault(require("../../auxta/services/log.service"));
17
17
  const AuxGoogleAuth_1 = require("./AuxGoogleAuth");
18
- const buffer_1 = require("buffer");
18
+ const base64 = require('js-base64');
19
19
  const AuxTA_1 = require("../../AuxTA");
20
20
  const MailComposer = require('nodemailer/lib/mail-composer');
21
21
  class EmailHelper {
@@ -131,7 +131,7 @@ class EmailHelper {
131
131
  try {
132
132
  const body = gmailResponse.data.payload.parts[0].body.data;
133
133
  if (body) {
134
- return (0, buffer_1.atob)(body);
134
+ return base64.decode(body);
135
135
  }
136
136
  else {
137
137
  return '';
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import log from "../../auxta/services/log.service";
11
11
  import { AuxGoogleAuth } from "./AuxGoogleAuth";
12
- import { atob } from "buffer";
12
+ const base64 = require('js-base64');
13
13
  import { StepStatus } from "../../AuxTA";
14
14
  const MailComposer = require('nodemailer/lib/mail-composer');
15
15
  export class EmailHelper {
@@ -125,7 +125,7 @@ export class EmailHelper {
125
125
  try {
126
126
  const body = gmailResponse.data.payload.parts[0].body.data;
127
127
  if (body) {
128
- return atob(body);
128
+ return base64.decode(body);
129
129
  }
130
130
  else {
131
131
  return '';