closer-cli 2.33.0 → 2.36.1
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 +38 -0
- package/cmds/importData.js +5 -0
- package/cmds/importData_cmds/multiple.js +2 -2
- package/cmds/importData_cmds/single.js +2 -2
- package/cmds/importMedia.js +1 -1
- package/helpers.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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.36.1](https://code.hfarm.dev/closer/closer/compare/v2.36.0...v2.36.1) (2022-11-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **PJX-619:** Import: link csv file inviati via mail non corrispondono ([af27d64](https://code.hfarm.dev/closer/closer/commits/af27d64b49145014d46afce1786ba72a3c78ebe3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [2.36.0](https://code.hfarm.dev/closer/closer/compare/v2.35.0...v2.36.0) (2022-11-09)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **PJX-560:** AdminJS R&D ([dbfa216](https://code.hfarm.dev/closer/closer/commits/dbfa2165f4d05475c32b4e750bee205d77180643))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [2.35.0](https://code.hfarm.dev/closer/closer/compare/v2.34.0...v2.35.0) (2022-11-04)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package closer-cli
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [2.34.0](https://code.hfarm.dev/closer/closer/compare/v2.33.2...v2.34.0) (2022-11-04)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package closer-cli
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
# [2.33.0](https://code.hfarm.dev/closer/closer/compare/v2.32.3...v2.33.0) (2022-10-27)
|
|
7
45
|
|
|
8
46
|
|
package/cmds/importData.js
CHANGED
|
@@ -35,6 +35,11 @@ exports.builder = yargs => {
|
|
|
35
35
|
type: 'string',
|
|
36
36
|
default: ';'
|
|
37
37
|
})
|
|
38
|
+
.option('importProcessStart', {
|
|
39
|
+
describe: 'Only for server import purpose',
|
|
40
|
+
type: 'string',
|
|
41
|
+
default: new Date().toISOString()
|
|
42
|
+
})
|
|
38
43
|
.implies('non-interactive', ['type', 'mode'])
|
|
39
44
|
}
|
|
40
45
|
|
|
@@ -61,7 +61,7 @@ exports.handler = async argv => {
|
|
|
61
61
|
|
|
62
62
|
const hrstart = process.hrtime()
|
|
63
63
|
const importProcess = {
|
|
64
|
-
importProcessStart: new Date(),
|
|
64
|
+
importProcessStart: new Date(argv.importProcessStart),
|
|
65
65
|
importProcessEnd: null,
|
|
66
66
|
time: null,
|
|
67
67
|
endpoint: argv.endpoint,
|
|
@@ -164,7 +164,7 @@ exports.handler = async argv => {
|
|
|
164
164
|
|
|
165
165
|
const ws = {
|
|
166
166
|
endpoint: argv.endpoint,
|
|
167
|
-
adminSecret: argv['
|
|
167
|
+
adminSecret: argv['closer-secret']
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
let parsedFiles = [...files]
|
|
@@ -58,7 +58,7 @@ exports.handler = async argv => {
|
|
|
58
58
|
const hrstart = process.hrtime()
|
|
59
59
|
|
|
60
60
|
const importProcess = {
|
|
61
|
-
importProcessStart: new Date(),
|
|
61
|
+
importProcessStart: new Date(argv.importProcessStart),
|
|
62
62
|
importProcessEnd: null,
|
|
63
63
|
time: null,
|
|
64
64
|
endpoint: argv.endpoint,
|
|
@@ -70,7 +70,7 @@ exports.handler = async argv => {
|
|
|
70
70
|
|
|
71
71
|
const ws = {
|
|
72
72
|
endpoint: argv.endpoint,
|
|
73
|
-
adminSecret: argv['
|
|
73
|
+
adminSecret: argv['closer-secret']
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
const interactive = !argv.nonInteractive
|
package/cmds/importMedia.js
CHANGED
package/helpers.js
CHANGED
|
@@ -15,7 +15,7 @@ const slugify = require('slugify')
|
|
|
15
15
|
exports.createSocketConnection = (endpoint, adminSecret) => {
|
|
16
16
|
const protocol = endpoint.includes('localhost') || endpoint.includes('127.0.0.1') ? 'ws' : 'wss'
|
|
17
17
|
const socket = new WebSocket(`${protocol}://${endpoint}/import`, {
|
|
18
|
-
headers: { 'x-closer-
|
|
18
|
+
headers: { 'x-closer-secret': adminSecret }
|
|
19
19
|
})
|
|
20
20
|
|
|
21
21
|
return socket
|
package/index.js
CHANGED