@builderbot/provider-venom 1.0.27-alpha.0 → 1.0.28-alpha.0

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.cjs CHANGED
@@ -11162,7 +11162,7 @@ class VenomProvider extends bot.ProviderClass {
11162
11162
  const fileName = this.generateFileName(extension);
11163
11163
  const pathFile = require$$1.join(options?.path ?? os.tmpdir(), fileName);
11164
11164
  await promises.writeFile(pathFile, buffer);
11165
- return pathFile;
11165
+ return require$$1.resolve(pathFile);
11166
11166
  }
11167
11167
  catch (err) {
11168
11168
  console.log(`[Error]:`, err.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builderbot/provider-venom",
3
- "version": "1.0.27-alpha.0",
3
+ "version": "1.0.28-alpha.0",
4
4
  "description": "Now I’m the model of a modern major general / The venerated Virginian veteran whose men are all / Lining up, to put me up on a pedestal / Writin’ letters to relatives / Embellishin’ my elegance and eloquence / But the elephant is in the room / The truth is in ya face when ya hear the British cannons go / BOOM",
5
5
  "keywords": [],
6
6
  "author": "Leifer Mendez <leifer33@gmail.com>",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "homepage": "https://github.com/codigoencasa/bot-whatsapp#readme",
33
33
  "devDependencies": {
34
- "@builderbot/bot": "^1.0.27-alpha.0",
34
+ "@builderbot/bot": "^1.0.28-alpha.0",
35
35
  "@rollup/plugin-commonjs": "^25.0.7",
36
36
  "@rollup/plugin-json": "^6.1.0",
37
37
  "@rollup/plugin-node-resolve": "^15.2.3",
@@ -59,5 +59,5 @@
59
59
  "spinnies": "^0.5.1",
60
60
  "venom-bot": "^5.0.21"
61
61
  },
62
- "gitHead": "cbccaedf2373715cb59cf79b7cce71ba47db543a"
62
+ "gitHead": "6e01de0b346e318f61f9a2e4d16f2f1c2d9c64de"
63
63
  }
package/dist/server.d.ts DELETED
@@ -1,39 +0,0 @@
1
- /// <reference types="node" />
2
- import EventEmitter from 'node:events';
3
- import type { Polka } from 'polka';
4
- import type polka from 'polka';
5
-
6
- import type { VenomProvider } from '.';
7
- import type { BotCtxMiddleware } from './types';
8
- export declare class VenomHttpServer extends EventEmitter {
9
- #private;
10
- server: Polka;
11
- port: number;
12
- constructor(botName: string, _port: number);
13
- /**
14
- * Contruir HTTP Server
15
- */
16
- protected buildHTTPServer(): Polka;
17
- /**
18
- * Iniciar el servidor HTTP
19
- */
20
- start(vendor: BotCtxMiddleware, port?: number, args?: {
21
- botName: string;
22
- }): void;
23
- /**
24
- *
25
- * @param _
26
- * @param res
27
- */
28
- protected indexHome: polka.Middleware;
29
- stop(): Promise<void>;
30
- }
31
- /**
32
- *
33
- * @param inHandleCtx
34
- * @returns
35
- */
36
- export declare const inHandleCtx: <T extends Pick<VenomProvider, "sendMessage" | "vendor"> & {
37
- provider: VenomProvider;
38
- }>(ctxPolka: (bot: T, req: any, res: any) => Promise<void>) => (req: any, res: any) => any;
39
- //# sourceMappingURL=server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AAEA,OAAO,YAAY,MAAM,aAAa,CAAA;AAGtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,qBAAa,eAAgB,SAAQ,YAAY;;IACtC,MAAM,EAAE,KAAK,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;gBAGP,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAO1C;;OAEG;IACH,SAAS,CAAC,eAAe,IAAI,KAAK;IAQlC;;OAEG;IAEH,KAAK,CAAC,MAAM,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;IAczE;;;;OAIG;IACH,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,UAAU,CAMpC;IAED,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAWxB;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW;cACmD,aAAa;2BAC5C,GAAG,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,WAEjE,GAAG,OAAO,GAAG,QAoBlB,CAAA"}