...
 
Commits (3)
......@@ -107,7 +107,7 @@ Update the replication document.
debug 'Creating replication', doc
await replicator
.put doc
.update doc
.catch (error) ->
Catch 403 errors as they indicate the status was updated by CouchDB (too fast for us to see).
......@@ -138,7 +138,7 @@ Log the status of the replicator
Toolbox
=======
CouchDB = require 'most-couchdb'
CouchDB = require 'most-couchdb/with-update'
sleep = (timeout) -> new Promise (resolve) -> setTimeout resolve, timeout
crypto = require 'crypto'
......
{
"name": "frantic-team",
"version": "1.6.0",
"version": "1.6.1",
"description": "Inject replication documents in CouchDB",
"main": "index.js",
"scripts": {
"prepublishOnly": "npm run build",
"build": "npm install --only=dev && rm package-lock.json && coffee --no-header -c -M *.coffee.md",
"build": "npm install coffeescript && rm package-lock.json && coffee --no-header -c -M *.coffee.md",
"pretest": "npm run build && coffee -c test/*.coffee.md",
"test": "nyc mocha"
},
......@@ -26,7 +26,7 @@
"homepage": "https://gitlab.com/shimaore/frantic-team",
"devDependencies": {
"chai": "^4.2.0",
"coffeescript": "^2.3.2",
"coffeescript": "^2.4.0",
"mocha": "^5.2.0",
"nyc": "^13.1.0"
},
......