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

coin-clicks

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coin-clicks - npm Package Compare versions

Comparing version 0.0.3 to 1.0.0

26

addon/initializers/coin-clicks.js
import $ from 'jquery';
export function initialize(/* container, application */) {
$(window).on('click', addCoin);
const stack = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65];
let currentStack = stack.slice();
$(window).on('keyup.coin-clicks', event => {
const keyCode = currentStack.shift();
if (event.keyCode === keyCode) {
if (currentStack.length === 0) {
$(window).on('click.coin-clicks', addCoin);
$(window).off('keyup.coin-clicks');
}
} else {
currentStack = stack.slice();
}
});
}

@@ -11,3 +27,11 @@

let coinCount = 0;
function addCoin(event) {
coinCount++;
if (coinCount >= 10) {
$(window).off('click.coin-clicks');
initialize();
coinCount = 0;
}
const $img = $('<img>')

@@ -14,0 +38,0 @@ .attr('src', '/coin-clicks/img/coin.gif')

2

package.json
{
"name": "coin-clicks",
"version": "0.0.3",
"version": "1.0.0",
"description": "The default blueprint for ember-cli addons.",

@@ -5,0 +5,0 @@ "directories": {

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