Socket
Socket
Sign inDemoInstall

knex

Package Overview
Dependencies
Maintainers
4
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knex - npm Package Compare versions

Comparing version 0.95.12 to 0.95.13

16

lib/dialects/postgres/schema/pg-columncompiler.js

@@ -75,3 +75,6 @@ // PostgreSQL Column Compiler

useTz = typeof useTz === 'boolean' ? useTz : true;
precision = precision ? '(' + precision + ')' : '';
precision =
precision !== undefined && precision !== null
? '(' + precision + ')'
: '';

@@ -82,12 +85,3 @@ return `${useTz ? 'timestamptz' : 'timestamp'}${precision}`;

timestamp(withoutTz = false, precision) {
let useTz;
if (isObject(withoutTz)) {
({ useTz, precision } = withoutTz);
} else {
useTz = !withoutTz;
}
useTz = typeof useTz === 'boolean' ? useTz : true;
precision = precision ? '(' + precision + ')' : '';
return `${useTz ? 'timestamptz' : 'timestamp'}${precision}`;
return this.datetime(withoutTz, precision);
}

@@ -94,0 +88,0 @@

{
"name": "knex",
"version": "0.95.12",
"version": "0.95.13",
"description": "A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3",

@@ -5,0 +5,0 @@ "main": "knex",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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