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

ember-keyboard

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-keyboard - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

13

addon/initializers/ember-keyboard-first-responder-inputs.js

@@ -1,9 +0,8 @@

import Ember from 'ember';
import { EKMixin, EKFirstResponderOnFocusMixin } from 'ember-keyboard';
import TextArea from '@ember/component/text-area';
import TextField from '@ember/component/text-field';
import {
EKMixin,
EKFirstResponderOnFocusMixin
} from 'ember-keyboard';
const {
TextArea,
TextField
} = Ember;
export function initialize() {

@@ -10,0 +9,0 @@ TextField.reopen(EKMixin, EKFirstResponderOnFocusMixin);

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

import Ember from 'ember';
import codeMap from 'ember-keyboard/fixtures/code-map';

@@ -12,3 +11,4 @@ import listenerName from 'ember-keyboard/utils/listener-name';

if (validKeys.indexOf(key) === -1) {
Ember.Logger.error(`\`${key}\` is not a valid key name`);
/* eslint no-console: ["error", { allow: ["error"] }] */
console.error(`\`${key}\` is not a valid key name`);
}

@@ -15,0 +15,0 @@ });

@@ -1,9 +0,5 @@

import Ember from 'ember';
import Mixin from '@ember/object/mixin';
import { on } from '@ember/object/evented';
import { set } from '@ember/object';
const {
Mixin,
on,
set
} = Ember;
export default Mixin.create({

@@ -10,0 +6,0 @@ activateKeyboardWhenFocused: on('click', 'focusIn', function() {

@@ -1,9 +0,5 @@

import Ember from 'ember';
import Mixin from '@ember/object/mixin';
import { on } from '@ember/object/evented';
import { set } from '@ember/object';
const {
Mixin,
on,
set
} = Ember;
export default Mixin.create({

@@ -10,0 +6,0 @@ activateKeyboardWhenPresent: on('didInsertElement', function() {

@@ -1,11 +0,6 @@

import Ember from 'ember';
import { inject as service } from '@ember/service';
import Evented from '@ember/object/evented';
import Mixin from '@ember/object/mixin';
import { get } from '@ember/object';
const {
Evented,
Mixin,
get
} = Ember;
const { inject: { service } } = Ember;
export default Mixin.create(Evented, {

@@ -12,0 +7,0 @@ keyboardPriority: 0,

@@ -1,10 +0,5 @@

import Ember from 'ember';
import Mixin from '@ember/object/mixin';
import { on } from '@ember/object/evented';
import { setProperties, set } from '@ember/object';
const {
Mixin,
on,
set,
setProperties
} = Ember;
export default Mixin.create({

@@ -11,0 +6,0 @@ makeFirstResponderOnFocusIn: on('click', 'focusIn', function() {

@@ -1,3 +0,2 @@

import Ember from 'ember';
import assignPolyfill from 'ember-keyboard/utils/assign-polyfill';
import { assign } from '@ember/polyfills';
import DEFAULT_CODE_MAP from 'ember-keyboard/fixtures/code-maps/default';

@@ -10,4 +9,2 @@ import MAC_CHROME_AND_SAFARI_CODE_MAP from 'ember-keyboard/fixtures/code-maps/mac-safari-and-chrome';

const assign = Ember.assign || assignPolyfill;
export default function generateCodeMap(platform = '', product = '') {

@@ -14,0 +11,0 @@ const isGecko = product.indexOf('Gecko') > -1;

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

import Ember from 'ember';
import assign from './assign-polyfill';
import $ from 'jquery';
import { assign } from '@ember/polyfills';
import getCmdKey from './get-cmd-key';

@@ -8,3 +8,3 @@ import { getKeyCode } from 'ember-keyboard';

const triggerKeyEvent = function triggerKeyEvent(eventType, rawCode, element) {
const event = Ember.$.Event(eventType);
const event = $.Event(eventType);
const parts = rawCode.split('+');

@@ -22,3 +22,3 @@ const [code] = parts.filter((part) => !validModifiers.includes(part));

Ember.$(element || document).trigger(event);
$(element || document).trigger(event);
};

@@ -25,0 +25,0 @@

The MIT License (MIT)
Copyright (c) 2016
Copyright (c) 2017

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

{
"name": "ember-keyboard",
"version": "2.2.1",
"version": "2.2.2",
"description": "An Ember.js addon for the painless support of keyboard events",

@@ -21,3 +21,3 @@ "keywords": [

"dependencies": {
"ember-cli-babel": "^6.3.0"
"ember-cli-babel": "^6.8.2"
},

@@ -27,3 +27,3 @@ "devDependencies": {

"ember-ajax": "^3.0.0",
"ember-cli": "~2.15.0",
"ember-cli": "~2.16.2",
"ember-cli-dependency-checker": "^2.0.0",

@@ -36,5 +36,4 @@ "ember-cli-eslint": "^4.0.0",

"ember-cli-qunit": "^4.0.0",
"ember-cli-shims": "^1.1.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^1.2.0",
"ember-cli-uglify": "^2.0.0",
"ember-disable-prototype-extensions": "^1.1.2",

@@ -46,5 +45,7 @@ "ember-export-application-global": "^2.0.0",

"ember-resolver": "^4.0.0",
"ember-source": "~2.15.0",
"ember-source": "~2.16.1",
"highlightjs": "^9.10.0",
"loader.js": "^4.2.3",
"markdown-code-highlighting": "0.0.6"
"marked": "^0.3.6",
"markdown-code-highlighting": "^0.2.0"
},

@@ -51,0 +52,0 @@ "engines": {

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

import Ember from 'ember';
import { registerAsyncHelper } from '@ember/test';
import { getKeyCode } from 'ember-keyboard';

@@ -22,13 +22,13 @@ import validModifiers from 'ember-keyboard/fixtures/modifiers-array';

export default function() {
Ember.Test.registerAsyncHelper('keyDown', function(app, attributes, element) {
registerAsyncHelper('keyDown', function(app, attributes, element) {
return keyEvent(app, attributes, 'keydown', element);
});
Ember.Test.registerAsyncHelper('keyUp', function(app, attributes, element) {
registerAsyncHelper('keyUp', function(app, attributes, element) {
return keyEvent(app, attributes, 'keyup', element);
});
Ember.Test.registerAsyncHelper('keyPress', function(app, attributes, element) {
registerAsyncHelper('keyPress', function(app, attributes, element) {
return keyEvent(app, attributes, 'keypress', element);
});
}
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