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

@semantic-ui/reactivity

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semantic-ui/reactivity - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

4

package.json
{
"name": "@semantic-ui/reactivity",
"version": "0.0.12",
"version": "0.0.13",
"type": "module",

@@ -10,3 +10,3 @@ "main": "src/index.js",

"dependencies": {
"@semantic-ui/utils": "^0.0.12"
"@semantic-ui/utils": "^0.0.13"
},

@@ -13,0 +13,0 @@ "devDependencies": {

@@ -84,2 +84,11 @@ import { clone, isObject, isEqual, wrapFunction, findIndex, unique, isNumber } from '@semantic-ui/utils';

}
map(mapFunction) {
const newValue = this.map(mapFunction);
this.set(newValue);
}
filter(filterFunction) {
const newValue = this.filter((value) => !filterFunction(value));
this.set(newValue);
}
setIndex(index, value) {

@@ -116,11 +125,2 @@ let arr = this.value;

changeItems(mapFunction) {
const newValue = this.clone(this.currentValue).map(mapFunction);
this.set(newValue);
}
removeItems(filterFunction) {
const newValue = this.clone(this.currentValue).filter((value) => !filterFunction(value));
this.set(newValue);
}
toggle() {

@@ -127,0 +127,0 @@ return this.set(!this.value);

@@ -238,7 +238,7 @@ import { describe, it, expect, vi } from 'vitest';

it('changeItems should change each item based on a map function', () => {
it('map should change each item based on a map function', () => {
// code here
});
it('removeItems should remove items based on a filter callback', () => {
it('filter should remove items based on a filter callback', () => {
// code here

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

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