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

jetstate

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jetstate - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

LICENSE

12

index.js

@@ -9,7 +9,8 @@ "use strict";

/**
* init new state
* @description init new state
* @public
* @version 1.2.0
* @param {object} config
* @param {string} config.name name state
* @param {any} config.defaultValue default value
* @param {function} config.willReceive function for before get state
* @param {function} config.willUpdate function for before set state

@@ -23,4 +24,3 @@ * @param {function} config.shouldUpdate function for is need update

Object.defineProperty(state, config.name, {
get: function get() {
config.willReceive && config.willReceive(state.__container__[config.name]);
get: function get() {
return state.__container__[config.name];

@@ -39,4 +39,6 @@ },

/**
* state container
* @description state container
* @public
* @version 1.2.0
*/
exports.state = state;
{
"name": "jetstate",
"version": "1.1.1",
"version": "1.2.0",
"description": "state managment",

@@ -5,0 +5,0 @@ "main": "index.js",

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