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.19-alpha.15 to 0.2.0-alpha.0

7

config.js

@@ -28,2 +28,4 @@ let currentConfig = {

let up = false
const init = async () => {

@@ -41,2 +43,3 @@ const settings = getSettings()

}
up = true
}

@@ -50,9 +53,13 @@

require('./init/databases').shutdown()
up = false
}
const isUp = () => up
module.exports = {
configure,
getSettings,
isUp,
init,
shutdown
}

2

init/logger.js

@@ -13,3 +13,3 @@ const logger = require('../logger')

if (!createTransport) {
options.prettyPrint = {}
options.transport = { target: 'pino-pretty' }
}

@@ -16,0 +16,0 @@ logger.init(

const noop = () => {}
const defaultLogger = {
child () {
return this
},
debug: noop,

@@ -27,2 +30,3 @@ error: console.error,

module.exports = {
child: proxy('child'),
debug: proxy('debug'),

@@ -29,0 +33,0 @@ error: proxy('error'),

@@ -192,3 +192,3 @@ const { DatabaseModelBase } = require('./DatabaseModelBase')

.exec()
if (result.insertId) {
if (result.insertId && !this.pk) {
this.set(row.model.pkName, result.insertId)

@@ -222,8 +222,8 @@ // Set this back to the cascade ^^

async save () {
async save (...args) {
await this.validate()
if (this.pk) {
return await this.update()
return await this.update(...args)
}
return await this.create()
return await this.create(...args)
}

@@ -230,0 +230,0 @@

{
"name": "djorm",
"version": "0.1.19-alpha.15",
"version": "0.2.0-alpha.0",
"description": "Django like ORM framework",

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

"moment-timezone": "^0.5.33",
"pino": "^6.11.3",
"pino-pretty": "^5.0.2",
"pino": "^8.14.1",
"pino-pretty": "^10.0.0",
"uuid": "^9.0.0"
},
"gitHead": "1dd4de9c54dbf98bd3ce060e28e6cc2254b20c7f"
"gitHead": "6b3e128d9788969f227cc7df3363fa89671e9371"
}
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