nosnia-audio-recorder 0.3.2 → 0.3.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.
@@ -239,10 +239,6 @@ RCT_EXPORT_MODULE(NosniaAudioRecorder)
239
239
  // Attempt to start recording
240
240
  if (![_audioRecorder record]) {
241
241
  NSString *errorMsg = @"Failed to start recording";
242
- NSError *recErr = _audioRecorder.error;
243
- if (recErr) {
244
- errorMsg = [NSString stringWithFormat:@"%s (Error: %@)", errorMsg.UTF8String, recErr.description];
245
- }
246
242
  reject(@"START_RECORDING_ERROR", errorMsg, nil);
247
243
  _audioRecorder = nil;
248
244
  return;
@@ -374,7 +370,7 @@ RCT_EXPORT_MODULE(NosniaAudioRecorder)
374
370
 
375
371
  // Safely stop recorder
376
372
  if (_audioRecorder) {
377
- if ([_audioRecorder isRecording] || [_audioRecorder isPaused]) {
373
+ if ([_audioRecorder isRecording]) {
378
374
  [_audioRecorder stop];
379
375
  }
380
376
  _audioRecorder.delegate = nil;
@@ -509,3 +505,4 @@ RCT_EXPORT_MODULE(NosniaAudioRecorder)
509
505
  }
510
506
 
511
507
  @end
508
+ @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nosnia-audio-recorder",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "This is a modern audio recorder which actually works cross platform",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",