Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 8797ce0

Browse files
committed
Use latest nano@^8.1.0.
1 parent d400375 commit 8797ce0

File tree

4 files changed

+36
-49
lines changed

4 files changed

+36
-49
lines changed

package-lock.json

Lines changed: 30 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"concat-stream": "^1.6.0",
2929
"debug": "^3.1.0",
3030
"lockfile": "1.0.3",
31-
"nano": "^8.0.0",
31+
"nano": "^8.1.0",
3232
"request": "^2.81.0",
3333
"tmp": "0.0.33"
3434
},

test/legacy/api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2015, 2018 IBM Corp. All rights reserved.
1+
// Copyright © 2015, 2019 IBM Corp. All rights reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -813,7 +813,7 @@ describe('#db Cloudant Search', function() {
813813

814814
it('searches test data: author:charles', function(done) {
815815
var mocks = nock(SERVER)
816-
.get('/' + dbName + '/_design/library/_search/books?q=author%3Acharles')
816+
.post('/' + dbName + '/_design/library/_search/books', '{\"q\":\"author:charles\"}')
817817
.reply(200, { total_rows: 1, bookmark: 'g2wAAAABaANkAB1kYmNvcmVAZGI2LnNsaW5nLmNsb3VkYW50Lm5ldGwAAAACbgQAAAAAgG4EAP___79qaAJGP8iMWIAAAABhAGo', rows: [ { id: 'a_tale', order: [Object], fields: {} } ] });
818818

819819
mydb.search('library', 'books', {q: 'author:charles'}, function(er, d) {
@@ -833,7 +833,7 @@ describe('#db Cloudant Search', function() {
833833

834834
it('searches test data: title:two', function(done) {
835835
var mocks = nock(SERVER)
836-
.get('/' + dbName + '/_design/library/_search/books?q=title%3Atwo')
836+
.post('/' + dbName + '/_design/library/_search/books', '{\"q\":\"title:two\"}')
837837
.reply(200, {total_rows: 2, bookmark: 'g1AAAACIeJzLYWBgYMpgTmGQTUlKzi9KdUhJMtcrzsnMS9dLzskvTUnMK9HLSy3JASlLcgCSSfX____PymBysz_RE9EAFEhkIFJ7HguQZGgAUkAT9oONOLy4igFsRBYAPRQqlQ', rows: [{id: 'towers', order: [Object], fields: {}}, {id: 'a_tale', order: [Object], fields: {}}]});
838838

839839
mydb.search('library', 'books', {q: 'title:two'}, function(er, d) {

test/legacy/readme-examples.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2015, 2018 IBM Corp. All rights reserved.
1+
// Copyright © 2015, 2019 IBM Corp. All rights reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -406,7 +406,7 @@ describe('Cloudant Search #db', function() {
406406
{ id: '764de7aeca95c27fdd7fb6565dcfc727', rev: '1-86039ff130d36c08a71b3f293fd4ea7e' }])
407407
.post(`/${my_db}`)
408408
.reply(200, { ok: true, id: '_design/library', rev: '1-cdbb57f890d060055b7fb8cb07628068' })
409-
.get(`/${my_db}/_design/library/_search/books`).query(true)
409+
.post(`/${my_db}/_design/library/_search/books`, '{\"q\":\"author:dickens\"}')
410410
.reply(200, {total_rows: 2, rows: [{id: '764de7aeca95c27fdd7fb6565dcfc0fe'}, {id: '764de7aeca95c27fdd7fb6565dcfc727'}]})
411411
.delete(`/${my_db}`)
412412
.reply(200, {ok: true});

0 commit comments

Comments
 (0)