Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

creepyface-dance

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

creepyface-dance - npm Package Compare versions

Comparing version 8.0.0 to 8.0.1

2

dist/index.js

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("creepyface")):"function"==typeof define&&define.amd?define(["exports","creepyface"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).creepyfaceDance={},e.creepyface)}(this,function(e,n){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(n),r=1/0,o=9007199254740991,u=17976931348623157e292,c=NaN,f="[object Function]",a="[object GeneratorFunction]",l="[object Symbol]",s=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,d=/^0o[0-7]+$/i,v=/^(?:0|[1-9]\d*)$/,b=parseInt,g=Object.prototype.toString,h=Math.ceil,m=Math.max;function j(e){var n=typeof e;return e&&("object"==n||"function"==n)}function w(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||!!(n=e)&&"object"==typeof n&&g.call(e)==l;var n}(e))return c;j(e)&&(e=j(n="function"==typeof e.valueOf?e.valueOf():e)?n+"":n);if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=y.test(e);return n||d.test(e)?b(e.slice(2),n?2:8):p.test(e)?c:+e}(e))!==r&&e!==-r?e==e?e:0:(e<0?-1:1)*u:0===e?e:0}var O,T=function(e,n,t){return t&&"number"!=typeof t&&function(e,n,t){if(!j(t))return!1;var r=typeof n;if("number"==r?function(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=o}(e.length)&&!function(e){e=j(e)?g.call(e):"";return e==f||e==a}(e)}(t)&&function(e,n){return!!(n=null==n?o:n)&&("number"==typeof e||v.test(e))&&-1<e&&e%1==0&&e<n}(n,t.length):"string"==r&&n in t)return function(e,n){return e===n||e!=e&&n!=n}(t[n],e);return!1}(e,n,t)&&(n=t=void 0),e=w(e),void 0===n?(n=e,e=0):n=w(n),function(e,n,t,r){for(var o=-1,u=m(h((n-e)/(t||1)),0),i=Array(u);u--;)i[r?u:++o]=e,e+=t;return i}(e,n,t=void 0===t?e<n?1:-1:w(t),O)},x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},E=9007199254740991,L="[object Arguments]",P="[object Function]",S="[object GeneratorFunction]",n="object"==typeof x&&x&&x.Object===Object&&x,x="object"==typeof self&&self&&self.Object===Object&&self,n=n||x||Function("return this")();var x=Object.prototype,F=x.hasOwnProperty,M=x.toString,n=n.Symbol,$=x.propertyIsEnumerable,A=n?n.isConcatSpreadable:void 0;function I(e,n,t,r,o){var u=-1,i=e.length;for(t=t||B,o=o||[];++u<i;){var c=e[u];0<n&&t(c)?1<n?I(c,n-1,t,r,o):function(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t]}(o,c):r||(o[o.length]=c)}return o}function B(e){return C(e)||function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=E}(e.length)&&!function(e){e=function(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}(e)?M.call(e):"";return e==P||e==S}(e)}(e)}(n=e)&&F.call(n,"callee")&&(!$.call(n,"callee")||M.call(n)==L)||!!(A&&e&&e[A]);var n}var C=Array.isArray;var G=function(e){return(e?e.length:0)?I(e,1):[]},N=["n","ne","e","se","s","sw","w","nw"];function _(t,e,r,o){function u(){clearTimeout(c),clearInterval(f)}function i(){var e,n;u(),4===t.readyState?(e=t.currentTime<=r?0:Math.ceil((t.currentTime-r)/a),n=function(){return o(e++)},c=setTimeout(function(){n(),f=setInterval(n,1e3*a)},1e3*(r+e*a-t.currentTime))):t.addEventListener("canplaythrough",i)}var c,f,a=60/e;return t.addEventListener("pause",u),t.addEventListener("playing",i),t.paused||i(),function(){t.removeEventListener("canplaythrough",i),t.removeEventListener("pause",u),t.removeEventListener("playing",i),u()}}var k={serious:null,crazy:[0,0],n:[0,-1],ne:[1,-1],e:[1,0],se:[1,1],s:[0,1],sw:[-1,1],w:[-1,0],nw:[-1,-1]};n={repeat:function(n){return function(e){return G(T(n).map(function(){return e}))}},intercalate:function(n,t){return T(2*n.length).map(function(e){return e%2?t:n[Math.floor(e/2)]})},circle:function(t){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return T(N.length).map(function(e){return N[n=N.indexOf(t)+(r?e:-e),((e=N.length)+n%e)%e];var n})}};e.makePointProvider=function(e){var n=e.name,t=e.audio,r=e.bpm,o=e.firstBeat,u=e.choreography;i.default.registerPointProvider(n,function(n){return _(t,r,o,function(e){return n(k[u[e]])})},function(e,n){var t=n.getBoundingClientRect(),r=t.x,o=t.y,n=t.width,t=t.height;return e?[r+n/2+n/2*2*e[0],o+t/2+t/2*2*e[1]]:null})},e.moves=n,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("creepyface")):"function"==typeof define&&define.amd?define(["exports","creepyface"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).creepyfaceDance={},e.creepyface)}(this,function(e,n){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(n),o=1/0,u=9007199254740991,i=17976931348623157e292,f=NaN,c="[object Function]",a="[object GeneratorFunction]",l="[object Symbol]",p=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,b=/^0o[0-7]+$/i,d=/^(?:0|[1-9]\d*)$/,v=parseInt,g=Object.prototype.toString,m=Math.ceil,h=Math.max;function j(e){var n=typeof e;return e&&("object"==n||"function"==n)}function w(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||!!(n=e)&&"object"==typeof n&&g.call(e)==l;var n}(e))return f;j(e)&&(e=j(n="function"==typeof e.valueOf?e.valueOf():e)?n+"":n);if("string"!=typeof e)return 0===e?e:+e;e=e.replace(p,"");var n=y.test(e);return n||b.test(e)?v(e.slice(2),n?2:8):s.test(e)?f:+e}(e))!==o&&e!==-o?e==e?e:0:(e<0?-1:1)*i:0===e?e:0}var O,F=function(e,n,t){return t&&"number"!=typeof t&&function(e,n,t){if(!j(t))return!1;var r=typeof n;if("number"==r?function(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=u}(e.length)&&!function(e){e=j(e)?g.call(e):"";return e==c||e==a}(e)}(t)&&function(e,n){return!!(n=null==n?u:n)&&("number"==typeof e||d.test(e))&&-1<e&&e%1==0&&e<n}(n,t.length):"string"==r&&n in t)return function(e,n){return e===n||e!=e&&n!=n}(t[n],e);return!1}(e,n,t)&&(n=t=void 0),e=w(e),void 0===n?(n=e,e=0):n=w(n),function(e,n,t,r){for(var o=-1,u=h(m((n-e)/(t||1)),0),i=Array(u);u--;)i[r?u:++o]=e,e+=t;return i}(e,n,t=void 0===t?e<n?1:-1:w(t),O)},x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},A=9007199254740991,P="[object Arguments]",T="[object Function]",M="[object GeneratorFunction]",n="object"==typeof x&&x&&x.Object===Object&&x,x="object"==typeof self&&self&&self.Object===Object&&self,n=n||x||Function("return this")();var x=Object.prototype,S=x.hasOwnProperty,$=x.toString,n=n.Symbol,q=x.propertyIsEnumerable,B=n?n.isConcatSpreadable:void 0;function C(e,n,t,r,o){var u=-1,i=e.length;for(t=t||G,o=o||[];++u<i;){var f=e[u];0<n&&t(f)?1<n?C(f,n-1,t,r,o):function(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t]}(o,f):r||(o[o.length]=f)}return o}function G(e){return I(e)||function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=A}(e.length)&&!function(e){e=function(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}(e)?$.call(e):"";return e==T||e==M}(e)}(e)}(n=e)&&S.call(n,"callee")&&(!q.call(n,"callee")||$.call(n)==P)||!!(B&&e&&e[B]);var n}var I=Array.isArray;var N=function(e){return(e?e.length:0)?C(e,1):[]},_=["n","ne","e","se","s","sw","w","nw"];var k={serious:null,crazy:[0,0],n:[0,-1],ne:[1,-1],e:[1,0],se:[1,1],s:[0,1],sw:[-1,1],w:[-1,0],nw:[-1,-1]};n={repeat:function(n){return function(e){return N(F(n).map(function(){return e}))}},intercalate:function(n,t){return F(2*n.length).map(function(e){return e%2?t:n[Math.floor(e/2)]})},circle:function(t){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return F(_.length).map(function(e){return _[n=_.indexOf(t)+(r?e:-e),((e=_.length)+n%e)%e];var n})}};e.makePointProvider=function(e){var n=e.name,c=e.audio,a=e.bpm,l=e.firstBeat,p=e.choreography;r.default.registerPointProvider(n,function(n){return t=c,r=l,o=function(e){return n(k[p[e]])},u=60/(e=a),i=-1,e=function e(){var n;t.currentTime>=r&&((n=Math.floor((t.currentTime-r)/u))!==i&&o(i=n)),f=requestAnimationFrame(e)},f=requestAnimationFrame(e),function(){return cancelAnimationFrame(f)};var t,e,r,o,u,i,f},function(e,n){var t=n.getBoundingClientRect(),r=t.x,o=t.y,n=t.width,t=t.height;return e?[r+n/2+n/2*2*e[0],o+t/2+t/2*2*e[1]]:null})},e.moves=n,Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "creepyface-dance",
"version": "8.0.0",
"version": "8.0.1",
"main": "dist/index.js",

@@ -46,3 +46,3 @@ "types": "dist/index.d.ts",

},
"gitHead": "2f89af6504b7be2e0500b6ebc88b8a69b4780c39"
"gitHead": "58e9ba4f86aeb72171332ed6b92dfbb56f07dab4"
}
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