recorder-audio-worklet
Advanced tools
Comparing version 1.1.24 to 1.1.25
@@ -1,1 +0,1 @@ | ||
export declare const worklet = "!function(e){var t={};function r(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var s in e)r.d(o,s,function(t){return e[t]}.bind(null,s));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=1)}([function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});class o extends AudioWorkletProcessor{constructor(e){super(e),this._encoderPort=null,this._isSupportingTransferables=!1,this._state=\"inactive\",this.port.onmessage=(({data:e})=>{\"record\"===e.method?\"inactive\"===this._state?(this._encoderPort=e.params.encoderPort,this._isSupportingTransferables=e.params.isSupportingTransferables,this._state=\"recording\",this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:\"The internal state does not allow to process the given message.\"},id:e.id}):\"stop\"===e.method?\"recording\"===this._state&&null!==this._encoderPort?(this._stop(this._encoderPort),this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:\"The internal state does not allow to process the given message.\"},id:e.id}):\"number\"==typeof e.id&&this.port.postMessage({error:{code:-32601,message:\"The requested method is not supported.\"},id:e.id})})}process([e]){if(\"inactive\"===this._state)return!0;if(\"recording\"===this._state&&null!==this._encoderPort){if(void 0===e)throw new Error(\"No channelData was received for the first input.\");return 0===e.length&&this._stop(this._encoderPort),this._encoderPort.postMessage(e,this._isSupportingTransferables?e.map(({buffer:e})=>e):[]),!0}return!1}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state=\"stopped\"}}t.RecorderAudioWorkletProcessor=o,o.parameterDescriptors=[]},function(e,t,r){\"use strict\";var o=r(0);registerProcessor(\"recorder-audio-worklet-processor\",o.RecorderAudioWorkletProcessor)}]);"; | ||
export declare const worklet = "!function(e){var t={};function r(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var s in e)r.d(o,s,function(t){return e[t]}.bind(null,s));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=0)}([function(e,t,r){\"use strict\";var o=r(1);registerProcessor(\"recorder-audio-worklet-processor\",o.RecorderAudioWorkletProcessor)},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});class o extends AudioWorkletProcessor{constructor(e){super(e),this._encoderPort=null,this._isSupportingTransferables=!1,this._state=\"inactive\",this.port.onmessage=(({data:e})=>{\"record\"===e.method?\"inactive\"===this._state?(this._encoderPort=e.params.encoderPort,this._isSupportingTransferables=e.params.isSupportingTransferables,this._state=\"recording\",this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:\"The internal state does not allow to process the given message.\"},id:e.id}):\"stop\"===e.method?\"recording\"===this._state&&null!==this._encoderPort?(this._stop(this._encoderPort),this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:\"The internal state does not allow to process the given message.\"},id:e.id}):\"number\"==typeof e.id&&this.port.postMessage({error:{code:-32601,message:\"The requested method is not supported.\"},id:e.id})})}process([e]){if(\"inactive\"===this._state)return!0;if(\"recording\"===this._state&&null!==this._encoderPort){if(void 0===e)throw new Error(\"No channelData was received for the first input.\");return 0===e.length&&this._stop(this._encoderPort),this._encoderPort.postMessage(e,this._isSupportingTransferables?e.map(({buffer:e})=>e):[]),!0}return!1}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state=\"stopped\"}}t.RecorderAudioWorkletProcessor=o,o.parameterDescriptors=[]}]);"; |
// tslint:disable-next-line:max-line-length | ||
export const worklet = `!function(e){var t={};function r(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(o,s,function(t){return e[t]}.bind(null,s));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class o extends AudioWorkletProcessor{constructor(e){super(e),this._encoderPort=null,this._isSupportingTransferables=!1,this._state="inactive",this.port.onmessage=(({data:e})=>{"record"===e.method?"inactive"===this._state?(this._encoderPort=e.params.encoderPort,this._isSupportingTransferables=e.params.isSupportingTransferables,this._state="recording",this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:"The internal state does not allow to process the given message."},id:e.id}):"stop"===e.method?"recording"===this._state&&null!==this._encoderPort?(this._stop(this._encoderPort),this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:"The internal state does not allow to process the given message."},id:e.id}):"number"==typeof e.id&&this.port.postMessage({error:{code:-32601,message:"The requested method is not supported."},id:e.id})})}process([e]){if("inactive"===this._state)return!0;if("recording"===this._state&&null!==this._encoderPort){if(void 0===e)throw new Error("No channelData was received for the first input.");return 0===e.length&&this._stop(this._encoderPort),this._encoderPort.postMessage(e,this._isSupportingTransferables?e.map(({buffer:e})=>e):[]),!0}return!1}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state="stopped"}}t.RecorderAudioWorkletProcessor=o,o.parameterDescriptors=[]},function(e,t,r){"use strict";var o=r(0);registerProcessor("recorder-audio-worklet-processor",o.RecorderAudioWorkletProcessor)}]);`; | ||
export const worklet = `!function(e){var t={};function r(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(o,s,function(t){return e[t]}.bind(null,s));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";var o=r(1);registerProcessor("recorder-audio-worklet-processor",o.RecorderAudioWorkletProcessor)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class o extends AudioWorkletProcessor{constructor(e){super(e),this._encoderPort=null,this._isSupportingTransferables=!1,this._state="inactive",this.port.onmessage=(({data:e})=>{"record"===e.method?"inactive"===this._state?(this._encoderPort=e.params.encoderPort,this._isSupportingTransferables=e.params.isSupportingTransferables,this._state="recording",this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:"The internal state does not allow to process the given message."},id:e.id}):"stop"===e.method?"recording"===this._state&&null!==this._encoderPort?(this._stop(this._encoderPort),this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:"The internal state does not allow to process the given message."},id:e.id}):"number"==typeof e.id&&this.port.postMessage({error:{code:-32601,message:"The requested method is not supported."},id:e.id})})}process([e]){if("inactive"===this._state)return!0;if("recording"===this._state&&null!==this._encoderPort){if(void 0===e)throw new Error("No channelData was received for the first input.");return 0===e.length&&this._stop(this._encoderPort),this._encoderPort.postMessage(e,this._isSupportingTransferables?e.map(({buffer:e})=>e):[]),!0}return!1}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state="stopped"}}t.RecorderAudioWorkletProcessor=o,o.parameterDescriptors=[]}]);`; | ||
//# sourceMappingURL=/build/es2015/worklet/worklet.js.map |
@@ -25,3 +25,3 @@ (function (global, factory) { | ||
// tslint:disable-next-line:max-line-length | ||
var worklet = "!function(e){var t={};function r(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var s in e)r.d(o,s,function(t){return e[t]}.bind(null,s));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=1)}([function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});class o extends AudioWorkletProcessor{constructor(e){super(e),this._encoderPort=null,this._isSupportingTransferables=!1,this._state=\"inactive\",this.port.onmessage=(({data:e})=>{\"record\"===e.method?\"inactive\"===this._state?(this._encoderPort=e.params.encoderPort,this._isSupportingTransferables=e.params.isSupportingTransferables,this._state=\"recording\",this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:\"The internal state does not allow to process the given message.\"},id:e.id}):\"stop\"===e.method?\"recording\"===this._state&&null!==this._encoderPort?(this._stop(this._encoderPort),this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:\"The internal state does not allow to process the given message.\"},id:e.id}):\"number\"==typeof e.id&&this.port.postMessage({error:{code:-32601,message:\"The requested method is not supported.\"},id:e.id})})}process([e]){if(\"inactive\"===this._state)return!0;if(\"recording\"===this._state&&null!==this._encoderPort){if(void 0===e)throw new Error(\"No channelData was received for the first input.\");return 0===e.length&&this._stop(this._encoderPort),this._encoderPort.postMessage(e,this._isSupportingTransferables?e.map(({buffer:e})=>e):[]),!0}return!1}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state=\"stopped\"}}t.RecorderAudioWorkletProcessor=o,o.parameterDescriptors=[]},function(e,t,r){\"use strict\";var o=r(0);registerProcessor(\"recorder-audio-worklet-processor\",o.RecorderAudioWorkletProcessor)}]);"; | ||
var worklet = "!function(e){var t={};function r(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var s in e)r.d(o,s,function(t){return e[t]}.bind(null,s));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=0)}([function(e,t,r){\"use strict\";var o=r(1);registerProcessor(\"recorder-audio-worklet-processor\",o.RecorderAudioWorkletProcessor)},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});class o extends AudioWorkletProcessor{constructor(e){super(e),this._encoderPort=null,this._isSupportingTransferables=!1,this._state=\"inactive\",this.port.onmessage=(({data:e})=>{\"record\"===e.method?\"inactive\"===this._state?(this._encoderPort=e.params.encoderPort,this._isSupportingTransferables=e.params.isSupportingTransferables,this._state=\"recording\",this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:\"The internal state does not allow to process the given message.\"},id:e.id}):\"stop\"===e.method?\"recording\"===this._state&&null!==this._encoderPort?(this._stop(this._encoderPort),this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:\"The internal state does not allow to process the given message.\"},id:e.id}):\"number\"==typeof e.id&&this.port.postMessage({error:{code:-32601,message:\"The requested method is not supported.\"},id:e.id})})}process([e]){if(\"inactive\"===this._state)return!0;if(\"recording\"===this._state&&null!==this._encoderPort){if(void 0===e)throw new Error(\"No channelData was received for the first input.\");return 0===e.length&&this._stop(this._encoderPort),this._encoderPort.postMessage(e,this._isSupportingTransferables?e.map(({buffer:e})=>e):[]),!0}return!1}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state=\"stopped\"}}t.RecorderAudioWorkletProcessor=o,o.parameterDescriptors=[]}]);"; | ||
@@ -28,0 +28,0 @@ var blob = new Blob([worklet], { type: 'application/javascript; charset=utf-8' }); |
// tslint:disable-next-line:max-line-length | ||
export var worklet = "!function(e){var t={};function r(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var s in e)r.d(o,s,function(t){return e[t]}.bind(null,s));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=1)}([function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});class o extends AudioWorkletProcessor{constructor(e){super(e),this._encoderPort=null,this._isSupportingTransferables=!1,this._state=\"inactive\",this.port.onmessage=(({data:e})=>{\"record\"===e.method?\"inactive\"===this._state?(this._encoderPort=e.params.encoderPort,this._isSupportingTransferables=e.params.isSupportingTransferables,this._state=\"recording\",this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:\"The internal state does not allow to process the given message.\"},id:e.id}):\"stop\"===e.method?\"recording\"===this._state&&null!==this._encoderPort?(this._stop(this._encoderPort),this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:\"The internal state does not allow to process the given message.\"},id:e.id}):\"number\"==typeof e.id&&this.port.postMessage({error:{code:-32601,message:\"The requested method is not supported.\"},id:e.id})})}process([e]){if(\"inactive\"===this._state)return!0;if(\"recording\"===this._state&&null!==this._encoderPort){if(void 0===e)throw new Error(\"No channelData was received for the first input.\");return 0===e.length&&this._stop(this._encoderPort),this._encoderPort.postMessage(e,this._isSupportingTransferables?e.map(({buffer:e})=>e):[]),!0}return!1}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state=\"stopped\"}}t.RecorderAudioWorkletProcessor=o,o.parameterDescriptors=[]},function(e,t,r){\"use strict\";var o=r(0);registerProcessor(\"recorder-audio-worklet-processor\",o.RecorderAudioWorkletProcessor)}]);"; | ||
export var worklet = "!function(e){var t={};function r(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var s in e)r.d(o,s,function(t){return e[t]}.bind(null,s));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=0)}([function(e,t,r){\"use strict\";var o=r(1);registerProcessor(\"recorder-audio-worklet-processor\",o.RecorderAudioWorkletProcessor)},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});class o extends AudioWorkletProcessor{constructor(e){super(e),this._encoderPort=null,this._isSupportingTransferables=!1,this._state=\"inactive\",this.port.onmessage=(({data:e})=>{\"record\"===e.method?\"inactive\"===this._state?(this._encoderPort=e.params.encoderPort,this._isSupportingTransferables=e.params.isSupportingTransferables,this._state=\"recording\",this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:\"The internal state does not allow to process the given message.\"},id:e.id}):\"stop\"===e.method?\"recording\"===this._state&&null!==this._encoderPort?(this._stop(this._encoderPort),this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:\"The internal state does not allow to process the given message.\"},id:e.id}):\"number\"==typeof e.id&&this.port.postMessage({error:{code:-32601,message:\"The requested method is not supported.\"},id:e.id})})}process([e]){if(\"inactive\"===this._state)return!0;if(\"recording\"===this._state&&null!==this._encoderPort){if(void 0===e)throw new Error(\"No channelData was received for the first input.\");return 0===e.length&&this._stop(this._encoderPort),this._encoderPort.postMessage(e,this._isSupportingTransferables?e.map(({buffer:e})=>e):[]),!0}return!1}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state=\"stopped\"}}t.RecorderAudioWorkletProcessor=o,o.parameterDescriptors=[]}]);"; | ||
//# sourceMappingURL=/build/es2015/worklet/worklet.js.map |
@@ -13,8 +13,8 @@ { | ||
"babel-runtime": "^6.26.0", | ||
"broker-factory": "^1.3.1", | ||
"broker-factory": "^1.3.2", | ||
"fast-unique-numbers": "^2.1.0", | ||
"recorder-audio-worklet-processor": "^1.0.6", | ||
"recorder-audio-worklet-processor": "^1.0.7", | ||
"standardized-audio-context": "^12.1.28", | ||
"tslib": "^1.9.3", | ||
"worker-factory": "^2.5.0" | ||
"worker-factory": "^2.5.1" | ||
}, | ||
@@ -33,3 +33,3 @@ "description": "This module provides an loader for the RecorderAudioWorkletProcessor and the corresponding RecorderAudioWorkletNode.", | ||
"eslint": "^5.1.0", | ||
"eslint-config-holy-grail": "^28.0.0", | ||
"eslint-config-holy-grail": "^29.0.1", | ||
"greenkeeper-lockfile": "^1.15.1", | ||
@@ -56,3 +56,3 @@ "grunt": "^1.0.3", | ||
"mocha": "^5.2.0", | ||
"rollup": "^0.62.0", | ||
"rollup": "^0.63.0", | ||
"rollup-plugin-babel": "^3.0.7", | ||
@@ -63,6 +63,6 @@ "sinon": "^6.1.3", | ||
"tsconfig-holy-grail": "^5.0.5", | ||
"tslint": "^5.10.0", | ||
"tslint-config-holy-grail": "^32.0.1", | ||
"tslint": "^5.11.0", | ||
"tslint-config-holy-grail": "^33.0.1", | ||
"typescript": "^2.9.2", | ||
"webpack": "^4.15.1" | ||
"webpack": "^4.16.1" | ||
}, | ||
@@ -91,3 +91,3 @@ "files": [ | ||
"types": "build/es2015/module.d.ts", | ||
"version": "1.1.24" | ||
"version": "1.1.25" | ||
} |
// tslint:disable-next-line:max-line-length | ||
export const worklet = `!function(e){var t={};function r(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(o,s,function(t){return e[t]}.bind(null,s));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class o extends AudioWorkletProcessor{constructor(e){super(e),this._encoderPort=null,this._isSupportingTransferables=!1,this._state="inactive",this.port.onmessage=(({data:e})=>{"record"===e.method?"inactive"===this._state?(this._encoderPort=e.params.encoderPort,this._isSupportingTransferables=e.params.isSupportingTransferables,this._state="recording",this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:"The internal state does not allow to process the given message."},id:e.id}):"stop"===e.method?"recording"===this._state&&null!==this._encoderPort?(this._stop(this._encoderPort),this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:"The internal state does not allow to process the given message."},id:e.id}):"number"==typeof e.id&&this.port.postMessage({error:{code:-32601,message:"The requested method is not supported."},id:e.id})})}process([e]){if("inactive"===this._state)return!0;if("recording"===this._state&&null!==this._encoderPort){if(void 0===e)throw new Error("No channelData was received for the first input.");return 0===e.length&&this._stop(this._encoderPort),this._encoderPort.postMessage(e,this._isSupportingTransferables?e.map(({buffer:e})=>e):[]),!0}return!1}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state="stopped"}}t.RecorderAudioWorkletProcessor=o,o.parameterDescriptors=[]},function(e,t,r){"use strict";var o=r(0);registerProcessor("recorder-audio-worklet-processor",o.RecorderAudioWorkletProcessor)}]);`; | ||
export const worklet = `!function(e){var t={};function r(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(o,s,function(t){return e[t]}.bind(null,s));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";var o=r(1);registerProcessor("recorder-audio-worklet-processor",o.RecorderAudioWorkletProcessor)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class o extends AudioWorkletProcessor{constructor(e){super(e),this._encoderPort=null,this._isSupportingTransferables=!1,this._state="inactive",this.port.onmessage=(({data:e})=>{"record"===e.method?"inactive"===this._state?(this._encoderPort=e.params.encoderPort,this._isSupportingTransferables=e.params.isSupportingTransferables,this._state="recording",this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:"The internal state does not allow to process the given message."},id:e.id}):"stop"===e.method?"recording"===this._state&&null!==this._encoderPort?(this._stop(this._encoderPort),this.port.postMessage({id:e.id,result:null})):this.port.postMessage({error:{code:-32603,message:"The internal state does not allow to process the given message."},id:e.id}):"number"==typeof e.id&&this.port.postMessage({error:{code:-32601,message:"The requested method is not supported."},id:e.id})})}process([e]){if("inactive"===this._state)return!0;if("recording"===this._state&&null!==this._encoderPort){if(void 0===e)throw new Error("No channelData was received for the first input.");return 0===e.length&&this._stop(this._encoderPort),this._encoderPort.postMessage(e,this._isSupportingTransferables?e.map(({buffer:e})=>e):[]),!0}return!1}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state="stopped"}}t.RecorderAudioWorkletProcessor=o,o.parameterDescriptors=[]}]);`; |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Updatedbroker-factory@^1.3.2
Updatedworker-factory@^2.5.1