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

djorm

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

djorm - npm Package Compare versions

Comparing version 0.1.13-alpha.2 to 0.1.13-alpha.5

11

fields/TrivialField.js

@@ -9,7 +9,12 @@ const { ValueError } = require('../errors')

parse (value) {
if (this.choices && !this.choices.includes(value)) {
validateValue (inst, fieldName) {
const value = inst.get(fieldName)
if (
typeof value !== 'undefined' &&
this.choices &&
!this.choices.includes(value)
) {
throw new ValueError(`Invalid choice "${value}"`)
}
return value
return super.validateValue(inst, fieldName)
}

@@ -16,0 +21,0 @@ }

{
"name": "djorm",
"version": "0.1.13-alpha.2",
"version": "0.1.13-alpha.5",
"description": "Django like ORM framework",

@@ -39,3 +39,3 @@ "author": "Pavel Žák <pavel@zak.global>",

},
"gitHead": "cf6b2e83ef0abcc6543c50849658e15fec0b2aa0"
"gitHead": "c88e59efda9c8ccd5a99e2c056f71432cbb33720"
}
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