Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
akutil-common
Advanced tools
A set of common utilities for all AtlasKit components
A general class to deal with key activations
Like el.hasAttribute(attr) but designed for use within a skate attribute change handler where you only have access to change.oldValue.
This property extension can be used with skate. Usage:
props: { respondsTo: props.enum({values: ['toggle', 'hover'], missingDefault: 'toggle', invalidDefault: 'toggle'})({
})
}
A general class to deal with key activations
Kind: global class
new KeyPressHandler(key, callback, [elem])
Adds a new keypress handler
Param | Type | Description |
---|---|---|
key | String | A named key. Case insensitive. |
callback | function | A callback function to invoke if the given key was activated. The callback is passed the event object. |
[elem] | Node | The element to listen for the key activation. Defaults to document if none given. |
keyPressHandler.add(key, callback)
Adds or replaces a key that is listened for.
Kind: instance method of KeyPressHandler
Param | Type | Description |
---|---|---|
key | String | A named key. Case insensitive. Replaces any previous listened key. |
callback | function | The callback function to invoke. |
keyPressHandler.destroy([key])
Removes a key from the list of listened keys. Or removes the whole listener if no key given.
Kind: instance method of KeyPressHandler
Param | Type | Description |
---|---|---|
[key] | String | A named key. Case insensitive. If none given, event listener is removed. |
computeBooleanValue()
Like el.hasAttribute(attr) but designed for use within a skate attribute change handler where you only have access to change.oldValue.
enumeration()
This property extension can be used with skate. Usage:
props: {
respondsTo: props.enum({values: ['toggle', 'hover'],
missingDefault: 'toggle',
invalidDefault: 'toggle'})({
})
}
Kind: global function
FAQs
Utilities shared by AtlasKit components
The npm package akutil-common receives a total of 224 weekly downloads. As such, akutil-common popularity was classified as not popular.
We found that akutil-common demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.