fix(all): Automated build errors.

This commit is contained in:
Rodrigo Rodriguez 2022-07-01 18:33:41 -03:00
parent ce2b484f8e
commit 55ff686a3f
9 changed files with 580 additions and 33791 deletions

34347
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -25,7 +25,6 @@
"type": "git", "type": "git",
"url": "https://github.com/GeneralBots/BotServer.git" "url": "https://github.com/GeneralBots/BotServer.git"
}, },
"scripts": { "scripts": {
"clean": "shx rm -rf node_modules/ dist/ docs/reference", "clean": "shx rm -rf node_modules/ dist/ docs/reference",
"tslint": "tslint --fix ./src/*.ts ./packages/**/*.ts -t verbose -e ./packages/default.gbui/**/* -e ./packages/**/*.gbdialog/**/*", "tslint": "tslint --fix ./src/*.ts ./packages/**/*.ts -t verbose -e ./packages/default.gbui/**/* -e ./packages/**/*.gbdialog/**/*",
@ -155,7 +154,6 @@
"travis-deploy-once": "5.0.11", "travis-deploy-once": "5.0.11",
"ts-node": "10.0.0", "ts-node": "10.0.0",
"tslint": "6.1.2", "tslint": "6.1.2",
"tslint-microsoft-contrib": "6.2.0",
"typedoc": "^0.22.17" "typedoc": "^0.22.17"
}, },
"eslintConfig": { "eslintConfig": {

View file

@ -67,6 +67,6 @@ export class GBBasicPackage implements IGBPackage {
GBLog.verbose(`onExchangeData called.`); GBLog.verbose(`onExchangeData called.`);
} }
public async loadBot(min: GBMinInstance): Promise<void> { public async loadBot(min: GBMinInstance): Promise<void> {
} }
} }

View file

@ -1,6 +1,6 @@
export const Messages = { export const Messages = {
'en-US': { 'en-US': {
about_suggestions: 'Suggestions are welcomed and improve my quality...', about_suggestions: 'Suggestions are welcomed and improve my quality...',
what_about_service: 'What about my service?', what_about_service: 'What about my service?',
glad_you_liked: 'I\'m glad you liked. I\'m here for you.', glad_you_liked: 'I\'m glad you liked. I\'m here for you.',

View file

@ -1,8 +1,8 @@
export const Messages = { export const Messages = {
'en-US': { 'en-US': {
}, },
'pt-BR': { 'pt-BR': {
} }
}; };

View file

@ -11,7 +11,7 @@ export const Messages = {
lets_search: query => lets_search: query =>
`Lets search for ${query}... What do you want to know?`, `Lets search for ${query}... What do you want to know?`,
see_faq: 'Please take a look at the FAQ I\'ve prepared for you. You can click on them to get the answer.', see_faq: 'Please take a look at the FAQ I\'ve prepared for you. You can click on them to get the answer.',
ask_first_time: 'What are you looking for?' ask_first_time: 'What are you looking for?'
}, },
'pt-BR': { 'pt-BR': {
@ -27,7 +27,7 @@ export const Messages = {
`Let's search about ${query}... What do you want to know?`, `Let's search about ${query}... What do you want to know?`,
see_faq: see_faq:
'Veja algumas perguntas mais frequentes logo na tela. Clique numa delas para eu responder.', 'Veja algumas perguntas mais frequentes logo na tela. Clique numa delas para eu responder.',
ask_first_time: 'Como eu posso ajudar?' ask_first_time: 'Como eu posso ajudar?'
} }
}; };

View file

@ -51,7 +51,7 @@ export class GBSecurityPackage implements IGBPackage {
public sysPackages: IGBPackage[]; public sysPackages: IGBPackage[];
public async getDialogs(min: GBMinInstance) { public async getDialogs(min: GBMinInstance) {
let out = [ const out = [
ProfileDialog.getNameDialog(min), ProfileDialog.getNameDialog(min),
ProfileDialog.getEmailDialog(min), ProfileDialog.getEmailDialog(min),
ProfileDialog.getMobileDialog(min), ProfileDialog.getMobileDialog(min),

View file

@ -1,8 +1,8 @@
export const Messages = { export const Messages = {
'en-US': { 'en-US': {
}, },
'pt-BR': { 'pt-BR': {
} }
}; };

View file

@ -209,14 +209,14 @@ export class GBServer {
})(); })();
}; };
if (process.env.CERTIFICATE_PFX) { if (process.env.CERTIFICATE_PFX) {
var options = { let options = {
passphrase: process.env.CERTIFICATE_PASSPHRASE, passphrase: process.env.CERTIFICATE_PASSPHRASE,
pfx: fs.readFileSync(process.env.CERTIFICATE_PFX) pfx: fs.readFileSync(process.env.CERTIFICATE_PFX)
}; };
const httpsServer = https.createServer(options, server).listen(port, mainCallback); const httpsServer = https.createServer(options, server).listen(port, mainCallback);
if (process.env.CERTIFICATE2_PFX) { if (process.env.CERTIFICATE2_PFX) {
var options = { let options = {
passphrase: process.env.CERTIFICATE2_PASSPHRASE, passphrase: process.env.CERTIFICATE2_PASSPHRASE,
pfx: fs.readFileSync(process.env.CERTIFICATE2_PFX) pfx: fs.readFileSync(process.env.CERTIFICATE2_PFX)
}; };