@checksub_team/peaks_timeline 1.8.1 → 1.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checksub_team/peaks_timeline",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "JavaScript UI component for displaying audio waveforms",
5
5
  "main": "./peaks.js",
6
6
  "types": "./peaks.js.d.ts",
package/peaks.js CHANGED
@@ -19728,7 +19728,7 @@ module.exports = function (Source, Utils) {
19728
19728
  wrapping: sourceToCut.wrapping,
19729
19729
  previewHeight: sourceToCut.previewHeight,
19730
19730
  binaryHeight: sourceToCut.binaryHeight
19731
- }]);
19731
+ }])[0];
19732
19732
  this._peaks.emit('sources.updated', [
19733
19733
  sourceToCut,
19734
19734
  newSource
@@ -19790,6 +19790,7 @@ module.exports = function (Source, Utils) {
19790
19790
  self._addSource(source);
19791
19791
  });
19792
19792
  this._peaks.emit('sources.add', sources);
19793
+ return sources;
19793
19794
  };
19794
19795
  TimelineSources.prototype._findSource = function (predicate) {
19795
19796
  var indexes = [];
@@ -98,7 +98,7 @@ define([
98
98
  wrapping: sourceToCut.wrapping,
99
99
  previewHeight: sourceToCut.previewHeight,
100
100
  binaryHeight: sourceToCut.binaryHeight
101
- }]);
101
+ }])[0];
102
102
 
103
103
  this._peaks.emit('sources.updated', [sourceToCut, newSource]);
104
104
  };
@@ -283,6 +283,8 @@ define([
283
283
  });
284
284
 
285
285
  this._peaks.emit('sources.add', sources);
286
+
287
+ return sources;
286
288
  };
287
289
 
288
290
  /**