@@ -101,9 +101,9 @@ module.exports = function () {
101101} , { "58" :58 , "8" :8 } ] , 3 :[ function ( _dereq_ , module , exports ) {
102102'use strict' ;
103103
104- module . exports = _dereq_ ( 63 ) . version ;
104+ module . exports = _dereq_ ( 64 ) . version ;
105105
106- } , { "63" : 63 } ] , 4 :[ function ( _dereq_ , module , exports ) {
106+ } , { "64" : 64 } ] , 4 :[ function ( _dereq_ , module , exports ) {
107107( function ( process ) {
108108'use strict' ;
109109
@@ -3490,8 +3490,8 @@ function serialize (opts) {
34903490} , { "20" :20 , "21" :21 , "36" :36 } ] , 20 :[ function ( _dereq_ , module , exports ) {
34913491( function ( process ) {
34923492var Transform = _dereq_ ( 35 )
3493- , inherits = _dereq_ ( 61 ) . inherits
3494- , xtend = _dereq_ ( 62 )
3493+ , inherits = _dereq_ ( 62 ) . inherits
3494+ , xtend = _dereq_ ( 63 )
34953495
34963496function DestroyableTransform ( opts ) {
34973497 Transform . call ( this , opts )
@@ -3587,7 +3587,7 @@ module.exports.obj = through2(function (options, transform, flush) {
35873587} )
35883588
35893589} ) . 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 ) {
35913591exports . endianness = function ( ) { return 'LE' } ;
35923592
35933593exports . hostname = function ( ) {
@@ -3855,27 +3855,42 @@ var process = module.exports = {};
38553855var cachedSetTimeout ;
38563856var cachedClearTimeout ;
38573857
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+ }
38583864( function ( ) {
38593865 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 ;
38643870 }
3871+ } catch ( e ) {
3872+ cachedSetTimeout = defaultSetTimout ;
38653873 }
38663874 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 ;
38713879 }
3880+ } catch ( e ) {
3881+ cachedClearTimeout = defaultClearTimeout ;
38723882 }
38733883} ( ) )
38743884function runTimeout ( fun ) {
38753885 if ( cachedSetTimeout === setTimeout ) {
38763886 //normal enviroments in sane situations
38773887 return setTimeout ( fun , 0 ) ;
38783888 }
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+ }
38793894 try {
38803895 // when when somebody has screwed with setTimeout but no I.E. maddness
38813896 return cachedSetTimeout ( fun , 0 ) ;
@@ -3896,6 +3911,11 @@ function runClearTimeout(marker) {
38963911 //normal enviroments in sane situations
38973912 return clearTimeout ( marker ) ;
38983913 }
3914+ // if clearTimeout wasn't available but was latter defined
3915+ if ( ( cachedClearTimeout === defaultClearTimeout || ! cachedClearTimeout ) && clearTimeout ) {
3916+ cachedClearTimeout = clearTimeout ;
3917+ return clearTimeout ( marker ) ;
3918+ }
38993919 try {
39003920 // when when somebody has screwed with setTimeout but no I.E. maddness
39013921 return cachedClearTimeout ( marker ) ;
@@ -5839,7 +5859,7 @@ module.exports = split
58395859
58405860} , { "37" :37 } ] , 37 :[ function ( _dereq_ , module , exports ) {
58415861arguments [ 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 ) {
58435863// Copyright Joyent, Inc. and other Node contributors.
58445864//
58455865// Permission is hereby granted, free of charge, to any person obtaining a
@@ -9633,7 +9653,7 @@ function CorkedRequest(state) {
96339653arguments [ 4 ] [ 35 ] [ 0 ] . apply ( exports , arguments )
96349654} , { "35" :35 , "55" :55 } ] , 58 :[ function ( _dereq_ , module , exports ) {
96359655arguments [ 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 ) {
96379657( function ( global ) {
96389658
96399659/**
@@ -9705,13 +9725,15 @@ function config (name) {
97059725
97069726} ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
97079727} , { } ] , 60 :[ function ( _dereq_ , module , exports ) {
9728+ arguments [ 4 ] [ 14 ] [ 0 ] . apply ( exports , arguments )
9729+ } , { "14" :14 } ] , 61 :[ function ( _dereq_ , module , exports ) {
97089730module . exports = function isBuffer ( arg ) {
97099731 return arg && typeof arg === 'object'
97109732 && typeof arg . copy === 'function'
97119733 && typeof arg . fill === 'function'
97129734 && typeof arg . readUInt8 === 'function' ;
97139735}
9714- } , { } ] , 61 :[ function ( _dereq_ , module , exports ) {
9736+ } , { } ] , 62 :[ function ( _dereq_ , module , exports ) {
97159737( function ( process , global ) {
97169738// Copyright Joyent, Inc. and other Node contributors.
97179739//
@@ -10238,7 +10260,7 @@ function isPrimitive(arg) {
1023810260}
1023910261exports . isPrimitive = isPrimitive ;
1024010262
10241- exports . isBuffer = _dereq_ ( 60 ) ;
10263+ exports . isBuffer = _dereq_ ( 61 ) ;
1024210264
1024310265function objectToString ( o ) {
1024410266 return Object . prototype . toString . call ( o ) ;
@@ -10282,7 +10304,7 @@ exports.log = function() {
1028210304 * prototype.
1028310305 * @param {function } superCtor Constructor function to inherit prototype from.
1028410306 */
10285- exports . inherits = _dereq_ ( 14 ) ;
10307+ exports . inherits = _dereq_ ( 60 ) ;
1028610308
1028710309exports . _extend = function ( origin , add ) {
1028810310 // Don't do anything if add isn't an object
@@ -10301,7 +10323,7 @@ function hasOwnProperty(obj, prop) {
1030110323}
1030210324
1030310325} ) . 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 ) {
1030510327module . exports = extend
1030610328
1030710329var hasOwnProperty = Object . prototype . hasOwnProperty ;
@@ -10322,7 +10344,7 @@ function extend() {
1032210344 return target
1032310345}
1032410346
10325- } , { } ] , 63 :[ function ( _dereq_ , module , exports ) {
10347+ } , { } ] , 64 :[ function ( _dereq_ , module , exports ) {
1032610348module . exports = {
1032710349 "name" : "pouchdb-replication-stream" ,
1032810350 "version" : "1.2.8" ,
@@ -10360,11 +10382,11 @@ module.exports={
1036010382 } ,
1036110383 "dependencies" : {
1036210384 "argsarray" : "0.0.1" ,
10363- "inherits" : "~2.0.1" ,
10364- "ndjson" : "^1.4.3" ,
10385+ "inherits" : "^2.0.3" ,
1036510386 "lodash.pick" : "^4.0.0" ,
10366- "pouchdb-promise " : "^5 .4.4 " ,
10387+ "ndjson " : "^1 .4.3 " ,
1036710388 "pouch-stream" : "^0.4.0" ,
10389+ "pouchdb-promise" : "^6.0.4" ,
1036810390 "through2" : "^2.0.0"
1036910391 } ,
1037010392 "devDependencies" : {
@@ -10384,7 +10406,7 @@ module.exports={
1038410406 "mocha" : "~1.18" ,
1038510407 "noms" : "0.0.0" ,
1038610408 "phantomjs" : "^1.9.7-5" ,
10387- "pouchdb-memory" : "^1 .0.0" ,
10409+ "pouchdb-memory" : "^6 .0.0" ,
1038810410 "random-document-stream" : "0.0.0" ,
1038910411 "request" : "^2.36.0" ,
1039010412 "sauce-connect-launcher" : "^0.4.2" ,
@@ -10395,7 +10417,7 @@ module.exports={
1039510417 }
1039610418}
1039710419
10398- } , { } ] , 64 :[ function ( _dereq_ , module , exports ) {
10420+ } , { } ] , 65 :[ function ( _dereq_ , module , exports ) {
1039910421'use strict' ;
1040010422
1040110423var utils = _dereq_ ( 1 ) ;
@@ -10432,7 +10454,10 @@ exports.plugin.dump = utils.toPromise(function (writableStream, opts, callback)
1043210454
1043310455 var PouchDB = self . constructor ;
1043410456
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 , {
1043610461 adapter : 'writableStream'
1043710462 } ) ;
1043810463 output . setupStream ( writableStream ) ;
@@ -10524,5 +10549,5 @@ if (typeof window !== 'undefined' && window.PouchDB) {
1052410549 window . PouchDB . adapter ( 'writableStream' , exports . adapters . writableStream ) ;
1052510550}
1052610551
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 )
1052810553} ) ;
0 commit comments