comty.js 0.66.0 → 0.66.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.
@@ -17,7 +17,7 @@ var _session = require('../session'); var _session2 = _interopRequireDefault(_se
17
17
  )
18
18
  }
19
19
 
20
- await new Promise((resolve, reject) => {
20
+ const result = await new Promise((resolve, reject) => {
21
21
  const uploadInstance = new (0, _FileUploadBrowser2.default)({
22
22
  endpoint: Files.chunkUploadEndpoint,
23
23
  splitChunkSize: 5 * 1024 * 1024,
@@ -49,10 +49,14 @@ var _session = require('../session'); var _session2 = _interopRequireDefault(_se
49
49
 
50
50
  uploadInstance.start()
51
51
  })
52
+
53
+ return result
52
54
  } catch (error) {
53
55
  if (typeof onError === "function") {
54
56
  onError(file, error)
55
57
  }
58
+
59
+ return null
56
60
  }
57
61
  }}
58
62
  } Files.__initStatic(); exports.default = Files;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comty.js",
3
- "version": "0.66.0",
3
+ "version": "0.66.1",
4
4
  "main": "./dist/index.js",
5
5
  "description": "Official Comty API for JavaScript",
6
6
  "homepage": "https://github.com/ragestudio/comty.js",