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 7.4.5 to 7.4.6

LICENSE

4

dist/index.d.ts

@@ -5,3 +5,3 @@ import { PointProvider } from 'creepyface';

export declare type Step = Direction | 'serious' | 'crazy';
export declare function makePointProvider({ name, audio, bpm, firstBeat, choreography }: {
export declare function makePointProvider({ name, audio, bpm, firstBeat, choreography, }: {
name: string;

@@ -16,4 +16,4 @@ audio: HTMLAudioElement;

intercalate: (steps: Step[], step: Step) => Step[];
circle: (from: "s" | "n" | "ne" | "e" | "se" | "sw" | "w" | "nw", clockwise?: boolean) => Step[];
circle: (from: Direction, clockwise?: boolean) => Step[];
};
export {};

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

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

"scripts": {
"start": "open test/index.html",
"dev": "open test/index.html",
"build": "NODE_ENV=production tsc --emitDeclarationOnly && rollup -c",

@@ -32,17 +32,18 @@ "prepublishOnly": "yarn build"

"devDependencies": {
"@babel/core": "^7.7.5",
"@babel/preset-env": "^7.9.6",
"@babel/preset-typescript": "^7.7.4",
"@rollup/plugin-node-resolve": "^6.0.0",
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-typescript": "^7.12.7",
"@rollup/plugin-node-resolve": "^11.1.1",
"@types/lodash.flatten": "^4.4.6",
"@types/lodash.range": "^3.2.6",
"creepyface": "^7.4.5",
"creepyface": "^7.4.6",
"lodash.flatten": "^4.4.0",
"lodash.range": "^3.2.0",
"rollup": "^1.27.13",
"rollup-plugin-babel": "^4.3.3",
"rollup": "^2.38.2",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-uglify": "^6.0.4",
"typescript": "^3.7.3"
}
"typescript": "^4.1.3"
},
"gitHead": "84b06a1152c3373eaa34eef256ab28262b9db41b"
}

@@ -39,4 +39,4 @@ # Creepyface Dance &middot; [![npm version](https://img.shields.io/npm/v/creepyface-dance.svg?style=flat)](https://www.npmjs.com/package/creepyface-dance)

...repeat(20)(circle('n')),
...repeat(20)(circle('s', true))
])
...repeat(20)(circle('s', true)),
]),
})

@@ -72,3 +72,3 @@ </script>

- `yarn start` will spin up a test page.
- `yarn dev` will spin up a test page.
- `yarn build` will generate the production scripts under the `dist` folder.
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