@nxtedition/lib 20.0.2 → 20.0.3
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/couch.js +11 -0
- package/package.json +1 -1
package/couch.js
CHANGED
|
@@ -120,6 +120,17 @@ export function makeCouch(opts) {
|
|
|
120
120
|
})
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Fetches changes from the CouchDB changes feed.
|
|
125
|
+
*
|
|
126
|
+
* @param {Object} [options={}] - The options for fetching changes.
|
|
127
|
+
* @param {AbortSignal} [options.signal=null] - The signal to abort the request.
|
|
128
|
+
* @param {boolean} [options.descending=false] - Whether to return changes in descending order.
|
|
129
|
+
* @param {boolean} [options.include_docs=false] - Whether to include the document with each change.
|
|
130
|
+
* @param {number} [options.seq_interval=null] - The interval at which to return sequence numbers.
|
|
131
|
+
* @param {string} [options.since=null] - The sequence number to start from.
|
|
132
|
+
* @yields {Object} The changes from the CouchDB changes feed.
|
|
133
|
+
*/
|
|
123
134
|
async function* changes({ client = defaultClient, signal = null, ...options } = {}) {
|
|
124
135
|
const params = {}
|
|
125
136
|
|