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

@semantic-ui/query

Package Overview
Dependencies
Maintainers
0
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semantic-ui/query - npm Package Compare versions

Comparing version 0.0.30 to 0.0.31

4

package.json

@@ -26,5 +26,5 @@ {

"dependencies": {
"@semantic-ui/utils": "^0.0.30"
"@semantic-ui/utils": "^0.0.31"
},
"version": "0.0.30"
"version": "0.0.31"
}

@@ -355,3 +355,3 @@ import { isPlainObject, isString, isArray, isDOM, isFunction, findIndex, inArray, isClient, isObject, each } from '@semantic-ui/utils';

handler,
abort: () => abortController.abort(),
abort: (reason) => abortController.abort(reason),
};

@@ -358,0 +358,0 @@ eventHandlers.push(eventHandler);

@@ -557,2 +557,14 @@ import { describe, beforeEach, afterEach, expect, it, vi } from 'vitest';

it('should be able to remove event handlers using custom abortController', () => {
const div = document.createElement('div');
document.body.appendChild(div);
const callback = vi.fn();
const abortController = new AbortController();;
const eventHandler = $('div').on('click', callback, { abortController });
div.click();
abortController.abort();
div.click();
expect(callback).toHaveBeenCalledTimes(1);
});
it('should be able to remove event handlers using returned abortController', () => {

@@ -559,0 +571,0 @@ const div = document.createElement('div');

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