Socket
Socket
Sign inDemoInstall

objection

Package Overview
Dependencies
Maintainers
2
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

objection - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

2

lib/queryBuilder/InternalOptions.js

@@ -9,2 +9,3 @@ 'use strict';

this.debug = false;
this.schema = undefined;
}

@@ -19,2 +20,3 @@

copy.debug = this.debug;
copy.schema = this.schema;

@@ -21,0 +23,0 @@ return copy;

@@ -847,4 +847,7 @@ 'use strict';

const columnInfoQuery = knex(last(tableParts)).columnInfo();
const schema = this.internalOptions().schema;
if (tableParts.length > 1) {
if (schema) {
columnInfoQuery.withSchema(schema);
} else if (tableParts.length > 1) {
columnInfoQuery.withSchema(tableParts[0]);

@@ -861,2 +864,3 @@ }

withSchema(schema) {
this.internalOptions().schema = schema;
this.internalContext().onBuild.push(builder => {

@@ -863,0 +867,0 @@ if (!builder.has(/withSchema/)) {

2

package.json
{
"name": "objection",
"version": "2.2.2",
"version": "2.2.3",
"description": "An SQL-friendly ORM for Node.js",

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

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