Socket
Socket
Sign inDemoInstall

knex

Package Overview
Dependencies
Maintainers
6
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.20.12 to 0.20.13

11

CHANGELOG.md
# Master (Unreleased)
# 0.20.13 - 23 March, 2020
### Bug fixes:
- Correctly handle dateToString escaping without timezone passed #3742
- Make protocol length check more defensive #3744
### Typings:
- Make the ChainableInterface conform to Promise<T> #3724
# 0.20.12 - 19 March, 2020

@@ -4,0 +15,0 @@

4

lib/interface.js

@@ -95,3 +95,7 @@ const { isEmpty, map, clone } = require('lodash');

Object.defineProperty(Target.prototype, Symbol.toStringTag, {
get: () => 'object',
});
finallyMixin(Target.prototype);
};

2

lib/query/string.js

@@ -104,3 +104,3 @@ /*eslint max-len: 0, no-var:0 */

function dateToString(date, finalEscape, ctx) {
function dateToString(date, finalEscape, ctx = {}) {
const timeZone = ctx.timeZone || 'local';

@@ -107,0 +107,0 @@

@@ -9,3 +9,3 @@ const url = require('url');

let { protocol } = parsed;
const isDriveLetter = isWindows && protocol.length === 2;
const isDriveLetter = isWindows && protocol && protocol.length === 2;
if (protocol === null || isDriveLetter) {

@@ -12,0 +12,0 @@ return {

{
"name": "knex",
"version": "0.20.12",
"version": "0.20.13",
"description": "A batteries-included SQL query & schema builder for Postgres, MySQL and SQLite3 and the Browser",

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

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