@wppconnect/server 1.1.20 → 1.1.21

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.1.21 (2022-02-24)
2
+
3
+
4
+
1
5
  ## 1.1.20 (2022-01-23)
2
6
 
3
7
 
package/Dockerfile ADDED
@@ -0,0 +1,25 @@
1
+ FROM node:14-alpine as base
2
+ WORKDIR /usr/src/wpp-server
3
+ ENV NODE_ENV=production PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
4
+ COPY package.json yarn.lock ./
5
+ RUN yarn install --production --pure-lockfile && \
6
+ yarn cache clean
7
+
8
+ FROM base as build
9
+ WORKDIR /usr/src/wpp-server
10
+ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
11
+ COPY package.json yarn.lock ./
12
+ RUN yarn install --production=false --pure-lockfile && \
13
+ yarn cache clean
14
+ COPY . .
15
+ RUN yarn build
16
+
17
+
18
+ FROM base
19
+ WORKDIR /usr/src/wpp-server/
20
+ RUN apk add --no-cache chromium
21
+ RUN yarn cache clean
22
+ COPY . .
23
+ COPY --from=build /usr/src/wpp-server/ /usr/src/wpp-server/
24
+ EXPOSE 21465
25
+ ENTRYPOINT ["node", "dist/server.js"]
@@ -0,0 +1,14 @@
1
+ version: "3.4"
2
+
3
+ volumes:
4
+ wppconnect_tokens: {}
5
+
6
+ services:
7
+ wppconnect:
8
+ build:
9
+ context: .
10
+ volumes:
11
+ - ./config.json:/usr/src/wpp-server/config.json
12
+ - wppconnect_tokens:/usr/src/wpp-server/tokens
13
+ ports:
14
+ - "21465:21465"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/server",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "Projeto feito para autenticar a automomacao do WhatsappWeb com multi-clientes de forma dinamica. Backend feito em Nodejs(express, socketio), FrontEnd (ReactJS)",
5
5
  "main": "dist/index.js",
6
6
  "author": "kingaspx",
@@ -29,11 +29,11 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@wppconnect-team/wppconnect": "^1.12.4",
33
- "axios": "^0.25.0",
32
+ "@wppconnect-team/wppconnect": "^1.12.6",
33
+ "axios": "^0.26.0",
34
34
  "bcrypt": "^5.0.1",
35
35
  "cors": "^2.8.5",
36
- "dotenv": "^14.1.0",
36
+ "dotenv": "^16.0.0",
37
37
  "express": "^4.17.1",
38
38
  "form-data": "^4.0.0",
39
39
  "express-query-boolean": "^2.0.0",