closer-cli 2.51.0 → 2.53.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,25 @@
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.53.0](https://code.hfarm.dev/closer/closer/compare/v2.52.0...v2.53.0) (2023-03-15)
7
+
8
+ **Note:** Version bump only for package closer-cli
9
+
10
+
11
+
12
+
13
+
14
+ # [2.52.0](https://code.hfarm.dev/closer/closer/compare/v2.51.0...v2.52.0) (2023-03-14)
15
+
16
+
17
+ ### Features
18
+
19
+ * **PJX-724:** Aggiungere auth ai link interni di import ed export ([b3e03f7](https://code.hfarm.dev/closer/closer/commits/b3e03f7dd3ef874ad6be3327fa7f4b361d132798))
20
+
21
+
22
+
23
+
24
+
6
25
  # [2.51.0](https://code.hfarm.dev/closer/closer/compare/v2.50.1...v2.51.0) (2023-03-10)
7
26
 
8
27
  **Note:** Version bump only for package closer-cli
@@ -183,7 +183,7 @@ export async function handler(argv) {
183
183
  fs.mkdirSync(dirPath, { recursive: true })
184
184
  }
185
185
  for (const item of files) {
186
- const filePath = await download(item.url, dirPath, `${argv.name}_${item.csvType}.csv`)
186
+ const filePath = await download(item.url, dirPath, `${item.csvType}.csv`)
187
187
  parsedFiles.push({ file: filePath, csvType: item.csvType })
188
188
  }
189
189
  spinner.succeed('Google sheets downloaded')
package/helpers.js CHANGED
@@ -78,53 +78,3 @@ export function getHumanTimestamp(date) {
78
78
  const timeString = isoTimeString.split(':').join('').split('.')[0]
79
79
  return `${dateString}_${timeString}`.split(':').join('')
80
80
  }
81
-
82
- // export function createSocketConnection(endpoint, secret) {
83
- // const protocol = endpoint.includes('localhost') || endpoint.includes('127.0.0.1') ? 'ws' : 'wss'
84
- // const url = `${protocol}://${endpoint}/import`
85
- // const socket = new WebSocket(url, {
86
- // headers: { 'x-closer-secret': secret }
87
- // })
88
-
89
- // return socket
90
- // }
91
-
92
- // export function colorByResult(value, countImported, countFailed, countSkipped) {
93
- // let color = 'green'
94
-
95
- // if (countImported > 0 && (countFailed > 0 || countSkipped > 0)) {
96
- // color = 'yellow'
97
- // }
98
-
99
- // if (countImported === 0 && (countFailed > 0 || countSkipped > 0)) {
100
- // color = 'red'
101
- // }
102
-
103
- // return chalk[color](value)
104
- // }
105
-
106
- // export function colorGreaterThanZero(value, color) {
107
- // if (value > 0) {
108
- // return chalk[color](value)
109
- // }
110
-
111
- // return value
112
- // }
113
-
114
- // eslint-disable-next-line consistent-return
115
- // export function printRefreshedOrders({ refreshed, errored, executionTime }) {
116
- // let message = ''
117
-
118
- // const stringRefreshed = colorGreaterThanZero(refreshed.length, 'green')
119
- // const stringErrored = colorGreaterThanZero(errored.length, 'red')
120
-
121
- // message += `Refreshed ${stringRefreshed} orders (draft, template)`
122
-
123
- // if (errored.length) {
124
- // message += `, refresh failed for ${stringErrored} orders.`
125
- // }
126
-
127
- // message += ` ${chalk.gray(`[${executionTime}s]`)}`
128
-
129
- // return message
130
- // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "closer-cli",
3
- "version": "2.51.0",
3
+ "version": "2.53.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": "3204e6d8f73a07a12f9d41bb3a280898b185e8a5"
27
+ "gitHead": "72c5573c0a5b622add9de3e44334f1a680571a05"
28
28
  }