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

@wmfs/j2119

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wmfs/j2119 - npm Package Compare versions

Comparing version 1.6.2 to 1.6.3

2

lib/j2119/node_validator.js

@@ -62,3 +62,3 @@ class NodeValidator {

validateGrandchildren (childNode, name, path, roles, problems) {
if (typeof childNode !== 'object') return
if ((childNode === null) || (typeof childNode !== 'object')) return

@@ -65,0 +65,0 @@ // only objects & arrays have grand children

{
"name": "@wmfs/j2119",
"version": "1.6.2",
"version": "1.6.3",
"description": "A general-purpose validator generator that uses RFC2119-style assertions as input.",

@@ -5,0 +5,0 @@ "author": "West Midlands Fire Service",

@@ -19,2 +19,13 @@ /* eslint-env mocha */

const WITH_NULL_RESULT_PATH = {
StartAt: 'x',
States: {
x: {
Type: 'Pass',
ResultPath: null,
End: true
}
}
}
const WITH_ARRAY_RESULT = {

@@ -135,2 +146,8 @@ StartAt: 'No-op',

it('validate state machine with null result path', () => {
const v = validator(SCHEMA)
const p = v.validate(WITH_NULL_RESULT_PATH)
expect(p.length).to.eql(0)
})
it('validate state machine with result object', () => {

@@ -137,0 +154,0 @@ const v = validator(SCHEMA)

Sorry, the diff of this file is not supported yet

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