pgsql-deparser
Advanced tools
Comparing version 13.1.0 to 13.1.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [13.1.1](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.0...pgsql-deparser@13.1.1) (2021-03-26) | ||
**Note:** Version bump only for package pgsql-deparser | ||
# [13.1.0](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.0.5...pgsql-deparser@13.1.0) (2021-03-20) | ||
@@ -8,0 +16,0 @@ |
@@ -89,4 +89,7 @@ "use strict"; | ||
if (obj.defname === 'as') { | ||
if (obj.arg.List && obj.arg.List.items) { | ||
if (Array.isArray(obj.arg) && obj.arg.length) { | ||
// function | ||
obj.arg[0].String.str = obj.arg[0].String.str.trim(); | ||
} else if (obj.arg.List && obj.arg.List.items) { | ||
// function | ||
obj.arg.List.items[0].String.str = obj.arg.List.items[0].String.str.trim(); | ||
@@ -93,0 +96,0 @@ } else { |
@@ -67,4 +67,7 @@ /* eslint-disable no-restricted-syntax */ | ||
if (obj.defname === 'as') { | ||
if (obj.arg.List && obj.arg.List.items) { | ||
if (Array.isArray(obj.arg) && obj.arg.length) { | ||
// function | ||
obj.arg[0].String.str = obj.arg[0].String.str.trim(); | ||
} else if (obj.arg.List && obj.arg.List.items) { | ||
// function | ||
obj.arg.List.items[0].String.str = obj.arg.List.items[0].String.str.trim(); | ||
@@ -71,0 +74,0 @@ } else { |
{ | ||
"name": "pgsql-deparser", | ||
"version": "13.1.0", | ||
"version": "13.1.1", | ||
"description": "PostgreSQL AST Deparser", | ||
@@ -68,3 +68,3 @@ "author": "Dan Lynch <pyramation@gmail.com>", | ||
"jest": "^25.1.0", | ||
"pgsql-parser": "^13.1.0", | ||
"pgsql-parser": "^13.1.1", | ||
"prettier": "^2.1.2", | ||
@@ -79,3 +79,3 @@ "regenerator-runtime": "^0.13.2" | ||
}, | ||
"gitHead": "63f2e1051407eedb479a83676056ba1ede406e7d" | ||
"gitHead": "c5e0b03c8137c47c7317bbfc1a26ca7e758b0410" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
240376
6437