molly-db 1.0.30 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/module/_api_.js +1 -3
- package/package.json +1 -1
package/module/_api_.js
CHANGED
|
@@ -9,8 +9,6 @@ function list( _params ){
|
|
|
9
9
|
|
|
10
10
|
function match( _params ){
|
|
11
11
|
try{
|
|
12
|
-
|
|
13
|
-
} catch(e) {
|
|
14
12
|
const result = new Array();
|
|
15
13
|
db[_params.db][_params.table].map((x)=>{
|
|
16
14
|
const reg = crypto.slugify(_params.target);
|
|
@@ -21,7 +19,7 @@ function match( _params ){
|
|
|
21
19
|
return parseData( result.map(x=>JSON.parse(x)).slice(
|
|
22
20
|
_params.offset, Number(_params.offset)+Number(_params.length)
|
|
23
21
|
), result.length);
|
|
24
|
-
}
|
|
22
|
+
} catch(e) { return parseError(e) }
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
function hash( _params ){
|