pwoli
Advanced tools
Comparing version 1.1.5 to 1.1.7
@@ -225,3 +225,3 @@ "use strict"; | ||
const scope = formName === null ? this.getFormName() : formName; | ||
if (scope === '' && !fs_extra_1.emptyDir(data)) { | ||
if (scope === '' && !(0, fs_extra_1.emptyDir)(data)) { | ||
this.setAttributeValues(data); | ||
@@ -228,0 +228,0 @@ return true; |
@@ -172,3 +172,3 @@ "use strict"; | ||
? this.attributes[attribute].label | ||
: inflected_1.humanize(attribute); | ||
: (0, inflected_1.humanize)(attribute); | ||
// let optionsHtml; | ||
@@ -175,0 +175,0 @@ // for (const option in options) |
@@ -130,6 +130,6 @@ import Component from '../base/Component'; | ||
static getValue(object: any, key: any, defaultValue?: any): any; | ||
static substrCompare(mainStr: any, str: any, offset: any, length: any, caseInsensitivity?: boolean): false | 1 | 0 | -1; | ||
static strcmp(str1: any, str2: any): 1 | 0 | -1; | ||
static substrCompare(mainStr: any, str: any, offset: any, length: any, caseInsensitivity?: boolean): false | 1 | -1 | 0; | ||
static strcmp(str1: any, str2: any): 1 | -1 | 0; | ||
static resolveDotStructuredObject(object: any, attribute: any): any; | ||
static findValuesByPrefix(object: any, prefix: any): {}; | ||
} |
@@ -47,3 +47,2 @@ "use strict"; | ||
sort[order[0]] = order[1] === 'asc' ? 1 : -1; | ||
console.log('fa-sort', query.order, sort, populate); | ||
return yield this.modelClass.find(condition).sort(sort).populate(populate).skip(skip).limit(limit); | ||
@@ -58,3 +57,2 @@ }); | ||
query.order.push(sort.getOrders()); | ||
console.log('as', query.order); | ||
return query; | ||
@@ -61,0 +59,0 @@ } |
@@ -44,3 +44,3 @@ "use strict"; | ||
} | ||
http_1.createServer(function (req, res) { | ||
(0, http_1.createServer)(function (req, res) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -47,0 +47,0 @@ pkgtest_lib_1.Application.view = new pkgtest_lib_1.View({}); |
@@ -44,3 +44,3 @@ "use strict"; | ||
} | ||
http_1.createServer(function (req, res) { | ||
(0, http_1.createServer)(function (req, res) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -47,0 +47,0 @@ pkgtest_lib_1.Application.view = new pkgtest_lib_1.View({}); |
@@ -388,3 +388,3 @@ "use strict"; | ||
fileInput(options = {}) { | ||
if (this.inputOptions !== { class: 'form-control' }) | ||
if (JSON.stringify(this.inputOptions) !== JSON.stringify({ class: 'form-control' })) | ||
options = Object.assign(Object.assign({}, this.inputOptions), options); | ||
@@ -391,0 +391,0 @@ if (this.form.options.encType === undefined) |
{ | ||
"name": "pwoli", | ||
"version": "1.1.5", | ||
"version": "1.1.7", | ||
"description": "", | ||
@@ -40,3 +40,11 @@ "main": "lib/index.js", | ||
"lib/**/*" | ||
], | ||
"keywords": [ | ||
"nodejs", | ||
"activerecord", | ||
"rest-api", | ||
"dataprovider", | ||
"sequelize", | ||
"mongoose" | ||
] | ||
} |
1464646
89
37131