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

creepyface-tilt

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

creepyface-tilt - npm Package Compare versions

Comparing version 8.1.3 to 8.2.0-alpha.1

2

dist/index.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("creepyface")):"function"==typeof define&&define.amd?define(["creepyface"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).creepyface)}(this,function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){u=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t(e).default.registerPointProvider("tilt",function(n){function e(e){var t=e.beta,e=e.gamma;null!==t&&null!==e&&(r?n([-(window.innerWidth*(e-r.gamma))/90,-(window.innerHeight*(t-r.beta))/180]):r={beta:t,gamma:e})}var r;return window.addEventListener("deviceorientation",e,!0),function(){window.removeEventListener("deviceorientation",e,!0)}},function(e,t){if(!e)return e;var n,r,i,i=(n=(r=(i=t).getBoundingClientRect()).left,o=r.top,i=r.width,r=r.height,[n+window.pageXOffset+i/2,o+window.pageYOffset+r/2]),e=(o=i,r=(e=a(r=e,2))[0],e=e[1],o=a(o,2),[r+o[0],e+o[1]]),o=Math.min(t.offsetWidth,t.offsetHeight)/4;return t=e,i=i,Math.sqrt([t[0]-i[0],t[1]-i[1]].map(function(e){return Math.pow(e,2)}).reduce(function(e,t){return e+t},0))>o?e:null})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("creepyface")):"function"==typeof define&&define.amd?define(["creepyface"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).creepyface)}(this,function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){u=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(e,t)||function(e,t){var n;if(e)return"string"==typeof e?r(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t(e).default.registerPointProvider("tilt",function(n){function e(e){var t=e.beta,e=e.gamma;null!==t&&null!==e&&(r?n([-(window.innerWidth*(e-r.gamma))/90,-(window.innerHeight*(t-r.beta))/180]):r={beta:t,gamma:e})}var r;return window.addEventListener("deviceorientation",e,!0),function(){window.removeEventListener("deviceorientation",e,!0)}},function(e,t){var n,r,i,o;return e&&(n=(i=(i=t).getBoundingClientRect()).left,o=i.top,r=i.width,i=i.height,n=[n+window.pageXOffset+r/2,o+window.pageYOffset+i/2],r=n,o=a(o=e,2),i=o[0],o=o[1],r=a(r,2),i=[i+r[0],o+r[1]],o=Math.min(t.offsetWidth,t.offsetHeight)/4,Math.sqrt([i[0]-n[0],i[1]-n[1]].map(function(e){return Math.pow(e,2)}).reduce(function(e,t){return e+t},0))>o?i:null)})});
{
"name": "creepyface-tilt",
"version": "8.1.3",
"version": "8.2.0-alpha.1",
"main": "dist/index.js",

@@ -33,14 +33,14 @@ "types": "dist/index.d.ts",

"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@babel/preset-typescript": "^7.14.5",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"creepyface": "^8.1.3",
"rollup": "^2.52.3",
"@babel/core": "^7.18.13",
"@babel/preset-env": "^7.18.10",
"@babel/preset-typescript": "^7.18.6",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^13.3.0",
"creepyface": "^8.2.0-alpha.1",
"rollup": "^2.79.0",
"rollup-plugin-uglify": "^6.0.4",
"typescript": "^4.3.4"
"typescript": "^4.8.2"
},
"gitHead": "0fa29a933e9f3aeb209533d65506f78279d89c46"
"gitHead": "64f2aa25ff03abe11da3a6e0701fa73c70a9c368"
}
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