whatsauto.js
Version:
Easy WhatsApp Automation with Session
16 lines (15 loc) • 578 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setCredentialsDir = void 0;
const Defaults_1 = require("../Defaults");
const Error_1 = require("../Error");
const setCredentialsDir = (dirname) => {
if (typeof dirname !== "string") {
throw new Error_1.ValidationError("Parameter dirname must be a string!");
}
else if (dirname === "") {
throw new Error_1.ValidationError("Parameter dirname must not be empty!");
}
Defaults_1.CREDENTIALS.DIR_NAME = dirname;
};
exports.setCredentialsDir = setCredentialsDir;