@bigbinary/neeto-media-recorder 2.0.2 → 2.0.4
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/core.js +6 -1
- package/core.js.map +1 -1
- package/index.js +2 -28
- package/index.js.map +1 -1
- package/package.json +1 -1
package/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import { isPresent, isNot, existsBy
|
|
2
|
+
import { isPresent, isNotEmpty, isNot, existsBy } from '@bigbinary/neeto-cist';
|
|
3
3
|
import { RETRIABLE_ERRORS, UPLOAD_STATUS, UPLOAD_EVENT, SCREEN_RECORDER_STATUS, START_RECORDING_SOUND, RECORDING_LIMIT_REACHED_WARNING_SOUND, MIME_TYPE as MIME_TYPE$1, SCREEN_RECORDER_ERROR, SCREEN_RECORDER_EVENT, RECORDING_TIME_LIMIT_FREE_PLAN, ONE_SECOND, HALF_A_SECOND_IN_MILLISECONDS, ONE_SECOND_IN_MILLISECONDS, TWO_HUNDRED_MILLISECONDS, ONE_MINUTE_IN_MILLISECONDS, STOP_RECORDING_DUE_TO_LIMIT_REACHED_SOUND } from '@bigbinary/neeto-media-recorder/constants';
|
|
4
4
|
import { isNotNil, min, identity, isEmpty, isNil, pick, equals, not } from 'ramda';
|
|
5
5
|
import platform from 'platform';
|
|
@@ -1130,6 +1130,11 @@ var MultipartS3Uploader = /*#__PURE__*/function () {
|
|
|
1130
1130
|
get: function get() {
|
|
1131
1131
|
return _classPrivateFieldGet(this, _store$1);
|
|
1132
1132
|
}
|
|
1133
|
+
}, {
|
|
1134
|
+
key: "hasSufficientData",
|
|
1135
|
+
get: function get() {
|
|
1136
|
+
return isNotEmpty(_classPrivateFieldGet(this, _unUploadedChunks)) || isNotEmpty(_classPrivateFieldGet(this, _s3PartUploadPromises));
|
|
1137
|
+
}
|
|
1133
1138
|
}]);
|
|
1134
1139
|
return MultipartS3Uploader;
|
|
1135
1140
|
}();
|