1
1
/*!
2
2
* js-data-localstorage
3
- * @version 2.0.0 - Homepage <http://www.js-data.io/docs/dslocalstorageadapter>
3
+ * @version 2.0.1 - Homepage <http://www.js-data.io/docs/dslocalstorageadapter>
4
4
* @author Jason Dobry <[email protected] >
5
5
* @copyright (c) 2014-2015 Jason Dobry
6
6
* @license MIT <https://github.com/js-data/js-data-localstorage/blob/master/LICENSE>
@@ -68,11 +68,11 @@ return /******/ (function(modules) { // webpackBootstrap
68
68
function _classCallCheck ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( 'Cannot call a class as a function' ) ; } }
69
69
70
70
var JSData = __webpack_require__ ( 1 ) ;
71
- var keys = __webpack_require__ ( 2 ) ;
72
- var guid = __webpack_require__ ( 3 ) ;
71
+ var guid = __webpack_require__ ( 2 ) ;
73
72
74
73
var emptyStore = new JSData . DS ( ) ;
75
74
var DSUtils = JSData . DSUtils ;
75
+ var keys = DSUtils . keys ;
76
76
var omit = DSUtils . omit ;
77
77
var makePath = DSUtils . makePath ;
78
78
var deepMixIn = DSUtils . deepMixIn ;
@@ -338,30 +338,8 @@ return /******/ (function(modules) { // webpackBootstrap
338
338
/* 2 */
339
339
/***/ function ( module , exports , __webpack_require__ ) {
340
340
341
- var forOwn = __webpack_require__ ( 4 ) ;
342
-
343
- /**
344
- * Get object keys
345
- */
346
- var keys = Object . keys || function ( obj ) {
347
- var keys = [ ] ;
348
- forOwn ( obj , function ( val , key ) {
349
- keys . push ( key ) ;
350
- } ) ;
351
- return keys ;
352
- } ;
353
-
354
- module . exports = keys ;
355
-
356
-
357
-
358
-
359
- /***/ } ,
360
- /* 3 */
361
- /***/ function ( module , exports , __webpack_require__ ) {
362
-
363
- var randHex = __webpack_require__ ( 5 ) ;
364
- var choice = __webpack_require__ ( 6 ) ;
341
+ var randHex = __webpack_require__ ( 3 ) ;
342
+ var choice = __webpack_require__ ( 4 ) ;
365
343
366
344
/**
367
345
* Returns pseudo-random guid (UUID v4)
@@ -387,35 +365,10 @@ return /******/ (function(modules) { // webpackBootstrap
387
365
388
366
389
367
/***/ } ,
390
- /* 4 */
391
- /***/ function ( module , exports , __webpack_require__ ) {
392
-
393
- var hasOwn = __webpack_require__ ( 7 ) ;
394
- var forIn = __webpack_require__ ( 8 ) ;
395
-
396
- /**
397
- * Similar to Array/forEach but works over object properties and fixes Don't
398
- * Enum bug on IE.
399
- * based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
400
- */
401
- function forOwn ( obj , fn , thisObj ) {
402
- forIn ( obj , function ( val , key ) {
403
- if ( hasOwn ( obj , key ) ) {
404
- return fn . call ( thisObj , obj [ key ] , key , obj ) ;
405
- }
406
- } ) ;
407
- }
408
-
409
- module . exports = forOwn ;
410
-
411
-
412
-
413
-
414
- /***/ } ,
415
- /* 5 */
368
+ /* 3 */
416
369
/***/ function ( module , exports , __webpack_require__ ) {
417
370
418
- var choice = __webpack_require__ ( 6 ) ;
371
+ var choice = __webpack_require__ ( 4 ) ;
419
372
420
373
var _chars = '0123456789abcdef' . split ( '' ) ;
421
374
@@ -437,11 +390,11 @@ return /******/ (function(modules) { // webpackBootstrap
437
390
438
391
439
392
/***/ } ,
440
- /* 6 */
393
+ /* 4 */
441
394
/***/ function ( module , exports , __webpack_require__ ) {
442
395
443
- var randInt = __webpack_require__ ( 9 ) ;
444
- var isArray = __webpack_require__ ( 10 ) ;
396
+ var randInt = __webpack_require__ ( 5 ) ;
397
+ var isArray = __webpack_require__ ( 6 ) ;
445
398
446
399
/**
447
400
* Returns a random element from the supplied arguments
@@ -458,112 +411,12 @@ return /******/ (function(modules) { // webpackBootstrap
458
411
459
412
460
413
/***/ } ,
461
- /* 7 */
462
- /***/ function ( module , exports , __webpack_require__ ) {
463
-
464
-
465
-
466
- /**
467
- * Safer Object.hasOwnProperty
468
- */
469
- function hasOwn ( obj , prop ) {
470
- return Object . prototype . hasOwnProperty . call ( obj , prop ) ;
471
- }
472
-
473
- module . exports = hasOwn ;
474
-
475
-
476
-
477
-
478
- /***/ } ,
479
- /* 8 */
480
- /***/ function ( module , exports , __webpack_require__ ) {
481
-
482
- var hasOwn = __webpack_require__ ( 7 ) ;
483
-
484
- var _hasDontEnumBug ,
485
- _dontEnums ;
486
-
487
- function checkDontEnum ( ) {
488
- _dontEnums = [
489
- 'toString' ,
490
- 'toLocaleString' ,
491
- 'valueOf' ,
492
- 'hasOwnProperty' ,
493
- 'isPrototypeOf' ,
494
- 'propertyIsEnumerable' ,
495
- 'constructor'
496
- ] ;
497
-
498
- _hasDontEnumBug = true ;
499
-
500
- for ( var key in { 'toString' : null } ) {
501
- _hasDontEnumBug = false ;
502
- }
503
- }
504
-
505
- /**
506
- * Similar to Array/forEach but works over object properties and fixes Don't
507
- * Enum bug on IE.
508
- * based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
509
- */
510
- function forIn ( obj , fn , thisObj ) {
511
- var key , i = 0 ;
512
- // no need to check if argument is a real object that way we can use
513
- // it for arrays, functions, date, etc.
514
-
515
- //post-pone check till needed
516
- if ( _hasDontEnumBug == null ) checkDontEnum ( ) ;
517
-
518
- for ( key in obj ) {
519
- if ( exec ( fn , obj , key , thisObj ) === false ) {
520
- break ;
521
- }
522
- }
523
-
524
-
525
- if ( _hasDontEnumBug ) {
526
- var ctor = obj . constructor ,
527
- isProto = ! ! ctor && obj === ctor . prototype ;
528
-
529
- while ( key = _dontEnums [ i ++ ] ) {
530
- // For constructor, if it is a prototype object the constructor
531
- // is always non-enumerable unless defined otherwise (and
532
- // enumerated above). For non-prototype objects, it will have
533
- // to be defined on this object, since it cannot be defined on
534
- // any prototype objects.
535
- //
536
- // For other [[DontEnum]] properties, check if the value is
537
- // different than Object prototype value.
538
- if (
539
- ( key !== 'constructor' ||
540
- ( ! isProto && hasOwn ( obj , key ) ) ) &&
541
- obj [ key ] !== Object . prototype [ key ]
542
- ) {
543
- if ( exec ( fn , obj , key , thisObj ) === false ) {
544
- break ;
545
- }
546
- }
547
- }
548
- }
549
- }
550
-
551
- function exec ( fn , obj , key , thisObj ) {
552
- return fn . call ( thisObj , obj [ key ] , key , obj ) ;
553
- }
554
-
555
- module . exports = forIn ;
556
-
557
-
558
-
559
-
560
- /***/ } ,
561
- /* 9 */
414
+ /* 5 */
562
415
/***/ function ( module , exports , __webpack_require__ ) {
563
416
564
- var MIN_INT = __webpack_require__ ( 11 ) ;
565
- var MAX_INT = __webpack_require__ ( 12 ) ;
566
- var rand = __webpack_require__ ( 13 ) ;
417
+ var MIN_INT = __webpack_require__ ( 8 ) ;
418
+ var MAX_INT = __webpack_require__ ( 9 ) ;
419
+ var rand = __webpack_require__ ( 10 ) ;
567
420
568
421
/**
569
422
* Gets random integer inside range or snap to min/max values.
@@ -582,10 +435,10 @@ return /******/ (function(modules) { // webpackBootstrap
582
435
583
436
584
437
/***/ } ,
585
- /* 10 */
438
+ /* 6 */
586
439
/***/ function ( module , exports , __webpack_require__ ) {
587
440
588
- var isKind = __webpack_require__ ( 14 ) ;
441
+ var isKind = __webpack_require__ ( 7 ) ;
589
442
/**
590
443
*/
591
444
var isArray = Array . isArray || function ( val ) {
@@ -596,7 +449,22 @@ return /******/ (function(modules) { // webpackBootstrap
596
449
597
450
598
451
/***/ } ,
599
- /* 11 */
452
+ /* 7 */
453
+ /***/ function ( module , exports , __webpack_require__ ) {
454
+
455
+ var kindOf = __webpack_require__ ( 12 ) ;
456
+ /**
457
+ * Check if value is from a specific "kind".
458
+ */
459
+ function isKind ( val , kind ) {
460
+ return kindOf ( val ) === kind ;
461
+ }
462
+ module . exports = isKind ;
463
+
464
+
465
+
466
+ /***/ } ,
467
+ /* 8 */
600
468
/***/ function ( module , exports , __webpack_require__ ) {
601
469
602
470
/**
@@ -608,7 +476,7 @@ return /******/ (function(modules) { // webpackBootstrap
608
476
609
477
610
478
/***/ } ,
611
- /* 12 */
479
+ /* 9 */
612
480
/***/ function ( module , exports , __webpack_require__ ) {
613
481
614
482
/**
@@ -620,12 +488,12 @@ return /******/ (function(modules) { // webpackBootstrap
620
488
621
489
622
490
/***/ } ,
623
- /* 13 */
491
+ /* 10 */
624
492
/***/ function ( module , exports , __webpack_require__ ) {
625
493
626
- var random = __webpack_require__ ( 15 ) ;
627
- var MIN_INT = __webpack_require__ ( 11 ) ;
628
- var MAX_INT = __webpack_require__ ( 12 ) ;
494
+ var random = __webpack_require__ ( 11 ) ;
495
+ var MIN_INT = __webpack_require__ ( 8 ) ;
496
+ var MAX_INT = __webpack_require__ ( 9 ) ;
629
497
630
498
/**
631
499
* Returns random number inside range
@@ -641,22 +509,7 @@ return /******/ (function(modules) { // webpackBootstrap
641
509
642
510
643
511
/***/ } ,
644
- /* 14 */
645
- /***/ function ( module , exports , __webpack_require__ ) {
646
-
647
- var kindOf = __webpack_require__ ( 16 ) ;
648
- /**
649
- * Check if value is from a specific "kind".
650
- */
651
- function isKind ( val , kind ) {
652
- return kindOf ( val ) === kind ;
653
- }
654
- module . exports = isKind ;
655
-
656
-
657
-
658
- /***/ } ,
659
- /* 15 */
512
+ /* 11 */
660
513
/***/ function ( module , exports , __webpack_require__ ) {
661
514
662
515
@@ -680,7 +533,7 @@ return /******/ (function(modules) { // webpackBootstrap
680
533
681
534
682
535
/***/ } ,
683
- /* 16 */
536
+ /* 12 */
684
537
/***/ function ( module , exports , __webpack_require__ ) {
685
538
686
539
0 commit comments