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

@lightningtv/core

Package Overview
Dependencies
Maintainers
0
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningtv/core - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

2

dist/src/states.d.ts

@@ -8,4 +8,4 @@ export type NodeStates = string[] | string | Record<string, boolean | undefined>;

add(state: string): void;
toggle(state: string): void;
toggle(state: string, force?: boolean): void;
remove(state: string): void;
}

@@ -29,8 +29,20 @@ import { isArray, isString } from './utils.js';

}
toggle(state) {
if (this.has(state)) {
this.remove(state);
toggle(state, force) {
if (force === true) {
if (!this.has(state)) {
this.add(state);
}
}
else if (force === false) {
if (this.has(state)) {
this.remove(state);
}
}
else {
this.add(state);
if (this.has(state)) {
this.remove(state);
}
else {
this.add(state);
}
}

@@ -37,0 +49,0 @@ }

{
"name": "@lightningtv/core",
"version": "0.1.4",
"version": "0.1.5",
"description": "Lightning TV Core for Universal Renderers",

@@ -5,0 +5,0 @@ "type": "module",

@@ -41,7 +41,17 @@ import { isArray, isString } from './utils.js';

toggle(state: string) {
if (this.has(state)) {
this.remove(state);
toggle(state: string, force?: boolean) {
if (force === true) {
if (!this.has(state)) {
this.add(state);
}
} else if (force === false) {
if (this.has(state)) {
this.remove(state);
}
} else {
this.add(state);
if (this.has(state)) {
this.remove(state);
} else {
this.add(state);
}
}

@@ -48,0 +58,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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