augnitorecorder
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -109,3 +109,3 @@ function _regeneratorRuntime() { | ||
return function (i, a) { | ||
if (o === f) throw Error("Generator is already running"); | ||
if (o === f) throw new Error("Generator is already running"); | ||
if (o === s) { | ||
@@ -252,3 +252,3 @@ if ("throw" === i) throw a; | ||
} else { | ||
if (!u) throw Error("try statement without catch or finally"); | ||
if (!u) throw new Error("try statement without catch or finally"); | ||
if (this.prev < i.finallyLoc) return handle(i.finallyLoc); | ||
@@ -293,3 +293,3 @@ } | ||
} | ||
throw Error("illegal catch attempt"); | ||
throw new Error("illegal catch attempt"); | ||
}, | ||
@@ -317,3 +317,3 @@ delegateYield: function (e, r, n) { | ||
var i = _toPrimitive(t, "string"); | ||
return "symbol" == typeof i ? i : i + ""; | ||
return "symbol" == typeof i ? i : String(i); | ||
} | ||
@@ -408,3 +408,3 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
// main-thread | ||
return _createClass(Executor, [{ | ||
_createClass(Executor, [{ | ||
key: "Start", | ||
@@ -618,2 +618,3 @@ value: function Start() { | ||
}]); | ||
return Executor; | ||
}(); | ||
@@ -629,5 +630,7 @@ | ||
this.audioContext = new AudioContext(); | ||
this.executor = new Executor(wsUrl, enableLogs, eosMessage, socketTimeoutInterval, onFinalResult, onPartialResult, onError, onSessionEvent); | ||
this.executor.HeavyOp = heavyOp; | ||
this.executor.Start(); | ||
if (wsUrl !== "") { | ||
this.executor = new Executor(wsUrl, enableLogs, eosMessage, socketTimeoutInterval, onFinalResult, onPartialResult, onError, onSessionEvent); | ||
this.executor.HeavyOp = heavyOp; | ||
this.executor.Start(); | ||
} | ||
this.source; | ||
@@ -643,3 +646,3 @@ this.processorNode; | ||
} | ||
return _createClass(Streamer, [{ | ||
_createClass(Streamer, [{ | ||
key: "StartStream", | ||
@@ -827,3 +830,3 @@ value: function () { | ||
} | ||
_this.executor.Send(event.data); | ||
if (_this.executor) _this.executor.Send(event.data); | ||
}; | ||
@@ -1021,2 +1024,3 @@ _context5.next = 15; | ||
}]); | ||
return Streamer; | ||
}(); | ||
@@ -1036,3 +1040,3 @@ | ||
_classCallCheck(this, AugnitoRecorder); | ||
this.WebsocketURL = config.serverURL; | ||
this.WebsocketURL = config.serverURL !== "" ? config.serverURL : ""; | ||
this.enableLogs = config.enableLogs; | ||
@@ -1046,3 +1050,3 @@ this.isDebug = config.isDebug; | ||
} | ||
return _createClass(AugnitoRecorder, [{ | ||
_createClass(AugnitoRecorder, [{ | ||
key: "togglePauseResumeAudioStream", | ||
@@ -1156,2 +1160,3 @@ value: function togglePauseResumeAudioStream() { | ||
}]); | ||
return AugnitoRecorder; | ||
}(); | ||
@@ -1158,0 +1163,0 @@ |
{ | ||
"name": "augnitorecorder", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Audio recorder and streamer compatible with any browser", | ||
@@ -5,0 +5,0 @@ "main": "dist/augnitoRecorder.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1186
109197