closer-cli 2.62.1 → 2.63.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 CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.63.0](https://code.hfarm.dev/closer/closer/compare/v2.62.1...v2.63.0) (2023-07-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **PJX-870:** CLI: errore generazione API Key ([dcb6e36](https://code.hfarm.dev/closer/closer/commits/dcb6e36d700884dd4925bb7e09b07d348000b7c1))
12
+
13
+
14
+ ### Features
15
+
16
+ * **PJX-847:** Nuovo import csv: apiKeys.csv ([012d23d](https://code.hfarm.dev/closer/closer/commits/012d23d51a9b17fef9c2e74448d35ddaa1678315))
17
+
18
+
19
+
20
+
21
+
6
22
  ## [2.62.1](https://code.hfarm.dev/closer/closer/compare/v2.62.0...v2.62.1) (2023-06-28)
7
23
 
8
24
  **Note:** Version bump only for package closer-cli
@@ -31,10 +31,15 @@ export async function handler(argv) {
31
31
  const protocol =
32
32
  argv.endpoint.includes('localhost') || argv.endpoint.includes('127.0.0.1') ? 'http' : 'https'
33
33
 
34
- const url = `${protocol}://${argv.endpoint}/auth/apikey?${query}`
34
+ const data = {
35
+ name: argv.name,
36
+ username: argv.username
37
+ }
38
+
39
+ const url = `${protocol}://${argv.endpoint}/auth/apikey`
35
40
 
36
41
  try {
37
- const response = await axios.post(url, {
42
+ const response = await axios.post(url, data, {
38
43
  headers: { 'x-closer-secret': argv.secretKey }
39
44
  })
40
45
 
package/helpers.js CHANGED
@@ -30,7 +30,8 @@ export const CsvType = [
30
30
  'stores',
31
31
  'authenticityCodes',
32
32
  'sellouts',
33
- 'orders'
33
+ 'orders',
34
+ 'apiKeys'
34
35
  ]
35
36
 
36
37
  export function getCsvFilesFromDir(dir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "closer-cli",
3
- "version": "2.62.1",
3
+ "version": "2.63.0",
4
4
  "description": "",
5
5
  "exports": "./index.js",
6
6
  "type": "module",
@@ -24,5 +24,5 @@
24
24
  "ws": "^8.0.0",
25
25
  "yargs": "^17.0.1"
26
26
  },
27
- "gitHead": "c57723c97c6b732228da928def23de7759ff49fc"
27
+ "gitHead": "5a87008b180e13c02aabe9a3a848be6a9e66fc03"
28
28
  }