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.2

2

dist/state-model.cjs.js

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

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

@@ -8,0 +8,0 @@ */

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

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

@@ -8,0 +8,0 @@ */

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

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

@@ -8,0 +8,0 @@ */

/**
* @license
* author: bramblex<qjnight@gmail.com>
* state-model.js v1.0.0
* state-model.js v1.0.1
* 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}({});
{
"name": "@bramblex/state-model",
"version": "1.0.1",
"version": "1.0.2",
"description": "Simple model",

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

},
"gitHead": "d07bbd6f87bac044201cf349a0bcfde0789fc244"
"gitHead": "9f79365992b62554afad8fd56bc74f0d6fb63e76",
"publishConfig": {
"access": "public"
}
}