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

boxed-state

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

boxed-state - npm Package Compare versions

Comparing version 0.8.8 to 0.8.10

18

package.json
{
"name": "boxed-state",
"version": "0.8.8",
"version": "0.8.10",
"private": false,

@@ -17,12 +17,12 @@ "description": "Immutable proxy wrapper with exception free access to nested properties and auto-instantiation of intermediate containers when nested properties are defined",

"lodash.isstring": "^4.0.1",
"util-string-wrap": "^0.1.2",
"util-type-funcs": "^0.2.8",
"for-each-break": "^0.2.2",
"obj-each-break": "^0.1.10",
"boxed-out": "^0.1.4",
"boxed-immutable": "^0.8.4"
"util-string-wrap": "^0.1.4",
"util-type-funcs": "^0.2.10",
"for-each-break": "^0.2.4",
"obj-each-break": "^0.1.12",
"boxed-out": "^0.1.6",
"boxed-immutable": "^0.8.6"
},
"devDependencies": {
"jest": "^24.1.0",
"jest-each": "^24.0.0"
"jest": "^24.8.0",
"jest-each": "^24.8.0"
},

@@ -29,0 +29,0 @@ "scripts": {},

# boxed-state
[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)
[![experimental](https://badges.github.io/stability-badges/dist/experimental.svg)](https://github.com/badges/stability-badges)

@@ -42,7 +42,7 @@ Implements a wrapper for immutable state with encapsulation of `save()` and `cancel()`

// your current function for setting a new state
// your current function for setting a new state
function saveState(newState) {
// 1. update state
// 2. regardless of how this function is called, cancel
// the cached boxed state, then next access will be forced to
// 2. regardless of how this function is called, cancel
// the cached boxed state, then next access will be forced to
// get a fresh state

@@ -74,8 +74,8 @@ state_$.cancel();

// can use state as before or as boxed state, except now there is no need to get a new state
// can use state as before or as boxed state, except now there is no need to get a new state
// every time. The same state will reflect latest changes. Make a copy if you need immutable state
// NOTE: properties returned by state_$ are mutable, make a copy of state_$.$_value
// or use the old getSimpleState() function if you need an immutable copy between state change
// NOTE: properties returned by state_$ are mutable, make a copy of state_$.$_value
// or use the old getSimpleState() function if you need an immutable copy between state change
// make changes to state_$ properties

@@ -82,0 +82,0 @@

@@ -5,2 +5,3 @@ # Version History

- [0.8.10](#0810)
- [0.8.8](#088)

@@ -13,2 +14,10 @@ - [0.8.6](#086)

## 0.8.10
* Fix: update jest version
* Fix: update `util-string-wrap`
* Fix: update `util-type-funcs`
* Fix: update `for-each-break`
* Fix: update `obj-each-break`
## 0.8.8

@@ -15,0 +24,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