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

brisky-struct

Package Overview
Dependencies
Maintainers
1
Versions
397
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brisky-struct - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

8

lib/compute.js

@@ -18,3 +18,9 @@ const get = t => t.val !== void 0 ? t.val : t.inherits && get(t.inherits)

if (type === 'object') {
if (val.inherits) { val = compute(val) || val }
if (val.inherits) {
const v = val
val = compute(val)
if (val === void 0) {
val = v
}
}
} else if (type === 'function') {

@@ -21,0 +27,0 @@ val = val(val, passon || t)

2

package.json
{
"name": "brisky-struct",
"description": "An observable data structure",
"version": "0.0.15",
"version": "0.0.16",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -28,3 +28,5 @@ const test = require('tape')

t.equal(a.get('bye').compute(x), '100?', 'chain to compute')
x.set(void 0)
t.equal(a.compute(x), x, 'undefined when passed a value will return the struct')
t.end()
})
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