Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alkali

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alkali - npm Package Compare versions

Comparing version 0.21.17 to 0.21.18

2

package.json
{
"name": "alkali",
"author": "Kris Zyp",
"version": "0.21.17",
"version": "0.21.18",
"description": "Reactivity with native JavaScript objects and HTML elements",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -930,2 +930,24 @@ define(function(require) {

test('inner validate', function() {
var Inner = Variable.with({
text: VString,
validate: o => {
o = o.valueOf()
var valid = []
valid.isValid = true
return valid
}
})
var Outer = Variable.with({
inners: [Inner],
})
// fails in transform below: TypeError: Cannot read property 'properties' of undefined at VString.get (Variable.js:1170)
var extraction = new Outer({ inners: [{ text: 'abcd' }]})
var inner = extraction.inners.property(0)
// succeeds
//var inner = new Inner({ text: 'abcd' })
var isValid = inner.text.validation.to(v => v.isValid).valueOf()
})
test('composite', function() {

@@ -932,0 +954,0 @@ var a = new Variable(1)

Sorry, the diff of this file is too big to display

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