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

@bramblex/state-model

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bramblex/state-model - npm Package Compare versions

Comparing version

to
1.0.3

5

dist/state-model.cjs.js

@@ -5,3 +5,3 @@

* author: bramblex<qjnight@gmail.com>
* state-model.js v1.0.1
* state-model.js v1.0.2
* Released under the MIT license.

@@ -15,5 +15,4 @@ */

class StateModel {
state;
listeners = [];
constructor(state) {
this.listeners = [];
this.state = state;

@@ -20,0 +19,0 @@ }

@@ -5,3 +5,3 @@

* author: bramblex<qjnight@gmail.com>
* state-model.js v1.0.1
* state-model.js v1.0.2
* Released under the MIT license.

@@ -11,5 +11,4 @@ */

class StateModel {
state;
listeners = [];
constructor(state) {
this.listeners = [];
this.state = state;

@@ -16,0 +15,0 @@ }

@@ -5,3 +5,3 @@

* author: bramblex<qjnight@gmail.com>
* state-model.js v1.0.1
* state-model.js v1.0.2
* Released under the MIT license.

@@ -14,5 +14,4 @@ */

class StateModel {
state;
listeners = [];
constructor(state) {
this.listeners = [];
this.state = state;

@@ -19,0 +18,0 @@ }

4

dist/state-model.min.js
/**
* @license
* author: bramblex<qjnight@gmail.com>
* state-model.js v1.0.1
* state-model.js v1.0.2
* Released under the MIT license.
*/
var StateModel=function(t){"use strict";return t.StateModel=class{state;listeners=[];constructor(t){this.state=t}onStateChange(t){const e=(...e)=>t(...e);return this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>t!==e))}}setState(t){const e=this.state;this.state=t,this.listeners.forEach((s=>s(t,e,this)))}},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
var StateModel=function(t){"use strict";return t.StateModel=class{constructor(t){this.listeners=[],this.state=t}onStateChange(t){const e=(...e)=>t(...e);return this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>t!==e))}}setState(t){const e=this.state;this.state=t,this.listeners.forEach((s=>s(t,e,this)))}},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
{
"name": "@bramblex/state-model",
"version": "1.0.2",
"version": "1.0.3",
"description": "Simple model",

@@ -39,3 +39,3 @@ "homepage": "https://github.com/bramblex/state-model",

},
"gitHead": "9f79365992b62554afad8fd56bc74f0d6fb63e76",
"gitHead": "c72e03e342f8fc6dbfae868bced273507041acd6",
"publishConfig": {

@@ -42,0 +42,0 @@ "access": "public"