@osimatic/helpers-js 1.0.15 → 1.0.16

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.
Files changed (2) hide show
  1. package/media.js +1 -1
  2. package/package.json +1 -1
package/media.js CHANGED
@@ -103,7 +103,7 @@ class UserMedia {
103
103
  navigator.mediaDevices.getUserMedia(constraints !== 'undefined' ? constraints : { audio: true, video: true })
104
104
  .then((stream) => {
105
105
  stream.getTracks().forEach((track) => track.stop());
106
- resolve();
106
+ resolve(stream);
107
107
  }).catch((error) => {
108
108
  const errName = error.name;
109
109
  const errMessage = error.message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"