@@ -101,9 +101,9 @@ module.exports = function () {
101
101
} , { "58" :58 , "8" :8 } ] , 3 :[ function ( _dereq_ , module , exports ) {
102
102
'use strict' ;
103
103
104
- module . exports = _dereq_ ( 63 ) . version ;
104
+ module . exports = _dereq_ ( 64 ) . version ;
105
105
106
- } , { "63" : 63 } ] , 4 :[ function ( _dereq_ , module , exports ) {
106
+ } , { "64" : 64 } ] , 4 :[ function ( _dereq_ , module , exports ) {
107
107
( function ( process ) {
108
108
'use strict' ;
109
109
@@ -3490,8 +3490,8 @@ function serialize (opts) {
3490
3490
} , { "20" :20 , "21" :21 , "36" :36 } ] , 20 :[ function ( _dereq_ , module , exports ) {
3491
3491
( function ( process ) {
3492
3492
var Transform = _dereq_ ( 35 )
3493
- , inherits = _dereq_ ( 61 ) . inherits
3494
- , xtend = _dereq_ ( 62 )
3493
+ , inherits = _dereq_ ( 62 ) . inherits
3494
+ , xtend = _dereq_ ( 63 )
3495
3495
3496
3496
function DestroyableTransform ( opts ) {
3497
3497
Transform . call ( this , opts )
@@ -3587,7 +3587,7 @@ module.exports.obj = through2(function (options, transform, flush) {
3587
3587
} )
3588
3588
3589
3589
} ) . call ( this , _dereq_ ( 28 ) )
3590
- } , { "28" :28 , "35" :35 , "61" : 61 , "62" : 62 } ] , 21 :[ function ( _dereq_ , module , exports ) {
3590
+ } , { "28" :28 , "35" :35 , "62" : 62 , "63" : 63 } ] , 21 :[ function ( _dereq_ , module , exports ) {
3591
3591
exports . endianness = function ( ) { return 'LE' } ;
3592
3592
3593
3593
exports . hostname = function ( ) {
@@ -3855,27 +3855,42 @@ var process = module.exports = {};
3855
3855
var cachedSetTimeout ;
3856
3856
var cachedClearTimeout ;
3857
3857
3858
+ function defaultSetTimout ( ) {
3859
+ throw new Error ( 'setTimeout has not been defined' ) ;
3860
+ }
3861
+ function defaultClearTimeout ( ) {
3862
+ throw new Error ( 'clearTimeout has not been defined' ) ;
3863
+ }
3858
3864
( function ( ) {
3859
3865
try {
3860
- cachedSetTimeout = setTimeout ;
3861
- } catch ( e ) {
3862
- cachedSetTimeout = function ( ) {
3863
- throw new Error ( 'setTimeout is not defined' ) ;
3866
+ if ( typeof setTimeout === 'function' ) {
3867
+ cachedSetTimeout = setTimeout ;
3868
+ } else {
3869
+ cachedSetTimeout = defaultSetTimout ;
3864
3870
}
3871
+ } catch ( e ) {
3872
+ cachedSetTimeout = defaultSetTimout ;
3865
3873
}
3866
3874
try {
3867
- cachedClearTimeout = clearTimeout ;
3868
- } catch ( e ) {
3869
- cachedClearTimeout = function ( ) {
3870
- throw new Error ( 'clearTimeout is not defined' ) ;
3875
+ if ( typeof clearTimeout === 'function' ) {
3876
+ cachedClearTimeout = clearTimeout ;
3877
+ } else {
3878
+ cachedClearTimeout = defaultClearTimeout ;
3871
3879
}
3880
+ } catch ( e ) {
3881
+ cachedClearTimeout = defaultClearTimeout ;
3872
3882
}
3873
3883
} ( ) )
3874
3884
function runTimeout ( fun ) {
3875
3885
if ( cachedSetTimeout === setTimeout ) {
3876
3886
//normal enviroments in sane situations
3877
3887
return setTimeout ( fun , 0 ) ;
3878
3888
}
3889
+ // if setTimeout wasn't available but was latter defined
3890
+ if ( ( cachedSetTimeout === defaultSetTimout || ! cachedSetTimeout ) && setTimeout ) {
3891
+ cachedSetTimeout = setTimeout ;
3892
+ return setTimeout ( fun , 0 ) ;
3893
+ }
3879
3894
try {
3880
3895
// when when somebody has screwed with setTimeout but no I.E. maddness
3881
3896
return cachedSetTimeout ( fun , 0 ) ;
@@ -3896,6 +3911,11 @@ function runClearTimeout(marker) {
3896
3911
//normal enviroments in sane situations
3897
3912
return clearTimeout ( marker ) ;
3898
3913
}
3914
+ // if clearTimeout wasn't available but was latter defined
3915
+ if ( ( cachedClearTimeout === defaultClearTimeout || ! cachedClearTimeout ) && clearTimeout ) {
3916
+ cachedClearTimeout = clearTimeout ;
3917
+ return clearTimeout ( marker ) ;
3918
+ }
3899
3919
try {
3900
3920
// when when somebody has screwed with setTimeout but no I.E. maddness
3901
3921
return cachedClearTimeout ( marker ) ;
@@ -5839,7 +5859,7 @@ module.exports = split
5839
5859
5840
5860
} , { "37" :37 } ] , 37 :[ function ( _dereq_ , module , exports ) {
5841
5861
arguments [ 4 ] [ 20 ] [ 0 ] . apply ( exports , arguments )
5842
- } , { "20" :20 , "28" :28 , "35" :35 , "61" : 61 , "62" : 62 } ] , 38 :[ function ( _dereq_ , module , exports ) {
5862
+ } , { "20" :20 , "28" :28 , "35" :35 , "62" : 62 , "63" : 63 } ] , 38 :[ function ( _dereq_ , module , exports ) {
5843
5863
// Copyright Joyent, Inc. and other Node contributors.
5844
5864
//
5845
5865
// Permission is hereby granted, free of charge, to any person obtaining a
@@ -9633,7 +9653,7 @@ function CorkedRequest(state) {
9633
9653
arguments [ 4 ] [ 35 ] [ 0 ] . apply ( exports , arguments )
9634
9654
} , { "35" :35 , "55" :55 } ] , 58 :[ function ( _dereq_ , module , exports ) {
9635
9655
arguments [ 4 ] [ 20 ] [ 0 ] . apply ( exports , arguments )
9636
- } , { "20" :20 , "28" :28 , "57" :57 , "61" : 61 , "62" : 62 } ] , 59 :[ function ( _dereq_ , module , exports ) {
9656
+ } , { "20" :20 , "28" :28 , "57" :57 , "62" : 62 , "63" : 63 } ] , 59 :[ function ( _dereq_ , module , exports ) {
9637
9657
( function ( global ) {
9638
9658
9639
9659
/**
@@ -9705,13 +9725,15 @@ function config (name) {
9705
9725
9706
9726
} ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
9707
9727
} , { } ] , 60 :[ function ( _dereq_ , module , exports ) {
9728
+ arguments [ 4 ] [ 14 ] [ 0 ] . apply ( exports , arguments )
9729
+ } , { "14" :14 } ] , 61 :[ function ( _dereq_ , module , exports ) {
9708
9730
module . exports = function isBuffer ( arg ) {
9709
9731
return arg && typeof arg === 'object'
9710
9732
&& typeof arg . copy === 'function'
9711
9733
&& typeof arg . fill === 'function'
9712
9734
&& typeof arg . readUInt8 === 'function' ;
9713
9735
}
9714
- } , { } ] , 61 :[ function ( _dereq_ , module , exports ) {
9736
+ } , { } ] , 62 :[ function ( _dereq_ , module , exports ) {
9715
9737
( function ( process , global ) {
9716
9738
// Copyright Joyent, Inc. and other Node contributors.
9717
9739
//
@@ -10238,7 +10260,7 @@ function isPrimitive(arg) {
10238
10260
}
10239
10261
exports . isPrimitive = isPrimitive ;
10240
10262
10241
- exports . isBuffer = _dereq_ ( 60 ) ;
10263
+ exports . isBuffer = _dereq_ ( 61 ) ;
10242
10264
10243
10265
function objectToString ( o ) {
10244
10266
return Object . prototype . toString . call ( o ) ;
@@ -10282,7 +10304,7 @@ exports.log = function() {
10282
10304
* prototype.
10283
10305
* @param {function } superCtor Constructor function to inherit prototype from.
10284
10306
*/
10285
- exports . inherits = _dereq_ ( 14 ) ;
10307
+ exports . inherits = _dereq_ ( 60 ) ;
10286
10308
10287
10309
exports . _extend = function ( origin , add ) {
10288
10310
// Don't do anything if add isn't an object
@@ -10301,7 +10323,7 @@ function hasOwnProperty(obj, prop) {
10301
10323
}
10302
10324
10303
10325
} ) . call ( this , _dereq_ ( 28 ) , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
10304
- } , { "14" : 14 , " 28" :28 , "60" :60 } ] , 62 :[ function ( _dereq_ , module , exports ) {
10326
+ } , { "28" :28 , "60" :60 , "61" : 61 } ] , 63 :[ function ( _dereq_ , module , exports ) {
10305
10327
module . exports = extend
10306
10328
10307
10329
var hasOwnProperty = Object . prototype . hasOwnProperty ;
@@ -10322,7 +10344,7 @@ function extend() {
10322
10344
return target
10323
10345
}
10324
10346
10325
- } , { } ] , 63 :[ function ( _dereq_ , module , exports ) {
10347
+ } , { } ] , 64 :[ function ( _dereq_ , module , exports ) {
10326
10348
module . exports = {
10327
10349
"name" : "pouchdb-replication-stream" ,
10328
10350
"version" : "1.2.8" ,
@@ -10360,11 +10382,11 @@ module.exports={
10360
10382
} ,
10361
10383
"dependencies" : {
10362
10384
"argsarray" : "0.0.1" ,
10363
- "inherits" : "~2.0.1" ,
10364
- "ndjson" : "^1.4.3" ,
10385
+ "inherits" : "^2.0.3" ,
10365
10386
"lodash.pick" : "^4.0.0" ,
10366
- "pouchdb-promise " : "^5 .4.4 " ,
10387
+ "ndjson " : "^1 .4.3 " ,
10367
10388
"pouch-stream" : "^0.4.0" ,
10389
+ "pouchdb-promise" : "^6.0.4" ,
10368
10390
"through2" : "^2.0.0"
10369
10391
} ,
10370
10392
"devDependencies" : {
@@ -10384,7 +10406,7 @@ module.exports={
10384
10406
"mocha" : "~1.18" ,
10385
10407
"noms" : "0.0.0" ,
10386
10408
"phantomjs" : "^1.9.7-5" ,
10387
- "pouchdb-memory" : "^1 .0.0" ,
10409
+ "pouchdb-memory" : "^6 .0.0" ,
10388
10410
"random-document-stream" : "0.0.0" ,
10389
10411
"request" : "^2.36.0" ,
10390
10412
"sauce-connect-launcher" : "^0.4.2" ,
@@ -10395,7 +10417,7 @@ module.exports={
10395
10417
}
10396
10418
}
10397
10419
10398
- } , { } ] , 64 :[ function ( _dereq_ , module , exports ) {
10420
+ } , { } ] , 65 :[ function ( _dereq_ , module , exports ) {
10399
10421
'use strict' ;
10400
10422
10401
10423
var utils = _dereq_ ( 1 ) ;
@@ -10432,7 +10454,10 @@ exports.plugin.dump = utils.toPromise(function (writableStream, opts, callback)
10432
10454
10433
10455
var PouchDB = self . constructor ;
10434
10456
10435
- var output = new PouchDB ( self . _db_name , {
10457
+ // db.name replaced db._db_name in pouch 6.0.0
10458
+ /* istanbul ignore next */
10459
+ var dbName = self . name || self . _db_name ;
10460
+ var output = new PouchDB ( dbName , {
10436
10461
adapter : 'writableStream'
10437
10462
} ) ;
10438
10463
output . setupStream ( writableStream ) ;
@@ -10524,5 +10549,5 @@ if (typeof window !== 'undefined' && window.PouchDB) {
10524
10549
window . PouchDB . adapter ( 'writableStream' , exports . adapters . writableStream ) ;
10525
10550
}
10526
10551
10527
- } , { "1" :1 , "18" :18 , "19" :19 , "2" :2 , "23" :23 , "3" :3 , "4" :4 , "58" :58 } ] } , { } , [ 64 ] ) ( 64 )
10552
+ } , { "1" :1 , "18" :18 , "19" :19 , "2" :2 , "23" :23 , "3" :3 , "4" :4 , "58" :58 } ] } , { } , [ 65 ] ) ( 65 )
10528
10553
} ) ;
0 commit comments