@@ -59,15 +59,15 @@ module.exports =
59
59
60
60
var keys = _interopRequire ( __webpack_require__ ( 4 ) ) ;
61
61
62
- var omit = _interopRequire ( __webpack_require__ ( 9 ) ) ;
62
+ var omit = _interopRequire ( __webpack_require__ ( 5 ) ) ;
63
63
64
- var isEmpty = _interopRequire ( __webpack_require__ ( 5 ) ) ;
64
+ var isEmpty = _interopRequire ( __webpack_require__ ( 6 ) ) ;
65
65
66
- var upperCase = _interopRequire ( __webpack_require__ ( 6 ) ) ;
66
+ var upperCase = _interopRequire ( __webpack_require__ ( 7 ) ) ;
67
67
68
- var underscore = _interopRequire ( __webpack_require__ ( 7 ) ) ;
68
+ var underscore = _interopRequire ( __webpack_require__ ( 8 ) ) ;
69
69
70
- var toString = _interopRequire ( __webpack_require__ ( 8 ) ) ;
70
+ var toString = _interopRequire ( __webpack_require__ ( 9 ) ) ;
71
71
72
72
var DSUtils = JSData . DSUtils ;
73
73
var P = DSUtils . Promise ;
@@ -150,6 +150,8 @@ module.exports =
150
150
query = query . orWhere ( field , "in" , v ) ;
151
151
} else if ( op === "|notIn" ) {
152
152
query = query . orWhereNotIn ( field , v ) ;
153
+ } else {
154
+ throw new Error ( "Operator not found" ) ;
153
155
}
154
156
} ) ;
155
157
} ) ;
@@ -356,143 +358,31 @@ module.exports =
356
358
/* 5 */
357
359
/***/ function ( module , exports , __webpack_require__ ) {
358
360
359
- module . exports = require ( "mout/lang/isEmpty " ) ;
361
+ module . exports = require ( "mout/object/omit " ) ;
360
362
361
363
/***/ } ,
362
364
/* 6 */
363
365
/***/ function ( module , exports , __webpack_require__ ) {
364
366
365
- module . exports = require ( "mout/string/upperCase " ) ;
367
+ module . exports = require ( "mout/lang/isEmpty " ) ;
366
368
367
369
/***/ } ,
368
370
/* 7 */
369
371
/***/ function ( module , exports , __webpack_require__ ) {
370
372
371
- module . exports = require ( "mout/string/underscore " ) ;
373
+ module . exports = require ( "mout/string/upperCase " ) ;
372
374
373
375
/***/ } ,
374
376
/* 8 */
375
377
/***/ function ( module , exports , __webpack_require__ ) {
376
378
377
- module . exports = require ( "mout/lang/toString " ) ;
379
+ module . exports = require ( "mout/string/underscore " ) ;
378
380
379
381
/***/ } ,
380
382
/* 9 */
381
383
/***/ function ( module , exports , __webpack_require__ ) {
382
384
383
- var slice = __webpack_require__ ( 10 ) ;
384
- var contains = __webpack_require__ ( 11 ) ;
385
-
386
- /**
387
- * Return a copy of the object, filtered to only contain properties except the blacklisted keys.
388
- */
389
- function omit ( obj , var_keys ) {
390
- var keys = typeof arguments [ 1 ] !== 'string' ? arguments [ 1 ] : slice ( arguments , 1 ) ,
391
- out = { } ;
392
-
393
- for ( var property in obj ) {
394
- if ( obj . hasOwnProperty ( property ) && ! contains ( keys , property ) ) {
395
- out [ property ] = obj [ property ] ;
396
- }
397
- }
398
- return out ;
399
- }
400
-
401
- module . exports = omit ;
402
-
403
-
404
-
405
-
406
- /***/ } ,
407
- /* 10 */
408
- /***/ function ( module , exports , __webpack_require__ ) {
409
-
410
-
411
-
412
- /**
413
- * Create slice of source array or array-like object
414
- */
415
- function slice ( arr , start , end ) {
416
- var len = arr . length ;
417
-
418
- if ( start == null ) {
419
- start = 0 ;
420
- } else if ( start < 0 ) {
421
- start = Math . max ( len + start , 0 ) ;
422
- } else {
423
- start = Math . min ( start , len ) ;
424
- }
425
-
426
- if ( end == null ) {
427
- end = len ;
428
- } else if ( end < 0 ) {
429
- end = Math . max ( len + end , 0 ) ;
430
- } else {
431
- end = Math . min ( end , len ) ;
432
- }
433
-
434
- var result = [ ] ;
435
- while ( start < end ) {
436
- result . push ( arr [ start ++ ] ) ;
437
- }
438
-
439
- return result ;
440
- }
441
-
442
- module . exports = slice ;
443
-
444
-
445
-
446
-
447
- /***/ } ,
448
- /* 11 */
449
- /***/ function ( module , exports , __webpack_require__ ) {
450
-
451
- var indexOf = __webpack_require__ ( 12 ) ;
452
-
453
- /**
454
- * If array contains values.
455
- */
456
- function contains ( arr , val ) {
457
- return indexOf ( arr , val ) !== - 1 ;
458
- }
459
- module . exports = contains ;
460
-
461
-
462
-
463
- /***/ } ,
464
- /* 12 */
465
- /***/ function ( module , exports , __webpack_require__ ) {
466
-
467
-
468
-
469
- /**
470
- * Array.indexOf
471
- */
472
- function indexOf ( arr , item , fromIndex ) {
473
- fromIndex = fromIndex || 0 ;
474
- if ( arr == null ) {
475
- return - 1 ;
476
- }
477
-
478
- var len = arr . length ,
479
- i = fromIndex < 0 ? len + fromIndex : fromIndex ;
480
- while ( i < len ) {
481
- // we iterate over sparse items since there is no way to make it
482
- // work properly on IE 7-8. see #64
483
- if ( arr [ i ] === item ) {
484
- return i ;
485
- }
486
-
487
- i ++ ;
488
- }
489
-
490
- return - 1 ;
491
- }
492
-
493
- module . exports = indexOf ;
494
-
495
-
385
+ module . exports = require ( "mout/lang/toString" ) ;
496
386
497
387
/***/ }
498
388
/******/ ] ) ;
0 commit comments