Skip to content

Commit

Permalink
1.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscdn committed Dec 22, 2020
1 parent 33c4171 commit cefdc1e
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 13 deletions.
8 changes: 5 additions & 3 deletions lib/index.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/index.cjs.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions lib/index.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/index.es.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.min.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions src/rpc-client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ const {

const get = require('lodash.get')

const sequence = {
// to be tested...
const sequence = {
index: 0,
get next() {
this.index = this.index + 1
return this.index
}
}


module.exports = class RPCClient {

constructor(session, baseURL) {
Expand Down Expand Up @@ -61,7 +61,9 @@ module.exports = class RPCClient {
async batch() {
const queue = this._batchQueue
this.resetQueue()
const response = await this.session.postBody(this.baseURL, { rpc: queue })
const response = await this.session.postBody(this.baseURL, {
rpc: queue
})

// data.data is a content server thing
return get(response, 'data.data', []).map(item => this.handleResponse(item))
Expand Down

0 comments on commit cefdc1e

Please sign in to comment.