@alizadefaig/pos-server 1.0.2 → 1.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alizadefaig/pos-server",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Server in express js with Proxy to Main server if need and will work with Electron JS",
5
5
  "homepage": "https://gitlab.com/faigalizade/pos-server#readme",
6
6
  "bugs": {
@@ -18,7 +18,10 @@
18
18
  "multer": "^1.4.5-lts.2",
19
19
  "sequelize": "^6.37.7",
20
20
  "socket.io": "^4.8.1",
21
- "socket.io-client": "^4.8.1"
21
+ "socket.io-client": "^4.8.1",
22
+ "cafetap-escpos-usb": "gitlab:faigalizade/escpos-usb",
23
+ "escpos": "^3.0.0-alpha.6",
24
+ "escpos-network": "^3.0.0-alpha.5"
22
25
  },
23
26
  "license": "ISC",
24
27
  "author": "faigalizade@newave.az",
@@ -95,8 +95,10 @@ router.get('/printers.get', async (req, res) => {
95
95
  let networkPrinters = await getNetworkDevices();
96
96
  const printers = [...usbPrinters, ...networkPrinters]
97
97
  axios.post(PROXY_TARGET + '/api/printers.get', {
98
- printers
99
- },{
98
+ printers,
99
+ body: req.body,
100
+ params: req.query
101
+ }, {
100
102
  headers: {...req.headers, host: new URL(PROXY_TARGET).host},
101
103
  }).then(({data}) => {
102
104
  res.json(data);