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

commonform-resolve

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commonform-resolve - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

10

index.js

@@ -61,7 +61,3 @@ const deepEqual = require('deep-equal')

function resolveElement (element, path, values, numbering, headings) {
if (predicate.text(element)) {
return element
} else if (predicate.use(element)) {
return element
} else if (predicate.child(element)) {
if (predicate.child(element)) {
element.numbering = numbering.numbering

@@ -79,4 +75,2 @@ element.form = resolveForm(

return element
} else if (predicate.definition(element)) {
return element
} else if (predicate.reference(element)) {

@@ -118,3 +112,3 @@ const heading = element.reference

} else {
throw new Error('Invalid content: ' + JSON.stringify(element))
return element
}

@@ -121,0 +115,0 @@ }

4

package.json
{
"name": "commonform-resolve",
"description": "resolve definitions, uses, references, fields, and blanks",
"version": "3.0.0",
"version": "4.0.0",
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (http://kemitchell.com)",
"dependencies": {
"commonform-number": "^2.0.0",
"commonform-predicate": "^4.0.0",
"commonform-predicate": "^6.0.0",
"deep-equal": "^2.0.5",

@@ -10,0 +10,0 @@ "has": "^1.0.3"

@@ -187,16 +187,2 @@ # commonform-resolve

Throws on invalid content:
```javascript
assert.throws(
function () {
resolve(
{content: [ { invalid: 'object' } ] },
{}
)
},
/Invalid content/
)
```
Attaches numberings to form objects:

@@ -203,0 +189,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