@cocreate/file 1.2.0 → 1.2.2
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 +3 -2
- package/src/server.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.2.2](https://github.com/CoCreate-app/CoCreate-file/compare/v1.2.1...v1.2.2) (2023-06-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* test workflow ([839a093](https://github.com/CoCreate-app/CoCreate-file/commit/839a09329719f78e63d42bfa443982f35c8e5fde))
|
|
7
|
+
|
|
8
|
+
## [1.2.1](https://github.com/CoCreate-app/CoCreate-file/compare/v1.2.0...v1.2.1) (2023-06-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Refactor authentication & update config file output format ([27da6f0](https://github.com/CoCreate-app/CoCreate-file/commit/27da6f06c832bb3e153074a96a42017f0f0a3c30))
|
|
14
|
+
|
|
1
15
|
# [1.2.0](https://github.com/CoCreate-app/CoCreate-file/compare/v1.1.0...v1.2.0) (2023-06-09)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/file",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
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",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"build": "NODE_ENV=production npx webpack --config webpack.config.js",
|
|
30
30
|
"dev": "npx webpack --config webpack.config.js --watch",
|
|
31
31
|
"docs": "node ./node_modules/@cocreate/docs/src/index.js",
|
|
32
|
-
"
|
|
32
|
+
"postinstal": "node ./node_modules/@cocreate/cli/check-coc.js"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@cocreate/actions": "^1.8.18",
|
|
65
65
|
"@cocreate/docs": "^1.8.2",
|
|
66
|
+
"@cocreate/render": "^1.24.18",
|
|
66
67
|
"@cocreate/utils": "^1.21.3"
|
|
67
68
|
}
|
|
68
69
|
}
|
package/src/server.js
CHANGED
|
@@ -24,7 +24,7 @@ module.exports = async function file(CoCreateConfig) {
|
|
|
24
24
|
key: 'host',
|
|
25
25
|
prompt: 'Enter the host: '
|
|
26
26
|
}, {
|
|
27
|
-
|
|
27
|
+
prompt: 'Choose an authentication option: \n1.key\n2.Sign In\n',
|
|
28
28
|
choices: {
|
|
29
29
|
'1': {
|
|
30
30
|
key: 'key',
|
|
@@ -336,9 +336,9 @@ module.exports = async function file(CoCreateConfig) {
|
|
|
336
336
|
|
|
337
337
|
newConfig.sources = sources
|
|
338
338
|
|
|
339
|
-
delete newConfig.
|
|
340
|
-
delete newConfig.
|
|
341
|
-
const write_str = `module.exports = ${JSON.stringify(
|
|
339
|
+
delete newConfig.url
|
|
340
|
+
delete newConfig.broadcast
|
|
341
|
+
const write_str = `module.exports = ${JSON.stringify(newConfig, null, 4)};`;
|
|
342
342
|
|
|
343
343
|
fs.writeFileSync(configFile, write_str);
|
|
344
344
|
}
|