@cocreate/file 1.2.0 → 1.2.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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.2.1](https://github.com/CoCreate-app/CoCreate-file/compare/v1.2.0...v1.2.1) (2023-06-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Refactor authentication & update config file output format ([27da6f0](https://github.com/CoCreate-app/CoCreate-file/commit/27da6f06c832bb3e153074a96a42017f0f0a3c30))
7
+
1
8
  # [1.2.0](https://github.com/CoCreate-app/CoCreate-file/compare/v1.1.0...v1.2.0) (2023-06-09)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/file",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
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
- "postinstall": "node ./node_modules/@cocreate/cli/check-coc.js"
32
+ "postinstal": "node ./node_modules/@cocreate/cli/check-coc.js"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",
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
- propmt: 'Choose an authentication option: \n1.key\n2.Sign In\n',
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.config.url
340
- delete newConfig.config.broadcast
341
- const write_str = `module.exports = ${JSON.stringify(globalConfig, null, 4)};`;
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
  }