New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

audioplayr

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audioplayr - npm Package Compare versions

Comparing version 0.7.4 to 0.7.5

2

dist/AudioPlayr.js

@@ -1,1 +0,1 @@

define(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){var o,r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},i=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(r,i){function u(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){t.done?r(t.value):new n(function(e){e(t.value)}).then(u,s)}l((o=o.apply(t,e||[])).next())})},u=this&&this.__generator||function(t,e){var n,o,r,i,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,o=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(r=(r=u.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){u.label=i[1];break}if(6===i[0]&&u.label<r[1]){u.label=r[1],r=i;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(i);break}r[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};void 0===(o=function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={globalMuted:!1,globalVolume:1,localMuted:!1,localVolume:1,loop:!1},o=function(){function t(t,e){this.name=t,this.settings=r({},n,e),this.element=document.createElement("audio"),this.element.src=t,this.element.loop=this.settings.loop,this.element.muted=this.settings.globalMuted||this.settings.localMuted,this.element.volume=this.settings.globalVolume*this.settings.localVolume}return t.prototype.pause=function(){return i(this,void 0,void 0,function(){return u(this,function(t){return this.element.pause(),[2]})})},t.prototype.play=function(){return i(this,void 0,void 0,function(){return u(this,function(t){return[2,this.element.play()]})})},t.prototype.setLoop=function(t){return i(this,void 0,void 0,function(){return u(this,function(e){return this.element.loop=t,[2]})})},t.prototype.setGlobalMuted=function(t){return i(this,void 0,void 0,function(){return u(this,function(e){return this.settings.globalMuted=t,this.element.muted=this.settings.globalMuted||this.settings.localMuted,[2]})})},t.prototype.setGlobalVolume=function(t){return i(this,void 0,void 0,function(){return u(this,function(e){return this.settings.globalVolume=t,this.element.volume=this.settings.globalVolume*this.settings.localVolume,[2]})})},t.prototype.stop=function(){return i(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.pause()];case 1:return t.sent(),this.element.currentTime=0,[2]}})})},t.create=function(e,n){return void 0===n&&(n={}),new t(e,n)},t}();e.AudioElementSound=o}.apply(e,[n,e]))||(t.exports=o)},function(t,e,n){var o;void 0===(o=function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.Muted="muted",t.Volume="volume"}(e.AudioSetting||(e.AudioSetting={}));var n=function(){function t(){this.values={}}return t.prototype.getItem=function(t){return this.values[t]},t.prototype.setItem=function(t,e){this.values[t]=e},t}();e.DefaultStorage=n}.apply(e,[n,e]))||(t.exports=o)},function(t,e,n){var o,r;o=[n,e,n(3),n(0),n(1)],void 0===(r=function(t,e,n,o,r){"use strict";function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),i(n),i(o),i(r)}.apply(e,o))||(t.exports=r)},function(t,e,n){var o,r,i=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(r,i){function u(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){t.done?r(t.value):new n(function(e){e(t.value)}).then(u,s)}l((o=o.apply(t,e||[])).next())})},u=this&&this.__generator||function(t,e){var n,o,r,i,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,o=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(r=(r=u.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){u.label=i[1];break}if(6===i[0]&&u.label<r[1]){u.label=r[1],r=i;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(i);break}r[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};o=[n,e,n(0),n(1)],void 0===(r=function(t,e,n,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t},s=function(){function t(t){this.sounds={},this.createSound=t.createSound||n.AudioElementSound.create,this.nameTransform=t.nameTransform||r,this.storage=t.storage||new o.DefaultStorage}return t.prototype.getMuted=function(){var t=this.storage.getItem(o.AudioSetting.Muted);return null!=t&&JSON.parse(t)},t.prototype.getVolume=function(){var t=this.storage.getItem(o.AudioSetting.Volume);return null==t?1:JSON.parse(t)},t.prototype.setMuted=function(t){return i(this,void 0,void 0,function(){var e=this;return u(this,function(n){switch(n.label){case 0:return this.storage.setItem(o.AudioSetting.Muted,JSON.stringify(t)),[4,Promise.all(Object.keys(this.sounds).map(function(n){return i(e,void 0,void 0,function(){return u(this,function(e){return[2,this.sounds[n].setGlobalMuted(t)]})})}))];case 1:return n.sent(),[2]}})})},t.prototype.setVolume=function(t){return i(this,void 0,void 0,function(){var e=this;return u(this,function(n){switch(n.label){case 0:if(t<0||t>1)throw new Error("Volume must be within [0, 1].");return this.storage.setItem(o.AudioSetting.Volume,t),[4,Promise.all(Object.keys(this.sounds).map(function(n){return i(e,void 0,void 0,function(){return u(this,function(e){return[2,this.sounds[n].setGlobalVolume(t)]})})}))];case 1:return n.sent(),[2]}})})},t.prototype.play=function(t,e){return void 0===e&&(e={}),i(this,void 0,void 0,function(){var n;return u(this,function(o){switch(o.label){case 0:return t=this.nameTransform(t),n=void 0===e.alias?t:this.nameTransform(e.alias),{}.hasOwnProperty.call(this.sounds,n)?[4,this.sounds[n].stop()]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2,(this.sounds[n]=this.createSound(t,{globalMuted:this.getMuted(),globalVolume:this.getVolume(),localMuted:void 0!==e.muted&&e.muted,localVolume:void 0===e.volume?1:e.volume,loop:void 0!==e.loop&&e.loop})).play()]}})})},t.prototype.pauseAll=function(){return i(this,void 0,void 0,function(){var t=this;return u(this,function(e){switch(e.label){case 0:return[4,Promise.all(Object.keys(this.sounds).map(function(e){return i(t,void 0,void 0,function(){return u(this,function(t){return[2,this.sounds[e].pause()]})})}))];case 1:return e.sent(),[2]}})})},t.prototype.resumeAll=function(){return i(this,void 0,void 0,function(){var t=this;return u(this,function(e){switch(e.label){case 0:return[4,Promise.all(Object.keys(this.sounds).map(function(e){return i(t,void 0,void 0,function(){return u(this,function(t){return[2,this.sounds[e].play()]})})}))];case 1:return e.sent(),[2]}})})},t.prototype.stopAll=function(){return i(this,void 0,void 0,function(){var t=this;return u(this,function(e){switch(e.label){case 0:return[4,Promise.all(Object.keys(this.sounds).map(function(e){return i(t,void 0,void 0,function(){return u(this,function(t){return[2,this.sounds[e].stop()]})})}))];case 1:return e.sent(),this.sounds={},[2]}})})},t.prototype.hasSound=function(t,e){return t=this.nameTransform(t),!!{}.hasOwnProperty.call(this.sounds,t)&&(void 0===e||this.sounds[t].name===this.nameTransform(e))},t}();e.AudioPlayr=s}.apply(e,o))||(t.exports=r)}])});
define((function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){var o,r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},i=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function u(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,s)}l((o=o.apply(t,e||[])).next())}))},u=this&&this.__generator||function(t,e){var n,o,r,i,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,o=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(r=(r=u.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){u.label=i[1];break}if(6===i[0]&&u.label<r[1]){u.label=r[1],r=i;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(i);break}r[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};void 0===(o=function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={globalMuted:!1,globalVolume:1,localMuted:!1,localVolume:1,loop:!1},o=function(){function t(t,e){this.name=t,this.settings=r(r({},n),e),this.element=document.createElement("audio"),this.element.src=t,this.element.loop=this.settings.loop,this.element.muted=this.settings.globalMuted||this.settings.localMuted,this.element.volume=this.settings.globalVolume*this.settings.localVolume}return t.prototype.pause=function(){return i(this,void 0,void 0,(function(){return u(this,(function(t){return this.element.pause(),[2]}))}))},t.prototype.play=function(){return i(this,void 0,void 0,(function(){return u(this,(function(t){return[2,this.element.play()]}))}))},t.prototype.setLoop=function(t){return i(this,void 0,void 0,(function(){return u(this,(function(e){return this.element.loop=t,[2]}))}))},t.prototype.setGlobalMuted=function(t){return i(this,void 0,void 0,(function(){return u(this,(function(e){return this.settings.globalMuted=t,this.element.muted=this.settings.globalMuted||this.settings.localMuted,[2]}))}))},t.prototype.setGlobalVolume=function(t){return i(this,void 0,void 0,(function(){return u(this,(function(e){return this.settings.globalVolume=t,this.element.volume=this.settings.globalVolume*this.settings.localVolume,[2]}))}))},t.prototype.stop=function(){return i(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.pause()];case 1:return t.sent(),this.element.currentTime=0,[2]}}))}))},t.create=function(e,n){return void 0===n&&(n={}),new t(e,n)},t}();e.AudioElementSound=o}.apply(e,[n,e]))||(t.exports=o)},function(t,e,n){var o;void 0===(o=function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.Muted="muted",t.Volume="volume"}(e.AudioSetting||(e.AudioSetting={}));var n=function(){function t(){this.values={}}return t.prototype.getItem=function(t){return this.values[t]},t.prototype.setItem=function(t,e){this.values[t]=e},t}();e.DefaultStorage=n}.apply(e,[n,e]))||(t.exports=o)},function(t,e,n){var o,r;o=[n,e,n(3),n(0),n(1)],void 0===(r=function(t,e,n,o,r){"use strict";function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),i(n),i(o),i(r)}.apply(e,o))||(t.exports=r)},function(t,e,n){var o,r,i=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function u(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,s)}l((o=o.apply(t,e||[])).next())}))},u=this&&this.__generator||function(t,e){var n,o,r,i,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,o=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(r=(r=u.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){u.label=i[1];break}if(6===i[0]&&u.label<r[1]){u.label=r[1],r=i;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(i);break}r[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};o=[n,e,n(0),n(1)],void 0===(r=function(t,e,n,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t},s=function(){function t(t){this.sounds={},this.createSound=t.createSound||n.AudioElementSound.create,this.nameTransform=t.nameTransform||r,this.storage=t.storage||new o.DefaultStorage}return t.prototype.getMuted=function(){var t=this.storage.getItem(o.AudioSetting.Muted);return null!=t&&JSON.parse(t)},t.prototype.getVolume=function(){var t=this.storage.getItem(o.AudioSetting.Volume);return null==t?1:JSON.parse(t)},t.prototype.setMuted=function(t){return i(this,void 0,void 0,(function(){var e=this;return u(this,(function(n){switch(n.label){case 0:return this.storage.setItem(o.AudioSetting.Muted,JSON.stringify(t)),[4,Promise.all(Object.keys(this.sounds).map((function(n){return i(e,void 0,void 0,(function(){return u(this,(function(e){return[2,this.sounds[n].setGlobalMuted(t)]}))}))})))];case 1:return n.sent(),[2]}}))}))},t.prototype.setVolume=function(t){return i(this,void 0,void 0,(function(){var e=this;return u(this,(function(n){switch(n.label){case 0:if(t<0||t>1)throw new Error("Volume must be within [0, 1].");return this.storage.setItem(o.AudioSetting.Volume,t),[4,Promise.all(Object.keys(this.sounds).map((function(n){return i(e,void 0,void 0,(function(){return u(this,(function(e){return[2,this.sounds[n].setGlobalVolume(t)]}))}))})))];case 1:return n.sent(),[2]}}))}))},t.prototype.play=function(t,e){return void 0===e&&(e={}),i(this,void 0,void 0,(function(){var n;return u(this,(function(o){switch(o.label){case 0:return t=this.nameTransform(t),n=void 0===e.alias?t:this.nameTransform(e.alias),{}.hasOwnProperty.call(this.sounds,n)?[4,this.sounds[n].stop()]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2,(this.sounds[n]=this.createSound(t,{globalMuted:this.getMuted(),globalVolume:this.getVolume(),localMuted:void 0!==e.muted&&e.muted,localVolume:void 0===e.volume?1:e.volume,loop:void 0!==e.loop&&e.loop})).play()]}}))}))},t.prototype.pauseAll=function(){return i(this,void 0,void 0,(function(){var t=this;return u(this,(function(e){switch(e.label){case 0:return[4,Promise.all(Object.keys(this.sounds).map((function(e){return i(t,void 0,void 0,(function(){return u(this,(function(t){return[2,this.sounds[e].pause()]}))}))})))];case 1:return e.sent(),[2]}}))}))},t.prototype.resumeAll=function(){return i(this,void 0,void 0,(function(){var t=this;return u(this,(function(e){switch(e.label){case 0:return[4,Promise.all(Object.keys(this.sounds).map((function(e){return i(t,void 0,void 0,(function(){return u(this,(function(t){return[2,this.sounds[e].play()]}))}))})))];case 1:return e.sent(),[2]}}))}))},t.prototype.stopAll=function(){return i(this,void 0,void 0,(function(){var t=this;return u(this,(function(e){switch(e.label){case 0:return[4,Promise.all(Object.keys(this.sounds).map((function(e){return i(t,void 0,void 0,(function(){return u(this,(function(t){return[2,this.sounds[e].stop()]}))}))})))];case 1:return e.sent(),this.sounds={},[2]}}))}))},t.prototype.hasSound=function(t,e){return t=this.nameTransform(t),!!{}.hasOwnProperty.call(this.sounds,t)&&(void 0===e||this.sounds[t].name===this.nameTransform(e))},t}();e.AudioPlayr=s}.apply(e,o))||(t.exports=r)}])}));

@@ -24,3 +24,3 @@ {

"istanbul": "^0.4.5",
"lolex": "^3.1.0",
"lolex": "^4.0.1",
"mkdirp": "^0.5.1",

@@ -87,3 +87,3 @@ "mocha": "^6.1.3",

"types": "./src/index.d.ts",
"version": "0.7.4"
"version": "0.7.5"
}
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -7,0 +8,0 @@ });

@@ -13,6 +13,7 @@ var __assign = (this && this.__assign) || function () {

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -73,3 +74,3 @@ });

this.name = name;
this.settings = __assign({}, defaultSoundSettings, settings);
this.settings = __assign(__assign({}, defaultSoundSettings), settings);
this.element = document.createElement("audio");

@@ -76,0 +77,0 @@ this.element.src = name;

@@ -9,2 +9,3 @@ {

"rules": {
"no-async-without-await": false,
"no-unsafe-any": false,

@@ -11,0 +12,0 @@ "strict-boolean-expressions": false

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc