closer-cli 1.0.0 → 2.6.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/CHANGELOG.md ADDED
@@ -0,0 +1,46 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [2.6.0](https://code.hfarm.dev/closer/closer/compare/v2.5.1...v2.6.0) (2022-04-19)
7
+
8
+
9
+ ### Features
10
+
11
+ * **#PJX-415:** [Server] Import configuration ([a3fa87e](https://code.hfarm.dev/closer/closer/commits/a3fa87ea22c0a0d850afa025a0a04937bbd3b4dd)), closes [#PJX-415](https://code.hfarm.dev/closer/closer/issues/PJX-415)
12
+
13
+
14
+
15
+
16
+
17
+ # [2.5.0](https://code.hfarm.dev/closer/closer/compare/v2.4.0...v2.5.0) (2022-04-13)
18
+
19
+
20
+ ### Features
21
+
22
+ * **#PJX-388:** Aggiungere alla chat dell'ordine i cambi di stato ([544219c](https://code.hfarm.dev/closer/closer/commits/544219c76e9230db4541366ffc47dabb4c11fb42)), closes [#PJX-388](https://code.hfarm.dev/closer/closer/issues/PJX-388)
23
+
24
+
25
+
26
+
27
+
28
+ # [2.4.0](https://code.hfarm.dev/closer/closer/compare/v2.4.0-beta.1...v2.4.0) (2022-04-11)
29
+
30
+ **Note:** Version bump only for package closer-cli
31
+
32
+
33
+
34
+
35
+
36
+ # [2.3.0](https://code.hfarm.dev/closer/closer/compare/v2.3.0-beta.0...v2.3.0) (2022-04-06)
37
+
38
+ **Note:** Version bump only for package closer-cli
39
+
40
+
41
+
42
+
43
+
44
+ # [2.2.0](https://code.hfarm.dev/closer/closer/compare/v2.2.0-beta.1...v2.2.0) (2022-04-06)
45
+
46
+ **Note:** Version bump only for package closer-cli
package/helpers.js CHANGED
@@ -13,7 +13,7 @@ const { createWriteStream } = require('fs')
13
13
  const slugify = require('slugify')
14
14
 
15
15
  exports.createSocketConnection = (endpoint, adminSecret) => {
16
- const protocol = endpoint.includes('localhost') ? 'ws' : 'wss'
16
+ const protocol = endpoint.includes('localhost') || endpoint.includes('127.0.0.1') ? 'ws' : 'wss'
17
17
  const socket = new WebSocket(`${protocol}://${endpoint}/import`, {
18
18
  headers: { 'x-closer-admin-secret': adminSecret }
19
19
  })
@@ -32,6 +32,7 @@ exports.ALLOWED_CSV_FILES = {
32
32
  filterPosition: 'filterPosition.csv',
33
33
  fieldConfiguration: 'fieldConfigurations.csv',
34
34
  stockAvailability: 'stockAvailability.csv',
35
+ configuration: 'configurations.csv',
35
36
  userCustomer: 'userCustomers.csv'
36
37
  }
37
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "closer-cli",
3
- "version": "1.0.0",
3
+ "version": "2.6.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {