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

skhema

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

skhema - npm Package Compare versions

Comparing version 5.2.4 to 5.2.5-48-const-revolver-864db6644a2cddfada888c3cb979498b2107eabe

4

CHANGELOG.md

@@ -7,2 +7,6 @@ # Change Log

## 5.2.5 - 2019-05-09
* Add a resolver for the const keyword [Lucian]
## 5.2.4 - 2019-04-15

@@ -9,0 +13,0 @@

@@ -695,2 +695,8 @@ /*

]
},
// When resolving the const keyword, later values should override
// earlier ones
const: (values) => {
return values[1]
}

@@ -697,0 +703,0 @@ }, options.resolvers)

2

package.json
{
"name": "skhema",
"version": "5.2.4",
"version": "5.2.5-48-const-revolver-864db6644a2cddfada888c3cb979498b2107eabe",
"description": "JSON Schema utility collection",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -621,3 +621,37 @@ [

}
},
{
"schemas": [
{
"type": "object",
"properties": {
"foo": {
"const": 1,
"type": "number"
}
},
"required": [ "foo" ]
},
{
"type": "object",
"properties": {
"foo": {
"const": 2,
"type": "number"
}
},
"required": [ "foo" ]
}
],
"expected": {
"type": "object",
"properties": {
"foo": {
"const": 2,
"type": "number"
}
},
"required": [ "foo" ]
}
}
]
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