@cocreate/file 1.3.5 → 1.3.7
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 +14 -0
- package/package.json +5 -5
- package/src/server.js +14 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.3.7](https://github.com/CoCreate-app/CoCreate-file/compare/v1.3.6...v1.3.7) (2023-06-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([447b895](https://github.com/CoCreate-app/CoCreate-file/commit/447b895d02076af348db486d4a46efc882a0ebc8))
|
|
7
|
+
|
|
8
|
+
## [1.3.6](https://github.com/CoCreate-app/CoCreate-file/compare/v1.3.5...v1.3.6) (2023-06-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* choices data structure ([e07322c](https://github.com/CoCreate-app/CoCreate-file/commit/e07322c74a0dd528226b349ad97d09f93c5893f0))
|
|
14
|
+
|
|
1
15
|
## [1.3.5](https://github.com/CoCreate-app/CoCreate-file/compare/v1.3.4...v1.3.5) (2023-06-14)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/file",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "A headless file uploader that uses HTML5 attributes for customization. Allows easy upload of files to server.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"file",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"webpack-log": "^3.0.1"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@cocreate/actions": "^1.8.
|
|
63
|
-
"@cocreate/config": "^1.0.
|
|
64
|
-
"@cocreate/render": "^1.24.
|
|
65
|
-
"@cocreate/utils": "^1.21.
|
|
62
|
+
"@cocreate/actions": "^1.8.32",
|
|
63
|
+
"@cocreate/config": "^1.0.4",
|
|
64
|
+
"@cocreate/render": "^1.24.32",
|
|
65
|
+
"@cocreate/utils": "^1.21.16"
|
|
66
66
|
}
|
|
67
67
|
}
|
package/src/server.js
CHANGED
|
@@ -88,33 +88,32 @@ module.exports = async function file(CoCreateConfig) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
let { directories, sources } = CoCreateConfig;
|
|
91
|
-
let config = await Config(
|
|
92
|
-
{
|
|
93
|
-
key: 'organization_id',
|
|
91
|
+
let config = await Config({
|
|
92
|
+
organization_id: {
|
|
94
93
|
prompt: 'Enter your organization_id: '
|
|
95
|
-
},
|
|
96
|
-
|
|
94
|
+
},
|
|
95
|
+
host: {
|
|
97
96
|
prompt: 'Enter the host: '
|
|
98
|
-
},
|
|
97
|
+
},
|
|
98
|
+
prompt: {
|
|
99
99
|
prompt: 'Choose an authentication option: \n1.key\n2.Sign In\n',
|
|
100
100
|
choices: {
|
|
101
101
|
'1': {
|
|
102
|
-
key:
|
|
103
|
-
|
|
102
|
+
key: {
|
|
103
|
+
prompt: 'Enter your key: '
|
|
104
|
+
}
|
|
104
105
|
},
|
|
105
|
-
'2':
|
|
106
|
-
{
|
|
107
|
-
key: 'email',
|
|
106
|
+
'2': {
|
|
107
|
+
email: {
|
|
108
108
|
prompt: 'Enter your email: '
|
|
109
109
|
},
|
|
110
|
-
{
|
|
111
|
-
key: 'password',
|
|
110
|
+
password: {
|
|
112
111
|
prompt: 'Enter your password: '
|
|
113
112
|
}
|
|
114
|
-
|
|
113
|
+
}
|
|
115
114
|
}
|
|
116
115
|
}
|
|
117
|
-
|
|
116
|
+
})
|
|
118
117
|
|
|
119
118
|
if (!config.organization_id || !config.host || !config.key && (!config.password || config.email)) {
|
|
120
119
|
console.log('One or more required config params could not be found')
|