ts-dynamic-query
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -6,2 +6,3 @@ "use strict"; | ||
const class_transformer_1 = require("class-transformer"); | ||
const ts_commons_1 = require("ts-commons"); | ||
class SortDescriptor extends sortDescriptorBase_1.SortDescriptorBase { | ||
@@ -13,3 +14,5 @@ constructor(options) { | ||
if (options) { | ||
this.direction = options.direction; | ||
this.direction = ts_commons_1.ObjectUtils.isNullOrUndefined(options.direction) | ||
? enums_1.SortDirection.ASC | ||
: options.direction; | ||
this.propertyPath = options.propertyPath.toString(); | ||
@@ -16,0 +19,0 @@ } |
{ | ||
"name": "ts-dynamic-query", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -15,3 +15,5 @@ import { SortDescriptorBase } from "./sortDescriptorBase"; | ||
if (options) { | ||
this.direction = options.direction; | ||
this.direction = ObjectUtils.isNullOrUndefined(options.direction) | ||
? SortDirection.ASC | ||
: options.direction; | ||
this.propertyPath = options.propertyPath.toString(); | ||
@@ -18,0 +20,0 @@ } |
Sorry, the diff of this file is not supported yet
203615
3380