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

leoric

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leoric - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

5

History.md

@@ -0,1 +1,6 @@

0.4.5 / 2019-12-14
==================
* Fix: prevent primary key from being overridden with incorrect `LAST_INSERT_ID()`
0.4.4 / 2019-07-15

@@ -2,0 +7,0 @@ ==================

3

lib/bone.js

@@ -313,3 +313,4 @@ 'use strict'

const result = await Model.query(spell)
this[primaryKey] = result.insertId
// LAST_INSERT_ID() breaks on TDDL
if (this[primaryKey] == null) this[primaryKey] = result.insertId
this.syncRaw()

@@ -316,0 +317,0 @@ return result.affectedRows

{
"name": "leoric",
"version": "0.4.4",
"version": "0.4.5",
"description": "JavaScript Object-relational mapping alchemy",

@@ -35,3 +35,3 @@ "main": "index.js",

"debug": "^3.1.0",
"deep-equal": "^1.0.1",
"deep-equal": "^1.1.1",
"pluralize": "^7.0.0",

@@ -42,11 +42,13 @@ "sqlstring": "^2.3.0"

"@cara/minami": "^1.2.3",
"coveralls": "^3.0.2",
"babel-eslint": "^10.0.3",
"coveralls": "^3.0.9",
"eslint": "^6.7.2",
"expect.js": "^0.3.1",
"jsdoc": "^3.5.5",
"jsdoc": "^3.6.3",
"mocha": "^5.2.0",
"mysql": "^2.15.0",
"mysql2": "^1.5.1",
"mysql": "^2.17.1",
"mysql2": "^1.7.0",
"nyc": "^13.1.0",
"pg": "^7.6.0"
"pg": "^7.14.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