periodicjs.core.data
Advanced tools
Comparing version 0.5.6 to 0.6.0
@@ -26,6 +26,6 @@ 'use strict'; | ||
let { sort, limit, population, fields, skip, } = ['sort', 'limit', 'population', 'fields', 'skip', ].reduce((result, key) => { | ||
if (options[key] && !isNaN(Number(options[key]))) options[key] = Number(options[key]); | ||
result[key] = options[key] || this[key]; | ||
return result; | ||
}, {}); | ||
let chain = Model.chain() | ||
@@ -130,2 +130,3 @@ .find((options.query && typeof options.query === 'object') ? options.query : {}); | ||
let { sort, limit, population, fields, skip, pagelength, query, } = ['sort', 'limit', 'population', 'fields', 'skip', 'pagelength', 'query', ].reduce((result, key) => { | ||
if (options[key] && !isNaN(Number(options[key]))) options[key] = Number(options[key]); | ||
result[key] = options[key] || this[key]; | ||
@@ -269,2 +270,3 @@ return result; | ||
let { sort, population, fields, docid, } = ['sort', 'population', 'fields', 'docid', ].reduce((result, key) => { | ||
if (options[key] && !isNaN(Number(options[key]))) options[key] = Number(options[key]); | ||
result[key] = options[key] || this[key]; | ||
@@ -271,0 +273,0 @@ return result; |
@@ -26,2 +26,3 @@ 'use strict'; | ||
let { sort, limit, population, fields, skip, } = ['sort', 'limit', 'population', 'fields', 'skip',].reduce((result, key) => { | ||
if (options[key] && !isNaN(Number(options[key]))) options[key] = Number(options[key]); | ||
result[key] = options[key] || this[key]; | ||
@@ -58,2 +59,3 @@ return result; | ||
let { sort, limit, population, fields, skip, } = ['sort', 'limit', 'population', 'fields', 'skip',].reduce((result, key) => { | ||
if (options[key] && !isNaN(Number(options[key]))) options[key] = Number(options[key]); | ||
result[key] = options[key] || this[key]; | ||
@@ -93,2 +95,3 @@ return result; | ||
let { sort, limit, population, fields, skip, pagelength, query, } = ['sort', 'limit', 'population', 'fields', 'skip', 'pagelength', 'query',].reduce((result, key) => { | ||
if (options[key] && !isNaN(Number(options[key]))) options[key] = Number(options[key]); | ||
result[key] = options[key] || this[key]; | ||
@@ -220,2 +223,3 @@ return result; | ||
let { sort, population, fields, docid, } = ['sort', 'population', 'fields', 'docid',].reduce((result, key) => { | ||
if (options[key] && !isNaN(Number(options[key]))) options[key] = Number(options[key]); | ||
result[key] = options[key] || this[key]; | ||
@@ -222,0 +226,0 @@ return result; |
@@ -42,2 +42,3 @@ 'use strict'; | ||
let { sort, limit, population, fields, skip, } = ['sort', 'limit', 'population', 'fields', 'skip', ].reduce((result, key) => { | ||
if (options[key] && !isNaN(Number(options[key]))) options[key] = Number(options[key]); | ||
result[key] = options[key] || this[key]; | ||
@@ -175,2 +176,3 @@ return result; | ||
let { sort, limit, population, fields, skip, pagelength, query, } = ['sort', 'limit', 'population', 'fields', 'skip', 'pagelength', 'query', ].reduce((result, key) => { | ||
if (options[key] && !isNaN(Number(options[key]))) options[key] = Number(options[key]); | ||
result[key] = options[key] || this[key]; | ||
@@ -319,2 +321,3 @@ return result; | ||
let { sort, population, fields, docid, } = ['sort', 'population', 'fields', 'docid', ].reduce((result, key) => { | ||
if (options[key] && !isNaN(Number(options[key]))) options[key] = Number(options[key]); | ||
result[key] = options[key] || this[key]; | ||
@@ -321,0 +324,0 @@ return result; |
@@ -45,3 +45,3 @@ { | ||
"jsdoc": "^3.4.3", | ||
"lowkie": "^0.5.0", | ||
"lowkie": "^1.0.0", | ||
"mocha": "~2.2.5", | ||
@@ -98,4 +98,4 @@ "mocha-lcov-reporter": "^1.2.0", | ||
}, | ||
"version": "0.5.6", | ||
"version": "0.6.0", | ||
"license": "MIT" | ||
} |
@@ -259,3 +259,3 @@ 'use strict'; | ||
let query = { | ||
'contact.first_name': /^hello/i | ||
'contact.first_name': { $regex: /^hello/i } | ||
}; | ||
@@ -262,0 +262,0 @@ let values = 'Foobar,Fizzbuzz'; |
@@ -23,13 +23,3 @@ 'use strict'; | ||
}]; | ||
/** | ||
"database": "travis_ci_test", | ||
"username": "", | ||
"password": "", | ||
"connection_options": { | ||
"dialect": "postgres", | ||
"port": 5432, | ||
"host": "127.0.0.1", | ||
"logging": false | ||
} | ||
*/ | ||
var travisConnectionOptions = ['test_core_data', 'travis', '', { | ||
@@ -36,0 +26,0 @@ dialect: 'mysql', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1855341
86
5254